From e222fb0dde30577742656c184030dca262345ac8 Mon Sep 17 00:00:00 2001 From: Tom Ball Date: Tue, 14 Jul 2020 15:56:32 -0700 Subject: [PATCH] 4.2.2 --- assets/js/binary.js | 72122 +++++++++++++++++++++--------------------- assets/version.txt | 2 +- pxt.json | 2 +- 3 files changed, 36090 insertions(+), 36036 deletions(-) diff --git a/assets/js/binary.js b/assets/js/binary.js index c52efd5..21d57b2 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.0.2/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"4.2.1","target":"arcade","targetVersion":"1.0.2","repo":"microsoft/tileworld"} -// total=2585481 new=51.77% cached=43.06% other=5.18% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.0.3/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"4.2.2","target":"arcade","targetVersion":"1.0.3","repo":"microsoft/tileworld"} +// total=2590247 new=51.72% cached=43.10% other=5.18% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -653,7 +653,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P41706(s) { +function _main___P35666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -663,228 +663,228 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___232 = (undefined); - globals._pollEventQueue___245 = (undefined); - globals.minPriority___251 = (1); + globals._intervals___3926 = (undefined); + globals._pollEventQueue___3935 = (undefined); + globals.minPriority___361 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, inline__P252); - globals.listeners___253 = (s.tmp_0); - globals.globalVolume___430 = (null); - globals.playToneID___440 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C444_VT); + r0 = pxsim_Array__push(s.tmp_0, inline__P3938); + globals.listeners___3939 = (s.tmp_0); + globals.globalVolume___3992 = (null); + globals.playToneID___3999 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1595_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P456_mk(s); + s.tmp_1 = music_Melody_constructor__P1598_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___466 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C444_VT); + globals.wawawawaa___1612 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C1595_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P456_mk(s); + s.tmp_1 = music_Melody_constructor__P1598_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___472 = (s.tmp_0); - globals.brightness___507 = (100); + globals.powerUp___1615 = (s.tmp_0); + globals.brightness___1721 = (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", _hex20344); - globals.font8___530 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex22110); + globals.font8___1742 = (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", _hex20346); - globals.font12___532 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex22112); + globals.font12___1743 = (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", _hex26157); - globals.font5___537 = (s.tmp_0); - globals.__updated___544 = (false); - r0 = pxsim.control.runInParallel(inline__P549); - r0 = pxsim_pxtcore.setPalette(_hex575); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex27801); + globals.font5___1747 = (s.tmp_0); + globals.__updated___4036 = (false); + r0 = pxsim.control.runInParallel(inline__P4039); + r0 = pxsim_pxtcore.setPalette(_hex4050); r0 = pxsim.image.create(160, 120); - globals.screen___578 = (r0); - s.tmp_0 = control___screen_setupUpdate__P546_mk(s); - s.tmp_0.arg0 = inline__P583; + globals.screen___1799 = (r0); + s.tmp_0 = control___screen_setupUpdate__P1761_mk(s); + s.tmp_0.arg0 = inline__P4057; s.callLocIdx = 4; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.control_EventContext_onStats___300 = (inline__P588); - globals.RUN_KEY___595 = ("#run"); - globals.SCOPE_KEY___596 = ("#scope"); - s.tmp_0 = settings_initScopes__P608_mk(s); + globals.control_EventContext_onStats___384 = (inline__P4062); + globals.RUN_KEY___4067 = ("#run"); + globals.SCOPE_KEY___4068 = ("#scope"); + s.tmp_0 = settings_initScopes__P4079_mk(s); s.callLocIdx = 5; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C694_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P705_mk(s); + s.tmp_1 = controller_Button_constructor__P1906_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___665 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C694_VT); + globals.A___1874 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P705_mk(s); + s.tmp_1 = controller_Button_constructor__P1906_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___667 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C694_VT); + globals.B___1875 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P705_mk(s); + s.tmp_1 = controller_Button_constructor__P1906_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___669 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C694_VT); + globals.left___1876 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P705_mk(s); + s.tmp_1 = controller_Button_constructor__P1906_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___671 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C694_VT); + globals.up___1877 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P705_mk(s); + s.tmp_1 = controller_Button_constructor__P1906_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___673 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C694_VT); + globals.right___1878 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P705_mk(s); + s.tmp_1 = controller_Button_constructor__P1906_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___675 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C694_VT); + globals.down___1879 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P705_mk(s); + s.tmp_1 = controller_Button_constructor__P1906_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___677 = (s.tmp_0); - globals._userEventsEnabled___687 = (true); - globals.defaultRepeatDelay___689 = (500); - globals.defaultRepeatInterval___691 = (30); - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C706_VT); + globals.menu___1880 = (s.tmp_0); + globals._userEventsEnabled___4106 = (true); + globals.defaultRepeatDelay___4108 = (500); + globals.defaultRepeatInterval___4110 = (30); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C4116_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P705_mk(s); + s.tmp_1 = controller_Button_constructor__P1906_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___750 = (s.tmp_0); - s.tmp_0 = SpriteKind_create__P859_mk(s); + globals.anyButton___1954 = (s.tmp_0); + s.tmp_0 = SpriteKind_create__P2124_mk(s); s.callLocIdx = 14; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - globals.Player___861 = (r0); - s.tmp_0 = SpriteKind_create__P859_mk(s); + globals.Player___2125 = (r0); + s.tmp_0 = SpriteKind_create__P2124_mk(s); s.callLocIdx = 15; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - globals.Food___866 = (r0); - s.tmp_0 = SpriteKind_create__P859_mk(s); + globals.Food___2127 = (r0); + s.tmp_0 = SpriteKind_create__P2124_mk(s); s.callLocIdx = 16; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - globals.Enemy___869 = (r0); + globals.Enemy___2128 = (r0); r0 = (100 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MAX_TIME_STEP___891 = (r0); + globals.MAX_TIME_STEP___2165 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___904 = (r0); - globals.infoState___935 = (undefined); - s.tmp_0 = game_addScenePushHandler__P939_mk(s); - s.tmp_0.arg0 = inline__P940; + globals.MIN_MOVE_GAP___2167 = (r0); + globals.infoState___4159 = (undefined); + s.tmp_0 = game_addScenePushHandler__P2541_mk(s); + s.tmp_0.arg0 = inline__P4163; s.callLocIdx = 19; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P956_mk(s); - s.tmp_0.arg0 = inline__P957; + s.tmp_0 = game_addScenePopHandler__P2543_mk(s); + s.tmp_0.arg0 = inline__P4178; s.callLocIdx = 23; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___1202 = (r0); - globals.debug___1269 = (false); - globals.stats___1271 = (false); - globals.winEffect___1273 = (undefined); - globals.loseEffect___1275 = (undefined); - globals.loseSound___1277 = (undefined); - globals.winSound___1279 = (undefined); - s.tmp_0 = scene_systemMenu_initVolume__P1609_mk(s); + globals.scene_Scene_initializers___2431 = (r0); + globals.debug___2520 = (false); + globals.stats___2521 = (false); + globals.winEffect___2522 = (undefined); + globals.loseEffect___2523 = (undefined); + globals.loseSound___4271 = (undefined); + globals.winSound___4273 = (undefined); + s.tmp_0 = scene_systemMenu_initVolume__P4539_mk(s); s.callLocIdx = 24; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - r0 = pxsim_Array__push(globals.scene_Scene_initializers___1202, scene_systemMenu_register__P1606); - r0 = pxsim.image.ofBuffer(_hex1615); - globals.CARD_NORMAL___1616 = (r0); - r0 = pxsim.image.ofBuffer(_hex1618); - globals.CARD_SELECTED___1619 = (r0); - r0 = pxsim.image.ofBuffer(_hex1621); - globals.CARD_ACTIVE___1622 = (r0); - r0 = pxsim.image.ofBuffer(_hex1624); - globals.VOLUME_UP_ICON___1625 = (r0); - r0 = pxsim.image.ofBuffer(_hex1627); - globals.BRIGHTNESS_DOWN_ICON___1628 = (r0); - r0 = pxsim.image.ofBuffer(_hex1630); - globals.CLOSE_MENU_ICON___1631 = (r0); - r0 = pxsim.image.ofBuffer(_hex1633); - globals.VOLUME_DOWN_ICON___1634 = (r0); - r0 = pxsim.image.ofBuffer(_hex1636); - globals.SLEEP_ICON___1637 = (r0); - r0 = pxsim.image.ofBuffer(_hex1639); - globals.CONSOLE_ICON___1640 = (r0); - r0 = pxsim.image.ofBuffer(_hex1642); - globals.BRIGHTNESS_UP_ICON___1643 = (r0); - r0 = pxsim.image.ofBuffer(_hex1645); - globals.STATS_ICON___1646 = (r0); - globals.consoleColor___1649 = (1); - globals.tabSize___1652 = (8); - globals.consoleFont___1658 = (globals.font5___537); - r0 = pxsim_ImageMethods.height(globals.screen___578); + r0 = pxsim_Array__push(globals.scene_Scene_initializers___2431, scene_systemMenu_register__P2625); + r0 = pxsim.image.ofBuffer(_hex4545); + globals.CARD_NORMAL___2630 = (r0); + r0 = pxsim.image.ofBuffer(_hex4547); + globals.CARD_SELECTED___2631 = (r0); + r0 = pxsim.image.ofBuffer(_hex4549); + globals.CARD_ACTIVE___2632 = (r0); + r0 = pxsim.image.ofBuffer(_hex4551); + globals.VOLUME_UP_ICON___2633 = (r0); + r0 = pxsim.image.ofBuffer(_hex4553); + globals.BRIGHTNESS_DOWN_ICON___2634 = (r0); + r0 = pxsim.image.ofBuffer(_hex4555); + globals.CLOSE_MENU_ICON___2635 = (r0); + r0 = pxsim.image.ofBuffer(_hex4557); + globals.VOLUME_DOWN_ICON___2636 = (r0); + r0 = pxsim.image.ofBuffer(_hex4559); + globals.SLEEP_ICON___2637 = (r0); + r0 = pxsim.image.ofBuffer(_hex4561); + globals.CONSOLE_ICON___2638 = (r0); + r0 = pxsim.image.ofBuffer(_hex4563); + globals.BRIGHTNESS_UP_ICON___2639 = (r0); + r0 = pxsim.image.ofBuffer(_hex4565); + globals.STATS_ICON___2640 = (r0); + globals.consoleColor___4568 = (1); + globals.tabSize___4571 = (8); + globals.consoleFont___4577 = (globals.font5___1747); + r0 = pxsim_ImageMethods.height(globals.screen___1799); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___1658; + s.tmp_5.arg0 = globals.consoleFont___4577; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { @@ -903,13 +903,13 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___1663 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___578); + globals.consoleLines___4582 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___1799); 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___1658; + s.tmp_4.arg0 = globals.consoleFont___4577; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); } else { @@ -924,22 +924,22 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___1674 = (r0); - s.tmp_0 = console_addListener__P261_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P1686; + globals.consoleColumns___4592 = (r0); + s.tmp_0 = console_addListener__P369_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P4604; s.callLocIdx = 27; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = inline__P1696; + s.tmp_0.argL = inline__P4608; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 29; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; - globals.MAX_SOURCES___1694 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C1779_VT); + globals.MAX_SOURCES___4606 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C2710_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P1785_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P2711_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; @@ -947,308 +947,308 @@ switch (step) { s.callLocIdx = 30; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - globals.defaultFactory___1735 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C1565_VT); + globals.defaultFactory___2690 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2578_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P1572_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P2580_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; s.callLocIdx = 31; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - globals.galois___1758 = (s.tmp_0); - globals.angleSlice___1766 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C1852_VT); + globals.galois___4641 = (s.tmp_0); + globals.angleSlice___4649 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C2785_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P1856_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P2786_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__P21174; + s.tmp_1.arg4 = inline__P22936; s.callLocIdx = 37; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; - globals.confetti___1866 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C1893_VT); + globals.confetti___2793 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C2808_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P1897_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P2809_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = inline__P24118; + s.tmp_1.arg2 = inline__P25807; s.callLocIdx = 43; s.pc = 26; return s.tmp_1; case 26: r0 = s.retval; - globals.dissolve___1899 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C1893_VT); + globals.dissolve___2813 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C2808_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P1897_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P2809_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = inline__P21066; + s.tmp_1.arg2 = inline__P22828; s.callLocIdx = 46; s.pc = 27; return s.tmp_1; case 27: r0 = s.retval; - globals.melt___1901 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C1907_VT); + globals.melt___2814 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C2823_VT); s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P1908_mk(s); + s.tmp_1 = texteffects_TextEffect_constructor__P2825_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P1912; + s.tmp_1.arg1 = inline__P4700; s.callLocIdx = 47; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - globals.shake___1910 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C1907_VT); + globals.shake___2826 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C2823_VT); s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P1908_mk(s); + s.tmp_1 = texteffects_TextEffect_constructor__P2825_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P1926; + s.tmp_1.arg1 = inline__P4713; s.callLocIdx = 57; s.pc = 29; return s.tmp_1; case 29: r0 = s.retval; - globals.wave___1924 = (s.tmp_0); - s.tmp_0 = game_addScenePushHandler__P939_mk(s); - s.tmp_0.arg0 = inline__P2064; + globals.wave___2827 = (s.tmp_0); + s.tmp_0 = game_addScenePushHandler__P2541_mk(s); + s.tmp_0.arg0 = inline__P4781; s.callLocIdx = 58; s.pc = 30; return s.tmp_0; case 30: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P956_mk(s); - s.tmp_0.arg0 = inline__P2079; + s.tmp_0 = game_addScenePopHandler__P2543_mk(s); + s.tmp_0.arg0 = inline__P4796; s.callLocIdx = 62; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; - s.tmp_0 = game_setWaitAnyButton__P1288_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P745; + s.tmp_0 = game_setWaitAnyButton__P2525_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P1950; s.callLocIdx = 63; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - s.tmp_0 = game_eventContext__P1290_mk(s); + s.tmp_0 = game_eventContext__P2527_mk(s); s.callLocIdx = 64; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; r0 = pxsim_String_.charCodeAt("0", 0); - globals.zeroCode___3834 = (r0); - globals.ruleBuf___4643 = (null); - globals.bitIndex___4645 = (0); - globals.TileWorldVersion___5977 = ("4.0.0"); - globals.toHex___6576 = ("0123456789abcdef"); - globals.VersionKey___6418 = ("VersionS"); - globals.HelpKey___6366 = ("HelpN"); - globals.BackImgCntKey___6437 = ("BackN"); - globals.SpriteImgCntKey___6446 = ("SpriteN"); - globals.PlayerIndexKey___6455 = ("PlayerN"); - globals.WorldBackgroundsKey___6341 = ("WBackM"); - globals.WorldSpritesKey___6355 = ("WSpriteM"); - globals.BackImageKey___6729 = ("BackI"); - globals.SpriteImageKey___6731 = ("SpriteI"); - globals.RuleKey___6323 = ("RuleB"); - globals.HighScoreKey___6382 = ("HighN"); - r0 = pxsim.image.ofBuffer(_hex7216); - globals.map___7217 = (r0); - r0 = pxsim.image.ofBuffer(_hex7219); - globals.play___7220 = (r0); - r0 = pxsim.image.ofBuffer(_hex7222); - globals.debug___7223 = (r0); - r0 = pxsim.image.ofBuffer(_hex7225); - globals.code___7226 = (r0); - r0 = pxsim.image.ofBuffer(_hex7228); - globals.paint___7229 = (r0); - r0 = pxsim.image.ofBuffer(_hex7231); - globals.music___7232 = (r0); - r0 = pxsim.image.ofBuffer(_hex7234); - globals.garbageCan___7235 = (r0); - r0 = pxsim.image.ofBuffer(_hex7237); - globals.settingsIcon___7238 = (r0); - r0 = pxsim.image.ofBuffer(_hex7240); - globals.addRule___7241 = (r0); - r0 = pxsim.image.ofBuffer(_hex7243); - globals.emptyTile___7244 = (r0); - r0 = pxsim.image.ofBuffer(_hex7246); - globals.emptyDiagTile___7247 = (r0); - r0 = pxsim.image.ofBuffer(_hex7249); - globals.cursorIn___7250 = (r0); - r0 = pxsim.image.ofBuffer(_hex7252); - globals.cursorOut___7253 = (r0); - r0 = pxsim.image.ofBuffer(_hex7255); - globals.collisionSprite___7256 = (r0); - r0 = pxsim.image.ofBuffer(_hex7258); - globals.genericSprite___7259 = (r0); - r0 = pxsim.image.ofBuffer(_hex7261); - globals.exclude___7262 = (r0); - r0 = pxsim.image.ofBuffer(_hex7264); - globals.include___7265 = (r0); - r0 = pxsim.image.ofBuffer(_hex7267); - globals.include2___7268 = (r0); - r0 = pxsim.image.ofBuffer(_hex7270); - globals.ok___7271 = (r0); - r0 = pxsim.image.ofBuffer(_hex7273); - globals.anyOutline___7274 = (r0); - r0 = pxsim.image.ofBuffer(_hex7276); - globals.allFourOutline___7277 = (r0); - r0 = pxsim.image.ofBuffer(_hex7279); - globals.restingOutline___7280 = (r0); - r0 = pxsim.image.ofBuffer(_hex7282); - globals.downArrowOutline___7283 = (r0); - r0 = pxsim.image.ofBuffer(_hex7285); - globals.upArrowOutline___7286 = (r0); - r0 = pxsim.image.ofBuffer(_hex7288); - globals.rightArrowOutline___7289 = (r0); - r0 = pxsim.image.ofBuffer(_hex7291); - globals.leftArrowOutline___7292 = (r0); - r0 = pxsim.image.ofBuffer(_hex7294); - globals.leftButton___7295 = (r0); - r0 = pxsim.image.ofBuffer(_hex7297); - globals.rightButton___7298 = (r0); - r0 = pxsim.image.ofBuffer(_hex7300); - globals.downButton___7301 = (r0); - r0 = pxsim.image.ofBuffer(_hex7303); - globals.upButton___7304 = (r0); - r0 = pxsim.image.ofBuffer(_hex7306); - globals.AButton___7307 = (r0); - r0 = pxsim.image.ofBuffer(_hex7309); - globals.flipHoriz___7310 = (r0); - r0 = pxsim.image.ofBuffer(_hex7312); - globals.flipVert___7313 = (r0); - r0 = pxsim.image.ofBuffer(_hex7315); - globals.rotate3way___7316 = (r0); - r0 = pxsim.image.ofBuffer(_hex7318); - globals.leftRotate___7319 = (r0); - r0 = pxsim.image.ofBuffer(_hex7321); - globals.rightRotate___7322 = (r0); - r0 = pxsim.image.ofBuffer(_hex7324); - globals.allFour___7325 = (r0); - r0 = pxsim.image.ofBuffer(_hex7327); - globals.downArrow___7328 = (r0); - r0 = pxsim.image.ofBuffer(_hex7330); - globals.upArrow___7331 = (r0); - r0 = pxsim.image.ofBuffer(_hex7333); - globals.rightArrow___7334 = (r0); - r0 = pxsim.image.ofBuffer(_hex7336); - globals.leftArrow___7337 = (r0); - r0 = pxsim.image.ofBuffer(_hex7339); - globals.eat___7340 = (r0); - r0 = pxsim.image.ofBuffer(_hex7342); - globals.stopSign___7343 = (r0); - r0 = pxsim.image.ofBuffer(_hex7345); - globals.uTurn___7346 = (r0); - r0 = pxsim.image.ofBuffer(_hex7348); - globals.spawn___7349 = (r0); - r0 = pxsim.image.ofBuffer(_hex7351); - globals.smallPaint___7352 = (r0); - r0 = pxsim.image.ofBuffer(_hex7354); - globals.portal___7355 = (r0); - r0 = pxsim.image.ofBuffer(_hex7357); - globals.gameIcon___7358 = (r0); - r0 = pxsim.image.ofBuffer(_hex7360); - globals.trophyUp___7361 = (r0); - r0 = pxsim.image.ofBuffer(_hex7363); - globals.trophyDown___7364 = (r0); - r0 = pxsim.image.ofBuffer(_hex7366); - globals.scoreUp10___7367 = (r0); - r0 = pxsim.image.ofBuffer(_hex7369); - globals.diskIcon___7370 = (r0); - r0 = pxsim.image.ofBuffer(_hex7372); - globals.reset___7373 = (r0); - r0 = pxsim.image.ofBuffer(_hex7375); - globals.negate___7376 = (r0); - r0 = pxsim.image.ofBuffer(_hex7378); - globals.twCursor___7379 = (r0); - r0 = pxsim.image.ofBuffer(_hex7381); - globals.apple___7382 = (r0); - r0 = pxsim.image.ofBuffer(_hex7384); - globals.snakeHead___7385 = (r0); - r0 = pxsim.image.ofBuffer(_hex7387); - globals.snakeBody___7388 = (r0); - r0 = pxsim.image.ofBuffer(_hex7390); - globals.ship___7391 = (r0); - r0 = pxsim.image.ofBuffer(_hex7393); - globals.alien___7394 = (r0); - r0 = pxsim.image.ofBuffer(_hex7396); - globals.missile___7397 = (r0); - r0 = pxsim.image.ofBuffer(_hex7399); - globals.cat___7400 = (r0); - r0 = pxsim.image.ofBuffer(_hex7402); - globals.fish___7403 = (r0); - r0 = pxsim.image.ofBuffer(_hex7405); - globals.dog___7406 = (r0); - r0 = pxsim.image.ofBuffer(_hex7408); - globals.chimp___7409 = (r0); - r0 = pxsim.image.ofBuffer(_hex7181); - globals.player___7180 = (r0); - r0 = pxsim.image.ofBuffer(_hex7412); - globals.diamond___7413 = (r0); - r0 = pxsim.image.ofBuffer(_hex7415); - globals.boulder___7416 = (r0); - r0 = pxsim.image.ofBuffer(_hex7418); - globals.enemy___7419 = (r0); - r0 = pxsim.image.ofBuffer(_hex7163); - globals.brick___7162 = (r0); - r0 = pxsim.image.ofBuffer(_hex7422); - globals.grass___7423 = (r0); - r0 = pxsim.image.ofBuffer(_hex7425); - globals.water___7426 = (r0); - r0 = pxsim.image.ofBuffer(_hex7428); - globals.dirt2___7429 = (r0); - r0 = pxsim.image.ofBuffer(_hex7431); - globals.wall___7432 = (r0); - r0 = pxsim.image.ofBuffer(_hex7434); - globals.wall2___7435 = (r0); - r0 = pxsim.image.ofBuffer(_hex7437); - globals.dirt___7438 = (r0); - r0 = pxsim.image.ofBuffer(_hex7440); - globals.space___7441 = (r0); + globals.zeroCode___5966 = (r0); + globals.ruleBuf___6715 = (null); + globals.bitIndex___6717 = (0); + globals.TileWorldVersion___3665 = ("4.0.0"); + globals.toHex___8549 = ("0123456789abcdef"); + globals.VersionKey___8394 = ("VersionS"); + globals.HelpKey___8342 = ("HelpN"); + globals.BackImgCntKey___8412 = ("BackN"); + globals.SpriteImgCntKey___8421 = ("SpriteN"); + globals.PlayerIndexKey___8430 = ("PlayerN"); + globals.WorldBackgroundsKey___8317 = ("WBackM"); + globals.WorldSpritesKey___8331 = ("WSpriteM"); + globals.BackImageKey___8702 = ("BackI"); + globals.SpriteImageKey___8704 = ("SpriteI"); + globals.RuleKey___8299 = ("RuleB"); + globals.HighScoreKey___8358 = ("HighN"); + r0 = pxsim.image.ofBuffer(_hex9182); + globals.map___3712 = (r0); + r0 = pxsim.image.ofBuffer(_hex9184); + globals.play___3713 = (r0); + r0 = pxsim.image.ofBuffer(_hex9186); + globals.debug___3714 = (r0); + r0 = pxsim.image.ofBuffer(_hex9188); + globals.code___3715 = (r0); + r0 = pxsim.image.ofBuffer(_hex9190); + globals.paint___3716 = (r0); + r0 = pxsim.image.ofBuffer(_hex9192); + globals.music___3717 = (r0); + r0 = pxsim.image.ofBuffer(_hex9194); + globals.garbageCan___3718 = (r0); + r0 = pxsim.image.ofBuffer(_hex9196); + globals.settingsIcon___3719 = (r0); + r0 = pxsim.image.ofBuffer(_hex9198); + globals.addRule___3720 = (r0); + r0 = pxsim.image.ofBuffer(_hex9200); + globals.emptyTile___3721 = (r0); + r0 = pxsim.image.ofBuffer(_hex9202); + globals.emptyDiagTile___3722 = (r0); + r0 = pxsim.image.ofBuffer(_hex9204); + globals.cursorIn___3723 = (r0); + r0 = pxsim.image.ofBuffer(_hex9206); + globals.cursorOut___3724 = (r0); + r0 = pxsim.image.ofBuffer(_hex9208); + globals.collisionSprite___3725 = (r0); + r0 = pxsim.image.ofBuffer(_hex9210); + globals.genericSprite___3726 = (r0); + r0 = pxsim.image.ofBuffer(_hex9212); + globals.exclude___3727 = (r0); + r0 = pxsim.image.ofBuffer(_hex9214); + globals.include___3728 = (r0); + r0 = pxsim.image.ofBuffer(_hex9216); + globals.include2___3729 = (r0); + r0 = pxsim.image.ofBuffer(_hex9218); + globals.ok___3730 = (r0); + r0 = pxsim.image.ofBuffer(_hex9220); + globals.anyOutline___3731 = (r0); + r0 = pxsim.image.ofBuffer(_hex9222); + globals.allFourOutline___3732 = (r0); + r0 = pxsim.image.ofBuffer(_hex9224); + globals.restingOutline___3733 = (r0); + r0 = pxsim.image.ofBuffer(_hex9226); + globals.downArrowOutline___3734 = (r0); + r0 = pxsim.image.ofBuffer(_hex9228); + globals.upArrowOutline___3735 = (r0); + r0 = pxsim.image.ofBuffer(_hex9230); + globals.rightArrowOutline___3736 = (r0); + r0 = pxsim.image.ofBuffer(_hex9232); + globals.leftArrowOutline___3737 = (r0); + r0 = pxsim.image.ofBuffer(_hex9234); + globals.leftButton___3738 = (r0); + r0 = pxsim.image.ofBuffer(_hex9236); + globals.rightButton___3739 = (r0); + r0 = pxsim.image.ofBuffer(_hex9238); + globals.downButton___3740 = (r0); + r0 = pxsim.image.ofBuffer(_hex9240); + globals.upButton___3741 = (r0); + r0 = pxsim.image.ofBuffer(_hex9242); + globals.AButton___3742 = (r0); + r0 = pxsim.image.ofBuffer(_hex9244); + globals.flipHoriz___3743 = (r0); + r0 = pxsim.image.ofBuffer(_hex9246); + globals.flipVert___3744 = (r0); + r0 = pxsim.image.ofBuffer(_hex9248); + globals.rotate3way___3745 = (r0); + r0 = pxsim.image.ofBuffer(_hex9250); + globals.leftRotate___3746 = (r0); + r0 = pxsim.image.ofBuffer(_hex9252); + globals.rightRotate___3747 = (r0); + r0 = pxsim.image.ofBuffer(_hex9254); + globals.allFour___3748 = (r0); + r0 = pxsim.image.ofBuffer(_hex9256); + globals.downArrow___3749 = (r0); + r0 = pxsim.image.ofBuffer(_hex9258); + globals.upArrow___3750 = (r0); + r0 = pxsim.image.ofBuffer(_hex9260); + globals.rightArrow___3751 = (r0); + r0 = pxsim.image.ofBuffer(_hex9262); + globals.leftArrow___3752 = (r0); + r0 = pxsim.image.ofBuffer(_hex9264); + globals.eat___3753 = (r0); + r0 = pxsim.image.ofBuffer(_hex9266); + globals.stopSign___3754 = (r0); + r0 = pxsim.image.ofBuffer(_hex9268); + globals.uTurn___3755 = (r0); + r0 = pxsim.image.ofBuffer(_hex9270); + globals.spawn___3756 = (r0); + r0 = pxsim.image.ofBuffer(_hex9272); + globals.smallPaint___3757 = (r0); + r0 = pxsim.image.ofBuffer(_hex9274); + globals.portal___3758 = (r0); + r0 = pxsim.image.ofBuffer(_hex9276); + globals.gameIcon___3759 = (r0); + r0 = pxsim.image.ofBuffer(_hex9278); + globals.trophyUp___3760 = (r0); + r0 = pxsim.image.ofBuffer(_hex9280); + globals.trophyDown___3761 = (r0); + r0 = pxsim.image.ofBuffer(_hex9282); + globals.scoreUp10___3762 = (r0); + r0 = pxsim.image.ofBuffer(_hex9284); + globals.diskIcon___3763 = (r0); + r0 = pxsim.image.ofBuffer(_hex9286); + globals.reset___3764 = (r0); + r0 = pxsim.image.ofBuffer(_hex9288); + globals.negate___3765 = (r0); + r0 = pxsim.image.ofBuffer(_hex9290); + globals.twCursor___9291 = (r0); + r0 = pxsim.image.ofBuffer(_hex9293); + globals.apple___9294 = (r0); + r0 = pxsim.image.ofBuffer(_hex9296); + globals.snakeHead___3766 = (r0); + r0 = pxsim.image.ofBuffer(_hex9298); + globals.snakeBody___9299 = (r0); + r0 = pxsim.image.ofBuffer(_hex9301); + globals.ship___9302 = (r0); + r0 = pxsim.image.ofBuffer(_hex9304); + globals.alien___9305 = (r0); + r0 = pxsim.image.ofBuffer(_hex9307); + globals.missile___9308 = (r0); + r0 = pxsim.image.ofBuffer(_hex9310); + globals.cat___9311 = (r0); + r0 = pxsim.image.ofBuffer(_hex9313); + globals.fish___9314 = (r0); + r0 = pxsim.image.ofBuffer(_hex9316); + globals.dog___3767 = (r0); + r0 = pxsim.image.ofBuffer(_hex9318); + globals.chimp___9319 = (r0); + r0 = pxsim.image.ofBuffer(_hex9147); + globals.player___3768 = (r0); + r0 = pxsim.image.ofBuffer(_hex9322); + globals.diamond___9323 = (r0); + r0 = pxsim.image.ofBuffer(_hex9325); + globals.boulder___9326 = (r0); + r0 = pxsim.image.ofBuffer(_hex9328); + globals.enemy___3769 = (r0); + r0 = pxsim.image.ofBuffer(_hex9131); + globals.brick___9130 = (r0); + r0 = pxsim.image.ofBuffer(_hex9331); + globals.grass___9332 = (r0); + r0 = pxsim.image.ofBuffer(_hex9334); + globals.water___9335 = (r0); + r0 = pxsim.image.ofBuffer(_hex9337); + globals.dirt2___9338 = (r0); + r0 = pxsim.image.ofBuffer(_hex9340); + globals.wall___9341 = (r0); + r0 = pxsim.image.ofBuffer(_hex9343); + globals.wall2___9344 = (r0); + r0 = pxsim.image.ofBuffer(_hex9346); + globals.dirt___9347 = (r0); + r0 = pxsim.image.ofBuffer(_hex9349); + globals.space___9350 = (r0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.player___7180); - r0 = pxsim_Array__push(s.tmp_0, globals.ship___7391); - r0 = pxsim_Array__push(s.tmp_0, globals.snakeHead___7385); - r0 = pxsim_Array__push(s.tmp_0, globals.diamond___7413); - r0 = pxsim_Array__push(s.tmp_0, globals.alien___7394); - r0 = pxsim_Array__push(s.tmp_0, globals.missile___7397); - r0 = pxsim_Array__push(s.tmp_0, globals.twCursor___7379); - r0 = pxsim_Array__push(s.tmp_0, globals.boulder___7416); - r0 = pxsim_Array__push(s.tmp_0, globals.enemy___7419); - r0 = pxsim_Array__push(s.tmp_0, globals.apple___7382); - r0 = pxsim_Array__push(s.tmp_0, globals.snakeBody___7388); - globals.gallerySprites___7178 = (s.tmp_0); + r0 = pxsim_Array__push(s.tmp_0, globals.player___3768); + r0 = pxsim_Array__push(s.tmp_0, globals.ship___9302); + r0 = pxsim_Array__push(s.tmp_0, globals.snakeHead___3766); + r0 = pxsim_Array__push(s.tmp_0, globals.diamond___9323); + r0 = pxsim_Array__push(s.tmp_0, globals.alien___9305); + r0 = pxsim_Array__push(s.tmp_0, globals.missile___9308); + r0 = pxsim_Array__push(s.tmp_0, globals.twCursor___9291); + r0 = pxsim_Array__push(s.tmp_0, globals.boulder___9326); + r0 = pxsim_Array__push(s.tmp_0, globals.enemy___3769); + r0 = pxsim_Array__push(s.tmp_0, globals.apple___9294); + r0 = pxsim_Array__push(s.tmp_0, globals.snakeBody___9299); + globals.gallerySprites___3770 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.brick___7162); - r0 = pxsim_Array__push(s.tmp_0, globals.grass___7423); - r0 = pxsim_Array__push(s.tmp_0, globals.water___7426); - r0 = pxsim_Array__push(s.tmp_0, globals.dirt___7438); - r0 = pxsim_Array__push(s.tmp_0, globals.dirt2___7429); - r0 = pxsim_Array__push(s.tmp_0, globals.space___7441); - r0 = pxsim_Array__push(s.tmp_0, globals.wall___7432); - globals.galleryTiles___7160 = (s.tmp_0); - r0 = pxsim.image.ofBuffer(_hex10040); - globals.colorOut___10041 = (r0); - r0 = pxsim.image.ofBuffer(_hex10043); - globals.colorIn___10044 = (r0); - r0 = pxsim.image.ofBuffer(_hex10046); - globals.paintOut___10047 = (r0); - r0 = pxsim.image.ofBuffer(_hex10049); - globals.paintIn___10050 = (r0); + r0 = pxsim_Array__push(s.tmp_0, globals.brick___9130); + r0 = pxsim_Array__push(s.tmp_0, globals.grass___9332); + r0 = pxsim_Array__push(s.tmp_0, globals.water___9335); + r0 = pxsim_Array__push(s.tmp_0, globals.dirt___9347); + r0 = pxsim_Array__push(s.tmp_0, globals.dirt2___9338); + r0 = pxsim_Array__push(s.tmp_0, globals.space___9350); + r0 = pxsim_Array__push(s.tmp_0, globals.wall___9341); + globals.galleryTiles___3771 = (s.tmp_0); + r0 = pxsim.image.ofBuffer(_hex11893); + globals.colorOut___11894 = (r0); + r0 = pxsim.image.ofBuffer(_hex11896); + globals.colorIn___11897 = (r0); + r0 = pxsim.image.ofBuffer(_hex11899); + globals.paintOut___11900 = (r0); + r0 = pxsim.image.ofBuffer(_hex11902); + globals.paintIn___11903 = (r0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.leftArrow___7337); - r0 = pxsim_Array__push(s.tmp_0, globals.upArrow___7331); - r0 = pxsim_Array__push(s.tmp_0, globals.rightArrow___7334); - r0 = pxsim_Array__push(s.tmp_0, globals.downArrow___7328); - r0 = pxsim_Array__push(s.tmp_0, globals.stopSign___7343); - r0 = pxsim_Array__push(s.tmp_0, globals.uTurn___7346); - globals.moveImages___11219 = (s.tmp_0); + r0 = pxsim_Array__push(s.tmp_0, globals.leftArrow___3752); + r0 = pxsim_Array__push(s.tmp_0, globals.upArrow___3750); + r0 = pxsim_Array__push(s.tmp_0, globals.rightArrow___3751); + r0 = pxsim_Array__push(s.tmp_0, globals.downArrow___3749); + r0 = pxsim_Array__push(s.tmp_0, globals.stopSign___3754); + r0 = pxsim_Array__push(s.tmp_0, globals.uTurn___3755); + globals.moveImages___3788 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.leftArrowOutline___7292); - r0 = pxsim_Array__push(s.tmp_0, globals.upArrowOutline___7286); - r0 = pxsim_Array__push(s.tmp_0, globals.rightArrowOutline___7289); - r0 = pxsim_Array__push(s.tmp_0, globals.downArrowOutline___7283); - r0 = pxsim_Array__push(s.tmp_0, globals.restingOutline___7280); - r0 = pxsim_Array__push(s.tmp_0, globals.allFourOutline___7277); - r0 = pxsim_Array__push(s.tmp_0, globals.anyOutline___7274); - globals.movedImages___11227 = (s.tmp_0); + r0 = pxsim_Array__push(s.tmp_0, globals.leftArrowOutline___3737); + r0 = pxsim_Array__push(s.tmp_0, globals.upArrowOutline___3735); + r0 = pxsim_Array__push(s.tmp_0, globals.rightArrowOutline___3736); + r0 = pxsim_Array__push(s.tmp_0, globals.downArrowOutline___3734); + r0 = pxsim_Array__push(s.tmp_0, globals.restingOutline___3733); + r0 = pxsim_Array__push(s.tmp_0, globals.allFourOutline___3732); + r0 = pxsim_Array__push(s.tmp_0, globals.anyOutline___3731); + globals.movedImages___3789 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, "left"); @@ -1257,41 +1257,41 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_0, "down"); r0 = pxsim_Array__push(s.tmp_0, "stop"); r0 = pxsim_Array__push(s.tmp_0, "u-turn"); - globals.moveText___11235 = (s.tmp_0); + globals.moveText___3790 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.leftButton___7295); - r0 = pxsim_Array__push(s.tmp_0, globals.upButton___7304); - r0 = pxsim_Array__push(s.tmp_0, globals.rightButton___7298); - r0 = pxsim_Array__push(s.tmp_0, globals.downButton___7301); - r0 = pxsim_Array__push(s.tmp_0, globals.AButton___7307); - globals.buttonImages___11238 = (s.tmp_0); + r0 = pxsim_Array__push(s.tmp_0, globals.leftButton___3738); + r0 = pxsim_Array__push(s.tmp_0, globals.upButton___3741); + r0 = pxsim_Array__push(s.tmp_0, globals.rightButton___3739); + r0 = pxsim_Array__push(s.tmp_0, globals.downButton___3740); + r0 = pxsim_Array__push(s.tmp_0, globals.AButton___3742); + globals.buttonImages___3791 = (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, 0); - globals.attrValues___11248 = (s.tmp_0); + globals.attrValues___3792 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.include___7265); - r0 = pxsim_Array__push(s.tmp_0, globals.include2___7268); - r0 = pxsim_Array__push(s.tmp_0, globals.exclude___7262); - r0 = pxsim_Array__push(s.tmp_0, globals.ok___7271); - globals.attrImages___11251 = (s.tmp_0); + r0 = pxsim_Array__push(s.tmp_0, globals.include___3728); + r0 = pxsim_Array__push(s.tmp_0, globals.include2___3729); + r0 = pxsim_Array__push(s.tmp_0, globals.exclude___3727); + r0 = pxsim_Array__push(s.tmp_0, globals.ok___3730); + globals.attrImages___3793 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.trophyUp___7361); - r0 = pxsim_Array__push(s.tmp_0, globals.trophyDown___7364); - r0 = pxsim_Array__push(s.tmp_0, globals.scoreUp10___7367); - globals.gameImages___11257 = (s.tmp_0); + r0 = pxsim_Array__push(s.tmp_0, globals.trophyUp___3760); + r0 = pxsim_Array__push(s.tmp_0, globals.trophyDown___3761); + r0 = pxsim_Array__push(s.tmp_0, globals.scoreUp10___3762); + globals.gameImages___3794 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, "win"); r0 = pxsim_Array__push(s.tmp_0, "lose"); r0 = pxsim_Array__push(s.tmp_0, "score+10"); - globals.gameText___11261 = (s.tmp_0); + globals.gameText___3795 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, 0); @@ -1300,28 +1300,28 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_0, 3); r0 = pxsim_Array__push(s.tmp_0, 5); r0 = pxsim_Array__push(s.tmp_0, 6); - globals.transformMap___12377 = (s.tmp_0); + globals.transformMap___14209 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.include2___7268); - r0 = pxsim_Array__push(s.tmp_0, globals.flipHoriz___7310); - r0 = pxsim_Array__push(s.tmp_0, globals.flipVert___7313); - r0 = pxsim_Array__push(s.tmp_0, globals.leftRotate___7319); - r0 = pxsim_Array__push(s.tmp_0, globals.rightRotate___7322); - r0 = pxsim_Array__push(s.tmp_0, globals.rotate3way___7316); - globals.transformImages___12380 = (s.tmp_0); - globals.helpStringTop___12551 = ("31any,21moved left,41moved right,30moved up,32moved down,22rested,42moved,61dpad left,81dpad right,70dpad up,72dpad down,71A button,"); - globals.helpStringBot___12553 = ("25collide left,34collide up,36collide down,45collide right,64never,"); + r0 = pxsim_Array__push(s.tmp_0, globals.include2___3729); + r0 = pxsim_Array__push(s.tmp_0, globals.flipHoriz___3743); + r0 = pxsim_Array__push(s.tmp_0, globals.flipVert___3744); + r0 = pxsim_Array__push(s.tmp_0, globals.leftRotate___3746); + r0 = pxsim_Array__push(s.tmp_0, globals.rightRotate___3747); + r0 = pxsim_Array__push(s.tmp_0, globals.rotate3way___3745); + globals.transformImages___14212 = (s.tmp_0); + globals.helpStringTop___14381 = ("31any,21moved left,41moved right,30moved up,32moved down,22rested,42moved,61dpad left,81dpad right,70dpad up,72dpad down,71A button,"); + globals.helpStringBot___14383 = ("25collide left,34collide up,36collide down,45collide right,64never,"); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.allFour___7325); - r0 = pxsim_Array__push(s.tmp_0, globals.paint___7229); - r0 = pxsim_Array__push(s.tmp_0, globals.spawn___7349); - r0 = pxsim_Array__push(s.tmp_0, globals.eat___7340); - r0 = pxsim_Array__push(s.tmp_0, globals.gameIcon___7358); - r0 = pxsim_Array__push(s.tmp_0, globals.portal___7355); - r0 = pxsim_Array__push(s.tmp_0, globals.exclude___7262); - globals.categoryImages___13289 = (s.tmp_0); + r0 = pxsim_Array__push(s.tmp_0, globals.allFour___3748); + r0 = pxsim_Array__push(s.tmp_0, globals.paint___3716); + r0 = pxsim_Array__push(s.tmp_0, globals.spawn___3756); + r0 = pxsim_Array__push(s.tmp_0, globals.eat___3753); + r0 = pxsim_Array__push(s.tmp_0, globals.gameIcon___3759); + r0 = pxsim_Array__push(s.tmp_0, globals.portal___3758); + r0 = pxsim_Array__push(s.tmp_0, globals.exclude___3727); + globals.categoryImages___15105 = (s.tmp_0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, "move"); @@ -1331,80 +1331,80 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_0, "game"); r0 = pxsim_Array__push(s.tmp_0, "portal"); r0 = pxsim_Array__push(s.tmp_0, "block"); - globals.categoryText___13297 = (s.tmp_0); - globals.menuHelpString___13299 = ("10map,20play,30debug,50generalize rule,60delete rule,80add rule,90next rule,70previous rule,"); - globals.attrHelpString___13301 = ("00include,10exclude,90reset,"); - r0 = pxsim.image.ofBuffer(_hex14744); - globals.paintOut___14745 = (r0); - r0 = pxsim.image.ofBuffer(_hex14747); - globals.paintIn___14748 = (r0); - globals.helpString___15710 = ("00map,10paint,20code,30play,90settings,"); + globals.categoryText___15113 = (s.tmp_0); + globals.menuHelpString___15115 = ("10map,20play,30debug,50generalize rule,60delete rule,80add rule,90next rule,70previous rule,"); + globals.attrHelpString___15117 = ("00include,10exclude,90reset,"); + r0 = pxsim.image.ofBuffer(_hex16556); + globals.paintOut___16557 = (r0); + r0 = pxsim.image.ofBuffer(_hex16559); + globals.paintIn___16560 = (r0); + globals.helpString___17516 = ("00map,10paint,20code,30play,90settings,"); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.map___7217); - r0 = pxsim_Array__push(s.tmp_0, globals.paint___7229); - r0 = pxsim_Array__push(s.tmp_0, globals.code___7226); - r0 = pxsim_Array__push(s.tmp_0, globals.play___7220); - globals.commandImages___15713 = (s.tmp_0); - s.tmp_0 = createBejeweled__P16393_mk(s); - s.tmp_0.arg0 = "TW1-"; - s.callLocIdx = 1473; s.pc = 34; return s.tmp_0; + r0 = pxsim_Array__push(s.tmp_0, globals.map___3712); + r0 = pxsim_Array__push(s.tmp_0, globals.paint___3716); + r0 = pxsim_Array__push(s.tmp_0, globals.code___3715); + r0 = pxsim_Array__push(s.tmp_0, globals.play___3713); + globals.commandImages___17519 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_LoadScreen__C3832_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_LoadScreen_constructor__P3833_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1473; s.pc = 34; return s.tmp_1; case 34: r0 = s.retval; - s.tmp_0 = createSnake__P16395_mk(s); - s.tmp_0.arg0 = "TW2-"; + globals.TileWorld___3834 = (s.tmp_0); + s.tmp_0 = createBejeweled__P3837_mk(s); + s.tmp_0.arg0 = "TW1-"; s.callLocIdx = 1474; s.pc = 35; return s.tmp_0; case 35: r0 = s.retval; - s.tmp_0 = createBoulderDash__P16397_mk(s); - s.tmp_0.arg0 = "TW3-"; + s.tmp_0 = createSnake__P3836_mk(s); + s.tmp_0.arg0 = "TW2-"; s.callLocIdx = 1475; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; - s.tmp_0 = createLeftHandRule__P16399_mk(s); - s.tmp_0.arg0 = "TW4-"; + s.tmp_0 = createBoulderDash__P3835_mk(s); + s.tmp_0.arg0 = "TW3-"; s.callLocIdx = 1476; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; - s.tmp_0 = createHelloWorld__P16401_mk(s); - s.tmp_0.arg0 = "TW5-"; + s.tmp_0 = createLeftHandRule__P3838_mk(s); + s.tmp_0.arg0 = "TW4-"; s.callLocIdx = 1477; s.pc = 38; return s.tmp_0; case 38: r0 = s.retval; - s.tmp_0 = createSpaceInvaders__P16403_mk(s); - s.tmp_0.arg0 = "TW6-"; + s.tmp_0 = createHelloWorld__P3843_mk(s); + s.tmp_0.arg0 = "TW5-"; s.callLocIdx = 1478; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; - s.tmp_0 = createSokoban__P16405_mk(s); - s.tmp_0.arg0 = "TW7-"; + s.tmp_0 = createSpaceInvaders__P3841_mk(s); + s.tmp_0.arg0 = "TW6-"; s.callLocIdx = 1479; s.pc = 40; return s.tmp_0; case 40: r0 = s.retval; - s.tmp_0 = createPacMan__P16407_mk(s); - s.tmp_0.arg0 = "TW8-"; + s.tmp_0 = createSokoban__P3842_mk(s); + s.tmp_0.arg0 = "TW7-"; s.callLocIdx = 1480; s.pc = 41; return s.tmp_0; case 41: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_LoadScreen__C16011_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_LoadScreen_constructor__P16016_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1756; s.pc = 42; return s.tmp_1; + s.tmp_0 = createPacMan__P3840_mk(s); + s.tmp_0.arg0 = "TW8-"; + s.callLocIdx = 1481; s.pc = 42; return s.tmp_0; case 42: r0 = s.retval; - globals.TileWorld___19032 = (s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P41706.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} -_main___P41706.continuations = [ ] +_main___P35666.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} +_main___P35666.continuations = [ ] -function _main___P41706_mk(s) { +function _main___P35666_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P41706, depth: s.depth + 1, + parent: s, fn: _main___P35666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1414,109 +1414,109 @@ function _main___P41706_mk(s) { tmp_5: undefined, } } -const _hex20344 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex20346 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex26157 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex575 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex1615 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex1618 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex1621 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex1624 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex1627 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex1630 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex1633 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex1636 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex1639 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex1642 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex1645 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7216 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000222202000000002022222202000000221221222202000022111122222200002211112222220000221111222222000022122122220200002022222202000000002222020000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7219 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000070777777770000007077777777000000007777770700000000777777070000000070777700000000007077770000000000007707000000000000770700000000000070000000000000007000000000000000000000000000000000000000000000000000000000") -const _hex7222 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000002002200022000000000220000200000000e0eeee0e000000212e2222e2000010212e2f2f2f000022222e222222000022222e222222000010212e2f2f2f000000212e2222e200000000e0eeee0e000000000220000200000020022000220000000000000000000000000000000000") -const _hex7225 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000100000000000000001010000000000100010000000000001000001000000000000000000000000000090110000000000901100000000009011000000000090110000000000000000000000000000000100000100000000100010000000000000010100000000000010000000000000000000000000") -const _hex7228 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000004411d90d000000001111e90e000000004411e9dedddd00001111e9eeeeef00004411e9eeeeef00001111e9eeeeee00004411e90e000000001111e90e0000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7231 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000900900000000000099990000000000009999000000000000999900000000000099990090999999999909000099000000000000009009000000000000009900000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7234 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000b00000000000000bb00000000000000bbbbbbbb0b0000b0bbccccccbc0000bbbbbbbbbbbb00000bbbccccccbc00000bbbbbbbbbbb00000bbbccccccbc0000bbbbbbbbbbbb0000b0bbccccccbc000000bbbbbbbb0b000000bb000000000000000b00000000000000000000000000") -const _hex7237 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000010010000000000911001190000001011111111010000901191191109000000110990110000001191000019110000119100001911000000110990110000009011911911090000101111111101000000911001190000000000100100000000000000000000000000000000000000") -const _hex7240 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000007007000000000000700700000000000070070000000000007007000000007077777777070000707777777707000000007007000000000000700700000000000070070000000000007007000000000000000000000000000000000000000000000000000000") -const _hex7243 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbbbbbbbbbbbbbcbfbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcfcccccccccccccccc") -const _hex7246 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbbbbbbbbbbbbbcbfbffffffffffcfccfbffffffffffcccffbffffffffcffccffbffffffffccffcffbffffffcffcffcffbffffffccffffcffbffffcffcffffcffbffffccffffffcffbffcffcffffffcffbffccffffffffcffbcffcffffffffcffbccffffffffffcfcbfcffffffffffcfcbffffffffffffcfcccccccccccccccc") -const _hex7249 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000001111111111110010010000000010011000000000000001100000000000000110000000000000011000000000000001100000000000000110000000000000011000000000000001100000000000000110000000000000011000000000000001100100000000100100111111111111000000000000000000") -const _hex7252 = pxsim.BufferMethods.createBufferFromHex("87041000100000001011111111111101110000000000001101000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001011000000000000111011111111111101") -const _hex7255 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ffff0000000000f022220f000000002f2222f2000000002f2222f2000000002f2222f2000000002f2222f200000000f022220f0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7258 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ffff0000000000f0bbbb0f00000000bffffffb00000000bffffffb00000000bffffffb00000000bffffffb00000000f0bbbb0f0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7261 = pxsim.BufferMethods.createBufferFromHex("8704080008000000f022220f2ff22ff22222ff22f222f22ff22f222f22ff22222ff22ff2f022220f") -const _hex7264 = pxsim.BufferMethods.createBufferFromHex("8704080008000000007ff70000f0770f00007ff70000f07700f07ff7f07f770f7f77ff0077ff0000") -const _hex7267 = pxsim.BufferMethods.createBufferFromHex("870408000800000000ffff00f055550f5f5555f55f5555f55f5555f55f5555f5f055550f00ffff00") -const _hex7270 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7273 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000f000f00000000f0f1f0f100000000001f1fff0f0000001f1111110f000000001f1fff0f000000f0f1f0f100000000000f000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7276 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f0000000000000009f0f0000000000f099f90000000000f0f9f900000000f0fff9f9ff0000009f990090990f00f099ff00f09ff900009f990090990f0000f0fff9f9ff00000000f0f9f90000000000f099f90000000000009f0f000000000000f00000000000000000000000000000000000000000") -const _hex7279 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000f00f0000000000009ff90000000000f0f99f0f000000009ffffff9000000009ffffff900000000f0f99f0f00000000009ff9000000000000f00f0000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7282 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000ff0f0000000000009ff90000000000ff9f9f0f000000009f99fff9000000009fffff9f0f0000009fffff9f0f0000009f99fff900000000ff9f9f0f00000000009ff9000000000000ff0f0000000000000000000000000000000000000000000000000000") -const _hex7285 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000f0ff0000000000009ff90000000000f0f9f9ff000000009fff99f9000000f0f9fffff9000000f0f9fffff9000000009fff99f900000000f0f9f9ff00000000009ff9000000000000f0ff00000000000000000000000000000000000000000000000000000000") -const _hex7288 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0ffff0f00000000f099990f000000f0fff99fff0f0000f099f99f990f0000f0f9ffff9f0f0000009ffffff900000000f0f99f0f00000000009ff9000000000000f00f0000000000000000000000") -const _hex7291 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f00f0000000000009ff90000000000f0f99f0f000000009ffffff9000000f0f9ffff9f0f0000f099f99f990f0000f0fff99fff0f000000f099990f00000000f0ffff0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7294 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666671176666080066167777616608006671777717660800661671176166080066667117666608006666711766660800606611116686000060666666668600000060666686080000000000000000000000000000000000") -const _hex7297 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066111166860000666671176666080066667117666608006611711711660800667177771766080066167777616608006666711766660800606616616686000060666666668600000060666686080000000000000000000000000000000000") -const _hex7300 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666616176666080066111177616608006671777717660800667177771766080066111177616608006666161766660800606616616686000060666666668600000060666686080000000000000000000000000000000000") -const _hex7303 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666671616666080066167711116608006671777717660800667177771766080066167711116608006666716166660800606616616686000060666666668600000060666686080000000000000000000000000000000000") -const _hex7306 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066666666860000666611116166080066167777676608006671666766660800667766676666080066761117616608006666777767660800606666666686000060666666668600000060666686080000000000000000000000000000000000") -const _hex7309 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000bb0b00000000b0bbbb0b000000bbbb8bbb0b00b0bbbbbb88b80bb0bbbbbb8b88880bb0bbbbbbbb8bbb0b000000000080000000000000008000009099999999899909909999998988880900909999998898090000009999899909000000009099990900000000000099090000000000000000") -const _hex7312 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000009009b00b000000009009b00b000000009909b0bb000000009909b0bb000000009909b0bb000000909909b0bb0b0000909909b0bb0b0000909909b0bb0b0000998909b0b8bb0000998809b088bb00008988888888b80090998809b088bb0b90998909b0b8bb0b90999909b0bbbb0b0000000000000000") -const _hex7315 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000900000000000500099060000000050909969000000000000999606000000000090600900000000000000000000000000000000005500000000100100000000000000000090000000000000009909000090600990999900009996060096065090996900006069500099060000009600009000000000000000000000") -const _hex7318 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000000000090990000000000009999090060090000006900006009000000690000600900000090666696000000000099990900000000000000000000000000000000000000000000000000000000000000000000") -const _hex7321 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000909999000000000069666609000000900600009600000090000000960000909999000096000000990900000000000090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7324 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000900000000000000099090000000000909999000000000000990900000000900099099000000099999999990900909999999999990000999999999909000090009909900000000000990900000000009099990000000000009909000000000000900000000000000000000000000000000000000000") -const _hex7327 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000f00f000000000000f0f900000000ffffff990f0000009f999999f90000009f999999990f00009f999999f9000000ffffff990f0000000000f0f9000000000000f00f00000000000000000000000000000000000000000000000000000000000000000000") -const _hex7330 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000f00f0000000000009f0f0000000000f099ffffff0000009f999999f90000f099999999f90000009f999999f9000000f099ffffff000000009f0f000000000000f00f000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7333 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000000000000000f0ffff0000000000f099f90000000000f099f90000000000f099f90000000000f099f900000000f0ff99f9ff000000f0999999f9000000009f99990f00000000f099f90000000000009f0f000000000000f0000000000000000000000000") -const _hex7336 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f0000000000000009f0f0000000000f099f900000000009f99990f000000f0999999f9000000f0ff99f9ff00000000f099f90000000000f099f90000000000f099f90000000000f099f90000000000f0ffff0000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7339 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000f0000f0000000f0f500005f0f00005ff500005ff500f055550ff055550ff055550ff055550ff05555f55f55550ff05555555555550ff05555555555550ff05555555555550f005f55555555f50000f0555555550f0000005f5555f500000000f0ffff0f00000000000000000000") -const _hex7342 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000010111101000000002122221200000010222222220100002122222222120010221221222122011022211222122201102221122212220110222112221222011022211222122201102212221121220100212222222212000010222222220100000021222212000000001011110100000000000000000000") -const _hex7345 = pxsim.BufferMethods.createBufferFromHex("870410001000000000f0555555550f00005f5555f555f500f0555555f5ff550f5f55f5ffffff5ff55555ffffffff5f5555f5ff55f5ff555555ff5f55f555555555ff55555555555555ff55555555555555ff5f555555555555f5ff55555555555555ffffffff5f555f55f5ffffff5ff5f05555555555550f005f55555555f50000f0555555550f00") -const _hex7348 = pxsim.BufferMethods.createBufferFromHex("870410001000000000f0ff000000000000f0f7000000000000f0f70000000000fffff7ff0f0000007f7777770f000000fffff7ff0f00000000f0f7000000000000f0f7000000000000f0ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7351 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000f0ffff0f00000000f04491ff0f000000f01191ee0f000000f04491ee0f000000f01191ff0f000000f0ffff0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7354 = pxsim.BufferMethods.createBufferFromHex("870410001000000000ffff0f00000000f05555f5000000005fffff5f0f0000005f5f555f0f0000005f5f5f5f0f0000005f5f555f0f0000005fff5f5f0f000000f05555ff0000000000ffff0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7357 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000007f77770f000000f0777777f70000007077ff7f7700000070f7ffff7700000070f77fff7700000070f77fff77000000f0f77f77f755000000ffff770f0005050000000055555505000000005555550500000000555555050000000055555505000000000500050500000000505500000000000000000000") -const _hex7360 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000055050000000000040550000000000045050005000000005544444400400000555555550454000055655556455500005555556545550000555555654555000055655556455500005555555501510000551511110010000015050005000000000105500000000000005505000000000000000000000000") -const _hex7363 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000005055000000000000055010000000005000505100000100111151550000151055555555000055542555255500005554555552550000555455555255000055542555255500004540555555550000040044444455000000005000505400000000000550400000000000505500000000000000000000") -const _hex7366 = pxsim.BufferMethods.createBufferFromHex("870410001000000000ff0f0000000000009f0f0000000000ff9fff1f111111019f99991f11111101ff9fff1ff111f101009f0f10ffffff0100ff0f101111f1010000001011111101000000101111110100000010f1ff1f01000000101f11f101000000101f11f10100000010f1ff1f01000000101111110100000010111111010000000000000000") -const _hex7369 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000111111111101000061666666661100001111616666160000616661161111000061666116661600006166611666160000616661166616000061666116661600006166611611110000111161666616000061666666661600001111111111110000000000000000000000000000000000") -const _hex7372 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000010000000000000019000000000000001901000000001011111100000000919919019001000091001900900100009100010090010000910000009001000091000000900100009100000090010000109999991900000000111111010000000000000000000000000000000000000000000000000000") -const _hex7375 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000002022222200000000222222220200002022111121220000221211112222020022111121222102002211112212210200221121221121020022112212112102002221221111210200222212111122020020221111212200000022222222020000002022222200000000000000000000") -const _hex7378 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000000000000000000000f0ffffff000000005f5555550f0000f055555555f50000f055f5ff55f50000f0550f005ff50000f0550f005ff50000f0550f005ff50000f0550f005ff50000f055f5ff55f50000f055555555f50000005f5555550f000000f0ffffff000000000000000000000000000000000000") -const _hex7381 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000c0cccc0c000000c0eceeeeee020000eceeeeeeee2e0000eeee2222e2ee02e0ee2e222222e202e0ee22222222222ee0ee2e222222222ececc2c22222222e47c672c22222222e477ee2222222222e4e0e24422222242e2e02255242222420e002e54242222240e002e22222244e20000e02e2222e20e000000e0eeee0e0000") -const _hex7384 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000c0ff0000c0fc0f001c610f006c77f7c01711c6c0776c777f1711c16c77f6772c1211c17c7766777c7711c17c7766777c6716c17c77f6677cfc66c17c776cc767cf6cc16c777777c7cc66c6c0777777f66666c6006c77677f6766f600c0fcff7767c60f000000c077c6ff00000000007c0c000000000000c00c0000") -const _hex7387 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000ccff0000000000c07677cc000000007cc76cc1000000c07667fccc000000c0776766cf000000c0776766cf000000c07767fcc1000000c077c76ccc0000cccc767777c700c06c667c7777c600c07766cc7677cf007c776666ccffc6007cc7cc666666c6007c0cc06666660c006c0c00cc66660c00cc0000c0cccc00") -const _hex7390 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000cc000000000000c0cc000000000000cccc000000000000cfcc0000000000e0cfcc0000000000ecefcc00000000ee2cecee000000e02e2c2cee00000020442e2e2200000000ee4e2e220000000000ee2f220000000000e04f240000000000002e42000000000000ee22000000000000e0ee00000000000000ee00") -const _hex7393 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000c0b1000000ffff0f1ffb0000ffddbdfc1fb100f01b11ddbd1ffb00f01111bd1cccf1001f1111f11fbd0f001f1111d111fb00001f1111d111b100001f1111f11ffb0f00f01111bd1ccdb100f01b11ddbd1ffb0000ffddbdfc1fb1000000ffff0f1ffb000000000000cfb1000000000000000000") -const _hex7396 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500050000000000045054505000000500454045400000040004000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex7399 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000e0ccfceeff000000e0bdb3ddbdffff0fe0dd3bfdddb2dd0f00dcdddddfd2fd0000f0ddddbdd2fd0000f0dbddbdd2fd0f00dcdddddfd2dd0fe0dd3bfdddd2fb00e0bdb3dd2ddbfd00e0ccfceeffbbdd0f0000000000bfff0f000000b0ffdf0f00000000f0ddbd0f00000000b0ffff00000000000000000000") -const _hex7402 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000ff0f0000000000c044f400000000004c44440f000000c04444440f0000004c44f444f40000c0dc444444fd0000cc44111111440f00cc4444c4c4440fc0cd4444c4444f0fc0cd444444ff4f0fc0cd4d444444c4cdc0dd1c4d44d4dccd00cccc1111fdbfcd000000ccf4ffcc0c0000c04444f400000000c0ccffff0000") -const _hex7405 = pxsim.BufferMethods.createBufferFromHex("87041000100000000040e400000000000054550e00000000405545eeff0000004055445545ffff0f405554f55546550f005e55555556f50000e05555f456f50000e05555f456f50f005e55555556550f405554f55556f400405544556554f500405545eeff44550f0054550e004fff0f0040e400f0550f00000000005ff50000000000f0ff000000") -const _hex7408 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000c0cc0000000000c0dccd0f00000000dfedcdfd000000f0fdefcdfdf0ff0fefddddcdfdefdefdefdddddcfdfebffdeffddfddfdfefffcefdeddddeeeedefdefeeeeeeeefebffdf0eeeeeeefeefefb00ffbdfbefeefefb00f0ddcdf0eeeefd0000cf0c00effeff000000f0ffff0f00000000efeefe0000000000ffff0f0000") -const _hex7181 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f00f00000000f0fffffee0440000ffefefee4f4d00f0ff2effe4feff00f0eff2bfd12e42ffffe2f2fedf2442ff2fe3f24edd24520f2fe2f24edd24520fffe2f2fedf2442fff0eff2bfd12e42fff0ff2effe4feff0000ffeeefee4f4d0000f0fffffee04400000000f00f0000000000000000000000") -const _hex7412 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000088990900000000808899990000000088889999090000808888999999000080888899999909008098889999999900809989999999990980991919111111018099111911111100801111191111010080111119111100000010111911010000001011191100000000001119010000000000000000000000") -const _hex7415 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000cccc0000000000cccbcb0c00000000dcbbbccc000000ccdcbdbccc00c0ccbbbcddcccc00bcddbbcbddcbcc00dcddddbbdbcbcc0cdbddddbbdbcbbc0cdbddddbbdbbbbccbdbddddbddbdbbccbb0ddddbddbdbbccb00dbddbdbddbbccb00dbddbbbdbdbb0c00b0bbbbbbcdbb0c000000dbddcccb00000000b0cbbc0b00") -const _hex7418 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000007777070000000070007077ff0f0000000000771cfd0000ffffffffcb0f00ffddddbdfc11fdf01b1111ddfdcb0ff0111111bdbc1cfd1f111111f1dfff0f1f111111d1b1ff0f1f111111d111ff0f1f111111f1bfff0ff0111111bddcff0ff01b1111ddfdff0000ffddddbdfc00000000ffffffcf000000000000cffb0000") -const _hex7163 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dbddddcddbddddcdbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbbbbdbbbbbbccccccabccccccabdbddddcddbddddbdbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbbbbdbbbbcbccccccabccccccab") -const _hex7422 = pxsim.BufferMethods.createBufferFromHex("87041000100000007577777777777777777777777777777775776777577777577777557677777777777757657777777777577577777777777777557777777777777777557777777777775765777775777777577677775577777777777757577777777777775576777777757777657777777777777777777777777777777777777777777777777755") -const _hex7425 = pxsim.BufferMethods.createBufferFromHex("87041000100000006766666666666666666666666666666667668666766666766666776866666666666676876666666666766766666666666666776666666666666666776666666666667687666667666666766866667766666666666676766666666666667768666666676666876666666666666666666666666666666666666666666666666677") -const _hex7428 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddd1dd1dddddddddddd1dd1dddddddbdddddddddd1dd1dddddddddddd1dd1dddddddddddddddddddddbdddddddddddddddddd1dddddddddddddddddddddddddddddddddddddddbbddddddddddddddbbdddddddddddddddddddddddddddddddddddddddbddbdddddddddddddddddddddddddddddbddddddddddddddddd") -const _hex7431 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddddddd8d6d668868868686866d866686868686866d688868868686868d86d888666686868d86dd8d666666868d86d888666666866d688868666666866d866686666666886d868686886886886d868686866886866d868686666886866d868686666886866d868686866886888d886888686666868888888888888888") -const _hex7434 = pxsim.BufferMethods.createBufferFromHex("8704100010000000cccccccccccccc8cbcbb88b88b8b8b8bbc8bbb8b8b8b8b8bbcb888b88b8b8b8b8c8b6888bbbb8b8b8c8b6686bbbbbb8b8c8b6888bbbbbb8bbcb888b8bbbbbb8bbc8bbb8bbbbbbb88bc8b8b8b88b88b88bc8b8b8b8bb88b8bbc8b8b8bbbb88b8bbc8b8b8bbbb88b8bbc8b8b8b8bb88b888c88b888b8bbbb8b8888888888888888") -const _hex7437 = pxsim.BufferMethods.createBufferFromHex("8704100010000000efeeeefefffeeffeee44e4feeeeefeee4e4444eeee44e4ef4e4444e44e4444feee4444e4444444e4ee4444e4444444e4ef4e44ee444444e4feeefefe4e4444fefeffefeeef44e4effeef4e44eeeefe4eeeef4444e4efef44e4ef4444e4fe4e44e4ef444444fe4e44e4ee444444feee44e4fe4e44eeeeee4eeeeeefeefeefefee") -const _hex7440 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ffffffffffffffffffccfcffffffffffcfccccffffccfcffcfccccfccfccccffffccccfcccccccfcffccccfcccccccfcffcfccffccccccfcffffffffcfccccffffffffffffccfcffffffcfccffffffcfffffccccfcffffccfcffccccfcffcfccfcffccccccffcfccfcffccccccffffccfcffcfccffffffcfffffffffffffffff") -const _hex10040 = pxsim.BufferMethods.createBufferFromHex("87040800080000001111111101000010010000100100001001000010010000100100001011111111") -const _hex10043 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000010111101100000011000000110000001100000011011110100000000") -const _hex10046 = pxsim.BufferMethods.createBufferFromHex("8704060006000000111111000100100001001000010010000100100011111100") -const _hex10049 = pxsim.BufferMethods.createBufferFromHex("8704060006000000000000001011010010000100100001001011010000000000") -const _hex14744 = pxsim.BufferMethods.createBufferFromHex("87040800080000005555555505000050050000500500005005000050050000500500005055555555") -const _hex14747 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000050555505500000055000000550000005500000055055550500000000") - - - - -function inline__P549(s) { +const _hex22110 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex22112 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex27801 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex4050 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex4545 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex4547 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex4549 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex4551 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex4553 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex4555 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex4557 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex4559 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex4561 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex4563 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex4565 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9182 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000222202000000002022222202000000221221222202000022111122222200002211112222220000221111222222000022122122220200002022222202000000002222020000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9184 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000070777777770000007077777777000000007777770700000000777777070000000070777700000000007077770000000000007707000000000000770700000000000070000000000000007000000000000000000000000000000000000000000000000000000000") +const _hex9186 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000002002200022000000000220000200000000e0eeee0e000000212e2222e2000010212e2f2f2f000022222e222222000022222e222222000010212e2f2f2f000000212e2222e200000000e0eeee0e000000000220000200000020022000220000000000000000000000000000000000") +const _hex9188 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000100000000000000001010000000000100010000000000001000001000000000000000000000000000090110000000000901100000000009011000000000090110000000000000000000000000000000100000100000000100010000000000000010100000000000010000000000000000000000000") +const _hex9190 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000004411d90d000000001111e90e000000004411e9dedddd00001111e9eeeeef00004411e9eeeeef00001111e9eeeeee00004411e90e000000001111e90e0000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9192 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000900900000000000099990000000000009999000000000000999900000000000099990090999999999909000099000000000000009009000000000000009900000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9194 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000b00000000000000bb00000000000000bbbbbbbb0b0000b0bbccccccbc0000bbbbbbbbbbbb00000bbbccccccbc00000bbbbbbbbbbb00000bbbccccccbc0000bbbbbbbbbbbb0000b0bbccccccbc000000bbbbbbbb0b000000bb000000000000000b00000000000000000000000000") +const _hex9196 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000010010000000000911001190000001011111111010000901191191109000000110990110000001191000019110000119100001911000000110990110000009011911911090000101111111101000000911001190000000000100100000000000000000000000000000000000000") +const _hex9198 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000007007000000000000700700000000000070070000000000007007000000007077777777070000707777777707000000007007000000000000700700000000000070070000000000007007000000000000000000000000000000000000000000000000000000") +const _hex9200 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbbbbbbbbbbbbbcbfbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcffbffffffffffffcfcccccccccccccccc") +const _hex9202 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbbbbbbbbbbbbbcbfbffffffffffcfccfbffffffffffcccffbffffffffcffccffbffffffffccffcffbffffffcffcffcffbffffffccffffcffbffffcffcffffcffbffffccffffffcffbffcffcffffffcffbffccffffffffcffbcffcffffffffcffbccffffffffffcfcbfcffffffffffcfcbffffffffffffcfcccccccccccccccc") +const _hex9204 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000001111111111110010010000000010011000000000000001100000000000000110000000000000011000000000000001100000000000000110000000000000011000000000000001100000000000000110000000000000011000000000000001100100000000100100111111111111000000000000000000") +const _hex9206 = pxsim.BufferMethods.createBufferFromHex("87041000100000001011111111111101110000000000001101000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001001000000000000100100000000000010010000000000001011000000000000111011111111111101") +const _hex9208 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ffff0000000000f022220f000000002f2222f2000000002f2222f2000000002f2222f2000000002f2222f200000000f022220f0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9210 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000ffff0000000000f0bbbb0f00000000bffffffb00000000bffffffb00000000bffffffb00000000bffffffb00000000f0bbbb0f0000000000ffff0000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9212 = pxsim.BufferMethods.createBufferFromHex("8704080008000000f022220f2ff22ff22222ff22f222f22ff22f222f22ff22222ff22ff2f022220f") +const _hex9214 = pxsim.BufferMethods.createBufferFromHex("8704080008000000007ff70000f0770f00007ff70000f07700f07ff7f07f770f7f77ff0077ff0000") +const _hex9216 = pxsim.BufferMethods.createBufferFromHex("870408000800000000ffff00f055550f5f5555f55f5555f55f5555f55f5555f5f055550f00ffff00") +const _hex9218 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9220 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000f000f00000000f0f1f0f100000000001f1fff0f0000001f1111110f000000001f1fff0f000000f0f1f0f100000000000f000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9222 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f0000000000000009f0f0000000000f099f90000000000f0f9f900000000f0fff9f9ff0000009f990090990f00f099ff00f09ff900009f990090990f0000f0fff9f9ff00000000f0f9f90000000000f099f90000000000009f0f000000000000f00000000000000000000000000000000000000000") +const _hex9224 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000f00f0000000000009ff90000000000f0f99f0f000000009ffffff9000000009ffffff900000000f0f99f0f00000000009ff9000000000000f00f0000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9226 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000ff0f0000000000009ff90000000000ff9f9f0f000000009f99fff9000000009fffff9f0f0000009fffff9f0f0000009f99fff900000000ff9f9f0f00000000009ff9000000000000ff0f0000000000000000000000000000000000000000000000000000") +const _hex9228 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000f0ff0000000000009ff90000000000f0f9f9ff000000009fff99f9000000f0f9fffff9000000f0f9fffff9000000009fff99f900000000f0f9f9ff00000000009ff9000000000000f0ff00000000000000000000000000000000000000000000000000000000") +const _hex9230 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0ffff0f00000000f099990f000000f0fff99fff0f0000f099f99f990f0000f0f9ffff9f0f0000009ffffff900000000f0f99f0f00000000009ff9000000000000f00f0000000000000000000000") +const _hex9232 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f00f0000000000009ff90000000000f0f99f0f000000009ffffff9000000f0f9ffff9f0f0000f099f99f990f0000f0fff99fff0f000000f099990f00000000f0ffff0f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9234 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666671176666080066167777616608006671777717660800661671176166080066667117666608006666711766660800606611116686000060666666668600000060666686080000000000000000000000000000000000") +const _hex9236 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066111166860000666671176666080066667117666608006611711711660800667177771766080066167777616608006666711766660800606616616686000060666666668600000060666686080000000000000000000000000000000000") +const _hex9238 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666616176666080066111177616608006671777717660800667177771766080066111177616608006666161766660800606616616686000060666666668600000060666686080000000000000000000000000000000000") +const _hex9240 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066166166860000666671616666080066167711116608006671777717660800667177771766080066167711116608006666716166660800606616616686000060666666668600000060666686080000000000000000000000000000000000") +const _hex9242 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000006066668608000060666666668600006066666666860000666611116166080066167777676608006671666766660800667766676666080066761117616608006666777767660800606666666686000060666666668600000060666686080000000000000000000000000000000000") +const _hex9244 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000bb0b00000000b0bbbb0b000000bbbb8bbb0b00b0bbbbbb88b80bb0bbbbbb8b88880bb0bbbbbbbb8bbb0b000000000080000000000000008000009099999999899909909999998988880900909999998898090000009999899909000000009099990900000000000099090000000000000000") +const _hex9246 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000009009b00b000000009009b00b000000009909b0bb000000009909b0bb000000009909b0bb000000909909b0bb0b0000909909b0bb0b0000909909b0bb0b0000998909b0b8bb0000998809b088bb00008988888888b80090998809b088bb0b90998909b0b8bb0b90999909b0bbbb0b0000000000000000") +const _hex9248 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000900000000000500099060000000050909969000000000000999606000000000090600900000000000000000000000000000000005500000000100100000000000000000090000000000000009909000090600990999900009996060096065090996900006069500099060000009600009000000000000000000000") +const _hex9250 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000900000000000090990000000000009999090060090000006900006009000000690000600900000090666696000000000099990900000000000000000000000000000000000000000000000000000000000000000000") +const _hex9252 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000909999000000000069666609000000900600009600000090000000960000909999000096000000990900000000000090000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9254 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000900000000000000099090000000000909999000000000000990900000000900099099000000099999999990900909999999999990000999999999909000090009909900000000000990900000000009099990000000000009909000000000000900000000000000000000000000000000000000000") +const _hex9256 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000f00f000000000000f0f900000000ffffff990f0000009f999999f90000009f999999990f00009f999999f9000000ffffff990f0000000000f0f9000000000000f00f00000000000000000000000000000000000000000000000000000000000000000000") +const _hex9258 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000f00f0000000000009f0f0000000000f099ffffff0000009f999999f90000f099999999f90000009f999999f9000000f099ffffff000000009f0f000000000000f00f000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9260 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000000000000000000000f0ffff0000000000f099f90000000000f099f90000000000f099f90000000000f099f900000000f0ff99f9ff000000f0999999f9000000009f99990f00000000f099f90000000000009f0f000000000000f0000000000000000000000000") +const _hex9262 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f0000000000000009f0f0000000000f099f900000000009f99990f000000f0999999f9000000f0ff99f9ff00000000f099f90000000000f099f90000000000f099f90000000000f099f90000000000f0ffff0000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9264 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000f0000f0000000f0f500005f0f00005ff500005ff500f055550ff055550ff055550ff055550ff05555f55f55550ff05555555555550ff05555555555550ff05555555555550f005f55555555f50000f0555555550f0000005f5555f500000000f0ffff0f00000000000000000000") +const _hex9266 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000010111101000000002122221200000010222222220100002122222222120010221221222122011022211222122201102221122212220110222112221222011022211222122201102212221121220100212222222212000010222222220100000021222212000000001011110100000000000000000000") +const _hex9268 = pxsim.BufferMethods.createBufferFromHex("870410001000000000f0555555550f00005f5555f555f500f0555555f5ff550f5f55f5ffffff5ff55555ffffffff5f5555f5ff55f5ff555555ff5f55f555555555ff55555555555555ff55555555555555ff5f555555555555f5ff55555555555555ffffffff5f555f55f5ffffff5ff5f05555555555550f005f55555555f50000f0555555550f00") +const _hex9270 = pxsim.BufferMethods.createBufferFromHex("870410001000000000f0ff000000000000f0f7000000000000f0f70000000000fffff7ff0f0000007f7777770f000000fffff7ff0f00000000f0f7000000000000f0f7000000000000f0ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9272 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000f0ffff0f00000000f04491ff0f000000f01191ee0f000000f04491ee0f000000f01191ff0f000000f0ffff0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9274 = pxsim.BufferMethods.createBufferFromHex("870410001000000000ffff0f00000000f05555f5000000005fffff5f0f0000005f5f555f0f0000005f5f5f5f0f0000005f5f555f0f0000005fff5f5f0f000000f05555ff0000000000ffff0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9276 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000007f77770f000000f0777777f70000007077ff7f7700000070f7ffff7700000070f77fff7700000070f77fff77000000f0f77f77f755000000ffff770f0005050000000055555505000000005555550500000000555555050000000055555505000000000500050500000000505500000000000000000000") +const _hex9278 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000055050000000000040550000000000045050005000000005544444400400000555555550454000055655556455500005555556545550000555555654555000055655556455500005555555501510000551511110010000015050005000000000105500000000000005505000000000000000000000000") +const _hex9280 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000005055000000000000055010000000005000505100000100111151550000151055555555000055542555255500005554555552550000555455555255000055542555255500004540555555550000040044444455000000005000505400000000000550400000000000505500000000000000000000") +const _hex9282 = pxsim.BufferMethods.createBufferFromHex("870410001000000000ff0f0000000000009f0f0000000000ff9fff1f111111019f99991f11111101ff9fff1ff111f101009f0f10ffffff0100ff0f101111f1010000001011111101000000101111110100000010f1ff1f01000000101f11f101000000101f11f10100000010f1ff1f01000000101111110100000010111111010000000000000000") +const _hex9284 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000111111111101000061666666661100001111616666160000616661161111000061666116661600006166611666160000616661166616000061666116661600006166611611110000111161666616000061666666661600001111111111110000000000000000000000000000000000") +const _hex9286 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000010000000000000019000000000000001901000000001011111100000000919919019001000091001900900100009100010090010000910000009001000091000000900100009100000090010000109999991900000000111111010000000000000000000000000000000000000000000000000000") +const _hex9288 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000002022222200000000222222220200002022111121220000221211112222020022111121222102002211112212210200221121221121020022112212112102002221221111210200222212111122020020221111212200000022222222020000002022222200000000000000000000") +const _hex9290 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000000000000000000000f0ffffff000000005f5555550f0000f055555555f50000f055f5ff55f50000f0550f005ff50000f0550f005ff50000f0550f005ff50000f0550f005ff50000f055f5ff55f50000f055555555f50000005f5555550f000000f0ffffff000000000000000000000000000000000000") +const _hex9293 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000c0cccc0c000000c0eceeeeee020000eceeeeeeee2e0000eeee2222e2ee02e0ee2e222222e202e0ee22222222222ee0ee2e222222222ececc2c22222222e47c672c22222222e477ee2222222222e4e0e24422222242e2e02255242222420e002e54242222240e002e22222244e20000e02e2222e20e000000e0eeee0e0000") +const _hex9296 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000c0ff0000c0fc0f001c610f006c77f7c01711c6c0776c777f1711c16c77f6772c1211c17c7766777c7711c17c7766777c6716c17c77f6677cfc66c17c776cc767cf6cc16c777777c7cc66c6c0777777f66666c6006c77677f6766f600c0fcff7767c60f000000c077c6ff00000000007c0c000000000000c00c0000") +const _hex9298 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000ccff0000000000c07677cc000000007cc76cc1000000c07667fccc000000c0776766cf000000c0776766cf000000c07767fcc1000000c077c76ccc0000cccc767777c700c06c667c7777c600c07766cc7677cf007c776666ccffc6007cc7cc666666c6007c0cc06666660c006c0c00cc66660c00cc0000c0cccc00") +const _hex9301 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000cc000000000000c0cc000000000000cccc000000000000cfcc0000000000e0cfcc0000000000ecefcc00000000ee2cecee000000e02e2c2cee00000020442e2e2200000000ee4e2e220000000000ee2f220000000000e04f240000000000002e42000000000000ee22000000000000e0ee00000000000000ee00") +const _hex9304 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000c0b1000000ffff0f1ffb0000ffddbdfc1fb100f01b11ddbd1ffb00f01111bd1cccf1001f1111f11fbd0f001f1111d111fb00001f1111d111b100001f1111f11ffb0f00f01111bd1ccdb100f01b11ddbd1ffb0000ffddbdfc1fb1000000ffff0f1ffb000000000000cfb1000000000000000000") +const _hex9307 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000500050000000000045054505000000500454045400000040004000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex9310 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000e0ccfceeff000000e0bdb3ddbdffff0fe0dd3bfdddb2dd0f00dcdddddfd2fd0000f0ddddbdd2fd0000f0dbddbdd2fd0f00dcdddddfd2dd0fe0dd3bfdddd2fb00e0bdb3dd2ddbfd00e0ccfceeffbbdd0f0000000000bfff0f000000b0ffdf0f00000000f0ddbd0f00000000b0ffff00000000000000000000") +const _hex9313 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000ff0f0000000000c044f400000000004c44440f000000c04444440f0000004c44f444f40000c0dc444444fd0000cc44111111440f00cc4444c4c4440fc0cd4444c4444f0fc0cd444444ff4f0fc0cd4d444444c4cdc0dd1c4d44d4dccd00cccc1111fdbfcd000000ccf4ffcc0c0000c04444f400000000c0ccffff0000") +const _hex9316 = pxsim.BufferMethods.createBufferFromHex("87041000100000000040e400000000000054550e00000000405545eeff0000004055445545ffff0f405554f55546550f005e55555556f50000e05555f456f50000e05555f456f50f005e55555556550f405554f55556f400405544556554f500405545eeff44550f0054550e004fff0f0040e400f0550f00000000005ff50000000000f0ff000000") +const _hex9318 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000c0cc0000000000c0dccd0f00000000dfedcdfd000000f0fdefcdfdf0ff0fefddddcdfdefdefdefdddddcfdfebffdeffddfddfdfefffcefdeddddeeeedefdefeeeeeeeefebffdf0eeeeeeefeefefb00ffbdfbefeefefb00f0ddcdf0eeeefd0000cf0c00effeff000000f0ffff0f00000000efeefe0000000000ffff0f0000") +const _hex9147 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000f00f00000000f0fffffee0440000ffefefee4f4d00f0ff2effe4feff00f0eff2bfd12e42ffffe2f2fedf2442ff2fe3f24edd24520f2fe2f24edd24520fffe2f2fedf2442fff0eff2bfd12e42fff0ff2effe4feff0000ffeeefee4f4d0000f0fffffee04400000000f00f0000000000000000000000") +const _hex9322 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000088990900000000808899990000000088889999090000808888999999000080888899999909008098889999999900809989999999990980991919111111018099111911111100801111191111010080111119111100000010111911010000001011191100000000001119010000000000000000000000") +const _hex9325 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000cccc0000000000cccbcb0c00000000dcbbbccc000000ccdcbdbccc00c0ccbbbcddcccc00bcddbbcbddcbcc00dcddddbbdbcbcc0cdbddddbbdbcbbc0cdbddddbbdbbbbccbdbddddbddbdbbccbb0ddddbddbdbbccb00dbddbdbddbbccb00dbddbbbdbdbb0c00b0bbbbbbcdbb0c000000dbddcccb00000000b0cbbc0b00") +const _hex9328 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000007777070000000070007077ff0f0000000000771cfd0000ffffffffcb0f00ffddddbdfc11fdf01b1111ddfdcb0ff0111111bdbc1cfd1f111111f1dfff0f1f111111d1b1ff0f1f111111d111ff0f1f111111f1bfff0ff0111111bddcff0ff01b1111ddfdff0000ffddddbdfc00000000ffffffcf000000000000cffb0000") +const _hex9131 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dbddddcddbddddcdbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbbbbdbbbbbbccccccabccccccabdbddddcddbddddbdbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbcbbdbbbbbbbdbbbbcbccccccabccccccab") +const _hex9331 = pxsim.BufferMethods.createBufferFromHex("87041000100000007577777777777777777777777777777775776777577777577777557677777777777757657777777777577577777777777777557777777777777777557777777777775765777775777777577677775577777777777757577777777777775576777777757777657777777777777777777777777777777777777777777777777755") +const _hex9334 = pxsim.BufferMethods.createBufferFromHex("87041000100000006766666666666666666666666666666667668666766666766666776866666666666676876666666666766766666666666666776666666666666666776666666666667687666667666666766866667766666666666676766666666666667768666666676666876666666666666666666666666666666666666666666666666677") +const _hex9337 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddd1dd1dddddddddddd1dd1dddddddbdddddddddd1dd1dddddddddddd1dd1dddddddddddddddddddddbdddddddddddddddddd1dddddddddddddddddddddddddddddddddddddddbbddddddddddddddbbdddddddddddddddddddddddddddddddddddddddbddbdddddddddddddddddddddddddddddbddddddddddddddddd") +const _hex9340 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddddddd8d6d668868868686866d866686868686866d688868868686868d86d888666686868d86dd8d666666868d86d888666666866d688868666666866d866686666666886d868686886886886d868686866886866d868686666886866d868686666886866d868686866886888d886888686666868888888888888888") +const _hex9343 = pxsim.BufferMethods.createBufferFromHex("8704100010000000cccccccccccccc8cbcbb88b88b8b8b8bbc8bbb8b8b8b8b8bbcb888b88b8b8b8b8c8b6888bbbb8b8b8c8b6686bbbbbb8b8c8b6888bbbbbb8bbcb888b8bbbbbb8bbc8bbb8bbbbbbb88bc8b8b8b88b88b88bc8b8b8b8bb88b8bbc8b8b8bbbb88b8bbc8b8b8bbbb88b8bbc8b8b8b8bb88b888c88b888b8bbbb8b8888888888888888") +const _hex9346 = pxsim.BufferMethods.createBufferFromHex("8704100010000000efeeeefefffeeffeee44e4feeeeefeee4e4444eeee44e4ef4e4444e44e4444feee4444e4444444e4ee4444e4444444e4ef4e44ee444444e4feeefefe4e4444fefeffefeeef44e4effeef4e44eeeefe4eeeef4444e4efef44e4ef4444e4fe4e44e4ef444444fe4e44e4ee444444feee44e4fe4e44eeeeee4eeeeeefeefeefefee") +const _hex9349 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ffffffffffffffffffccfcffffffffffcfccccffffccfcffcfccccfccfccccffffccccfcccccccfcffccccfcccccccfcffcfccffccccccfcffffffffcfccccffffffffffffccfcffffffcfccffffffcfffffccccfcffffccfcffccccfcffcfccfcffccccccffcfccfcffccccccffffccfcffcfccffffffcfffffffffffffffff") +const _hex11893 = pxsim.BufferMethods.createBufferFromHex("87040800080000001111111101000010010000100100001001000010010000100100001011111111") +const _hex11896 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000010111101100000011000000110000001100000011011110100000000") +const _hex11899 = pxsim.BufferMethods.createBufferFromHex("8704060006000000111111000100100001001000010010000100100011111100") +const _hex11902 = pxsim.BufferMethods.createBufferFromHex("8704060006000000000000001011010010000100100001001011010000000000") +const _hex16556 = pxsim.BufferMethods.createBufferFromHex("87040800080000005555555505000050050000500500005005000050050000500500005055555555") +const _hex16559 = pxsim.BufferMethods.createBufferFromHex("87040800080000000000000050555505500000055000000550000005500000055055550500000000") + + + + +function inline__P4039(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1529,23 +1529,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___544 = (false); - s.tmp_0 = pause__P309_mk(s); + globals.__updated___4036 = (false); + s.tmp_0 = pause__P399_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___544); + r0 = pxsim_numops_toBoolDecr(globals.__updated___4036); 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__P545_mk(s); + s.tmp_2 = control___screen_update__P1760_mk(s); s.callLocIdx = 3; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___544 = (true); + globals.__updated___4036 = (true); case 2: case 3: { step = 1; continue; } @@ -1554,12 +1554,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P549.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} +inline__P4039.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} -function inline__P549_mk(s) { +function inline__P4039_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P549, depth: s.depth + 1, + parent: s, fn: inline__P4039, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1570,7 +1570,7 @@ function inline__P549_mk(s) { -function inline__P583(s) { +function inline__P4057(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1580,17 +1580,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___578); + r0 = pxsim_pxtcore.updateScreen(globals.screen___1799); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P583.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} +inline__P4057.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} -function inline__P583_mk(s) { +function inline__P4057_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P583, depth: s.depth + 1, + parent: s, fn: inline__P4057, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -1598,7 +1598,7 @@ function inline__P583_mk(s) { -function inline__P588(s) { +function inline__P4062(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1617,12 +1617,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P588.info = {"start":816,"length":56,"line":23,"column":35,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} +inline__P4062.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__P588_mk(s) { +function inline__P4062_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P588, depth: s.depth + 1, + parent: s, fn: inline__P4062, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -1631,7 +1631,7 @@ function inline__P588_mk(s) { -function inline__P940(s) { +function inline__P4163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1645,36 +1645,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___935); + r0 = pxsim_numops_toBoolDecr(globals.infoState___4159); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___937); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___4161); 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___937 = (r0); + globals.infoStateStack___4161 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___935); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___4159); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___937, s.tmp_0); - globals.infoState___935 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___4161, s.tmp_0); + globals.infoState___4159 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P940.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} +inline__P4163.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__P940_mk(s) { +function inline__P4163_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P940, depth: s.depth + 1, + parent: s, fn: inline__P4163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1685,7 +1685,7 @@ function inline__P940_mk(s) { -function inline__P957(s) { +function inline__P4178(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1695,30 +1695,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___958 = undefined; - s.nextState___969 = undefined; - s.tmp_0 = game_currentScene__P961_mk(s); + s.scene___4179 = undefined; + s.nextState___4188 = undefined; + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 20; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___958 = (r0); - globals.infoState___935 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___937; + s.scene___4179 = (r0); + globals.infoState___4159 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___4161; 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___937); + r0 = pxsim_Array__length(globals.infoStateStack___4161); 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___937); - s.nextState___969 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___4161); + s.nextState___4188 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___969; + s.tmp_2.arg0 = s.nextState___4188; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -1730,12 +1730,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___958); + r0 = (s.tmp_1 == s.scene___4179); 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___969; + s.tmp_3.arg0 = s.nextState___4188; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -1746,10 +1746,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.infoState___935 = (r0); + globals.infoState___4159 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___937, s.nextState___969); + r0 = pxsim_Array__push(globals.infoStateStack___4161, s.nextState___4188); case 4: case 5: case 6: @@ -1757,26 +1757,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P957.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +inline__P4178.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function inline__P957_mk(s) { +function inline__P4178_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P957, depth: s.depth + 1, + parent: s, fn: inline__P4178, depth: s.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___958: undefined, - nextState___969: undefined, + scene___4179: undefined, + nextState___4188: undefined, } } -function inline__P1696(s) { +function inline__P4608(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1786,13 +1786,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sz___1697 = undefined; - s.tmp_0 = control_ramSize__P228_mk(s); + s.sz___4609 = undefined; + s.tmp_0 = control_ramSize__P332_mk(s); s.callLocIdx = 28; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sz___1697 = (r0); - r0 = (s.sz___1697 <= 102400); + s.sz___4609 = (r0); + r0 = (s.sz___4609 <= 102400); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -1800,7 +1800,7 @@ switch (step) { { step = 5; continue; } { step = 4; continue; } case 1: - r0 = (s.sz___1697 <= 204800); + r0 = (s.sz___4609 <= 204800); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 2; continue; } @@ -1817,23 +1817,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P1696.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +inline__P4608.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} -function inline__P1696_mk(s) { +function inline__P4608_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P1696, depth: s.depth + 1, + parent: s, fn: inline__P4608, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sz___1697: undefined, + sz___4609: undefined, } } -function inline__P1912(s) { +function inline__P4700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1863,12 +1863,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P1912.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} +inline__P4700.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} -function inline__P1912_mk(s) { +function inline__P4700_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P1912, depth: s.depth + 1, + parent: s, fn: inline__P4700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1883,7 +1883,7 @@ function inline__P1912_mk(s) { -function inline__P1926(s) { +function inline__P4713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1912,7 +1912,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__P77_mk(s); + s.tmp_7 = Math_sign__P121_mk(s); r0 = pxsim.Math_.sin(s.arg0); s.tmp_7.arg0 = r0; s.callLocIdx = 48; s.pc = 7; return s.tmp_7; @@ -1977,7 +1977,7 @@ switch (step) { } case 9: r0 = s.retval; - s.tmp_2 = Math_abs__P76_mk(s); + s.tmp_2 = Math_abs__P120_mk(s); s.tmp_3 = if_yOffset_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -2049,12 +2049,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P1926.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__P4713.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__P1926_mk(s) { +function inline__P4713_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P1926, depth: s.depth + 1, + parent: s, fn: inline__P4713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2074,7 +2074,7 @@ function inline__P1926_mk(s) { -function inline__P2064(s) { +function inline__P4781(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2088,36 +2088,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.animations___2061); + r0 = pxsim_numops_toBoolDecr(globals.animations___4778); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.animationStateStack___2062); + r0 = pxsim_numops_toBoolDecr(globals.animationStateStack___4779); 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.animationStateStack___2062 = (r0); + globals.animationStateStack___4779 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.animations___2061); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.animations___4778); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.animationStateStack___2062, s.tmp_0); - globals.animations___2061 = (undefined); + r0 = pxsim_Array__push(globals.animationStateStack___4779, s.tmp_0); + globals.animations___4778 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P2064.info = {"start":251,"length":277,"line":12,"column":29,"endLine":21,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["oldScene"]} +inline__P4781.info = {"start":251,"length":277,"line":12,"column":29,"endLine":21,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["oldScene"]} -function inline__P2064_mk(s) { +function inline__P4781_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P2064, depth: s.depth + 1, + parent: s, fn: inline__P4781, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2128,7 +2128,7 @@ function inline__P2064_mk(s) { -function inline__P2079(s) { +function inline__P4796(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2138,30 +2138,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___2080 = undefined; - s.nextState___2089 = undefined; - s.tmp_0 = game_currentScene__P961_mk(s); + s.scene___4797 = undefined; + s.nextState___4806 = undefined; + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 59; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___2080 = (r0); - globals.animations___2061 = (undefined); - s.tmp_0 = r0 = globals.animationStateStack___2062; + s.scene___4797 = (r0); + globals.animations___4778 = (undefined); + s.tmp_0 = r0 = globals.animationStateStack___4779; 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.animationStateStack___2062); + r0 = pxsim_Array__length(globals.animationStateStack___4779); 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.animationStateStack___2062); - s.nextState___2089 = (r0); + r0 = pxsim_Array_.pop(globals.animationStateStack___4779); + s.nextState___4806 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___2089; + s.tmp_2.arg0 = s.nextState___4806; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -2173,12 +2173,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___2080); + r0 = (s.tmp_1 == s.scene___4797); 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___2089; + s.tmp_3.arg0 = s.nextState___4806; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -2189,10 +2189,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.animations___2061 = (r0); + globals.animations___4778 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.animationStateStack___2062, s.nextState___2089); + r0 = pxsim_Array__push(globals.animationStateStack___4779, s.nextState___4806); case 4: case 5: case 6: @@ -2200,26 +2200,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P2079.info = {"start":560,"length":398,"line":23,"column":28,"endLine":34,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":[]} +inline__P4796.info = {"start":560,"length":398,"line":23,"column":28,"endLine":34,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":[]} -function inline__P2079_mk(s) { +function inline__P4796_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P2079, depth: s.depth + 1, + parent: s, fn: inline__P4796, depth: s.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___2080: undefined, - nextState___2089: undefined, + scene___4797: undefined, + nextState___4806: undefined, } } -function tileworld_LoadScreen_constructor__P16016(s) { +function createPacMan__P3840(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2233,664 +2233,536 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_LoadScreen__C16011_VT)) failedCast(r0); - r0 = (s.arg0).fields["lastDir"] = (-1); - s.tmp_0 = tileworld_RuleVisualsBase_constructor__P10857_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = null; - s.callLocIdx = 1419; s.pc = 1; return s.tmp_0; - case 1: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 4: r0 = s.retval; - s.tmp_0 = controller_setRepeatDefault__P709_mk(s); - s.tmp_0.arg0 = 500; - s.tmp_0.arg1 = 80; - s.callLocIdx = 1420; s.pc = 2; return s.tmp_0; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "VersionS"); + s.tmp_1 = r0; + r0 = pxsim.settings._exists(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_3 = settings_writeString__P1825_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 6: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P16027); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1437; s.pc = 3; return s.tmp_1; - case 3: + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "VersionS"); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = "4.0.0"; + s.callLocIdx = 1591; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; - s.tmp_0 = tileworld_LoadScreen__C16011_v0_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_LoadScreen__C16011_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 4; return s.tmp_0; - case 4: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 8: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_LoadScreen_constructor__P16016.info = {"start":163,"length":1211,"line":7,"column":8,"endLine":32,"endColumn":9,"fileName":"loadScreen.ts","functionName":"inline","argumentNames":["this"]} - -function tileworld_LoadScreen_constructor__P16016_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_LoadScreen_constructor__P16016, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function inline__P16027(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.first___16028 = undefined; - s.second___16040 = undefined; - s.slot___16070 = undefined; - s.prefix___16080 = undefined; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1421; s.pc = 21; return s.tmp_2; - case 21: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WBackM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19195; + s.callLocIdx = 1592; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 10: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 >= 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_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1422; s.pc = 22; return s.tmp_4; - case 22: + r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19203; + s.callLocIdx = 1593; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 <= 4); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - s.first___16028 = (s.tmp_5); - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1423; s.pc = 23; return s.tmp_2; - case 23: + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 12: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 >= 5); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1424; s.pc = 24; return s.tmp_4; + r0 = pxsim_String__concat(s.tmp_1, "BackN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1594; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19217; + s.callLocIdx = 1595; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 16: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19225; + s.callLocIdx = 1596; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + 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_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19233; + s.callLocIdx = 1597; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 20: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19241; + s.callLocIdx = 1598; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 22: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1599; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 24: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 <= 6); - case 4: - // jmp value (already in r0) - s.tmp_5 = r0; - s.second___16040 = (s.tmp_5); - s.tmp_0 = r0 = s.first___16028; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.second___16040; - case 6: - // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 7; continue; } - r0 = s.tmp_1; - { step = 10; continue; } - case 7: - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1425; s.pc = 25; return s.tmp_4; - case 25: + r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19255; + s.callLocIdx = 1600; s.pc = 23; return s.tmp_0; + case 23: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 > 1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 8; continue; } - r0 = s.tmp_2; - { step = 9; continue; } - case 8: - s.tmp_6 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_6.arg0 = s.caps[0]; - s.tmp_6.arg1 = true; - s.callLocIdx = 1426; s.pc = 26; return s.tmp_6; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 26: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 <= 5); - case 9: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 10: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 15; continue; } - r0 = pxsim_numops_toBoolDecr(s.first___16028); - if (!r0) { step = 11; continue; } - r0 = 0; - { step = 12; continue; } - case 11: - r0 = 4; - case 12: - // jmp value (already in r0) - s.tmp_9 = r0; - s.tmp_12 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_12.arg0 = s.caps[0]; - s.tmp_12.arg1 = true; - s.callLocIdx = 1427; s.pc = 27; return s.tmp_12; - case 27: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19263; + s.callLocIdx = 1601; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; - s.tmp_11 = r0; - r0 = (s.tmp_11 - 1); - s.tmp_10 = r0; - r0 = (s.tmp_10 + s.tmp_9); - s.slot___16070 = (r0); - r0 = pxsim_numops.toString(s.slot___16070); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { setupResume(s, 28); - pxsim_String__stringConv(s.tmp_3); + pxsim_String__stringConv(s.arg0); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_3) + ""; } + } else { s.retval = (s.arg0) + ""; } case 28: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat("TW", s.tmp_2); s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 29); - pxsim_String__stringConv(s.tmp_1); + r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19271; + s.callLocIdx = 1602; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.arg0); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_1) + ""; } + } else { s.retval = (s.arg0) + ""; } + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19279; + s.callLocIdx = 1603; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "-"); - s.prefix___16080 = (r0); - s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = tileworld_loadProject__P6784_mk(s); - s.tmp_2.arg0 = s.prefix___16080; - s.tmp_2.arg1 = false; - s.callLocIdx = 1428; s.pc = 30; return s.tmp_2; - case 30: + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 32); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 32: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["p"] = (s.tmp_1); - s.tmp_0 = tileworld_LoadScreen__C16011_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, tileworld_LoadScreen__C16011_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 31; return s.tmp_0; + r0 = pxsim_String__concat(s.tmp_1, "HelpN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1604; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; - r0 = s.caps[0].fields["p"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.caps[0]; - s.tmp_5 = tileworld_emptyProject__P7143_mk(s); - s.tmp_5.arg0 = s.prefix___16080; - s.callLocIdx = 1429; s.pc = 32; return s.tmp_5; - case 32: + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 34); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 34: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["p"] = (s.tmp_4); - s.tmp_0 = tileworld_Project_saveProject__P6127_mk(s); - r0 = s.caps[0].fields["p"]; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HighN"); s.tmp_0.arg0 = r0; - s.callLocIdx = 1430; s.pc = 33; return s.tmp_0; + s.tmp_0.arg1 = 1540; + s.callLocIdx = 1605; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; - case 13: - case 14: - r0 = (s.caps[0]).fields["lastDir"] = (-1); - r0 = (s.caps[0]).fields["lastDir"] = (-1); - s.tmp_0 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1431; s.pc = 34; return s.tmp_0; - case 34: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 36: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_GameHome__C15718_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_GameHome_constructor__P15722_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 1432; s.pc = 35; return s.tmp_1; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19299; + s.callLocIdx = 1606; s.pc = 35; return s.tmp_0; case 35: r0 = s.retval; - { step = 20; continue; } - case 15: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1433; s.pc = 36; return s.tmp_2; - case 36: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 38: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == 9); - 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_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1434; s.pc = 37; return s.tmp_4; + r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19307; + s.callLocIdx = 1607; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 0); - case 17: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 18; continue; } - s.tmp_6 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1435; s.pc = 38; return s.tmp_6; - case 38: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 40: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_ProjectSettings__C15482_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_ProjectSettings_constructor__P15485_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = null; - s.callLocIdx = 1436; s.pc = 39; return s.tmp_1; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19315; + s.callLocIdx = 1608; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; - case 18: - case 19: - case 20: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P16027.info = {"start":321,"length":1012,"line":10,"column":64,"endLine":30,"endColumn":13,"fileName":"loadScreen.ts","functionName":"inline","argumentNames":[]} - -function inline__P16027_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P16027, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - first___16028: undefined, - second___16040: undefined, - slot___16070: undefined, - prefix___16080: undefined, -} } - - - - - -function tileworld_ProjectSettings_constructor__P15485(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, tileworld_ProjectSettings__C15482_VT)) failedCast(r0); - r0 = (s.arg0).fields["askDeleteRule"] = (false); - s.tmp_0 = tileworld_RuleVisualsBase_constructor__P10857_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1314; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 42: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1315; s.pc = 2; return s.tmp_0; - case 2: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19323; + s.callLocIdx = 1609; s.pc = 41; return s.tmp_0; + case 41: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1316; s.pc = 3; return s.tmp_0; - case 3: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 44: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P15496); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1333; s.pc = 4; return s.tmp_1; - case 4: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19331; + s.callLocIdx = 1610; s.pc = 43; return s.tmp_0; + case 43: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P15567); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.B___667; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1335; s.pc = 5; return s.tmp_1; - case 5: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 46: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_ProjectSettings_constructor__P15485.info = {"start":176,"length":1688,"line":6,"column":8,"endLine":46,"endColumn":9,"fileName":"settings.ts","functionName":"inline","argumentNames":["this","p"]} - -function tileworld_ProjectSettings_constructor__P15485_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_ProjectSettings_constructor__P15485, 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 inline__P15496(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.keys___15501 = undefined; - r0 = s.caps[0].fields["askDeleteRule"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.caps[0].fields["p"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 1; continue; } - s.tmp_2 = settings_list__P619_mk(s); - r0 = s.caps[0].fields["p"]; - r0 = r0.fields["prefix"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 1317; s.pc = 24; return s.tmp_2; - case 24: + r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19339; + s.callLocIdx = 1611; s.pc = 45; return s.tmp_0; + case 45: r0 = s.retval; - s.keys___15501 = (r0); - s.tmp_0 = helpers_arrayForEach__P60_mk(s); - s.tmp_0.arg0 = s.keys___15501; - s.tmp_0.arg1 = inline__P15508; - s.callLocIdx = 1319; s.pc = 25; return s.tmp_0; - case 25: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 48: r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); - s.callLocIdx = 1320; s.pc = 26; return s.tmp_0; - case 26: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19347; + s.callLocIdx = 1612; s.pc = 47; return s.tmp_0; + case 47: r0 = s.retval; - { step = 2; continue; } - case 1: - s.tmp_0 = settings_clear__P610_mk(s); - s.callLocIdx = 1321; s.pc = 27; return s.tmp_0; - case 27: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 50); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 50: r0 = s.retval; - case 2: - s.tmp_0 = game_popScene__P1293_mk(s); - s.callLocIdx = 1322; s.pc = 28; return s.tmp_0; - case 28: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19355; + s.callLocIdx = 1613; s.pc = 49; return s.tmp_0; + case 49: r0 = s.retval; - { step = 22; continue; } - case 3: - r0 = s.caps[0].fields["p"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_3.arg0 = s.caps[0]; - s.tmp_3.arg1 = true; - s.callLocIdx = 1323; s.pc = 29; return s.tmp_3; - case 29: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 52); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 52: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 == 3); s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 4; continue; } - r0 = s.tmp_1; - { step = 5; continue; } - case 4: - s.tmp_5 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_5.arg0 = s.caps[0]; - s.tmp_5.arg1 = true; - s.callLocIdx = 1324; s.pc = 30; return s.tmp_5; - case 30: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 == 1); - case 5: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 6; continue; } - r0 = s.caps[0].fields["p"]; - s.tmp_7 = r0; - r0 = s.caps[0].fields["p"]; - r0 = r0.fields["help"]; - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - s.tmp_9 = r0; - r0 = pxsim_Boolean__bang(s.tmp_9); - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["help"] = (s.tmp_8); - s.tmp_0 = tileworld_Project_saveHelp__P6124_mk(s); - r0 = s.caps[0].fields["p"]; + r0 = pxsim_String__concat(s.tmp_1, "RuleB8"); s.tmp_0.arg0 = r0; - s.callLocIdx = 1325; s.pc = 31; return s.tmp_0; - case 31: + s.tmp_0.arg1 = _hex19363; + s.callLocIdx = 1614; s.pc = 51; return s.tmp_0; + case 51: r0 = s.retval; - { step = 11; continue; } - case 6: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1326; s.pc = 32; return s.tmp_2; - case 32: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 54); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 54: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == 4); - 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: - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1327; s.pc = 33; return s.tmp_4; - case 33: + r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19371; + s.callLocIdx = 1615; s.pc = 53; return s.tmp_0; + case 53: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 5); - case 8: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 9; continue; } - s.tmp_6 = tileworld_loadProject__P6784_mk(s); - r0 = s.caps[0].fields["p"]; - r0 = r0.fields["prefix"]; - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = true; - s.callLocIdx = 1328; s.pc = 34; return s.tmp_6; - case 34: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 56); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 56: r0 = s.retval; - case 9: - case 10: - case 11: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1329; s.pc = 35; return s.tmp_2; - case 35: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19379; + s.callLocIdx = 1616; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 58); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 58: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == 4); - 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_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1330; s.pc = 36; return s.tmp_4; - case 36: + r0 = pxsim_String__concat(s.tmp_1, "RuleB11"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19387; + s.callLocIdx = 1617; s.pc = 57; return s.tmp_0; + case 57: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 6); - case 13: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 14; continue; } - r0 = (s.caps[0]).fields["askDeleteRule"] = (true); - case 14: - case 15: - { step = 21; continue; } - case 16: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1331; s.pc = 37; return s.tmp_2; - case 37: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 60); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 60: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == 7); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 17; continue; } - r0 = s.tmp_0; - { step = 18; continue; } - case 17: - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1332; s.pc = 38; return s.tmp_4; - case 38: + r0 = pxsim_String__concat(s.tmp_1, "RuleB12"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19395; + s.callLocIdx = 1618; s.pc = 59; return s.tmp_0; + case 59: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 2); - case 18: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 19; continue; } - r0 = (s.caps[0]).fields["askDeleteRule"] = (true); - { step = 23; continue; } - case 19: - case 20: - case 21: - case 22: - s.tmp_0 = tileworld_ProjectSettings__C15482_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ProjectSettings__C15482_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 39; return s.tmp_0; - case 39: + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 62); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 62: r0 = s.retval; - case 23: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1619; s.pc = 61; return s.tmp_0; + case 61: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P15496.info = {"start":335,"length":1249,"line":9,"column":64,"endLine":37,"endColumn":13,"fileName":"settings.ts","functionName":"inline","argumentNames":[]} +createPacMan__P3840.info = {"start":20312,"length":4569,"line":478,"column":0,"endLine":578,"endColumn":1,"fileName":"games.ts","functionName":"createPacMan","argumentNames":["prefix"]} -function inline__P15496_mk(s) { +function createPacMan__P3840_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15496, depth: s.depth + 1, + parent: s, fn: createPacMan__P3840, depth: s.depth + 1, pc: 0, retval: undefined, 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, - keys___15501: undefined, + arg0: undefined, } } +const _hex19195 = pxsim.BufferMethods.createBufferFromHex("201880111012b021106110111011101110311031102110112011101110111011101110111031101110211011201110113011301130111011102110f13110111021101120115011301110113011102110112031107110311011102110411031101310111031103110214011301133113011301110211041103110131011103110311021101120311071103110111021101120115011301110113011102110f13110111021101120111011301130113011101110211011201110111011101110111011103110111021106110111011101110311031102180111012101190f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f121") +const _hex19203 = pxsim.BufferMethods.createBufferFromHex("2018ffaf613f113f311f314f112f111f113f113f111f311f114f112f111f113f113f113f111f114ff1311f114f112f115f113f111f113f114f112f316f211f311f114f411f212f123f311f317f114f121f124f103f114f411f212f123f311f314f112f316f211f311f114f112f115f113f111f113f114ff1311f114f112f111f113f113f113f111f114f112f111f113f113f111f311f114f613f113f311f31ffffffffffffffffffffffffffffffffffffffffffffffffffcf") +const _hex19217 = pxsim.BufferMethods.createBufferFromHex("1010ff4fa85f18af183f183f683f182f182f186f182f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f182f186f182f182f183f683f183f18af185fa8ff4f") +const _hex19225 = pxsim.BufferMethods.createBufferFromHex("1010ffffffffffffffffffffffffffffffffff1f") +const _hex19233 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") +const _hex19241 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") +const _hex19255 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e152f142e3f302f1e152f251d1e1512144f121e151f1e251d141512143f12131e151f1e142d14351f101f221e151f1e142d14351f102f121e151f1e251d141512142f102f1e152f251d1e1512142f103f1e152f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") +const _hex19263 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0d025d045c045d025f0f0f0f0f0f0d0") +const _hex19271 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50") +const _hex19279 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") +const _hex19299 = pxsim.BufferMethods.createBufferFromHex("2016220801160002") +const _hex19307 = pxsim.BufferMethods.createBufferFromHex("222622000112234100060004") +const _hex19315 = pxsim.BufferMethods.createBufferFromHex("2226220001022300042603000402") +const _hex19323 = pxsim.BufferMethods.createBufferFromHex("202022200146210400060300050202000002") +const _hex19331 = pxsim.BufferMethods.createBufferFromHex("002022200146230400060300050202000000") +const _hex19339 = pxsim.BufferMethods.createBufferFromHex("002022200116210400060000") +const _hex19347 = pxsim.BufferMethods.createBufferFromHex("2146220010121201000623040006320100060002") +const _hex19355 = pxsim.BufferMethods.createBufferFromHex("2146220010122301000612010006320400060003") +const _hex19363 = pxsim.BufferMethods.createBufferFromHex("212622001014120400060001") +const _hex19371 = pxsim.BufferMethods.createBufferFromHex("2146220010123201000623010006120400060001") +const _hex19379 = pxsim.BufferMethods.createBufferFromHex("21362200101223040006320400060002") +const _hex19387 = pxsim.BufferMethods.createBufferFromHex("21362200101223040006320400060003") +const _hex19395 = pxsim.BufferMethods.createBufferFromHex("222622001012230001060401") -function inline__P15508(s) { +function settings_writeNumber__P1826(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2902,33 +2774,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_remove__P620_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1318; s.pc = 1; return s.tmp_0; + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_1 = settings_writeBuffer__P1824_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = msgpack_packNumberArray__P174_mk(s); + s.tmp_2.arg0 = s.tmp_0; + s.callLocIdx = 133; s.pc = 2; return s.tmp_2; + case 2: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.callLocIdx = 134; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P15508.info = {"start":525,"length":26,"line":13,"column":37,"endLine":13,"endColumn":63,"fileName":"settings.ts","functionName":"inline","argumentNames":["k"]} +settings_writeNumber__P1826.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 inline__P15508_mk(s) { +function settings_writeNumber__P1826_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15508, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P1826, 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 inline__P15567(s) { +function msgpack_packNumberArray__P174(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2938,37 +2823,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["askDeleteRule"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.caps[0]).fields["askDeleteRule"] = (false); - { step = 2; continue; } + s.off___27245 = undefined; + s.n___27247 = undefined; + s.unnamed44___U2 = undefined; + s.unnamed45___U3 = undefined; + s.buf___27257 = undefined; + s.n___27263 = undefined; + s.unnamed46___U6 = undefined; + s.unnamed47___U7 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.off___27245 = (0); + s.n___27247 = (undefined); + s.unnamed44___U2 = (s.arg0); + s.unnamed45___U3 = (0); case 1: - s.tmp_0 = game_popScene__P1293_mk(s); - s.callLocIdx = 1334; s.pc = 3; return s.tmp_0; - case 3: + s.tmp_0 = r0 = s.unnamed45___U3; + r0 = pxsim_Array__length(s.unnamed44___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed44___U2, s.unnamed45___U3); + s.n___27247 = (r0); + s.tmp_2 = r0 = s.off___27245; + s.tmp_4 = msgpack_packNumberCore__P3902_mk(s); + s.tmp_4.arg0 = null; + s.tmp_4.arg1 = s.off___27245; + s.tmp_4.arg2 = s.n___27247; + s.callLocIdx = 23; 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___27245 = (r0); + r0 = (s.unnamed45___U3 + 1); + s.unnamed45___U3 = (r0); + { step = 1; continue; } case 2: - r0 = undefined; + s.unnamed44___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___27245); + s.buf___27257 = (r0); + s.off___27245 = (0); + s.n___27263 = (undefined); + s.unnamed46___U6 = (s.arg0); + s.unnamed47___U7 = (0); + case 3: + s.tmp_0 = r0 = s.unnamed47___U7; + r0 = pxsim_Array__length(s.unnamed46___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed46___U6, s.unnamed47___U7); + s.n___27263 = (r0); + s.tmp_2 = r0 = s.off___27245; + s.tmp_4 = msgpack_packNumberCore__P3902_mk(s); + s.tmp_4.arg0 = s.buf___27257; + s.tmp_4.arg1 = s.off___27245; + s.tmp_4.arg2 = s.n___27263; + s.callLocIdx = 24; 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___27245 = (r0); + r0 = (s.unnamed47___U7 + 1); + s.unnamed47___U7 = (r0); + { step = 3; continue; } + case 4: + s.unnamed46___U6 = (undefined); + r0 = s.buf___27257; return leave(s, r0) default: oops() } } } -inline__P15567.info = {"start":1654,"length":197,"line":39,"column":64,"endLine":45,"endColumn":13,"fileName":"settings.ts","functionName":"inline","argumentNames":[]} +msgpack_packNumberArray__P174.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} -function inline__P15567_mk(s) { +function msgpack_packNumberArray__P174_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15567, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P174, depth: s.depth + 1, pc: 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___27245: undefined, + n___27247: undefined, + unnamed44___U2: undefined, + unnamed45___U3: undefined, + buf___27257: undefined, + n___27263: undefined, + unnamed46___U6: undefined, + unnamed47___U7: undefined, + arg0: undefined, } } -function tileworld_ProjectSettings_update__P15484(s) { +function msgpack_packNumberCore__P3902(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2978,287 +2934,154 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worldY___15605 = undefined; + s.tag___27277 = undefined; + s.fmt___27320 = 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, tileworld_ProjectSettings__C15482_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.fill(globals.screen___578, 0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 6; - s.tmp_0.arg3 = 16; - s.tmp_0.arg4 = 16; - s.tmp_0.arg5 = 11; - s.callLocIdx = 1336; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___578, globals.settingsIcon___7238, 0, 6); - r0 = s.arg0.fields["p"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = helpers_imagePrint__P541_mk(s); - s.tmp_1.arg0 = globals.screen___578; - s.tmp_1.arg1 = "Help"; - s.tmp_1.arg2 = 16; - s.tmp_1.arg3 = 28; - s.tmp_1.arg4 = undefined; - s.tmp_1.arg5 = undefined; - s.tmp_1.arg6 = undefined; - s.callLocIdx = 1337; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 3; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = globals.emptyTile___7244; - s.callLocIdx = 1338; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - r0 = s.arg0.fields["p"]; - r0 = r0.fields["help"]; + s.tag___27277 = (203); + s.tmp_1 = r0 = s.arg2; + r0 = (s.arg2 << 0); + s.tmp_2 = r0; + r0 = (s.tmp_1 == s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = globals.collisionSprite___7256; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.genericSprite___7259; + s.tmp_3 = r0 = s.arg2; + r0 = (s.arg2 >>> 0); + s.tmp_4 = r0; + r0 = (s.tmp_3 == s.tmp_4); case 2: // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 19; continue; } + r0 = (-31 <= s.arg2); + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (r0) { step = 3; continue; } + r0 = s.tmp_6; + { step = 4; continue; } + case 3: + r0 = (s.arg2 <= 127); + case 4: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 7; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 5; continue; } + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.arg2); + case 5: + case 6: + r0 = 1; + { step = 23; continue; } + { step = 18; continue; } + case 7: + r0 = (0 <= s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = (s.arg2 <= 255); s.tmp_1 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = 3; - s.tmp_2.arg2 = 1; - s.tmp_2.arg3 = s.tmp_1; - s.callLocIdx = 1339; s.pc = 12; return s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 8; continue; } + s.tag___27277 = (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___27277 = (205); + { step = 10; continue; } + case 9: + s.tag___27277 = (206); + case 10: + case 11: + { step = 17; continue; } case 12: - r0 = s.retval; - s.worldY___15605 = (44); - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = "World"; - s.tmp_0.arg2 = 16; - s.tmp_0.arg3 = s.worldY___15605; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1340; s.pc = 13; return s.tmp_0; + r0 = (-127 <= s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tag___27277 = (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___27277 = (209); + { step = 15; continue; } + case 14: + s.tag___27277 = (210); + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + s.tmp_0 = msgpack_tagFormat__P3901_mk(s); + s.tmp_0.arg0 = s.tag___27277; + s.callLocIdx = 19; s.pc = 24; return s.tmp_0; + case 24: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = s.arg0.fields["p"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_backgrounds"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops.toString(s.tmp_1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 64; - s.tmp_0.arg3 = s.worldY___15605; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1342; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = "by"; - s.tmp_0.arg2 = 96; - s.tmp_0.arg3 = s.worldY___15605; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1343; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = s.arg0.fields["p"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_backgrounds"]; + s.fmt___27320 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 21; continue; } + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___27277); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.fmt___27320; + r0 = (s.arg1 + 1); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops.toString(s.tmp_1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 128; - s.tmp_0.arg3 = s.worldY___15605; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1345; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = s.arg0.fields["p"]; - r0 = r0.fields["version"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 120; - s.tmp_0.arg3 = 6; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1346; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = "Export"; - s.tmp_0.arg2 = 16; - s.tmp_0.arg3 = 92; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1347; s.pc = 18; return s.tmp_0; - case 18: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 4; - s.tmp_0.arg2 = 5; - s.tmp_0.arg3 = globals.diskIcon___7370; - s.callLocIdx = 1348; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = "Delete"; - s.tmp_0.arg2 = 16; - s.tmp_0.arg3 = 108; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1349; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 4; - s.tmp_0.arg2 = 6; - s.tmp_0.arg3 = globals.garbageCan___7235; - s.callLocIdx = 1350; s.pc = 21; return s.tmp_0; + r0 = pxsim.BufferMethods.setNumber(s.tmp_0, s.tmp_1, s.tmp_2, s.arg2); case 21: - r0 = s.retval; - { step = 4; continue; } - case 3: - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - if ((globals.TileWorldVersion___5977) && (globals.TileWorldVersion___5977).vtable) { - setupResume(s, 23); - pxsim_String__stringConv(globals.TileWorldVersion___5977); - checkResumeConsumed(); - return; - } else { s.retval = (globals.TileWorldVersion___5977) + ""; } - case 23: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("App Version ", s.tmp_1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 16; - s.tmp_0.arg3 = 28; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1351; s.pc = 22; return s.tmp_0; case 22: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = "Delete ALL games"; - s.tmp_0.arg2 = 16; - s.tmp_0.arg3 = 44; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1352; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 7; - s.tmp_0.arg2 = 2; - s.tmp_0.arg3 = globals.garbageCan___7235; - s.callLocIdx = 1353; s.pc = 25; return s.tmp_0; + s.tmp_1 = pins_sizeOf__P165_mk(s); + s.tmp_1.arg0 = s.fmt___27320; + s.callLocIdx = 20; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; - case 4: - r0 = s.arg0.fields["askDeleteRule"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 128; - s.tmp_1.arg2 = true; - s.callLocIdx = 1354; s.pc = 26; return s.tmp_1; - case 26: - r0 = s.retval; - r0 = s.arg0.fields["p"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = "OK to delete game?"; - { step = 6; continue; } - case 5: - r0 = "OK to delete ALL games?"; - case 6: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = game_showDialog__P1295_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = pxsim_String_.mkEmpty(); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = "A = OK, B = CANCEL"; - s.callLocIdx = 1355; s.pc = 27; return s.tmp_2; - case 27: - r0 = s.retval; - { step = 8; continue; } - case 7: - s.tmp_0 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 128; - s.tmp_0.arg2 = false; - s.callLocIdx = 1356; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - case 8: - r0 = undefined; + r0 = (s.tmp_0 + 1); + case 23: return leave(s, r0) default: oops() } } } -tileworld_ProjectSettings_update__P15484.info = {"start":1876,"length":1553,"line":48,"column":8,"endLine":78,"endColumn":9,"fileName":"settings.ts","functionName":"update","argumentNames":["this"]} +msgpack_packNumberCore__P3902.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 tileworld_ProjectSettings_update__P15484_mk(s) { +function msgpack_packNumberCore__P3902_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ProjectSettings_update__P15484, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P3902, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - worldY___15605: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tag___27277: undefined, + fmt___27320: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_showDialog__P1295(s) { +function msgpack_tagFormat__P3901(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3268,363 +3091,72 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.titleFont___24240 = undefined; - s.subFont___24245 = undefined; - s.footerFont___24250 = undefined; - s.h___24255 = undefined; - s.top___24274 = undefined; - s.y___24278 = undefined; - s.footerTop___24316 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P1291_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 867; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; s.tmp_0 = r0 = s.arg0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(203, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(204, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(205, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(206, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(208, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(209, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(210, s.tmp_0); + if (r0) { step = 7; continue; } r0 = s.tmp_0; - { step = 2; continue; } + { step = 8; continue; } case 1: - r0 = pxsim_String_.mkEmpty(); + r0 = 16; + { step = 9; continue; } case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = image_getFontForText__P533_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.callLocIdx = 868; s.pc = 22; return s.tmp_2; - case 22: - r0 = s.retval; - s.titleFont___24240 = (r0); - s.tmp_0 = r0 = s.arg1; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + r0 = 7; + { step = 9; continue; } case 3: - r0 = pxsim_String_.mkEmpty(); + r0 = 9; + { step = 9; continue; } case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = image_getFontForText__P533_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.callLocIdx = 869; s.pc = 23; return s.tmp_2; - case 23: - r0 = s.retval; - s.subFont___24245 = (r0); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } + r0 = 12; + { step = 9; continue; } case 5: - r0 = pxsim_String_.mkEmpty(); + r0 = 6; + { step = 9; continue; } case 6: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = image_getFontForText__P533_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.callLocIdx = 870; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - s.footerFont___24250 = (r0); - s.h___24255 = (8); - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 7; continue; } - s.tmp_0 = r0 = s.h___24255; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.titleFont___24240; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 871; s.pc = 25; return s.tmp_2; } - } - case 25: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.h___24255 = (r0); + r0 = 8; + { step = 9; continue; } case 7: + r0 = 10; + { step = 9; continue; } case 8: - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 9; continue; } - s.tmp_0 = r0 = s.h___24255; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.subFont___24245; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 872; s.pc = 26; return s.tmp_3; } - } - case 26: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (2 + s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.h___24255 = (r0); - case 9: - case 10: - r0 = (s.h___24255 + 8); - s.h___24255 = (r0); - s.tmp_0 = game_showDialogBackground__P1294_mk(s); - s.tmp_0.arg0 = s.h___24255; - s.tmp_0.arg1 = 9; - s.callLocIdx = 873; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.top___24274 = (r0); - r0 = (s.top___24274 + 8); - s.y___24278 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 13; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___578); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = 1; - { step = 12; continue; } - case 11: - r0 = 7; - case 12: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = helpers_imagePrint__P541_mk(s); - s.tmp_2.arg0 = globals.screen___578; - s.tmp_2.arg1 = s.arg0; - s.tmp_2.arg2 = 8; - s.tmp_2.arg3 = s.y___24278; - s.tmp_2.arg4 = s.tmp_1; - s.tmp_2.arg5 = s.titleFont___24240; - s.tmp_2.arg6 = undefined; - s.callLocIdx = 874; s.pc = 28; return s.tmp_2; - case 28: - r0 = s.retval; - s.tmp_0 = r0 = s.y___24278; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.titleFont___24240; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 875; s.pc = 29; return s.tmp_3; } - } - case 29: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.y___24278 = (r0); - case 13: - case 14: - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 17; continue; } - r0 = pxsim_ImageMethods.isMono(globals.screen___578); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = 1; - { step = 16; continue; } - case 15: - r0 = 6; - case 16: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = helpers_imagePrint__P541_mk(s); - s.tmp_2.arg0 = globals.screen___578; - s.tmp_2.arg1 = s.arg1; - s.tmp_2.arg2 = 8; - s.tmp_2.arg3 = s.y___24278; - s.tmp_2.arg4 = s.tmp_1; - s.tmp_2.arg5 = s.subFont___24245; - s.tmp_2.arg6 = undefined; - s.callLocIdx = 876; s.pc = 30; return s.tmp_2; - case 30: - r0 = s.retval; - s.tmp_0 = r0 = s.y___24278; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.subFont___24245; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 877; s.pc = 31; return s.tmp_3; } - } - case 31: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 2); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.y___24278 = (r0); - case 17: - case 18: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 19; continue; } - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_1 = r0; - s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.footerFont___24250; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 878; s.pc = 32; return s.tmp_3; } - } - case 32: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 4); - s.footerTop___24316 = (r0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.footerTop___24316; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_0.arg3 = r0; - s.tmp_2 = if_charHeight_1_mk(s); - s.tmp_2.arg0 = s.footerFont___24250; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 879; s.pc = 34; return s.tmp_2; } - } - case 34: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 0; - s.callLocIdx = 880; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P519_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.footerTop___24316; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.footerTop___24316; - s.tmp_0.arg5 = 1; - s.callLocIdx = 881; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = s.arg2; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_2 = r0; - r0 = pxsim_String_.length(s.arg2); - s.tmp_4 = r0; - s.tmp_6 = if_charWidth_1_mk(s); - s.tmp_6.arg0 = s.footerFont___24250; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 882; s.pc = 37; return s.tmp_6; } - } - case 37: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 8); - s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_8 = r0; - s.tmp_10 = if_charHeight_1_mk(s); - s.tmp_10.arg0 = s.footerFont___24250; - if (!s.tmp_10.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_10.arg0, "charHeight"); - } else { - s.tmp_10.fn = s.tmp_10.arg0.vtable.iface["charHeight"]; - if (s.tmp_10.fn == null) { s.retval = s.tmp_10.arg0.fields["charHeight"]; } - else if (!s.tmp_10.fn.isGetter) { s.retval = bind(s.tmp_10); } - else { s.callLocIdx = 883; s.pc = 38; return s.tmp_10; } - } - case 38: - r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_8 - s.tmp_9); - s.tmp_7 = r0; - r0 = (s.tmp_7 - 2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.footerFont___24250; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 884; s.pc = 36; return s.tmp_0; - case 36: - r0 = s.retval; - case 19: - case 20: + r0 = null; + { step = 9; continue; } r0 = undefined; + case 9: return leave(s, r0) default: oops() } } } -game_showDialog__P1295.info = {"start":2895,"length":1313,"line":104,"column":4,"endLine":137,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"showDialog","argumentNames":["title","subtitle","footer"]} +msgpack_tagFormat__P3901.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} -function game_showDialog__P1295_mk(s) { +function msgpack_tagFormat__P3901_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_showDialog__P1295, depth: s.depth + 1, + parent: s, fn: msgpack_tagFormat__P3901, depth: s.depth + 1, pc: 0, retval: undefined, 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, - titleFont___24240: undefined, - subFont___24245: undefined, - footerFont___24250: undefined, - h___24255: undefined, - top___24274: undefined, - y___24278: undefined, - footerTop___24316: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function game_showDialogBackground__P1294(s) { +function pins_sizeOf__P165(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3634,81 +3166,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.top___24360 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_1 = r0; - r0 = (s.tmp_1 - s.arg0); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); - s.top___24360 = (r0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.top___24360; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg0; - s.tmp_0.arg5 = 0; - s.callLocIdx = 864; s.pc = 1; return s.tmp_0; + s.tmp_0 = Buffer_sizeOfNumberFormat__P201_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 18; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P519_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.top___24360; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.top___24360; - s.tmp_0.arg5 = 1; - s.callLocIdx = 865; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P519_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = 0; - r0 = (s.top___24360 + s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 1); - s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_0.arg3 = r0; - r0 = (s.top___24360 + s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = 1; - s.callLocIdx = 866; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = s.top___24360; return leave(s, r0) default: oops() } } } -game_showDialogBackground__P1294.info = {"start":2587,"length":302,"line":95,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"showDialogBackground","argumentNames":["h","c"]} +pins_sizeOf__P165.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} -function game_showDialogBackground__P1294_mk(s) { +function pins_sizeOf__P165_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_showDialogBackground__P1294, depth: s.depth + 1, + parent: s, fn: pins_sizeOf__P165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - top___24360: undefined, arg0: undefined, - arg1: undefined, } } -function game_init__P1291(s) { +function Buffer_sizeOfNumberFormat__P201(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3722,95 +3207,79 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scene___1280); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); + if (r0) { step = 11; continue; } + r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); + if (r0) { step = 12; continue; } + r0 = pxsim_pxtcore.switch_eq(15, s.tmp_0); + if (r0) { step = 13; continue; } + r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); + if (r0) { step = 14; continue; } + r0 = pxsim_pxtcore.switch_eq(16, s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq(14, s.tmp_0); + if (r0) { step = 16; continue; } r0 = s.tmp_0; - { step = 2; continue; } + { step = 17; continue; } case 1: - r0 = s.arg0; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C1195_VT); - s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P1203_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P304_mk(s); - s.callLocIdx = 849; s.pc = 14; return s.tmp_5; - case 14: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___1280; - s.callLocIdx = 850; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - globals._scene___1280 = (s.tmp_3); case 3: case 4: - s.tmp_0 = scene_Scene_init__P1196_mk(s); - s.tmp_0.arg0 = globals._scene___1280; - s.callLocIdx = 851; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.winEffect___1273); - 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___1273 = (globals.confetti___1866); + r0 = 1; + { step = 18; continue; } case 5: case 6: - r0 = pxsim_numops_toBoolDecr(globals.loseEffect___1275); - 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___1275 = (globals.melt___1901); case 7: case 8: - r0 = pxsim_numops_toBoolDecr(globals.winSound___1279); - 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___1279 = (globals.powerUp___472); + r0 = 2; + { step = 18; continue; } case 9: case 10: - r0 = pxsim_numops_toBoolDecr(globals.loseSound___1277); - 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___1277 = (globals.wawawawaa___466); case 11: case 12: - r0 = undefined; + case 13: + case 14: + r0 = 4; + { step = 18; continue; } + case 15: + case 16: + r0 = 8; + { step = 18; continue; } + case 17: + r0 = 0; + case 18: return leave(s, r0) default: oops() } } } -game_init__P1291.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +Buffer_sizeOfNumberFormat__P201.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} -function game_init__P1291_mk(s) { +function Buffer_sizeOfNumberFormat__P201_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P1291, depth: s.depth + 1, + parent: s, fn: Buffer_sizeOfNumberFormat__P201, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -3818,7 +3287,7 @@ function game_init__P1291_mk(s) { -function inline__P21066(s) { +function settings_writeBuffer__P1824(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3828,87 +3297,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___21069 = undefined; - s.j___21077 = undefined; - s.x___21082 = undefined; - s.y___21088 = undefined; - s.c___21094 = 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___21069 = (r0); - s.j___21077 = (0); - case 1: - r0 = (s.j___21077 < s.rounds___21069); + r0 = pxsim.settings._set(s.arg0, s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P1567_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 = 44; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.x___21082 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P1567_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 = 45; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.y___21088 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___21082, s.y___21088); - s.c___21094 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___21082; - r0 = (s.y___21088 + 1); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___21094); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___21082; - r0 = (s.y___21088 + 2); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___21094); - r0 = (s.j___21077 + 1); - s.j___21077 = (r0); - { step = 1; continue; } + if (!r0) { step = 1; continue; } + r0 = pxsim.settings._userClean(); + r0 = pxsim_pxtrt.panic(920); + case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P21066.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +settings_writeBuffer__P1824.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 inline__P21066_mk(s) { +function settings_writeBuffer__P1824_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21066, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P1824, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - rounds___21069: undefined, - j___21077: undefined, - x___21082: undefined, - y___21088: undefined, - c___21094: undefined, arg0: undefined, arg1: undefined, } } @@ -3917,7 +3330,7 @@ function inline__P21066_mk(s) { -function Math_FastRandom_randomRange__P1567(s) { +function settings_writeString__P1825(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3930,59 +3343,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C1565_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__P1566_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 898; 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; } + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim.control.createBufferFromUTF8(s.arg1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 132; s.pc = 1; return s.tmp_0; case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = (s.arg1 + s.tmp_5); + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P1567.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"]} +settings_writeString__P1825.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 Math_FastRandom_randomRange__P1567_mk(s) { +function settings_writeString__P1825_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomRange__P1567, depth: s.depth + 1, + parent: s, fn: settings_writeString__P1825, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function Math_FastRandom_next__P1566(s) { +function settings_exists__P1834(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3996,43 +3386,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C1565_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; + r0 = pxsim.settings._exists(s.arg0); return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P1566.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +settings_exists__P1834.info = {"start":3828,"length":71,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"exists","argumentNames":["key"]} -function Math_FastRandom_next__P1566_mk(s) { +function settings_exists__P1834_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P1566, depth: s.depth + 1, + parent: s, fn: settings_exists__P1834, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -4040,7 +3404,7 @@ function Math_FastRandom_next__P1566_mk(s) { -function effects_ImageEffect_constructor__P1897(s) { +function createSokoban__P3842(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4052,47 +3416,436 @@ 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, effects_ImageEffect__C1893_VT)) failedCast(r0); - r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C1565_VT); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 4: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "VersionS"); + s.tmp_1 = r0; + r0 = pxsim.settings._exists(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P1572_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1184; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: + case 2: + s.tmp_3 = settings_writeString__P1825_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 6: 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.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "VersionS"); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = "4.0.0"; + s.callLocIdx = 1649; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 8: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WBackM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19634; + s.callLocIdx = 1650; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 10: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19642; + s.callLocIdx = 1651; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1652; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19656; + s.callLocIdx = 1653; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 16: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19664; + s.callLocIdx = 1654; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + 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_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19672; + s.callLocIdx = 1655; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 20: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19680; + s.callLocIdx = 1656; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 22: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1657; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 24: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19694; + s.callLocIdx = 1658; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 26: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19702; + s.callLocIdx = 1659; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 28: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19710; + s.callLocIdx = 1660; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19718; + s.callLocIdx = 1661; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 32); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HelpN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1662; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 34); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 34: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HighN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 1663; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19739; + s.callLocIdx = 1664; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19747; + s.callLocIdx = 1665; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 40: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19755; + s.callLocIdx = 1666; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 42: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19763; + s.callLocIdx = 1667; s.pc = 41; return s.tmp_0; + case 41: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 44: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19771; + s.callLocIdx = 1668; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19779; + s.callLocIdx = 1669; s.pc = 45; return s.tmp_0; + case 45: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 48: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19787; + s.callLocIdx = 1670; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 50); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 50: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1671; s.pc = 49; return s.tmp_0; + case 49: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P1897.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"]} +createSokoban__P3842.info = {"start":28590,"length":3571,"line":669,"column":0,"endLine":747,"endColumn":1,"fileName":"games.ts","functionName":"createSokoban","argumentNames":["prefix"]} -function effects_ImageEffect_constructor__P1897_mk(s) { +function createSokoban__P3842_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P1897, depth: s.depth + 1, + parent: s, fn: createSokoban__P3842, depth: s.depth + 1, pc: 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, } } +const _hex19634 = pxsim.BufferMethods.createBufferFromHex("2018118041b011101210123110e13011302110e120311011121110e1204112111210e12021124110e170121110e1105140e110f18110f18110f18110f18120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0") +const _hex19642 = pxsim.BufferMethods.createBufferFromHex("2018ffff11ff4f10ff8f113f13ff5f211f11ff8f11ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf") +const _hex19656 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") +const _hex19664 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") +const _hex19672 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f176c4f3c1f375c7f573c8f572c8f2c375f1c4f4c175f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") +const _hex19680 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") +const _hex19694 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") +const _hex19702 = pxsim.BufferMethods.createBufferFromHex("1010f020ee20ee202e844e202e745e202e643e142e202e543e242e202e443e342e202e343e442e202e243e542e202e143e642e205e742e205e742e20ee20eef020") +const _hex19710 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50") +const _hex19718 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") +const _hex19739 = pxsim.BufferMethods.createBufferFromHex("2026220001162314cc060002") +const _hex19747 = pxsim.BufferMethods.createBufferFromHex("2026220001162300441600020002") +const _hex19755 = pxsim.BufferMethods.createBufferFromHex("322622004413320144060004") +const _hex19763 = pxsim.BufferMethods.createBufferFromHex("322622000113320044060004") +const _hex19771 = pxsim.BufferMethods.createBufferFromHex("61102220042603000203") +const _hex19779 = pxsim.BufferMethods.createBufferFromHex("61102208402603000201") +const _hex19787 = pxsim.BufferMethods.createBufferFromHex("6310220004160400") -function inline__P21174(s) { +function createSpaceInvaders__P3841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4102,98 +3855,506 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___21177 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C1802_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 = 32; s.pc = 3; return s.tmp_2; } - } - case 3: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 4: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "VersionS"); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim.settings._exists(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = if_width_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); - } 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 = 33; s.pc = 4; return s.tmp_3; } - } - case 4: - r0 = s.retval; - { step = 2; continue; } + { step = 3; continue; } case 1: - r0 = 16; case 2: - // jmp value (already in r0) + s.tmp_3 = settings_writeString__P1825_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 6: + r0 = s.retval; s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P1804_mk(s); - s.tmp_5.arg0 = s.tmp_0; - s.tmp_5.arg1 = s.tmp_4; - s.tmp_5.arg2 = 16; - s.callLocIdx = 34; s.pc = 5; return s.tmp_5; + r0 = pxsim_String__concat(s.tmp_4, "VersionS"); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = "4.0.0"; + s.callLocIdx = 1621; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; - s.factory___21177 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P1783_mk(s); - s.tmp_0.arg0 = s.factory___21177; - s.tmp_0.arg1 = 30; - s.callLocIdx = 35; s.pc = 6; return s.tmp_0; - case 6: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 8: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C1715_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P1733_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___21177; - s.callLocIdx = 36; s.pc = 7; return s.tmp_1; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WBackM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19422; + s.callLocIdx = 1622; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = s.tmp_0; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 10: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19430; + s.callLocIdx = 1623; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1624; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19444; + s.callLocIdx = 1625; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 16: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19452; + s.callLocIdx = 1626; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + 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_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19460; + s.callLocIdx = 1627; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 20: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19468; + s.callLocIdx = 1628; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 22: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1629; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 24: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19482; + s.callLocIdx = 1630; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 26: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19490; + s.callLocIdx = 1631; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 28: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19498; + s.callLocIdx = 1632; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19506; + s.callLocIdx = 1633; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 32); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HelpN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1634; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 34); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 34: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HighN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 1635; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19527; + s.callLocIdx = 1636; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19535; + s.callLocIdx = 1637; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 40: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19543; + s.callLocIdx = 1638; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 42: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19551; + s.callLocIdx = 1639; s.pc = 41; return s.tmp_0; + case 41: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 44: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19559; + s.callLocIdx = 1640; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19567; + s.callLocIdx = 1641; s.pc = 45; return s.tmp_0; + case 45: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 48: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19575; + s.callLocIdx = 1642; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 50); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 50: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19583; + s.callLocIdx = 1643; s.pc = 49; return s.tmp_0; + case 49: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 52); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 52: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB8"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19591; + s.callLocIdx = 1644; s.pc = 51; return s.tmp_0; + case 51: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 54); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 54: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19599; + s.callLocIdx = 1645; s.pc = 53; return s.tmp_0; + case 53: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 56); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 56: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19607; + s.callLocIdx = 1646; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 58); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 58: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1647; s.pc = 57; return s.tmp_0; + case 57: + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P21174.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +createSpaceInvaders__P3841.info = {"start":24904,"length":3682,"line":581,"column":0,"endLine":667,"endColumn":1,"fileName":"games.ts","functionName":"createSpaceInvaders","argumentNames":["prefix"]} -function inline__P21174_mk(s) { +function createSpaceInvaders__P3841_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21174, depth: s.depth + 1, + parent: s, fn: createSpaceInvaders__P3841, depth: s.depth + 1, pc: 0, retval: undefined, 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___21177: undefined, arg0: undefined, - arg1: undefined, } } +const _hex19422 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17120f17120f17120f17120f17120f17190f190f120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0") +const _hex19430 = pxsim.BufferMethods.createBufferFromHex("2018ffaf12ffffff2f12ffffff2f124f10ffffcf12ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdf") +const _hex19444 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") +const _hex19452 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") +const _hex19460 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") +const _hex19468 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") +const _hex19482 = pxsim.BufferMethods.createBufferFromHex("1010c02cd03cc04cc01f3cb01e1f3ca01c1e1f1e2c802e1c121c3e702e121c121c122e7012241e121e32803e141e32a02e1f32b01e1f2412c01e2214c02e22d03ee02e20") +const _hex19490 = pxsim.BufferMethods.createBufferFromHex("1010f0f0707f801f751f601f951f501f353f351f501f251f301f251f501f251f301f251f501f251f301f251f501f251f301f251f501f353f351f501f951f601f751f807ff0f060") +const _hex19498 = pxsim.BufferMethods.createBufferFromHex("1010f0c01c111b605f101f111b1f402f3d1b1c2f211b301f1b313d1b1f111b1f301f411d1b1c112c111f201f612f111d1b1f301f611d211b1f401f611d311b401f612f111b2f401f411d1b1c111d1c111b301f1b313d1b1f111b1f402f3d1b1c2f211b605f101f111b1fc01f1c111bf030") +const _hex19506 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0b0153015a01514151015141580151410141514101415701430143014f0f0f0f0f0f0a0") +const _hex19527 = pxsim.BufferMethods.createBufferFromHex("202122000116230300060002") +const _hex19535 = pxsim.BufferMethods.createBufferFromHex("10102200012602030001") +const _hex19543 = pxsim.BufferMethods.createBufferFromHex("1110220040110001") +const _hex19551 = pxsim.BufferMethods.createBufferFromHex("122022004011120100060300") +const _hex19559 = pxsim.BufferMethods.createBufferFromHex("4110220010140002") +const _hex19567 = pxsim.BufferMethods.createBufferFromHex("212122001012230100060003") +const _hex19575 = pxsim.BufferMethods.createBufferFromHex("212122001013230100060000") +const _hex19583 = pxsim.BufferMethods.createBufferFromHex("312022001010210400060000") +const _hex19591 = pxsim.BufferMethods.createBufferFromHex("022122001010210001060401") +const _hex19599 = pxsim.BufferMethods.createBufferFromHex("122022004001120010160300") +const _hex19607 = pxsim.BufferMethods.createBufferFromHex("6110220090160300") -function particles_ParticleSource_constructor__P1733(s) { +function createHelloWorld__P3843(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4203,264 +4364,438 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___21199 = undefined; - s.removedSource___21208 = 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__C1715_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P647_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1060; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = particles_init__P1737_mk(s); - s.callLocIdx = 1061; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = particles_particleSources__P1752_mk(s); - s.callLocIdx = 1062; s.pc = 7; return s.tmp_0; - case 7: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 4: r0 = s.retval; - s.sources___21199 = (r0); - r0 = pxsim_Array__length(s.sources___21199); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "VersionS"); s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___1694); + r0 = pxsim.settings._exists(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P1740_mk(s); - s.tmp_2.arg0 = s.sources___21199; - s.callLocIdx = 1063; s.pc = 8; return s.tmp_2; + { step = 3; continue; } + case 1: + case 2: + s.tmp_3 = settings_writeString__P1825_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 6: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "VersionS"); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = "4.0.0"; + s.callLocIdx = 1673; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 8: r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___21199, 0); - s.removedSource___21208 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P1726_mk(s); - s.tmp_0.arg0 = s.removedSource___21208; - s.callLocIdx = 1065; s.pc = 9; return s.tmp_0; - case 9: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WBackM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19814; + s.callLocIdx = 1674; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P1725_mk(s); - s.tmp_0.arg0 = s.removedSource___21208; - s.callLocIdx = 1066; s.pc = 10; return s.tmp_0; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 10: r0 = s.retval; - case 1: - case 2: - r0 = (s.arg0).fields["pFlags"] = (0); - s.tmp_0 = particles_ParticleSource_setRate__P1728_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1067; s.pc = 11; return s.tmp_0; - case 11: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19822; + s.callLocIdx = 1675; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P1720_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - s.callLocIdx = 1068; s.pc = 12; return s.tmp_0; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 12: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P1727_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1069; 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___1735; - case 4: - // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P1730_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1070; s.pc = 14; return s.tmp_2; + r0 = pxsim_String__concat(s.tmp_1, "BackN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1676; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 14: r0 = s.retval; - r0 = pxsim_Array__push(s.sources___21199, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P1724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1071; s.pc = 15; return s.tmp_0; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19836; + s.callLocIdx = 1677; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 16: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19844; + s.callLocIdx = 1678; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource_constructor__P1733.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 particles_ParticleSource_constructor__P1733_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_constructor__P1733, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - sources___21199: undefined, - removedSource___21208: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function particles_particleSources__P1752(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sources___21529 = undefined; - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 1122; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 18: r0 = s.retval; - r0 = r0.fields["particleSources"]; - s.sources___21529 = (r0); - r0 = s.sources___21529; - return leave(s, r0) - default: oops() -} } } -particles_particleSources__P1752.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} - -function particles_particleSources__P1752_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_particleSources__P1752, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - sources___21529: undefined, -} } - - - - - -function particles_sortSources__P1740(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = helpers_arraySort__P56_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = inline__P21514; - s.callLocIdx = 1109; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19852; + s.callLocIdx = 1679; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 20: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_sortSources__P1740.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} - -function particles_sortSources__P1740_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_sortSources__P1740, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function inline__P21514(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.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; } - 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_5 = r0; - r0 = s.tmp_5; + r0 = pxsim_String__concat(s.tmp_1, "BackI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19860; + s.callLocIdx = 1680; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 22: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1681; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 24: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19874; + s.callLocIdx = 1682; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 26: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19882; + s.callLocIdx = 1683; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 28: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19890; + s.callLocIdx = 1684; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19898; + s.callLocIdx = 1685; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 32); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HelpN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 1; + s.callLocIdx = 1686; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 34); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 34: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HighN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 10; + s.callLocIdx = 1687; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19918; + s.callLocIdx = 1688; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19926; + s.callLocIdx = 1689; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 40: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19934; + s.callLocIdx = 1690; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 42: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19942; + s.callLocIdx = 1691; s.pc = 41; return s.tmp_0; + case 41: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 44: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19950; + s.callLocIdx = 1692; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19958; + s.callLocIdx = 1693; s.pc = 45; return s.tmp_0; + case 45: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 48: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19966; + s.callLocIdx = 1694; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 50); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 50: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1695; s.pc = 49; return s.tmp_0; + case 49: + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P21514.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +createHelloWorld__P3843.info = {"start":32165,"length":3648,"line":749,"column":0,"endLine":825,"endColumn":1,"fileName":"games.ts","functionName":"createHelloWorld","argumentNames":["prefix"]} -function inline__P21514_mk(s) { +function createHelloWorld__P3843_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21514, depth: s.depth + 1, + parent: s, fn: createHelloWorld__P3843, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } +const _hex19814 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17150f141202110f1412021102150c1207110e1207110e120f17120f171204110f121204110f1212041103110d12011403110d12011106110d1201110f15120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0") +const _hex19822 = pxsim.BufferMethods.createBufferFromHex("2018ffaf10ffdf11ffffffffffff11ff8f123f12ffffffffffffffffffffffffffff4f1112ffffffffffffffffffffffffffffffffffffffffffffffffff3f") +const _hex19836 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") +const _hex19844 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") +const _hex19852 = pxsim.BufferMethods.createBufferFromHex("1010bd21ed217d1bcd21ed21fd6d1bfd5d11fdfd8d2bed2bfdfd8d1b4d1bfded1bfd1d") +const _hex19860 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") +const _hex19874 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") +const _hex19882 = pxsim.BufferMethods.createBufferFromHex("1010506c802c7e12501cae12404e523e12204e821e12203ea21e12104e921e121e4c92141e1c27161c92141e272ea2141e101e121e247214121e101e22251462141e301e121415145214121e301e7224121e502e622e806e50") +const _hex19890 = pxsim.BufferMethods.createBufferFromHex("1010a02c2fb01c16372c801c272c16111c701c1627161c1f2c701c37361f1c701c37361f1c701c37161c1f111c701c372c162c404c16671c302c361c57161c301c27262c16371f1c201c37462c2f161c201c273c761c201c171c201c661c301c161c302c461c302c505c20") +const _hex19898 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") +const _hex19918 = pxsim.BufferMethods.createBufferFromHex("202622000116230400060002") +const _hex19926 = pxsim.BufferMethods.createBufferFromHex("201022000106") +const _hex19934 = pxsim.BufferMethods.createBufferFromHex("201022000106") +const _hex19942 = pxsim.BufferMethods.createBufferFromHex("201022000106") +const _hex19950 = pxsim.BufferMethods.createBufferFromHex("401022000106") +const _hex19958 = pxsim.BufferMethods.createBufferFromHex("2226220001022300042603000402") +const _hex19966 = pxsim.BufferMethods.createBufferFromHex("222022000102230010160401") -function helpers_arraySort__P56(s) { +function createLeftHandRule__P3838(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4472,144 +4807,123 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg1); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 4: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "VersionS"); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim.settings._exists(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 = 3; 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__P25468); - case 3: - case 4: - s.tmp_0 = helpers_sortHelper__P55_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 3; s.pc = 5; return s.tmp_0; + s.tmp_3 = settings_writeString__P1825_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 6: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "VersionS"); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = "4.0.0"; + s.callLocIdx = 1568; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -helpers_arraySort__P56.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]} - -function helpers_arraySort__P56_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_arraySort__P56, depth: s.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__P25468(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.aIsUndef___25471 = undefined; - s.bIsUndef___25475 = undefined; - s.aIsNull___25486 = undefined; - s.bIsNull___25490 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 === undefined); - s.aIsUndef___25471 = (r0); - r0 = (s.arg1 === undefined); - s.bIsUndef___25475 = (r0); - s.tmp_0 = r0 = s.aIsUndef___25471; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.bIsUndef___25475; - case 2: - // jmp value (already in r0) + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 8: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = 0; - { step = 17; continue; } - { step = 8; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___25471); - if (!r0) { step = 4; continue; } - r0 = 1; - { step = 17; continue; } - { step = 7; continue; } - case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___25475); - if (!r0) { step = 5; continue; } - r0 = -1; - { step = 17; continue; } - case 5: - case 6: + r0 = pxsim_String__concat(s.tmp_1, "WBackM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18868; + s.callLocIdx = 1569; s.pc = 7; return s.tmp_0; case 7: - case 8: - r0 = (s.arg0 === null); - s.aIsNull___25486 = (r0); - r0 = (s.arg1 === null); - s.bIsNull___25490 = (r0); - s.tmp_0 = r0 = s.aIsNull___25486; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = s.bIsNull___25490; + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 10: - // jmp value (already in r0) + r0 = s.retval; 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___25486); - if (!r0) { step = 12; continue; } - r0 = 1; - { step = 17; continue; } - { step = 15; continue; } + r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18876; + s.callLocIdx = 1570; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___25490); - if (!r0) { step = 13; continue; } - r0 = -1; - { step = 17; continue; } - case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1571; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 14: - case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18890; + s.callLocIdx = 1572; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 16: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18898; + s.callLocIdx = 1573; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); if ((s.arg0) && (s.arg0).vtable) { setupResume(s, 18); pxsim_String__stringConv(s.arg0); @@ -4618,174 +4932,294 @@ switch (step) { } 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) + ""; } + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18906; + s.callLocIdx = 1574; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 20: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18914; + s.callLocIdx = 1575; s.pc = 19; return s.tmp_0; 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() -} } } -inline__P25468.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 inline__P25468_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P25468, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - aIsUndef___25471: undefined, - bIsUndef___25475: undefined, - aIsNull___25486: undefined, - bIsNull___25490: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function helpers_sortHelper__P55(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.len___25526 = undefined; - s.i___25529 = undefined; - s.j___25535 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__length(s.arg0); + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 22: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.arg0; - { step = 11; continue; } - case 3: - case 4: - r0 = pxsim_Array__length(s.arg0); - s.len___25526 = (r0); - s.i___25529 = (0); - case 5: - s.tmp_1 = r0 = s.i___25529; - r0 = (s.len___25526 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = (s.i___25529 + 1); - s.j___25535 = (r0); - case 6: - r0 = (s.j___25535 < s.len___25526); - 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___25529); - s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___25535); - s.tmp_3.arg1 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 1; s.pc = 12; return s.tmp_3; - case 12: + r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1576; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 24: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P54_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___25529; - s.tmp_4.arg2 = s.j___25535; - s.callLocIdx = 2; s.pc = 13; return s.tmp_4; - case 13: + r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18928; + s.callLocIdx = 1577; s.pc = 23; return s.tmp_0; + case 23: r0 = s.retval; - case 7: - case 8: - r0 = (s.j___25535 + 1); - s.j___25535 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.i___25529 + 1); - s.i___25529 = (r0); - { step = 5; continue; } - case 10: - r0 = s.arg0; - case 11: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 26: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18936; + s.callLocIdx = 1578; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 28: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18944; + s.callLocIdx = 1579; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18952; + s.callLocIdx = 1580; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 32); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HelpN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1581; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 34); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 34: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HighN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 30; + s.callLocIdx = 1582; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18972; + s.callLocIdx = 1583; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18980; + s.callLocIdx = 1584; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 40: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18988; + s.callLocIdx = 1585; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 42: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18996; + s.callLocIdx = 1586; s.pc = 41; return s.tmp_0; + case 41: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 44: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19004; + s.callLocIdx = 1587; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex19012; + s.callLocIdx = 1588; s.pc = 45; return s.tmp_0; + case 45: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 48: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1589; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + case 3: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_sortHelper__P55.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"]} +createLeftHandRule__P3838.info = {"start":12762,"length":3714,"line":293,"column":0,"endLine":370,"endColumn":1,"fileName":"games.ts","functionName":"createLeftHandRule","argumentNames":["prefix"]} -function helpers_sortHelper__P55_mk(s) { +function createLeftHandRule__P3838_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P55, depth: s.depth + 1, + parent: s, fn: createLeftHandRule__P3838, depth: s.depth + 1, pc: 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___25526: undefined, - i___25529: undefined, - j___25535: undefined, arg0: undefined, - arg1: undefined, } } +const _hex18868 = pxsim.BufferMethods.createBufferFromHex("2018f0a0e1107120116011707120111041101110511071201110112011101150111071201110211011101110113011107120114011104120111071206110112011201110719011201120111071201110711011201110712011401140112011107120411011104120111071201120111011201140111071201120111021101110112011107120112011401110112011107120112041101110411071201120114011401110712011201110911071201120111011701110712011201110211041101110712011201110112011201110111071201170114011107120e11071f020f1f11120f17120f17120f17120f17120f17120f171f0a0") +const _hex18876 = pxsim.BufferMethods.createBufferFromHex("2018ffff8f10ffffffffffaf11ffffffffffffcf11ffff8f21ffffffaf11ff8f11ff4f11ffffffffffffffdf115f11ffffbf11ffffffffffffffffffffffffffffff8f") +const _hex18890 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") +const _hex18898 = pxsim.BufferMethods.createBufferFromHex("101015f7f71715471637155715472516e72516b725f725f71725d7251647158715165725d7151715c725167715571516f7f7f75725") +const _hex18906 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") +const _hex18914 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") +const _hex18928 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") +const _hex18936 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") +const _hex18944 = pxsim.BufferMethods.createBufferFromHex("1010f0c01c111b605f101f111b1f402f3d1b1c2f211b301f1b313d1b1f111b1f301f411d1b1c112c111f201f612f111d1b1f301f611d211b1f401f611d311b401f612f111b2f401f411d1b1c111d1c111b301f1b313d1b1f111b1f402f3d1b1c2f211b605f101f111b1fc01f1c111bf030") +const _hex18952 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0b0153015a01514151015141580151410141514101415701430143014f0f0f0f0f0f0a0") +const _hex18972 = pxsim.BufferMethods.createBufferFromHex("412022000114120400060001") +const _hex18980 = pxsim.BufferMethods.createBufferFromHex("41362200011121010006120400060001") +const _hex18988 = pxsim.BufferMethods.createBufferFromHex("11362200011131010006210400060000") +const _hex18996 = pxsim.BufferMethods.createBufferFromHex("1146220001111201000621010006230400060002") +const _hex19004 = pxsim.BufferMethods.createBufferFromHex("1146220001112101000612010006230100060003") +const _hex19012 = pxsim.BufferMethods.createBufferFromHex("3226220001133200041604020300") -function helpers_swap__P54(s) { +function createBoulderDash__P3835(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4795,358 +5229,574 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___25564 = 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___25564 = (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___25564); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -helpers_swap__P54.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 helpers_swap__P54_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_swap__P54, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - temp___25564: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function particles_init__P1737(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___21535 = undefined; - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 1099; s.pc = 4; return s.tmp_0; + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 4: r0 = s.retval; - s.scene___21535 = (r0); - r0 = s.scene___21535.fields["particleSources"]; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, "VersionS"); + s.tmp_1 = r0; + r0 = pxsim.settings._exists(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_1 = r0 = s.scene___21535; - r0 = pxsim_Array__mk(); - s.tmp_2 = r0; - r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); - r0 = pxsim.control.millis(); - globals.lastUpdate___1712 = (r0); - s.tmp_0 = game_onUpdate__P1300_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P1738; - s.callLocIdx = 1100; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P1301_mk(s); - s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P1739; - s.callLocIdx = 1101; s.pc = 6; return s.tmp_0; + s.tmp_3 = settings_writeString__P1825_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 6: r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_init__P1737.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} - -function particles_init__P1737_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_init__P1737, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - scene___21535: undefined, -} } - - - - - -function particles_pruneParticles__P1739(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sources___21550 = undefined; - s.tmp_0 = particles_particleSources__P1752_mk(s); - s.callLocIdx = 1105; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___21550 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___21550); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P60_mk(s); - s.tmp_1 = helpers_arraySlice__P65_mk(s); - s.tmp_1.arg0 = s.sources___21550; - s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___21550); - s.tmp_1.arg2 = r0; - s.callLocIdx = 1106; s.pc = 5; return s.tmp_1; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_4, "VersionS"); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = "4.0.0"; + s.callLocIdx = 1483; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 8: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WBackM"); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P21559; - s.callLocIdx = 1108; s.pc = 4; return s.tmp_0; - case 4: + s.tmp_0.arg1 = _hex18224; + s.callLocIdx = 1484; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_pruneParticles__P1739.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} - -function particles_pruneParticles__P1739_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_pruneParticles__P1739, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - sources___21550: undefined, -} } - - - - - -function inline__P21559(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = particles_ParticleSource__prune__P1719_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1107; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 10: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P21559.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__P21559_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P21559, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function particles_ParticleSource__prune__P1719(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___21460 = undefined; - s.sources___21468 = undefined; - s.current___21482 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_VT)) failedCast(r0); - case 1: - r0 = s.arg0.fields["head"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - r0 = s.arg0.fields["head"]; - r0 = r0.fields["lifespan"]; s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - case 3: - // jmp value (already in r0) - 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"]; + r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18232; + s.callLocIdx = 1485; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 12: + r0 = s.retval; 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__P961_mk(s); - s.callLocIdx = 1080; s.pc = 21; return s.tmp_5; - case 21: + r0 = pxsim_String__concat(s.tmp_1, "BackN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1486; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.scene___21460 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___21460); - if (!r0) { step = 7; continue; } - r0 = s.scene___21460.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); - case 7: - case 8: - s.tmp_0 = particles_particleSources__P1752_mk(s); - s.callLocIdx = 1081; s.pc = 22; return s.tmp_0; - case 22: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 14: r0 = s.retval; - s.sources___21468 = (r0); - s.tmp_0 = r0 = s.sources___21468; - 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___21468); - 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___21468, s.arg0); - case 11: - case 12: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 == undefined); + r0 = pxsim_String__concat(s.tmp_1, "BackI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18246; + s.callLocIdx = 1487; s.pc = 13; return s.tmp_0; case 13: - case 14: - r0 = s.arg0.fields["head"]; - s.current___21482 = (r0); - case 15: - s.tmp_0 = r0 = s.current___21482; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 16: - r0 = s.current___21482.fields["next"]; - case 17: - // jmp value (already in r0) + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 20; continue; } - r0 = s.current___21482.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___21482.fields["next"]; - r0 = r0.fields["next"]; - s.tmp_4 = r0; - r0 = (s.current___21482).fields["next"] = (s.tmp_4); - { step = 19; continue; } + r0 = pxsim_String__concat(s.tmp_1, "BackI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18254; + s.callLocIdx = 1488; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + 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.current___21482.fields["next"]; - s.current___21482 = (r0); - case 19: - { step = 15; continue; } + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18262; + s.callLocIdx = 1489; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 20: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18270; + s.callLocIdx = 1490; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 22: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1491; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 24: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18284; + s.callLocIdx = 1492; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 26: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18292; + s.callLocIdx = 1493; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 28: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18300; + s.callLocIdx = 1494; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18308; + s.callLocIdx = 1495; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 32); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HelpN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1496; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 34); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 34: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HighN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = NaN; + s.callLocIdx = 1497; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18329; + s.callLocIdx = 1498; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18337; + s.callLocIdx = 1499; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 40: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18345; + s.callLocIdx = 1500; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 42: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18353; + s.callLocIdx = 1501; s.pc = 41; return s.tmp_0; + case 41: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 44: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18361; + s.callLocIdx = 1502; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB8"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18369; + s.callLocIdx = 1503; s.pc = 45; return s.tmp_0; + case 45: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 48: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18377; + s.callLocIdx = 1504; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 50); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 50: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18385; + s.callLocIdx = 1505; s.pc = 49; return s.tmp_0; + case 49: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 52); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 52: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18393; + s.callLocIdx = 1506; s.pc = 51; return s.tmp_0; + case 51: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 54); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 54: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18401; + s.callLocIdx = 1507; s.pc = 53; return s.tmp_0; + case 53: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 56); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 56: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB13"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18409; + s.callLocIdx = 1508; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 58); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 58: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18417; + s.callLocIdx = 1509; s.pc = 57; return s.tmp_0; + case 57: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 60); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 60: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB12"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18425; + s.callLocIdx = 1510; s.pc = 59; return s.tmp_0; + case 59: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 62); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 62: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB11"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18433; + s.callLocIdx = 1511; s.pc = 61; return s.tmp_0; + case 61: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 64); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 64: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB14"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18441; + s.callLocIdx = 1512; s.pc = 63; return s.tmp_0; + case 63: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 66); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 66: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1513; s.pc = 65; return s.tmp_0; + case 65: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource__prune__P1719.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +createBoulderDash__P3835.info = {"start":363,"length":4737,"line":15,"column":0,"endLine":119,"endColumn":1,"fileName":"games.ts","functionName":"createBoulderDash","argumentNames":["prefix"]} -function particles_ParticleSource__prune__P1719_mk(s) { +function createBoulderDash__P3835_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P1719, depth: s.depth + 1, + parent: s, fn: createBoulderDash__P3835, depth: s.depth + 1, pc: 0, retval: undefined, 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___21460: undefined, - sources___21468: undefined, - current___21482: undefined, arg0: undefined, } } +const _hex18224 = pxsim.BufferMethods.createBufferFromHex("2018f0a022f1512032f1412032f14120321112f1212032f1412032f14120f171203122f121205132e1201132f13120f171203132f11120f17120f171205132e120322132e1205132e120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0") +const _hex18232 = pxsim.BufferMethods.createBufferFromHex("2018ffaf11ff8f11ff8f11ff8f212f10ff4f11ffffffffef21ff9f2112ff2f1221ffffff2f2112ffffffffbf31ff1f21122f111211ff6f31ffffffffffffffffffffffffffffffffffffffffffffff6f") +const _hex18246 = pxsim.BufferMethods.createBufferFromHex("1010fd181d363826181618161816181d2618361816181618161816181d1618163826181618161816181d1816281d28561816181d1816183d1876181d1816281d2876181d1618163886181d2618361866281d26181618164826381d2618161816181628261816181d2618161816182618261816181d2618161816182618261816181d261816181618162826381d48163866f828") +const _hex18254 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") +const _hex18262 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") +const _hex18270 = pxsim.BufferMethods.createBufferFromHex("1010bd21ed217d1bcd21ed21fd6d1bfd5d11fdfd8d2bed2bfdfd8d1b4d1bfded1bfd1d") +const _hex18284 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") +const _hex18292 = pxsim.BufferMethods.createBufferFromHex("1010804ca02c1b1c1b2c901c1d2b1c1b2c603c2d1b1c1b2c303c2b1c1b2d4c201c1b2d3b1c2d1b3c201c5d3b1d1b4c101b5d3b1d1b2c1b1c101b5d3b1d2b1c2b1c1b6d2b1d1b1d1c2b1c101b5d2b1d1b1d1c2b1c201b4d1b1d2b1d1c2b1c201b3d2b1d1b1d3b1c407b1d1c2b1c701b3d2c1b1c902b2c2b30") +const _hex18300 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") +const _hex18308 = pxsim.BufferMethods.createBufferFromHex("10106057a01730373fb0271c111d1f408f1b1c1f302f5d1b1c1f211d1f101f1b513d1f1b1c1f201f611d1b1c1b1c111d2f812f1d3f101f811d111b3f101f811d213f101f812f1b3f201f611d1b1c1d3f201f1b513d3f402f5d1b1c1f807f1cc01f1c1b1f40") +const _hex18329 = pxsim.BufferMethods.createBufferFromHex("20262200011623030c060002") +const _hex18337 = pxsim.BufferMethods.createBufferFromHex("4120220014143210ff060003") +const _hex18345 = pxsim.BufferMethods.createBufferFromHex("41202200141332103c060003") +const _hex18353 = pxsim.BufferMethods.createBufferFromHex("222622000102230010140300") +const _hex18361 = pxsim.BufferMethods.createBufferFromHex("414122001416320014042110ff063110ff060000") +const _hex18369 = pxsim.BufferMethods.createBufferFromHex("322022001403320001160401") +const _hex18377 = pxsim.BufferMethods.createBufferFromHex("6310220010160400") +const _hex18385 = pxsim.BufferMethods.createBufferFromHex("21212200141232103c060003") +const _hex18393 = pxsim.BufferMethods.createBufferFromHex("203122000116230004163305140600020002") +const _hex18401 = pxsim.BufferMethods.createBufferFromHex("2016220001160102") +const _hex18409 = pxsim.BufferMethods.createBufferFromHex("222122001412230554060004") +const _hex18417 = pxsim.BufferMethods.createBufferFromHex("2031220001162300041633103c0600020003") +const _hex18425 = pxsim.BufferMethods.createBufferFromHex("6110220001160102") +const _hex18433 = pxsim.BufferMethods.createBufferFromHex("631022000106") +const _hex18441 = pxsim.BufferMethods.createBufferFromHex("222122000112230004060004") -function helpers_arraySlice__P65(s) { +function createSnake__P3836(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5156,242 +5806,450 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___20819 = undefined; - s.len___20821 = undefined; - s.i___20855 = 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___20819 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___20821 = (r0); - r0 = (s.arg1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.arg1 = (0); - { step = 4; continue; } + s.tmp_0 = settings_writeString__P1825_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 2); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 2: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "VersionS"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = "4.0.0"; + s.callLocIdx = 1514; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_max__P78_mk(s); - r0 = (s.len___20821 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 10; s.pc = 16; return s.tmp_1; - case 16: r0 = s.retval; - s.arg1 = (r0); - case 2: - case 3: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 4: - r0 = (s.arg1 > s.len___20821); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.res___20819; - { step = 15; continue; } - case 5: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WBackM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18462; + s.callLocIdx = 1515; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 6: - r0 = (s.arg2 === undefined); + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.arg2 = (s.len___20821); - { 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___20821 + s.arg2); - s.arg2 = (r0); + r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18470; + s.callLocIdx = 1516; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 8: - case 9: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1517; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 10: - r0 = (s.arg2 > s.len___20821); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.arg2 = (s.len___20821); - case 11: - case 12: - s.i___20855 = (s.arg1); - case 13: - r0 = (s.i___20855 < s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___20819; - r0 = pxsim_Array__getAt(s.arg0, s.i___20855); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___20855 + 1); - s.i___20855 = (r0); - { step = 13; continue; } + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18484; + s.callLocIdx = 1518; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18492; + s.callLocIdx = 1519; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 14: - r0 = s.res___20819; + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18500; + s.callLocIdx = 1520; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 16: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18508; + s.callLocIdx = 1521; s.pc = 15; return s.tmp_0; case 15: - return leave(s, r0) - default: oops() -} } } -helpers_arraySlice__P65.info = {"start":8909,"length":690,"line":299,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} - -function helpers_arraySlice__P65_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_arraySlice__P65, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - res___20819: undefined, - len___20821: undefined, - i___20855: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function Math_max__P78(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 >= s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 3; continue; } - case 1: - case 2: - r0 = s.arg1; - case 3: - return leave(s, r0) - default: oops() -} } } -Math_max__P78.info = {"start":15575,"length":105,"line":529,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} - -function Math_max__P78_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Math_max__P78, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function particles_updateParticles__P1738(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sources___22033 = undefined; - s.time___22040 = undefined; - s.dt___22043 = undefined; - s.i___22049 = undefined; - s.tmp_0 = particles_particleSources__P1752_mk(s); - s.callLocIdx = 1102; s.pc = 6; return s.tmp_0; - case 6: r0 = s.retval; - s.sources___22033 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___22033); + s.tmp_0 = settings_writeNumber__P1826_mk(s); + 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_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__P1740_mk(s); - s.tmp_2.arg0 = s.sources___22033; - s.callLocIdx = 1103; s.pc = 7; return s.tmp_2; - case 7: + r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1522; s.pc = 17; return s.tmp_0; + case 17: r0 = s.retval; - r0 = pxsim.control.millis(); - s.time___22040 = (r0); - r0 = (s.time___22040 - globals.lastUpdate___1712); - s.dt___22043 = (r0); - globals.lastUpdate___1712 = (s.time___22040); - s.i___22049 = (0); - case 3: - s.tmp_1 = r0 = s.i___22049; - r0 = pxsim_Array__length(s.sources___22033); - 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__P1718_mk(s); - r0 = pxsim_Array__getAt(s.sources___22033, s.i___22049); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___22043; - s.callLocIdx = 1104; s.pc = 8; return s.tmp_3; - case 8: + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 20: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18522; + s.callLocIdx = 1523; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 22: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18530; + s.callLocIdx = 1524; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 24: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18538; + s.callLocIdx = 1525; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 26: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18546; + s.callLocIdx = 1526; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 28: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HelpN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1527; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HighN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 430; + s.callLocIdx = 1528; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 32); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18566; + s.callLocIdx = 1529; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 34); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 34: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18574; + s.callLocIdx = 1530; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18582; + s.callLocIdx = 1531; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18590; + s.callLocIdx = 1532; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 40: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18598; + s.callLocIdx = 1533; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 42: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18606; + s.callLocIdx = 1534; s.pc = 41; return s.tmp_0; + case 41: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 44: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18614; + s.callLocIdx = 1535; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18622; + s.callLocIdx = 1536; s.pc = 45; return s.tmp_0; + case 45: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 48: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18630; + s.callLocIdx = 1537; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 50); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 50: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1538; s.pc = 49; return s.tmp_0; + case 49: r0 = s.retval; - r0 = (s.i___22049 + 1); - s.i___22049 = (r0); - { step = 3; continue; } - case 4: - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_updateParticles__P1738.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +createSnake__P3836.info = {"start":5104,"length":3600,"line":121,"column":0,"endLine":200,"endColumn":1,"fileName":"games.ts","functionName":"createSnake","argumentNames":["prefix"]} -function particles_updateParticles__P1738_mk(s) { +function createSnake__P3836_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P1738, depth: s.depth + 1, + parent: s, fn: createSnake__P3836, depth: s.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___22033: undefined, - time___22040: undefined, - dt___22043: undefined, - i___22049: undefined, + arg0: undefined, } } +const _hex18462 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17120f17120f17120f17120f17120f17120a122a120914291208152912081529120815291209132a120f17120f17120f17120f17120f171204122f111203142f1203142f1203132f111204122f11120f17120f17120f17120f17120f171f0a0") +const _hex18470 = pxsim.BufferMethods.createBufferFromHex("2018ffffffffff1f11ff8f11ff8f116f12ff1f11ff8f11ff8f11ff8f10ffbf12ffffffcf12ff2f12ffffffff3f12ffffffffffffaf12ffbf12ffffffffffffffff4f12ffffffff12ffffffff6f") +const _hex18484 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") +const _hex18492 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") +const _hex18500 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") +const _hex18508 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") +const _hex18522 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50") +const _hex18530 = pxsim.BufferMethods.createBufferFromHex("1010a02c2fb01c16372c801c272c16111c701c1627161c1f2c701c37361f1c701c37361f1c701c37161c1f111c701c372c162c404c16671c302c361c57161c301c27262c16371f1c201c37462c2f161c201c273c761c201c171c201c661c301c161c302c461c302c505c20") +const _hex18538 = pxsim.BufferMethods.createBufferFromHex("1010f0502c6e70ae603e523e403e821e402ea21e303e921e303c92142027161c921420172ea21430121e247214123022251462141e401214151452141260622412701e621ef050") +const _hex18546 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0801e8012602e7012602c12601260161c828072901452f0f0f0f0f0a0") +const _hex18566 = pxsim.BufferMethods.createBufferFromHex("212622000412230005020002") +const _hex18574 = pxsim.BufferMethods.createBufferFromHex("212622000412120005010001") +const _hex18582 = pxsim.BufferMethods.createBufferFromHex("212622000412320005030003") +const _hex18590 = pxsim.BufferMethods.createBufferFromHex("2016220001160002") +const _hex18598 = pxsim.BufferMethods.createBufferFromHex("222622000112231104060401") +const _hex18606 = pxsim.BufferMethods.createBufferFromHex("21262200040221004c36030002010002") +const _hex18614 = pxsim.BufferMethods.createBufferFromHex("4110220005140002") +const _hex18622 = pxsim.BufferMethods.createBufferFromHex("4116220001120002") +const _hex18630 = pxsim.BufferMethods.createBufferFromHex("2226220001322300102605010202040203000203") -function particles_ParticleSource__update__P1718(s) { +function createBejeweled__P3837(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5401,266 +6259,506 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___22113 = undefined; - s.current___22132 = undefined; - s.fixedDt___22140 = 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__C1715_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timer"]; + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 4: + r0 = s.retval; s.tmp_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"]; + r0 = pxsim_String__concat(s.tmp_2, "-VersionS"); s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); + r0 = pxsim.settings._exists(s.tmp_1); 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__P1725_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1075; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; + { step = 3; continue; } case 1: case 2: - { step = 10; continue; } - case 3: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } - case 4: - s.tmp_2 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1076; 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; } + s.tmp_3 = settings_writeString__P1825_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } 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 = 1077; 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); + r0 = pxsim_String__concat(s.tmp_4, "VersionS"); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = "4.0.0"; + s.callLocIdx = 1540; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 8: - case 9: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "WBackM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18657; + s.callLocIdx = 1541; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 10: - case 11: - r0 = s.arg0.fields["timer"]; + r0 = s.retval; 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; } + r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18665; + s.callLocIdx = 1542; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 12: - s.tmp_2 = particles_ParticleSource_enabled__P1723_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1078; 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__C1775_v0_2_mk(s); - r0 = s.arg0.fields["_factory"]; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackN"); s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["anchor"]; - s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C1775_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: + s.tmp_0.arg1 = 4; + s.callLocIdx = 1543; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.p___22113 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___22113); - 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; } + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 14: - case 15: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = (s.p___22113).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___22113); - { step = 11; continue; } + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "BackI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18679; + s.callLocIdx = 1544; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 16: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = s.retval; 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: + r0 = pxsim_String__concat(s.tmp_1, "BackI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18687; + s.callLocIdx = 1545; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + 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.arg0.fields["head"]; - s.current___22132 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["_dt"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg1); + r0 = s.retval; 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); + r0 = pxsim_String__concat(s.tmp_1, "BackI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18695; + s.callLocIdx = 1546; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 20: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.fixedDt___22140 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___22140); - if (!r0) { step = 23; continue; } + r0 = pxsim_String__concat(s.tmp_1, "BackI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18703; + s.callLocIdx = 1547; s.pc = 19; return s.tmp_0; case 19: - r0 = s.current___22132.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___22132; - 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__C1715_v4_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___22132; - s.tmp_0.arg2 = s.fixedDt___22140; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C1715_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___22132.fields["next"]; - s.tmp_0 = r0; - s.current___22132 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - { step = 19; continue; } + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 22); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 22: - r0 = (s.arg0).fields["_dt"] = (0); - { step = 26; continue; } - case 23: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 4; + s.callLocIdx = 1548; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 24); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 24: - s.tmp_0 = r0 = s.current___22132; - r0 = s.tmp_0.fields["lifespan"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.arg1); + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["lifespan"] = (s.tmp_1); - r0 = s.current___22132.fields["next"]; - s.tmp_0 = r0; - s.current___22132 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 25; continue; } - { step = 24; continue; } - case 25: + r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18717; + s.callLocIdx = 1549; s.pc = 23; return s.tmp_0; + case 23: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 26); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } case 26: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18725; + s.callLocIdx = 1550; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 28: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18733; + s.callLocIdx = 1551; s.pc = 27; return s.tmp_0; case 27: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 30); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18741; + s.callLocIdx = 1552; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 32); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HelpN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1553; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 34); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 34: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "HighN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 120; + s.callLocIdx = 1554; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 36); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18761; + s.callLocIdx = 1555; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 38); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 38: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18769; + s.callLocIdx = 1556; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 40); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 40: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18777; + s.callLocIdx = 1557; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 42); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 42: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18785; + s.callLocIdx = 1558; s.pc = 41; return s.tmp_0; + case 41: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 44); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 44: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18793; + s.callLocIdx = 1559; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 46); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 46: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB8"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18801; + s.callLocIdx = 1560; s.pc = 45; return s.tmp_0; + case 45: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 48); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 48: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18809; + s.callLocIdx = 1561; s.pc = 47; return s.tmp_0; + case 47: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 50); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 50: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18817; + s.callLocIdx = 1562; s.pc = 49; return s.tmp_0; + case 49: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 52); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 52: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18825; + s.callLocIdx = 1563; s.pc = 51; return s.tmp_0; + case 51: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 54); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 54: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB11"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18833; + s.callLocIdx = 1564; s.pc = 53; return s.tmp_0; + case 53: + r0 = s.retval; + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 56); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 56: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = _hex18841; + s.callLocIdx = 1565; s.pc = 55; return s.tmp_0; + case 55: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 58); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 58: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1566; s.pc = 57; return s.tmp_0; + case 57: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource__update__P1718.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +createBejeweled__P3837.info = {"start":8708,"length":4048,"line":202,"column":0,"endLine":290,"endColumn":1,"fileName":"games.ts","functionName":"createBejeweled","argumentNames":["prefix"]} -function particles_ParticleSource__update__P1718_mk(s) { +function createBejeweled__P3837_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P1718, depth: s.depth + 1, + parent: s, fn: createBejeweled__P3837, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - p___22113: undefined, - current___22132: undefined, - fixedDt___22140: undefined, arg0: undefined, - arg1: undefined, } } +const _hex18657 = pxsim.BufferMethods.createBufferFromHex("201880f111106110f111106110f111106110f111106110f111106110f111106110f111106110f111106110f11180f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f141") +const _hex18665 = pxsim.BufferMethods.createBufferFromHex("2018ffaf1311122312ff3f12132123ff3f1211231112ff3f111311121311ff3f1112132113ff3f131211101311ff3f1311121122ff3f22231113ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffef") +const _hex18679 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") +const _hex18687 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") +const _hex18695 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") +const _hex18703 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") +const _hex18717 = pxsim.BufferMethods.createBufferFromHex("1010f0f0707f801f751f601f951f501f353f351f501f251f301f251f501f251f301f251f501f251f301f251f501f251f301f251f501f353f351f501f951f601f751f807ff0f060") +const _hex18725 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") +const _hex18733 = pxsim.BufferMethods.createBufferFromHex("1010804ca02c1b1c1b2c901c1d2b1c1b2c603c2d1b1c1b2c303c2b1c1b2d4c201c1b2d3b1c2d1b3c201c5d3b1d1b4c101b5d3b1d1b2c1b1c101b5d3b1d2b1c2b1c1b6d2b1d1b1d1c2b1c101b5d2b1d1b1d1c2b1c201b4d1b1d2b1d1c2b1c201b3d2b1d1b1d3b1c407b1d1c2b1c701b3d2c1b1c902b2c2b30") +const _hex18741 = pxsim.BufferMethods.createBufferFromHex("1010506c802c7e12501cae12404e523e12204e821e12203ea21e12104e921e121e4c92141e1c27161c92141e272ea2141e101e121e247214121e101e22251462141e301e121415145214121e301e7224121e502e622e806e50") +const _hex18761 = pxsim.BufferMethods.createBufferFromHex("6143220040242100401423004024120000260300010103000300010106000402") +const _hex18769 = pxsim.BufferMethods.createBufferFromHex("61432200102421001024230010241200002603000101030001010300010106000402") +const _hex18777 = pxsim.BufferMethods.createBufferFromHex("6130220054163204fc061200001600030600") +const _hex18785 = pxsim.BufferMethods.createBufferFromHex("61432200042423000424210004241200002603000101030001010300010106000402") +const _hex18793 = pxsim.BufferMethods.createBufferFromHex("202622080116231000060002") +const _hex18801 = pxsim.BufferMethods.createBufferFromHex("205622000116230400061230000621300006323000060002") +const _hex18809 = pxsim.BufferMethods.createBufferFromHex("412322205424212054240000010300020103") +const _hex18817 = pxsim.BufferMethods.createBufferFromHex("4010222001160101") +const _hex18825 = pxsim.BufferMethods.createBufferFromHex("4016220801160102") +const _hex18833 = pxsim.BufferMethods.createBufferFromHex("612322805424218054240000010100020101") +const _hex18841 = pxsim.BufferMethods.createBufferFromHex("61502280541621c0000612c0000623c0000632c000060101") -function particles_ParticleFactory_createParticle__P1776(s) { +function tileworld_LoadScreen_constructor__P3833(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5670,83 +6768,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___22234 = 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__C1775_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C1713_VT); - s.p___22234 = (r0); - s.tmp_0 = r0 = s.p___22234; - 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 = 1129; s.pc = 1; return s.tmp_3; } - } + if (!checkSubtype(r0, tileworld_LoadScreen__C3832_VT)) failedCast(r0); + r0 = (s.arg0).fields["lastDir"] = (-1); + s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = null; + s.callLocIdx = 1419; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___22234; - 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 = 1131; s.pc = 2; return s.tmp_3; } - } + s.tmp_0 = controller_setRepeatDefault__P1913_mk(s); + s.tmp_0.arg0 = 500; + s.tmp_0.arg1 = 80; + s.callLocIdx = 1420; s.pc = 2; return s.tmp_0; 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___22234).fields["vx"] = (0); - r0 = (s.p___22234).fields["vy"] = (0); - r0 = (s.p___22234).fields["lifespan"] = (500); - r0 = s.p___22234; + r0 = pxsim_pxtcore_mkAction(1, inline__P17829); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1437; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = tileworld_LoadScreen__C3832_v0_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, tileworld_LoadScreen__C3832_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_createParticle__P1776.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +tileworld_LoadScreen_constructor__P3833.info = {"start":163,"length":1211,"line":7,"column":8,"endLine":32,"endColumn":9,"fileName":"loadScreen.ts","functionName":"inline","argumentNames":["this"]} -function particles_ParticleFactory_createParticle__P1776_mk(s) { +function tileworld_LoadScreen_constructor__P3833_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_createParticle__P1776, depth: s.depth + 1, + parent: s, fn: tileworld_LoadScreen_constructor__P3833, depth: s.depth + 1, pc: 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___22234: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource_updateParticle__P1731(s) { +function inline__P17829(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5756,74 +6834,261 @@ 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__C1715_VT)) failedCast(r0); - r0 = (s.arg2 >> 10); - s.arg2 = (r0); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vx"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["ax"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + s.first___17830 = undefined; + s.second___17842 = undefined; + s.slot___17872 = undefined; + s.prefix___17882 = undefined; + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 1421; s.pc = 21; return s.tmp_2; + case 21: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vy"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["ay"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); + r0 = (s.tmp_1 >= 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_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 1422; s.pc = 22; return s.tmp_4; + case 22: + r0 = s.retval; 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.arg1.fields["vx"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + r0 = (s.tmp_3 <= 4); + case 2: + // jmp value (already in r0) s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + s.first___17830 = (s.tmp_5); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 1423; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; - s.tmp_2 = r0; - r0 = s.arg1.fields["vy"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); + r0 = (s.tmp_1 >= 5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 1424; s.pc = 24; return s.tmp_4; + case 24: + r0 = s.retval; 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() -} } } -particles_ParticleSource_updateParticle__P1731.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"]} + r0 = (s.tmp_3 <= 6); + case 4: + // jmp value (already in r0) + s.tmp_5 = r0; + s.second___17842 = (s.tmp_5); + s.tmp_0 = r0 = s.first___17830; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.second___17842; + case 6: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 7; continue; } + r0 = s.tmp_1; + { step = 10; continue; } + case 7: + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 1425; s.pc = 25; return s.tmp_4; + case 25: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 > 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 8; continue; } + r0 = s.tmp_2; + { step = 9; continue; } + case 8: + s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_6.arg0 = s.caps[0]; + s.tmp_6.arg1 = true; + s.callLocIdx = 1426; s.pc = 26; return s.tmp_6; + case 26: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 <= 5); + case 9: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = s.tmp_7; + case 10: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 15; continue; } + r0 = pxsim_numops_toBoolDecr(s.first___17830); + if (!r0) { step = 11; continue; } + r0 = 0; + { step = 12; continue; } + case 11: + r0 = 4; + case 12: + // jmp value (already in r0) + s.tmp_9 = r0; + s.tmp_12 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_12.arg0 = s.caps[0]; + s.tmp_12.arg1 = true; + s.callLocIdx = 1427; s.pc = 27; return s.tmp_12; + case 27: + r0 = s.retval; + s.tmp_11 = r0; + r0 = (s.tmp_11 - 1); + s.tmp_10 = r0; + r0 = (s.tmp_10 + s.tmp_9); + s.slot___17872 = (r0); + r0 = pxsim_numops.toString(s.slot___17872); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 28); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 28: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat("TW", s.tmp_2); + s.tmp_1 = r0; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 29); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } + case 29: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "-"); + s.prefix___17882 = (r0); + s.tmp_0 = r0 = s.caps[0]; + s.tmp_2 = tileworld_loadProject__P3709_mk(s); + s.tmp_2.arg0 = s.prefix___17882; + s.tmp_2.arg1 = false; + s.callLocIdx = 1428; s.pc = 30; return s.tmp_2; + case 30: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["p"] = (s.tmp_1); + s.tmp_0 = tileworld_LoadScreen__C3832_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, tileworld_LoadScreen__C3832_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + r0 = s.caps[0].fields["p"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_3 = r0 = s.caps[0]; + s.tmp_5 = tileworld_emptyProject__P3710_mk(s); + s.tmp_5.arg0 = s.prefix___17882; + s.callLocIdx = 1429; s.pc = 32; return s.tmp_5; + case 32: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["p"] = (s.tmp_4); + s.tmp_0 = tileworld_Project_saveProject__P3706_mk(s); + r0 = s.caps[0].fields["p"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1430; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + case 13: + case 14: + r0 = (s.caps[0]).fields["lastDir"] = (-1); + r0 = (s.caps[0]).fields["lastDir"] = (-1); + s.tmp_0 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1431; s.pc = 34; return s.tmp_0; + case 34: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_GameHome__C3829_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_GameHome_constructor__P3830_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 1432; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + { step = 20; continue; } + case 15: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 1433; s.pc = 36; return s.tmp_2; + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 9); + 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_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 1434; s.pc = 37; return s.tmp_4; + case 37: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 == 0); + case 17: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 18; continue; } + s.tmp_6 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1435; s.pc = 38; return s.tmp_6; + case 38: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_ProjectSettings__C3826_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_ProjectSettings_constructor__P3827_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = null; + s.callLocIdx = 1436; s.pc = 39; return s.tmp_1; + case 39: + r0 = s.retval; + case 18: + case 19: + case 20: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P17829.info = {"start":321,"length":1012,"line":10,"column":64,"endLine":30,"endColumn":13,"fileName":"loadScreen.ts","functionName":"inline","argumentNames":[]} -function particles_ParticleSource_updateParticle__P1731_mk(s) { +function inline__P17829_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P1731, depth: s.depth + 1, + parent: s, fn: inline__P17829, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5831,50 +7096,24 @@ function particles_ParticleSource_updateParticle__P1731_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function Fx_rightShift__P126(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 >> s.arg1); - return leave(s, r0) - default: oops() -} } } -Fx_rightShift__P126.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 Fx_rightShift__P126_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_rightShift__P126, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + first___17830: undefined, + second___17842: undefined, + slot___17872: undefined, + prefix___17882: undefined, } } -function Fx_mul__P117(s) { +function tileworld_ProjectSettings_constructor__P3827(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5889,20 +7128,60 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_ProjectSettings__C3826_VT)) failedCast(r0); + r0 = (s.arg0).fields["askDeleteRule"] = (false); + s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1314; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1315; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1316; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P17302); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1333; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P17373); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.B___1875; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1335; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_mul__P117.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +tileworld_ProjectSettings_constructor__P3827.info = {"start":176,"length":1688,"line":6,"column":8,"endLine":46,"endColumn":9,"fileName":"settings.ts","functionName":"inline","argumentNames":["this","p"]} -function Fx_mul__P117_mk(s) { +function tileworld_ProjectSettings_constructor__P3827_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P117, depth: s.depth + 1, + parent: s, fn: tileworld_ProjectSettings_constructor__P3827, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -5911,7 +7190,7 @@ function Fx_mul__P117_mk(s) { -function Fx_add__P114(s) { +function inline__P17302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5921,31 +7200,236 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 + s.arg1); + s.keys___17307 = undefined; + r0 = s.caps[0].fields["askDeleteRule"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.caps[0].fields["p"]; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + s.tmp_2 = settings_list__P1832_mk(s); + r0 = s.caps[0].fields["p"]; + r0 = r0.fields["prefix"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 1317; s.pc = 24; return s.tmp_2; + case 24: + r0 = s.retval; + s.keys___17307 = (r0); + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + s.tmp_0.arg0 = s.keys___17307; + s.tmp_0.arg1 = inline__P17314; + s.callLocIdx = 1319; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = game_popScene__P2529_mk(s); + s.callLocIdx = 1320; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + { step = 2; continue; } + case 1: + s.tmp_0 = settings_clear__P1823_mk(s); + s.callLocIdx = 1321; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + case 2: + s.tmp_0 = game_popScene__P2529_mk(s); + s.callLocIdx = 1322; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + { step = 22; continue; } + case 3: + r0 = s.caps[0].fields["p"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_3.arg0 = s.caps[0]; + s.tmp_3.arg1 = true; + s.callLocIdx = 1323; s.pc = 29; return s.tmp_3; + case 29: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 == 3); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 4; continue; } + r0 = s.tmp_1; + { step = 5; continue; } + case 4: + s.tmp_5 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_5.arg0 = s.caps[0]; + s.tmp_5.arg1 = true; + s.callLocIdx = 1324; s.pc = 30; return s.tmp_5; + case 30: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 == 1); + case 5: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 6; continue; } + r0 = s.caps[0].fields["p"]; + s.tmp_7 = r0; + r0 = s.caps[0].fields["p"]; + r0 = r0.fields["help"]; + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + s.tmp_9 = r0; + r0 = pxsim_Boolean__bang(s.tmp_9); + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["help"] = (s.tmp_8); + s.tmp_0 = tileworld_Project_saveHelp__P3704_mk(s); + r0 = s.caps[0].fields["p"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1325; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + { step = 11; continue; } + case 6: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 1326; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 4); + 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: + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 1327; s.pc = 33; return s.tmp_4; + case 33: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 == 5); + case 8: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 9; continue; } + s.tmp_6 = tileworld_loadProject__P3709_mk(s); + r0 = s.caps[0].fields["p"]; + r0 = r0.fields["prefix"]; + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = true; + s.callLocIdx = 1328; s.pc = 34; return s.tmp_6; + case 34: + r0 = s.retval; + case 9: + case 10: + case 11: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 1329; s.pc = 35; return s.tmp_2; + case 35: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 4); + 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_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 1330; s.pc = 36; return s.tmp_4; + case 36: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 == 6); + case 13: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 14; continue; } + r0 = (s.caps[0]).fields["askDeleteRule"] = (true); + case 14: + case 15: + { step = 21; continue; } + case 16: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 1331; s.pc = 37; return s.tmp_2; + case 37: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 7); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 17; continue; } + r0 = s.tmp_0; + { step = 18; continue; } + case 17: + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 1332; s.pc = 38; return s.tmp_4; + case 38: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 == 2); + case 18: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 19; continue; } + r0 = (s.caps[0]).fields["askDeleteRule"] = (true); + { step = 23; continue; } + case 19: + case 20: + case 21: + case 22: + s.tmp_0 = tileworld_ProjectSettings__C3826_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, tileworld_ProjectSettings__C3826_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + case 23: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_add__P114.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +inline__P17302.info = {"start":335,"length":1249,"line":9,"column":64,"endLine":37,"endColumn":13,"fileName":"settings.ts","functionName":"inline","argumentNames":[]} -function Fx_add__P114_mk(s) { +function inline__P17302_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P114, depth: s.depth + 1, + parent: s, fn: inline__P17302, 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, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + keys___17307: undefined, } } -function game_onUpdateInterval__P1301(s) { +function inline__P17314(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5955,79 +7439,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___21572 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P1291_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 888; 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; } + s.tmp_0 = settings_remove__P1833_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1318; s.pc = 1; return s.tmp_0; 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___21572 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___21572, 0); - r0 = pxsim_pxtcore_mkAction(3, inline__P21576); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___21572); - 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__P293_mk(s); - s.tmp_2 = game_eventContext__P1290_mk(s); - s.callLocIdx = 889; 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 = 893; s.pc = 7; return s.tmp_1; - case 7: r0 = s.retval; - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P1301.info = {"start":7931,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +inline__P17314.info = {"start":525,"length":26,"line":13,"column":37,"endLine":13,"endColumn":63,"fileName":"settings.ts","functionName":"inline","argumentNames":["k"]} -function game_onUpdateInterval__P1301_mk(s) { +function inline__P17314_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P1301, depth: s.depth + 1, + parent: s, fn: inline__P17314, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - timer___21572: undefined, arg0: undefined, - arg1: undefined, } } -function inline__P21576(s) { +function inline__P17373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6037,55 +7477,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___21577 = undefined; - s.tmp_1 = game_currentScene__P961_mk(s); - s.callLocIdx = 890; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_millis"]; - s.time___21577 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___21577); + r0 = s.caps[0].fields["askDeleteRule"]; 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___21577 + 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 = 892; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; + r0 = (s.caps[0]).fields["askDeleteRule"] = (false); + { step = 2; continue; } case 1: + s.tmp_0 = game_popScene__P2529_mk(s); + s.callLocIdx = 1334; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P21576.info = {"start":8161,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +inline__P17373.info = {"start":1654,"length":197,"line":39,"column":64,"endLine":45,"endColumn":13,"fileName":"settings.ts","functionName":"inline","argumentNames":[]} -function inline__P21576_mk(s) { +function inline__P17373_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21576, depth: s.depth + 1, + parent: s, fn: inline__P17373, depth: s.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___21577: undefined, } } -function scene_Scene_millis__P1198(s) { +function tileworld_ProjectSettings_update__P17291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6095,23 +7517,279 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.worldY___17411 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C1195_VT)) failedCast(r0); - r0 = s.arg0.fields["_millis"]; - return leave(s, r0) - default: oops() -} } } -scene_Scene_millis__P1198.info = {"start":6538,"length":61,"line":183,"column":8,"endLine":185,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} - -function scene_Scene_millis__P1198_mk(s) { - checkStack(s.depth); + if (!checkSubtype(r0, tileworld_ProjectSettings__C3826_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 6; + s.tmp_0.arg3 = 16; + s.tmp_0.arg4 = 16; + s.tmp_0.arg5 = 11; + s.callLocIdx = 1336; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, globals.settingsIcon___3719, 0, 6); + r0 = s.arg0.fields["p"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = helpers_imagePrint__P1757_mk(s); + s.tmp_1.arg0 = globals.screen___1799; + s.tmp_1.arg1 = "Help"; + s.tmp_1.arg2 = 16; + s.tmp_1.arg3 = 28; + s.tmp_1.arg4 = undefined; + s.tmp_1.arg5 = undefined; + s.tmp_1.arg6 = undefined; + s.callLocIdx = 1337; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 3; + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = globals.emptyTile___3721; + s.callLocIdx = 1338; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = s.arg0.fields["p"]; + r0 = r0.fields["help"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = globals.collisionSprite___3725; + { step = 2; continue; } + case 1: + r0 = globals.genericSprite___3726; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = 3; + s.tmp_2.arg2 = 1; + s.tmp_2.arg3 = s.tmp_1; + s.callLocIdx = 1339; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.worldY___17411 = (44); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = "World"; + s.tmp_0.arg2 = 16; + s.tmp_0.arg3 = s.worldY___17411; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1340; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = s.arg0.fields["p"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_backgrounds"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops.toString(s.tmp_1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 64; + s.tmp_0.arg3 = s.worldY___17411; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1342; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = "by"; + s.tmp_0.arg2 = 96; + s.tmp_0.arg3 = s.worldY___17411; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1343; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = s.arg0.fields["p"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_backgrounds"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops.toString(s.tmp_1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 128; + s.tmp_0.arg3 = s.worldY___17411; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1345; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = s.arg0.fields["p"]; + r0 = r0.fields["version"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 120; + s.tmp_0.arg3 = 6; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1346; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = "Export"; + s.tmp_0.arg2 = 16; + s.tmp_0.arg3 = 92; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1347; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 4; + s.tmp_0.arg2 = 5; + s.tmp_0.arg3 = globals.diskIcon___3763; + s.callLocIdx = 1348; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = "Delete"; + s.tmp_0.arg2 = 16; + s.tmp_0.arg3 = 108; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1349; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 4; + s.tmp_0.arg2 = 6; + s.tmp_0.arg3 = globals.garbageCan___3718; + s.callLocIdx = 1350; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + { step = 4; continue; } + case 3: + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + if ((globals.TileWorldVersion___3665) && (globals.TileWorldVersion___3665).vtable) { + setupResume(s, 23); + pxsim_String__stringConv(globals.TileWorldVersion___3665); + checkResumeConsumed(); + return; + } else { s.retval = (globals.TileWorldVersion___3665) + ""; } + case 23: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat("App Version ", s.tmp_1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 16; + s.tmp_0.arg3 = 28; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1351; s.pc = 22; return s.tmp_0; + case 22: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = "Delete ALL games"; + s.tmp_0.arg2 = 16; + s.tmp_0.arg3 = 44; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1352; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 7; + s.tmp_0.arg2 = 2; + s.tmp_0.arg3 = globals.garbageCan___3718; + s.callLocIdx = 1353; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + case 4: + r0 = s.arg0.fields["askDeleteRule"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 128; + s.tmp_1.arg2 = true; + s.callLocIdx = 1354; s.pc = 26; return s.tmp_1; + case 26: + r0 = s.retval; + r0 = s.arg0.fields["p"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = "OK to delete game?"; + { step = 6; continue; } + case 5: + r0 = "OK to delete ALL games?"; + case 6: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = game_showDialog__P2530_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = pxsim_String_.mkEmpty(); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = "A = OK, B = CANCEL"; + s.callLocIdx = 1355; s.pc = 27; return s.tmp_2; + case 27: + r0 = s.retval; + { step = 8; continue; } + case 7: + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 128; + s.tmp_0.arg2 = false; + s.callLocIdx = 1356; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + case 8: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_ProjectSettings_update__P17291.info = {"start":1876,"length":1553,"line":48,"column":8,"endLine":78,"endColumn":9,"fileName":"settings.ts","functionName":"update","argumentNames":["this"]} + +function tileworld_ProjectSettings_update__P17291_mk(s) { + checkStack(s.depth); return { - parent: s, fn: scene_Scene_millis__P1198, depth: s.depth + 1, + parent: s, fn: tileworld_ProjectSettings_update__P17291, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + worldY___17411: undefined, arg0: undefined, } } @@ -6119,7 +7797,7 @@ function scene_Scene_millis__P1198_mk(s) { -function control_EventContext_registerFrameHandler__P293(s) { +function game_showDialog__P2530(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6129,84 +7807,334 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___21600 = undefined; - s.i___21611 = undefined; + s.titleFont___25929 = undefined; + s.subFont___25934 = undefined; + s.footerFont___25939 = undefined; + s.h___25944 = undefined; + s.top___25963 = undefined; + s.y___25967 = undefined; + s.footerTop___26004 = 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__C287_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_0 = game_init__P4282_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 869; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_String_.mkEmpty(); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = image_getFontForText__P1744_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.callLocIdx = 870; s.pc = 22; return s.tmp_2; + case 22: + r0 = s.retval; + s.titleFont___25929 = (r0); + s.tmp_0 = r0 = s.arg1; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = pxsim_String_.mkEmpty(); + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = image_getFontForText__P1744_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.callLocIdx = 871; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + s.subFont___25934 = (r0); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = pxsim_String_.mkEmpty(); + case 6: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = image_getFontForText__P1744_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.callLocIdx = 872; s.pc = 24; return s.tmp_2; + case 24: + r0 = s.retval; + s.footerFont___25939 = (r0); + s.h___25944 = (8); + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 7; continue; } + s.tmp_0 = r0 = s.h___25944; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.titleFont___25929; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 873; s.pc = 25; return s.tmp_2; } + } + case 25: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.h___25944 = (r0); + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 9; continue; } + s.tmp_0 = r0 = s.h___25944; + s.tmp_3 = if_charHeight_1_mk(s); + s.tmp_3.arg0 = s.subFont___25934; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 874; s.pc = 26; return s.tmp_3; } + } + case 26: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (2 + s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0 + s.tmp_1); + s.h___25944 = (r0); + case 9: + case 10: + r0 = (s.h___25944 + 8); + s.h___25944 = (r0); + s.tmp_0 = game_showDialogBackground__P4283_mk(s); + s.tmp_0.arg0 = s.h___25944; + s.tmp_0.arg1 = 9; + s.callLocIdx = 875; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.top___25963 = (r0); + r0 = (s.top___25963 + 8); + s.y___25967 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); + if (!r0) { step = 13; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___1799); 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__P290_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 63; s.pc = 8; return s.tmp_0; - case 8: + if (!r0) { step = 11; continue; } + r0 = 1; + { step = 12; continue; } + case 11: + r0 = 7; + case 12: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = helpers_imagePrint__P1757_mk(s); + s.tmp_2.arg0 = globals.screen___1799; + s.tmp_2.arg1 = s.arg0; + s.tmp_2.arg2 = 8; + s.tmp_2.arg3 = s.y___25967; + s.tmp_2.arg4 = s.tmp_1; + s.tmp_2.arg5 = s.titleFont___25929; + s.tmp_2.arg6 = undefined; + s.callLocIdx = 876; s.pc = 28; return s.tmp_2; + case 28: + r0 = s.retval; + s.tmp_0 = r0 = s.y___25967; + s.tmp_3 = if_charHeight_1_mk(s); + s.tmp_3.arg0 = s.titleFont___25929; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 877; s.pc = 29; return s.tmp_3; } + } + case 29: r0 = s.retval; - case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C281_VT); - s.fn___21600 = (r0); - r0 = (s.fn___21600).fields["order"] = (s.arg1); - r0 = (s.fn___21600).fields["handler"] = (s.arg2); - s.i___21611 = (0); - case 3: - s.tmp_1 = r0 = s.i___21611; - 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); + r0 = (s.tmp_2 + 2); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.y___25967 = (r0); + case 13: + case 14: + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 17; continue; } + r0 = pxsim_ImageMethods.isMono(globals.screen___1799); 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___21611); - r0 = r0.fields["order"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 > s.arg1); + if (!r0) { step = 15; continue; } + r0 = 1; + { step = 16; continue; } + case 15: + r0 = 6; + case 16: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = helpers_imagePrint__P1757_mk(s); + s.tmp_2.arg0 = globals.screen___1799; + s.tmp_2.arg1 = s.arg1; + s.tmp_2.arg2 = 8; + s.tmp_2.arg3 = s.y___25967; + s.tmp_2.arg4 = s.tmp_1; + s.tmp_2.arg5 = s.subFont___25934; + s.tmp_2.arg6 = undefined; + s.callLocIdx = 878; s.pc = 30; return s.tmp_2; + case 30: + r0 = s.retval; + s.tmp_0 = r0 = s.y___25967; + s.tmp_3 = if_charHeight_1_mk(s); + s.tmp_3.arg0 = s.subFont___25934; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 879; s.pc = 31; return s.tmp_3; } + } + case 31: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 2); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.y___25967 = (r0); + case 17: + case 18: + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 19; continue; } + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.tmp_1 = r0; + s.tmp_3 = if_charHeight_1_mk(s); + s.tmp_3.arg0 = s.footerFont___25939; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "charHeight"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["charHeight"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["charHeight"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 880; s.pc = 32; return s.tmp_3; } + } + case 32: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 4); + s.footerTop___26004 = (r0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.footerTop___26004; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_0.arg3 = r0; + s.tmp_2 = if_charHeight_1_mk(s); + s.tmp_2.arg0 = s.footerFont___25939; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charHeight"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charHeight"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charHeight"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 881; s.pc = 34; return s.tmp_2; } + } + case 34: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 + 4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 0; + s.callLocIdx = 882; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.footerTop___26004; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.footerTop___26004; + s.tmp_0.arg5 = 1; + s.callLocIdx = 883; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = s.arg2; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_2 = r0; + r0 = pxsim_String_.length(s.arg2); s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_6 = if_charWidth_1_mk(s); + s.tmp_6.arg0 = s.footerFont___25939; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "charWidth"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["charWidth"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["charWidth"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 884; s.pc = 37; return s.tmp_6; } + } + case 37: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 8); + s.tmp_0.arg2 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.tmp_8 = r0; + s.tmp_10 = if_charHeight_1_mk(s); + s.tmp_10.arg0 = s.footerFont___25939; + if (!s.tmp_10.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_10.arg0, "charHeight"); + } else { + s.tmp_10.fn = s.tmp_10.arg0.vtable.iface["charHeight"]; + if (s.tmp_10.fn == null) { s.retval = s.tmp_10.arg0.fields["charHeight"]; } + else if (!s.tmp_10.fn.isGetter) { s.retval = bind(s.tmp_10); } + else { s.callLocIdx = 885; s.pc = 38; return s.tmp_10; } + } + case 38: + r0 = s.retval; + s.tmp_9 = r0; + r0 = (s.tmp_8 - s.tmp_9); s.tmp_7 = r0; - r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___21611, s.fn___21600); - r0 = s.fn___21600; - { step = 7; continue; } - case 4: - case 5: - r0 = (s.i___21611 + 1); - s.i___21611 = (r0); - { step = 3; continue; } - case 6: - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___21600); - r0 = s.fn___21600; - case 7: + r0 = (s.tmp_7 - 2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = 1; + s.tmp_0.arg5 = s.footerFont___25939; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 886; s.pc = 36; return s.tmp_0; + case 36: + r0 = s.retval; + case 19: + case 20: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P293.info = {"start":4573,"length":643,"line":140,"column":8,"endLine":157,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} +game_showDialog__P2530.info = {"start":2895,"length":1313,"line":104,"column":4,"endLine":137,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"showDialog","argumentNames":["title","subtitle","footer"]} -function control_EventContext_registerFrameHandler__P293_mk(s) { +function game_showDialog__P2530_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P293, depth: s.depth + 1, + parent: s, fn: game_showDialog__P2530, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6216,8 +8144,16 @@ function control_EventContext_registerFrameHandler__P293_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - fn___21600: undefined, - i___21611: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + titleFont___25929: undefined, + subFont___25934: undefined, + footerFont___25939: undefined, + h___25944: undefined, + top___25963: undefined, + y___25967: undefined, + footerTop___26004: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6227,7 +8163,7 @@ function control_EventContext_registerFrameHandler__P293_mk(s) { -function control_EventContext_registerFrameCallbacks__P290(s) { +function game_showDialogBackground__P4283(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6237,55 +8173,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___21645 = undefined; + s.top___26048 = 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__C287_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_ImageMethods.height(globals.screen___1799); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 - s.arg0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } + r0 = (s.tmp_0 >> 1); + s.top___26048 = (r0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.top___26048; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg0; + s.tmp_0.arg5 = 0; + s.callLocIdx = 866; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = s.top___26048; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.top___26048; + s.tmp_0.arg5 = 1; + s.callLocIdx = 867; s.pc = 2; return s.tmp_0; case 2: - r0 = s.arg0.fields["frameWorker"]; - s.worker___21645 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P21651); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___21645); - r0 = pxsim.control.runInParallel(s.tmp_0); + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = 0; + r0 = (s.top___26048 + s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 1); + s.tmp_0.arg2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_0.arg3 = r0; + r0 = (s.top___26048 + s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = 1; + s.callLocIdx = 868; s.pc = 3; return s.tmp_0; case 3: - r0 = undefined; + r0 = s.retval; + r0 = s.top___26048; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P290.info = {"start":3379,"length":895,"line":102,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +game_showDialogBackground__P4283.info = {"start":2587,"length":302,"line":95,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"showDialogBackground","argumentNames":["h","c"]} -function control_EventContext_registerFrameCallbacks__P290_mk(s) { +function game_showDialogBackground__P4283_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P290, depth: s.depth + 1, + parent: s, fn: game_showDialogBackground__P4283, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - worker___21645: undefined, + top___26048: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P21651(s) { +function game_init__P4282(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6295,73 +8257,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___21681 = undefined; - r0 = s.caps[0].fields["runningCallbacks"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(globals._scene___4274); + 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_pxtcore_mkAction(1, inline__P21657); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P248_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 57; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.arg0; case 2: - r0 = (s.caps[0]).fields["runningCallbacks"] = (true); - r0 = (s.caps[0]).fields["framesInSample"] = (0); - r0 = (s.caps[0]).fields["timeInSample"] = (0); - r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim.control.millis(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); + // 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__C2411_VT); + s.tmp_3 = r0; + s.tmp_4 = scene_Scene_constructor__P2432_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_5 = control_pushEventContext__P395_mk(s); + s.callLocIdx = 851; s.pc = 14; return s.tmp_5; + case 14: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.tmp_4.arg2 = globals._scene___4274; + s.callLocIdx = 852; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + globals._scene___4274 = (s.tmp_3); case 3: - r0 = s.caps[0].fields["frameWorker"]; + case 4: + s.tmp_0 = scene_Scene_init__P2433_mk(s); + s.tmp_0.arg0 = globals._scene___4274; + s.callLocIdx = 853; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.winEffect___2522); s.tmp_1 = r0; - r0 = (s.caps[1] == s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = control_EventContext_runCallbacks__P289_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 58; s.pc = 6; return s.tmp_2; + if (!r0) { step = 5; continue; } + globals.winEffect___2522 = (globals.confetti___2793); + case 5: case 6: - r0 = s.retval; - s.delay___21681 = (r0); - s.tmp_0 = pause__P309_mk(s); - s.tmp_0.arg0 = s.delay___21681; - s.callLocIdx = 59; s.pc = 7; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(globals.loseEffect___2523); + 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___2523 = (globals.melt___2814); case 7: - r0 = s.retval; - { step = 3; continue; } - case 4: - r0 = (s.caps[0]).fields["runningCallbacks"] = (false); + case 8: + r0 = pxsim_numops_toBoolDecr(globals.winSound___4273); + 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___4273 = (globals.powerUp___1615); + case 9: + case 10: + r0 = pxsim_numops_toBoolDecr(globals.loseSound___4271); + 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___4271 = (globals.wawawawaa___1612); + case 11: + case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P21651.info = {"start":3540,"length":723,"line":106,"column":34,"endLine":125,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +game_init__P4282.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function inline__P21651_mk(s) { +function game_init__P4282_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21651, depth: s.depth + 1, + parent: s, fn: game_init__P4282, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - delay___21681: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + arg0: undefined, } } -function inline__P21657(s) { +function inline__P22828(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6371,30 +8367,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["runningCallbacks"]; + s.rounds___22831 = undefined; + s.j___22839 = undefined; + s.x___22844 = undefined; + s.y___22850 = undefined; + s.c___22856 = 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_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = (s.tmp_0 >> 5); + s.rounds___22831 = (r0); + s.j___22839 = (0); + case 1: + r0 = (s.j___22839 < s.rounds___22831); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_FastRandom_randomRange__P2582_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 = 44; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.x___22844 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P2582_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 = 45; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.y___22850 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___22844, s.y___22850); + s.c___22856 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___22844; + r0 = (s.y___22850 + 1); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___22856); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___22844; + r0 = (s.y___22850 + 2); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___22856); + r0 = (s.j___22839 + 1); + s.j___22839 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P21657.info = {"start":3771,"length":28,"line":110,"column":31,"endLine":110,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +inline__P22828.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 inline__P21657_mk(s) { +function inline__P22828_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21657, depth: s.depth + 1, + parent: s, fn: inline__P22828, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + rounds___22831: undefined, + j___22839: undefined, + x___22844: undefined, + y___22850: undefined, + c___22856: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_runCallbacks__P289(s) { +function Math_FastRandom_randomRange__P2582(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6404,234 +8466,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___21690 = undefined; - s.f___21703 = undefined; - s.unnamed48___U2 = undefined; - s.unnamed49___U3 = undefined; - s.runtime___21708 = undefined; - s.fps___21728 = undefined; - s.delay___21790 = 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__C287_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.loopStart___21690 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["prevTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.loopStart___21690 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___21690); - s.f___21703 = (undefined); - r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed48___U2 = (r0); - s.unnamed49___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed49___U3; - r0 = pxsim_Array__length(s.unnamed48___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed48___U2, s.unnamed49___U3); - s.f___21703 = (r0); - s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___21703; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); - s.callLocIdx = 54; 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 = 54; s.pc = 13; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 54; s.pc = 13; return s.tmp_2;; } - else { s.callLocIdx = 54; s.pc = 13; return s.tmp_2; } - } - case 13: - r0 = s.retval; - r0 = (s.unnamed49___U3 + 1); - s.unnamed49___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed48___U2 = (undefined); - r0 = pxsim.control.millis(); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.loopStart___21690); - s.runtime___21708 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___21708); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["framesInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["framesInSample"] = (s.tmp_1); - r0 = s.arg0.fields["timeInSample"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 1000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["framesInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 30); - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 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___21728 = (r0); - r0 = pxsim.Math_.round(s.fps___21728); - 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___299 = (r0); - r0 = (s.fps___21728 < 99); + if (!checkSubtype(r0, Math_FastRandom__C2578_VT)) failedCast(r0); + r0 = (s.arg2 > s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___299) && (globals.control_EventContext_lastStats___299).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(globals.control_EventContext_lastStats___299); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___299) + ""; } - case 15: + if (!r0) { step = 1; continue; } + s.tmp_2 = Math_FastRandom_next__P2581_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 900; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.fps___21728 * 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; + r0 = (s.arg2 - s.arg1); s.tmp_4 = r0; - r0 = pxsim_String__concat(".", s.tmp_4); + r0 = (s.tmp_4 + 1); 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___299 = (r0); - case 5: - case 6: - s.tmp_2 = control_ramSize__P228_mk(s); - s.callLocIdx = 55; 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: + r0 = (s.tmp_1 % s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: // 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___21728 * 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__P78_mk(s); - s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___21708); - s.tmp_0.arg1 = r0; - s.callLocIdx = 56; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.delay___21790 = (r0); - r0 = s.delay___21790; + r0 = (s.arg1 + s.tmp_5); return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P289.info = {"start":2080,"length":1246,"line":71,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +Math_FastRandom_randomRange__P2582.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_runCallbacks__P289_mk(s) { +function Math_FastRandom_randomRange__P2582_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P289, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P2582, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6639,29 +8512,16 @@ function control_EventContext_runCallbacks__P289_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - loopStart___21690: undefined, - f___21703: undefined, - unnamed48___U2: undefined, - unnamed49___U3: undefined, - runtime___21708: undefined, - fps___21728: undefined, - delay___21790: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function pauseUntil__P248(s) { +function Math_FastRandom_next__P2581(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6673,59 +8533,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_2 = lambda_1_mk(s); - s.tmp_2.argL = s.arg0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 34; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - case 2: - // jmp value (already in r0) + r0 = s.arg0; + if (!checkSubtype(r0, Math_FastRandom__C2578_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["lfsr"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 7; continue; } - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(s.arg1); + 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 = pxsim_Boolean__bang(s.tmp_5); + r0 = (s.tmp_5 & 46080); 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__P247_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 35; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 7: - r0 = undefined; + 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() } } } -pauseUntil__P248.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +Math_FastRandom_next__P2581.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} -function pauseUntil__P248_mk(s) { +function Math_FastRandom_next__P2581_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P248, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P2581, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6733,15 +8570,16 @@ function pauseUntil__P248_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, - arg1: undefined, } } -function control___queuePollEvent__P247(s) { +function effects_ImageEffect_constructor__P2809(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6751,87 +8589,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___21812 = 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__C242_VT); + r0 = s.arg0; + if (!checkSubtype(r0, effects_ImageEffect__C2808_VT)) failedCast(r0); + r0 = (s.arg0).fields["effect"] = (s.arg2); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2578_VT); s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P243_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P2580_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 = 32; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.ev___21812 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___245); - 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___21812); - globals._pollEventQueue___245 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P246); - { step = 2; continue; } + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1186; s.pc = 1; return s.tmp_1; case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___245, s.ev___21812); - case 2: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P280_mk(s); - r0 = s.ev___21812.fields["eid"]; - s.tmp_0.arg0 = r0; - r0 = s.ev___21812.fields["vid"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 16; - s.callLocIdx = 33; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = s.ev___21812.fields["eid"]; - s.tmp_0 = r0; - r0 = s.ev___21812.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 = (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___queuePollEvent__P247.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"]} +effects_ImageEffect_constructor__P2809.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___queuePollEvent__P247_mk(s) { +function effects_ImageEffect_constructor__P2809_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P247, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P2809, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - ev___21812: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6841,7 +8631,7 @@ function control___queuePollEvent__P247_mk(s) { -function control_onEvent__P280(s) { +function inline__P22936(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6851,63 +8641,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___21854 = undefined; + s.factory___22939 = 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__P303_mk(s); - s.callLocIdx = 51; s.pc = 3; return s.tmp_0; + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C2737_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 = 32; s.pc = 3; return s.tmp_2; } + } case 3: r0 = s.retval; - s.ctx___21854 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___21854); 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 = 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__P295_mk(s); - s.tmp_0.arg0 = s.ctx___21854; - 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 = 52; s.pc = 4; return s.tmp_0; + 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 = 33; 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__P2738_mk(s); + s.tmp_5.arg0 = s.tmp_0; + s.tmp_5.arg1 = s.tmp_4; + s.tmp_5.arg2 = 16; + s.callLocIdx = 34; s.pc = 5; return s.tmp_5; + case 5: + r0 = s.retval; + s.factory___22939 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P2714_mk(s); + s.tmp_0.arg0 = s.factory___22939; + s.tmp_0.arg1 = 30; + s.callLocIdx = 35; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C2670_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ParticleSource_constructor__P2675_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___22939; + s.callLocIdx = 36; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -control_onEvent__P280.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"]} +inline__P22936.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 control_onEvent__P280_mk(s) { +function inline__P22936_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P280, depth: s.depth + 1, + parent: s, fn: inline__P22936, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___21854: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + factory___22939: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function control_eventContext__P303(s) { +function particles_ParticleSource_constructor__P2675(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6917,42 +8742,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___302); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___302; - r0 = pxsim_Array__length(globals.eventContexts___302); - 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 = undefined; - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; - return leave(s, r0) - default: oops() -} } } -control_eventContext__P303.info = {"start":6805,"length":136,"line":206,"column":4,"endLine":208,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} - -function control_eventContext__P303_mk(s) { + s.sources___22960 = undefined; + s.removedSource___22969 = 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__C2670_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P1857_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1062; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = particles_init__P4629_mk(s); + s.callLocIdx = 1063; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_particleSources__P4635_mk(s); + s.callLocIdx = 1064; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.sources___22960 = (r0); + r0 = pxsim_Array__length(s.sources___22960); + s.tmp_1 = r0; + r0 = (s.tmp_1 >= globals.MAX_SOURCES___4606); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = particles_sortSources__P4632_mk(s); + s.tmp_2.arg0 = s.sources___22960; + s.callLocIdx = 1065; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + r0 = pxsim_Array_.removeAt(s.sources___22960, 0); + s.removedSource___22969 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P2685_mk(s); + s.tmp_0.arg0 = s.removedSource___22969; + s.callLocIdx = 1067; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_destroy__P2684_mk(s); + s.tmp_0.arg0 = s.removedSource___22969; + s.callLocIdx = 1068; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + case 1: + case 2: + r0 = (s.arg0).fields["pFlags"] = (0); + s.tmp_0 = particles_ParticleSource_setRate__P2687_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 1069; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAcceleration__P2679_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.callLocIdx = 1070; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAnchor__P2686_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1071; 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___2690; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = particles_ParticleSource_setFactory__P2689_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1072; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + r0 = pxsim_Array__push(s.sources___22960, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P2683_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1073; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_ParticleSource_constructor__P2675.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 particles_ParticleSource_constructor__P2675_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P303, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P2675, depth: s.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___22960: undefined, + removedSource___22969: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function control_EventContext_registerHandler__P295(s) { +function particles_particleSources__P4635(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6962,113 +8875,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___21877 = undefined; - s.unnamed54___U1 = undefined; - s.unnamed55___U2 = undefined; - s.hn___21900 = 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__C287_VT)) failedCast(r0); - s.h___21877 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed54___U1 = (r0); - s.unnamed55___U2 = (0); + s.sources___23281 = undefined; + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 1124; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.unnamed55___U2; - r0 = pxsim_Array__length(s.unnamed54___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed54___U1, s.unnamed55___U2); - s.h___21877 = (r0); - r0 = s.h___21877.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___21877.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___21877).fields["flags"] = (s.arg4); - r0 = (s.h___21877).fields["handler"] = (s.arg3); - { step = 7; continue; } - case 4: - case 5: - r0 = (s.unnamed55___U2 + 1); - s.unnamed55___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed54___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C282_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P285_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 = 64; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.hn___21900 = (s.tmp_0); - r0 = s.arg0.fields["handlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___21900); - s.tmp_0 = control_EventHandler_register__P283_mk(s); - s.tmp_0.arg0 = s.hn___21900; - s.callLocIdx = 65; s.pc = 9; return s.tmp_0; - case 9: r0 = s.retval; - case 7: - r0 = undefined; + r0 = r0.fields["particleSources"]; + s.sources___23281 = (r0); + r0 = s.sources___23281; return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P295.info = {"start":5471,"length":525,"line":166,"column":8,"endLine":179,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} +particles_particleSources__P4635.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function control_EventContext_registerHandler__P295_mk(s) { +function particles_particleSources__P4635_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P295, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P4635, depth: s.depth + 1, pc: 0, retval: undefined, 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___21877: undefined, - unnamed54___U1: undefined, - unnamed55___U2: undefined, - hn___21900: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, + sources___23281: undefined, } } -function control_EventHandler_constructor__P285(s) { +function particles_sortSources__P4632(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7080,41 +8913,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C282_VT)) failedCast(r0); - r0 = (s.arg0).fields["src"] = (s.arg1); - r0 = (s.arg0).fields["value"] = (s.arg2); - r0 = (s.arg0).fields["handler"] = (s.arg3); - r0 = (s.arg0).fields["flags"] = (s.arg4); + s.tmp_0 = helpers_arraySort__P100_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = inline__P23267; + s.callLocIdx = 1111; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_constructor__P285.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"]} +particles_sortSources__P4632.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_EventHandler_constructor__P285_mk(s) { +function particles_sortSources__P4632_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P285, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P4632, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_register__P283(s) { +function inline__P23267(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7126,43 +8952,54 @@ 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__C282_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P21921); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = s.arg0.fields["src"]; + r0 = s.arg0.fields["priority"]; s.tmp_1 = r0; - r0 = s.arg0.fields["value"]; + r0 = s.arg1.fields["priority"]; s.tmp_2 = r0; - r0 = s.arg0.fields["flags"]; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; s.tmp_3 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); - r0 = undefined; + 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_5 = r0; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -control_EventHandler_register__P283.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +inline__P23267.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_EventHandler_register__P283_mk(s) { +function inline__P23267_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P283, depth: s.depth + 1, + parent: s, fn: inline__P23267, depth: s.depth + 1, pc: 0, retval: undefined, 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 inline__P21921(s) { +function helpers_arraySort__P100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7172,45 +9009,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["handler"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = if_handler_1_mk(s); - s.tmp_1.arg0 = s.caps[0]; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); - s.callLocIdx = 53; 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 = 53; s.pc = 3; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 53; s.pc = 3; return s.tmp_1;; } - else { s.callLocIdx = 53; s.pc = 3; return s.tmp_1; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 3: - 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 = pxsim_Array__length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 > 1); case 2: - r0 = undefined; + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.arg1 = (inline__P27123); + case 3: + case 4: + s.tmp_0 = helpers_sortHelper__P3887_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 3; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P21921.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +helpers_arraySort__P100.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 inline__P21921_mk(s) { +function helpers_arraySort__P100_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21921, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P100, depth: s.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_pollEvents__P246(s) { +function inline__P27123(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7220,117 +9072,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___21938 = undefined; - s.i___21941 = undefined; - s.ev___21947 = undefined; - case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___245); - 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___21938 = (r0); - s.i___21941 = (0); - case 2: - s.tmp_1 = r0 = s.i___21941; - r0 = pxsim_Array__length(globals._pollEventQueue___245); - 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___245, s.i___21941); - s.ev___21947 = (r0); - s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___21947; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); - s.callLocIdx = 29; 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 = 29; s.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 29; s.pc = 13; return s.tmp_1;; } - else { s.callLocIdx = 29; s.pc = 13; return s.tmp_1; } + s.aIsUndef___27126 = undefined; + s.bIsUndef___27130 = undefined; + s.aIsNull___27141 = undefined; + s.bIsNull___27145 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 13: - r0 = s.retval; - s.tmp_0 = r0; + r0 = (s.arg0 === undefined); + s.aIsUndef___27126 = (r0); + r0 = (s.arg1 === undefined); + s.bIsUndef___27130 = (r0); + s.tmp_0 = r0 = s.aIsUndef___27126; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 6; continue; } + { step = 2; continue; } + case 1: + r0 = s.bIsUndef___27130; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = 0; + { step = 17; continue; } + { step = 8; continue; } case 3: - r0 = s.ev___21947.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; } + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___27126); + if (!r0) { step = 4; continue; } + r0 = 1; + { step = 17; continue; } + { step = 7; continue; } case 4: - r0 = s.ev___21947.fields["start"]; - s.tmp_5 = r0; - r0 = (s.now___21938 - s.tmp_5); - s.tmp_4 = r0; - r0 = s.ev___21947.fields["timeOut"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 > s.tmp_6); + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___27130); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 17; continue; } 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___21947.fields["eid"]; - s.tmp_9 = r0; - r0 = s.ev___21947.fields["vid"]; - s.tmp_10 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___21947.fields["once"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P49_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___245; - s.tmp_1.arg1 = s.i___21941; - s.tmp_1.arg2 = 1; - s.callLocIdx = 30; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = (s.i___21941 - 1); - s.i___21941 = (r0); case 7: case 8: + r0 = (s.arg0 === null); + s.aIsNull___27141 = (r0); + r0 = (s.arg1 === null); + s.bIsNull___27145 = (r0); + s.tmp_0 = r0 = s.aIsNull___27141; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } case 9: + r0 = s.bIsNull___27145; case 10: - r0 = (s.i___21941 + 1); - s.i___21941 = (r0); - { step = 2; continue; } + // 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: - s.tmp_0 = pause__P309_mk(s); - s.tmp_0.arg0 = 50; - s.callLocIdx = 31; s.pc = 15; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.aIsNull___27141); + if (!r0) { step = 12; continue; } + r0 = 1; + { step = 17; continue; } + { step = 15; continue; } + case 12: + r0 = pxsim_numops_toBoolDecr(s.bIsNull___27145); + if (!r0) { step = 13; continue; } + r0 = -1; + { step = 17; continue; } + case 13: + case 14: case 15: + case 16: + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.arg0); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg0) + ""; } + case 18: r0 = s.retval; - { step = 1; continue; } - case 12: - globals._pollEventQueue___245 = (undefined); - r0 = undefined; + s.tmp_3 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.arg1); + checkResumeConsumed(); + return; + } else { s.retval = (s.arg1) + ""; } + case 19: + r0 = s.retval; + s.tmp_6 = r0; + r0 = pxsim_String_.mkEmpty(); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); + s.tmp_5 = r0; + r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); + case 17: return leave(s, r0) default: oops() } } } -control_pollEvents__P246.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +inline__P27123.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 control_pollEvents__P246_mk(s) { +function inline__P27123_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P246, depth: s.depth + 1, + parent: s, fn: inline__P27123, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7340,19 +9195,19 @@ function control_pollEvents__P246_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - now___21938: undefined, - i___21941: undefined, - ev___21947: undefined, + aIsUndef___27126: undefined, + bIsUndef___27130: undefined, + aIsNull___27141: undefined, + bIsNull___27145: undefined, + arg0: undefined, + arg1: undefined, } } -function helpers_arraySplice__P49(s) { +function helpers_sortHelper__P3887(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7362,55 +9217,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___21996 = undefined; + s.len___27180 = undefined; + s.i___27183 = undefined; + s.j___27189 = 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); + r0 = pxsim_Array__length(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - s.i___21996 = (0); + // 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.i___21996 < 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___21996 + 1); - s.i___21996 = (r0); - { step = 3; continue; } case 4: + r0 = pxsim_Array__length(s.arg0); + s.len___27180 = (r0); + s.i___27183 = (0); case 5: - r0 = undefined; + s.tmp_1 = r0 = s.i___27183; + r0 = (s.len___27180 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + r0 = (s.i___27183 + 1); + s.j___27189 = (r0); + case 6: + r0 = (s.j___27189 < s.len___27180); + 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___27183); + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.arg0, s.j___27189); + s.tmp_3.arg1 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 1; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.tmp_4 = helpers_swap__P3886_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.i___27183; + s.tmp_4.arg2 = s.j___27189; + s.callLocIdx = 2; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + case 7: + case 8: + r0 = (s.j___27189 + 1); + s.j___27189 = (r0); + { step = 6; continue; } + case 9: + r0 = (s.i___27183 + 1); + s.i___27183 = (r0); + { step = 5; continue; } + case 10: + r0 = s.arg0; + case 11: return leave(s, r0) default: oops() } } } -helpers_arraySplice__P49.info = {"start":3642,"length":213,"line":137,"column":4,"endLine":144,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySplice","argumentNames":["arr","start","len"]} +helpers_sortHelper__P3887.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 helpers_arraySplice__P49_mk(s) { +function helpers_sortHelper__P3887_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P49, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P3887, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - i___21996: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + len___27180: undefined, + i___27183: undefined, + j___27189: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function control_PollEvent_constructor__P243(s) { +function helpers_swap__P3886(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7420,49 +9334,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.temp___27218 = 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__C242_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 = pxsim_Array__getAt(s.arg0, s.arg1); + s.temp___27218 = (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___27218); r0 = undefined; return leave(s, r0) default: oops() } } } -control_PollEvent_constructor__P243.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"]} +helpers_swap__P3886.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 control_PollEvent_constructor__P243_mk(s) { +function helpers_swap__P3886_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P243, depth: s.depth + 1, + parent: s, fn: helpers_swap__P3886, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + temp___27218: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function game_onUpdate__P1300(s) { +function particles_init__P4629(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7472,59 +9383,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; - } - s.tmp_0 = game_init__P1291_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 885; s.pc = 4; return s.tmp_0; + s.scene___23286 = undefined; + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 1101; 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.scene___23286 = (r0); + r0 = s.scene___23286.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_2 = control_EventContext_registerFrameHandler__P293_mk(s); - s.tmp_3 = game_eventContext__P1290_mk(s); - s.callLocIdx = 886; 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 = 887; s.pc = 5; return s.tmp_2; + s.tmp_1 = r0 = s.scene___23286; + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); + r0 = pxsim.control.millis(); + globals.lastUpdate___4624 = (r0); + s.tmp_0 = game_onUpdate__P2535_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P4630; + s.callLocIdx = 1102; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; + s.tmp_0 = game_onUpdateInterval__P2536_mk(s); + s.tmp_0.arg0 = 250; + s.tmp_0.arg1 = particles_pruneParticles__P4631; + s.callLocIdx = 1103; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdate__P1300.info = {"start":7429,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} +particles_init__P4629.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} -function game_onUpdate__P1300_mk(s) { +function particles_init__P4629_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P1300, depth: s.depth + 1, + parent: s, fn: particles_init__P4629, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, + scene___23286: undefined, } } -function particles_SprayFactory_constructor__P1785(s) { +function particles_pruneParticles__P4631(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7534,56 +9445,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.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C1779_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P1767_mk(s); - s.callLocIdx = 1136; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P1783_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1137; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P1784_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 1138; s.pc = 3; return s.tmp_0; + s.sources___23301 = undefined; + s.tmp_0 = particles_particleSources__P4635_mk(s); + s.callLocIdx = 1107; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_SprayFactory_constructor__P1785.info = {"start":2623,"length":218,"line":98,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","speed","centerDegrees","arcDegrees"]} - -function particles_SprayFactory_constructor__P1785_mk(s) { + s.sources___23301 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___23301); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + s.tmp_1 = helpers_arraySlice__P109_mk(s); + s.tmp_1.arg0 = s.sources___23301; + s.tmp_1.arg1 = 0; + r0 = pxsim_Array__length(s.sources___23301); + s.tmp_1.arg2 = r0; + s.callLocIdx = 1108; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P23310; + s.callLocIdx = 1110; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_pruneParticles__P4631.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} + +function particles_pruneParticles__P4631_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P1785, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P4631, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, + tmp_1: undefined, + sources___23301: undefined, } } -function particles_SprayFactory_setDirection__P1784(s) { +function inline__P23310(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7595,68 +9501,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C1779_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P1774_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 = 1146; s.pc = 1; return s.tmp_4; + s.tmp_0 = particles_ParticleSource__prune__P2678_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1109; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___1766); - 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__P1774_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1147; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___1766); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P1784.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"]} +inline__P23310.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function particles_SprayFactory_setDirection__P1784_mk(s) { +function inline__P23310_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P1784, depth: s.depth + 1, + parent: s, fn: inline__P23310, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_toRadians__P1774(s) { +function particles_ParticleSource__prune__P2678(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7666,44 +9537,147 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___23214 = undefined; + s.sources___23222 = undefined; + s.current___23236 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); + case 1: + r0 = s.arg0.fields["head"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P76_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1128; s.pc = 3; return s.tmp_3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + r0 = s.arg0.fields["head"]; + r0 = r0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); case 3: - r0 = s.retval; + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 % 360); + 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 = (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); + 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__P2524_mk(s); + s.callLocIdx = 1082; s.pc = 21; return s.tmp_5; + case 21: + r0 = s.retval; + s.scene___23214 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___23214); + if (!r0) { step = 7; continue; } + r0 = s.scene___23214.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + case 7: + case 8: + s.tmp_0 = particles_particleSources__P4635_mk(s); + s.callLocIdx = 1083; s.pc = 22; return s.tmp_0; + case 22: + r0 = s.retval; + s.sources___23222 = (r0); + s.tmp_0 = r0 = s.sources___23222; + 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___23222); + 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___23222, 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___23236 = (r0); + case 15: + s.tmp_0 = r0 = s.current___23236; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 16: + r0 = s.current___23236.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___23236.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___23236.fields["next"]; + r0 = r0.fields["next"]; + s.tmp_4 = r0; + r0 = (s.current___23236).fields["next"] = (s.tmp_4); + { step = 19; continue; } + case 18: + r0 = s.current___23236.fields["next"]; + s.current___23236 = (r0); + case 19: + { step = 15; continue; } + case 20: + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_toRadians__P1774.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +particles_ParticleSource__prune__P2678.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_toRadians__P1774_mk(s) { +function particles_ParticleSource__prune__P2678_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P1774, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__prune__P2678, depth: s.depth + 1, pc: 0, retval: undefined, 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___23214: undefined, + sources___23222: undefined, + current___23236: undefined, arg0: undefined, } } @@ -7711,7 +9685,7 @@ function particles_toRadians__P1774_mk(s) { -function particles_ParticleFactory_constructor__P1778(s) { +function helpers_arraySlice__P109(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7721,31 +9695,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___22582 = undefined; + s.len___22584 = undefined; + s.i___22618 = 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_ParticleFactory__C1775_VT)) failedCast(r0); - r0 = undefined; + r0 = pxsim_Array__mk(); + s.res___22582 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___22584 = (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__P122_mk(s); + r0 = (s.len___22584 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 10; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.arg1 = (r0); + case 2: + case 3: + case 4: + r0 = (s.arg1 > s.len___22584); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.res___22582; + { 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___22584); + { 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___22584 + s.arg2); + s.arg2 = (r0); + case 8: + case 9: + case 10: + r0 = (s.arg2 > s.len___22584); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.arg2 = (s.len___22584); + case 11: + case 12: + s.i___22618 = (s.arg1); + case 13: + r0 = (s.i___22618 < s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.res___22582; + r0 = pxsim_Array__getAt(s.arg0, s.i___22618); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___22618 + 1); + s.i___22618 = (r0); + { step = 13; continue; } + case 14: + r0 = s.res___22582; + case 15: return leave(s, r0) default: oops() } } } -particles_ParticleFactory_constructor__P1778.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} +helpers_arraySlice__P109.info = {"start":8909,"length":690,"line":299,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} -function particles_ParticleFactory_constructor__P1778_mk(s) { +function helpers_arraySlice__P109_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_constructor__P1778, depth: s.depth + 1, + parent: s, fn: helpers_arraySlice__P109, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + res___22582: undefined, + len___22584: undefined, + i___22618: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function particles_initTrig__P1767(s) { +function Math_max__P122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7755,47 +9812,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___1753); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 >= s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_cacheSin__P1768_mk(s); - s.tmp_2.arg0 = 100; - s.callLocIdx = 1124; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - globals.cachedSin___1753 = (r0); - s.tmp_0 = particles_cacheCos__P1769_mk(s); - s.tmp_0.arg0 = 100; - s.callLocIdx = 1125; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - globals.cachedCos___1754 = (r0); + r0 = s.arg0; + { step = 3; continue; } case 1: case 2: - r0 = undefined; + r0 = s.arg1; + case 3: return leave(s, r0) default: oops() } } } -particles_initTrig__P1767.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} +Math_max__P122.info = {"start":15575,"length":105,"line":529,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} -function particles_initTrig__P1767_mk(s) { +function Math_max__P122_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_initTrig__P1767, depth: s.depth + 1, + parent: s, fn: Math_max__P122, 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_cacheCos__P1769(s) { +function particles_updateParticles__P4630(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7805,65 +9856,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cos___21335 = undefined; - s.anglePerSlice___21337 = undefined; - s.i___21343 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.cos___21335 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___21337 = (r0); - s.i___21343 = (0); - case 1: - r0 = (s.i___21343 < s.arg0); + s.sources___23781 = undefined; + s.time___23788 = undefined; + s.dt___23791 = undefined; + s.i___23797 = undefined; + s.tmp_0 = particles_particleSources__P4635_mk(s); + s.callLocIdx = 1104; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.sources___23781 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___23781); + 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_1 = r0 = s.cos___21335; - r0 = (s.i___21343 * s.anglePerSlice___21337); - 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___21343 + 1); - s.i___21343 = (r0); - { step = 1; continue; } + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: case 2: - r0 = s.cos___21335; + s.tmp_2 = particles_sortSources__P4632_mk(s); + s.tmp_2.arg0 = s.sources___23781; + s.callLocIdx = 1105; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim.control.millis(); + s.time___23788 = (r0); + r0 = (s.time___23788 - globals.lastUpdate___4624); + s.dt___23791 = (r0); + globals.lastUpdate___4624 = (s.time___23788); + s.i___23797 = (0); + case 3: + s.tmp_1 = r0 = s.i___23797; + r0 = pxsim_Array__length(s.sources___23781); + 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__P2677_mk(s); + r0 = pxsim_Array__getAt(s.sources___23781, s.i___23797); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.dt___23791; + s.callLocIdx = 1106; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + r0 = (s.i___23797 + 1); + s.i___23797 = (r0); + { step = 3; continue; } + case 4: + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -particles_cacheCos__P1769.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} +particles_updateParticles__P4630.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function particles_cacheCos__P1769_mk(s) { +function particles_updateParticles__P4630_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheCos__P1769, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P4630, depth: s.depth + 1, pc: 0, retval: undefined, 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___21335: undefined, - anglePerSlice___21337: undefined, - i___21343: undefined, - arg0: undefined, + sources___23781: undefined, + time___23788: undefined, + dt___23791: undefined, + i___23797: undefined, } } -function particles_cacheSin__P1768(s) { +function particles_ParticleSource__update__P2677(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7873,47 +9940,245 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sin___21361 = undefined; - s.anglePerSlice___21363 = undefined; - s.i___21369 = undefined; + s.p___23860 = undefined; + s.current___23879 = undefined; + s.fixedDt___23887 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.sin___21361 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___21363 = (r0); - s.i___21369 = (0); - case 1: - r0 = (s.i___21369 < s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2670_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 = 2; continue; } - s.tmp_1 = r0 = s.sin___21361; - r0 = (s.i___21369 * s.anglePerSlice___21363); + if (!r0) { step = 3; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["lifespan"]; s.tmp_4 = r0; - r0 = pxsim.Math_.sin(s.tmp_4); + r0 = (s.tmp_4 - s.arg1); s.tmp_3 = r0; - r0 = (s.tmp_3 * 256); + 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__P2684_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1077; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + case 1: + case 2: + { step = 10; continue; } + case 3: + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } + case 4: + s.tmp_2 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1078; 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 = 1079; 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__P2682_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1080; 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_5 | 0); + r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); + s.tmp_0 = particles_ParticleFactory__C2706_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__C2706_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___23860 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___23860); + 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 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___21369 + 1); - s.i___21369 = (r0); - { step = 1; continue; } - case 2: - r0 = s.sin___21361; + r0 = (s.p___23860).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___23860); + { 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___23879 = (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___23887 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___23887); + if (!r0) { step = 23; continue; } + case 19: + r0 = s.current___23879.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___23879; + 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__C2670_v4_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.current___23879; + s.tmp_0.arg2 = s.fixedDt___23887; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C2670_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___23879.fields["next"]; + s.tmp_0 = r0; + s.current___23879 = (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___23879; + 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___23879.fields["next"]; + s.tmp_0 = r0; + s.current___23879 = (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() } } } -particles_cacheSin__P1768.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} +particles_ParticleSource__update__P2677.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 particles_cacheSin__P1768_mk(s) { +function particles_ParticleSource__update__P2677_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheSin__P1768, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P2677, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7921,17 +10186,20 @@ function particles_cacheSin__P1768_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - sin___21361: undefined, - anglePerSlice___21363: undefined, - i___21369: undefined, + tmp_6: undefined, + tmp_7: undefined, + p___23860: undefined, + current___23879: undefined, + fixedDt___23887: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_setFactory__P1730(s) { +function particles_ParticleSource_updateParticle__P4626(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7944,81 +10212,88 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_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() -} } } -particles_ParticleSource_setFactory__P1730.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 particles_ParticleSource_setFactory__P1730_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_setFactory__P1730, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function particles_ParticleSource_setRate__P1728(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (1000 / s.arg1); + if (!checkSubtype(r0, particles_ParticleSource__C2670_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.Math_.ceil(s.tmp_2); + r0 = s.arg0.fields["ax"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["period"] = (s.tmp_1); - r0 = (s.arg0).fields["timer"] = (0); + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vy"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["ay"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; + s.tmp_2 = r0; + r0 = s.arg1.fields["vx"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; + s.tmp_2 = r0; + r0 = s.arg1.fields["vy"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P1728.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} +particles_ParticleSource_updateParticle__P4626.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 particles_ParticleSource_setRate__P1728_mk(s) { +function particles_ParticleSource_updateParticle__P4626_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P1728, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P4626, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function particles_ParticleSource_setAnchor__P1727(s) { +function Fx_rightShift__P161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8033,19 +10308,16 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_VT)) failedCast(r0); - r0 = (s.arg0).fields["anchor"] = (s.arg1); - r0 = undefined; + r0 = (s.arg0 >> s.arg1); return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P1727.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +Fx_rightShift__P161.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 particles_ParticleSource_setAnchor__P1727_mk(s) { +function Fx_rightShift__P161_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P1727, depth: s.depth + 1, + parent: s, fn: Fx_rightShift__P161, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -8055,7 +10327,7 @@ function particles_ParticleSource_setAnchor__P1727_mk(s) { -function particles_ParticleSource_clear__P1726(s) { +function Fx_mul__P152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8067,30 +10339,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_VT)) failedCast(r0); - r0 = (s.arg0).fields["head"] = (undefined); - r0 = undefined; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -particles_ParticleSource_clear__P1726.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} +Fx_mul__P152.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_ParticleSource_clear__P1726_mk(s) { +function Fx_mul__P152_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_clear__P1726, depth: s.depth + 1, + parent: s, fn: Fx_mul__P152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_destroy__P1725(s) { +function Fx_add__P149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8102,49 +10376,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P1724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1085; 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__P1719_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1086; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; + r0 = (s.arg0 + s.arg1); return leave(s, r0) default: oops() } } } -particles_ParticleSource_destroy__P1725.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} +Fx_add__P149.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_ParticleSource_destroy__P1725_mk(s) { +function Fx_add__P149_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P1725, depth: s.depth + 1, + parent: s, fn: Fx_add__P149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_enabled__P1724(s) { +function particles_ParticleFactory_createParticle__P2708(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8154,59 +10408,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.p___23977 = 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__C1715_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P1723_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1084; s.pc = 5; return s.tmp_3; - case 5: + if (!checkSubtype(r0, particles_ParticleFactory__C2706_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C2651_VT); + s.p___23977 = (r0); + s.tmp_0 = r0 = s.p___23977; + 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 = 1131; s.pc = 1; return s.tmp_3; } + } + case 1: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 !== s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["pFlags"]; + r0 = (s.tmp_2 * 256); s.tmp_4 = r0; - r0 = (s.tmp_4 | 1); - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["pFlags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 ^ 1); + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___23977; + 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 = 1133; s.pc = 2; return s.tmp_3; } + } case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); - r0 = (s.arg0).fields["timer"] = (0); - case 3: - case 4: - r0 = undefined; + r0 = s.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___23977).fields["vx"] = (0); + r0 = (s.p___23977).fields["vy"] = (0); + r0 = (s.p___23977).fields["lifespan"] = (500); + r0 = s.p___23977; return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P1724.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +particles_ParticleFactory_createParticle__P2708.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function particles_ParticleSource_enabled__P1724_mk(s) { +function particles_ParticleFactory_createParticle__P2708_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P1724, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P2708, depth: s.depth + 1, pc: 0, retval: undefined, 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___23977: undefined, arg0: undefined, arg1: undefined, } } @@ -8215,7 +10484,7 @@ function particles_ParticleSource_enabled__P1724_mk(s) { -function particles_ParticleSource_enabled__P1723(s) { +function game_onUpdateInterval__P2536(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8225,47 +10494,79 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.timer___23323 = 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__C1715_VT)) failedCast(r0); - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_0 = game_init__P4282_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 890; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg0 < 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___23323 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___23323, 0); + r0 = pxsim_pxtcore_mkAction(3, inline__P23327); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___23323); + 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__P389_mk(s); + s.tmp_2 = game_eventContext__P2527_mk(s); + s.callLocIdx = 891; 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 = 895; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + case 5: + r0 = undefined; + return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P1723.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__P1723.isGetter = true; +game_onUpdateInterval__P2536.info = {"start":7931,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} -function particles_ParticleSource_enabled__P1723_mk(s) { +function game_onUpdateInterval__P2536_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P1723, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P2536, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, + timer___23323: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_setAcceleration__P1720(s) { +function inline__P23327(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8275,50 +10576,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_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); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.time___23328 = undefined; + s.tmp_1 = game_currentScene__P2524_mk(s); + s.callLocIdx = 892; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_millis"]; + s.time___23328 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); + r0 = (s.tmp_1 <= s.time___23328); + 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___23328 + 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 = 894; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAcceleration__P1720.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"]} +inline__P23327.info = {"start":8161,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function particles_ParticleSource_setAcceleration__P1720_mk(s) { +function inline__P23327_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAcceleration__P1720, depth: s.depth + 1, + parent: s, fn: inline__P23327, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_3: undefined, + time___23328: undefined, } } -function sprites_BaseSprite_constructor__P647(s) { +function scene_Scene_millis__P2435(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8330,49 +10636,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C639_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P642_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 138; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P1199_mk(s); - s.tmp_1 = game_currentScene__P961_mk(s); - s.callLocIdx = 139; 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 = 140; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; + if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0); + r0 = s.arg0.fields["_millis"]; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_constructor__P647.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} +scene_Scene_millis__P2435.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} -function sprites_BaseSprite_constructor__P647_mk(s) { +function scene_Scene_millis__P2435_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_constructor__P647, depth: s.depth + 1, + parent: s, fn: scene_Scene_millis__P2435, 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__P1199(s) { +function control_EventContext_registerFrameHandler__P389(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8382,59 +10668,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.fn___23351 = undefined; + s.i___23360 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C1195_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["spriteNextId"]; + if (!checkSubtype(r0, control_EventContext__C381_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1); - s.tmp_3 = if_id_2_mk(s); - s.tmp_3.arg0 = s.arg1; - s.tmp_3.arg1 = s.tmp_2; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1); - } 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 = 835; s.pc = 1; return s.tmp_3; } - } - case 1: + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_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__P3959_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 63; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - r0 = undefined; + case 1: + case 2: + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C378_VT); + s.fn___23351 = (r0); + r0 = (s.fn___23351).fields["order"] = (s.arg1); + r0 = (s.fn___23351).fields["handler"] = (s.arg2); + s.i___23360 = (0); + case 3: + s.tmp_1 = r0 = s.i___23360; + 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___23360); + 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___23360, s.fn___23351); + r0 = s.fn___23351; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.i___23360 + 1); + s.i___23360 = (r0); + { step = 3; continue; } + case 6: + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.fn___23351); + r0 = s.fn___23351; + case 7: return leave(s, r0) default: oops() } } } -scene_Scene_addSprite__P1199.info = {"start":6609,"length":128,"line":187,"column":8,"endLine":190,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +control_EventContext_registerFrameHandler__P389.info = {"start":4573,"length":643,"line":140,"column":8,"endLine":157,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} -function scene_Scene_addSprite__P1199_mk(s) { +function control_EventContext_registerFrameHandler__P389_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_addSprite__P1199, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P389, depth: s.depth + 1, pc: 0, retval: undefined, 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___23351: undefined, + i___23360: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function sprites_BaseSprite_z__P642(s) { +function control_EventContext_registerFrameCallbacks__P3959(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8444,83 +10776,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.worker___23394 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C639_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; + if (!checkSubtype(r0, control_EventContext__C381_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.arg1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_z"] = (s.arg1); - s.tmp_1 = game_currentScene__P961_mk(s); - s.callLocIdx = 141; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 | 1); - s.tmp_2 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + { step = 3; continue; } case 1: case 2: + r0 = s.arg0.fields["frameWorker"]; + s.worker___23394 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P23400); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___23394); + r0 = pxsim.control.runInParallel(s.tmp_0); + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P642.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +control_EventContext_registerFrameCallbacks__P3959.info = {"start":3379,"length":895,"line":102,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function sprites_BaseSprite_z__P642_mk(s) { +function control_EventContext_registerFrameCallbacks__P3959_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P642, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P3959, depth: s.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__P641(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C639_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - return leaveAccessor(s, r0) - default: oops() -} } } -sprites_BaseSprite_z__P641.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__P641.isGetter = true; - -function sprites_BaseSprite_z__P641_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_BaseSprite_z__P641, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + worker___23394: undefined, arg0: undefined, } } @@ -8528,7 +10824,7 @@ function sprites_BaseSprite_z__P641_mk(s) { -function helpers_arrayShift__P51(s) { +function inline__P23400(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8538,29 +10834,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.lambdaArgs = null; - } - r0 = pxsim_Array_.removeAt(s.arg0, 0); + s.delay___23430 = 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__P23406); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); + s.tmp_2 = pauseUntil__P353_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 57; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = (s.caps[0]).fields["runningCallbacks"] = (true); + r0 = (s.caps[0]).fields["framesInSample"] = (0); + r0 = (s.caps[0]).fields["timeInSample"] = (0); + r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim.control.millis(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); + case 3: + r0 = s.caps[0].fields["frameWorker"]; + s.tmp_1 = r0; + r0 = (s.caps[1] == s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_2 = control_EventContext_runCallbacks__P3958_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 58; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.delay___23430 = (r0); + s.tmp_0 = pause__P399_mk(s); + s.tmp_0.arg0 = s.delay___23430; + s.callLocIdx = 59; 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() } } } -helpers_arrayShift__P51.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} +inline__P23400.info = {"start":3540,"length":723,"line":106,"column":34,"endLine":125,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function helpers_arrayShift__P51_mk(s) { +function inline__P23400_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P51, depth: s.depth + 1, + parent: s, fn: inline__P23400, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + delay___23430: undefined, } } -function particles_SprayFactory_setSpeed__P1783(s) { +function inline__P23406(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8570,42 +10910,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C1779_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = s.caps[0].fields["runningCallbacks"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["speed"] = (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_SprayFactory_setSpeed__P1783.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} +inline__P23406.info = {"start":3771,"length":28,"line":110,"column":31,"endLine":110,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function particles_SprayFactory_setSpeed__P1783_mk(s) { +function inline__P23406_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P1783, depth: s.depth + 1, + parent: s, fn: inline__P23406, 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_ConfettiFactory_constructor__P1804(s) { +function control_EventContext_runCallbacks__P3958(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8615,75 +10943,234 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___22268 = undefined; - s.i___22284 = undefined; + s.loopStart___23439 = undefined; + s.f___23452 = undefined; + s.unnamed48___U2 = undefined; + s.unnamed49___U3 = undefined; + s.runtime___23457 = undefined; + s.fps___23477 = undefined; + s.delay___23539 = 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__C1802_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex22271); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex22273); + if (!checkSubtype(r0, control_EventContext__C381_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.loopStart___23439 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["prevTimeMillis"]; s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex22275); - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex22277); - s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex22279); - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___22268 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P1801_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___22268, 0); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1170; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.i___22284 = (1); + r0 = (s.loopStart___23439 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___23439); + s.f___23452 = (undefined); + r0 = s.arg0.fields["frameCallbacks"]; + s.unnamed48___U2 = (r0); + s.unnamed49___U3 = (0); case 1: - s.tmp_1 = r0 = s.i___22284; - r0 = pxsim_Array__length(s.confetti___22268); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.tmp_0 = r0 = s.unnamed49___U3; + r0 = pxsim_Array__length(s.unnamed48___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - s.tmp_3 = particles_ShapeFactory_addShape__P1798_mk(s); - s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___22268, s.i___22284); - s.tmp_3.arg1 = r0; - s.callLocIdx = 1171; s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; - r0 = (s.i___22284 + 1); - s.i___22284 = (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__P1804.info = {"start":7755,"length":706,"line":247,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} - -function particles_ConfettiFactory_constructor__P1804_mk(s) { - checkStack(s.depth); + r0 = pxsim_Array__getAt(s.unnamed48___U2, s.unnamed49___U3); + s.f___23452 = (r0); + s.tmp_2 = if_handler_1_mk(s); + s.tmp_2.arg0 = s.f___23452; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); + s.callLocIdx = 54; 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 = 54; s.pc = 13; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 54; s.pc = 13; return s.tmp_2;; } + else { s.callLocIdx = 54; s.pc = 13; return s.tmp_2; } + } + case 13: + r0 = s.retval; + r0 = (s.unnamed49___U3 + 1); + s.unnamed49___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed48___U2 = (undefined); + r0 = pxsim.control.millis(); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.loopStart___23439); + s.runtime___23457 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timeInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.runtime___23457); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["framesInSample"] = (s.tmp_1); + r0 = s.arg0.fields["timeInSample"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 30); + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 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___23477 = (r0); + r0 = pxsim.Math_.round(s.fps___23477); + 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___383 = (r0); + r0 = (s.fps___23477 < 99); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + if ((globals.control_EventContext_lastStats___383) && (globals.control_EventContext_lastStats___383).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(globals.control_EventContext_lastStats___383); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___383) + ""; } + case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.fps___23477 * 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___383 = (r0); + case 5: + case 6: + s.tmp_2 = control_ramSize__P332_mk(s); + s.callLocIdx = 55; 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___23477 * 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__P122_mk(s); + s.tmp_0.arg0 = 1; + r0 = (20 - s.runtime___23457); + s.tmp_0.arg1 = r0; + s.callLocIdx = 56; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.delay___23539 = (r0); + r0 = s.delay___23539; + return leave(s, r0) + default: oops() +} } } +control_EventContext_runCallbacks__P3958.info = {"start":2080,"length":1246,"line":71,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} + +function control_EventContext_runCallbacks__P3958_mk(s) { + checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P1804, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P3958, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8691,23 +11178,29 @@ function particles_ConfettiFactory_constructor__P1804_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - confetti___22268: undefined, - i___22284: 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___23439: undefined, + f___23452: undefined, + unnamed48___U2: undefined, + unnamed49___U3: undefined, + runtime___23457: undefined, + fps___23477: undefined, + delay___23539: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -const _hex22271 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex22273 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex22275 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex22277 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex22279 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_constructor__P1801(s) { +function pauseUntil__P353(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8720,72 +11213,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, particles_ShapeFactory__C1796_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P1790_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 = 1160; s.pc = 1; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_2 = lambda_1_mk(s); + s.tmp_2.argL = s.arg0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 34; s.pc = 8; return s.tmp_2; + case 8: 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); + case 2: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + s.arg1 = (0); + case 5: + case 6: + s.tmp_0 = control___queuePollEvent__P352_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 35; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P1801.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"]} +pauseUntil__P353.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 particles_ShapeFactory_constructor__P1801_mk(s) { +function pauseUntil__P353_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P1801, depth: s.depth + 1, + parent: s, fn: pauseUntil__P353, depth: s.depth + 1, pc: 0, retval: undefined, 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 particles_AreaFactory_constructor__P1790(s) { +function control___queuePollEvent__P352(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8795,80 +11290,239 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ev___23561 = 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__C1786_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P1785_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 = 1148; s.pc = 5; return s.tmp_0; + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C3932_VT); + s.tmp_0 = r0; + s.tmp_1 = control_PollEvent_constructor__P3933_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 = 32; s.pc = 5; return s.tmp_1; 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); + s.ev___23561 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___3935); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg3; + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, s.ev___23561); + globals._pollEventQueue___3935 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P3936); { step = 2; continue; } case 1: - r0 = 150; + r0 = pxsim_Array__push(globals._pollEventQueue___3935, s.ev___23561); case 2: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.arg4); + r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 3; continue; } - r0 = s.arg4; + s.tmp_0 = control_onEvent__P377_mk(s); + r0 = s.ev___23561.fields["eid"]; + s.tmp_0.arg0 = r0; + r0 = s.ev___23561.fields["vid"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 16; + s.callLocIdx = 33; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; { step = 4; continue; } case 3: - r0 = 850; - case 4: - // jmp value (already in r0) + r0 = s.ev___23561.fields["eid"]; s.tmp_0 = r0; - r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C1565_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P1572_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1149; s.pc = 6; return s.tmp_1; - case 6: + r0 = s.ev___23561.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; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_constructor__P1790.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"]} +control___queuePollEvent__P352.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 particles_AreaFactory_constructor__P1790_mk(s) { +function control___queuePollEvent__P352_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P1790, depth: s.depth + 1, + parent: s, fn: control___queuePollEvent__P352, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + ev___23561: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function particles_ShapeFactory_addShape__P1798(s) { +function control_pollEvents__P3936(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.now___23687 = undefined; + s.i___23690 = undefined; + s.ev___23696 = undefined; + case 1: + r0 = pxsim_Array__length(globals._pollEventQueue___3935); + 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___23687 = (r0); + s.i___23690 = (0); + case 2: + s.tmp_1 = r0 = s.i___23690; + r0 = pxsim_Array__length(globals._pollEventQueue___3935); + 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___3935, s.i___23690); + s.ev___23696 = (r0); + s.tmp_1 = if_condition_1_mk(s); + s.tmp_1.arg0 = s.ev___23696; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); + s.callLocIdx = 29; 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 = 29; s.pc = 13; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 29; s.pc = 13; return s.tmp_1;; } + else { s.callLocIdx = 29; s.pc = 13; return s.tmp_1; } + } + 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___23696.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___23696.fields["start"]; + s.tmp_5 = r0; + r0 = (s.now___23687 - s.tmp_5); + s.tmp_4 = r0; + r0 = s.ev___23696.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___23696.fields["eid"]; + s.tmp_9 = r0; + r0 = s.ev___23696.fields["vid"]; + s.tmp_10 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); + r0 = s.ev___23696.fields["once"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_arraySplice__P95_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___3935; + s.tmp_1.arg1 = s.i___23690; + s.tmp_1.arg2 = 1; + s.callLocIdx = 30; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + r0 = (s.i___23690 - 1); + s.i___23690 = (r0); + case 7: + case 8: + case 9: + case 10: + r0 = (s.i___23690 + 1); + s.i___23690 = (r0); + { step = 2; continue; } + case 11: + s.tmp_0 = pause__P399_mk(s); + s.tmp_0.arg0 = 50; + s.callLocIdx = 31; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + { step = 1; continue; } + case 12: + globals._pollEventQueue___3935 = (undefined); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_pollEvents__P3936.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} + +function control_pollEvents__P3936_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_pollEvents__P3936, depth: s.depth + 1, + pc: 0, retval: undefined, 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___23687: undefined, + i___23690: undefined, + ev___23696: undefined, +} } + + + + + +function helpers_arraySplice__P95(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8878,41 +11532,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___23744 = 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_ShapeFactory__C1796_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["sources"]; + r0 = (s.arg1 < 0); 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; } + { step = 5; continue; } case 1: case 2: + s.i___23744 = (0); + case 3: + r0 = (s.i___23744 < 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___23744 + 1); + s.i___23744 = (r0); + { step = 3; continue; } + case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P1798.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} +helpers_arraySplice__P95.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 particles_ShapeFactory_addShape__P1798_mk(s) { +function helpers_arraySplice__P95_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P1798, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P95, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + i___23744: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function effects_ScreenEffect_constructor__P1856(s) { +function control_PollEvent_constructor__P3933(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8928,43 +11596,43 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C1852_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P1845_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 = 1177; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); + if (!checkSubtype(r0, control_PollEvent__C3932_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() } } } -effects_ScreenEffect_constructor__P1856.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"]} +control_PollEvent_constructor__P3933.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 effects_ScreenEffect_constructor__P1856_mk(s) { +function control_PollEvent_constructor__P3933_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P1856, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P3933, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function effects_ParticleEffect_constructor__P1845(s) { +function control_onEvent__P377(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8974,6 +11642,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ctx___23603 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8981,22 +11650,44 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C1842_VT)) failedCast(r0); - r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); - r0 = (s.arg0).fields["defaultRate"] = (s.arg1); - r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); + s.tmp_0 = control_eventContext__P394_mk(s); + s.callLocIdx = 51; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ctx___23603 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___23603); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); + { step = 2; continue; } + case 1: + s.tmp_0 = control_EventContext_registerHandler__P391_mk(s); + s.tmp_0.arg0 = s.ctx___23603; + 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 = 52; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_constructor__P1845.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"]} +control_onEvent__P377.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 effects_ParticleEffect_constructor__P1845_mk(s) { +function control_onEvent__P377_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P1845, depth: s.depth + 1, + parent: s, fn: control_onEvent__P377, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + ctx___23603: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -9007,7 +11698,7 @@ function effects_ParticleEffect_constructor__P1845_mk(s) { -function scene_Scene_constructor__P1203(s) { +function control_eventContext__P394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9017,114 +11708,158 @@ 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__C1195_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__C908_VT); - s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P929_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 = 814; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___3961); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = globals.eventContexts___3961; + r0 = pxsim_Array__length(globals.eventContexts___3961); + 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 = s.retval; - r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C1127_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P1140_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 815; s.pc = 2; return s.tmp_1; + r0 = undefined; case 2: - r0 = s.retval; - r0 = (s.arg0).fields["camera"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C1044_VT); + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + return leave(s, r0) + default: oops() +} } } +control_eventContext__P394.info = {"start":6805,"length":136,"line":206,"column":4,"endLine":208,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} + +function control_eventContext__P394_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_eventContext__P394, depth: s.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 control_EventContext_registerHandler__P391(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.h___23626 = undefined; + s.unnamed54___U1 = undefined; + s.unnamed55___U2 = undefined; + s.hn___23649 = 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__C381_VT)) failedCast(r0); + s.h___23626 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed54___U1 = (r0); + s.unnamed55___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed55___U2; + r0 = pxsim_Array__length(s.unnamed54___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed54___U1, s.unnamed55___U2); + s.h___23626 = (r0); + r0 = s.h___23626.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___23626.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___23626).fields["flags"] = (s.arg4); + r0 = (s.h___23626).fields["handler"] = (s.arg3); + { step = 7; continue; } + case 4: + case 5: + r0 = (s.unnamed55___U2 + 1); + s.unnamed55___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed54___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C3953_VT); s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P1050_mk(s); + s.tmp_1 = control_EventHandler_constructor__P3956_mk(s); s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["camera"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 816; s.pc = 3; return s.tmp_1; - case 3: + 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 = 64; s.pc = 8; return s.tmp_1; + case 8: 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); + s.hn___23649 = (s.tmp_0); + r0 = s.arg0.fields["handlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.hn___23649); + s.tmp_0 = control_EventHandler_register__P3954_mk(s); + s.tmp_0.arg0 = s.hn___23649; + s.callLocIdx = 65; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P1203.info = {"start":3315,"length":793,"line":101,"column":8,"endLine":119,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} +control_EventContext_registerHandler__P391.info = {"start":5471,"length":525,"line":166,"column":8,"endLine":179,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} -function scene_Scene_constructor__P1203_mk(s) { +function control_EventContext_registerHandler__P391_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P1203, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P391, depth: s.depth + 1, pc: 0, retval: undefined, 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___23626: undefined, + unnamed54___U1: undefined, + unnamed55___U2: undefined, + hn___23649: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function scene_Camera_constructor__P1140(s) { +function control_EventHandler_constructor__P3956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9136,33 +11871,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C1127_VT)) failedCast(r0); - r0 = (s.arg0).fields["_offsetX"] = (0); - r0 = (s.arg0).fields["_offsetY"] = (0); - r0 = (s.arg0).fields["drawOffsetX"] = (0); - r0 = (s.arg0).fields["drawOffsetY"] = (0); + if (!checkSubtype(r0, control_EventHandler__C3953_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() } } } -scene_Camera_constructor__P1140.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} +control_EventHandler_constructor__P3956.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 scene_Camera_constructor__P1140_mk(s) { +function control_EventHandler_constructor__P3956_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P1140, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P3956, 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 scene_Background_constructor__P1050(s) { +function control_EventHandler_register__P3954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9174,39 +11917,43 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C1044_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(); + if (!checkSubtype(r0, control_EventHandler__C3953_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P23670); + 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.tmp_0).fields["_layers"] = (s.tmp_1); + 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() } } } -scene_Background_constructor__P1050.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_EventHandler_register__P3954.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function scene_Background_constructor__P1050_mk(s) { +function control_EventHandler_register__P3954_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P1050, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P3954, depth: s.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 ArcadePhysicsEngine_constructor__P929(s) { +function inline__P23670(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9216,70 +11963,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C827_VT); + r0 = s.caps[0].fields["handler"]; s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P838_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 503; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = (s.arg0).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P911_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 504; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P915_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 505; s.pc = 3; return s.tmp_0; + 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 = 53; 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 = 53; s.pc = 3; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 53; s.pc = 3; return s.tmp_1;; } + else { s.callLocIdx = 53; s.pc = 3; return s.tmp_1; } + } case 3: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P913_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 506; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P929.info = {"start":1330,"length":277,"line":55,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} +inline__P23670.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_constructor__P929_mk(s) { +function inline__P23670_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P929, depth: s.depth + 1, + parent: s, fn: inline__P23670, 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__P915(s) { +function game_onUpdate__P2535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9291,40 +12013,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.tmp_0 = game_init__P4282_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 887; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); + 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__P389_mk(s); + s.tmp_3 = game_eventContext__P2527_mk(s); + s.callLocIdx = 888; 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 = 889; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P915.info = {"start":2058,"length":67,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +game_onUpdate__P2535.info = {"start":7429,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} -function ArcadePhysicsEngine_maxStep__P915_mk(s) { +function game_onUpdate__P2535_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P915, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P2535, depth: s.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 ArcadePhysicsEngine_maxStep__P914(s) { +function particles_SprayFactory_constructor__P2711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9336,36 +12075,54 @@ 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__C908_VT)) failedCast(r0); - r0 = s.arg0.fields["maxSingleStep"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = particles_initTrig__P4650_mk(s); + s.callLocIdx = 1138; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = particles_SprayFactory_setSpeed__P2714_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1139; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = particles_SprayFactory_setDirection__P2715_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.callLocIdx = 1140; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P914.info = {"start":1978,"length":74,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} -ArcadePhysicsEngine_maxStep__P914.isGetter = true; +particles_SprayFactory_constructor__P2711.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 ArcadePhysicsEngine_maxStep__P914_mk(s) { +function particles_SprayFactory_constructor__P2711_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P914, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_constructor__P2711, 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 Fx_toInt__P127(s) { +function particles_initTrig__P4650(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9375,32 +12132,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 + 128); + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___4636); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = particles_cacheSin__P2704_mk(s); + s.tmp_2.arg0 = 100; + s.callLocIdx = 1126; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + globals.cachedSin___4636 = (r0); + s.tmp_0 = particles_cacheCos__P2705_mk(s); + s.tmp_0.arg0 = 100; + s.callLocIdx = 1127; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + globals.cachedCos___4637 = (r0); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_toInt__P127.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} +particles_initTrig__P4650.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} -function Fx_toInt__P127_mk(s) { +function particles_initTrig__P4650_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P127, depth: s.depth + 1, + parent: s, fn: particles_initTrig__P4650, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function ArcadePhysicsEngine_minStep__P913(s) { +function particles_cacheCos__P2705(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9410,42 +12182,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.cos___23092 = undefined; + s.anglePerSlice___23094 = undefined; + s.i___23100 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = pxsim_Array__mk(); + s.cos___23092 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___23094 = (r0); + s.i___23100 = (0); + case 1: + r0 = (s.i___23100 < s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.cos___23092; + r0 = (s.i___23100 * s.anglePerSlice___23094); + 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 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___23100 + 1); + s.i___23100 = (r0); + { step = 1; continue; } + case 2: + r0 = s.cos___23092; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P913.info = {"start":1905,"length":67,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +particles_cacheCos__P2705.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} -function ArcadePhysicsEngine_minStep__P913_mk(s) { +function particles_cacheCos__P2705_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P913, depth: s.depth + 1, + parent: s, fn: particles_cacheCos__P2705, depth: s.depth + 1, pc: 0, retval: undefined, 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___23092: undefined, + anglePerSlice___23094: undefined, + i___23100: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_minStep__P912(s) { +function particles_cacheSin__P2704(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9455,30 +12250,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.sin___23118 = undefined; + s.anglePerSlice___23120 = undefined; + s.i___23126 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - r0 = s.arg0.fields["minSingleStep"]; + r0 = pxsim_Array__mk(); + s.sin___23118 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___23120 = (r0); + s.i___23126 = (0); + case 1: + r0 = (s.i___23126 < s.arg0); 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_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.sin___23118; + r0 = (s.i___23126 * s.anglePerSlice___23120); + 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___23126 + 1); + s.i___23126 = (r0); + { step = 1; continue; } + case 2: + r0 = s.sin___23118; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P912.info = {"start":1825,"length":74,"line":73,"column":4,"endLine":75,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} -ArcadePhysicsEngine_minStep__P912.isGetter = true; +particles_cacheSin__P2704.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} -function ArcadePhysicsEngine_minStep__P912_mk(s) { +function particles_cacheSin__P2704_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P912, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P2704, depth: s.depth + 1, pc: 0, retval: undefined, 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___23118: undefined, + anglePerSlice___23120: undefined, + i___23126: undefined, arg0: undefined, } } @@ -9486,7 +12308,7 @@ function ArcadePhysicsEngine_minStep__P912_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P911(s) { +function particles_SprayFactory_setDirection__P2715(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9499,45 +12321,67 @@ 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, ArcadePhysicsEngine__C908_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + s.tmp_4 = particles_toRadians__P4655_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 = 1148; s.pc = 1; return s.tmp_4; + case 1: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___4649); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); + r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["maxVelocity"]; + s.tmp_4 = particles_toRadians__P4655_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 1149; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___4649); s.tmp_2 = r0; - r0 = (0 - s.tmp_2); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); + r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P911.info = {"start":1692,"length":127,"line":68,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +particles_SprayFactory_setDirection__P2715.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 ArcadePhysicsEngine_maxSpeed__P911_mk(s) { +function particles_SprayFactory_setDirection__P2715_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P911, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P2715, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Fx_neg__P112(s) { +function particles_toRadians__P4655(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9551,17 +12395,40 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (0 - s.arg0); + 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__P120_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1130; 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_neg__P112.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} +particles_toRadians__P4655.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_neg__P112_mk(s) { +function particles_toRadians__P4655_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_neg__P112, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P4655, depth: s.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, } } @@ -9569,7 +12436,7 @@ function Fx_neg__P112_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P910(s) { +function particles_ParticleFactory_constructor__P2707(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9584,25 +12451,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - r0 = s.arg0.fields["maxVelocity"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, particles_ParticleFactory__C2706_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P910.info = {"start":1613,"length":73,"line":64,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} -ArcadePhysicsEngine_maxSpeed__P910.isGetter = true; +particles_ParticleFactory_constructor__P2707.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} -function ArcadePhysicsEngine_maxSpeed__P910_mk(s) { +function particles_ParticleFactory_constructor__P2707_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P910, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P2707, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -9610,7 +12470,7 @@ function ArcadePhysicsEngine_maxSpeed__P910_mk(s) { -function PhysicsEngine_constructor__P888(s) { +function particles_ParticleSource_setFactory__P2689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9622,29 +12482,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C880_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C2670_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() } } } -PhysicsEngine_constructor__P888.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} +particles_ParticleSource_setFactory__P2689.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 PhysicsEngine_constructor__P888_mk(s) { +function particles_ParticleSource_setFactory__P2689_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_constructor__P888, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P2689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function sprites_SpriteMap_constructor__P838(s) { +function particles_ParticleSource_setRate__P2687(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9656,35 +12523,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C827_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = (1000 / s.arg1); + s.tmp_2 = r0; + r0 = pxsim.Math_.ceil(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); + r0 = (s.tmp_0).fields["period"] = (s.tmp_1); + r0 = (s.arg0).fields["timer"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_constructor__P838.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +particles_ParticleSource_setRate__P2687.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 sprites_SpriteMap_constructor__P838_mk(s) { +function particles_ParticleSource_setRate__P2687_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P838, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P2687, 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 scene_Scene_init__P1196(s) { +function particles_ParticleSource_setAnchor__P2686(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9696,117 +12569,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C1195_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_1 = power_poke__P497_mk(s); - s.callLocIdx = 817; 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__P22408); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P293_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 = 820; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P293_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P716; - s.callLocIdx = 821; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P22431); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P293_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 = 825; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P22459); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P293_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 = 827; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P22467); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P293_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 = 831; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P293_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P545; - s.callLocIdx = 832; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P22496); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___1202; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 834; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - case 3: + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); + r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_init__P1196.info = {"start":4118,"length":2277,"line":121,"column":8,"endLine":174,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +particles_ParticleSource_setAnchor__P2686.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 scene_Scene_init__P1196_mk(s) { +function particles_ParticleSource_setAnchor__P2686_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P1196, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P2686, 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 inline__P22408(s) { +function particles_ParticleSource_clear__P2685(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9816,47 +12604,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = s.caps[0]; - r0 = s.tmp_0.fields["_millis"]; - s.tmp_2 = r0; - r0 = s.caps[0].fields["eventContext"]; - r0 = r0.fields["deltaTimeMillis"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P742_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 = 819; 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, particles_ParticleSource__C2670_VT)) failedCast(r0); + r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22408.info = {"start":4408,"length":217,"line":128,"column":72,"endLine":132,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +particles_ParticleSource_clear__P2685.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__P22408_mk(s) { +function particles_ParticleSource_clear__P2685_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22408, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P2685, depth: s.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 inline__P22431(s) { +function particles_ParticleSource_destroy__P2684(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9866,89 +12639,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dt___22434 = undefined; - s.s___22446 = undefined; - s.unnamed74___U2 = undefined; - s.unnamed75___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___22434 = (r0); - s.tmp_0 = PhysicsEngine__C880_v4_2_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.dt___22434; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C880_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = scene_Camera_update__P1139_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 823; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.s___22446 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed74___U2 = (r0); - s.unnamed75___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed75___U3; - r0 = pxsim_Array__length(s.unnamed74___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed74___U2, s.unnamed75___U3); - s.s___22446 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___22446; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___22434; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 824; s.pc = 5; 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 = 824; s.pc = 5; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 824; s.pc = 5; return s.tmp_2;; } - else { s.callLocIdx = 824; s.pc = 5; return s.tmp_2; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 5: + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P2683_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1087; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = (s.unnamed75___U3 + 1); - s.unnamed75___U3 = (r0); - { step = 1; continue; } + 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__P2678_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1088; s.pc = 2; return s.tmp_0; case 2: - s.unnamed74___U2 = (undefined); + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22431.info = {"start":4920,"length":328,"line":137,"column":69,"endLine":146,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +particles_ParticleSource_destroy__P2684.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function inline__P22431_mk(s) { +function particles_ParticleSource_destroy__P2684_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22431, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P2684, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dt___22434: undefined, - s___22446: undefined, - unnamed74___U2: undefined, - unnamed75___U3: undefined, + arg0: undefined, } } -function inline__P22459(s) { +function particles_ParticleSource_enabled__P2683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9958,30 +12693,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_Scene_render__P1201_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 826; s.pc = 1; return s.tmp_0; - case 1: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = particles_ParticleSource_enabled__P2682_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1086; 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; } + case 1: + r0 = s.arg0.fields["pFlags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 ^ 1); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); + r0 = (s.arg0).fields["timer"] = (0); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22459.info = {"start":5423,"length":109,"line":152,"column":76,"endLine":155,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +particles_ParticleSource_enabled__P2683.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 inline__P22459_mk(s) { +function particles_ParticleSource_enabled__P2683_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22459, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P2683, depth: s.depth + 1, pc: 0, retval: undefined, 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 inline__P22467(s) { +function particles_ParticleSource_enabled__P2682(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9991,108 +12764,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = globals.stats___1271; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = globals.control_EventContext_onStats___300; - case 2: - // jmp value (already in r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - s.tmp_2 = lambda_2_mk(s); - s.tmp_2.argL = globals.control_EventContext_onStats___300; - if ((globals.control_EventContext_lastStats___299) && (globals.control_EventContext_lastStats___299).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___299); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___299) + ""; } - case 8: - r0 = s.retval; - s.tmp_3 = r0; - r0 = s.caps[0].fields["allSprites"]; - s.tmp_8 = r0; - r0 = pxsim_Array__length(s.tmp_8); - s.tmp_7 = r0; - if ((s.tmp_7) && (s.tmp_7).vtable) { - setupResume(s, 9); - pxsim_String__stringConv(s.tmp_7); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_7) + ""; } - case 9: - r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String__concat(" sprites:", s.tmp_6); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 10: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2.arg0 = r0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 828; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___1269); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C880_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C880_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__P1690_mk(s); - s.callLocIdx = 829; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P498_mk(s); - s.callLocIdx = 830; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -inline__P22467.info = {"start":5649,"length":504,"line":157,"column":80,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +particles_ParticleSource_enabled__P2682.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__P2682.isGetter = true; -function inline__P22467_mk(s) { +function particles_ParticleSource_enabled__P2682_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22467, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P2682, depth: s.depth + 1, pc: 0, retval: undefined, 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__P22496(s) { +function particles_ParticleSource_setAcceleration__P2679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10104,35 +12816,48 @@ 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 = 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 = 833; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C2670_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); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22496.info = {"start":6371,"length":12,"line":173,"column":39,"endLine":173,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} +particles_ParticleSource_setAcceleration__P2679.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__P22496_mk(s) { +function particles_ParticleSource_setAcceleration__P2679_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22496, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P2679, 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 game_consoleOverlay_draw__P1690(s) { +function sprites_BaseSprite_constructor__P1857(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10142,216 +12867,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___22546 = undefined; - s.top___22551 = undefined; - s.i___22557 = undefined; - s.t___22570 = undefined; - s.tOff___22577 = undefined; - s.tab___22579 = undefined; - s.unnamed78___U6 = undefined; - s.unnamed79___U7 = undefined; - s.padding___22581 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___1650); - 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___1573); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 3; continue; } - { step = 13; continue; } - case 3: - case 4: - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___1658; - 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 = 1053; s.pc = 14; return s.tmp_7; } - } - case 14: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.height___22546 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___1271); - if (!r0) { step = 5; continue; } - r0 = s.height___22546; - { step = 6; continue; } - case 5: - r0 = 0; - case 6: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (2 + s.tmp_0); - s.top___22551 = (r0); - s.i___22557 = (0); - case 7: - s.tmp_1 = r0 = s.i___22557; - r0 = pxsim_Array__length(globals.consoleStrings___1650); - 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___1650, s.i___22557); - 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__P70_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___1650, s.i___22557); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "\t"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1054; s.pc = 15; return s.tmp_6; - case 15: - r0 = s.retval; - s.t___22570 = (r0); - s.tOff___22577 = (0); - s.tab___22579 = (undefined); - s.unnamed78___U6 = (s.t___22570); - s.unnamed79___U7 = (0); - case 8: - s.tmp_0 = r0 = s.unnamed79___U7; - r0 = pxsim_Array__length(s.unnamed78___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed78___U6, s.unnamed79___U7); - s.tab___22579 = (r0); - s.tmp_2 = r0 = globals.tabSize___1652; - s.tmp_5 = r0 = s.tOff___22577; - r0 = pxsim_String_.length(s.tab___22579); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___1652); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.padding___22581 = (r0); - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = s.tab___22579; - s.tmp_2 = r0 = s.tOff___22577; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___1658; - 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 = 1055; s.pc = 17; return s.tmp_4; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; } - case 17: + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P1860_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 138; s.pc = 1; return s.tmp_0; + case 1: 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___22551; - r0 = (s.i___22557 * s.height___22546); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___1649; - s.tmp_0.arg5 = globals.consoleFont___1658; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1056; s.pc = 16; return s.tmp_0; - case 16: + s.tmp_0 = scene_Scene_addSprite__P2436_mk(s); + s.tmp_1 = game_currentScene__P2524_mk(s); + s.callLocIdx = 139; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_0 = r0 = s.tOff___22577; - r0 = pxsim_String_.length(s.tab___22579); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___22581); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.tOff___22577 = (r0); - r0 = (s.unnamed79___U7 + 1); - s.unnamed79___U7 = (r0); - { step = 8; continue; } - case 9: - s.unnamed78___U6 = (undefined); - { step = 11; continue; } - case 10: - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = pxsim_Array__getAt(globals.consoleStrings___1650, s.i___22557); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___22551; - r0 = (s.i___22557 * s.height___22546); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___1649; - s.tmp_0.arg5 = globals.consoleFont___1658; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1057; s.pc = 18; return s.tmp_0; - case 18: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 140; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - case 11: - r0 = (s.i___22557 + 1); - s.i___22557 = (r0); - { step = 7; continue; } - case 12: - case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_draw__P1690.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} +sprites_BaseSprite_constructor__P1857.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 game_consoleOverlay_draw__P1690_mk(s) { +function sprites_BaseSprite_constructor__P1857_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_draw__P1690, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P1857, depth: s.depth + 1, pc: 0, retval: undefined, 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___22546: undefined, - top___22551: undefined, - i___22557: undefined, - t___22570: undefined, - tOff___22577: undefined, - tab___22579: undefined, - unnamed78___U6: undefined, - unnamed79___U7: undefined, - padding___22581: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_isVisible__P1608(s) { +function scene_Scene_addSprite__P2436(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10361,33 +12921,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___1573); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["spriteNextId"]; s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.tmp_2 + 1); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + 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 = 837; s.pc = 1; return s.tmp_3; } + } + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_isVisible__P1608.info = {"start":12708,"length":62,"line":385,"column":4,"endLine":387,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} +scene_Scene_addSprite__P2436.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_systemMenu_isVisible__P1608_mk(s) { +function scene_Scene_addSprite__P2436_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_isVisible__P1608, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P2436, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, + arg1: undefined, } } -function helpers_stringSplit__P70(s) { +function sprites_BaseSprite_z__P1860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10397,186 +12983,56 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___20873 = undefined; - s.lim___20875 = undefined; - s.s___20891 = undefined; - s.p___20894 = undefined; - s.R___20895 = undefined; - s.z___20909 = undefined; - s.T___20922 = undefined; - s.q___20923 = undefined; - s.e___20929 = 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___20873 = (r0); - s.lim___20875 = (0); - r0 = (s.arg2 === undefined); + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (536870912 - 1); - s.lim___20875 = (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___20875 = (0); - { step = 3; continue; } - case 2: - r0 = (s.arg2 | 0); - s.lim___20875 = (r0); + r0 = (s.arg0).fields["_z"] = (s.arg1); + s.tmp_1 = game_currentScene__P2524_mk(s); + s.callLocIdx = 141; s.pc = 3; return s.tmp_1; case 3: - case 4: - r0 = pxsim_String_.length(s.arg0); - s.s___20891 = (r0); - s.p___20894 = (0); - s.R___20895 = (s.arg1); - r0 = (s.lim___20875 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.A___20873; - { 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___20873, 0, s.arg0); - r0 = s.A___20873; - { step = 21; continue; } - case 7: - case 8: - r0 = (s.s___20891 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P71_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___20895; - s.callLocIdx = 12; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - s.z___20909 = (r0); - r0 = (s.z___20909 > -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.A___20873; - { step = 21; continue; } - case 9: - case 10: - r0 = pxsim_Array_.setAt(s.A___20873, 0, s.arg0); - r0 = s.A___20873; - { step = 21; continue; } - case 11: - case 12: - s.q___20923 = (s.p___20894); - case 13: - r0 = (s.q___20923 != s.s___20891); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P71_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___20923; - s.tmp_1.arg2 = s.R___20895; - s.callLocIdx = 13; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - s.e___20929 = (r0); - r0 = (s.e___20929 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.q___20923 + 1); - s.q___20923 = (r0); - { step = 19; continue; } - case 14: - r0 = (s.e___20929 == s.p___20894); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.q___20923 + 1); - s.q___20923 = (r0); - { step = 18; continue; } - case 15: - s.tmp_0 = helpers_stringSlice__P68_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___20894; - s.tmp_0.arg2 = s.q___20923; - s.callLocIdx = 14; s.pc = 24; return s.tmp_0; - case 24: r0 = s.retval; - s.T___20922 = (r0); - r0 = pxsim_Array__push(s.A___20873, s.T___20922); - r0 = pxsim_Array__length(s.A___20873); - s.tmp_1 = r0; - r0 = (s.tmp_1 == s.lim___20875); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = s.A___20873; - { step = 21; continue; } - case 16: - case 17: - s.p___20894 = (s.e___20929); - s.q___20923 = (s.p___20894); - case 18: - case 19: - { step = 13; continue; } - case 20: - s.tmp_0 = helpers_stringSlice__P68_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___20894; - s.tmp_0.arg2 = s.q___20923; - s.callLocIdx = 15; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.T___20922 = (r0); - r0 = pxsim_Array__push(s.A___20873, s.T___20922); - r0 = s.A___20873; - case 21: + 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() } } } -helpers_stringSplit__P70.info = {"start":11930,"length":1319,"line":407,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} +sprites_BaseSprite_z__P1860.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 helpers_stringSplit__P70_mk(s) { +function sprites_BaseSprite_z__P1860_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P70, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P1860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___20873: undefined, - lim___20875: undefined, - s___20891: undefined, - p___20894: undefined, - R___20895: undefined, - z___20909: undefined, - T___20922: undefined, - q___20923: undefined, - e___20929: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function helpers_splitMatch__P71(s) { +function sprites_BaseSprite_z__P1859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10586,85 +13042,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___20974 = undefined; - s.s___20977 = undefined; - s.i___20987 = 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___20974 = (r0); - r0 = pxsim_String_.length(s.arg0); - s.s___20977 = (r0); - r0 = (s.arg1 + s.r___20974); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___20977); - 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___20987 = (0); - case 3: - r0 = (s.i___20987 < s.r___20974); - 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___20987); - 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___20987); - 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___20987 + 1); - s.i___20987 = (r0); - { step = 3; continue; } - case 6: - r0 = (s.arg1 + s.r___20974); - case 7: - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; + return leaveAccessor(s, r0) default: oops() } } } -helpers_splitMatch__P71.info = {"start":13255,"length":289,"line":453,"column":4,"endLine":462,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} +sprites_BaseSprite_z__P1859.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__P1859.isGetter = true; -function helpers_splitMatch__P71_mk(s) { +function sprites_BaseSprite_z__P1859_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P71, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P1859, depth: s.depth + 1, pc: 0, retval: undefined, 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___20974: undefined, - s___20977: undefined, - i___20987: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_stringSlice__P68(s) { +function helpers_arrayShift__P97(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10674,73 +13077,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___20629 = 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___20629 = (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__P78_mk(s); - r0 = (s.len___20629 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 11; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - s.arg1 = (r0); - case 1: - case 2: - r0 = (s.arg2 == null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg2 = (s.len___20629); - case 3: - case 4: - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = (s.len___20629 + s.arg2); - s.arg2 = (r0); - case 5: - case 6: - 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 = pxsim_Array_.removeAt(s.arg0, 0); return leave(s, r0) default: oops() } } } -helpers_stringSlice__P68.info = {"start":11047,"length":365,"line":373,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} +helpers_arrayShift__P97.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} -function helpers_stringSlice__P68_mk(s) { +function helpers_arrayShift__P97_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P68, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P97, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - len___20629: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_Scene_render__P1201(s) { +function particles_SprayFactory_setSpeed__P2714(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10750,147 +13109,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___22699 = undefined; - s.unnamed76___U1 = undefined; - s.unnamed77___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C1195_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 11; continue; } - case 1: - case 2: - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 4); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["previousScene"]; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 5; continue; } - s.tmp_3 = scene_Scene_render__P1201_mk(s); - r0 = s.arg0.fields["previousScene"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 836; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = scene_Background_draw__P1049_mk(s); - r0 = s.arg0.fields["background"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 837; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - case 6: - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P56_mk(s); - r0 = s.arg0.fields["allSprites"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P22675; - s.callLocIdx = 842; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & -2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 7: - case 8: - s.s___22699 = (undefined); - r0 = s.arg0.fields["allSprites"]; - s.unnamed76___U1 = (r0); - s.unnamed77___U2 = (0); - case 9: - s.tmp_0 = r0 = s.unnamed77___U2; - r0 = pxsim_Array__length(s.unnamed76___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed76___U1, s.unnamed77___U2); - s.s___22699 = (r0); - s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___22699; - 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 = 843; 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 = 843; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 843; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 843; s.pc = 15; return s.tmp_2; } - } - case 15: - r0 = s.retval; - r0 = (s.unnamed77___U2 + 1); - s.unnamed77___U2 = (r0); - { step = 9; continue; } - case 10: - s.unnamed76___U1 = (undefined); + if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = (s.tmp_2 & -5); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 11: + r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_render__P1201.info = {"start":7594,"length":917,"line":215,"column":8,"endLine":239,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} +particles_SprayFactory_setSpeed__P2714.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 scene_Scene_render__P1201_mk(s) { +function particles_SprayFactory_setSpeed__P2714_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P1201, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P2714, depth: s.depth + 1, pc: 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___22699: undefined, - unnamed76___U1: undefined, - unnamed77___U2: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P22675(s) { +function particles_ConfettiFactory_constructor__P2738(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10900,84 +13154,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.confetti___24009 = undefined; + s.i___24025 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); 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 = 838; s.pc = 3; return s.tmp_2; } - } - case 3: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ConfettiFactory__C2737_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim.image.ofBuffer(_hex24012); 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 = 839; s.pc = 4; return s.tmp_4; } - } - case 4: - r0 = s.retval; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim.image.ofBuffer(_hex24014); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); + r0 = pxsim.image.ofBuffer(_hex24016); s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_6 = if_id_1_mk(s); - s.tmp_6.arg0 = s.arg0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 840; s.pc = 5; return s.tmp_6; } - } - case 5: - r0 = s.retval; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); + r0 = pxsim.image.ofBuffer(_hex24018); + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); + r0 = pxsim.image.ofBuffer(_hex24020); 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 = 841; s.pc = 6; return s.tmp_8; } - } - case 6: + r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); + s.confetti___24009 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P2733_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___24009, 0); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1172; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_5 - s.tmp_7); + s.i___24025 = (1); + case 1: + s.tmp_1 = r0 = s.i___24025; + r0 = pxsim_Array__length(s.confetti___24009); + 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__P2734_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = pxsim_Array__getAt(s.confetti___24009, s.i___24025); + s.tmp_3.arg1 = r0; + s.callLocIdx = 1173; s.pc = 4; return s.tmp_3; + case 4: + r0 = s.retval; + r0 = (s.i___24025 + 1); + s.i___24025 = (r0); + { step = 1; continue; } case 2: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = s.tmp_9; + r0 = (s.arg0).fields["minLifespan"] = (1000); + r0 = (s.arg0).fields["maxLifespan"] = (4500); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P22675.info = {"start":8172,"length":52,"line":229,"column":37,"endLine":229,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +particles_ConfettiFactory_constructor__P2738.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 inline__P22675_mk(s) { +function particles_ConfettiFactory_constructor__P2738_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22675, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P2738, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10985,19 +13230,23 @@ function inline__P22675_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, + confetti___24009: undefined, + i___24025: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } +const _hex24012 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex24014 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex24016 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex24018 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex24020 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function scene_Background_draw__P1049(s) { +function particles_ShapeFactory_addShape__P2734(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11009,60 +13258,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C1044_VT)) failedCast(r0); - r0 = s.arg0.fields["color"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___578, s.tmp_0); - r0 = s.arg0.fields["_image"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!checkSubtype(r0, particles_ShapeFactory__C2732_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_image"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___578, s.tmp_1, 0, 0); + r0 = s.arg0.fields["sources"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); 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__P22734); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P60_mk(s); - r0 = s.arg0.fields["_layers"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 724; 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__P1049.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +particles_ShapeFactory_addShape__P2734.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 scene_Background_draw__P1049_mk(s) { +function particles_ShapeFactory_addShape__P2734_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P1049, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P2734, 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 inline__P22734(s) { +function particles_ShapeFactory_constructor__P2733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11072,66 +13300,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___22736 = undefined; - s.oy___22749 = 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.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetX"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ShapeFactory__C2732_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P2721_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 = 1162; 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 = (1 + s.tmp_3); + r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.ox___22736 = (r0); - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetY"]; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; + 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 = (1 + s.tmp_3); + r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.oy___22749 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P1052_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___22736; - s.tmp_0.arg2 = s.oy___22749; - s.callLocIdx = 723; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + 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() } } } -inline__P22734.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +particles_ShapeFactory_constructor__P2733.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 inline__P22734_mk(s) { +function particles_ShapeFactory_constructor__P2733_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P22734, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P2733, depth: s.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___22736: undefined, - oy___22749: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_BackgroundLayer_draw__P1052(s) { +function particles_AreaFactory_constructor__P2721(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11141,251 +13378,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___22767 = undefined; - s.h___22770 = undefined; - s.pw___22773 = undefined; - s.ph___22778 = undefined; - s.rx___22787 = undefined; - s.ry___22790 = undefined; - s.y___22864 = undefined; - s.py___22865 = undefined; - s.dh___22874 = undefined; - s.x___22882 = undefined; - s.rxl___22883 = undefined; - s.px___22889 = undefined; - s.dw___22893 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C1051_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.w___22767 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.h___22770 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___22773 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___22778 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___22773); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + if (!checkSubtype(r0, particles_AreaFactory__C2716_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P2711_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 = 1150; 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.tmp_0; + r0 = s.arg3; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___22778); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = 150; case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_0 = r0; + r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg4); if (!r0) { step = 3; continue; } - { step = 23; continue; } + r0 = s.arg4; + { step = 4; continue; } case 3: + r0 = 850; case 4: - r0 = (0 - s.arg1); - s.rx___22787 = (r0); - r0 = (0 - s.arg2); - s.ry___22790 = (r0); - r0 = s.arg0.fields["alignX"]; - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 5: - s.tmp_1 = r0 = s.rx___22787; - r0 = (s.w___22767 + s.pw___22773); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.rx___22787 = (r0); - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.rx___22787; - r0 = (s.w___22767 + s.pw___22773); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.rx___22787 = (r0); - case 7: - r0 = s.arg0.fields["alignY"]; - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 8: - s.tmp_1 = r0 = s.ry___22790; - r0 = (s.h___22770 + s.ph___22778); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.ry___22790 = (r0); - { step = 10; continue; } - case 9: - s.tmp_0 = r0 = s.ry___22790; - r0 = (s.h___22770 + s.ph___22778); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.ry___22790 = (r0); - case 10: - r0 = (s.rx___22787 % s.w___22767); - s.rx___22787 = (r0); - r0 = (s.rx___22787 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.rx___22787 + s.w___22767); - s.rx___22787 = (r0); - case 11: - case 12: - r0 = (s.ry___22790 % s.h___22770); - s.ry___22790 = (r0); - r0 = (s.ry___22790 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (s.ry___22790 + s.h___22770); - s.ry___22790 = (r0); - case 13: - case 14: - r0 = pxsim.Math_.floor(s.rx___22787); - s.rx___22787 = (r0); - r0 = pxsim.Math_.floor(s.ry___22790); - s.ry___22790 = (r0); - s.y___22864 = (0); - s.py___22865 = (0); - case 15: - r0 = (s.y___22864 < s.h___22770); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.y___22864 % s.ph___22778); - s.py___22865 = (r0); - s.tmp_0 = Math_min__P79_mk(s); - r0 = (s.ph___22778 - s.py___22865); - s.tmp_0.arg0 = r0; - r0 = (s.h___22770 - s.ry___22790); - s.tmp_0.arg1 = r0; - s.callLocIdx = 726; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.dh___22874 = (r0); - s.x___22882 = (0); - s.rxl___22883 = (s.rx___22787); - case 16: - r0 = (s.x___22882 < s.w___22767); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = (s.x___22882 % s.pw___22773); - s.px___22889 = (r0); - s.tmp_0 = Math_min__P79_mk(s); - r0 = (s.pw___22773 - s.px___22889); - s.tmp_0.arg0 = r0; - r0 = (s.w___22767 - s.rxl___22883); - s.tmp_0.arg1 = r0; - s.callLocIdx = 727; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.dw___22893 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___578, s.tmp_0, s.rxl___22883, s.ry___22790); - r0 = (s.rxl___22883 + s.dw___22893); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___22767); - s.rxl___22883 = (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___22893; - { step = 18; continue; } - case 17: - r0 = s.w___22767; - case 18: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___22882 + s.tmp_1); - s.x___22882 = (r0); - { step = 16; continue; } - case 19: - r0 = (s.ry___22790 + s.dh___22874); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___22770); - s.ry___22790 = (r0); - r0 = s.arg0.fields["repeatY"]; + r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C2578_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = s.dh___22874; - { step = 21; continue; } - case 20: - r0 = s.h___22770; - case 21: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.y___22864 + s.tmp_1); - s.y___22864 = (r0); - { step = 15; continue; } - case 22: - case 23: + s.tmp_1 = Math_FastRandom_constructor__P2580_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1151; 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() } } } -scene_BackgroundLayer_draw__P1052.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"]} +particles_AreaFactory_constructor__P2721.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 scene_BackgroundLayer_draw__P1052_mk(s) { +function particles_AreaFactory_constructor__P2721_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P1052, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P2721, depth: s.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___22767: undefined, - h___22770: undefined, - pw___22773: undefined, - ph___22778: undefined, - rx___22787: undefined, - ry___22790: undefined, - y___22864: undefined, - py___22865: undefined, - dh___22874: undefined, - x___22882: undefined, - rxl___22883: undefined, - px___22889: undefined, - dw___22893: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function Math_min__P79(s) { +function effects_ScreenEffect_constructor__P2786(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11398,38 +13464,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.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; } + if (!checkSubtype(r0, effects_ScreenEffect__C2785_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P2782_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 = 1179; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = s.arg1; - case 3: + r0 = s.retval; + r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_min__P79.info = {"start":15790,"length":105,"line":538,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} +effects_ScreenEffect_constructor__P2786.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 Math_min__P79_mk(s) { +function effects_ScreenEffect_constructor__P2786_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_min__P79, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P2786, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function scene_Camera_update__P1139(s) { +function effects_ParticleEffect_constructor__P2782(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11439,190 +13513,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___22977 = undefined; - s.percentComplete___22991 = undefined; - s.damp___22998 = undefined; - s.f___23007 = undefined; - s.x___23013 = undefined; - s.y___23020 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C1127_VT)) failedCast(r0); - r0 = s.arg0.fields["sprite"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = scene_Camera_offsetX__P1129_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_3 = Sprite_x__P770_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 799; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); - 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 = 800; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P1131_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P772_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 801; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); - 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 = 802; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - case 1: - case 2: - s.tmp_0 = scene_Camera_offsetX__P1129_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 = 804; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P1131_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 = 806; 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___22977 = (r0); - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_1 = r0; - r0 = (s.elapsed___22977 >= 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___22977 / s.tmp_0); - s.percentComplete___22991 = (r0); - s.damp___22998 = (1); - r0 = (s.percentComplete___22991 >= 0.75); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P78_mk(s); - s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___22991); - s.tmp_1.arg1 = r0; - s.callLocIdx = 809; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.damp___22998 = (r0); - case 4: - case 5: - r0 = s.arg0.fields["shakeAmplitude"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___22998); - s.f___23007 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___23007); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.x___23013 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___23007); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.y___23020 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___23013); - 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___23020); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - case 6: - case 7: - case 8: + if (!checkSubtype(r0, effects_ParticleEffect__C2781_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() } } } -scene_Camera_update__P1139.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +effects_ParticleEffect_constructor__P2782.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 scene_Camera_update__P1139_mk(s) { +function effects_ParticleEffect_constructor__P2782_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P1139, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P2782, depth: s.depth + 1, pc: 0, retval: undefined, 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___22977: undefined, - percentComplete___22991: undefined, - damp___22998: undefined, - f___23007: undefined, - x___23013: undefined, - y___23020: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function scene_Camera_offsetY__P1131(s) { +function scene_Scene_init__P2433(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11632,82 +13556,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___23039 = 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__C1127_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 798; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___23039 = (r0); - r0 = s.scene___23039.fields["tileMap"]; + if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; 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 = 3; continue; } case 1: - s.tmp_1 = tiles_TileMap__C1086_v6_1_mk(s); - r0 = s.scene___23039.fields["tileMap"]; + case 2: + s.tmp_1 = power_poke__P1702_mk(s); + s.callLocIdx = 817; 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__P24144); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P389_mk(s); + r0 = s.arg0.fields["eventContext"]; s.tmp_1.arg0 = r0; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled; - s.pc = 6; return s.tmp_1; + s.tmp_1.arg1 = 8; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 820; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P389_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P1919; + s.callLocIdx = 821; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = tiles_TileMap__C1086_v2_2_mk(s); - r0 = s.scene___23039.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg1; - if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_5.arg0); - s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.offsetY; - s.pc = 7; return s.tmp_5; + r0 = pxsim_pxtcore_mkAction(1, inline__P24167); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 823; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_offsetY"] = (s.tmp_4); - { step = 4; continue; } + r0 = pxsim_pxtcore_mkAction(1, inline__P24180); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 827; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P24201); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 829; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P24209); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P389_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 = 833; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P389_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P1760; + s.callLocIdx = 834; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P24238); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___2431; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 836; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; case 3: - r0 = (s.arg0).fields["_offsetY"] = (s.arg1); - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P1131.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} +scene_Scene_init__P2433.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} -function scene_Camera_offsetY__P1131_mk(s) { +function scene_Scene_init__P2433_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P1131, depth: s.depth + 1, + parent: s, fn: scene_Scene_init__P2433, depth: s.depth + 1, pc: 0, retval: undefined, 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___23039: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_enabled__P1096(s) { +function inline__P24144(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11717,44 +13689,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_0 = r0 = s.caps[0]; + r0 = s.tmp_0.fields["_millis"]; s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + 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 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); + s.tmp_0 = controller___update__P1947_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 = 819; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_enabled__P1096.info = {"start":7041,"length":66,"line":259,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} -tiles_TileMap_enabled__P1096.isGetter = true; +inline__P24144.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function tiles_TileMap_enabled__P1096_mk(s) { +function inline__P24144_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P1096, depth: s.depth + 1, + parent: s, fn: inline__P24144, depth: s.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__P1091(s) { +function inline__P24167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11764,61 +13739,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, tiles_TileMap__C1086_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P75_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P78_mk(s); - s.tmp_3 = tiles_TileMap__C1086_v4_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaHeight; - s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; + s.tmp_0 = PhysicsEngine__C2156_v4_2_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + r0 = s.caps[0].fields["eventContext"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["deltaTimeMillis"]; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 745; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; + r0 = (s.tmp_2 / 1000); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 746; s.pc = 1; return s.tmp_0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_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() } } } -tiles_TileMap_offsetY__P1091.info = {"start":6494,"length":123,"line":237,"column":8,"endLine":239,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +inline__P24167.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function tiles_TileMap_offsetY__P1091_mk(s) { +function inline__P24167_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P1091, depth: s.depth + 1, + parent: s, fn: inline__P24167, depth: s.depth + 1, pc: 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__P1093(s) { +function inline__P24180(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11828,88 +13783,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; + s.dt___24181 = undefined; + s.s___24189 = undefined; + s.unnamed74___U2 = undefined; + s.unnamed75___U3 = undefined; + r0 = s.caps[0].fields["eventContext"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_height"]; + r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } + r0 = (s.tmp_1 / 1000); + s.dt___24181 = (r0); + s.tmp_0 = scene_Camera_update__P2368_mk(s); + r0 = s.caps[0].fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 825; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.s___24189 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed74___U2 = (r0); + s.unnamed75___U3 = (0); case 1: - r0 = 0; + s.tmp_0 = r0 = s.unnamed75___U3; + r0 = pxsim_Array__length(s.unnamed74___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed74___U2, s.unnamed75___U3); + s.s___24189 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___24189; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___24181; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 826; 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 = 826; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 826; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 826; s.pc = 4; return s.tmp_2; } + } + case 4: + r0 = s.retval; + r0 = (s.unnamed75___U3 + 1); + s.unnamed75___U3 = (r0); + { step = 1; continue; } case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + s.unnamed74___U2 = (undefined); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P1093.info = {"start":6728,"length":93,"line":245,"column":8,"endLine":247,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +inline__P24180.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function tiles_TileMap_areaHeight__P1093_mk(s) { +function inline__P24180_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P1093, depth: s.depth + 1, + parent: s, fn: inline__P24180, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, -} } - - - - - -function tiles_TileMap_scale__P1087(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__C1086_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMap_scale__P1087.info = {"start":6059,"length":55,"line":218,"column":8,"endLine":220,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMap_scale__P1087.isGetter = true; - -function tiles_TileMap_scale__P1087_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_scale__P1087, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + dt___24181: undefined, + s___24189: undefined, + unnamed74___U2: undefined, + unnamed75___U3: undefined, } } -function tiles_TileMapData_height__P1075(s) { +function inline__P24201(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11919,32 +13866,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, tiles_TileMapData__C1073_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; - return leaveAccessor(s, r0) + s.tmp_0 = scene_Scene_render__P2438_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 828; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_height__P1075.info = {"start":3668,"length":65,"line":137,"column":8,"endLine":139,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} -tiles_TileMapData_height__P1075.isGetter = true; +inline__P24201.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function tiles_TileMapData_height__P1075_mk(s) { +function inline__P24201_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P1075, depth: s.depth + 1, + parent: s, fn: inline__P24201, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, } } -function Math_clamp__P75(s) { +function inline__P24209(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11954,46 +13899,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.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - s.tmp_0 = Math_min__P79_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P78_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg2; - s.callLocIdx = 16; s.pc = 2; return s.tmp_1; + s.tmp_0 = r0 = globals.stats___2521; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = globals.control_EventContext_onStats___384; 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___384; + if ((globals.control_EventContext_lastStats___383) && (globals.control_EventContext_lastStats___383).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___383); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___383) + ""; } + case 8: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 17; s.pc = 1; return s.tmp_0; - case 1: + 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 = 830; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(globals.debug___2520); + if (!r0) { step = 5; continue; } + s.tmp_0 = PhysicsEngine__C2156_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_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__P2646_mk(s); + s.callLocIdx = 831; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = power_checkDeepSleep__P1703_mk(s); + s.callLocIdx = 832; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_clamp__P75.info = {"start":14654,"length":130,"line":501,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} +inline__P24209.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function Math_clamp__P75_mk(s) { +function inline__P24209_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P75, depth: s.depth + 1, + parent: s, fn: inline__P24209, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, } } -function scene_Camera_offsetY__P1130(s) { +function inline__P24238(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12007,20 +14014,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C1127_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - return leaveAccessor(s, r0) + 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 = 835; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P1130.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__P1130.isGetter = true; +inline__P24238.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function scene_Camera_offsetY__P1130_mk(s) { +function inline__P24238_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P1130, depth: s.depth + 1, + parent: s, fn: inline__P24238, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -12028,7 +14040,7 @@ function scene_Camera_offsetY__P1130_mk(s) { -function scene_Camera_offsetX__P1129(s) { +function game_consoleOverlay_draw__P2646(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12038,65 +14050,191 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___23077 = 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__C1127_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 797; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___23077 = (r0); - r0 = s.scene___23077.fields["tileMap"]; + s.height___24287 = undefined; + s.top___24292 = undefined; + s.i___24298 = undefined; + s.t___24311 = undefined; + s.tOff___24318 = undefined; + s.tab___24320 = undefined; + s.unnamed78___U6 = undefined; + s.unnamed79___U7 = undefined; + s.padding___24322 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = tiles_TileMap__C1086_v6_1_mk(s); - r0 = s.scene___23077.fields["tileMap"]; - s.tmp_1.arg0 = r0; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled; - s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.instance___4526); + 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_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = tiles_TileMap__C1086_v1_2_mk(s); - r0 = s.scene___23077.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg1; - if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_5.arg0); - s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.offsetX; - s.pc = 7; return s.tmp_5; - case 7: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_offsetX"] = (s.tmp_4); - { step = 4; continue; } + { step = 13; continue; } case 3: - r0 = (s.arg0).fields["_offsetX"] = (s.arg1); case 4: + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = globals.consoleFont___4577; + 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 = 1055; s.pc = 14; return s.tmp_7; } + } + case 14: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.height___24287 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___2521); + if (!r0) { step = 5; continue; } + r0 = s.height___24287; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (2 + s.tmp_0); + s.top___24292 = (r0); + s.i___24298 = (0); + case 7: + s.tmp_1 = r0 = s.i___24298; + r0 = pxsim_Array__length(globals.consoleStrings___4569); + 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___4569, s.i___24298); + 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__P114_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___4569, s.i___24298); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "\t"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1056; s.pc = 15; return s.tmp_6; + case 15: + r0 = s.retval; + s.t___24311 = (r0); + s.tOff___24318 = (0); + s.tab___24320 = (undefined); + s.unnamed78___U6 = (s.t___24311); + s.unnamed79___U7 = (0); + case 8: + s.tmp_0 = r0 = s.unnamed79___U7; + r0 = pxsim_Array__length(s.unnamed78___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.unnamed78___U6, s.unnamed79___U7); + s.tab___24320 = (r0); + s.tmp_2 = r0 = globals.tabSize___4571; + s.tmp_5 = r0 = s.tOff___24318; + r0 = pxsim_String_.length(s.tab___24320); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 % globals.tabSize___4571); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.padding___24322 = (r0); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = s.tab___24320; + s.tmp_2 = r0 = s.tOff___24318; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = globals.consoleFont___4577; + 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 = 1057; 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___24292; + r0 = (s.i___24298 * s.height___24287); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___4568; + s.tmp_0.arg5 = globals.consoleFont___4577; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1058; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.tOff___24318; + r0 = pxsim_String_.length(s.tab___24320); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___24322); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.tOff___24318 = (r0); + r0 = (s.unnamed79___U7 + 1); + s.unnamed79___U7 = (r0); + { step = 8; continue; } + case 9: + s.unnamed78___U6 = (undefined); + { step = 11; continue; } + case 10: + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = pxsim_Array__getAt(globals.consoleStrings___4569, s.i___24298); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 4; + s.tmp_1 = r0 = s.top___24292; + r0 = (s.i___24298 * s.height___24287); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___4568; + s.tmp_0.arg5 = globals.consoleFont___4577; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1059; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 11: + r0 = (s.i___24298 + 1); + s.i___24298 = (r0); + { step = 7; continue; } + case 12: + case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P1129.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +game_consoleOverlay_draw__P2646.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function scene_Camera_offsetX__P1129_mk(s) { +function game_consoleOverlay_draw__P2646_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P1129, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P2646, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12104,16 +14242,24 @@ function scene_Camera_offsetX__P1129_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___23077: undefined, - arg0: undefined, - arg1: undefined, + tmp_6: undefined, + tmp_7: undefined, + height___24287: undefined, + top___24292: undefined, + i___24298: undefined, + t___24311: undefined, + tOff___24318: undefined, + tab___24320: undefined, + unnamed78___U6: undefined, + unnamed79___U7: undefined, + padding___24322: undefined, } } -function tiles_TileMap_offsetX__P1090(s) { +function scene_systemMenu_isVisible__P2627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12123,61 +14269,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P75_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P78_mk(s); - s.tmp_3 = tiles_TileMap__C1086_v3_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaWidth; - s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.instance___4526); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 743; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 744; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetX__P1090.info = {"start":6363,"length":121,"line":233,"column":8,"endLine":235,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +scene_systemMenu_isVisible__P2627.info = {"start":12708,"length":62,"line":385,"column":4,"endLine":387,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function tiles_TileMap_offsetX__P1090_mk(s) { +function scene_systemMenu_isVisible__P2627_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P1090, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P2627, depth: s.depth + 1, pc: 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_areaWidth__P1092(s) { +function helpers_stringSplit__P114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12187,53 +14305,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.A___22636 = undefined; + s.lim___22638 = undefined; + s.s___22654 = undefined; + s.p___22657 = undefined; + s.R___22658 = undefined; + s.z___22672 = undefined; + s.T___22685 = undefined; + s.q___22686 = undefined; + s.e___22692 = 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__C1086_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; + r0 = pxsim_Array__mk(); + s.A___22636 = (r0); + s.lim___22638 = (0); + r0 = (s.arg2 === undefined); 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 = (536870912 - 1); + s.lim___22638 = (r0); + { step = 4; continue; } case 1: - r0 = 0; + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.lim___22638 = (0); + { step = 3; continue; } case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = (s.arg2 | 0); + s.lim___22638 = (r0); + case 3: + case 4: + r0 = pxsim_String_.length(s.arg0); + s.s___22654 = (r0); + s.p___22657 = (0); + s.R___22658 = (s.arg1); + r0 = (s.lim___22638 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.A___22636; + { 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___22636, 0, s.arg0); + r0 = s.A___22636; + { step = 21; continue; } + case 7: + case 8: + r0 = (s.s___22654 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = helpers_splitMatch__P3888_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = s.R___22658; + s.callLocIdx = 12; s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + s.z___22672 = (r0); + r0 = (s.z___22672 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.A___22636; + { step = 21; continue; } + case 9: + case 10: + r0 = pxsim_Array_.setAt(s.A___22636, 0, s.arg0); + r0 = s.A___22636; + { step = 21; continue; } + case 11: + case 12: + s.q___22686 = (s.p___22657); + case 13: + r0 = (s.q___22686 != s.s___22654); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + s.tmp_1 = helpers_splitMatch__P3888_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.q___22686; + s.tmp_1.arg2 = s.R___22658; + s.callLocIdx = 13; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + s.e___22692 = (r0); + r0 = (s.e___22692 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.q___22686 + 1); + s.q___22686 = (r0); + { step = 19; continue; } + case 14: + r0 = (s.e___22692 == s.p___22657); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.q___22686 + 1); + s.q___22686 = (r0); + { step = 18; continue; } + case 15: + s.tmp_0 = helpers_stringSlice__P112_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___22657; + s.tmp_0.arg2 = s.q___22686; + s.callLocIdx = 14; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.T___22685 = (r0); + r0 = pxsim_Array__push(s.A___22636, s.T___22685); + r0 = pxsim_Array__length(s.A___22636); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.lim___22638); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = s.A___22636; + { step = 21; continue; } + case 16: + case 17: + s.p___22657 = (s.e___22692); + s.q___22686 = (s.p___22657); + case 18: + case 19: + { step = 13; continue; } + case 20: + s.tmp_0 = helpers_stringSlice__P112_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___22657; + s.tmp_0.arg2 = s.q___22686; + s.callLocIdx = 15; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.T___22685 = (r0); + r0 = pxsim_Array__push(s.A___22636, s.T___22685); + r0 = s.A___22636; + case 21: return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P1092.info = {"start":6627,"length":91,"line":241,"column":8,"endLine":243,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +helpers_stringSplit__P114.info = {"start":11930,"length":1319,"line":407,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} -function tiles_TileMap_areaWidth__P1092_mk(s) { +function helpers_stringSplit__P114_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P1092, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P114, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, + A___22636: undefined, + lim___22638: undefined, + s___22654: undefined, + p___22657: undefined, + R___22658: undefined, + z___22672: undefined, + T___22685: undefined, + q___22686: undefined, + e___22692: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function tiles_TileMapData_width__P1074(s) { +function helpers_splitMatch__P3888(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12243,32 +14494,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___22737 = undefined; + s.s___22740 = undefined; + s.i___22750 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C1073_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - return leaveAccessor(s, r0) + r0 = pxsim_String_.length(s.arg2); + s.r___22737 = (r0); + r0 = pxsim_String_.length(s.arg0); + s.s___22740 = (r0); + r0 = (s.arg1 + s.r___22737); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.s___22740); + 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___22750 = (0); + case 3: + r0 = (s.i___22750 < s.r___22737); + 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___22750); + 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___22750); + 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___22750 + 1); + s.i___22750 = (r0); + { step = 3; continue; } + case 6: + r0 = (s.arg1 + s.r___22737); + case 7: + return leave(s, r0) default: oops() } } } -tiles_TileMapData_width__P1074.info = {"start":3595,"length":63,"line":133,"column":8,"endLine":135,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} -tiles_TileMapData_width__P1074.isGetter = true; +helpers_splitMatch__P3888.info = {"start":13255,"length":289,"line":453,"column":4,"endLine":462,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} -function tiles_TileMapData_width__P1074_mk(s) { +function helpers_splitMatch__P3888_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_width__P1074, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P3888, depth: s.depth + 1, pc: 0, retval: undefined, 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___22737: undefined, + s___22740: undefined, + i___22750: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_Camera_offsetX__P1128(s) { +function helpers_stringSlice__P112(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12278,32 +14582,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___22394 = 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_Camera__C1127_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - return leaveAccessor(s, r0) + r0 = pxsim_String_.length(s.arg0); + s.len___22394 = (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__P122_mk(s); + r0 = (s.len___22394 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 11; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.arg1 = (r0); + case 1: + case 2: + r0 = (s.arg2 == null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg2 = (s.len___22394); + case 3: + case 4: + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = (s.len___22394 + s.arg2); + s.arg2 = (r0); + case 5: + case 6: + 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_Camera_offsetX__P1128.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__P1128.isGetter = true; +helpers_stringSlice__P112.info = {"start":11047,"length":365,"line":373,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} -function scene_Camera_offsetX__P1128_mk(s) { +function helpers_stringSlice__P112_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P1128, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P112, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + len___22394: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Sprite_y__P772(s) { +function scene_Scene_render__P2438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12313,39 +14658,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___24436 = undefined; + s.unnamed76___U1 = undefined; + s.unnamed77___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; + if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; - r0 = (s.tmp_1 / 256); + r0 = (s.tmp_1 & 4); s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; + 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 = pxsim_ImageMethods.height(s.tmp_4); + r0 = (s.tmp_4 | 4); s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); + r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["previousScene"]; + case 4: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + s.tmp_3 = scene_Scene_render__P2438_mk(s); + r0 = s.arg0.fields["previousScene"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 838; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_Background_draw__P2271_mk(s); + r0 = s.arg0.fields["background"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 839; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + case 6: + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_2 = helpers_arraySort__P100_mk(s); + r0 = s.arg0.fields["allSprites"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = inline__P24413; + s.callLocIdx = 844; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 7: + case 8: + s.s___24436 = (undefined); + r0 = s.arg0.fields["allSprites"]; + s.unnamed76___U1 = (r0); + s.unnamed77___U2 = (0); + case 9: + s.tmp_0 = r0 = s.unnamed77___U2; + r0 = pxsim_Array__length(s.unnamed76___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed76___U1, s.unnamed77___U2); + s.s___24436 = (r0); + s.tmp_2 = if___draw_2_mk(s); + s.tmp_2.arg0 = s.s___24436; + 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 = 845; 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 = 845; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 845; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 845; s.pc = 15; return s.tmp_2; } + } + case 15: + r0 = s.retval; + r0 = (s.unnamed77___U2 + 1); + s.unnamed77___U2 = (r0); + { step = 9; continue; } + case 10: + s.unnamed76___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() } } } -Sprite_y__P772.info = {"start":1850,"length":85,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} -Sprite_y__P772.isGetter = true; +scene_Scene_render__P2438.info = {"start":7844,"length":917,"line":221,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function Sprite_y__P772_mk(s) { +function scene_Scene_render__P2438_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P772, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P2438, depth: s.depth + 1, pc: 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___24436: undefined, + unnamed76___U1: undefined, + unnamed77___U2: undefined, arg0: undefined, } } @@ -12353,7 +14798,7 @@ function Sprite_y__P772_mk(s) { -function Fx_toFloat__P128(s) { +function inline__P24413(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12365,27 +14810,102 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 / 256); + 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 = 840; 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 = 841; s.pc = 4; return s.tmp_4; } + } + case 4: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_6 = if_id_1_mk(s); + s.tmp_6.arg0 = s.arg0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 842; 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 = 843; s.pc = 6; return s.tmp_8; } + } + case 6: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); + case 2: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; return leave(s, r0) default: oops() } } } -Fx_toFloat__P128.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} +inline__P24413.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 Fx_toFloat__P128_mk(s) { +function inline__P24413_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toFloat__P128, depth: s.depth + 1, + parent: s, fn: inline__P24413, depth: s.depth + 1, pc: 0, retval: undefined, 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 Sprite_x__P770(s) { +function scene_Background_draw__P2271(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12400,34 +14920,49 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 / 256); + if (!checkSubtype(r0, scene_Background__C2262_VT)) failedCast(r0); + r0 = s.arg0.fields["color"]; s.tmp_0 = r0; + r0 = pxsim_ImageMethods.fill(globals.screen___1799, s.tmp_0); 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() -} } } -Sprite_x__P770.info = {"start":1501,"length":84,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} -Sprite_x__P770.isGetter = true; - -function Sprite_x__P770_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_x__P770, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + 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___1799, s.tmp_1, 0, 0); + case 1: + case 2: + r0 = s.arg0.fields["_layers"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkAction(1, inline__P24468); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P104_mk(s); + r0 = s.arg0.fields["_layers"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 724; 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__P2271.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} + +function scene_Background_draw__P2271_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Background_draw__P2271, depth: s.depth + 1, + pc: 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, } } @@ -12435,7 +14970,7 @@ function Sprite_x__P770_mk(s) { -function PhysicsEngine_move__P885(s) { +function inline__P24468(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12445,33 +14980,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ox___24470 = undefined; + s.oy___24481 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C880_VT)) failedCast(r0); + 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___24470 = (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___24481 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P2280_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ox___24470; + s.tmp_0.arg2 = s.oy___24481; + s.callLocIdx = 723; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_move__P885.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +inline__P24468.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} -function PhysicsEngine_move__P885_mk(s) { +function inline__P24468_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P885, depth: s.depth + 1, + parent: s, fn: inline__P24468, depth: s.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___24470: undefined, + oy___24481: undefined, arg0: undefined, - arg1: undefined, } } -function PhysicsEngine_draw__P884(s) { +function scene_BackgroundLayer_draw__P2280(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12481,31 +15049,251 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.w___24499 = undefined; + s.h___24502 = undefined; + s.pw___24505 = undefined; + s.ph___24509 = undefined; + s.rx___24518 = undefined; + s.ry___24521 = undefined; + s.y___24590 = undefined; + s.py___24591 = undefined; + s.dh___24600 = undefined; + s.x___24608 = undefined; + s.rxl___24609 = undefined; + s.px___24615 = undefined; + s.dw___24619 = 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, PhysicsEngine__C880_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C2272_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.w___24499 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.h___24502 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_0); + s.pw___24505 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); + s.ph___24509 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___24505); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.ph___24509); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 23; continue; } + case 3: + case 4: + r0 = (0 - s.arg1); + s.rx___24518 = (r0); + r0 = (0 - s.arg2); + s.ry___24521 = (r0); + r0 = s.arg0.fields["alignX"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 5: + s.tmp_1 = r0 = s.rx___24518; + r0 = (s.w___24499 + s.pw___24505); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.rx___24518 = (r0); + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.rx___24518; + r0 = (s.w___24499 + s.pw___24505); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.rx___24518 = (r0); + case 7: + r0 = s.arg0.fields["alignY"]; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 8: + s.tmp_1 = r0 = s.ry___24521; + r0 = (s.h___24502 + s.ph___24509); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.ry___24521 = (r0); + { step = 10; continue; } + case 9: + s.tmp_0 = r0 = s.ry___24521; + r0 = (s.h___24502 + s.ph___24509); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.ry___24521 = (r0); + case 10: + r0 = (s.rx___24518 % s.w___24499); + s.rx___24518 = (r0); + r0 = (s.rx___24518 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.rx___24518 + s.w___24499); + s.rx___24518 = (r0); + case 11: + case 12: + r0 = (s.ry___24521 % s.h___24502); + s.ry___24521 = (r0); + r0 = (s.ry___24521 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (s.ry___24521 + s.h___24502); + s.ry___24521 = (r0); + case 13: + case 14: + r0 = pxsim.Math_.floor(s.rx___24518); + s.rx___24518 = (r0); + r0 = pxsim.Math_.floor(s.ry___24521); + s.ry___24521 = (r0); + s.y___24590 = (0); + s.py___24591 = (0); + case 15: + r0 = (s.y___24590 < s.h___24502); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.y___24590 % s.ph___24509); + s.py___24591 = (r0); + s.tmp_0 = Math_min__P123_mk(s); + r0 = (s.ph___24509 - s.py___24591); + s.tmp_0.arg0 = r0; + r0 = (s.h___24502 - s.ry___24521); + s.tmp_0.arg1 = r0; + s.callLocIdx = 726; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.dh___24600 = (r0); + s.x___24608 = (0); + s.rxl___24609 = (s.rx___24518); + case 16: + r0 = (s.x___24608 < s.w___24499); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 19; continue; } + r0 = (s.x___24608 % s.pw___24505); + s.px___24615 = (r0); + s.tmp_0 = Math_min__P123_mk(s); + r0 = (s.pw___24505 - s.px___24615); + s.tmp_0.arg0 = r0; + r0 = (s.w___24499 - s.rxl___24609); + s.tmp_0.arg1 = r0; + s.callLocIdx = 727; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.dw___24619 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawImage(globals.screen___1799, s.tmp_0, s.rxl___24609, s.ry___24521); + r0 = (s.rxl___24609 + s.dw___24619); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.w___24499); + s.rxl___24609 = (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___24619; + { step = 18; continue; } + case 17: + r0 = s.w___24499; + case 18: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.x___24608 + s.tmp_1); + s.x___24608 = (r0); + { step = 16; continue; } + case 19: + r0 = (s.ry___24521 + s.dh___24600); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.h___24502); + s.ry___24521 = (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___24600; + { step = 21; continue; } + case 20: + r0 = s.h___24502; + case 21: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.y___24590 + s.tmp_1); + s.y___24590 = (r0); + { step = 15; continue; } + case 22: + case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_draw__P884.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +scene_BackgroundLayer_draw__P2280.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 PhysicsEngine_draw__P884_mk(s) { +function scene_BackgroundLayer_draw__P2280_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_draw__P884, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P2280, depth: s.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___24499: undefined, + h___24502: undefined, + pw___24505: undefined, + ph___24509: undefined, + rx___24518: undefined, + ry___24521: undefined, + y___24590: undefined, + py___24591: undefined, + dh___24600: undefined, + x___24608: undefined, + rxl___24609: undefined, + px___24615: undefined, + dw___24619: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function controller___update__P742(s) { +function Math_min__P123(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12515,51 +15303,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtms___23439 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 * 1000); - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - s.dtms___23439 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P23446); + r0 = (s.arg0 <= s.arg1); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___23439); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_2 = controller_players__P713_mk(s); - s.callLocIdx = 201; 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 = 203; s.pc = 1; return s.tmp_1; + 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() } } } -controller___update__P742.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +Math_min__P123.info = {"start":15790,"length":105,"line":538,"column":4,"endLine":541,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} -function controller___update__P742_mk(s) { +function Math_min__P123_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P742, depth: s.depth + 1, + parent: s, fn: Math_min__P123, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - dtms___23439: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P23446(s) { +function scene_Camera_update__P2368(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12569,28 +15347,182 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.elapsed___24700 = undefined; + s.percentComplete___24714 = undefined; + s.damp___24721 = undefined; + s.f___24730 = undefined; + s.x___24736 = undefined; + s.y___24743 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___update__P739_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0); + r0 = s.arg0.fields["sprite"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = scene_Camera_offsetX__P2358_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_3 = Sprite_x__P2022_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 799; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + 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 = 800; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P2360_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 202; s.pc = 1; return s.tmp_0; + s.tmp_2 = Sprite_y__P2024_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 801; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___1799); + 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 = 802; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; case 1: + case 2: + s.tmp_0 = scene_Camera_offsetX__P2358_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 = 804; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P2360_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 = 806; 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___24700 = (r0); + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_1 = r0; + r0 = (s.elapsed___24700 >= 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___24700 / s.tmp_0); + s.percentComplete___24714 = (r0); + s.damp___24721 = (1); + r0 = (s.percentComplete___24714 >= 0.75); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = Math_max__P122_mk(s); + s.tmp_1.arg0 = 0; + r0 = (1 - s.percentComplete___24714); + s.tmp_1.arg1 = r0; + s.callLocIdx = 809; s.pc = 15; return s.tmp_1; + case 15: r0 = s.retval; + s.damp___24721 = (r0); + case 4: + case 5: + r0 = s.arg0.fields["shakeAmplitude"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.damp___24721); + s.f___24730 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___24730); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.x___24736 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___24730); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.y___24743 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["drawOffsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.x___24736); + 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___24743); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); + case 6: + case 7: + case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P23446.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +scene_Camera_update__P2368.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} -function inline__P23446_mk(s) { +function scene_Camera_update__P2368_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23446, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P2368, depth: s.depth + 1, pc: 0, retval: undefined, 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___24700: undefined, + percentComplete___24714: undefined, + damp___24721: undefined, + f___24730: undefined, + x___24736: undefined, + y___24743: undefined, arg0: undefined, } } @@ -12598,7 +15530,7 @@ function inline__P23446_mk(s) { -function controller_Controller___update__P739(s) { +function scene_Camera_offsetY__P2360(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12608,48 +15540,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___24762 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_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__P23459); + if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 798; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___24762 = (r0); + r0 = s.scene___24762.fields["tileMap"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 200; 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_1 = tiles_TileMap__C2314_v6_1_mk(s); + r0 = s.scene___24762.fields["tileMap"]; + s.tmp_1.arg0 = r0; + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled; + s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = tiles_TileMap__C2314_v2_2_mk(s); + r0 = s.scene___24762.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg1; + if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.offsetY; + s.pc = 7; return s.tmp_5; + case 7: r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_offsetY"] = (s.tmp_4); + { step = 4; continue; } + case 3: + r0 = (s.arg0).fields["_offsetY"] = (s.arg1); + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update__P739.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +scene_Camera_offsetY__P2360.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 controller_Controller___update__P739_mk(s) { +function scene_Camera_offsetY__P2360_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P739, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P2360, depth: s.depth + 1, pc: 0, retval: undefined, 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___24762: undefined, arg0: undefined, arg1: undefined, } } @@ -12658,7 +15615,7 @@ function controller_Controller___update__P739_mk(s) { -function inline__P23459(s) { +function tiles_TileMap_enabled__P2324(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12672,25 +15629,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P704_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 199; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -inline__P23459.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +tiles_TileMap_enabled__P2324.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__P2324.isGetter = true; -function inline__P23459_mk(s) { +function tiles_TileMap_enabled__P2324_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23459, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P2324, depth: s.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, } } @@ -12698,7 +15662,7 @@ function inline__P23459_mk(s) { -function controller_Button___update__P704(s) { +function tiles_TileMap_offsetY__P2319(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12708,115 +15672,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___23475 = undefined; - s.interval___23485 = undefined; - s.count___23499 = 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__C694_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 11; continue; } - case 1: - case 2: - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 + s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); - r0 = s.arg0.fields["repeatDelay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___689; - { step = 4; continue; } + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P119_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P122_mk(s); + s.tmp_3 = tiles_TileMap__C2314_v4_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaHeight; + s.pc = 3; return s.tmp_3; case 3: - r0 = s.arg0.fields["repeatDelay"]; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.delay___23475 = (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___691; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["repeatInterval"]; - case 6: - // jmp value (already in r0) + r0 = s.retval; s.tmp_2 = r0; - s.interval___23485 = (s.tmp_2); - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___23475); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - { step = 11; continue; } - case 7: - case 8: - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 - s.delay___23475); + r0 = pxsim_ImageMethods.height(globals.screen___1799); s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___23485); - s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___23485); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.count___23499 = (r0); - r0 = s.arg0.fields["_repeatCount"]; - s.tmp_1 = r0; - r0 = (s.count___23499 != 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__P698_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 157; s.pc = 12; return s.tmp_2; - case 12: + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 745; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 746; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___23499); - case 9: - case 10: - case 11: - r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button___update__P704.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +tiles_TileMap_offsetY__P2319.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 controller_Button___update__P704_mk(s) { +function tiles_TileMap_offsetY__P2319_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P704, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P2319, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - delay___23475: undefined, - interval___23485: undefined, - count___23499: undefined, arg0: undefined, arg1: undefined, } } @@ -12825,7 +15726,7 @@ function controller_Button___update__P704_mk(s) { -function controller_Button_raiseButtonRepeat__P698(s) { +function tiles_TileMap_areaHeight__P2321(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12840,30 +15741,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C694_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___687); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2054, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_map"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_height"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 << s.tmp_3); { step = 2; continue; } case 1: - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2055, s.tmp_0); + r0 = 0; case 2: - r0 = undefined; + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonRepeat__P698.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +tiles_TileMap_areaHeight__P2321.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function controller_Button_raiseButtonRepeat__P698_mk(s) { +function tiles_TileMap_areaHeight__P2321_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P698, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P2321, depth: s.depth + 1, pc: 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, } } @@ -12871,7 +15782,7 @@ function controller_Button_raiseButtonRepeat__P698_mk(s) { -function controller_players__P713(s) { +function tiles_TileMap_scale__P2316(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12881,34 +15792,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P712_mk(s); - s.callLocIdx = 160; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P61_mk(s); - s.tmp_0.arg0 = globals._players___710; - s.tmp_0.arg1 = inline__P23336; - s.callLocIdx = 161; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - return leave(s, r0) - default: oops() + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) + default: oops() } } } -controller_players__P713.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +tiles_TileMap_scale__P2316.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__P2316.isGetter = true; -function controller_players__P713_mk(s) { +function tiles_TileMap_scale__P2316_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P713, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P2316, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, } } -function inline__P23336(s) { +function tiles_TileMapData_height__P2304(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12922,26 +15831,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; + return leaveAccessor(s, r0) default: oops() } } } -inline__P23336.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +tiles_TileMapData_height__P2304.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__P2304.isGetter = true; -function inline__P23336_mk(s) { +function tiles_TileMapData_height__P2304_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23336, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_height__P2304, 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, } } @@ -12949,7 +15852,7 @@ function inline__P23336_mk(s) { -function controller__player1__P712(s) { +function Math_clamp__P119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12959,71 +15862,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___710); - 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___710, 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + 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__P123_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_1 = Math_max__P122_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg2; + s.callLocIdx = 16; s.pc = 2; return s.tmp_1; 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__C717_VT); - s.tmp_5 = r0; - r0 = pxsim_Array__mk(); - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___669); - r0 = pxsim_Array__push(s.tmp_6, globals.up___671); - r0 = pxsim_Array__push(s.tmp_6, globals.right___673); - r0 = pxsim_Array__push(s.tmp_6, globals.down___675); - r0 = pxsim_Array__push(s.tmp_6, globals.A___665); - r0 = pxsim_Array__push(s.tmp_6, globals.B___667); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___677); - s.tmp_7 = controller_Controller_constructor__P741_mk(s); - s.tmp_7.arg0 = s.tmp_5; - s.tmp_7.arg1 = 1; - s.tmp_7.arg2 = s.tmp_6; - s.callLocIdx = 159; s.pc = 5; return s.tmp_7; - case 5: r0 = s.retval; - case 3: - case 4: - r0 = pxsim_Array__getAt(globals._players___710, 0); + s.tmp_0.arg1 = r0; + s.callLocIdx = 17; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -controller__player1__P712.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +Math_clamp__P119.info = {"start":14654,"length":130,"line":501,"column":4,"endLine":503,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} -function controller__player1__P712_mk(s) { +function Math_clamp__P119_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P712, depth: s.depth + 1, + parent: s, fn: Math_clamp__P119, depth: s.depth + 1, pc: 0, retval: undefined, 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, +} } + + + + + +function scene_Camera_offsetY__P2359(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__C2352_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_offsetY__P2359.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__P2359.isGetter = true; + +function scene_Camera_offsetY__P2359_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_offsetY__P2359, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, } } -function controller_Controller_constructor__P741(s) { +function scene_Camera_offsetX__P2358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13033,100 +15946,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___23384 = undefined; - s.i___23392 = undefined; - s.i___23410 = undefined; + s.scene___24800 = 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__C717_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); - r0 = (s.arg0).fields["_connected"] = (false); - r0 = (s.arg0).fields["playerIndex"] = (s.arg1); - r0 = (s.arg0).fields["analog"] = (false); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["buttons"] = (s.arg2); - { step = 4; continue; } - case 1: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 7); + if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 797; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___24800 = (r0); + r0 = s.scene___24800.fields["tileMap"]; s.tmp_0 = r0; - r0 = (1 + s.tmp_0); - s.leftId___23384 = (r0); - s.i___23392 = (0); + 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__C2314_v6_1_mk(s); + r0 = s.scene___24800.fields["tileMap"]; + s.tmp_1.arg0 = r0; + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled; + s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; case 2: - r0 = (s.i___23392 < 7); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + // 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(controller_Button__C694_VT); - s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P705_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___23384 + s.i___23392); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = -1; - s.callLocIdx = 165; s.pc = 7; return s.tmp_2; + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = tiles_TileMap__C2314_v1_2_mk(s); + r0 = s.scene___24800.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg1; + if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.offsetX; + s.pc = 7; return s.tmp_5; 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___23392 + 1); - s.i___23392 = (r0); - { step = 2; continue; } + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_offsetX"] = (s.tmp_4); + { step = 4; continue; } case 3: + r0 = (s.arg0).fields["_offsetX"] = (s.arg1); case 4: - s.i___23410 = (0); - case 5: - s.tmp_1 = r0 = s.i___23410; - 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___23410); - s.tmp_4 = r0; - r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___23410 + 1); - s.i___23410 = (r0); - { step = 5; continue; } - case 6: - s.tmp_0 = controller_addController__P711_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 166; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P741.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"]} +scene_Camera_offsetX__P2358.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 controller_Controller_constructor__P741_mk(s) { +function scene_Camera_offsetX__P2358_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P741, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P2358, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13134,19 +16012,16 @@ function controller_Controller_constructor__P741_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - leftId___23384: undefined, - i___23392: undefined, - i___23410: undefined, + scene___24800: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function controller_addController__P711(s) { +function tiles_TileMap_offsetX__P2318(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13158,46 +16033,59 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._players___710); - 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___710 = (r0); - case 1: - case 2: - s.tmp_0 = r0 = globals._players___710; - r0 = s.arg0.fields["playerIndex"]; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P119_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P122_mk(s); + s.tmp_3 = tiles_TileMap__C2314_v3_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaWidth; + s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); - r0 = undefined; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 743; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 744; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -controller_addController__P711.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +tiles_TileMap_offsetX__P2318.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 controller_addController__P711_mk(s) { +function tiles_TileMap_offsetX__P2318_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P711, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P2318, depth: s.depth + 1, pc: 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_arrayFilter__P61(s) { +function tiles_TileMap_areaWidth__P2320(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13207,71 +16095,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___25811 = undefined; - s.len___25813 = undefined; - s.i___25816 = undefined; - s.v___25821 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.res___25811 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___25813 = (r0); - s.i___25816 = (0); - case 1: - r0 = (s.i___25816 < s.len___25813); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___25816); - s.v___25821 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___25821; - s.tmp_1.arg1 = s.i___25816; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 7; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___25811, s.v___25821); + 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: - case 3: - r0 = (s.i___25816 + 1); - s.i___25816 = (r0); - { step = 1; continue; } - case 4: - r0 = s.res___25811; + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -helpers_arrayFilter__P61.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"]} +tiles_TileMap_areaWidth__P2320.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_arrayFilter__P61_mk(s) { +function tiles_TileMap_areaWidth__P2320_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFilter__P61, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P2320, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - res___25811: undefined, - len___25813: undefined, - i___25816: undefined, - v___25821: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function controller__moveSprites__P716(s) { +function tiles_TileMapData_width__P2303(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13281,36 +16151,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P60_mk(s); - s.tmp_1 = controller_players__P713_mk(s); - s.callLocIdx = 162; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P23119; - s.callLocIdx = 164; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + return leaveAccessor(s, r0) default: oops() } } } -controller__moveSprites__P716.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +tiles_TileMapData_width__P2303.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__P2303.isGetter = true; -function controller__moveSprites__P716_mk(s) { +function tiles_TileMapData_width__P2303_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P716, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P2303, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function inline__P23119(s) { +function scene_Camera_offsetX__P2357(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13324,23 +16190,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___preUpdate__P738_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 163; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + return leaveAccessor(s, r0) default: oops() } } } -inline__P23119.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +scene_Camera_offsetX__P2357.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__P2357.isGetter = true; -function inline__P23119_mk(s) { +function scene_Camera_offsetX__P2357_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23119, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P2357, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -13348,7 +16211,7 @@ function inline__P23119_mk(s) { -function controller_Controller___preUpdate__P738(s) { +function Sprite_y__P2024(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13358,326 +16221,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___23126 = undefined; - s.svx___23127 = undefined; - s.svy___23128 = undefined; - s.svxInCricle___23164 = undefined; - s.svyInCircle___23166 = undefined; - s.sq___23168 = undefined; - s.scale___23183 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P718_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 174; 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___23126 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___23126, false); - r0 = pxsim_pxtrt.mklocRef(); - s.svx___23127 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___23127, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.svy___23128 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___23128, 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___23127; - s.tmp_5 = controller_Button_pressureLevel__P702_mk(s); - s.tmp_6 = controller_Controller_right__P723_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 175; s.pc = 20; return s.tmp_6; - case 20: - r0 = s.retval; - s.tmp_5.arg0 = r0; - s.callLocIdx = 176; s.pc = 19; return s.tmp_5; - case 19: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P702_mk(s); - s.tmp_9 = controller_Controller_left__P722_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 177; s.pc = 22; return s.tmp_9; - case 22: - r0 = s.retval; - s.tmp_8.arg0 = r0; - s.callLocIdx = 178; 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___23128; - s.tmp_4 = controller_Button_pressureLevel__P702_mk(s); - s.tmp_5 = controller_Controller_down__P725_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 179; s.pc = 24; return s.tmp_5; - case 24: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.callLocIdx = 180; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P702_mk(s); - s.tmp_8 = controller_Controller_up__P724_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 181; s.pc = 26; return s.tmp_8; - case 26: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.callLocIdx = 182; 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__C694_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P723_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 183; 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__C694_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__C694_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P722_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 184; 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__C694_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___23127; - 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__C694_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P725_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 185; 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__C694_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__C694_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P724_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 186; 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__C694_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___23128; - 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___23164 = (r0); - s.tmp_0 = r0 = s.svxInCricle___23164; - r0 = pxsim_pxtrt_ldlocRef(s.svx___23127); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___23166 = (r0); - s.tmp_0 = r0 = s.svyInCircle___23166; - r0 = pxsim_pxtrt_ldlocRef(s.svy___23128); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___23127); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___23127); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); + r0 = (s.tmp_1 / 256); s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___23128); + r0 = s.arg0.fields["_image"]; s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___23128); - s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); + r0 = pxsim_ImageMethods.height(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.sq___23168 = (r0); - r0 = (s.sq___23168 > 65536); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___23168); - s.tmp_1 = r0; - r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___23183 = (r0); - s.tmp_0 = r0 = s.svxInCricle___23164; - s.tmp_3 = r0 = s.scale___23183; - r0 = pxsim_pxtrt_ldlocRef(s.svx___23127); - 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___23166; - s.tmp_3 = r0 = s.scale___23183; - r0 = pxsim_pxtrt_ldlocRef(s.svy___23128); - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); + r0 = (s.tmp_3 / 2); 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__P23201); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___23126); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___23127); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___23128); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___23164); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___23166); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P718_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 187; 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 = 195; s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___23126); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P719_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P61_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P718_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 196; s.pc = 39; return s.tmp_3; - case 39: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P23261; - s.callLocIdx = 197; s.pc = 38; return s.tmp_2; - case 38: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 198; s.pc = 37; return s.tmp_1; - case 37: - r0 = s.retval; - case 15: - case 16: - case 17: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -controller_Controller___preUpdate__P738.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +Sprite_y__P2024.info = {"start":1849,"length":85,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} +Sprite_y__P2024.isGetter = true; -function controller_Controller___preUpdate__P738_mk(s) { +function Sprite_y__P2024_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P738, depth: s.depth + 1, + parent: s, fn: Sprite_y__P2024, depth: s.depth + 1, pc: 0, retval: undefined, 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___23126: undefined, - svx___23127: undefined, - svy___23128: undefined, - svxInCricle___23164: undefined, - svyInCircle___23166: undefined, - sq___23168: undefined, - scale___23183: undefined, arg0: undefined, } } @@ -13685,7 +16261,7 @@ function controller_Controller___preUpdate__P738_mk(s) { -function inline__P23201(s) { +function Fx_toFloat__P163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13695,167 +16271,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___23204 = undefined; - s.vx___23205 = undefined; - s.vy___23206 = 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 = 188; s.pc = 22; return s.tmp_0; } - } - case 22: - r0 = s.retval; - s.s___23204 = (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 = 189; s.pc = 23; return s.tmp_2; } - } - case 23: - r0 = s.retval; - s.vx___23205 = (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 = 190; s.pc = 24; return s.tmp_3; } - } - case 24: - r0 = s.retval; - s.vy___23206 = (r0); - r0 = s.s___23204.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___23205); - if (!r0) { step = 3; continue; } - r0 = (s.s___23204).fields["_vx"] = (0); - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___23206); - if (!r0) { step = 5; continue; } - r0 = (s.s___23204).fields["_vy"] = (0); - case 5: - case 6: - case 7: - case 8: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 19; continue; } - s.tmp_2 = r0 = s.vx___23205; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 11; continue; } - r0 = s.tmp_2; - { step = 12; continue; } - case 11: - r0 = s.vy___23206; - 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___23204; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___23205); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___23204; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___23206); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - { step = 18; continue; } - case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___23205); - if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___23204; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___23205); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); - { step = 17; continue; } - case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___23206); - if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___23204; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___23206); - 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; + r0 = (s.arg0 / 256); return leave(s, r0) default: oops() } } } -inline__P23201.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +Fx_toFloat__P163.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} -function inline__P23201_mk(s) { +function Fx_toFloat__P163_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23201, depth: s.depth + 1, + parent: s, fn: Fx_toFloat__P163, depth: s.depth + 1, pc: 0, retval: undefined, 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___23204: undefined, - vx___23205: undefined, - vy___23206: undefined, arg0: undefined, } } @@ -13863,7 +16293,7 @@ function inline__P23201_mk(s) { -function inline__P23261(s) { +function Sprite_x__P2022(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13877,27 +16307,35 @@ 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); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 / 256); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - 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() } } } -inline__P23261.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} +Sprite_x__P2022.info = {"start":1501,"length":84,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} +Sprite_x__P2022.isGetter = true; -function inline__P23261_mk(s) { +function Sprite_x__P2022_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23261, depth: s.depth + 1, + parent: s, fn: Sprite_x__P2022, depth: s.depth + 1, pc: 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, } } @@ -13905,7 +16343,7 @@ function inline__P23261_mk(s) { -function controller_Controller_down__P725(s) { +function PhysicsEngine_move__P2162(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13917,36 +16355,31 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (4 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_down__P725.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__P725.isGetter = true; +PhysicsEngine_move__P2162.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 controller_Controller_down__P725_mk(s) { +function PhysicsEngine_move__P2162_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P725, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P2162, 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_button__P730(s) { +function PhysicsEngine_draw__P2161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13958,37 +16391,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_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); + if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0); + r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_button__P730.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +PhysicsEngine_draw__P2161.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function controller_Controller_button__P730_mk(s) { +function PhysicsEngine_draw__P2161_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P730, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P2161, 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__P724(s) { +function controller___update__P1947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13998,30 +16423,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.dtms___25148 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + r0 = (s.arg0 * 1000); 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) + r0 = (s.tmp_0 | 0); + s.dtms___25148 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P25155); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___25148); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_2 = controller_players__P1915_mk(s); + s.callLocIdx = 201; 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 = 203; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_up__P724.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__P724.isGetter = true; +controller___update__P1947.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function controller_Controller_up__P724_mk(s) { +function controller___update__P1947_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_up__P724, depth: s.depth + 1, + parent: s, fn: controller___update__P1947, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + dtms___25148: undefined, arg0: undefined, } } @@ -14029,7 +16467,7 @@ function controller_Controller_up__P724_mk(s) { -function controller_Controller_right__P723(s) { +function inline__P25155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14043,26 +16481,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_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) + s.tmp_0 = controller_Controller___update__P1945_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 202; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_right__P723.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__P723.isGetter = true; +inline__P25155.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function controller_Controller_right__P723_mk(s) { +function inline__P25155_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P723, depth: s.depth + 1, + parent: s, fn: inline__P25155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -14070,7 +16506,7 @@ function controller_Controller_right__P723_mk(s) { -function controller_Controller_left__P722(s) { +function controller_Controller___update__P1945(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14082,36 +16518,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, controller_Controller__C717_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; - r0 = (1 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = pxsim_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__P25168); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + r0 = s.arg0.fields["buttons"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 200; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller_left__P722.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__P722.isGetter = true; +controller_Controller___update__P1945.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 controller_Controller_left__P722_mk(s) { +function controller_Controller___update__P1945_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P722, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P1945, depth: s.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 controller_Controller__controlledSprites__P719(s) { +function inline__P25168(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14123,43 +16578,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, controller_Controller__C717_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P961_mk(s); - s.callLocIdx = 168; s.pc = 1; return s.tmp_1; + s.tmp_0 = controller_Button___update__P1912_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 199; s.pc = 1; return s.tmp_0; 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__controlledSprites__P719.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +inline__P25168.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function controller_Controller__controlledSprites__P719_mk(s) { +function inline__P25168_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P719, depth: s.depth + 1, + parent: s, fn: inline__P25168, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Controller__controlledSprites__P718(s) { +function controller_Button___update__P1912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14169,43 +16616,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.delay___25184 = undefined; + s.interval___25193 = undefined; + s.count___25206 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P961_mk(s); - s.callLocIdx = 167; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 11; continue; } case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; + case 2: + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 + s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); + r0 = s.arg0.fields["repeatDelay"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = globals.defaultRepeatDelay___4108; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["repeatDelay"]; + case 4: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - return leaveAccessor(s, r0) + s.delay___25184 = (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___4110; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["repeatInterval"]; + case 6: + // jmp value (already in r0) + s.tmp_2 = r0; + s.interval___25193 = (s.tmp_2); + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.delay___25184); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + { step = 11; continue; } + case 7: + case 8: + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - s.delay___25184); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.interval___25193); + s.tmp_3 = r0; + r0 = (s.tmp_3 / s.interval___25193); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.count___25206 = (r0); + r0 = s.arg0.fields["_repeatCount"]; + s.tmp_1 = r0; + r0 = (s.count___25206 != 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__P4115_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 157; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + r0 = (s.arg0).fields["_repeatCount"] = (s.count___25206); + case 9: + case 10: + case 11: + r0 = undefined; + return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P718.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__P718.isGetter = true; +controller_Button___update__P1912.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 controller_Controller__controlledSprites__P718_mk(s) { +function controller_Button___update__P1912_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P718, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P1912, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + delay___25184: undefined, + interval___25193: undefined, + count___25206: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Button_pressureLevel__P702(s) { +function controller_Button_raiseButtonRepeat__P4115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14220,57 +16748,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C694_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__C694_v0_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C694_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 (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4106); if (!r0) { step = 1; continue; } - r0 = 512; + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2054, s.tmp_0); { step = 2; continue; } case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 5; continue; } - { step = 4; continue; } - case 3: r0 = s.arg0.fields["id"]; - s.tmp_5 = r0; - r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); - { step = 5; continue; } - case 4: + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2055, s.tmp_0); + case 2: r0 = undefined; - case 5: return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P702.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} +controller_Button_raiseButtonRepeat__P4115.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} -function controller_Button_pressureLevel__P702_mk(s) { +function controller_Button_raiseButtonRepeat__P4115_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P702, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P4115, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -14278,7 +16779,7 @@ function controller_Button_pressureLevel__P702_mk(s) { -function controller_Button_isPressed__P701(s) { +function controller_players__P1915(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14288,31 +16789,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C694_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; + s.tmp_0 = controller__player1__P1914_mk(s); + s.callLocIdx = 160; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = helpers_arrayFilter__P105_mk(s); + s.tmp_0.arg0 = globals._players___4119; + s.tmp_0.arg1 = inline__P25047; + s.callLocIdx = 161; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; return leave(s, r0) default: oops() } } } -controller_Button_isPressed__P701.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +controller_players__P1915.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function controller_Button_isPressed__P701_mk(s) { +function controller_players__P1915_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_isPressed__P701, depth: s.depth + 1, + parent: s, fn: controller_players__P1915, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, } } -function Fx_imul__P118(s) { +function inline__P25047(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14324,29 +16828,36 @@ 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 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -Fx_imul__P118.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} +inline__P25047.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function Fx_imul__P118_mk(s) { +function inline__P25047_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P118, depth: s.depth + 1, + parent: s, fn: inline__P25047, 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__P498(s) { +function controller__player1__P1914(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14356,77 +16867,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___22500 = undefined; - s.to___22503 = undefined; - s.tmp_0 = power_init__P500_mk(s); - s.callLocIdx = 86; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = r0 = globals._poked___494; + r0 = pxsim_numops_toBoolDecr(globals._players___4119); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 0; + r0 = pxsim_Array__getAt(globals._players___4119, 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_1 = r0; - s.p___22500 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___495; - r0 = pxsim_numops_toBool(s.tmp_0); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); 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___22503 = (s.tmp_1); - r0 = (s.to___22503 > 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___22500); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___22503); - 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(); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C1920_VT); 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) + r0 = pxsim_Array__mk(); s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore.deepSleep(); - case 9: - case 10: - r0 = undefined; + r0 = pxsim_Array__push(s.tmp_6, globals.left___1876); + r0 = pxsim_Array__push(s.tmp_6, globals.up___1877); + r0 = pxsim_Array__push(s.tmp_6, globals.right___1878); + r0 = pxsim_Array__push(s.tmp_6, globals.down___1879); + r0 = pxsim_Array__push(s.tmp_6, globals.A___1874); + r0 = pxsim_Array__push(s.tmp_6, globals.B___1875); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___1880); + s.tmp_7 = controller_Controller_constructor__P1924_mk(s); + s.tmp_7.arg0 = s.tmp_5; + s.tmp_7.arg1 = 1; + s.tmp_7.arg2 = s.tmp_6; + s.callLocIdx = 159; s.pc = 5; return s.tmp_7; + case 5: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_Array__getAt(globals._players___4119, 0); return leave(s, r0) default: oops() } } } -power_checkDeepSleep__P498.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +controller__player1__P1914.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} -function power_checkDeepSleep__P498_mk(s) { +function controller__player1__P1914_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P498, depth: s.depth + 1, + parent: s, fn: controller__player1__P1914, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14435,15 +16924,14 @@ function power_checkDeepSleep__P498_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - p___22500: undefined, - to___22503: undefined, + tmp_7: undefined, } } -function power_init__P500(s) { +function controller_Controller_constructor__P1924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14453,54 +16941,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___495 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.leftId___25094 = undefined; + s.i___25102 = undefined; + s.i___25120 = 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__C1920_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; } - { step = 7; continue; } + r0 = (s.arg0).fields["buttons"] = (s.arg2); + { step = 4; continue; } case 1: - case 2: - r0 = pxsim_pxtcore.getConfig(212, -1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_1 * 1000); - globals._timeout___495 = (r0); - r0 = (globals._timeout___495 > 0); + 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 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + r0 = (1 + s.tmp_0); + s.leftId___25094 = (r0); + s.i___25102 = (0); + case 2: + r0 = (s.i___25102 < 7); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C1900_VT); + s.tmp_1 = r0; + s.tmp_2 = controller_Button_constructor__P1906_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = (s.leftId___25094 + s.i___25102); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = -1; + s.callLocIdx = 165; 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___25102 + 1); + s.i___25102 = (r0); + { step = 2; continue; } case 3: - r0 = (globals._timeout___495 < 300000); case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 5; continue; } - globals._timeout___495 = (300000); + s.i___25120 = (0); case 5: + s.tmp_1 = r0 = s.i___25120; + 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___25120); + s.tmp_4 = r0; + r0 = (s.tmp_4).fields["_owner"] = (s.arg0); + r0 = (s.i___25120 + 1); + s.i___25120 = (r0); + { step = 5; continue; } case 6: - case 7: + s.tmp_0 = controller_addController__P4120_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 166; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -power_init__P500.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +controller_Controller_constructor__P1924.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 power_init__P500_mk(s) { +function controller_Controller_constructor__P1924_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P500, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P1924, depth: s.depth + 1, pc: 0, retval: undefined, 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___25094: undefined, + i___25102: undefined, + i___25120: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function power_poke__P497(s) { +function controller_addController__P4120(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14510,31 +17064,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P500_mk(s); - s.callLocIdx = 85; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(globals._players___4119); + 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___4119 = (r0); case 1: - r0 = s.retval; - r0 = pxsim.control.millis(); - globals._poked___494 = (r0); + case 2: + s.tmp_0 = r0 = globals._players___4119; + 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() } } } -power_poke__P497.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +controller_addController__P4120.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function power_poke__P497_mk(s) { +function controller_addController__P4120_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P497, depth: s.depth + 1, + parent: s, fn: controller_addController__P4120, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, } } -function control_EventContext_deltaTime__P288(s) { +function helpers_arrayFilter__P105(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14544,35 +17115,110 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___27465 = undefined; + s.len___27467 = undefined; + s.i___27470 = undefined; + s.v___27475 = 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__C287_VT)) failedCast(r0); - r0 = s.arg0.fields["deltaTimeMillis"]; + r0 = pxsim_Array__mk(); + s.res___27465 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___27467 = (r0); + s.i___27470 = (0); + case 1: + r0 = (s.i___27470 < s.len___27467); s.tmp_0 = r0; - r0 = (s.tmp_0 / 1000); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___27470); + s.v___27475 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___27475; + s.tmp_1.arg1 = s.i___27470; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 7; 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___27465, s.v___27475); + case 2: + case 3: + r0 = (s.i___27470 + 1); + s.i___27470 = (r0); + { step = 1; continue; } + case 4: + r0 = s.res___27465; + return leave(s, r0) default: oops() } } } -control_EventContext_deltaTime__P288.info = {"start":1995,"length":75,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} -control_EventContext_deltaTime__P288.isGetter = true; +helpers_arrayFilter__P105.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 control_EventContext_deltaTime__P288_mk(s) { +function helpers_arrayFilter__P105_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P288, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P105, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + res___27465: undefined, + len___27467: undefined, + i___27470: undefined, + v___27475: undefined, arg0: undefined, + arg1: undefined, +} } + + + + + +function controller__moveSprites__P1919(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + s.tmp_1 = controller_players__P1915_mk(s); + s.callLocIdx = 162; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P24842; + s.callLocIdx = 164; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller__moveSprites__P1919.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} + +function controller__moveSprites__P1919_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller__moveSprites__P1919, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, } } -function music_Melody_constructor__P456(s) { +function inline__P24842(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14584,32 +17230,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C444_VT)) failedCast(r0); - r0 = (s.arg0).fields["_text"] = (s.arg1); + s.tmp_0 = controller_Controller___preUpdate__P1944_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 163; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_constructor__P456.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__P24842.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function music_Melody_constructor__P456_mk(s) { +function inline__P24842_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P456, depth: s.depth + 1, + parent: s, fn: inline__P24842, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function control_pushEventContext__P304(s) { +function controller_Controller___preUpdate__P1944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14619,63 +17266,334 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___23540 = undefined; - s.n___23546 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___302); + s.deadSprites___24849 = undefined; + s.svx___24850 = undefined; + s.svy___24851 = undefined; + s.svxInCricle___24886 = undefined; + s.svyInCircle___24888 = undefined; + s.sq___24890 = undefined; + s.scale___24905 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P1925_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 174; 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; } - r0 = pxsim_Array__mk(); - globals.eventContexts___302 = (r0); + { step = 17; continue; } case 1: case 2: - s.tmp_0 = control_eventContext__P303_mk(s); - s.callLocIdx = 66; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.ctx___23540 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___23540); + r0 = pxsim_pxtrt.mklocRef(); + s.deadSprites___24849 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___24849, false); + r0 = pxsim_pxtrt.mklocRef(); + s.svx___24850 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___24850, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.svy___24851 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___24851, 0); + r0 = s.arg0.fields["analog"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P292_mk(s); - s.tmp_0.arg0 = s.ctx___23540; - s.callLocIdx = 67; s.pc = 6; return s.tmp_0; - case 6: + s.tmp_1 = r0 = s.svx___24850; + s.tmp_5 = controller_Button_pressureLevel__P1910_mk(s); + s.tmp_6 = controller_Controller_right__P1930_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 175; s.pc = 20; return s.tmp_6; + case 20: + r0 = s.retval; + s.tmp_5.arg0 = r0; + s.callLocIdx = 176; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_8 = controller_Button_pressureLevel__P1910_mk(s); + s.tmp_9 = controller_Controller_left__P1929_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 177; s.pc = 22; return s.tmp_9; + case 22: + r0 = s.retval; + s.tmp_8.arg0 = r0; + s.callLocIdx = 178; 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___24851; + s.tmp_4 = controller_Button_pressureLevel__P1910_mk(s); + s.tmp_5 = controller_Controller_down__P1932_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 179; s.pc = 24; return s.tmp_5; + case 24: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.callLocIdx = 180; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = controller_Button_pressureLevel__P1910_mk(s); + s.tmp_8 = controller_Controller_up__P1931_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 181; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 182; 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: - case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C287_VT); + s.tmp_1 = controller_Button__C1900_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P1930_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 183; 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__C1900_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; - s.tmp_1 = control_EventContext_constructor__P301_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 68; s.pc = 7; return s.tmp_1; + 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__C1900_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P1929_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 184; 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__C1900_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___24850; + 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__C1900_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P1932_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 185; 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__C1900_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__C1900_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P1931_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 186; 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__C1900_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___24851; + 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___24886 = (r0); + s.tmp_0 = r0 = s.svxInCricle___24886; + r0 = pxsim_pxtrt_ldlocRef(s.svx___24850); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.svyInCircle___24888 = (r0); + s.tmp_0 = r0 = s.svyInCircle___24888; + r0 = pxsim_pxtrt_ldlocRef(s.svy___24851); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.svx___24850); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svx___24850); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___24851); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___24851); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_0 + s.tmp_3); + s.sq___24890 = (r0); + r0 = (s.sq___24890 > 65536); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (65536 / s.sq___24890); + s.tmp_1 = r0; + r0 = pxsim.Math_.sqrt(s.tmp_1); + s.scale___24905 = (r0); + s.tmp_0 = r0 = s.svxInCricle___24886; + s.tmp_3 = r0 = s.scale___24905; + r0 = pxsim_pxtrt_ldlocRef(s.svx___24850); + 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___24888; + s.tmp_3 = r0 = s.scale___24905; + r0 = pxsim_pxtrt_ldlocRef(s.svy___24851); + 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__P24923); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___24849); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___24850); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___24851); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___24886); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___24888); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P1925_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 187; 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 = 195; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___24849); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = controller_Controller__controlledSprites__P1926_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P105_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P1925_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 196; s.pc = 39; return s.tmp_3; + case 39: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = inline__P24980; + s.callLocIdx = 197; s.pc = 38; return s.tmp_2; + case 38: r0 = s.retval; - s.n___23546 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___302, s.n___23546); - r0 = s.n___23546; + s.tmp_1.arg1 = r0; + s.callLocIdx = 198; 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() } } } -control_pushEventContext__P304.info = {"start":7021,"length":340,"line":213,"column":4,"endLine":224,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +controller_Controller___preUpdate__P1944.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function control_pushEventContext__P304_mk(s) { +function controller_Controller___preUpdate__P1944_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P304, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P1944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___23540: undefined, - n___23546: 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___24849: undefined, + svx___24850: undefined, + svy___24851: undefined, + svxInCricle___24886: undefined, + svyInCircle___24888: undefined, + sq___24890: undefined, + scale___24905: undefined, + arg0: undefined, } } -function control_EventContext_constructor__P301(s) { +function inline__P24923(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14685,34 +17603,167 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.s___24926 = undefined; + s.vx___24927 = undefined; + s.vy___24928 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C287_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + 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 = 188; s.pc = 22; return s.tmp_0; } + } + case 22: + r0 = s.retval; + s.s___24926 = (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 = 189; s.pc = 23; return s.tmp_2; } + } + case 23: + r0 = s.retval; + s.vx___24927 = (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 = 190; s.pc = 24; return s.tmp_3; } + } + case 24: + r0 = s.retval; + s.vy___24928 = (r0); + r0 = s.s___24926.fields["flags"]; 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 = (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___24927); + if (!r0) { step = 3; continue; } + r0 = (s.s___24926).fields["_vx"] = (0); + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.vy___24928); + if (!r0) { step = 5; continue; } + r0 = (s.s___24926).fields["_vy"] = (0); + case 5: + case 6: + case 7: + case 8: + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 19; continue; } + s.tmp_2 = r0 = s.vx___24927; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 11; continue; } + r0 = s.tmp_2; + { step = 12; continue; } + case 11: + r0 = s.vy___24928; + 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___24926; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___24927); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); + s.tmp_0 = r0 = s.s___24926; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___24928); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + { step = 18; continue; } + case 13: + r0 = pxsim_numops_toBoolDecr(s.vx___24927); + if (!r0) { step = 14; continue; } + s.tmp_0 = r0 = s.s___24926; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___24927); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + { step = 17; continue; } + case 14: + r0 = pxsim_numops_toBoolDecr(s.vy___24928); + if (!r0) { step = 15; continue; } + s.tmp_0 = r0 = s.s___24926; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___24928); + 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() } } } -control_EventContext_constructor__P301.info = {"start":1740,"length":245,"line":58,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +inline__P24923.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function control_EventContext_constructor__P301_mk(s) { +function inline__P24923_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P301, depth: s.depth + 1, + parent: s, fn: inline__P24923, depth: s.depth + 1, pc: 0, retval: undefined, 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___24926: undefined, + vx___24927: undefined, + vy___24928: undefined, arg0: undefined, } } @@ -14720,7 +17771,7 @@ function control_EventContext_constructor__P301_mk(s) { -function control_EventContext_unregister__P292(s) { +function inline__P24980(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14730,60 +17781,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___23572 = undefined; - s.unnamed52___U1 = undefined; - s.unnamed53___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C287_VT)) failedCast(r0); - s.h___23572 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed52___U1 = (r0); - s.unnamed53___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed53___U2; - r0 = pxsim_Array__length(s.unnamed52___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed52___U1, s.unnamed53___U2); - s.h___23572 = (r0); - s.tmp_2 = control_EventHandler_unregister__P284_mk(s); - s.tmp_2.arg0 = s.h___23572; - s.callLocIdx = 62; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - r0 = (s.unnamed53___U2 + 1); - s.unnamed53___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed52___U1 = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["frameWorker"]; + r0 = s.arg0.fields["s"]; + r0 = r0.fields["flags"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = (s.tmp_2 & 2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["frameWorker"] = (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() } } } -control_EventContext_unregister__P292.info = {"start":4432,"length":131,"line":134,"column":8,"endLine":138,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +inline__P24980.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function control_EventContext_unregister__P292_mk(s) { +function inline__P24980_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P292, depth: s.depth + 1, + parent: s, fn: inline__P24980, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___23572: undefined, - unnamed52___U1: undefined, - unnamed53___U2: undefined, arg0: undefined, } } @@ -14791,7 +17813,7 @@ function control_EventContext_unregister__P292_mk(s) { -function control_EventHandler_unregister__P284(s) { +function controller_Controller_down__P1932(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14806,28 +17828,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C282_VT)) failedCast(r0); - r0 = s.arg0.fields["src"]; + if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = s.arg0.fields["value"]; + r0 = (4 - 1); 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__P286, s.tmp_2); - r0 = undefined; - return leave(s, r0) + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -control_EventHandler_unregister__P284.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +controller_Controller_down__P1932.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__P1932.isGetter = true; -function control_EventHandler_unregister__P284_mk(s) { +function controller_Controller_down__P1932_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P284, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P1932, 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, } } @@ -14835,7 +17854,7 @@ function control_EventHandler_unregister__P284_mk(s) { -function control_doNothing__P286(s) { +function controller_Controller_button__P4121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14845,24 +17864,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1920_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() } } } -control_doNothing__P286.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +controller_Controller_button__P4121.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 control_doNothing__P286_mk(s) { +function controller_Controller_button__P4121_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P286, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P4121, 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 image_getFontForText__P533(s) { +function controller_Controller_up__P1931(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14872,52 +17906,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___20327 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.i___20327 = (0); - case 1: - s.tmp_1 = r0 = s.i___20327; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_String_.charCodeAt(s.arg0, s.i___20327); - 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___532; - { step = 5; continue; } - case 2: - case 3: - r0 = (s.i___20327 + 1); - s.i___20327 = (r0); - { step = 1; continue; } - case 4: - r0 = globals.font8___530; - case 5: - return leave(s, r0) + r0 = (2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -image_getFontForText__P533.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +controller_Controller_up__P1931.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__P1931.isGetter = true; -function image_getFontForText__P533_mk(s) { +function controller_Controller_up__P1931_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P533, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P1931, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function controller_Controller_right__P1930(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, controller_Controller__C1920_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (3 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +controller_Controller_right__P1930.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__P1930.isGetter = true; + +function controller_Controller_right__P1930_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_right__P1930, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function controller_Controller_left__P1929(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, controller_Controller__C1920_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() +} } } +controller_Controller_left__P1929.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__P1929.isGetter = true; + +function controller_Controller_left__P1929_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_left__P1929, depth: s.depth + 1, pc: 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___20327: undefined, arg0: undefined, } } @@ -14925,7 +18019,7 @@ function image_getFontForText__P533_mk(s) { -function helpers_imageDrawLine__P519(s) { +function controller_Controller__controlledSprites__P1926(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14938,57 +18032,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P514_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 92; s.pc = 1; return s.tmp_2; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P2524_mk(s); + s.callLocIdx = 168; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P514_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 93; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = 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() } } } -helpers_imageDrawLine__P519.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"]} +controller_Controller__controlledSprites__P1926.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 helpers_imageDrawLine__P519_mk(s) { +function controller_Controller__controlledSprites__P1926_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P519, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P1926, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function helpers_pack__P514(s) { +function controller_Controller__controlledSprites__P1925(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15000,57 +18079,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P75_mk(s); - s.tmp_2.arg0 = -30000; - s.tmp_2.arg1 = 30000; - r0 = (s.arg0 | 0); - s.tmp_2.arg2 = r0; - s.callLocIdx = 87; s.pc = 1; return s.tmp_2; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P2524_mk(s); + s.callLocIdx = 167; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 65535); + r0 = r0.fields["controlledSprites"]; s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P75_mk(s); - s.tmp_5.arg0 = -30000; - s.tmp_5.arg1 = 30000; - r0 = (s.arg1 | 0); - s.tmp_5.arg2 = r0; - s.callLocIdx = 88; 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) + 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() } } } -helpers_pack__P514.info = {"start":3152,"length":145,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} +controller_Controller__controlledSprites__P1925.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__P1925.isGetter = true; -function helpers_pack__P514_mk(s) { +function controller_Controller__controlledSprites__P1925_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P514, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P1925, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_setFlag__P813(s) { +function controller_Button_pressureLevel__P1910(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15062,82 +18125,68 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | s.arg1); + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + r0 = pxsim.control.deviceDalVersion(); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (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__C1900_v0_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C1900_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + r0 = 512; { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["flags"]; - s.tmp_4 = r0; - r0 = (~ s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 | s.arg1); - s.tmp_2 = r0; - r0 = (~ s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + r0 = 0; case 2: - r0 = (s.arg1 === 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; + // 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["sayBubbleSprite"]; + r0 = s.arg0.fields["id"]; + s.tmp_5 = r0; + r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); + { step = 5; continue; } 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 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["sayBubbleSprite"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 512; - s.tmp_2.arg2 = s.arg2; - s.callLocIdx = 416; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - case 5: - case 6: r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -Sprite_setFlag__P813.info = {"start":23836,"length":292,"line":731,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} +controller_Button_pressureLevel__P1910.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} -function Sprite_setFlag__P813_mk(s) { +function controller_Button_pressureLevel__P1910_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P813, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P1910, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tileworld_Project_getWorldBackgrounds__P6116(s) { +function controller_Button_isPressed__P1909(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15152,17 +18201,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = s.arg0.fields["_backgrounds"]; + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; return leave(s, r0) default: oops() } } } -tileworld_Project_getWorldBackgrounds__P6116.info = {"start":2871,"length":78,"line":83,"column":8,"endLine":85,"endColumn":9,"fileName":"project.ts","functionName":"getWorldBackgrounds","argumentNames":["this"]} +controller_Button_isPressed__P1909.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function tileworld_Project_getWorldBackgrounds__P6116_mk(s) { +function controller_Button_isPressed__P1909_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_getWorldBackgrounds__P6116, depth: s.depth + 1, + parent: s, fn: controller_Button_isPressed__P1909, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -15171,7 +18220,7 @@ function tileworld_Project_getWorldBackgrounds__P6116_mk(s) { -function tileworld_RuleVisualsBase_drawImage__P10850(s) { +function Fx_imul__P153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15184,48 +18233,125 @@ 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, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___578; - s.tmp_1 = r0 = s.arg3; - r0 = (s.arg1 << 4); + r0 = pxsim.Math_.imul(s.arg0, s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_imul__P153.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} + +function Fx_imul__P153_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_imul__P153, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function power_checkDeepSleep__P1703(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.p___24242 = undefined; + s.to___24245 = undefined; + s.tmp_0 = power_init__P4020_mk(s); + s.callLocIdx = 86; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = r0 = globals._poked___4018; + 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___24242 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___4019; + 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___24245 = (s.tmp_1); + r0 = (s.to___24245 > 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.arg2 << 4); - s.tmp_4 = r0; - r0 = (6 + s.tmp_4); + r0 = (s.tmp_2 - s.p___24242); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.to___24245); + case 6: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3); + 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() } } } -tileworld_RuleVisualsBase_drawImage__P10850.info = {"start":4359,"length":136,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawImage","argumentNames":["this","c","r","img"]} +power_checkDeepSleep__P1703.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function tileworld_RuleVisualsBase_drawImage__P10850_mk(s) { +function power_checkDeepSleep__P1703_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_drawImage__P10850, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P1703, depth: s.depth + 1, pc: 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, + tmp_5: undefined, + tmp_6: undefined, + p___24242: undefined, + to___24245: undefined, } } -function helpers_imagePrint__P541(s) { +function power_init__P4020(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15235,506 +18361,281 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___24844 = undefined; - s.cp___24846 = undefined; - s.mult___24847 = undefined; - s.dataW___24853 = undefined; - s.dataH___24859 = undefined; - s.byteHeight___24865 = undefined; - s.charSize___24871 = undefined; - s.dataSize___24875 = undefined; - s.fontdata___24879 = undefined; - s.lastchar___24883 = undefined; - s.imgBuf___24890 = undefined; - s.xOffset___24914 = undefined; - s.yOffset___24915 = undefined; - s.ch___24931 = undefined; - s.l___24950 = undefined; - s.r___24951 = undefined; - s.off___24953 = undefined; - s.guess___24954 = undefined; - s.m___24974 = undefined; - s.v___24983 = undefined; - s.i___25041 = undefined; - s.j___25046 = undefined; - s.mask___25047 = undefined; - s.c___25048 = undefined; - s.n___25065 = 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 = (globals._timeout___4019 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P533_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 108; s.pc = 39; return s.tmp_2; - case 39: - r0 = s.retval; - s.arg5 = (r0); + { step = 7; continue; } case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.arg4); + r0 = pxsim_pxtcore.getConfig(212, -1); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 * 1000); + globals._timeout___4019 = (r0); + r0 = (globals._timeout___4019 > 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg4 = (1); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } case 3: + r0 = (globals._timeout___4019 < 300000); case 4: - s.x0___24844 = (s.arg2); - s.cp___24846 = (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 = 109; s.pc = 40; return s.tmp_1; } - } - case 40: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 5; continue; } - 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 = 110; s.pc = 41; return s.tmp_2; } - } - case 41: - r0 = s.retval; - { step = 6; continue; } + globals._timeout___4019 = (300000); case 5: - r0 = 1; case 6: - // jmp value (already in r0) - s.tmp_3 = r0; - s.mult___24847 = (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 = 111; s.pc = 42; return s.tmp_1; } - } - case 42: + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +power_init__P4020.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} + +function power_init__P4020_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: power_init__P4020, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + + + + + +function power_poke__P1702(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 = power_init__P4020_mk(s); + s.callLocIdx = 85; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___24847); - s.dataW___24853 = (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 = 112; s.pc = 43; return s.tmp_1; } + r0 = pxsim.control.millis(); + globals._poked___4018 = (r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +power_poke__P1702.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} + +function power_poke__P1702_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: power_poke__P1702, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function control_EventContext_deltaTime__P386(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 43: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___24847); - s.dataH___24859 = (r0); - r0 = (s.dataH___24859 + 7); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C381_VT)) failedCast(r0); + r0 = s.arg0.fields["deltaTimeMillis"]; s.tmp_0 = r0; - r0 = (s.tmp_0 >> 3); - s.byteHeight___24865 = (r0); - r0 = (s.byteHeight___24865 * s.dataW___24853); - s.charSize___24871 = (r0); - r0 = (2 + s.charSize___24871); - s.dataSize___24875 = (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 = 113; s.pc = 44; return s.tmp_0; } + r0 = (s.tmp_0 / 1000); + return leaveAccessor(s, r0) + default: oops() +} } } +control_EventContext_deltaTime__P386.info = {"start":1995,"length":75,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} +control_EventContext_deltaTime__P386.isGetter = true; + +function control_EventContext_deltaTime__P386_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventContext_deltaTime__P386, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function scene_Scene_constructor__P2432(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; } - case 44: + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C2411_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__C2170_VT); + s.tmp_0 = r0; + s.tmp_1 = ArcadePhysicsEngine_constructor__P2171_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 = 814; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - s.fontdata___24879 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___24879); - s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___24875); + r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C2352_VT); s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.lastchar___24883 = (r0); - r0 = (s.mult___24847 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (8 + s.charSize___24871); - s.tmp_1 = r0; - r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___24890 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___24890, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___24890, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___24890, 2, s.dataW___24853); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___24890, 4, s.dataH___24859); - case 7: - case 8: - case 9: - s.tmp_1 = r0 = s.cp___24846; - 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___24914 = (0); - s.yOffset___24915 = (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___24846; - 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___24846); - 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 = 114; s.pc = 45; return s.tmp_4; } - } - case 45: - r0 = s.retval; - s.xOffset___24914 = (r0); - s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___24846); - 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 = 115; s.pc = 46; return s.tmp_0; } - } - case 46: + s.tmp_1 = scene_Camera_constructor__P2356_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 815; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - s.yOffset___24915 = (r0); - case 12: - case 13: - s.tmp_0 = r0 = s.cp___24846; - r0 = (s.tmp_0 + 1); - s.cp___24846 = (r0); - r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___24931 = (r0); - r0 = (s.ch___24931 == 10); + r0 = (s.arg0).fields["camera"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C2262_VT); 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 = 116; s.pc = 47; return s.tmp_4; } - } - case 47: + s.tmp_1 = scene_Background_constructor__P2266_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["camera"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 816; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.arg3 = (r0); - s.arg2 = (s.x0___24844); - case 14: - case 15: - r0 = (s.ch___24931 < 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___24950 = (0); - s.r___24951 = (s.lastchar___24883); - s.off___24953 = (0); - r0 = (s.ch___24931 - 32); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___24875); - s.guess___24954 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___24879, 4, s.guess___24954); + 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_1 == s.ch___24931); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.off___24953 = (s.guess___24954); - { step = 25; continue; } - case 18: - case 19: - r0 = (s.l___24950 <= s.r___24951); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___24950; - r0 = (s.r___24951 - s.l___24950); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.m___24974 = (r0); - s.tmp_0 = r0 = s.fontdata___24879; - r0 = (s.m___24974 * s.dataSize___24875); + r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___24983 = (r0); - r0 = (s.v___24983 == s.ch___24931); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.m___24974 * s.dataSize___24875); - s.off___24953 = (r0); - { step = 24; continue; } - case 20: - case 21: - r0 = (s.v___24983 < s.ch___24931); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.m___24974 + 1); - s.l___24950 = (r0); - { step = 23; continue; } - case 22: - r0 = (s.m___24974 - 1); - s.r___24951 = (r0); - case 23: - { step = 19; continue; } - case 24: - case 25: - r0 = (s.mult___24847 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___24890; - s.tmp_3 = r0 = s.fontdata___24879; - r0 = (s.off___24953 + 2); - s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___24871); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P516_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___24890; - r0 = (s.arg2 + s.xOffset___24914); - s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___24915); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg4; - s.callLocIdx = 117; 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 = 118; s.pc = 49; return s.tmp_2; } - } - case 49: - r0 = s.retval; + 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 + s.tmp_1); - s.arg2 = (r0); - { step = 37; continue; } - case 26: - r0 = (s.off___24953 + 2); - s.off___24953 = (r0); - s.i___25041 = (0); - case 27: - r0 = (s.i___25041 < s.dataW___24853); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 36; continue; } - s.j___25046 = (0); - s.mask___25047 = (1); - s.tmp_0 = r0 = s.off___24953; - r0 = (s.tmp_0 + 1); - s.off___24953 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___24879, s.tmp_0); - s.c___25048 = (r0); - case 28: - r0 = (s.j___25046 < s.dataH___24859); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 35; continue; } - r0 = (s.mask___25047 == 256); + r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___24953; - r0 = (s.tmp_2 + 1); - s.off___24953 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___24879, s.tmp_2); - s.c___25048 = (r0); - s.mask___25047 = (1); - case 29: - case 30: - s.n___25065 = (0); - case 31: - r0 = (s.c___25048 & s.mask___25047); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 32; continue; } - r0 = (s.n___25065 + 1); - s.n___25065 = (r0); - r0 = (s.mask___25047 << 1); - s.mask___25047 = (r0); - { step = 31; continue; } - case 32: - r0 = pxsim_numops_toBoolDecr(s.n___25065); - if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___24914 * s.mult___24847); - 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___25046 + s.yOffset___24915); - s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___24847); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___24847; - r0 = (s.mult___24847 * s.n___25065); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg4; - s.callLocIdx = 119; s.pc = 50; return s.tmp_0; - case 50: - r0 = s.retval; - r0 = (s.j___25046 + s.n___25065); - s.j___25046 = (r0); - { step = 34; continue; } - case 33: - r0 = (s.mask___25047 << 1); - s.mask___25047 = (r0); - r0 = (s.j___25046 + 1); - s.j___25046 = (r0); - case 34: - { step = 28; continue; } - case 35: - r0 = (s.arg2 + s.mult___24847); - s.arg2 = (r0); - r0 = (s.i___25041 + 1); - s.i___25041 = (r0); - { step = 27; continue; } - case 36: - case 37: - { step = 9; continue; } - case 38: + 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_imagePrint__P541.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"]} +scene_Scene_constructor__P2432.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_imagePrint__P541_mk(s) { +function scene_Scene_constructor__P2432_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P541, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P2432, depth: s.depth + 1, pc: 0, retval: undefined, 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___24844: undefined, - cp___24846: undefined, - mult___24847: undefined, - dataW___24853: undefined, - dataH___24859: undefined, - byteHeight___24865: undefined, - charSize___24871: undefined, - dataSize___24875: undefined, - fontdata___24879: undefined, - lastchar___24883: undefined, - imgBuf___24890: undefined, - xOffset___24914: undefined, - yOffset___24915: undefined, - ch___24931: undefined, - l___24950: undefined, - r___24951: undefined, - off___24953: undefined, - guess___24954: undefined, - m___24974: undefined, - v___24983: undefined, - i___25041: undefined, - j___25046: undefined, - mask___25047: undefined, - c___25048: undefined, - n___25065: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function helpers_imageDrawIcon__P516(s) { +function scene_Camera_constructor__P2356(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__C2352_VT)) failedCast(r0); + r0 = (s.arg0).fields["_offsetX"] = (0); + r0 = (s.arg0).fields["_offsetY"] = (0); + r0 = (s.arg0).fields["drawOffsetX"] = (0); + r0 = (s.arg0).fields["drawOffsetY"] = (0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Camera_constructor__P2356.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} + +function scene_Camera_constructor__P2356_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_constructor__P2356, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Background_constructor__P2266(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15747,48 +18648,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C2262_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (0); + r0 = (s.arg0).fields["camera"] = (s.arg1); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P514_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 89; 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 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageDrawIcon__P516.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"]} +scene_Background_constructor__P2266.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 helpers_imageDrawIcon__P516_mk(s) { +function scene_Background_constructor__P2266_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P516, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P2266, depth: s.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_imageFillRect__P517(s) { +function ArcadePhysicsEngine_constructor__P2171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15803,55 +18694,65 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + r0 = undefined; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P514_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 90; s.pc = 1; return s.tmp_2; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C2091_VT); + s.tmp_0 = r0; + s.tmp_1 = sprites_SpriteMap_constructor__P2092_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 503; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P514_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 91; s.pc = 2; return s.tmp_4; + r0 = (s.arg0).fields["map"] = (s.tmp_0); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P2173_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 504; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P2177_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 505; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_minStep__P2175_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 506; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P517.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"]} +ArcadePhysicsEngine_constructor__P2171.info = {"start":1330,"length":277,"line":55,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} -function helpers_imageFillRect__P517_mk(s) { +function ArcadePhysicsEngine_constructor__P2171_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P517, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P2171, depth: s.depth + 1, pc: 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 tileworld_Project_saveHelp__P6124(s) { +function ArcadePhysicsEngine_maxStep__P2177(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15863,73 +18764,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = s.arg0.fields["help"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 1; - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_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; - s.tmp_2 = settings_writeNumber__P613_mk(s); - r0 = s.arg0.fields["prefix"]; - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 4: - r0 = s.retval; - s.tmp_3 = r0; - if ((globals.HelpKey___6366) && (globals.HelpKey___6366).vtable) { - setupResume(s, 5); - pxsim_String__stringConv(globals.HelpKey___6366); - checkResumeConsumed(); - return; - } else { s.retval = (globals.HelpKey___6366) + ""; } - case 5: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 191; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; + r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_Project_saveHelp__P6124.info = {"start":5396,"length":103,"line":153,"column":8,"endLine":155,"endColumn":9,"fileName":"project.ts","functionName":"saveHelp","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P2177.info = {"start":2058,"length":67,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} -function tileworld_Project_saveHelp__P6124_mk(s) { +function ArcadePhysicsEngine_maxStep__P2177_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_saveHelp__P6124, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P2177, depth: s.depth + 1, pc: 0, retval: undefined, 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 settings_writeNumber__P613(s) { +function ArcadePhysicsEngine_maxStep__P2176(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15941,46 +18809,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + r0 = s.arg0.fields["maxSingleStep"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_1 = settings_writeBuffer__P611_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P139_mk(s); - s.tmp_2.arg0 = s.tmp_0; - s.callLocIdx = 133; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 134; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -settings_writeNumber__P613.info = {"start":2087,"length":122,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} +ArcadePhysicsEngine_maxStep__P2176.info = {"start":1978,"length":74,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P2176.isGetter = true; -function settings_writeNumber__P613_mk(s) { +function ArcadePhysicsEngine_maxStep__P2176_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P613, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P2176, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function settings_writeBuffer__P611(s) { +function Fx_toInt__P162(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15992,38 +18850,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.settings._set(s.arg0, s.arg1); + r0 = (s.arg0 + 128); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.settings._userClean(); - r0 = pxsim_pxtrt.panic(920); - case 1: - case 2: - r0 = undefined; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -settings_writeBuffer__P611.info = {"start":1538,"length":290,"line":63,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeBuffer","argumentNames":["key","value"]} +Fx_toInt__P162.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} -function settings_writeBuffer__P611_mk(s) { +function Fx_toInt__P162_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P611, depth: s.depth + 1, + parent: s, fn: Fx_toInt__P162, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function msgpack_packNumberArray__P139(s) { +function ArcadePhysicsEngine_minStep__P2175(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16033,108 +18883,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___25591 = undefined; - s.n___25593 = undefined; - s.unnamed44___U2 = undefined; - s.unnamed45___U3 = undefined; - s.buf___25603 = undefined; - s.n___25609 = undefined; - s.unnamed46___U6 = undefined; - s.unnamed47___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.off___25591 = (0); - s.n___25593 = (undefined); - s.unnamed44___U2 = (s.arg0); - s.unnamed45___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed45___U3; - r0 = pxsim_Array__length(s.unnamed44___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed44___U2, s.unnamed45___U3); - s.n___25593 = (r0); - s.tmp_2 = r0 = s.off___25591; - s.tmp_4 = msgpack_packNumberCore__P137_mk(s); - s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___25591; - s.tmp_4.arg2 = s.n___25593; - s.callLocIdx = 23; 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___25591 = (r0); - r0 = (s.unnamed45___U3 + 1); - s.unnamed45___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed44___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___25591); - s.buf___25603 = (r0); - s.off___25591 = (0); - s.n___25609 = (undefined); - s.unnamed46___U6 = (s.arg0); - s.unnamed47___U7 = (0); - case 3: - s.tmp_0 = r0 = s.unnamed47___U7; - r0 = pxsim_Array__length(s.unnamed46___U6); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_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 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed46___U6, s.unnamed47___U7); - s.n___25609 = (r0); - s.tmp_2 = r0 = s.off___25591; - s.tmp_4 = msgpack_packNumberCore__P137_mk(s); - s.tmp_4.arg0 = s.buf___25603; - s.tmp_4.arg1 = s.off___25591; - s.tmp_4.arg2 = s.n___25609; - s.callLocIdx = 24; 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___25591 = (r0); - r0 = (s.unnamed47___U7 + 1); - s.unnamed47___U7 = (r0); - { step = 3; continue; } - case 4: - s.unnamed46___U6 = (undefined); - r0 = s.buf___25603; + r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P139.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} +ArcadePhysicsEngine_minStep__P2175.info = {"start":1905,"length":67,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} -function msgpack_packNumberArray__P139_mk(s) { +function ArcadePhysicsEngine_minStep__P2175_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P139, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P2175, depth: s.depth + 1, pc: 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___25591: undefined, - n___25593: undefined, - unnamed44___U2: undefined, - unnamed45___U3: undefined, - buf___25603: undefined, - n___25609: undefined, - unnamed46___U6: undefined, - unnamed47___U7: undefined, arg0: undefined, + arg1: undefined, } } -function msgpack_packNumberCore__P137(s) { +function ArcadePhysicsEngine_minStep__P2174(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16144,154 +18928,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___25623 = undefined; - s.fmt___25666 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___25623 = (203); - s.tmp_1 = r0 = s.arg2; - r0 = (s.arg2 << 0); - s.tmp_2 = r0; - r0 = (s.tmp_1 == s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + r0 = s.arg0.fields["minSingleStep"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_3 = r0 = s.arg2; - r0 = (s.arg2 >>> 0); - s.tmp_4 = r0; - r0 = (s.tmp_3 == s.tmp_4); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 19; continue; } - r0 = (-31 <= s.arg2); - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (r0) { step = 3; continue; } - r0 = s.tmp_6; - { step = 4; continue; } - case 3: - r0 = (s.arg2 <= 127); - case 4: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 5; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.arg2); - case 5: - case 6: - r0 = 1; - { step = 23; continue; } - { step = 18; continue; } - case 7: - r0 = (0 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = (s.arg2 <= 255); + r0 = (s.tmp_0 + 128); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 8; continue; } - s.tag___25623 = (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___25623 = (205); - { step = 10; continue; } - case 9: - s.tag___25623 = (206); - case 10: - case 11: - { step = 17; continue; } - case 12: - r0 = (-127 <= s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tag___25623 = (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___25623 = (209); - { step = 15; continue; } - case 14: - s.tag___25623 = (210); - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - s.tmp_0 = msgpack_tagFormat__P136_mk(s); - s.tmp_0.arg0 = s.tag___25623; - s.callLocIdx = 19; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.fmt___25666 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); - if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___25623); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___25666; - 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__P129_mk(s); - s.tmp_1.arg0 = s.fmt___25666; - s.callLocIdx = 20; s.pc = 25; return s.tmp_1; - case 25: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - case 23: - return leave(s, r0) + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -msgpack_packNumberCore__P137.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"]} +ArcadePhysicsEngine_minStep__P2174.info = {"start":1825,"length":74,"line":73,"column":4,"endLine":75,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P2174.isGetter = true; -function msgpack_packNumberCore__P137_mk(s) { +function ArcadePhysicsEngine_minStep__P2174_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P137, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P2174, depth: s.depth + 1, pc: 0, retval: undefined, 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, - tag___25623: undefined, - fmt___25666: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function msgpack_tagFormat__P136(s) { +function ArcadePhysicsEngine_maxSpeed__P2173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16303,70 +18971,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, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(203, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(204, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(205, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(206, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(208, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(209, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(210, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 1: - r0 = 16; - { step = 9; continue; } - case 2: - r0 = 7; - { step = 9; continue; } - case 3: - r0 = 9; - { step = 9; continue; } - case 4: - r0 = 12; - { step = 9; continue; } - case 5: - r0 = 6; - { step = 9; continue; } - case 6: - r0 = 8; - { step = 9; continue; } - case 7: - r0 = 10; - { step = 9; continue; } - case 8: - r0 = null; - { step = 9; continue; } + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); r0 = undefined; - case 9: return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P136.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} +ArcadePhysicsEngine_maxSpeed__P2173.info = {"start":1692,"length":127,"line":68,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} -function msgpack_tagFormat__P136_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P2173_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P136, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2173, 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 pins_sizeOf__P129(s) { +function Fx_neg__P147(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16380,22 +19024,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Buffer_sizeOfNumberFormat__P160_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 18; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = (0 - s.arg0); return leave(s, r0) default: oops() } } } -pins_sizeOf__P129.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} +Fx_neg__P147.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} -function pins_sizeOf__P129_mk(s) { +function Fx_neg__P147_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P129, depth: s.depth + 1, + parent: s, fn: Fx_neg__P147, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -16403,7 +19042,7 @@ function pins_sizeOf__P129_mk(s) { -function Buffer_sizeOfNumberFormat__P160(s) { +function ArcadePhysicsEngine_maxSpeed__P2172(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16417,79 +19056,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(7, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(8, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); - if (r0) { step = 10; continue; } - r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); - if (r0) { step = 11; continue; } - r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); - if (r0) { step = 12; continue; } - r0 = pxsim_pxtcore.switch_eq(15, s.tmp_0); - if (r0) { step = 13; continue; } - r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); - if (r0) { step = 14; continue; } - r0 = pxsim_pxtcore.switch_eq(16, s.tmp_0); - if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq(14, s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 1: - case 2: - case 3: - case 4: - r0 = 1; - { step = 18; continue; } - case 5: - case 6: - case 7: - case 8: - r0 = 2; - { step = 18; continue; } - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - r0 = 4; - { step = 18; continue; } - case 15: - case 16: - r0 = 8; - { step = 18; continue; } - case 17: - r0 = 0; - case 18: - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P160.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} +ArcadePhysicsEngine_maxSpeed__P2172.info = {"start":1613,"length":73,"line":64,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} +ArcadePhysicsEngine_maxSpeed__P2172.isGetter = true; -function Buffer_sizeOfNumberFormat__P160_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P2172_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P160, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P2172, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -16497,7 +19083,7 @@ function Buffer_sizeOfNumberFormat__P160_mk(s) { -function settings_clear__P610(s) { +function PhysicsEngine_constructor__P2157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16507,25 +19093,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim.settings._userClean(); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -settings_clear__P610.info = {"start":1414,"length":58,"line":56,"column":4,"endLine":58,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"clear","argumentNames":[]} +PhysicsEngine_constructor__P2157.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} -function settings_clear__P610_mk(s) { +function PhysicsEngine_constructor__P2157_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_clear__P610, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_constructor__P2157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, } } -function game_popScene__P1293(s) { +function sprites_SpriteMap_constructor__P2092(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16535,84 +19127,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___23875 = undefined; - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 858; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.oldScene___23875 = (r0); - s.tmp_0 = r0 = globals._sceneStack___1281; - 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___1281); - case 2: - // jmp value (already in r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = pxsim_Array_.pop(globals._sceneStack___1281); - globals._scene___1280 = (r0); - s.tmp_0 = control_popEventContext__P305_mk(s); - s.callLocIdx = 859; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___1280); - if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P305_mk(s); - s.callLocIdx = 860; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - globals._scene___1280 = (undefined); - case 4: - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___1280); - if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P1751_mk(s); - s.callLocIdx = 861; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___1283); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P23896); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___23875); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___1283; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 863; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - case 9: - case 10: + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_popScene__P1293.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +sprites_SpriteMap_constructor__P2092.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} -function game_popScene__P1293_mk(s) { +function sprites_SpriteMap_constructor__P2092_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P1293, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_constructor__P2092, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___23875: undefined, + arg0: undefined, } } -function inline__P23896(s) { +function music_Melody_constructor__P1598(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16624,35 +19169,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 862; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, music_Melody__C1595_VT)) failedCast(r0); + r0 = (s.arg0).fields["_text"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P23896.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +music_Melody_constructor__P1598.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 inline__P23896_mk(s) { +function music_Melody_constructor__P1598_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23896, depth: s.depth + 1, + parent: s, fn: music_Melody_constructor__P1598, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function particles_enableAll__P1751(s) { +function control_pushEventContext__P395(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16662,46 +19204,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___23900 = undefined; - s.tmp_0 = particles_particleSources__P1752_mk(s); - s.callLocIdx = 1118; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___23900 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___23900); + s.ctx___25247 = undefined; + s.n___25253 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___3961); + 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_0 = helpers_arrayForEach__P60_mk(s); - s.tmp_0.arg0 = s.sources___23900; - s.tmp_0.arg1 = inline__P23906; - s.callLocIdx = 1120; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P1739_mk(s); - s.callLocIdx = 1121; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + r0 = pxsim_Array__mk(); + globals.eventContexts___3961 = (r0); case 1: case 2: - r0 = undefined; + s.tmp_0 = control_eventContext__P394_mk(s); + s.callLocIdx = 66; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.ctx___25247 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___25247); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_EventContext_unregister__P388_mk(s); + s.tmp_0.arg0 = s.ctx___25247; + s.callLocIdx = 67; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C381_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventContext_constructor__P385_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 68; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___25253 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___3961, s.n___25253); + r0 = s.n___25253; return leave(s, r0) default: oops() } } } -particles_enableAll__P1751.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +control_pushEventContext__P395.info = {"start":7021,"length":340,"line":213,"column":4,"endLine":224,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} -function particles_enableAll__P1751_mk(s) { +function control_pushEventContext__P395_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P1751, depth: s.depth + 1, + parent: s, fn: control_pushEventContext__P395, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___23900: undefined, + tmp_1: undefined, + ctx___25247: undefined, + n___25253: undefined, } } -function inline__P23906(s) { +function control_EventContext_unregister__P388(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16711,28 +19270,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___25279 = undefined; + s.unnamed52___U1 = undefined; + s.unnamed53___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P1724_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1119; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C381_VT)) failedCast(r0); + s.h___25279 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed52___U1 = (r0); + s.unnamed53___U2 = (0); case 1: + s.tmp_0 = r0 = s.unnamed53___U2; + r0 = pxsim_Array__length(s.unnamed52___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed52___U1, s.unnamed53___U2); + s.h___25279 = (r0); + s.tmp_2 = control_EventHandler_unregister__P3955_mk(s); + s.tmp_2.arg0 = s.h___25279; + s.callLocIdx = 62; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; - r0 = true; + r0 = (s.unnamed53___U2 + 1); + s.unnamed53___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed52___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() } } } -inline__P23906.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +control_EventContext_unregister__P388.info = {"start":4432,"length":131,"line":134,"column":8,"endLine":138,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function inline__P23906_mk(s) { +function control_EventContext_unregister__P388_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23906, depth: s.depth + 1, + parent: s, fn: control_EventContext_unregister__P388, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___25279: undefined, + unnamed52___U1: undefined, + unnamed53___U2: undefined, arg0: undefined, } } @@ -16740,7 +19331,7 @@ function inline__P23906_mk(s) { -function control_popEventContext__P305(s) { +function control_EventHandler_unregister__P3955(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16750,75 +19341,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___23913 = undefined; - s.context___23921 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___302); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C3953_VT)) failedCast(r0); + r0 = s.arg0.fields["src"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: - case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___302); - s.ctx___23913 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___23913); + r0 = s.arg0.fields["value"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - { step = 7; continue; } - case 3: - case 4: - s.tmp_2 = control_EventContext_unregister__P292_mk(s); - s.tmp_2.arg0 = s.ctx___23913; - s.callLocIdx = 69; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___302; - r0 = pxsim_Array__length(globals.eventContexts___302); + r0 = s.arg0.fields["flags"]; 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___23921 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___23921); - if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P291_mk(s); - s.tmp_0.arg0 = s.context___23921; - s.callLocIdx = 70; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - { step = 6; continue; } - case 5: - globals.eventContexts___302 = (undefined); - case 6: - case 7: + r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P3957, s.tmp_2); r0 = undefined; return leave(s, r0) default: oops() } } } -control_popEventContext__P305.info = {"start":7466,"length":413,"line":229,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +control_EventHandler_unregister__P3955.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function control_popEventContext__P305_mk(s) { +function control_EventHandler_unregister__P3955_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P305, depth: s.depth + 1, + parent: s, fn: control_EventHandler_unregister__P3955, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ctx___23913: undefined, - context___23921: undefined, + arg0: undefined, } } -function control_EventContext_register__P291(s) { +function control_doNothing__P3957(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16828,67 +19385,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___23934 = undefined; - s.unnamed50___U1 = undefined; - s.unnamed51___U2 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C287_VT)) failedCast(r0); - s.h___23934 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed50___U1 = (r0); - s.unnamed51___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed51___U2; - r0 = pxsim_Array__length(s.unnamed50___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed50___U1, s.unnamed51___U2); - s.h___23934 = (r0); - s.tmp_2 = control_EventHandler_register__P283_mk(s); - s.tmp_2.arg0 = s.h___23934; - s.callLocIdx = 60; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - r0 = (s.unnamed51___U2 + 1); - s.unnamed51___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed50___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P290_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 61; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_register__P291.info = {"start":4284,"length":138,"line":128,"column":8,"endLine":132,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +control_doNothing__P3957.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} -function control_EventContext_register__P291_mk(s) { +function control_doNothing__P3957_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P291, depth: s.depth + 1, + parent: s, fn: control_doNothing__P3957, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - h___23934: undefined, - unnamed50___U1: undefined, - unnamed51___U2: undefined, - arg0: undefined, } } -function settings_remove__P620(s) { +function control_EventContext_constructor__P385(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16902,18 +19416,30 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim.settings._remove(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C381_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 = undefined; return leave(s, r0) default: oops() } } } -settings_remove__P620.info = {"start":3702,"length":64,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"remove","argumentNames":["key"]} +control_EventContext_constructor__P385.info = {"start":1740,"length":245,"line":58,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function settings_remove__P620_mk(s) { +function control_EventContext_constructor__P385_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_remove__P620, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P385, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -16921,7 +19447,7 @@ function settings_remove__P620_mk(s) { -function helpers_arrayForEach__P60(s) { +function image_getFontForText__P1744(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16931,58 +19457,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___25794 = undefined; - s.i___25797 = undefined; + s.i___22093 = 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___25794 = (r0); - s.i___25797 = (0); + s.i___22093 = (0); case 1: - r0 = (s.i___25797 < s.len___25794); + s.tmp_1 = r0 = s.i___22093; + 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___22093); + 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; } - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___25797); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___25797; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 6; s.pc = 3; return s.tmp_1; + r0 = globals.font12___1743; + { step = 5; continue; } + case 2: case 3: - r0 = s.retval; - r0 = (s.i___25797 + 1); - s.i___25797 = (r0); + r0 = (s.i___22093 + 1); + s.i___22093 = (r0); { step = 1; continue; } - case 2: - r0 = undefined; + case 4: + r0 = globals.font8___1742; + case 5: return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P60.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"]} +image_getFontForText__P1744.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} -function helpers_arrayForEach__P60_mk(s) { +function image_getFontForText__P1744_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P60, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P1744, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___25794: undefined, - i___25797: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + i___22093: undefined, arg0: undefined, - arg1: undefined, } } -function settings_list__P619(s) { +function helpers_imageDrawLine__P1727(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16994,39 +19522,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_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; } - r0 = pxsim_String_.mkEmpty(); - s.arg0 = (r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P4029_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 92; s.pc = 1; return s.tmp_2; case 1: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = helpers_pack__P4029_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 93; s.pc = 2; return s.tmp_4; case 2: - r0 = pxsim.settings._list(s.arg0); + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods._drawLine(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = undefined; return leave(s, r0) default: oops() } } } -settings_list__P619.info = {"start":3544,"length":107,"line":140,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"list","argumentNames":["prefix"]} +helpers_imageDrawLine__P1727.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 settings_list__P619_mk(s) { +function helpers_imageDrawLine__P1727_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_list__P619, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P1727, depth: s.depth + 1, pc: 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 tileworld_RuleVisualsBase_setRow__P10847(s) { +function helpers_pack__P4029(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17041,34 +19588,45 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_0 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_0.arg0 = r0; - r0 = (s.arg1 << 4); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 6); - s.tmp_0.arg1 = r0; - s.callLocIdx = 679; s.pc = 1; return s.tmp_0; + s.tmp_2 = Math_clamp__P119_mk(s); + s.tmp_2.arg0 = -30000; + s.tmp_2.arg1 = 30000; + r0 = (s.arg0 | 0); + s.tmp_2.arg2 = r0; + s.callLocIdx = 87; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; - r0 = undefined; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 65535); + s.tmp_0 = r0; + s.tmp_5 = Math_clamp__P119_mk(s); + s.tmp_5.arg0 = -30000; + s.tmp_5.arg1 = 30000; + r0 = (s.arg1 | 0); + s.tmp_5.arg2 = r0; + s.callLocIdx = 88; 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() } } } -tileworld_RuleVisualsBase_setRow__P10847.info = {"start":3985,"length":92,"line":100,"column":8,"endLine":102,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setRow","argumentNames":["this","row"]} +helpers_pack__P4029.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 tileworld_RuleVisualsBase_setRow__P10847_mk(s) { +function helpers_pack__P4029_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_setRow__P10847, depth: s.depth + 1, + parent: s, fn: helpers_pack__P4029, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -17077,7 +19635,7 @@ function tileworld_RuleVisualsBase_setRow__P10847_mk(s) { -function Sprite_y__P773(s) { +function Sprite_setFlag__P2076(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17090,34 +19648,65 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P801_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 232; s.pc = 1; return s.tmp_0; + r0 = (s.tmp_2 | s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + { step = 2; continue; } case 1: + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["flags"]; + s.tmp_4 = r0; + r0 = (~ s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 | s.arg1); + s.tmp_2 = r0; + r0 = (~ s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 2: + r0 = (s.arg1 === 512); + 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["sayBubbleSprite"]; + 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 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["sayBubbleSprite"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 512; + s.tmp_2.arg2 = s.arg2; + s.callLocIdx = 416; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_y__P773.info = {"start":2023,"length":73,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +Sprite_setFlag__P2076.info = {"start":23834,"length":292,"line":731,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} -function Sprite_y__P773_mk(s) { +function Sprite_setFlag__P2076_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P773, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P2076, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17126,13 +19715,14 @@ function Sprite_y__P773_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Sprite_top__P801(s) { +function tileworld_Project_getWorldBackgrounds__P3688(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17142,62 +19732,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___24528 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 285; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___24528 = (r0); - s.tmp_0 = PhysicsEngine__C880_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___24528; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = 0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = s.arg0.fields["_y"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C880_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; - s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = s.arg0.fields["_backgrounds"]; return leave(s, r0) default: oops() } } } -Sprite_top__P801.info = {"start":9762,"length":256,"line":355,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} +tileworld_Project_getWorldBackgrounds__P3688.info = {"start":2871,"length":78,"line":83,"column":8,"endLine":85,"endColumn":9,"fileName":"project.ts","functionName":"getWorldBackgrounds","argumentNames":["this"]} -function Sprite_top__P801_mk(s) { +function tileworld_Project_getWorldBackgrounds__P3688_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P801, depth: s.depth + 1, + parent: s, fn: tileworld_Project_getWorldBackgrounds__P3688, depth: s.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___24528: undefined, arg0: undefined, - arg1: undefined, } } -function PhysicsEngine_moveSprite__P883(s) { +function tileworld_RuleVisualsBase_drawImage__P12696(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17215,18 +19774,32 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C880_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___1799; + s.tmp_1 = r0 = s.arg3; + r0 = (s.arg1 << 4); + s.tmp_2 = r0; + r0 = (s.arg2 << 4); + s.tmp_4 = r0; + r0 = (6 + s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_3); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P883.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"]} +tileworld_RuleVisualsBase_drawImage__P12696.info = {"start":4359,"length":136,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawImage","argumentNames":["this","c","r","img"]} -function PhysicsEngine_moveSprite__P883_mk(s) { +function tileworld_RuleVisualsBase_drawImage__P12696_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P883, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_drawImage__P12696, depth: s.depth + 1, pc: 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, @@ -17237,7 +19810,7 @@ function PhysicsEngine_moveSprite__P883_mk(s) { -function Fx_sub__P116(s) { +function helpers_imagePrint__P1757(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17247,31 +19820,506 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x0___26521 = undefined; + s.cp___26523 = undefined; + s.mult___26524 = undefined; + s.dataW___26529 = undefined; + s.dataH___26535 = undefined; + s.byteHeight___26541 = undefined; + s.charSize___26547 = undefined; + s.dataSize___26551 = undefined; + s.fontdata___26555 = undefined; + s.lastchar___26558 = undefined; + s.imgBuf___26565 = undefined; + s.xOffset___26589 = undefined; + s.yOffset___26590 = undefined; + s.ch___26605 = undefined; + s.l___26624 = undefined; + s.r___26625 = undefined; + s.off___26627 = undefined; + s.guess___26628 = undefined; + s.m___26647 = undefined; + s.v___26656 = undefined; + s.i___26712 = undefined; + s.j___26717 = undefined; + s.mask___26718 = undefined; + s.c___26719 = undefined; + s.n___26736 = 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 - s.arg1); + 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__P1744_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 108; s.pc = 39; return s.tmp_2; + case 39: + r0 = s.retval; + s.arg5 = (r0); + case 1: + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg4 = (1); + case 3: + case 4: + s.x0___26521 = (s.arg2); + s.cp___26523 = (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 = 109; s.pc = 40; return s.tmp_1; } + } + case 40: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = if_multiplier_1_mk(s); + s.tmp_2.arg0 = s.arg5; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 110; s.pc = 41; return s.tmp_2; } + } + case 41: + r0 = s.retval; + { step = 6; continue; } + case 5: + r0 = 1; + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + s.mult___26524 = (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 = 111; s.pc = 42; return s.tmp_1; } + } + case 42: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___26524); + s.dataW___26529 = (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 = 112; s.pc = 43; return s.tmp_1; } + } + case 43: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___26524); + s.dataH___26535 = (r0); + r0 = (s.dataH___26535 + 7); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 3); + s.byteHeight___26541 = (r0); + r0 = (s.byteHeight___26541 * s.dataW___26529); + s.charSize___26547 = (r0); + r0 = (2 + s.charSize___26547); + s.dataSize___26551 = (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 = 113; s.pc = 44; return s.tmp_0; } + } + case 44: + r0 = s.retval; + s.fontdata___26555 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___26555); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___26551); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.lastchar___26558 = (r0); + r0 = (s.mult___26524 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (8 + s.charSize___26547); + s.tmp_1 = r0; + r0 = pxsim.control.createBuffer(s.tmp_1); + s.imgBuf___26565 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___26565, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___26565, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___26565, 2, s.dataW___26529); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___26565, 4, s.dataH___26535); + case 7: + case 8: + case 9: + s.tmp_1 = r0 = s.cp___26523; + 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___26589 = (0); + s.yOffset___26590 = (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___26523; + 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___26523); + 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 = 114; s.pc = 45; return s.tmp_4; } + } + case 45: + r0 = s.retval; + s.xOffset___26589 = (r0); + s.tmp_0 = if_yOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___26523); + 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 = 115; s.pc = 46; return s.tmp_0; } + } + case 46: + r0 = s.retval; + s.yOffset___26590 = (r0); + case 12: + case 13: + s.tmp_0 = r0 = s.cp___26523; + r0 = (s.tmp_0 + 1); + s.cp___26523 = (r0); + r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); + s.ch___26605 = (r0); + r0 = (s.ch___26605 == 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 = 116; s.pc = 47; return s.tmp_4; } + } + case 47: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.arg3 = (r0); + s.arg2 = (s.x0___26521); + case 14: + case 15: + r0 = (s.ch___26605 < 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___26624 = (0); + s.r___26625 = (s.lastchar___26558); + s.off___26627 = (0); + r0 = (s.ch___26605 - 32); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.dataSize___26551); + s.guess___26628 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___26555, 4, s.guess___26628); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.ch___26605); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 18; continue; } + s.off___26627 = (s.guess___26628); + { step = 25; continue; } + case 18: + case 19: + r0 = (s.l___26624 <= s.r___26625); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 24; continue; } + s.tmp_1 = r0 = s.l___26624; + r0 = (s.r___26625 - s.l___26624); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.m___26647 = (r0); + s.tmp_0 = r0 = s.fontdata___26555; + r0 = (s.m___26647 * s.dataSize___26551); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); + s.v___26656 = (r0); + r0 = (s.v___26656 == s.ch___26605); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.m___26647 * s.dataSize___26551); + s.off___26627 = (r0); + { step = 24; continue; } + case 20: + case 21: + r0 = (s.v___26656 < s.ch___26605); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.m___26647 + 1); + s.l___26624 = (r0); + { step = 23; continue; } + case 22: + r0 = (s.m___26647 - 1); + s.r___26625 = (r0); + case 23: + { step = 19; continue; } + case 24: + case 25: + r0 = (s.mult___26524 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + s.tmp_1 = r0 = s.imgBuf___26565; + s.tmp_3 = r0 = s.fontdata___26555; + r0 = (s.off___26627 + 2); + s.tmp_4 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___26547); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); + s.tmp_0 = helpers_imageDrawIcon__P1724_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.imgBuf___26565; + r0 = (s.arg2 + s.xOffset___26589); + s.tmp_0.arg2 = r0; + r0 = (s.arg3 + s.yOffset___26590); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg4; + s.callLocIdx = 117; 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 = 118; 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___26627 + 2); + s.off___26627 = (r0); + s.i___26712 = (0); + case 27: + r0 = (s.i___26712 < s.dataW___26529); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 36; continue; } + s.j___26717 = (0); + s.mask___26718 = (1); + s.tmp_0 = r0 = s.off___26627; + r0 = (s.tmp_0 + 1); + s.off___26627 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___26555, s.tmp_0); + s.c___26719 = (r0); + case 28: + r0 = (s.j___26717 < s.dataH___26535); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 35; continue; } + r0 = (s.mask___26718 == 256); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 29; continue; } + s.tmp_2 = r0 = s.off___26627; + r0 = (s.tmp_2 + 1); + s.off___26627 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___26555, s.tmp_2); + s.c___26719 = (r0); + s.mask___26718 = (1); + case 29: + case 30: + s.n___26736 = (0); + case 31: + r0 = (s.c___26719 & s.mask___26718); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 32; continue; } + r0 = (s.n___26736 + 1); + s.n___26736 = (r0); + r0 = (s.mask___26718 << 1); + s.mask___26718 = (r0); + { step = 31; continue; } + case 32: + r0 = pxsim_numops_toBoolDecr(s.n___26736); + if (!r0) { step = 33; continue; } + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg2; + r0 = (s.xOffset___26589 * s.mult___26524); + 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___26717 + s.yOffset___26590); + s.tmp_5 = r0; + r0 = (s.tmp_5 * s.mult___26524); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.mult___26524; + r0 = (s.mult___26524 * s.n___26736); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg4; + s.callLocIdx = 119; s.pc = 50; return s.tmp_0; + case 50: + r0 = s.retval; + r0 = (s.j___26717 + s.n___26736); + s.j___26717 = (r0); + { step = 34; continue; } + case 33: + r0 = (s.mask___26718 << 1); + s.mask___26718 = (r0); + r0 = (s.j___26717 + 1); + s.j___26717 = (r0); + case 34: + { step = 28; continue; } + case 35: + r0 = (s.arg2 + s.mult___26524); + s.arg2 = (r0); + r0 = (s.i___26712 + 1); + s.i___26712 = (r0); + { step = 27; continue; } + case 36: + case 37: + { step = 9; continue; } + case 38: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_sub__P116.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +helpers_imagePrint__P1757.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 Fx_sub__P116_mk(s) { +function helpers_imagePrint__P1757_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P116, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P1757, depth: s.depth + 1, pc: 0, retval: undefined, 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___26521: undefined, + cp___26523: undefined, + mult___26524: undefined, + dataW___26529: undefined, + dataH___26535: undefined, + byteHeight___26541: undefined, + charSize___26547: undefined, + dataSize___26551: undefined, + fontdata___26555: undefined, + lastchar___26558: undefined, + imgBuf___26565: undefined, + xOffset___26589: undefined, + yOffset___26590: undefined, + ch___26605: undefined, + l___26624: undefined, + r___26625: undefined, + off___26627: undefined, + guess___26628: undefined, + m___26647: undefined, + v___26656: undefined, + i___26712: undefined, + j___26717: undefined, + mask___26718: undefined, + c___26719: undefined, + n___26736: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function Sprite_top__P800(s) { +function helpers_imageDrawIcon__P1724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17283,33 +20331,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = helpers_pack__P4029_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg3; + s.callLocIdx = 89; 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; + return leave(s, r0) default: oops() } } } -Sprite_top__P800.info = {"start":9619,"length":53,"line":350,"column":4,"endLine":352,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} -Sprite_top__P800.isGetter = true; +helpers_imageDrawIcon__P1724.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 Sprite_top__P800_mk(s) { +function helpers_imageDrawIcon__P1724_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P800, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P1724, depth: s.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 tileworld_RuleVisualsBase_setCol__P10846(s) { +function helpers_imageFillRect__P1725(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17322,42 +20386,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_0 = Sprite_x__P771_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_0.arg0 = r0; - r0 = (s.arg1 << 4); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 8); - s.tmp_0.arg1 = r0; - s.callLocIdx = 678; s.pc = 1; return s.tmp_0; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P4029_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 90; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = helpers_pack__P4029_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 91; 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() } } } -tileworld_RuleVisualsBase_setCol__P10846.info = {"start":3890,"length":85,"line":96,"column":8,"endLine":98,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setCol","argumentNames":["this","col"]} +helpers_imageFillRect__P1725.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 tileworld_RuleVisualsBase_setCol__P10846_mk(s) { +function helpers_imageFillRect__P1725_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_setCol__P10846, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P1725, depth: s.depth + 1, pc: 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 Sprite_x__P771(s) { +function tileworld_Project_saveHelp__P3704(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17369,50 +20448,73 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P797_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_image"]; + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = s.arg0.fields["help"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 1; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = settings_writeNumber__P1826_mk(s); + r0 = s.arg0.fields["prefix"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 4: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 230; s.pc = 1; return s.tmp_0; - case 1: + if ((globals.HelpKey___8342) && (globals.HelpKey___8342).vtable) { + setupResume(s, 5); + pxsim_String__stringConv(globals.HelpKey___8342); + checkResumeConsumed(); + return; + } else { s.retval = (globals.HelpKey___8342) + ""; } + case 5: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 191; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_x__P771.info = {"start":1673,"length":73,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} +tileworld_Project_saveHelp__P3704.info = {"start":5396,"length":103,"line":153,"column":8,"endLine":155,"endColumn":9,"fileName":"project.ts","functionName":"saveHelp","argumentNames":["this"]} -function Sprite_x__P771_mk(s) { +function tileworld_Project_saveHelp__P3704_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P771, depth: s.depth + 1, + parent: s, fn: tileworld_Project_saveHelp__P3704, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_left__P797(s) { +function settings_clear__P1823(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17422,62 +20524,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___20041 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 277; s.pc = 1; return s.tmp_0; - case 1: + r0 = pxsim.settings._userClean(); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +settings_clear__P1823.info = {"start":1414,"length":58,"line":56,"column":4,"endLine":58,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"clear","argumentNames":[]} + +function settings_clear__P1823_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_clear__P1823, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function game_popScene__P2529(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.oldScene___25573 = undefined; + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 860; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___20041 = (r0); - s.tmp_0 = PhysicsEngine__C880_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___20041; - s.tmp_0.arg1 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = s.arg0.fields["_x"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C880_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; - s.pc = 2; return s.tmp_0; + s.oldScene___25573 = (r0); + s.tmp_0 = r0 = globals._sceneStack___4275; + 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___4275); 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___4275); + globals._scene___4274 = (r0); + s.tmp_0 = control_popEventContext__P396_mk(s); + s.callLocIdx = 861; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(globals._scene___4274); + if (!r0) { step = 4; continue; } + s.tmp_0 = control_popEventContext__P396_mk(s); + s.callLocIdx = 862; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + globals._scene___4274 = (undefined); + case 4: + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(globals._scene___4274); + if (!r0) { step = 7; continue; } + s.tmp_0 = particles_enableAll__P2702_mk(s); + s.callLocIdx = 863; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___4277); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkAction(1, inline__P25594); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___25573); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___4277; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 865; s.pc = 15; return s.tmp_1; + case 15: r0 = s.retval; + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_left__P797.info = {"start":8958,"length":257,"line":325,"column":4,"endLine":335,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +game_popScene__P2529.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} -function Sprite_left__P797_mk(s) { +function game_popScene__P2529_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P797, depth: s.depth + 1, + parent: s, fn: game_popScene__P2529, depth: s.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___20041: undefined, - arg0: undefined, - arg1: undefined, + oldScene___25573: undefined, } } -function Sprite_left__P796(s) { +function inline__P25594(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17491,21 +20643,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + 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 = 864; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_left__P796.info = {"start":8814,"length":53,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} -Sprite_left__P796.isGetter = true; +inline__P25594.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function Sprite_left__P796_mk(s) { +function inline__P25594_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P796, depth: s.depth + 1, + parent: s, fn: inline__P25594, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -17515,7 +20669,7 @@ function Sprite_left__P796_mk(s) { -function tileworld_GameHome_constructor__P15722(s) { +function particles_enableAll__P2702(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17525,70 +20679,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_GameHome__C15718_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleVisualsBase_constructor__P10857_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1357; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1358; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1359; s.pc = 3; return s.tmp_0; + s.sources___25598 = undefined; + s.tmp_0 = particles_particleSources__P4635_mk(s); + s.callLocIdx = 1120; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P15732); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1387; s.pc = 4; return s.tmp_1; + s.sources___25598 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___25598); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + s.tmp_0.arg0 = s.sources___25598; + s.tmp_0.arg1 = inline__P25604; + s.callLocIdx = 1122; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P699_mk(s); - s.tmp_0.arg0 = globals.B___667; - s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P15835; - s.callLocIdx = 1389; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P4631_mk(s); + s.callLocIdx = 1123; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_GameHome_constructor__P15722.info = {"start":222,"length":2063,"line":6,"column":8,"endLine":56,"endColumn":9,"fileName":"home.ts","functionName":"inline","argumentNames":["this","p"]} +particles_enableAll__P2702.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} -function tileworld_GameHome_constructor__P15722_mk(s) { +function particles_enableAll__P2702_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_GameHome_constructor__P15722, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P2702, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, + sources___25598: undefined, } } -function inline__P15732(s) { +function inline__P25604(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17598,307 +20728,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___15733 = undefined; - s.command___15763 = undefined; - s.rules___15770 = undefined; - s.g___15778 = undefined; - r0 = s.caps[0].fields["dirMap"]; - s.tmp_0 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1360; s.pc = 22; return s.tmp_2; - case 22: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = particles_ParticleSource_enabled__P2683_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1121; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; + r0 = true; + return leave(s, r0) + default: oops() +} } } +inline__P25604.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__P25604_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P25604, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function control_popEventContext__P396(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.ctx___25611 = undefined; + s.context___25619 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___3961); s.tmp_1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1361; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.index___15733 = (r0); - r0 = (s.index___15733 != 15); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1362; s.pc = 24; return s.tmp_1; - case 24: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_Gallery__C15344_VT); - s.tmp_0 = r0; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_SwitchExport__C5978_VT); - s.tmp_1 = r0; - s.tmp_2 = tileworld_SwitchExport_constructor__P5982_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = s.caps[0].fields["p"]; - s.tmp_2.arg1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1363; s.pc = 26; return s.tmp_4; - case 26: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 3); - s.tmp_2.arg2 = r0; - s.callLocIdx = 1364; s.pc = 25; return s.tmp_2; - case 25: - r0 = s.retval; - s.tmp_7 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_7.arg0 = s.caps[0]; - s.tmp_7.arg1 = true; - s.callLocIdx = 1365; s.pc = 27; return s.tmp_7; - case 27: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 == 3); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 1; continue; } - r0 = globals.galleryTiles___7160; - { step = 2; continue; } + { step = 7; continue; } case 1: - r0 = globals.gallerySprites___7178; case 2: - // jmp value (already in r0) - s.tmp_8 = r0; - s.tmp_9 = tileworld_Gallery_constructor__P15347_mk(s); - s.tmp_9.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_9.arg1 = r0; - s.tmp_9.arg2 = s.index___15733; - s.tmp_9.arg3 = s.tmp_1; - s.tmp_9.arg4 = s.tmp_8; - s.callLocIdx = 1366; s.pc = 28; return s.tmp_9; - case 28: - r0 = s.retval; - { step = 21; continue; } + r0 = pxsim_Array_.pop(globals.eventContexts___3961); + s.ctx___25611 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___25611); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + { step = 7; continue; } case 3: case 4: - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1367; s.pc = 29; return s.tmp_2; - case 29: + s.tmp_2 = control_EventContext_unregister__P388_mk(s); + s.tmp_2.arg0 = s.ctx___25611; + s.callLocIdx = 69; s.pc = 8; return s.tmp_2; + case 8: r0 = s.retval; + s.tmp_0 = r0 = globals.eventContexts___3961; + r0 = pxsim_Array__length(globals.eventContexts___3961); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + s.context___25619 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___25619); if (!r0) { step = 5; continue; } - { step = 21; continue; } + s.tmp_0 = control_EventContext_register__P387_mk(s); + s.tmp_0.arg0 = s.context___25619; + s.callLocIdx = 70; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + { step = 6; continue; } case 5: + globals.eventContexts___3961 = (undefined); case 6: - s.tmp_3 = r0 = globals.commandImages___15713; - s.tmp_5 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_5.arg0 = s.caps[0]; - s.tmp_5.arg1 = true; - s.callLocIdx = 1368; s.pc = 30; return s.tmp_5; - case 30: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.command___15763 = (r0); - r0 = (s.command___15763 == globals.play___7220); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.caps[0].fields["p"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["rules"]; - s.rules___15770 = (r0); - r0 = pxsim_Array__length(s.rules___15770); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1370; s.pc = 31; return s.tmp_2; - case 31: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RunGame__C9491_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_RunGame_constructor__P9501_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.rules___15770; - s.tmp_1.arg3 = false; - s.callLocIdx = 1371; s.pc = 32; return s.tmp_1; - case 32: - r0 = s.retval; - s.g___15778 = (s.tmp_0); - s.tmp_0 = tileworld_RunGame_setWorld__P9495_mk(s); - s.tmp_0.arg0 = s.g___15778; - r0 = s.caps[0].fields["p"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_backgrounds"]; - s.tmp_0.arg1 = r0; - r0 = s.caps[0].fields["p"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_sprites"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 1374; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = tileworld_RunGame_start__P9497_mk(s); - s.tmp_0.arg0 = s.g___15778; - s.callLocIdx = 1375; s.pc = 34; return s.tmp_0; - case 34: - r0 = s.retval; case 7: - case 8: - { step = 20; continue; } - case 9: - r0 = (s.command___15763 == globals.map___7217); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_1 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1376; s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_MapEditor__C13477_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_MapEditor_constructor__P13492_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 1377; s.pc = 36; return s.tmp_1; - case 36: - r0 = s.retval; - { step = 19; continue; } - case 10: - r0 = (s.command___15763 == globals.paint___7229); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1378; s.pc = 37; return s.tmp_1; - case 37: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_ImageEditor__C10052_VT); - s.tmp_0 = r0; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_AllExport__C6025_VT); - s.tmp_1 = r0; - s.tmp_2 = tileworld_AllExport_constructor__P6030_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = s.caps[0].fields["p"]; - s.tmp_2.arg1 = r0; - s.callLocIdx = 1379; s.pc = 38; return s.tmp_2; - case 38: - r0 = s.retval; - s.tmp_3 = tileworld_ImageEditor_constructor__P10062_mk(s); - s.tmp_3.arg0 = s.tmp_0; - s.tmp_3.arg1 = s.tmp_1; - s.callLocIdx = 1380; s.pc = 39; return s.tmp_3; - case 39: - r0 = s.retval; - { step = 18; continue; } - case 11: - r0 = (s.command___15763 == globals.code___7226); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_1 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1381; s.pc = 40; return s.tmp_1; - case 40: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleRoom__C12555_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_ruleediting_RuleRoom_constructor__P12565_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 1382; s.pc = 41; return s.tmp_1; - case 41: - r0 = s.retval; - { step = 17; continue; } - case 12: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1383; s.pc = 42; return s.tmp_2; - case 42: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 9); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 13; continue; } - r0 = s.tmp_0; - { step = 14; continue; } - case 13: - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 1384; s.pc = 43; return s.tmp_4; - case 43: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 0); - case 14: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 15; continue; } - s.tmp_6 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1385; s.pc = 44; return s.tmp_6; - case 44: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_ProjectSettings__C15482_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_ProjectSettings_constructor__P15485_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 1386; s.pc = 45; return s.tmp_1; - case 45: - r0 = s.retval; - case 15: - case 16: - case 17: - case 18: - case 19: - case 20: - case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P15732.info = {"start":392,"length":1759,"line":12,"column":64,"endLine":51,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":[]} +control_popEventContext__P396.info = {"start":7466,"length":413,"line":229,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} -function inline__P15732_mk(s) { +function control_popEventContext__P396_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15732, depth: s.depth + 1, + parent: s, fn: control_popEventContext__P396, depth: s.depth + 1, pc: 0, retval: undefined, 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, - index___15733: undefined, - command___15763: undefined, - rules___15770: undefined, - g___15778: undefined, + ctx___25611: undefined, + context___25619: undefined, } } -function inline__P15835(s) { +function control_EventContext_register__P387(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17908,29 +20845,67 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_popScene__P1293_mk(s); - s.callLocIdx = 1388; s.pc = 1; return s.tmp_0; + s.h___25632 = undefined; + s.unnamed50___U1 = undefined; + s.unnamed51___U2 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C381_VT)) failedCast(r0); + s.h___25632 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed50___U1 = (r0); + s.unnamed51___U2 = (0); case 1: + s.tmp_0 = r0 = s.unnamed51___U2; + r0 = pxsim_Array__length(s.unnamed50___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed50___U1, s.unnamed51___U2); + s.h___25632 = (r0); + s.tmp_2 = control_EventHandler_register__P3954_mk(s); + s.tmp_2.arg0 = s.h___25632; + s.callLocIdx = 60; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed51___U2 + 1); + s.unnamed51___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed50___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P3959_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 61; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P15835.info = {"start":2219,"length":54,"line":53,"column":64,"endLine":55,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":[]} +control_EventContext_register__P387.info = {"start":4284,"length":138,"line":128,"column":8,"endLine":132,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function inline__P15835_mk(s) { +function control_EventContext_register__P387_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15835, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P387, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___25632: undefined, + unnamed50___U1: undefined, + unnamed51___U2: undefined, + arg0: undefined, } } -function tileworld_ruleediting_RuleRoom_constructor__P12565(s) { +function settings_remove__P1833(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17942,123 +20917,28 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P11291_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = null; - s.callLocIdx = 832; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = (s.arg0).fields["kind"] = (0); - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 833; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["kind"]; - s.tmp_1 = r0; - r0 = (1 + s.tmp_1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 834; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 835; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 836; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.cursorIn___7250; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 837; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["moreHelp"] = (s.tmp_1); - s.tmp_0 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["moreHelp"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 128; - s.tmp_0.arg2 = true; - s.callLocIdx = 838; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = Sprite_x__P771_mk(s); - r0 = s.arg0.fields["moreHelp"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 84; - s.callLocIdx = 839; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["moreHelp"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 77; - s.callLocIdx = 840; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom__C12555_v0_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P12607); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 856; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P699_mk(s); - s.tmp_0.arg0 = globals.B___667; - s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P12710; - s.callLocIdx = 858; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; + r0 = pxsim.settings._remove(s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_constructor__P12565.info = {"start":444,"length":1639,"line":9,"column":8,"endLine":45,"endColumn":9,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":["this","p"]} +settings_remove__P1833.info = {"start":3702,"length":64,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"remove","argumentNames":["key"]} -function tileworld_ruleediting_RuleRoom_constructor__P12565_mk(s) { +function settings_remove__P1833_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_constructor__P12565, depth: s.depth + 1, + parent: s, fn: settings_remove__P1833, 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 inline__P12607(s) { +function helpers_arrayForEach__P104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18068,221 +20948,153 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rt___12629 = undefined; - s.dir___12636 = undefined; - s.rules___12645 = undefined; - s.filteredRules___12651 = undefined; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 841; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; - 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; } + s.len___27448 = undefined; + s.i___27451 = 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___27448 = (r0); + s.i___27451 = (0); case 1: - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 842; s.pc = 12; return s.tmp_4; - case 12: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 >= 1); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (r0) { step = 3; continue; } - r0 = s.tmp_5; - { step = 4; continue; } - case 3: - s.tmp_7 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_7.arg0 = s.caps[0]; - s.tmp_7.arg1 = true; - s.callLocIdx = 843; s.pc = 13; return s.tmp_7; - case 13: - r0 = s.retval; - s.tmp_6 = r0; - r0 = s.caps[0].fields["p"]; - s.tmp_9 = r0; - r0 = s.tmp_9.fields["_spritesI"]; - s.tmp_10 = r0; - r0 = pxsim_Array__length(s.tmp_10); - s.tmp_8 = r0; - r0 = (s.tmp_6 <= s.tmp_8); - case 4: - // jmp value (already in r0) - s.tmp_11 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_11); - if (!r0) { step = 5; continue; } - s.tmp_12 = r0 = s.caps[0]; - s.tmp_15 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_15.arg0 = s.caps[0]; - s.tmp_15.arg1 = true; - s.callLocIdx = 845; s.pc = 14; return s.tmp_15; - case 14: - r0 = s.retval; - s.tmp_14 = r0; - r0 = (s.tmp_14 - 1); - s.tmp_13 = r0; - r0 = (s.tmp_12).fields["kind"] = (s.tmp_13); - s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 846; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom__C12555_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - { step = 10; continue; } - case 5: - r0 = s.caps[0].fields["ruleTypeMap"]; - s.tmp_0 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 847; s.pc = 17; return s.tmp_2; - case 17: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 848; s.pc = 18; return s.tmp_4; - case 18: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.rt___12629 = (r0); - r0 = s.caps[0].fields["dirMap"]; - s.tmp_0 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 849; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 850; s.pc = 20; return s.tmp_4; - case 20: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.dir___12636 = (r0); - r0 = (s.rt___12629 != 15); + r0 = (s.i___27451 < s.len___27448); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_1 = tileworld_Project_getRulesForSpriteKind__P6130_mk(s); - r0 = s.caps[0].fields["p"]; + 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___27451); s.tmp_1.arg0 = r0; - r0 = s.caps[0].fields["kind"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 851; s.pc = 21; return s.tmp_1; - case 21: - r0 = s.retval; - s.rules___12645 = (r0); - s.tmp_0 = tileworld_RuleVisualsBase_getRulesForTypeDir__P10845_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.rules___12645; - s.tmp_0.arg2 = s.rt___12629; - s.tmp_0.arg3 = s.dir___12636; - s.callLocIdx = 852; s.pc = 22; return s.tmp_0; - case 22: + s.tmp_1.arg1 = s.i___27451; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 6; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.filteredRules___12651 = (r0); - r0 = pxsim_Array__length(s.filteredRules___12651); + r0 = (s.i___27451 + 1); + s.i___27451 = (r0); + { step = 1; continue; } + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +helpers_arrayForEach__P104.info = {"start":7439,"length":250,"line":254,"column":4,"endLine":259,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayForEach","argumentNames":["arr","callbackfn"]} + +function helpers_arrayForEach__P104_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_arrayForEach__P104, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + len___27448: undefined, + i___27451: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function settings_list__P1832(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_2 = r0 = s.filteredRules___12651; - s.tmp_4 = tileworld_Project_makeRule__P6121_mk(s); - r0 = s.caps[0].fields["p"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.rt___12629; - s.tmp_4.arg2 = s.dir___12636; - r0 = s.caps[0].fields["kind"]; - s.tmp_4.arg3 = r0; - s.callLocIdx = 853; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.tmp_3); - case 6: - case 7: - s.tmp_0 = game_pushScene__P1292_mk(s); - s.callLocIdx = 854; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleEditor__C12671_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_ruleediting_RuleEditor_constructor__P12701_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_1.arg1 = r0; - r0 = pxsim_Array__getAt(s.filteredRules___12651, 0); - s.tmp_1.arg2 = r0; - r0 = s.caps[0].fields["kind"]; - s.tmp_1.arg3 = r0; - s.callLocIdx = 855; s.pc = 25; return s.tmp_1; - case 25: + if (!r0) { step = 1; continue; } + r0 = pxsim_String_.mkEmpty(); + s.arg0 = (r0); + case 1: + case 2: + r0 = pxsim.settings._list(s.arg0); + return leave(s, r0) + default: oops() +} } } +settings_list__P1832.info = {"start":3544,"length":107,"line":140,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"list","argumentNames":["prefix"]} + +function settings_list__P1832_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_list__P1832, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function tileworld_RuleVisualsBase_setRow__P12693(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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_0 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_0.arg0 = r0; + r0 = (s.arg1 << 4); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 6); + s.tmp_0.arg1 = r0; + s.callLocIdx = 679; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 8: - case 9: - case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P12607.info = {"start":982,"length":964,"line":23,"column":64,"endLine":41,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":[]} +tileworld_RuleVisualsBase_setRow__P12693.info = {"start":3985,"length":92,"line":100,"column":8,"endLine":102,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setRow","argumentNames":["this","row"]} -function inline__P12607_mk(s) { +function tileworld_RuleVisualsBase_setRow__P12693_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P12607, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_setRow__P12693, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - rt___12629: undefined, - dir___12636: undefined, - rules___12645: undefined, - filteredRules___12651: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P12710(s) { +function Sprite_y__P2025(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18292,29 +21104,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_popScene__P1293_mk(s); - s.callLocIdx = 857; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P2064_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + 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_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 232; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P12710.info = {"start":2014,"length":56,"line":42,"column":64,"endLine":44,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":[]} +Sprite_y__P2025.info = {"start":2022,"length":72,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} -function inline__P12710_mk(s) { +function Sprite_y__P2025_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P12710, depth: s.depth + 1, + parent: s, fn: Sprite_y__P2025, depth: s.depth + 1, pc: 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 tileworld_ruleediting_RuleEditor_constructor__P12701(s) { +function Sprite_top__P2064(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18324,75 +21159,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.physics___26214 = 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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - r0 = (s.arg0).fields["kind"] = (s.arg3); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P11291_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 928; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 285; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 929; s.pc = 2; return s.tmp_0; + r0 = r0.fields["physicsEngine"]; + s.physics___26214 = (r0); + s.tmp_0 = PhysicsEngine__C2156_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___26214; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = 0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["_y"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg3 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; + s.pc = 2; return s.tmp_0; case 2: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 930; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["askDeleteRule"] = (false); - s.tmp_0 = tileworld_ruleediting_RuleEditor_mainMenu__P12674_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 931; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(2, inline__P13319); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1002; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P13625); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.B___667; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1009; s.pc = 6; return s.tmp_1; - case 6: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_constructor__P12701.info = {"start":1161,"length":5971,"line":26,"column":8,"endLine":138,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["this","p","rule","kind"]} +Sprite_top__P2064.info = {"start":9760,"length":256,"line":355,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} -function tileworld_ruleediting_RuleEditor_constructor__P12701_mk(s) { +function Sprite_top__P2064_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_constructor__P12701, depth: s.depth + 1, + parent: s, fn: Sprite_top__P2064, depth: s.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___26214: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function PhysicsEngine_moveSprite__P2160(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +PhysicsEngine_moveSprite__P2160.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__P2160_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: PhysicsEngine_moveSprite__P2160, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, arg2: undefined, @@ -18403,7 +21254,7 @@ function tileworld_ruleediting_RuleEditor_constructor__P12701_mk(s) { -function inline__P13319(s) { +function Fx_sub__P151(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18413,783 +21264,636 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___13327 = undefined; - s.rules___13340 = undefined; - s.rules___13419 = undefined; - s.index___13421 = undefined; - s.rules___13508 = undefined; - s.g___13512 = undefined; - s.col___13569 = undefined; - s.row___13575 = undefined; - s.tmp_0 = Sprite_say__P808_mk(s); - r0 = s.caps[0].fields["helpCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = null; - s.tmp_0.arg2 = undefined; - s.tmp_0.arg3 = 15; - s.tmp_0.arg4 = 1; - s.callLocIdx = 932; s.pc = 70; return s.tmp_0; - case 70: - r0 = s.retval; - r0 = s.caps[0].fields["askDeleteRule"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 - s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_sub__P151.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__P151_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_sub__P151, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_top__P2063(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__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_currentRules__P12680_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 933; s.pc = 71; return s.tmp_2; - case 71: - r0 = s.retval; - s.tmp_1 = r0; - r0 = s.caps[0].fields["rule"]; - s.tmp_3 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_1, s.tmp_3, undefined); - s.index___13327 = (r0); - s.tmp_0 = tileworld_Project_removeRule__P6122_mk(s); - r0 = s.caps[0].fields["p"]; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_top__P2063.info = {"start":9617,"length":53,"line":350,"column":4,"endLine":352,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} +Sprite_top__P2063.isGetter = true; + +function Sprite_top__P2063_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_top__P2063, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function tileworld_RuleVisualsBase_setCol__P12692(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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_0 = Sprite_x__P2023_mk(s); + r0 = s.arg0.fields["cursor"]; s.tmp_0.arg0 = r0; - r0 = s.caps[0].fields["rule"]; + r0 = (s.arg1 << 4); s.tmp_1 = r0; - r0 = s.tmp_1.fields["rid"]; + r0 = (s.tmp_1 + 8); s.tmp_0.arg1 = r0; - s.callLocIdx = 935; s.pc = 72; return s.tmp_0; - case 72: - r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleEditor_currentRules__P12680_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 936; s.pc = 73; return s.tmp_0; - case 73: - r0 = s.retval; - s.rules___13340 = (r0); - r0 = pxsim_Array__length(s.rules___13340); - 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; } - s.tmp_2 = game_popScene__P1293_mk(s); - s.callLocIdx = 937; s.pc = 74; return s.tmp_2; - case 74: - r0 = s.retval; - { step = 69; continue; } - { step = 4; continue; } + s.callLocIdx = 678; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = r0 = s.index___13327; - r0 = pxsim_Array__length(s.rules___13340); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.rules___13340, s.index___13327); - { step = 3; continue; } - case 2: - s.tmp_3 = r0 = s.rules___13340; - r0 = (s.index___13327 - 1); - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - case 3: - // jmp value (already in r0) - s.tmp_5 = r0; - s.tmp_6 = tileworld_ruleediting_RuleEditor_resetRule__P12678_mk(s); - s.tmp_6.arg0 = s.caps[0]; - s.tmp_6.arg1 = s.tmp_5; - s.callLocIdx = 938; s.pc = 75; return s.tmp_6; - case 75: r0 = s.retval; - case 4: - r0 = (s.caps[0]).fields["askDeleteRule"] = (false); - { step = 68; continue; } - case 5: - s.tmp_1 = tileworld_ruleediting_RuleEditor_inWhenPredicate__P12682_mk(s); - s.tmp_1.arg0 = s.caps[0]; - s.callLocIdx = 939; s.pc = 76; return s.tmp_1; - case 76: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleVisualsBase_setCol__P12692.info = {"start":3890,"length":85,"line":96,"column":8,"endLine":98,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setCol","argumentNames":["this","col"]} + +function tileworld_RuleVisualsBase_setCol__P12692_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleVisualsBase_setCol__P12692, 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 Sprite_x__P2023(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P2060_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + 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_1 - s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 230; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_3 = tileworld_ruleediting_RuleDisplay_active__P11278_mk(s); - s.tmp_3.arg0 = s.caps[0]; - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 940; s.pc = 78; return s.tmp_4; - case 78: - r0 = s.retval; - s.tmp_3.arg1 = r0; - s.tmp_6 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_6.arg0 = s.caps[0]; - s.tmp_6.arg1 = true; - s.callLocIdx = 941; s.pc = 79; return s.tmp_6; - case 79: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 - 2); - s.tmp_3.arg2 = r0; - s.callLocIdx = 942; s.pc = 77; return s.tmp_3; - case 77: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_x__P2023.info = {"start":1673,"length":72,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} + +function Sprite_x__P2023_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_x__P2023, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_left__P2060(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.physics___21807 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 277; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___21807 = (r0); + s.tmp_0 = PhysicsEngine__C2156_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___21807; + s.tmp_0.arg1 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 10; continue; } - r0 = s.caps[0].fields["menu"]; - s.tmp_8 = r0; - r0 = (s.tmp_8 == 0); - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 6; continue; } - r0 = (s.caps[0]).fields["menu"] = (1); - s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 943; s.pc = 80; return s.tmp_0; - case 80: + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["_x"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; + s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 0; - s.callLocIdx = 944; s.pc = 81; return s.tmp_0; - case 81: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_left__P2060.info = {"start":8956,"length":257,"line":325,"column":4,"endLine":335,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} + +function Sprite_left__P2060_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_left__P2060, depth: s.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___21807: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_left__P2059(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__C2013_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__P2059.info = {"start":8812,"length":53,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} +Sprite_left__P2059.isGetter = true; + +function Sprite_left__P2059_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_left__P2059, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function tileworld_GameHome_constructor__P3830(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, tileworld_GameHome__C3829_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1357; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 1; - s.callLocIdx = 945; s.pc = 82; return s.tmp_0; - case 82: + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1358; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - { step = 9; continue; } - case 6: - r0 = s.caps[0].fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_mainMenu__P12674_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 946; s.pc = 83; return s.tmp_2; - case 83: + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1359; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - case 7: - case 8: - case 9: - case 10: - case 11: - { step = 67; continue; } - case 12: - r0 = s.caps[0].fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); + r0 = pxsim_pxtcore_mkAction(1, inline__P17536); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 13; continue; } - r0 = s.tmp_0; - { step = 14; continue; } - case 13: - s.tmp_3 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_3.arg0 = s.caps[0]; - s.tmp_3.arg1 = true; - s.callLocIdx = 947; s.pc = 84; return s.tmp_3; - case 84: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1387; s.pc = 4; return s.tmp_1; + case 4: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 < 2); - case 14: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 15; continue; } - s.tmp_5 = tileworld_ruleediting_RuleEditor_attrUpdate__P12697_mk(s); - s.tmp_5.arg0 = s.caps[0]; - s.callLocIdx = 948; s.pc = 85; return s.tmp_5; - case 85: + s.tmp_0 = controller_Button_onEvent__P1907_mk(s); + s.tmp_0.arg0 = globals.B___1875; + s.tmp_0.arg1 = 2049; + s.tmp_0.arg2 = inline__P17639; + s.callLocIdx = 1389; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - { step = 66; continue; } - case 15: - r0 = s.caps[0].fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 3); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_GameHome_constructor__P3830.info = {"start":222,"length":2063,"line":6,"column":8,"endLine":56,"endColumn":9,"fileName":"home.ts","functionName":"inline","argumentNames":["this","p"]} + +function tileworld_GameHome_constructor__P3830_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_GameHome_constructor__P3830, 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 inline__P17536(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.index___17537 = undefined; + s.command___17567 = undefined; + s.rules___17574 = undefined; + s.g___17582 = undefined; + r0 = s.caps[0].fields["dirMap"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_commandUpdate__P12692_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = false; - s.callLocIdx = 949; s.pc = 86; return s.tmp_2; - case 86: + s.tmp_2.arg1 = true; + s.callLocIdx = 1360; s.pc = 22; return s.tmp_2; + case 22: r0 = s.retval; - { step = 65; continue; } - case 16: - r0 = s.caps[0].fields["menu"]; s.tmp_1 = r0; - r0 = (s.tmp_1 == 2); + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 1361; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); + s.index___17537 = (r0); + r0 = (s.index___17537 != 15); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_dirExprUpdate__P12700_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 950; s.pc = 87; return s.tmp_2; - case 87: + if (!r0) { step = 3; continue; } + s.tmp_1 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1362; s.pc = 24; return s.tmp_1; + case 24: r0 = s.retval; - { step = 64; continue; } - case 17: - r0 = s.caps[0].fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_Gallery__C3823_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 62; continue; } - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_SwitchExport__C3666_VT); + s.tmp_1 = r0; + s.tmp_2 = tileworld_SwitchExport_constructor__P3667_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = s.caps[0].fields["p"]; + s.tmp_2.arg1 = r0; + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_4.arg0 = s.caps[0]; s.tmp_4.arg1 = true; - s.callLocIdx = 951; s.pc = 88; return s.tmp_4; - case 88: + s.callLocIdx = 1363; s.pc = 26; return s.tmp_4; + case 26: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 == 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 44; continue; } - s.tmp_7 = tileworld_RuleVisualsBase_col__P10848_mk(s); + r0 = (s.tmp_3 == 3); + s.tmp_2.arg2 = r0; + s.callLocIdx = 1364; s.pc = 25; return s.tmp_2; + case 25: + r0 = s.retval; + s.tmp_7 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_7.arg0 = s.caps[0]; s.tmp_7.arg1 = true; - s.callLocIdx = 952; s.pc = 89; return s.tmp_7; - case 89: + s.callLocIdx = 1365; s.pc = 27; return s.tmp_7; + case 27: r0 = s.retval; s.tmp_6 = r0; - r0 = (7 <= s.tmp_6); + r0 = (s.tmp_6 == 3); s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (r0) { step = 18; continue; } - r0 = s.tmp_5; - { step = 19; continue; } - case 18: - s.tmp_9 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_9.arg0 = s.caps[0]; - s.tmp_9.arg1 = true; - s.callLocIdx = 953; s.pc = 90; return s.tmp_9; - case 90: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_8 <= 9); - case 19: + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 1; continue; } + r0 = globals.galleryTiles___3771; + { step = 2; continue; } + case 1: + r0 = globals.gallerySprites___3770; + case 2: // jmp value (already in r0) - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 32; continue; } - s.tmp_11 = tileworld_ruleediting_RuleEditor_currentRules__P12680_mk(s); - s.tmp_11.arg0 = s.caps[0]; - s.callLocIdx = 954; s.pc = 91; return s.tmp_11; - case 91: + s.tmp_8 = r0; + s.tmp_9 = tileworld_Gallery_constructor__P3824_mk(s); + s.tmp_9.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_9.arg1 = r0; + s.tmp_9.arg2 = s.index___17537; + s.tmp_9.arg3 = s.tmp_1; + s.tmp_9.arg4 = s.tmp_8; + s.callLocIdx = 1366; s.pc = 28; return s.tmp_9; + case 28: r0 = s.retval; - s.rules___13419 = (r0); - r0 = s.caps[0].fields["rule"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.indexOf(s.rules___13419, s.tmp_0, undefined); - s.index___13421 = (r0); - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + { step = 21; continue; } + case 3: + case 4: + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_2.arg0 = s.caps[0]; s.tmp_2.arg1 = true; - s.callLocIdx = 955; s.pc = 92; return s.tmp_2; - case 92: + s.callLocIdx = 1367; s.pc = 29; return s.tmp_2; + case 29: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == 7); + r0 = (s.tmp_1 > 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 20; continue; } - r0 = s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } { step = 21; continue; } - case 20: - r0 = (s.index___13421 > 0); - case 21: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 22; continue; } - s.tmp_4 = tileworld_ruleediting_RuleEditor_changeRule__P12677_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_5 = r0 = s.rules___13419; - r0 = (s.index___13421 - 1); - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); - s.tmp_4.arg1 = r0; - s.callLocIdx = 956; s.pc = 93; return s.tmp_4; - case 93: + case 5: + case 6: + s.tmp_3 = r0 = globals.commandImages___17519; + s.tmp_5 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_5.arg0 = s.caps[0]; + s.tmp_5.arg1 = true; + s.callLocIdx = 1368; s.pc = 30; return s.tmp_5; + case 30: r0 = s.retval; - { step = 31; continue; } - case 22: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 957; s.pc = 94; return s.tmp_2; - case 94: + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); + s.command___17567 = (r0); + r0 = (s.command___17567 == globals.play___3713); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.caps[0].fields["p"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["rules"]; + s.rules___17574 = (r0); + r0 = pxsim_Array__length(s.rules___17574); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_2 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1370; s.pc = 31; return s.tmp_2; + case 31: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RunGame__C3773_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_RunGame_constructor__P3774_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.rules___17574; + s.tmp_1.arg3 = false; + s.callLocIdx = 1371; s.pc = 32; return s.tmp_1; + case 32: r0 = s.retval; + s.g___17582 = (s.tmp_0); + s.tmp_0 = tileworld_RunGame_setWorld__P3775_mk(s); + s.tmp_0.arg0 = s.g___17582; + r0 = s.caps[0].fields["p"]; s.tmp_1 = r0; - r0 = (s.tmp_1 == 9); + r0 = s.tmp_1.fields["_backgrounds"]; + s.tmp_0.arg1 = r0; + r0 = s.caps[0].fields["p"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_sprites"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 1374; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + s.tmp_0 = tileworld_RunGame_start__P3776_mk(s); + s.tmp_0.arg0 = s.g___17582; + s.callLocIdx = 1375; s.pc = 34; return s.tmp_0; + case 34: + r0 = s.retval; + case 7: + case 8: + { step = 20; continue; } + case 9: + r0 = (s.command___17567 == globals.map___3712); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 23; continue; } - r0 = s.tmp_0; - { step = 24; continue; } - case 23: - s.tmp_3 = r0 = s.index___13421; - r0 = pxsim_Array__length(s.rules___13419); - s.tmp_5 = r0; - r0 = (s.tmp_5 - 1); - s.tmp_4 = r0; - r0 = (s.tmp_3 < s.tmp_4); - case 24: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 25; continue; } - s.tmp_7 = tileworld_ruleediting_RuleEditor_changeRule__P12677_mk(s); - s.tmp_7.arg0 = s.caps[0]; - s.tmp_8 = r0 = s.rules___13419; - r0 = (s.index___13421 + 1); - s.tmp_9 = r0; - r0 = pxsim_Array__getAt(s.tmp_8, s.tmp_9); - s.tmp_7.arg1 = r0; - s.callLocIdx = 958; s.pc = 95; return s.tmp_7; - case 95: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.tmp_1 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1376; s.pc = 35; return s.tmp_1; + case 35: r0 = s.retval; - { step = 30; continue; } - case 25: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_MapEditor__C3819_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_MapEditor_constructor__P3820_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 1377; s.pc = 36; return s.tmp_1; + case 36: + r0 = s.retval; + { step = 19; continue; } + case 10: + r0 = (s.command___17567 == globals.paint___3716); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1378; s.pc = 37; return s.tmp_1; + case 37: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_ImageEditor__C3778_VT); + s.tmp_0 = r0; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_AllExport__C3671_VT); + s.tmp_1 = r0; + s.tmp_2 = tileworld_AllExport_constructor__P3672_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = s.caps[0].fields["p"]; + s.tmp_2.arg1 = r0; + s.callLocIdx = 1379; s.pc = 38; return s.tmp_2; + case 38: + r0 = s.retval; + s.tmp_3 = tileworld_ImageEditor_constructor__P3779_mk(s); + s.tmp_3.arg0 = s.tmp_0; + s.tmp_3.arg1 = s.tmp_1; + s.callLocIdx = 1380; s.pc = 39; return s.tmp_3; + case 39: + r0 = s.retval; + { step = 18; continue; } + case 11: + r0 = (s.command___17567 == globals.code___3715); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + s.tmp_1 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1381; s.pc = 40; return s.tmp_1; + case 40: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleRoom__C3805_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_ruleediting_RuleRoom_constructor__P3806_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 1382; s.pc = 41; return s.tmp_1; + case 41: + r0 = s.retval; + { step = 17; continue; } + case 12: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.caps[0]; s.tmp_2.arg1 = true; - s.callLocIdx = 959; s.pc = 96; return s.tmp_2; - case 96: + s.callLocIdx = 1383; s.pc = 42; return s.tmp_2; + case 42: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == 8); + r0 = (s.tmp_1 == 9); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 26; continue; } + if (r0) { step = 13; continue; } r0 = s.tmp_0; - { step = 27; continue; } - case 26: - s.tmp_4 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); + { step = 14; continue; } + case 13: + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_4.arg0 = s.caps[0]; - s.callLocIdx = 960; s.pc = 97; return s.tmp_4; - case 97: + s.tmp_4.arg1 = true; + s.callLocIdx = 1384; s.pc = 43; return s.tmp_4; + case 43: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 != -1); - case 27: + r0 = (s.tmp_3 == 0); + case 14: // jmp value (already in r0) s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 28; continue; } - s.tmp_6 = tileworld_ruleediting_RuleEditor_changeRule__P12677_mk(s); - s.tmp_6.arg0 = s.caps[0]; - s.tmp_7 = tileworld_Project_makeRule__P6121_mk(s); - s.tmp_7.arg0 = s.caps[1]; - s.tmp_8 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_8.arg0 = s.caps[0]; - s.callLocIdx = 961; s.pc = 100; return s.tmp_8; - case 100: - r0 = s.retval; - s.tmp_7.arg1 = r0; - s.tmp_9 = tileworld_ruleediting_RuleDisplay_getDir__P11267_mk(s); - s.tmp_9.arg0 = s.caps[0]; - s.callLocIdx = 962; s.pc = 101; return s.tmp_9; - case 101: - r0 = s.retval; - s.tmp_7.arg2 = r0; - s.tmp_10 = tileworld_ruleediting_RuleDisplay_getKind__P11269_mk(s); - s.tmp_10.arg0 = s.caps[0]; - s.callLocIdx = 963; s.pc = 102; return s.tmp_10; - case 102: - r0 = s.retval; - s.tmp_7.arg3 = r0; - s.callLocIdx = 964; s.pc = 99; return s.tmp_7; - case 99: - r0 = s.retval; - s.tmp_6.arg1 = r0; - s.callLocIdx = 965; s.pc = 98; return s.tmp_6; - case 98: - r0 = s.retval; - case 28: - case 29: - case 30: - case 31: - { step = 43; continue; } - case 32: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 966; s.pc = 103; return s.tmp_2; - case 103: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 33; continue; } - s.tmp_3 = tileworld_Project_saveRule__P6120_mk(s); - r0 = s.caps[0].fields["p"]; - s.tmp_3.arg0 = r0; - r0 = s.caps[0].fields["rule"]; - s.tmp_3.arg1 = r0; - s.callLocIdx = 967; s.pc = 104; return s.tmp_3; - case 104: - r0 = s.retval; - s.tmp_0 = game_pushScene__P1292_mk(s); - s.callLocIdx = 968; s.pc = 105; return s.tmp_0; - case 105: - r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_MapEditor__C13477_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_MapEditor_constructor__P13492_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 969; s.pc = 106; return s.tmp_1; - case 106: - r0 = s.retval; - { step = 69; continue; } - { step = 42; continue; } - case 33: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 970; s.pc = 107; return s.tmp_2; - case 107: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 34; continue; } - r0 = s.tmp_0; - { step = 35; continue; } - case 34: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 971; s.pc = 108; return s.tmp_4; - case 108: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 3); - case 35: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 36; continue; } - s.tmp_6 = tileworld_Project_saveRule__P6120_mk(s); - r0 = s.caps[0].fields["p"]; - s.tmp_6.arg0 = r0; - r0 = s.caps[0].fields["rule"]; - s.tmp_6.arg1 = r0; - s.callLocIdx = 972; s.pc = 109; return s.tmp_6; - case 109: - r0 = s.retval; - s.tmp_0 = game_pushScene__P1292_mk(s); - s.callLocIdx = 973; s.pc = 110; return s.tmp_0; - case 110: - r0 = s.retval; - r0 = s.caps[0].fields["p"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["rules"]; - s.rules___13508 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RunGame__C9491_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_RunGame_constructor__P9501_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.caps[0].fields["p"]; - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.rules___13508; - s.tmp_3 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_3.arg0 = s.caps[0]; - s.tmp_3.arg1 = true; - s.callLocIdx = 975; s.pc = 112; return s.tmp_3; - case 112: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 == 3); - s.tmp_1.arg3 = r0; - s.callLocIdx = 976; s.pc = 111; return s.tmp_1; - case 111: - r0 = s.retval; - s.g___13512 = (s.tmp_0); - s.tmp_0 = tileworld_RunGame_setWorld__P9495_mk(s); - s.tmp_0.arg0 = s.g___13512; - r0 = s.caps[0].fields["p"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_backgrounds"]; - s.tmp_0.arg1 = r0; - r0 = s.caps[0].fields["p"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_sprites"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 979; s.pc = 113; return s.tmp_0; - case 113: - r0 = s.retval; - s.tmp_0 = tileworld_RunGame_start__P9497_mk(s); - s.tmp_0.arg0 = s.g___13512; - s.callLocIdx = 980; s.pc = 114; return s.tmp_0; - case 114: - r0 = s.retval; - { step = 69; continue; } - { step = 41; continue; } - case 36: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 981; s.pc = 115; return s.tmp_2; - case 115: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 6); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 37; continue; } - r0 = (s.caps[0]).fields["askDeleteRule"] = (true); - { step = 40; continue; } - case 37: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 982; s.pc = 116; return s.tmp_2; - case 116: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 5); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 38; continue; } - s.tmp_3 = tileworld_Project_saveRule__P6120_mk(s); - r0 = s.caps[0].fields["p"]; - s.tmp_3.arg0 = r0; - r0 = s.caps[0].fields["rule"]; - s.tmp_3.arg1 = r0; - s.callLocIdx = 983; s.pc = 117; return s.tmp_3; - case 117: - r0 = s.retval; - s.tmp_0 = game_pushScene__P1292_mk(s); - s.callLocIdx = 984; s.pc = 118; return s.tmp_0; - case 118: + if (!r0) { step = 15; continue; } + s.tmp_6 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1385; s.pc = 44; return s.tmp_6; + case 44: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleViewDisplay__C12387_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_ProjectSettings__C3826_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_ruleediting_RuleViewDisplay_constructor__P12392_mk(s); + s.tmp_1 = tileworld_ProjectSettings_constructor__P3827_mk(s); s.tmp_1.arg0 = s.tmp_0; r0 = s.caps[0].fields["p"]; s.tmp_1.arg1 = r0; - r0 = s.caps[0].fields["rule"]; - s.tmp_1.arg2 = r0; - s.callLocIdx = 985; s.pc = 119; return s.tmp_1; - case 119: - r0 = s.retval; - { step = 69; continue; } - case 38: - case 39: - case 40: - case 41: - case 42: - case 43: - { step = 61; continue; } - case 44: - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 986; s.pc = 120; return s.tmp_2; - case 120: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 59; continue; } - s.tmp_5 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_5.arg0 = s.caps[0]; - s.tmp_5.arg1 = true; - s.callLocIdx = 987; s.pc = 121; return s.tmp_5; - case 121: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 > 5); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 45; continue; } - s.tmp_6 = tileworld_ruleediting_RuleEditor_tryEditCommand__P12685_mk(s); - s.tmp_6.arg0 = s.caps[0]; - s.callLocIdx = 988; s.pc = 122; return s.tmp_6; - case 122: - r0 = s.retval; - { step = 58; continue; } + s.callLocIdx = 1386; s.pc = 45; return s.tmp_1; case 45: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 989; s.pc = 123; return s.tmp_2; - case 123: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 5); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 46; continue; } - r0 = s.tmp_0; - { step = 47; continue; } - case 46: - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = true; - s.callLocIdx = 990; s.pc = 124; return s.tmp_4; - case 124: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 < 7); - case 47: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 56; continue; } - s.tmp_6 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279_mk(s); - s.tmp_6.arg0 = s.caps[0]; - s.tmp_8 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_8.arg0 = s.caps[0]; - s.tmp_8.arg1 = true; - s.callLocIdx = 991; s.pc = 126; return s.tmp_8; - case 126: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_7 - 2); - s.tmp_6.arg1 = r0; - s.callLocIdx = 992; s.pc = 125; return s.tmp_6; - case 125: - r0 = s.retval; - s.col___13569 = (r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 993; s.pc = 128; return s.tmp_2; - case 128: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 994; s.pc = 127; return s.tmp_0; - case 127: - r0 = s.retval; - s.row___13575 = (r0); - s.tmp_2 = tileworld_RuleView_findWitnessColRow__P4997_mk(s); - r0 = s.caps[0].fields["rule"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.col___13569; - s.tmp_2.arg2 = s.row___13575; - s.tmp_2.arg3 = true; - s.callLocIdx = 995; s.pc = 129; return s.tmp_2; - case 129: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 != -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 48; continue; } - r0 = s.tmp_0; - { step = 53; continue; } - case 48: - r0 = s.caps[0].fields["rule"]; - s.tmp_5 = r0; - r0 = s.tmp_5.fields["r"]; - r0 = r0.fields["ruleType"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 != 2); - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 49; continue; } - r0 = s.tmp_3; - { step = 50; continue; } - case 49: - r0 = (s.col___13569 != 2); - case 50: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (!r0) { step = 51; continue; } - r0 = s.tmp_6; - { step = 52; continue; } - case 51: - r0 = (s.row___13575 != 2); - case 52: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 53: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 54; continue; } - r0 = (s.caps[0]).fields["menu"] = (2); - s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = tileworld_RuleView_getWhenDo__P4608_mk(s); - r0 = s.caps[0].fields["rule"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.col___13569; - s.tmp_2.arg2 = s.row___13575; - s.callLocIdx = 997; s.pc = 130; return s.tmp_2; - case 130: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["whenDo"] = (s.tmp_1); - s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 998; s.pc = 131; return s.tmp_0; - case 131: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = tileworld_RuleView_getWitnessDirection__P4998_mk(s); - r0 = s.caps[0].fields["rule"]; - s.tmp_1.arg0 = r0; - r0 = s.caps[0].fields["whenDo"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 999; s.pc = 133; return s.tmp_1; - case 133: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 1000; s.pc = 132; return s.tmp_0; - case 132: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1001; s.pc = 134; return s.tmp_0; - case 134: r0 = s.retval; - case 54: - case 55: - case 56: - case 57: - case 58: - case 59: - case 60: - case 61: - case 62: - case 63: - case 64: - case 65: - case 66: - case 67: - case 68: - case 69: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P13319.info = {"start":1593,"length":4842,"line":35,"column":64,"endLine":119,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":[]} +inline__P17536.info = {"start":392,"length":1759,"line":12,"column":64,"endLine":51,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":[]} -function inline__P13319_mk(s) { +function inline__P17536_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P13319, depth: s.depth + 1, + parent: s, fn: inline__P17536, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19201,23 +21905,17 @@ function inline__P13319_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - index___13327: undefined, - rules___13340: undefined, - rules___13419: undefined, - index___13421: undefined, - rules___13508: undefined, - g___13512: undefined, - col___13569: undefined, - row___13575: undefined, + index___17537: undefined, + command___17567: undefined, + rules___17574: undefined, + g___17582: undefined, } } -function inline__P13625(s) { +function inline__P17639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19227,95 +21925,157 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["askDeleteRule"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.caps[0]).fields["askDeleteRule"] = (false); - { step = 6; continue; } + s.tmp_0 = game_popScene__P2529_mk(s); + s.callLocIdx = 1388; s.pc = 1; return s.tmp_0; case 1: - r0 = s.caps[0].fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 != 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_mainMenu__P12674_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 1003; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - { step = 5; continue; } - case 2: - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.tmp_2.arg1 = true; - s.callLocIdx = 1004; s.pc = 9; return s.tmp_2; - case 9: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s); - s.tmp_3.arg0 = s.caps[0]; - s.callLocIdx = 1005; s.pc = 10; return s.tmp_3; - case 10: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 2; - s.callLocIdx = 1006; s.pc = 11; return s.tmp_0; - case 11: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P17639.info = {"start":2219,"length":54,"line":53,"column":64,"endLine":55,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":[]} + +function inline__P17639_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P17639, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function tileworld_ruleediting_RuleRoom_constructor__P3806(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, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P3798_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = null; + s.callLocIdx = 832; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.caps[0]; + r0 = (s.arg0).fields["kind"] = (0); + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); + s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 1007; s.pc = 12; return s.tmp_0; - case 12: + s.callLocIdx = 833; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - { step = 4; continue; } + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["kind"]; + s.tmp_1 = r0; + r0 = (1 + s.tmp_1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 834; s.pc = 3; return s.tmp_0; case 3: - s.tmp_0 = tileworld_ruleediting_RuleEditor_saveAndPop__P12679_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1008; s.pc = 13; return s.tmp_0; - case 13: r0 = s.retval; - { step = 7; continue; } + s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 835; s.pc = 4; return s.tmp_0; case 4: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 836; s.pc = 5; return s.tmp_0; case 5: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.cursorIn___3723; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 837; s.pc = 6; return s.tmp_2; case 6: - s.tmp_0 = tileworld_ruleediting_RuleEditor__C12671_v0_1_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 14; return s.tmp_0; - case 14: r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["moreHelp"] = (s.tmp_1); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["moreHelp"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 128; + s.tmp_0.arg2 = true; + s.callLocIdx = 838; s.pc = 7; return s.tmp_0; case 7: + r0 = s.retval; + s.tmp_0 = Sprite_x__P2023_mk(s); + r0 = s.arg0.fields["moreHelp"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 84; + s.callLocIdx = 839; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["moreHelp"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 77; + s.callLocIdx = 840; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = tileworld_ruleediting_RuleRoom__C3805_v0_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P14435); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 856; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = controller_Button_onEvent__P1907_mk(s); + s.tmp_0.arg0 = globals.B___1875; + s.tmp_0.arg1 = 2049; + s.tmp_0.arg2 = inline__P14536; + s.callLocIdx = 858; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P13625.info = {"start":6502,"length":618,"line":121,"column":64,"endLine":137,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":[]} +tileworld_ruleediting_RuleRoom_constructor__P3806.info = {"start":444,"length":1639,"line":9,"column":8,"endLine":45,"endColumn":9,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":["this","p"]} -function inline__P13625_mk(s) { +function tileworld_ruleediting_RuleRoom_constructor__P3806_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P13625, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_constructor__P3806, depth: s.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 tileworld_ruleediting_RuleEditor_update__P12683(s) { +function inline__P14435(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19325,253 +22085,193 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___13897 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_update__P11276_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1059; s.pc = 25; return s.tmp_0; - case 25: + s.rt___14457 = undefined; + s.dir___14464 = undefined; + s.rules___14473 = undefined; + s.filteredRules___14479 = undefined; + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 841; s.pc = 11; return s.tmp_2; + case 11: r0 = s.retval; - r0 = s.arg0.fields["p"]; - r0 = r0.fields["help"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 842; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 >= 1); case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 3; continue; } - r0 = s.tmp_2; - { step = 4; continue; } - case 3: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = true; - s.callLocIdx = 1060; s.pc = 26; return s.tmp_4; - case 26: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 > 5); - case 4: // jmp value (already in r0) s.tmp_5 = r0; r0 = pxsim_numops_toBool(s.tmp_5); - if (r0) { step = 5; continue; } + if (r0) { step = 3; continue; } r0 = s.tmp_5; - { step = 6; continue; } - case 5: - s.tmp_7 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_7.arg0 = s.arg0; + { step = 4; continue; } + case 3: + s.tmp_7 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_7.arg0 = s.caps[0]; s.tmp_7.arg1 = true; - s.callLocIdx = 1061; s.pc = 27; return s.tmp_7; - case 27: + s.callLocIdx = 843; s.pc = 13; return s.tmp_7; + case 13: r0 = s.retval; s.tmp_6 = r0; - r0 = (s.tmp_6 >= 2); - case 6: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 13; continue; } - r0 = s.arg0.fields["commandLengths"]; + r0 = s.caps[0].fields["p"]; s.tmp_9 = r0; - s.tmp_12 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_12.arg0 = s.arg0; - s.tmp_12.arg1 = true; - s.callLocIdx = 1062; s.pc = 28; return s.tmp_12; - case 28: - r0 = s.retval; - s.tmp_11 = r0; - r0 = (s.tmp_11 - 2); + r0 = s.tmp_9.fields["_spritesI"]; s.tmp_10 = r0; - r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); - s.len___13897 = (r0); - r0 = (s.len___13897 != -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - s.tmp_3 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = true; - s.callLocIdx = 1063; s.pc = 29; return s.tmp_3; - case 29: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 6); - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.len___13897); - case 8: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 11; continue; } - s.tmp_8 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_8.arg0 = s.arg0; - s.tmp_8.arg1 = true; - s.callLocIdx = 1064; s.pc = 30; return s.tmp_8; - case 30: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_7 - 6); - s.tmp_6 = r0; - r0 = (s.len___13897 - 1); - s.tmp_9 = r0; - r0 = (s.tmp_6 == s.tmp_9); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 9; continue; } - r0 = "A: add command"; - { step = 10; continue; } - case 9: - r0 = "E: edit command"; - case 10: + r0 = pxsim_Array__length(s.tmp_10); + s.tmp_8 = r0; + r0 = (s.tmp_6 <= s.tmp_8); + case 4: // jmp value (already in r0) - s.tmp_10 = r0; - s.tmp_11 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_11.arg0 = r0; - s.tmp_11.arg1 = s.tmp_10; - s.tmp_11.arg2 = undefined; - s.tmp_11.arg3 = 15; - s.tmp_11.arg4 = 1; - s.callLocIdx = 1065; s.pc = 31; return s.tmp_11; - case 31: - r0 = s.retval; - case 11: - case 12: - case 13: + s.tmp_11 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_11); + if (!r0) { step = 5; continue; } + s.tmp_12 = r0 = s.caps[0]; + s.tmp_15 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_15.arg0 = s.caps[0]; + s.tmp_15.arg1 = true; + s.callLocIdx = 845; s.pc = 14; return s.tmp_15; case 14: - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_showMainMenu__P12684_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1066; s.pc = 32; return s.tmp_2; - case 32: r0 = s.retval; - { step = 22; continue; } + s.tmp_14 = r0; + r0 = (s.tmp_14 - 1); + s.tmp_13 = r0; + r0 = (s.tmp_12).fields["kind"] = (s.tmp_13); + s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 846; s.pc = 15; return s.tmp_0; case 15: - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = s.arg0.fields["dirMap"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.fill(s.tmp_2, 15); - s.tmp_0 = tileworld_ruleediting_RuleEditor_attrMenu__P12695_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = false; - s.callLocIdx = 1067; s.pc = 34; return s.tmp_1; - case 34: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_3 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = false; - s.callLocIdx = 1068; s.pc = 35; return s.tmp_3; - case 35: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 2); - s.tmp_0.arg2 = r0; - s.callLocIdx = 1069; s.pc = 33; return s.tmp_0; - case 33: r0 = s.retval; - { step = 21; continue; } + s.tmp_0 = tileworld_ruleediting_RuleRoom__C3805_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 16; return s.tmp_0; case 16: - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 17; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_modifyCommandMenu__P12687_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = false; - s.callLocIdx = 1070; s.pc = 36; return s.tmp_2; - case 36: r0 = s.retval; - { step = 20; continue; } - case 17: - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 2); + { step = 10; continue; } + case 5: + r0 = s.caps[0].fields["ruleTypeMap"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_dirExprMenu__P12699_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1071; s.pc = 37; return s.tmp_2; - case 37: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 847; s.pc = 17; return s.tmp_2; + case 17: r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 848; s.pc = 18; return s.tmp_4; case 18: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); + s.rt___14457 = (r0); + r0 = s.caps[0].fields["dirMap"]; + s.tmp_0 = r0; + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 849; s.pc = 19; return s.tmp_2; case 19: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 850; s.pc = 20; return s.tmp_4; case 20: - case 21: - case 22: - r0 = s.arg0.fields["askDeleteRule"]; + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); + s.dir___14464 = (r0); + r0 = (s.rt___14457 != 15); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - s.tmp_1 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["cursor"]; + if (!r0) { step = 8; continue; } + s.tmp_1 = tileworld_Project_getRulesForSpriteKind__P3708_mk(s); + r0 = s.caps[0].fields["p"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 128; - s.tmp_1.arg2 = true; - s.callLocIdx = 1072; s.pc = 38; return s.tmp_1; - case 38: + r0 = s.caps[0].fields["kind"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 851; s.pc = 21; return s.tmp_1; + case 21: r0 = s.retval; - s.tmp_0 = game_showDialog__P1295_mk(s); - s.tmp_0.arg0 = "OK to delete rule?"; - r0 = pxsim_String_.mkEmpty(); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = "A = OK, B = CANCEL"; - s.callLocIdx = 1073; s.pc = 39; return s.tmp_0; - case 39: + s.rules___14473 = (r0); + s.tmp_0 = tileworld_RuleVisualsBase_getRulesForTypeDir__P12691_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.rules___14473; + s.tmp_0.arg2 = s.rt___14457; + s.tmp_0.arg3 = s.dir___14464; + s.callLocIdx = 852; s.pc = 22; return s.tmp_0; + case 22: r0 = s.retval; - { step = 24; continue; } + s.filteredRules___14479 = (r0); + r0 = pxsim_Array__length(s.filteredRules___14479); + 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 = r0 = s.filteredRules___14479; + s.tmp_4 = tileworld_Project_makeRule__P3701_mk(s); + r0 = s.caps[0].fields["p"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.rt___14457; + s.tmp_4.arg2 = s.dir___14464; + r0 = s.caps[0].fields["kind"]; + s.tmp_4.arg3 = r0; + s.callLocIdx = 853; s.pc = 23; return s.tmp_4; case 23: - s.tmp_0 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 128; - s.tmp_0.arg2 = false; - s.callLocIdx = 1074; s.pc = 40; return s.tmp_0; - case 40: r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_2, s.tmp_3); + case 6: + case 7: + s.tmp_0 = game_pushScene__P2528_mk(s); + s.callLocIdx = 854; s.pc = 24; return s.tmp_0; case 24: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleEditor__C3816_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_ruleediting_RuleEditor_constructor__P3817_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_1.arg1 = r0; + r0 = pxsim_Array__getAt(s.filteredRules___14479, 0); + s.tmp_1.arg2 = r0; + r0 = s.caps[0].fields["kind"]; + s.tmp_1.arg3 = r0; + s.callLocIdx = 855; s.pc = 25; return s.tmp_1; + case 25: + r0 = s.retval; + case 8: + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_update__P12683.info = {"start":10406,"length":1240,"line":223,"column":8,"endLine":248,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"update","argumentNames":["this"]} +inline__P14435.info = {"start":982,"length":964,"line":23,"column":64,"endLine":41,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":[]} -function tileworld_ruleediting_RuleEditor_update__P12683_mk(s) { +function inline__P14435_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_update__P12683, depth: s.depth + 1, + parent: s, fn: inline__P14435, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19586,15 +22286,20 @@ function tileworld_ruleediting_RuleEditor_update__P12683_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - len___13897: undefined, - arg0: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + rt___14457: undefined, + dir___14464: undefined, + rules___14473: undefined, + filteredRules___14479: undefined, } } -function tileworld_ruleediting_RuleEditor_dirExprMenu__P12699(s) { +function inline__P14536(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19604,58 +22309,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P14690); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = globals.movedImages___11227; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1188; s.pc = 1; return s.tmp_1; + s.tmp_0 = game_popScene__P2529_mk(s); + s.callLocIdx = 857; s.pc = 1; return s.tmp_0; case 1: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = tileworld_RuleView_getWitnessDirection__P4998_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_1.arg0 = r0; - r0 = s.arg0.fields["whenDo"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 1189; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.cursorOut___7253; - s.callLocIdx = 1190; s.pc = 2; return s.tmp_0; - case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_dirExprMenu__P12699.info = {"start":22088,"length":326,"line":502,"column":8,"endLine":509,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"dirExprMenu","argumentNames":["this"]} +inline__P14536.info = {"start":2014,"length":56,"line":42,"column":64,"endLine":44,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":[]} -function tileworld_ruleediting_RuleEditor_dirExprMenu__P12699_mk(s) { +function inline__P14536_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_dirExprMenu__P12699, depth: s.depth + 1, + parent: s, fn: inline__P14536, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, } } -function inline__P14690(s) { +function tileworld_ruleediting_RuleEditor_constructor__P3817(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19668,63 +22344,83 @@ 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.caps[0].fields["rule"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["r"]; - r0 = r0.fields["ruleType"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + r0 = (s.arg0).fields["kind"] = (s.arg3); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P3798_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.callLocIdx = 928; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.arg1 < 4); + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 929; s.pc = 2; return s.tmp_0; case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 5; continue; } + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 930; s.pc = 3; return s.tmp_0; case 3: + r0 = s.retval; + r0 = (s.arg0).fields["askDeleteRule"] = (false); + s.tmp_0 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 931; s.pc = 4; return s.tmp_0; case 4: - s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.arg0; - s.callLocIdx = 1187; s.pc = 6; return s.tmp_4; - case 6: r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(2, inline__P15135); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1002; s.pc = 5; return s.tmp_1; case 5: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P15438); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.B___1875; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1009; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P14690.info = {"start":22144,"length":172,"line":503,"column":32,"endLine":507,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["img","i"]} +tileworld_ruleediting_RuleEditor_constructor__P3817.info = {"start":1161,"length":5971,"line":26,"column":8,"endLine":138,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["this","p","rule","kind"]} -function inline__P14690_mk(s) { +function tileworld_ruleediting_RuleEditor_constructor__P3817_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14690, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_constructor__P3817, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tileworld_ruleediting_RuleEditor_modifyCommandMenu__P12687(s) { +function inline__P15135(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19734,733 +22430,783 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.inst___14163 = undefined; - s.arg___14171 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getCmdInst__P5000_mk(s); - r0 = s.arg0.fields["rule"]; + s.index___15143 = undefined; + s.rules___15156 = undefined; + s.rules___15235 = undefined; + s.index___15237 = undefined; + s.rules___15321 = undefined; + s.g___15325 = undefined; + s.col___15382 = undefined; + s.row___15388 = undefined; + s.tmp_0 = Sprite_say__P2071_mk(s); + r0 = s.caps[0].fields["helpCursor"]; s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["whenDo"]; - s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["currentCommand"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 1110; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_0.arg1 = null; + s.tmp_0.arg2 = undefined; + s.tmp_0.arg3 = 15; + s.tmp_0.arg4 = 1; + s.callLocIdx = 932; s.pc = 70; return s.tmp_0; + case 70: r0 = s.retval; - s.inst___14163 = (r0); - s.tmp_0 = tileworld_RuleView_getCmdArg__P5001_mk(s); - r0 = s.arg0.fields["rule"]; + r0 = s.caps[0].fields["askDeleteRule"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 933; s.pc = 71; return s.tmp_2; + case 71: + r0 = s.retval; + s.tmp_1 = r0; + r0 = s.caps[0].fields["rule"]; + s.tmp_3 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_1, s.tmp_3, undefined); + s.index___15143 = (r0); + s.tmp_0 = tileworld_Project_removeRule__P3702_mk(s); + r0 = s.caps[0].fields["p"]; s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["whenDo"]; + r0 = s.caps[0].fields["rule"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["rid"]; s.tmp_0.arg1 = r0; - r0 = s.arg0.fields["currentCommand"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 1111; s.pc = 6; return s.tmp_0; - case 6: + s.callLocIdx = 935; s.pc = 72; return s.tmp_0; + case 72: r0 = s.retval; - s.arg___14171 = (r0); - r0 = s.arg0.fields["tokens"]; - s.tmp_2 = r0; - r0 = pxsim_Array__length(s.tmp_2); + s.tmp_0 = tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 936; s.pc = 73; return s.tmp_0; + case 73: + r0 = s.retval; + s.rules___15156 = (r0); + r0 = pxsim_Array__length(s.rules___15156); s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); + r0 = (s.tmp_1 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P12686_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.inst___14163; - s.tmp_3.arg2 = s.arg___14171; - s.tmp_3.arg3 = s.arg1; - s.callLocIdx = 1112; s.pc = 7; return s.tmp_3; - case 7: + s.tmp_2 = game_popScene__P2529_mk(s); + s.callLocIdx = 937; s.pc = 74; return s.tmp_2; + case 74: r0 = s.retval; + { step = 69; continue; } { step = 4; continue; } case 1: - r0 = (s.inst___14163 != 255); + s.tmp_1 = r0 = s.index___15143; + r0 = pxsim_Array__length(s.rules___15156); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.inst___14163); - r0 = pxsim_Array__push(s.tmp_1, 100); - r0 = (s.arg0).fields["tokens"] = (s.tmp_1); - s.tmp_0 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P12686_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.inst___14163; - s.tmp_0.arg2 = s.arg___14171; - s.tmp_0.arg3 = s.arg1; - s.callLocIdx = 1113; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + r0 = pxsim_Array__getAt(s.rules___15156, s.index___15143); + { step = 3; continue; } case 2: + s.tmp_3 = r0 = s.rules___15156; + r0 = (s.index___15143 - 1); + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); case 3: + // jmp value (already in r0) + s.tmp_5 = r0; + s.tmp_6 = tileworld_ruleediting_RuleEditor_resetRule__P14505_mk(s); + s.tmp_6.arg0 = s.caps[0]; + s.tmp_6.arg1 = s.tmp_5; + s.callLocIdx = 938; s.pc = 75; return s.tmp_6; + case 75: + r0 = s.retval; case 4: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_ruleediting_RuleEditor_modifyCommandMenu__P12687.info = {"start":14827,"length":488,"line":326,"column":8,"endLine":335,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"modifyCommandMenu","argumentNames":["this","inEdit"]} - -function tileworld_ruleediting_RuleEditor_modifyCommandMenu__P12687_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_ruleediting_RuleEditor_modifyCommandMenu__P12687, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - inst___14163: undefined, - arg___14171: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tileworld_ruleediting_RuleEditor_makeCommandMenu__P12686(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.col___14114 = undefined; - s.row___14115 = 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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); - s.col___14114 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.col___14114, 3); - s.row___14115 = (0); - r0 = pxsim_pxtcore_mkAction(5, inline__P14119); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___14114); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.row___14115); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.arg3); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - r0 = s.arg0.fields["tokens"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1108; s.pc = 3; return s.tmp_1; - case 3: + r0 = (s.caps[0]).fields["askDeleteRule"] = (false); + { step = 68; continue; } + case 5: + s.tmp_1 = tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509_mk(s); + s.tmp_1.arg0 = s.caps[0]; + s.callLocIdx = 939; s.pc = 76; return s.tmp_1; + case 76: r0 = s.retval; - r0 = (s.arg1 != 255); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = tileworld_ruleediting_RuleEditor_makeArgMenu__P12691_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.tmp_1.arg3 = s.arg3; - s.callLocIdx = 1109; s.pc = 4; return s.tmp_1; - case 4: + if (!r0) { step = 12; continue; } + s.tmp_3 = tileworld_ruleediting_RuleDisplay_active__P13113_mk(s); + s.tmp_3.arg0 = s.caps[0]; + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 940; s.pc = 78; return s.tmp_4; + case 78: r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_ruleediting_RuleEditor_makeCommandMenu__P12686.info = {"start":13969,"length":848,"line":303,"column":8,"endLine":324,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"makeCommandMenu","argumentNames":["this","inst","arg","inEdit"]} - -function tileworld_ruleediting_RuleEditor_makeCommandMenu__P12686_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_ruleediting_RuleEditor_makeCommandMenu__P12686, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - col___14114: undefined, - row___14115: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function inline__P14119(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 < 7); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__getAt(globals.categoryImages___13289, s.arg0); - { step = 2; continue; } - case 1: - r0 = globals.garbageCan___7235; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_2.arg0 = s.caps[0]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.caps[2]; - s.tmp_2.arg3 = s.tmp_1; - s.callLocIdx = 1103; s.pc = 7; return s.tmp_2; - case 7: + s.tmp_3.arg1 = r0; + s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_6.arg0 = s.caps[0]; + s.tmp_6.arg1 = true; + s.callLocIdx = 941; s.pc = 79; return s.tmp_6; + case 79: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P10852_mk(s); - s.tmp_0.arg0 = s.caps[0]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.caps[2]; - s.tmp_0.arg3 = 12; - s.callLocIdx = 1104; s.pc = 8; return s.tmp_0; - case 8: + s.tmp_5 = r0; + r0 = (s.tmp_5 - 2); + s.tmp_3.arg2 = r0; + s.callLocIdx = 942; s.pc = 77; return s.tmp_3; + case 77: r0 = s.retval; - r0 = (s.caps[3] == s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_1.arg0 = s.caps[0]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.caps[2]; - s.tmp_1.arg3 = globals.cursorOut___7253; - s.callLocIdx = 1105; s.pc = 9; return s.tmp_1; - case 9: + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 10; continue; } + r0 = s.caps[0].fields["menu"]; + s.tmp_8 = r0; + r0 = (s.tmp_8 == 0); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 6; continue; } + r0 = (s.caps[0]).fields["menu"] = (1); + s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 943; s.pc = 80; return s.tmp_0; + case 80: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.caps[4]); - if (!r0) { step = 3; continue; } - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); s.tmp_0.arg0 = s.caps[0]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1106; s.pc = 10; return s.tmp_0; - case 10: + s.tmp_0.arg1 = 0; + s.callLocIdx = 944; s.pc = 81; return s.tmp_0; + case 81: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.caps[2]; - s.callLocIdx = 1107; s.pc = 11; return s.tmp_0; - case 11: + s.tmp_0.arg1 = 1; + s.callLocIdx = 945; s.pc = 82; return s.tmp_0; + case 82: r0 = s.retval; - case 3: - case 4: - case 5: + { step = 9; continue; } case 6: - r0 = s.caps[0].fields["ruleTypeMap"]; - s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.caps[2], s.arg0); - s.tmp_0 = r0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); + r0 = s.caps[0].fields["menu"]; s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P14119.info = {"start":14212,"length":494,"line":308,"column":32,"endLine":320,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["ct"]} - -function inline__P14119_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P14119, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function tileworld_ruleediting_RuleEditor_makeArgMenu__P12691(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.col___14242 = undefined; - s.row___14243 = undefined; - s.last___14248 = undefined; - s.i___14256 = 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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.col___14242 = (4); - s.row___14243 = (1); - r0 = s.arg0.fields["dirMap"]; + r0 = (s.tmp_1 == 1); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); - s.tmp_1 = tileworld_ruleediting_RuleEditor_instToStartArg__P12688_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 1118; s.pc = 7; return s.tmp_1; - case 7: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 946; s.pc = 83; return s.tmp_2; + case 83: r0 = s.retval; - s.tmp_0 = r0; - s.tmp_3 = tileworld_ruleediting_RuleEditor_instToNumArgs__P12690_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 1119; s.pc = 8; return s.tmp_3; + case 7: case 8: + case 9: + case 10: + case 11: + { step = 67; continue; } + case 12: + r0 = s.caps[0].fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 13: + s.tmp_3 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_3.arg0 = s.caps[0]; + s.tmp_3.arg1 = true; + s.callLocIdx = 947; s.pc = 84; return s.tmp_3; + case 84: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - s.last___14248 = (r0); - s.tmp_0 = tileworld_ruleediting_RuleEditor_instToStartArg__P12688_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1120; s.pc = 9; return s.tmp_0; - case 9: + r0 = (s.tmp_2 < 2); + case 14: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 15; continue; } + s.tmp_5 = tileworld_ruleediting_RuleEditor_attrUpdate__P14524_mk(s); + s.tmp_5.arg0 = s.caps[0]; + s.callLocIdx = 948; s.pc = 85; return s.tmp_5; + case 85: r0 = s.retval; - s.i___14256 = (r0); - case 1: - r0 = (s.i___14256 < s.last___14248); + { step = 66; continue; } + case 15: + r0 = s.caps[0].fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.col___14242; - s.tmp_1.arg2 = s.row___14243; - s.tmp_2 = tileworld_ruleediting_RuleDisplay_instToImage__P11282_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.arg1; - s.tmp_2.arg2 = s.i___14256; - s.callLocIdx = 1121; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; - s.tmp_1.arg3 = r0; - s.callLocIdx = 1122; s.pc = 10; return s.tmp_1; - case 10: + if (!r0) { step = 16; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_commandUpdate__P14519_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = false; + s.callLocIdx = 949; s.pc = 86; return s.tmp_2; + case 86: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P10852_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.col___14242; - s.tmp_0.arg2 = s.row___14243; - s.tmp_0.arg3 = 12; - s.callLocIdx = 1123; s.pc = 12; return s.tmp_0; - case 12: + { step = 65; continue; } + case 16: + r0 = s.caps[0].fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 950; s.pc = 87; return s.tmp_2; + case 87: r0 = s.retval; - r0 = (s.arg2 == s.i___14256); + { step = 64; continue; } + case 17: + r0 = s.caps[0].fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.col___14242; - s.tmp_1.arg2 = s.row___14243; - s.tmp_1.arg3 = globals.cursorOut___7253; - s.callLocIdx = 1124; s.pc = 13; return s.tmp_1; - case 13: + if (!r0) { step = 62; continue; } + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 951; s.pc = 88; return s.tmp_4; + case 88: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 2; continue; } - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.col___14242; - s.callLocIdx = 1125; s.pc = 14; return s.tmp_0; - case 14: + s.tmp_3 = r0; + r0 = (s.tmp_3 == 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 44; continue; } + s.tmp_7 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_7.arg0 = s.caps[0]; + s.tmp_7.arg1 = true; + s.callLocIdx = 952; s.pc = 89; return s.tmp_7; + case 89: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.row___14243; - s.callLocIdx = 1126; s.pc = 15; return s.tmp_0; - case 15: + s.tmp_6 = r0; + r0 = (7 <= s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (r0) { step = 18; continue; } + r0 = s.tmp_5; + { step = 19; continue; } + case 18: + s.tmp_9 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_9.arg0 = s.caps[0]; + s.tmp_9.arg1 = true; + s.callLocIdx = 953; s.pc = 90; return s.tmp_9; + case 90: r0 = s.retval; - case 2: - case 3: - case 4: - case 5: - r0 = s.arg0.fields["dirMap"]; + s.tmp_8 = r0; + r0 = (s.tmp_8 <= 9); + case 19: + // jmp value (already in r0) + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 32; continue; } + s.tmp_11 = tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s); + s.tmp_11.arg0 = s.caps[0]; + s.callLocIdx = 954; s.pc = 91; return s.tmp_11; + case 91: + r0 = s.retval; + s.rules___15235 = (r0); + r0 = s.caps[0].fields["rule"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.col___14242, s.row___14243, s.i___14256); - r0 = (s.col___14242 + 1); - s.col___14242 = (r0); - r0 = (s.i___14256 + 1); - s.i___14256 = (r0); - { step = 1; continue; } - case 6: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_ruleediting_RuleEditor_makeArgMenu__P12691.info = {"start":16432,"length":755,"line":368,"column":8,"endLine":386,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"makeArgMenu","argumentNames":["this","inst","arg","inEdit"]} - -function tileworld_ruleediting_RuleEditor_makeArgMenu__P12691_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_ruleediting_RuleEditor_makeArgMenu__P12691, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - col___14242: undefined, - row___14243: undefined, - last___14248: undefined, - i___14256: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function tileworld_ruleediting_RuleDisplay_instToImage__P11282(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.ret___11719 = undefined; - s.ret___11735 = undefined; - s.ret___11752 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = (s.arg1 == 255); + r0 = pxsim_Array_.indexOf(s.rules___15235, s.tmp_0, undefined); + s.index___15237 = (r0); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 955; s.pc = 92; return s.tmp_2; + case 92: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 7); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 20; continue; } r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg2 == 255); - case 2: + { step = 21; continue; } + case 20: + r0 = (s.index___15237 > 0); + case 21: // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 22; continue; } + s.tmp_4 = tileworld_ruleediting_RuleEditor_changeRule__P14504_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_5 = r0 = s.rules___15235; + r0 = (s.index___15237 - 1); + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.tmp_6); + s.tmp_4.arg1 = r0; + s.callLocIdx = 956; s.pc = 93; return s.tmp_4; + case 93: + r0 = s.retval; + { step = 31; continue; } + case 22: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 957; s.pc = 94; return s.tmp_2; + case 94: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = globals.emptyTile___7244; - { step = 15; continue; } - case 3: - case 4: - s.tmp_2 = r0 = s.arg1; - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_2); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_2); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_2); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_2); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_2); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(6, s.tmp_2); - if (r0) { step = 10; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_2); - if (r0) { step = 13; continue; } - r0 = s.tmp_2; - { step = 14; continue; } - case 5: - r0 = pxsim_Array__getAt(globals.moveImages___11219, s.arg2); - { step = 15; continue; } - case 6: - r0 = s.arg0.fields["p"]; + r0 = (s.tmp_1 == 9); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 23; continue; } + r0 = s.tmp_0; + { step = 24; continue; } + case 23: + s.tmp_3 = r0 = s.index___15237; + r0 = pxsim_Array__length(s.rules___15235); s.tmp_5 = r0; - r0 = s.tmp_5.fields["_backgroundsI"]; + r0 = (s.tmp_5 - 1); s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.arg2); - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_3); - s.ret___11719 = (r0); - r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___11719, globals.smallPaint___7352, 0, 0); - r0 = s.ret___11719; - { step = 15; continue; } - case 7: - r0 = globals.eat___7340; - { step = 15; continue; } - case 8: - r0 = pxsim_Array__getAt(globals.gameImages___11257, s.arg2); - { step = 15; continue; } - case 9: - case 10: - r0 = s.arg0.fields["p"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_spritesI"]; + r0 = (s.tmp_3 < s.tmp_4); + case 24: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 25; continue; } + s.tmp_7 = tileworld_ruleediting_RuleEditor_changeRule__P14504_mk(s); + s.tmp_7.arg0 = s.caps[0]; + s.tmp_8 = r0 = s.rules___15235; + r0 = (s.index___15237 + 1); + s.tmp_9 = r0; + r0 = pxsim_Array__getAt(s.tmp_8, s.tmp_9); + s.tmp_7.arg1 = r0; + s.callLocIdx = 958; s.pc = 95; return s.tmp_7; + case 95: + r0 = s.retval; + { step = 30; continue; } + case 25: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 959; s.pc = 96; return s.tmp_2; + case 96: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.arg2); - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.ret___11735 = (r0); - r0 = (s.arg1 == 2); + r0 = (s.tmp_1 == 8); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = globals.spawn___7349; - { step = 12; continue; } - case 11: - r0 = globals.exclude___7262; - case 12: + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 26; continue; } + r0 = s.tmp_0; + { step = 27; continue; } + case 26: + s.tmp_4 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.callLocIdx = 960; s.pc = 97; return s.tmp_4; + case 97: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 != -1); + case 27: // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 28; continue; } + s.tmp_6 = tileworld_ruleediting_RuleEditor_changeRule__P14504_mk(s); + s.tmp_6.arg0 = s.caps[0]; + s.tmp_7 = tileworld_Project_makeRule__P3701_mk(s); + s.tmp_7.arg0 = s.caps[1]; + s.tmp_8 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_8.arg0 = s.caps[0]; + s.callLocIdx = 961; s.pc = 100; return s.tmp_8; + case 100: + r0 = s.retval; + s.tmp_7.arg1 = r0; + s.tmp_9 = tileworld_ruleediting_RuleDisplay_getDir__P13102_mk(s); + s.tmp_9.arg0 = s.caps[0]; + s.callLocIdx = 962; s.pc = 101; return s.tmp_9; + case 101: + r0 = s.retval; + s.tmp_7.arg2 = r0; + s.tmp_10 = tileworld_ruleediting_RuleDisplay_getKind__P13104_mk(s); + s.tmp_10.arg0 = s.caps[0]; + s.callLocIdx = 963; s.pc = 102; return s.tmp_10; + case 102: + r0 = s.retval; + s.tmp_7.arg3 = r0; + s.callLocIdx = 964; s.pc = 99; return s.tmp_7; + case 99: + r0 = s.retval; + s.tmp_6.arg1 = r0; + s.callLocIdx = 965; s.pc = 98; return s.tmp_6; + case 98: + r0 = s.retval; + case 28: + case 29: + case 30: + case 31: + { step = 43; continue; } + case 32: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 966; s.pc = 103; return s.tmp_2; + case 103: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___11735, s.tmp_1, 0, 0); - r0 = s.ret___11735; - { step = 15; continue; } - case 13: - r0 = s.arg0.fields["p"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_backgroundsI"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.arg2); + r0 = (s.tmp_1 == 1); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.ret___11752 = (r0); - r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___11752, globals.portal___7355, 0, 0); - r0 = s.ret___11752; - { step = 15; continue; } - case 14: - r0 = globals.emptyTile___7244; - case 15: - return leave(s, r0) - default: oops() -} } } -tileworld_ruleediting_RuleDisplay_instToImage__P11282.info = {"start":6695,"length":1169,"line":159,"column":8,"endLine":185,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"instToImage","argumentNames":["this","inst","arg"]} - -function tileworld_ruleediting_RuleDisplay_instToImage__P11282_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_instToImage__P11282, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - ret___11719: undefined, - ret___11735: undefined, - ret___11752: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function tileworld_Project_spriteImages__P5994(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, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = s.arg0.fields["_spritesI"]; - return leave(s, r0) - default: oops() -} } } -tileworld_Project_spriteImages__P5994.info = {"start":3406,"length":48,"line":100,"column":8,"endLine":100,"endColumn":56,"fileName":"project.ts","functionName":"spriteImages","argumentNames":["this"]} - -function tileworld_Project_spriteImages__P5994_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_Project_spriteImages__P5994, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function tileworld_Project_backgroundImages__P5990(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, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = s.arg0.fields["_backgroundsI"]; - return leave(s, r0) - default: oops() -} } } -tileworld_Project_backgroundImages__P5990.info = {"start":3341,"length":56,"line":99,"column":8,"endLine":99,"endColumn":64,"fileName":"project.ts","functionName":"backgroundImages","argumentNames":["this"]} - -function tileworld_Project_backgroundImages__P5990_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_Project_backgroundImages__P5990, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function tileworld_ruleediting_RuleEditor_instToNumArgs__P12690(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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg1; - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(6, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 9; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 33; continue; } + s.tmp_3 = tileworld_Project_saveRule__P3700_mk(s); + r0 = s.caps[0].fields["p"]; + s.tmp_3.arg0 = r0; + r0 = s.caps[0].fields["rule"]; + s.tmp_3.arg1 = r0; + s.callLocIdx = 967; s.pc = 104; return s.tmp_3; + case 104: + r0 = s.retval; + s.tmp_0 = game_pushScene__P2528_mk(s); + s.callLocIdx = 968; s.pc = 105; return s.tmp_0; + case 105: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_MapEditor__C3819_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_MapEditor_constructor__P3820_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 969; s.pc = 106; return s.tmp_1; + case 106: + r0 = s.retval; + { step = 69; continue; } + { step = 42; continue; } + case 33: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 970; s.pc = 107; return s.tmp_2; + case 107: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 34; continue; } r0 = s.tmp_0; - { step = 10; continue; } - case 1: - s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1115; s.pc = 12; return s.tmp_3; - case 12: + { step = 35; continue; } + case 34: + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 971; s.pc = 108; return s.tmp_4; + case 108: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 == 3); + case 35: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 36; continue; } + s.tmp_6 = tileworld_Project_saveRule__P3700_mk(s); + r0 = s.caps[0].fields["p"]; + s.tmp_6.arg0 = r0; + r0 = s.caps[0].fields["rule"]; + s.tmp_6.arg1 = r0; + s.callLocIdx = 972; s.pc = 109; return s.tmp_6; + case 109: + r0 = s.retval; + s.tmp_0 = game_pushScene__P2528_mk(s); + s.callLocIdx = 973; s.pc = 110; return s.tmp_0; + case 110: + r0 = s.retval; + r0 = s.caps[0].fields["p"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["rules"]; + s.rules___15321 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RunGame__C3773_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_RunGame_constructor__P3774_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.rules___15321; + s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_3.arg0 = s.caps[0]; + s.tmp_3.arg1 = true; + s.callLocIdx = 975; s.pc = 112; return s.tmp_3; + case 112: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 != 2); + r0 = (s.tmp_2 == 3); + s.tmp_1.arg3 = r0; + s.callLocIdx = 976; s.pc = 111; return s.tmp_1; + case 111: + r0 = s.retval; + s.g___15325 = (s.tmp_0); + s.tmp_0 = tileworld_RunGame_setWorld__P3775_mk(s); + s.tmp_0.arg0 = s.g___15325; + r0 = s.caps[0].fields["p"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = 4; - { step = 3; continue; } - case 2: - r0 = 1; - case 3: - // jmp value (already in r0) + r0 = s.tmp_1.fields["_backgrounds"]; + s.tmp_0.arg1 = r0; + r0 = s.caps[0].fields["p"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_sprites"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 979; s.pc = 113; return s.tmp_0; + case 113: + r0 = s.retval; + s.tmp_0 = tileworld_RunGame_start__P3776_mk(s); + s.tmp_0.arg0 = s.g___15325; + s.callLocIdx = 980; s.pc = 114; return s.tmp_0; + case 114: + r0 = s.retval; + { step = 69; continue; } + { step = 41; continue; } + case 36: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 981; s.pc = 115; return s.tmp_2; + case 115: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 6); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 37; continue; } + r0 = (s.caps[0]).fields["askDeleteRule"] = (true); + { step = 40; continue; } + case 37: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 982; s.pc = 116; return s.tmp_2; + case 116: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 38; continue; } + s.tmp_3 = tileworld_Project_saveRule__P3700_mk(s); + r0 = s.caps[0].fields["p"]; + s.tmp_3.arg0 = r0; + r0 = s.caps[0].fields["rule"]; + s.tmp_3.arg1 = r0; + s.callLocIdx = 983; s.pc = 117; return s.tmp_3; + case 117: + r0 = s.retval; + s.tmp_0 = game_pushScene__P2528_mk(s); + s.callLocIdx = 984; s.pc = 118; return s.tmp_0; + case 118: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(tileworld_ruleediting_RuleViewDisplay__C3801_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_ruleediting_RuleViewDisplay_constructor__P3802_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.caps[0].fields["p"]; + s.tmp_1.arg1 = r0; + r0 = s.caps[0].fields["rule"]; + s.tmp_1.arg2 = r0; + s.callLocIdx = 985; s.pc = 119; return s.tmp_1; + case 119: + r0 = s.retval; + { step = 69; continue; } + case 38: + case 39: + case 40: + case 41: + case 42: + case 43: + { step = 61; continue; } + case 44: + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 986; s.pc = 120; return s.tmp_2; + case 120: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 59; continue; } + s.tmp_5 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_5.arg0 = s.caps[0]; + s.tmp_5.arg1 = true; + s.callLocIdx = 987; s.pc = 121; return s.tmp_5; + case 121: + r0 = s.retval; s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 11; continue; } - case 4: - r0 = 4; - { step = 11; continue; } - case 5: - r0 = 0; - { step = 11; continue; } - case 6: - r0 = 3; - { step = 11; continue; } - case 7: - case 8: - r0 = s.arg0.fields["p"]; + r0 = (s.tmp_4 > 5); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 45; continue; } + s.tmp_6 = tileworld_ruleediting_RuleEditor_tryEditCommand__P14512_mk(s); + s.tmp_6.arg0 = s.caps[0]; + s.callLocIdx = 988; s.pc = 122; return s.tmp_6; + case 122: + r0 = s.retval; + { step = 58; continue; } + case 45: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 989; s.pc = 123; return s.tmp_2; + case 123: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 46; continue; } + r0 = s.tmp_0; + { step = 47; continue; } + case 46: + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = true; + s.callLocIdx = 990; s.pc = 124; return s.tmp_4; + case 124: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 < 7); + case 47: + // jmp value (already in r0) s.tmp_5 = r0; - r0 = s.tmp_5.fields["_spritesI"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 56; continue; } + s.tmp_6 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s); + s.tmp_6.arg0 = s.caps[0]; + s.tmp_8 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_8.arg0 = s.caps[0]; + s.tmp_8.arg1 = true; + s.callLocIdx = 991; s.pc = 126; return s.tmp_8; + case 126: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_7 - 2); + s.tmp_6.arg1 = r0; + s.callLocIdx = 992; s.pc = 125; return s.tmp_6; + case 125: + r0 = s.retval; + s.col___15382 = (r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 993; s.pc = 128; return s.tmp_2; + case 128: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 994; s.pc = 127; return s.tmp_0; + case 127: + r0 = s.retval; + s.row___15388 = (r0); + s.tmp_2 = tileworld_RuleView_findWitnessColRow__P3650_mk(s); + r0 = s.caps[0].fields["rule"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.col___15382; + s.tmp_2.arg2 = s.row___15388; + s.tmp_2.arg3 = true; + s.callLocIdx = 995; s.pc = 129; return s.tmp_2; + case 129: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 != -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 48; continue; } + r0 = s.tmp_0; + { step = 53; continue; } + case 48: + r0 = s.caps[0].fields["rule"]; + s.tmp_5 = r0; + r0 = s.tmp_5.fields["r"]; + r0 = r0.fields["ruleType"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 != 2); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 49; continue; } + r0 = s.tmp_3; + { step = 50; continue; } + case 49: + r0 = (s.col___15382 != 2); + case 50: + // jmp value (already in r0) s.tmp_6 = r0; - r0 = pxsim_Array__length(s.tmp_6); - { step = 11; continue; } - case 9: - r0 = s.arg0.fields["p"]; + r0 = pxsim_numops_toBool(s.tmp_6); + if (!r0) { step = 51; continue; } + r0 = s.tmp_6; + { step = 52; continue; } + case 51: + r0 = (s.row___15388 != 2); + case 52: + // jmp value (already in r0) s.tmp_7 = r0; - r0 = s.tmp_7.fields["_backgroundsI"]; + r0 = s.tmp_7; + case 53: + // jmp value (already in r0) s.tmp_8 = r0; - r0 = pxsim_Array__length(s.tmp_8); - { step = 11; continue; } - case 10: - r0 = 0; - case 11: + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 54; continue; } + r0 = (s.caps[0]).fields["menu"] = (2); + s.tmp_0 = r0 = s.caps[0]; + s.tmp_2 = tileworld_RuleView_getWhenDo__P3643_mk(s); + r0 = s.caps[0].fields["rule"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.col___15382; + s.tmp_2.arg2 = s.row___15388; + s.callLocIdx = 997; s.pc = 130; return s.tmp_2; + case 130: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["whenDo"] = (s.tmp_1); + s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 998; s.pc = 131; return s.tmp_0; + case 131: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_1 = tileworld_RuleView_getWitnessDirection__P3651_mk(s); + r0 = s.caps[0].fields["rule"]; + s.tmp_1.arg0 = r0; + r0 = s.caps[0].fields["whenDo"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 999; s.pc = 133; return s.tmp_1; + case 133: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1000; s.pc = 132; return s.tmp_0; + case 132: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1001; s.pc = 134; return s.tmp_0; + case 134: + r0 = s.retval; + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_instToNumArgs__P12690.info = {"start":15885,"length":537,"line":355,"column":8,"endLine":366,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToNumArgs","argumentNames":["this","inst"]} +inline__P15135.info = {"start":1593,"length":4842,"line":35,"column":64,"endLine":119,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":[]} -function tileworld_ruleediting_RuleEditor_instToNumArgs__P12690_mk(s) { +function inline__P15135_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_instToNumArgs__P12690, depth: s.depth + 1, + parent: s, fn: inline__P15135, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20471,15 +23217,24 @@ function tileworld_ruleediting_RuleEditor_instToNumArgs__P12690_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - arg0: undefined, - arg1: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + index___15143: undefined, + rules___15156: undefined, + rules___15235: undefined, + index___15237: undefined, + rules___15321: undefined, + g___15325: undefined, + col___15382: undefined, + row___15388: undefined, } } -function tileworld_Project_backCnt__P5248(s) { +function inline__P15438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20489,34 +23244,95 @@ 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, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = s.arg0.fields["_backgroundsI"]; + r0 = s.caps[0].fields["askDeleteRule"]; s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.caps[0]).fields["askDeleteRule"] = (false); + { step = 6; continue; } + case 1: + r0 = s.caps[0].fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 != 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 1003; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + { step = 5; continue; } + case 2: + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.tmp_2.arg1 = true; + s.callLocIdx = 1004; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_3 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s); + s.tmp_3.arg0 = s.caps[0]; + s.callLocIdx = 1005; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = 2; + s.callLocIdx = 1006; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1007; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + { step = 4; continue; } + case 3: + s.tmp_0 = tileworld_ruleediting_RuleEditor_saveAndPop__P14506_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 1008; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + { step = 7; continue; } + case 4: + case 5: + case 6: + s.tmp_0 = tileworld_ruleediting_RuleEditor__C3816_v0_1_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_Project_backCnt__P5248.info = {"start":3147,"length":54,"line":96,"column":8,"endLine":96,"endColumn":62,"fileName":"project.ts","functionName":"backCnt","argumentNames":["this"]} +inline__P15438.info = {"start":6502,"length":618,"line":121,"column":64,"endLine":137,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":[]} -function tileworld_Project_backCnt__P5248_mk(s) { +function inline__P15438_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_backCnt__P5248, depth: s.depth + 1, + parent: s, fn: inline__P15438, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function tileworld_ruleediting_RuleEditor_instToStartArg__P12688(s) { +function tileworld_ruleediting_RuleEditor_update__P14510(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20526,65 +23342,276 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___15710 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg1; - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_update__P13111_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1059; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + r0 = s.arg0.fields["p"]; + r0 = r0.fields["help"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 4; continue; } + { step = 2; continue; } case 1: - s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1114; s.pc = 6; return s.tmp_3; + r0 = s.arg0.fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 3; continue; } + r0 = s.tmp_2; + { step = 4; continue; } + case 3: + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = true; + s.callLocIdx = 1060; s.pc = 26; return s.tmp_4; + case 26: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 > 5); + case 4: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (r0) { step = 5; continue; } + r0 = s.tmp_5; + { step = 6; continue; } + case 5: + s.tmp_7 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = true; + s.callLocIdx = 1061; s.pc = 27; return s.tmp_7; + case 27: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 >= 2); case 6: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 13; continue; } + r0 = s.arg0.fields["commandLengths"]; + s.tmp_9 = r0; + s.tmp_12 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_12.arg0 = s.arg0; + s.tmp_12.arg1 = true; + s.callLocIdx = 1062; s.pc = 28; return s.tmp_12; + case 28: + r0 = s.retval; + s.tmp_11 = r0; + r0 = (s.tmp_11 - 2); + s.tmp_10 = r0; + r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); + s.len___15710 = (r0); + r0 = (s.len___15710 != -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = true; + s.callLocIdx = 1063; s.pc = 29; return s.tmp_3; + case 29: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 != 2); + r0 = (s.tmp_2 - 6); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = 0; - { step = 3; continue; } - case 2: - r0 = 4; - case 3: + r0 = (s.tmp_1 < s.len___15710); + case 8: // jmp value (already in r0) s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 5; continue; } - case 4: - r0 = 0; - case 5: + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 11; continue; } + s.tmp_8 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_8.arg0 = s.arg0; + s.tmp_8.arg1 = true; + s.callLocIdx = 1064; s.pc = 30; return s.tmp_8; + case 30: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_7 - 6); + s.tmp_6 = r0; + r0 = (s.len___15710 - 1); + s.tmp_9 = r0; + r0 = (s.tmp_6 == s.tmp_9); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 9; continue; } + r0 = "A: add command"; + { step = 10; continue; } + case 9: + r0 = "E: edit command"; + case 10: + // jmp value (already in r0) + s.tmp_10 = r0; + s.tmp_11 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_11.arg0 = r0; + s.tmp_11.arg1 = s.tmp_10; + s.tmp_11.arg2 = undefined; + s.tmp_11.arg3 = 15; + s.tmp_11.arg4 = 1; + s.callLocIdx = 1065; s.pc = 31; return s.tmp_11; + case 31: + r0 = s.retval; + case 11: + case 12: + case 13: + case 14: + r0 = s.arg0.fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_showMainMenu__P14511_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1066; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + { step = 22; continue; } + case 15: + r0 = s.arg0.fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = s.arg0.fields["dirMap"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.fill(s.tmp_2, 15); + s.tmp_0 = tileworld_ruleediting_RuleEditor_attrMenu__P14522_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = false; + s.callLocIdx = 1067; s.pc = 34; return s.tmp_1; + case 34: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_3 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = false; + s.callLocIdx = 1068; s.pc = 35; return s.tmp_3; + case 35: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 2); + s.tmp_0.arg2 = r0; + s.callLocIdx = 1069; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + { step = 21; continue; } + case 16: + r0 = s.arg0.fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 17; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = false; + s.callLocIdx = 1070; s.pc = 36; return s.tmp_2; + case 36: + r0 = s.retval; + { step = 20; continue; } + case 17: + r0 = s.arg0.fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 18; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_dirExprMenu__P14526_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1071; s.pc = 37; return s.tmp_2; + case 37: + r0 = s.retval; + case 18: + case 19: + case 20: + case 21: + case 22: + r0 = s.arg0.fields["askDeleteRule"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 23; continue; } + s.tmp_1 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 128; + s.tmp_1.arg2 = true; + s.callLocIdx = 1072; s.pc = 38; return s.tmp_1; + case 38: + r0 = s.retval; + s.tmp_0 = game_showDialog__P2530_mk(s); + s.tmp_0.arg0 = "OK to delete rule?"; + r0 = pxsim_String_.mkEmpty(); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = "A = OK, B = CANCEL"; + s.callLocIdx = 1073; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + { step = 24; continue; } + case 23: + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 128; + s.tmp_0.arg2 = false; + s.callLocIdx = 1074; s.pc = 40; return s.tmp_0; + case 40: + r0 = s.retval; + case 24: + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_instToStartArg__P12688.info = {"start":15363,"length":236,"line":338,"column":8,"endLine":344,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToStartArg","argumentNames":["this","inst"]} +tileworld_ruleediting_RuleEditor_update__P14510.info = {"start":10406,"length":1240,"line":223,"column":8,"endLine":248,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"update","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_instToStartArg__P12688_mk(s) { +function tileworld_ruleediting_RuleEditor_update__P14510_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_instToStartArg__P12688, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_update__P14510, depth: s.depth + 1, pc: 0, retval: undefined, 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, + len___15710: undefined, arg0: undefined, - arg1: undefined, } } -function tileworld_RuleVisualsBase_drawOutline__P10852(s) { +function tileworld_ruleediting_RuleEditor_dirExprMenu__P14526(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20596,51 +23623,56 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_0 = helpers_imageDrawRect__P520_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = (s.arg1 << 4); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 << 4); - s.tmp_1 = r0; - r0 = (6 + s.tmp_1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 17; - s.tmp_0.arg4 = 17; - s.tmp_0.arg5 = s.arg3; - s.callLocIdx = 684; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P16502); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = globals.movedImages___3789; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1188; s.pc = 1; return s.tmp_1; case 1: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = tileworld_RuleView_getWitnessDirection__P3651_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_1.arg0 = r0; + r0 = s.arg0.fields["whenDo"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 1189; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.cursorOut___3724; + s.callLocIdx = 1190; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_drawOutline__P10852.info = {"start":4635,"length":140,"line":120,"column":8,"endLine":122,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawOutline","argumentNames":["this","c","r","col"]} +tileworld_ruleediting_RuleEditor_dirExprMenu__P14526.info = {"start":22088,"length":326,"line":502,"column":8,"endLine":509,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"dirExprMenu","argumentNames":["this"]} -function tileworld_RuleVisualsBase_drawOutline__P10852_mk(s) { +function tileworld_ruleediting_RuleEditor_dirExprMenu__P14526_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_drawOutline__P10852, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_dirExprMenu__P14526, 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 helpers_imageDrawRect__P520(s) { +function inline__P16502(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20653,107 +23685,167 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = (s.arg3 == 0); + r0 = s.caps[0].fields["rule"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["r"]; + r0 = r0.fields["ruleType"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = (s.arg4 == 0); + r0 = (s.arg1 < 4); case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } { step = 5; continue; } case 3: case 4: - r0 = (s.arg3 - 1); - s.arg3 = (r0); - r0 = (s.arg4 - 1); - s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P519_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg2; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 94; s.pc = 6; return s.tmp_0; + s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = s.arg1; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.arg0; + s.callLocIdx = 1187; s.pc = 6; return s.tmp_4; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P519_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.arg1; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 95; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P519_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 + s.arg3); + case 5: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P16502.info = {"start":22144,"length":172,"line":503,"column":32,"endLine":507,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["img","i"]} + +function inline__P16502_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P16502, depth: s.depth + 1, + pc: 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 tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514(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.inst___15975 = undefined; + s.arg___15983 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getCmdInst__P3654_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["whenDo"]; s.tmp_0.arg1 = r0; - r0 = (s.arg2 + s.arg4); + r0 = s.arg0.fields["currentCommand"]; s.tmp_0.arg2 = r0; - r0 = (s.arg1 + s.arg3); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg2; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 96; s.pc = 8; return s.tmp_0; - case 8: + s.callLocIdx = 1110; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P519_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 + s.arg3); + s.inst___15975 = (r0); + s.tmp_0 = tileworld_RuleView_getCmdArg__P3655_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["whenDo"]; s.tmp_0.arg1 = r0; - r0 = (s.arg2 + s.arg4); + r0 = s.arg0.fields["currentCommand"]; s.tmp_0.arg2 = r0; + s.callLocIdx = 1111; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.arg___15983 = (r0); + r0 = s.arg0.fields["tokens"]; + s.tmp_2 = r0; + r0 = pxsim_Array__length(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.inst___15975; + s.tmp_3.arg2 = s.arg___15983; + s.tmp_3.arg3 = s.arg1; + s.callLocIdx = 1112; s.pc = 7; return s.tmp_3; + case 7: + r0 = s.retval; + { step = 4; continue; } + case 1: + r0 = (s.inst___15975 != 255); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_1, s.inst___15975); + r0 = pxsim_Array__push(s.tmp_1, 100); + r0 = (s.arg0).fields["tokens"] = (s.tmp_1); + s.tmp_0 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.inst___15975; + s.tmp_0.arg2 = s.arg___15983; s.tmp_0.arg3 = s.arg1; - r0 = (s.arg2 + s.arg4); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 97; s.pc = 9; return s.tmp_0; - case 9: + s.callLocIdx = 1113; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - case 5: + case 2: + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P520.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"]} +tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514.info = {"start":14827,"length":488,"line":326,"column":8,"endLine":335,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"modifyCommandMenu","argumentNames":["this","inEdit"]} -function helpers_imageDrawRect__P520_mk(s) { +function tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P520, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + inst___15975: undefined, + arg___15983: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function tileworld_RuleView_getCmdArg__P5001(s) { +function tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20763,102 +23855,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___5550 = undefined; - s.arg___5559 = undefined; + s.col___15927 = undefined; + s.row___15928 = 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, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); + s.col___15927 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.col___15927, 3); + s.row___15928 = (0); + r0 = pxsim_pxtcore_mkAction(5, inline__P15932); s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.wd___5550 = (r0); - r0 = s.wd___5550.fields["commandsLen"]; - s.tmp_1 = r0; - r0 = (s.arg2 >= s.tmp_1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___15927); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.row___15928); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.arg3); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + r0 = s.arg0.fields["tokens"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1108; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.arg1 != 255); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 255; - { step = 7; continue; } - case 1: - case 2: - r0 = s.wd___5550.fields["commands"]; - s.tmp_2 = r0; - r0 = (s.arg2 << 1); - s.tmp_4 = r0; - r0 = (s.tmp_4 + 1); - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); - s.arg___5559 = (r0); - r0 = s.arg0.fields["rid"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - s.tmp_3 = tileworld_RuleView_getCmdInst__P5000_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.callLocIdx = 142; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 == 0); + s.tmp_1 = tileworld_ruleediting_RuleEditor_makeArgMenu__P14518_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.tmp_1.arg3 = s.arg3; + s.callLocIdx = 1109; s.pc = 4; return s.tmp_1; case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - s.tmp_5 = tileworld_flipRotateDir__P4366_mk(s); - s.tmp_5.arg0 = s.arg___5559; - r0 = s.arg0.fields["view"]; - s.tmp_5.arg1 = r0; - s.callLocIdx = 143; s.pc = 9; return s.tmp_5; - case 9: r0 = s.retval; - s.arg___5559 = (r0); - case 5: - case 6: - r0 = s.arg___5559; - case 7: + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getCmdArg__P5001.info = {"start":6955,"length":390,"line":201,"column":8,"endLine":209,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdArg","argumentNames":["this","wdid","cid"]} +tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513.info = {"start":13969,"length":848,"line":303,"column":8,"endLine":324,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"makeCommandMenu","argumentNames":["this","inst","arg","inEdit"]} -function tileworld_RuleView_getCmdArg__P5001_mk(s) { +function tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getCmdArg__P5001, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - wd___5550: undefined, - arg___5559: undefined, + col___15927: undefined, + row___15928: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function tileworld_flipRotateDir__P4366(s) { +function inline__P15932(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20870,232 +23935,102 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg1 == 0); + r0 = (s.arg0 < 7); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = pxsim_Array__getAt(globals.categoryImages___15105, s.arg0); { step = 2; continue; } case 1: - r0 = (s.arg0 >= 4); + r0 = globals.garbageCan___3718; case 2: // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = s.arg0; - { step = 23; continue; } - case 3: - case 4: - r0 = (s.arg1 == 1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 9; continue; } - r0 = (s.arg0 == 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = 2; - { step = 8; continue; } - case 5: - r0 = (s.arg0 == 2); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 6; continue; } - r0 = 0; - { step = 7; continue; } - case 6: - r0 = s.arg0; - case 7: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; + s.tmp_2 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_2.arg0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.caps[2]; + s.tmp_2.arg3 = s.tmp_1; + s.callLocIdx = 1103; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s); + s.tmp_0.arg0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.caps[2]; + s.tmp_0.arg3 = 12; + s.callLocIdx = 1104; s.pc = 8; return s.tmp_0; case 8: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = s.tmp_6; - { step = 23; continue; } - { step = 22; continue; } + r0 = s.retval; + r0 = (s.caps[3] == s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_1.arg0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.caps[2]; + s.tmp_1.arg3 = globals.cursorOut___3724; + s.callLocIdx = 1105; s.pc = 9; return s.tmp_1; case 9: - r0 = (s.arg1 == 2); - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 14; continue; } - r0 = (s.arg0 == 1); - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 10; continue; } - r0 = 3; - { step = 13; continue; } + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.caps[4]); + if (!r0) { step = 3; continue; } + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); + s.tmp_0.arg0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1106; s.pc = 10; return s.tmp_0; case 10: - r0 = (s.arg0 == 3); - s.tmp_9 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_9); - if (!r0) { step = 11; continue; } - r0 = 1; - { step = 12; continue; } + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.caps[2]; + s.callLocIdx = 1107; s.pc = 11; return s.tmp_0; case 11: - r0 = s.arg0; - case 12: - // jmp value (already in r0) - s.tmp_10 = r0; - r0 = s.tmp_10; - case 13: - // jmp value (already in r0) - s.tmp_11 = r0; - r0 = s.tmp_11; - { step = 23; continue; } - { step = 21; continue; } - case 14: - r0 = (s.arg1 == 3); - s.tmp_12 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_12); - if (!r0) { step = 15; continue; } - r0 = (s.arg0 + 3); - s.tmp_14 = r0; - r0 = (s.tmp_14 % 4); - s.tmp_13 = r0; - r0 = (s.tmp_13 | 0); - { step = 23; continue; } - { step = 20; continue; } - case 15: - r0 = (s.arg1 == 5); - s.tmp_15 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_15); - if (!r0) { step = 16; continue; } - r0 = (s.arg0 + 1); - s.tmp_17 = r0; - r0 = (s.tmp_17 % 4); - s.tmp_16 = r0; - r0 = (s.tmp_16 | 0); - { step = 23; continue; } - { step = 19; continue; } - case 16: - r0 = (s.arg1 == 4); - s.tmp_18 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_18); - if (!r0) { step = 17; continue; } - r0 = (s.arg0 + 2); - s.tmp_20 = r0; - r0 = (s.tmp_20 % 4); - s.tmp_19 = r0; - r0 = (s.tmp_19 | 0); - { step = 23; continue; } - case 17: - case 18: - case 19: - case 20: - case 21: - case 22: - r0 = s.arg0; - case 23: - return leave(s, r0) - default: oops() -} } } -tileworld_flipRotateDir__P4366.info = {"start":5346,"length":790,"line":147,"column":4,"endLine":162,"endColumn":5,"fileName":"rule.ts","functionName":"flipRotateDir","argumentNames":["d","rt"]} - -function tileworld_flipRotateDir__P4366_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_flipRotateDir__P4366, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tileworld_RuleView_getCmdInst__P5000(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.wd___5532 = 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, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; + r0 = s.retval; + case 3: + case 4: + case 5: + case 6: + r0 = s.caps[0].fields["ruleTypeMap"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.wd___5532 = (r0); - r0 = s.wd___5532.fields["commandsLen"]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_1 = r0; - r0 = (s.arg2 >= s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 255; - { step = 3; continue; } - case 1: - case 2: - r0 = s.wd___5532.fields["commands"]; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.caps[2], s.arg0); + s.tmp_0 = r0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_2 = r0; - r0 = (s.arg2 << 1); - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); - case 3: + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getCmdInst__P5000.info = {"start":6744,"length":201,"line":195,"column":8,"endLine":199,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdInst","argumentNames":["this","wdid","cid"]} +inline__P15932.info = {"start":14212,"length":494,"line":308,"column":32,"endLine":320,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["ct"]} -function tileworld_RuleView_getCmdInst__P5000_mk(s) { +function inline__P15932_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getCmdInst__P5000, depth: s.depth + 1, + parent: s, fn: inline__P15932, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - wd___5532: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tileworld_ruleediting_RuleEditor_attrMenu__P12695(s) { +function tileworld_ruleediting_RuleEditor_makeArgMenu__P14518(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21105,166 +24040,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.whenDo___14432 = undefined; - s.collision22___14451 = undefined; - s.aCol___14494 = undefined; + s.col___16054 = undefined; + s.row___16055 = undefined; + s.last___16060 = undefined; + s.i___16068 = 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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); - s.whenDo___14432 = (r0); - s.tmp_0 = r0 = s.whenDo___14432; - s.tmp_2 = tileworld_RuleView_getWhenDo__P4608_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.arg1; - s.tmp_2.arg2 = s.arg2; - s.callLocIdx = 1151; s.pc = 9; return s.tmp_2; - case 9: + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.col___16054 = (4); + s.row___16055 = (1); + r0 = s.arg0.fields["dirMap"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); + s.tmp_1 = tileworld_ruleediting_RuleEditor_instToStartArg__P14515_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 1118; s.pc = 7; return s.tmp_1; + case 7: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.whenDo___14432); - s.tmp_1 = r0; - r0 = (s.tmp_1 == -1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = r0 = s.whenDo___14432; - s.tmp_4 = tileworld_RuleView_makeWhenDo__P4989_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.arg2; - s.callLocIdx = 1152; s.pc = 10; return s.tmp_4; - case 10: + s.tmp_3 = tileworld_ruleediting_RuleEditor_instToNumArgs__P14517_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 1119; s.pc = 8; return s.tmp_3; + case 8: r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); - case 1: - case 2: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.whenDo___14432); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["whenDo"] = (s.tmp_1); - r0 = s.arg0.fields["rule"]; s.tmp_2 = r0; - r0 = s.tmp_2.fields["r"]; - r0 = r0.fields["ruleType"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = (s.arg1 == 2); - case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 5; continue; } - r0 = s.tmp_3; - { step = 6; continue; } - case 5: - r0 = (s.arg2 == 2); - case 6: - // jmp value (already in r0) - s.tmp_4 = r0; - s.collision22___14451 = (s.tmp_4); - r0 = pxsim_pxtcore_mkAction(1, inline__P14466); + r0 = (s.tmp_0 + s.tmp_2); + s.last___16060 = (r0); + s.tmp_0 = tileworld_ruleediting_RuleEditor_instToStartArg__P14515_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1120; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.i___16068 = (r0); + case 1: + r0 = (s.i___16068 < s.last___16060); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = globals.attrImages___11251; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1156; s.pc = 11; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.col___16054; + s.tmp_1.arg2 = s.row___16055; + s.tmp_2 = tileworld_ruleediting_RuleDisplay_instToImage__P13117_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + s.tmp_2.arg2 = s.i___16068; + s.callLocIdx = 1121; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; - r0 = pxsim_pxtrt.mklocRef(); - s.aCol___14494 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.aCol___14494, 0); - r0 = pxsim_pxtcore_mkAction(4, inline__P14499); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.collision22___14451); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.whenDo___14432); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.aCol___14494); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - r0 = s.arg0.fields["all"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["allImages"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1162; s.pc = 12; return s.tmp_1; + s.tmp_1.arg3 = r0; + s.callLocIdx = 1122; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.col___16054; + s.tmp_0.arg2 = s.row___16055; + s.tmp_0.arg3 = 12; + s.callLocIdx = 1123; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - r0 = s.arg0.fields["attrSelected"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == -1); + r0 = (s.arg2 == s.i___16068); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_selectAttr__P12696_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = 0; - s.callLocIdx = 1163; s.pc = 13; return s.tmp_2; + if (!r0) { step = 4; continue; } + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.col___16054; + s.tmp_1.arg2 = s.row___16055; + s.tmp_1.arg3 = globals.cursorOut___3724; + s.callLocIdx = 1124; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - case 7: - case 8: - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 2; continue; } + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["attrSelected"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.cursorOut___7253; - s.callLocIdx = 1164; s.pc = 14; return s.tmp_0; + s.tmp_0.arg1 = s.col___16054; + s.callLocIdx = 1125; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 9; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.reset___7373; - s.callLocIdx = 1165; s.pc = 15; return s.tmp_0; + s.tmp_0.arg1 = s.row___16055; + s.callLocIdx = 1126; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; + case 2: + case 3: + case 4: + case 5: + r0 = s.arg0.fields["dirMap"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.col___16054, s.row___16055, s.i___16068); + r0 = (s.col___16054 + 1); + s.col___16054 = (r0); + r0 = (s.i___16068 + 1); + s.i___16068 = (r0); + { step = 1; continue; } + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_attrMenu__P12695.info = {"start":19177,"length":1412,"line":435,"column":8,"endLine":465,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"attrMenu","argumentNames":["this","col","row"]} +tileworld_ruleediting_RuleEditor_makeArgMenu__P14518.info = {"start":16432,"length":755,"line":368,"column":8,"endLine":386,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"makeArgMenu","argumentNames":["this","inst","arg","inEdit"]} -function tileworld_ruleediting_RuleEditor_attrMenu__P12695_mk(s) { +function tileworld_ruleediting_RuleEditor_makeArgMenu__P14518_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_attrMenu__P12695, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_makeArgMenu__P14518, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - whenDo___14432: undefined, - collision22___14451: undefined, - aCol___14494: undefined, + col___16054: undefined, + row___16055: undefined, + last___16060: undefined, + i___16068: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function inline__P14466(s) { +function tileworld_ruleediting_RuleDisplay_instToImage__P13117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21274,65 +24187,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ret___13553 = undefined; + s.ret___13569 = undefined; + s.ret___13586 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.caps[0].fields["rule"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["r"]; - r0 = r0.fields["ruleType"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 2); + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = (s.arg1 == 255); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = (s.arg1 > 0); + r0 = (s.arg2 == 255); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - { step = 7; continue; } + r0 = globals.emptyTile___3721; + { step = 15; continue; } case 3: case 4: - r0 = (s.arg1 >= 3); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - { step = 7; continue; } + s.tmp_2 = r0 = s.arg1; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_2); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_2); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_2); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_2); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_2); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(6, s.tmp_2); + if (r0) { step = 10; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_2); + if (r0) { step = 13; continue; } + r0 = s.tmp_2; + { step = 14; continue; } case 5: + r0 = pxsim_Array__getAt(globals.moveImages___3788, s.arg2); + { step = 15; continue; } case 6: - s.tmp_5 = r0 = globals.screen___578; - s.tmp_6 = r0 = s.arg0; - r0 = (s.arg1 << 4); - s.tmp_8 = r0; - r0 = (s.tmp_8 + 4); - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_5, s.tmp_6, s.tmp_7, 10); - s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P10852_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 12; - s.callLocIdx = 1155; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + r0 = s.arg0.fields["p"]; + s.tmp_5 = r0; + r0 = s.tmp_5.fields["_backgroundsI"]; + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.arg2); + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_3); + s.ret___13553 = (r0); + r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___13553, globals.smallPaint___3757, 0, 0); + r0 = s.ret___13553; + { step = 15; continue; } case 7: - r0 = undefined; + r0 = globals.eat___3753; + { step = 15; continue; } + case 8: + r0 = pxsim_Array__getAt(globals.gameImages___3794, s.arg2); + { step = 15; continue; } + case 9: + case 10: + r0 = s.arg0.fields["p"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_spritesI"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.arg2); + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.ret___13569 = (r0); + r0 = (s.arg1 == 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = globals.spawn___3756; + { step = 12; continue; } + case 11: + r0 = globals.exclude___3727; + case 12: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___13569, s.tmp_1, 0, 0); + r0 = s.ret___13569; + { step = 15; continue; } + case 13: + r0 = s.arg0.fields["p"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_backgroundsI"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.arg2); + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.clone(s.tmp_0); + s.ret___13586 = (r0); + r0 = pxsim_ImageMethods.drawTransparentImage(s.ret___13586, globals.portal___3758, 0, 0); + r0 = s.ret___13586; + { step = 15; continue; } + case 14: + r0 = globals.emptyTile___3721; + case 15: return leave(s, r0) default: oops() } } } -inline__P14466.info = {"start":19636,"length":364,"line":443,"column":31,"endLine":451,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["img","i"]} +tileworld_ruleediting_RuleDisplay_instToImage__P13117.info = {"start":6695,"length":1169,"line":159,"column":8,"endLine":185,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"instToImage","argumentNames":["this","inst","arg"]} -function inline__P14466_mk(s) { +function tileworld_ruleediting_RuleDisplay_instToImage__P13117_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14466, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_instToImage__P13117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21340,18 +24308,19 @@ function inline__P14466_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, + ret___13553: undefined, + ret___13569: undefined, + ret___13586: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function inline__P14499(s) { +function tileworld_Project_spriteImages__P3695(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21361,104 +24330,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.a___14509 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_1 = r0 = s.arg1; - r0 = s.caps[1].fields["p"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_backgroundsI"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - s.tmp_6 = tileworld_AllExport_getSetAttr__P6029_mk(s); - r0 = s.caps[1].fields["all"]; - s.tmp_6.arg0 = r0; - r0 = s.caps[1].fields["rule"]; - s.tmp_6.arg1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_6.arg2 = r0; - s.tmp_6.arg3 = s.arg1; - s.tmp_6.arg4 = 65535; - s.callLocIdx = 1159; s.pc = 6; return s.tmp_6; - case 6: - r0 = s.retval; - s.a___14509 = (r0); - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = s.arg0; - s.callLocIdx = 1160; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 1; - s.tmp_1 = r0 = globals.attrImages___11251; - r0 = pxsim_Array_.indexOf(globals.attrValues___11248, s.a___14509, undefined); - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1161; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = r0 = s.caps[3]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 5: - r0 = undefined; + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = s.arg0.fields["_spritesI"]; return leave(s, r0) default: oops() } } } -inline__P14499.info = {"start":20070,"length":328,"line":453,"column":41,"endLine":460,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["image","i"]} +tileworld_Project_spriteImages__P3695.info = {"start":3406,"length":48,"line":100,"column":8,"endLine":100,"endColumn":56,"fileName":"project.ts","functionName":"spriteImages","argumentNames":["this"]} -function inline__P14499_mk(s) { +function tileworld_Project_spriteImages__P3695_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14499, depth: s.depth + 1, + parent: s, fn: tileworld_Project_spriteImages__P3695, depth: s.depth + 1, pc: 0, retval: undefined, 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, - a___14509: undefined, arg0: undefined, - arg1: undefined, } } -function tileworld_ruleediting_RuleEditor_selectAttr__P12696(s) { +function tileworld_Project_backgroundImages__P3694(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21470,32 +24366,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - r0 = (s.arg0).fields["attrSelected"] = (s.arg1); - r0 = undefined; + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = s.arg0.fields["_backgroundsI"]; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_selectAttr__P12696.info = {"start":20599,"length":76,"line":467,"column":8,"endLine":469,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"selectAttr","argumentNames":["this","a"]} +tileworld_Project_backgroundImages__P3694.info = {"start":3341,"length":56,"line":99,"column":8,"endLine":99,"endColumn":64,"fileName":"project.ts","functionName":"backgroundImages","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_selectAttr__P12696_mk(s) { +function tileworld_Project_backgroundImages__P3694_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_selectAttr__P12696, depth: s.depth + 1, + parent: s, fn: tileworld_Project_backgroundImages__P3694, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function tileworld_AllExport_getSetAttr__P6029(s) { +function tileworld_ruleediting_RuleEditor_instToNumArgs__P14517(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21508,63 +24401,83 @@ 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, tileworld_AllExport__C6025_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg3; - r0 = s.arg0.fields["p"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_backgroundsI"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_5 = tileworld_RuleView_getSetBgAttr__P4993_mk(s); - s.tmp_5.arg0 = s.arg1; - s.tmp_5.arg1 = s.arg2; - s.tmp_5.arg2 = s.arg3; - s.tmp_5.arg3 = s.arg4; - s.callLocIdx = 163; s.pc = 3; return s.tmp_5; - case 3: - r0 = s.retval; - { step = 2; continue; } + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg1; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(6, 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 1: - s.tmp_6 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); - s.tmp_6.arg0 = s.arg1; - s.tmp_6.arg1 = s.arg2; - s.tmp_7 = r0 = s.arg3; - r0 = s.arg0.fields["p"]; - s.tmp_9 = r0; - r0 = s.tmp_9.fields["_backgroundsI"]; - s.tmp_10 = r0; - r0 = pxsim_Array__length(s.tmp_10); - s.tmp_8 = r0; - r0 = (s.tmp_7 - s.tmp_8); - s.tmp_6.arg2 = r0; - s.tmp_6.arg3 = s.arg4; - s.callLocIdx = 165; s.pc = 4; return s.tmp_6; - case 4: + s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1115; s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 != 2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = 4; + { step = 3; continue; } case 2: + r0 = 1; + case 3: // jmp value (already in r0) - s.tmp_11 = r0; - r0 = s.tmp_11; + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 11; continue; } + case 4: + r0 = 4; + { step = 11; continue; } + case 5: + r0 = 0; + { step = 11; continue; } + case 6: + r0 = 3; + { step = 11; continue; } + case 7: + case 8: + r0 = s.arg0.fields["p"]; + s.tmp_5 = r0; + r0 = s.tmp_5.fields["_spritesI"]; + s.tmp_6 = r0; + r0 = pxsim_Array__length(s.tmp_6); + { step = 11; continue; } + case 9: + r0 = s.arg0.fields["p"]; + s.tmp_7 = r0; + r0 = s.tmp_7.fields["_backgroundsI"]; + s.tmp_8 = r0; + r0 = pxsim_Array__length(s.tmp_8); + { step = 11; continue; } + case 10: + r0 = 0; + case 11: return leave(s, r0) default: oops() } } } -tileworld_AllExport_getSetAttr__P6029.info = {"start":1278,"length":227,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"project.ts","functionName":"getSetAttr","argumentNames":["this","rv","whendo","aid","val"]} +tileworld_ruleediting_RuleEditor_instToNumArgs__P14517.info = {"start":15885,"length":537,"line":355,"column":8,"endLine":366,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToNumArgs","argumentNames":["this","inst"]} -function tileworld_AllExport_getSetAttr__P6029_mk(s) { +function tileworld_ruleediting_RuleEditor_instToNumArgs__P14517_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_AllExport_getSetAttr__P6029, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_instToNumArgs__P14517, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21575,21 +24488,15 @@ function tileworld_AllExport_getSetAttr__P6029_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function tileworld_RuleView_getSetSpAttr__P4994(s) { +function tileworld_Project_backCnt__P3691(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21601,49 +24508,32 @@ 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, tileworld_RuleView__C4976_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getSetBuffAttr__P4992_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.arg1); - r0 = r0.fields["spPred"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.arg3; - s.callLocIdx = 128; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = s.arg0.fields["_backgroundsI"]; + s.tmp_0 = r0; + r0 = pxsim_Array__length(s.tmp_0); return leave(s, r0) default: oops() } } } -tileworld_RuleView_getSetSpAttr__P4994.info = {"start":4742,"length":172,"line":138,"column":8,"endLine":140,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetSpAttr","argumentNames":["this","wdid","index","val"]} +tileworld_Project_backCnt__P3691.info = {"start":3147,"length":54,"line":96,"column":8,"endLine":96,"endColumn":62,"fileName":"project.ts","functionName":"backCnt","argumentNames":["this"]} -function tileworld_RuleView_getSetSpAttr__P4994_mk(s) { +function tileworld_Project_backCnt__P3691_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getSetSpAttr__P4994, depth: s.depth + 1, + parent: s, fn: tileworld_Project_backCnt__P3691, 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 tileworld_RuleView_getSetBuffAttr__P4992(s) { +function tileworld_ruleediting_RuleEditor_instToStartArg__P14515(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21653,88 +24543,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.byteIndex___5299 = undefined; - s.byte___5302 = undefined; - s.remainder___5307 = undefined; - s.mask___5314 = undefined; - s.newByte___5322 = 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, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = (s.arg2 >> 2); - s.byteIndex___5299 = (r0); - r0 = pxsim.BufferMethods.getUint8(s.arg1, s.byteIndex___5299); - s.byte___5302 = (r0); - s.tmp_0 = r0 = s.arg2; - r0 = (s.byteIndex___5299 << 2); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.remainder___5307 = (r0); - r0 = (s.arg3 != 65535); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.remainder___5307 << 1); - s.tmp_2 = r0; - r0 = (3 << s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_1 ^ 255); - s.mask___5314 = (r0); - r0 = (s.byte___5302 & s.mask___5314); - s.tmp_0 = r0; - r0 = (s.arg3 & 3); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg1; + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 1: + s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1114; s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.remainder___5307 << 1); - s.tmp_3 = r0; - r0 = (s.tmp_2 << s.tmp_3); + r0 = (s.tmp_2 != 2); s.tmp_1 = r0; - r0 = (s.tmp_0 | s.tmp_1); - s.newByte___5322 = (r0); - r0 = pxsim.BufferMethods.setUint8(s.arg1, s.byteIndex___5299, s.newByte___5322); - case 1: + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = 0; + { step = 3; continue; } case 2: - s.tmp_1 = r0 = s.byte___5302; - r0 = (s.remainder___5307 << 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 & 3); + r0 = 4; + case 3: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 5; continue; } + case 4: + r0 = 0; + case 5: return leave(s, r0) default: oops() } } } -tileworld_RuleView_getSetBuffAttr__P4992.info = {"start":4042,"length":508,"line":122,"column":8,"endLine":132,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetBuffAttr","argumentNames":["this","buf","index","val"]} +tileworld_ruleediting_RuleEditor_instToStartArg__P14515.info = {"start":15363,"length":236,"line":338,"column":8,"endLine":344,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToStartArg","argumentNames":["this","inst"]} -function tileworld_RuleView_getSetBuffAttr__P4992_mk(s) { +function tileworld_ruleediting_RuleEditor_instToStartArg__P14515_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getSetBuffAttr__P4992, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_instToStartArg__P14515, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - byteIndex___5299: undefined, - byte___5302: undefined, - remainder___5307: undefined, - mask___5314: undefined, - newByte___5322: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tileworld_RuleView_getSetBgAttr__P4993(s) { +function tileworld_RuleVisualsBase_drawOutline__P12698(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21752,29 +24619,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getSetBuffAttr__P4992_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.arg1); - r0 = r0.fields["bgPred"]; + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_0 = helpers_imageDrawRect__P1728_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = (s.arg1 << 4); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.arg3; - s.callLocIdx = 127; s.pc = 1; return s.tmp_0; + r0 = (s.arg2 << 4); + s.tmp_1 = r0; + r0 = (6 + s.tmp_1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 17; + s.tmp_0.arg4 = 17; + s.tmp_0.arg5 = s.arg3; + s.callLocIdx = 684; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getSetBgAttr__P4993.info = {"start":4560,"length":172,"line":134,"column":8,"endLine":136,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetBgAttr","argumentNames":["this","wdid","index","val"]} +tileworld_RuleVisualsBase_drawOutline__P12698.info = {"start":4635,"length":140,"line":120,"column":8,"endLine":122,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawOutline","argumentNames":["this","c","r","col"]} -function tileworld_RuleView_getSetBgAttr__P4993_mk(s) { +function tileworld_RuleVisualsBase_drawOutline__P12698_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getSetBgAttr__P4993, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_drawOutline__P12698, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21788,7 +24657,7 @@ function tileworld_RuleView_getSetBgAttr__P4993_mk(s) { -function tileworld_AllExport_getImages__P6026(s) { +function helpers_imageDrawRect__P1728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21800,29 +24669,108 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_AllExport__C6025_VT)) failedCast(r0); - r0 = s.arg0.fields["allImages"]; + r0 = (s.arg3 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg4 == 0); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = (s.arg3 - 1); + s.arg3 = (r0); + r0 = (s.arg4 - 1); + s.arg4 = (r0); + s.tmp_0 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg2; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 94; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg1; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 95; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg2 = r0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg2; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 96; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 + s.arg3); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg1; + r0 = (s.arg2 + s.arg4); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg5; + s.callLocIdx = 97; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_AllExport_getImages__P6026.info = {"start":934,"length":65,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"project.ts","functionName":"getImages","argumentNames":["this"]} +helpers_imageDrawRect__P1728.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 tileworld_AllExport_getImages__P6026_mk(s) { +function helpers_imageDrawRect__P1728_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_AllExport_getImages__P6026, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P1728, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function tileworld_RuleView_makeWhenDo__P4989(s) { +function tileworld_RuleView_getCmdArg__P3655(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21832,7 +24780,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___5235 = undefined; + s.wd___7577 = undefined; + s.arg___7586 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -21840,73 +24789,83 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_WhenDo__C4302_VT); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; s.tmp_0 = r0; - s.tmp_1 = tileworld_WhenDo_constructor__P4303_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 = null; - s.tmp_1.arg4 = null; - s.tmp_1.arg5 = 0; - s.tmp_1.arg6 = null; - s.tmp_1.arg7 = 0; - s.callLocIdx = 124; s.pc = 1; return s.tmp_1; + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + s.wd___7577 = (r0); + r0 = s.wd___7577.fields["commandsLen"]; + s.tmp_1 = r0; + r0 = (s.arg2 >= s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 255; + { step = 7; continue; } case 1: - r0 = s.retval; - s.wd___5235 = (s.tmp_0); - s.tmp_0 = r0 = s.wd___5235; - r0 = s.arg0.fields["p"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_backgroundsI"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); + case 2: + r0 = s.wd___7577.fields["commands"]; s.tmp_2 = r0; - r0 = pxsim.control.createBuffer(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["bgPred"] = (s.tmp_1); - s.tmp_0 = r0 = s.wd___5235; - r0 = s.arg0.fields["p"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_spritesI"]; + r0 = (s.arg2 << 1); s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim.control.createBuffer(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spPred"] = (s.tmp_1); - r0 = (s.wd___5235).fields["commandsLen"] = (0); - s.tmp_0 = r0 = s.wd___5235; - r0 = pxsim.control.createBuffer(8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["commands"] = (s.tmp_1); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.wd___5235); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; + r0 = (s.tmp_4 + 1); + s.tmp_3 = r0; + r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); + s.arg___7586 = (r0); + r0 = s.arg0.fields["rid"]; s.tmp_1 = r0; - r0 = pxsim_Array__length(s.tmp_1); + r0 = (s.tmp_1 == -1); s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_3 = tileworld_RuleView_getCmdInst__P3654_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.callLocIdx = 142; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 == 0); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + s.tmp_5 = tileworld_flipRotateDir__P3621_mk(s); + s.tmp_5.arg0 = s.arg___7586; + r0 = s.arg0.fields["view"]; + s.tmp_5.arg1 = r0; + s.callLocIdx = 143; s.pc = 9; return s.tmp_5; + case 9: + r0 = s.retval; + s.arg___7586 = (r0); + case 5: + case 6: + r0 = s.arg___7586; + case 7: return leave(s, r0) default: oops() } } } -tileworld_RuleView_makeWhenDo__P4989.info = {"start":3418,"length":408,"line":104,"column":8,"endLine":112,"endColumn":9,"fileName":"ruleview.ts","functionName":"makeWhenDo","argumentNames":["this","col","row"]} +tileworld_RuleView_getCmdArg__P3655.info = {"start":6955,"length":390,"line":201,"column":8,"endLine":209,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdArg","argumentNames":["this","wdid","cid"]} -function tileworld_RuleView_makeWhenDo__P4989_mk(s) { +function tileworld_RuleView_getCmdArg__P3655_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_makeWhenDo__P4989, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getCmdArg__P3655, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - wd___5235: undefined, + tmp_5: undefined, + wd___7577: undefined, + arg___7586: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -21916,7 +24875,7 @@ function tileworld_RuleView_makeWhenDo__P4989_mk(s) { -function tileworld_WhenDo_constructor__P4303(s) { +function tileworld_flipRotateDir__P3621(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21929,50 +24888,167 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); - s.arg7 = (s.lambdaArgs[7]); s.lambdaArgs = null; } + r0 = (s.arg1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg0 >= 4); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_WhenDo__C4302_VT)) failedCast(r0); - r0 = (s.arg0).fields["col"] = (s.arg1); - r0 = (s.arg0).fields["row"] = (s.arg2); - r0 = (s.arg0).fields["bgPred"] = (s.arg3); - r0 = (s.arg0).fields["spPred"] = (s.arg4); - r0 = (s.arg0).fields["dir"] = (s.arg5); - r0 = (s.arg0).fields["commands"] = (s.arg6); - r0 = (s.arg0).fields["commandsLen"] = (s.arg7); - r0 = (s.arg0).fields["dir"] = (6); - r0 = undefined; + { step = 23; continue; } + case 3: + case 4: + r0 = (s.arg1 == 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 9; continue; } + r0 = (s.arg0 == 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = 2; + { step = 8; continue; } + case 5: + r0 = (s.arg0 == 2); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 6; continue; } + r0 = 0; + { step = 7; continue; } + case 6: + r0 = s.arg0; + case 7: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + case 8: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = s.tmp_6; + { step = 23; continue; } + { step = 22; continue; } + case 9: + r0 = (s.arg1 == 2); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 14; continue; } + r0 = (s.arg0 == 1); + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 10; continue; } + r0 = 3; + { step = 13; continue; } + case 10: + r0 = (s.arg0 == 3); + s.tmp_9 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_9); + if (!r0) { step = 11; continue; } + r0 = 1; + { step = 12; continue; } + case 11: + r0 = s.arg0; + case 12: + // jmp value (already in r0) + s.tmp_10 = r0; + r0 = s.tmp_10; + case 13: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = s.tmp_11; + { step = 23; continue; } + { step = 21; continue; } + case 14: + r0 = (s.arg1 == 3); + s.tmp_12 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_12); + if (!r0) { step = 15; continue; } + r0 = (s.arg0 + 3); + s.tmp_14 = r0; + r0 = (s.tmp_14 % 4); + s.tmp_13 = r0; + r0 = (s.tmp_13 | 0); + { step = 23; continue; } + { step = 20; continue; } + case 15: + r0 = (s.arg1 == 5); + s.tmp_15 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_15); + if (!r0) { step = 16; continue; } + r0 = (s.arg0 + 1); + s.tmp_17 = r0; + r0 = (s.tmp_17 % 4); + s.tmp_16 = r0; + r0 = (s.tmp_16 | 0); + { step = 23; continue; } + { step = 19; continue; } + case 16: + r0 = (s.arg1 == 4); + s.tmp_18 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_18); + if (!r0) { step = 17; continue; } + r0 = (s.arg0 + 2); + s.tmp_20 = r0; + r0 = (s.tmp_20 % 4); + s.tmp_19 = r0; + r0 = (s.tmp_19 | 0); + { step = 23; continue; } + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + r0 = s.arg0; + case 23: return leave(s, r0) default: oops() } } } -tileworld_WhenDo_constructor__P4303.info = {"start":3368,"length":772,"line":101,"column":8,"endLine":111,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["this","col","row","bgPred","spPred","dir","commands","commandsLen"]} +tileworld_flipRotateDir__P3621.info = {"start":5346,"length":790,"line":147,"column":4,"endLine":162,"endColumn":5,"fileName":"rule.ts","functionName":"flipRotateDir","argumentNames":["d","rt"]} -function tileworld_WhenDo_constructor__P4303_mk(s) { +function tileworld_flipRotateDir__P3621_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_WhenDo_constructor__P4303, depth: s.depth + 1, + parent: s, fn: tileworld_flipRotateDir__P3621, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, - arg7: undefined, } } -function tileworld_ruleediting_RuleEditor_showMainMenu__P12684(s) { +function tileworld_RuleView_getCmdInst__P3654(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21982,181 +25058,298 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rules___13985 = undefined; - s.index___13987 = undefined; + s.wd___7559 = 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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 11; - s.callLocIdx = 1075; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.code___7226; - s.callLocIdx = 1076; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.map___7217; - s.callLocIdx = 1077; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 2; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.play___7220; - s.callLocIdx = 1078; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.flipHoriz___7310; - s.callLocIdx = 1079; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = s.arg0.fields["rule"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["r"]; - r0 = r0.fields["transforms"]; + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + s.wd___7559 = (r0); + r0 = s.wd___7559.fields["commandsLen"]; s.tmp_1 = r0; - r0 = (s.tmp_1 != 0); + r0 = (s.arg2 >= s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = 5; - s.tmp_3.arg2 = 0; - s.tmp_3.arg3 = globals.include2___7268; - s.callLocIdx = 1081; s.pc = 14; return s.tmp_3; - case 14: - r0 = s.retval; + r0 = 255; + { step = 3; continue; } case 1: case 2: - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 6; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.garbageCan___7235; - s.callLocIdx = 1082; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleEditor_currentRules__P12680_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1083; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.rules___13985 = (r0); + r0 = s.wd___7559.fields["commands"]; + s.tmp_2 = r0; + r0 = (s.arg2 << 1); + s.tmp_3 = r0; + r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); + case 3: + return leave(s, r0) + default: oops() +} } } +tileworld_RuleView_getCmdInst__P3654.info = {"start":6744,"length":201,"line":195,"column":8,"endLine":199,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdInst","argumentNames":["this","wdid","cid"]} + +function tileworld_RuleView_getCmdInst__P3654_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleView_getCmdInst__P3654, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + wd___7559: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tileworld_ruleediting_RuleEditor_attrMenu__P14522(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.whenDo___16244 = undefined; + s.collision22___16263 = undefined; + s.aCol___16306 = 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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); + s.whenDo___16244 = (r0); + s.tmp_0 = r0 = s.whenDo___16244; + s.tmp_2 = tileworld_RuleView_getWhenDo__P3643_mk(s); r0 = s.arg0.fields["rule"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.arg1; + s.tmp_2.arg2 = s.arg2; + s.callLocIdx = 1151; s.pc = 9; return s.tmp_2; + case 9: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.whenDo___16244); + s.tmp_1 = r0; + r0 = (s.tmp_1 == -1); s.tmp_0 = r0; - r0 = pxsim_Array_.indexOf(s.rules___13985, s.tmp_0, undefined); - s.index___13987 = (r0); - s.tmp_1 = r0 = s.index___13987; - r0 = pxsim_Array__length(s.rules___13985); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = r0 = s.whenDo___16244; + s.tmp_4 = tileworld_RuleView_makeWhenDo__P3644_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg1; + s.tmp_4.arg2 = s.arg2; + s.callLocIdx = 1152; s.pc = 10; return s.tmp_4; + case 10: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 - 1); + r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); + case 1: + case 2: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.whenDo___16244); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["whenDo"] = (s.tmp_1); + r0 = s.arg0.fields["rule"]; s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.tmp_2.fields["r"]; + r0 = r0.fields["ruleType"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = globals.rightArrow___7334; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_4 = tileworld_greyImage__P3924_mk(s); - s.tmp_4.arg0 = globals.rightArrow___7334; - s.callLocIdx = 1084; s.pc = 17; return s.tmp_4; - case 17: - r0 = s.retval; + r0 = (s.arg1 == 2); case 4: // jmp value (already in r0) - s.tmp_5 = r0; - s.tmp_6 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = 9; - s.tmp_6.arg2 = 0; - s.tmp_6.arg3 = s.tmp_5; - s.callLocIdx = 1085; s.pc = 18; return s.tmp_6; - case 18: - r0 = s.retval; - s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1086; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 != -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = globals.addRule___7241; + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 5; continue; } + r0 = s.tmp_3; { step = 6; continue; } case 5: - s.tmp_3 = tileworld_greyImage__P3924_mk(s); - s.tmp_3.arg0 = globals.addRule___7241; - s.callLocIdx = 1087; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; + r0 = (s.arg2 == 2); case 6: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = 8; - s.tmp_5.arg2 = 0; - s.tmp_5.arg3 = s.tmp_4; - s.callLocIdx = 1088; s.pc = 21; return s.tmp_5; - case 21: + s.collision22___16263 = (s.tmp_4); + r0 = pxsim_pxtcore_mkAction(1, inline__P16278); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = globals.attrImages___3793; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1156; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + r0 = pxsim_pxtrt.mklocRef(); + s.aCol___16306 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.aCol___16306, 0); + r0 = pxsim_pxtcore_mkAction(4, inline__P16311); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.collision22___16263); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.whenDo___16244); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.aCol___16306); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + r0 = s.arg0.fields["all"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["allImages"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1162; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; - r0 = (s.index___13987 > 0); + r0 = s.arg0.fields["attrSelected"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = globals.leftArrow___7337; - { step = 8; continue; } - case 7: - s.tmp_1 = tileworld_greyImage__P3924_mk(s); - s.tmp_1.arg0 = globals.leftArrow___7337; - s.callLocIdx = 1089; s.pc = 22; return s.tmp_1; - case 22: + s.tmp_2 = tileworld_ruleediting_RuleEditor_selectAttr__P14523_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 1163; s.pc = 13; return s.tmp_2; + case 13: r0 = s.retval; + case 7: case 8: - // jmp value (already in r0) + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["attrSelected"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.cursorOut___3724; + s.callLocIdx = 1164; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 9; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.reset___3764; + s.callLocIdx = 1165; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_ruleediting_RuleEditor_attrMenu__P14522.info = {"start":19177,"length":1412,"line":435,"column":8,"endLine":465,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"attrMenu","argumentNames":["this","col","row"]} + +function tileworld_ruleediting_RuleEditor_attrMenu__P14522_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_ruleediting_RuleEditor_attrMenu__P14522, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + whenDo___16244: undefined, + collision22___16263: undefined, + aCol___16306: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function inline__P16278(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.caps[0].fields["rule"]; s.tmp_2 = r0; - s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = 7; - s.tmp_3.arg2 = 0; - s.tmp_3.arg3 = s.tmp_2; - s.callLocIdx = 1090; s.pc = 23; return s.tmp_3; - case 23: + r0 = s.tmp_2.fields["r"]; + r0 = r0.fields["ruleType"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg1 > 0); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + r0 = (s.arg1 >= 3); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + { step = 7; continue; } + case 5: + case 6: + s.tmp_5 = r0 = globals.screen___1799; + s.tmp_6 = r0 = s.arg0; + r0 = (s.arg1 << 4); + s.tmp_8 = r0; + r0 = (s.tmp_8 + 4); + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_5, s.tmp_6, s.tmp_7, 10); + s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 12; + s.callLocIdx = 1155; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_showMainMenu__P12684.info = {"start":11664,"length":850,"line":250,"column":8,"endLine":267,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"showMainMenu","argumentNames":["this"]} +inline__P16278.info = {"start":19636,"length":364,"line":443,"column":31,"endLine":451,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["img","i"]} -function tileworld_ruleediting_RuleEditor_showMainMenu__P12684_mk(s) { +function inline__P16278_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_showMainMenu__P12684, depth: s.depth + 1, + parent: s, fn: inline__P16278, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22165,16 +25358,17 @@ function tileworld_ruleediting_RuleEditor_showMainMenu__P12684_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - rules___13985: undefined, - index___13987: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, + arg1: undefined, } } -function tileworld_greyImage__P3924(s) { +function inline__P16311(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22184,82 +25378,104 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ret___3926 = undefined; - s.x___3931 = undefined; - s.y___3938 = undefined; - s.pix___3945 = undefined; + s.a___16321 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.clone(s.arg0); - s.ret___3926 = (r0); - s.x___3931 = (0); + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - s.tmp_1 = r0 = s.x___3931; - r0 = pxsim_ImageMethods.width(s.ret___3926); + s.tmp_1 = r0 = s.arg1; + r0 = s.caps[1].fields["p"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_backgroundsI"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.y___3938 = (0); case 2: - s.tmp_1 = r0 = s.y___3938; - r0 = pxsim_ImageMethods.height(s.ret___3926); - 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.ret___3926, s.x___3931, s.y___3938); - s.pix___3945 = (r0); - r0 = (s.pix___3945 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 3; continue; } - r0 = 0; - { step = 4; continue; } + { step = 5; continue; } case 3: - r0 = 12; case 4: - // jmp value (already in r0) + s.tmp_6 = tileworld_AllExport_getSetAttr__P3676_mk(s); + r0 = s.caps[1].fields["all"]; + s.tmp_6.arg0 = r0; + r0 = s.caps[1].fields["rule"]; + s.tmp_6.arg1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_6.arg2 = r0; + s.tmp_6.arg3 = s.arg1; + s.tmp_6.arg4 = 65535; + s.callLocIdx = 1159; s.pc = 6; return s.tmp_6; + case 6: + r0 = s.retval; + s.a___16321 = (r0); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = s.arg0; + s.callLocIdx = 1160; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 1; + s.tmp_1 = r0 = globals.attrImages___3793; + r0 = pxsim_Array_.indexOf(globals.attrValues___3792, s.a___16321, undefined); + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1161; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = r0 = s.caps[3]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.setPixel(s.ret___3926, s.x___3931, s.y___3938, s.tmp_1); - r0 = (s.y___3938 + 1); - s.y___3938 = (r0); - { step = 2; continue; } + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); case 5: - r0 = (s.x___3931 + 1); - s.x___3931 = (r0); - { step = 1; continue; } - case 6: - r0 = s.ret___3926; + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_greyImage__P3924.info = {"start":995,"length":327,"line":29,"column":4,"endLine":38,"endColumn":5,"fileName":"utilities.ts","functionName":"greyImage","argumentNames":["img"]} +inline__P16311.info = {"start":20070,"length":328,"line":453,"column":41,"endLine":460,"endColumn":13,"fileName":"ruleeditor.ts","functionName":"inline","argumentNames":["image","i"]} -function tileworld_greyImage__P3924_mk(s) { +function inline__P16311_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_greyImage__P3924, depth: s.depth + 1, + parent: s, fn: inline__P16311, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ret___3926: undefined, - x___3931: undefined, - y___3938: undefined, - pix___3945: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + a___16321: undefined, arg0: undefined, + arg1: undefined, } } -function tileworld_RuleView_getTransforms__P4980(s) { +function tileworld_ruleediting_RuleEditor_selectAttr__P14523(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22271,30 +25487,32 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["transforms"]; + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + r0 = (s.arg0).fields["attrSelected"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getTransforms__P4980.info = {"start":1545,"length":72,"line":45,"column":8,"endLine":47,"endColumn":9,"fileName":"ruleview.ts","functionName":"getTransforms","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_selectAttr__P14523.info = {"start":20599,"length":76,"line":467,"column":8,"endLine":469,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"selectAttr","argumentNames":["this","a"]} -function tileworld_RuleView_getTransforms__P4980_mk(s) { +function tileworld_ruleediting_RuleEditor_selectAttr__P14523_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getTransforms__P4980, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_selectAttr__P14523, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function tileworld_RuleVisualsBase_fillTile__P10853(s) { +function tileworld_AllExport_getSetAttr__P3676(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22309,54 +25527,86 @@ 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, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = (s.arg1 << 4); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 << 4); + if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg3; + r0 = s.arg0.fields["p"]; s.tmp_3 = r0; - r0 = (6 + s.tmp_3); + r0 = s.tmp_3.fields["_backgroundsI"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 15; - s.tmp_0.arg4 = 15; - s.tmp_0.arg5 = s.arg3; - s.callLocIdx = 685; s.pc = 1; return s.tmp_0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_5 = tileworld_RuleView_getSetBgAttr__P3647_mk(s); + s.tmp_5.arg0 = s.arg1; + s.tmp_5.arg1 = s.arg2; + s.tmp_5.arg2 = s.arg3; + s.tmp_5.arg3 = s.arg4; + s.callLocIdx = 163; s.pc = 3; return s.tmp_5; + case 3: + r0 = s.retval; + { step = 2; continue; } case 1: + s.tmp_6 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); + s.tmp_6.arg0 = s.arg1; + s.tmp_6.arg1 = s.arg2; + s.tmp_7 = r0 = s.arg3; + r0 = s.arg0.fields["p"]; + s.tmp_9 = r0; + r0 = s.tmp_9.fields["_backgroundsI"]; + s.tmp_10 = r0; + r0 = pxsim_Array__length(s.tmp_10); + s.tmp_8 = r0; + r0 = (s.tmp_7 - s.tmp_8); + s.tmp_6.arg2 = r0; + s.tmp_6.arg3 = s.arg4; + s.callLocIdx = 165; s.pc = 4; return s.tmp_6; + case 4: r0 = s.retval; - r0 = undefined; + case 2: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = s.tmp_11; return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_fillTile__P10853.info = {"start":4785,"length":138,"line":124,"column":8,"endLine":126,"endColumn":9,"fileName":"rulesBase.ts","functionName":"fillTile","argumentNames":["this","c","r","col"]} +tileworld_AllExport_getSetAttr__P3676.info = {"start":1278,"length":227,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"project.ts","functionName":"getSetAttr","argumentNames":["this","rv","whendo","aid","val"]} -function tileworld_RuleVisualsBase_fillTile__P10853_mk(s) { +function tileworld_AllExport_getSetAttr__P3676_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_fillTile__P10853, depth: s.depth + 1, + parent: s, fn: tileworld_AllExport_getSetAttr__P3676, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, + arg4: undefined, } } -function tileworld_ruleediting_RuleDisplay_update__P11276(s) { +function tileworld_RuleView_getSetSpAttr__P3648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22366,202 +25616,142 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.image___11596 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = (s.arg0).fields["collideRow"] = (-1); - r0 = (s.arg0).fields["collideCol"] = (-1); - r0 = pxsim_ImageMethods.fill(globals.screen___578, 0); - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = "When"; - s.tmp_0.arg2 = 0; - r0 = (32 + 8); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 720; s.pc = 11; return s.tmp_0; - case 11: + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getSetBuffAttr__P7045_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.arg1); + r0 = r0.fields["spPred"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg3; + s.callLocIdx = 128; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = s.arg0.fields["p"]; - r0 = r0.fields["debug"]; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleView_getSetSpAttr__P3648.info = {"start":4742,"length":172,"line":138,"column":8,"endLine":140,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetSpAttr","argumentNames":["this","wdid","index","val"]} + +function tileworld_RuleView_getSetSpAttr__P3648_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleView_getSetSpAttr__P3648, 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 tileworld_RuleView_getSetBuffAttr__P7045(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.byteIndex___7329 = undefined; + s.byte___7332 = undefined; + s.remainder___7337 = undefined; + s.mask___7344 = undefined; + s.newByte___7352 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = (s.arg2 >> 2); + s.byteIndex___7329 = (r0); + r0 = pxsim.BufferMethods.getUint8(s.arg1, s.byteIndex___7329); + s.byte___7332 = (r0); + s.tmp_0 = r0 = s.arg2; + r0 = (s.byteIndex___7329 << 2); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.remainder___7337 = (r0); + r0 = (s.arg3 != 65535); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_imagePrint__P541_mk(s); - s.tmp_1.arg0 = globals.screen___578; - r0 = s.arg0.fields["rule"]; + r0 = (s.remainder___7337 << 1); + s.tmp_2 = r0; + r0 = (3 << s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 ^ 255); + s.mask___7344 = (r0); + r0 = (s.byte___7332 & s.mask___7344); + s.tmp_0 = r0; + r0 = (s.arg3 & 3); + s.tmp_2 = r0; + r0 = (s.remainder___7337 << 1); s.tmp_3 = r0; - r0 = s.tmp_3.fields["rid"]; + r0 = (s.tmp_2 << s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0 | s.tmp_1); + s.newByte___7352 = (r0); + r0 = pxsim.BufferMethods.setUint8(s.arg1, s.byteIndex___7329, s.newByte___7352); + case 1: + case 2: + s.tmp_1 = r0 = s.byte___7332; + r0 = (s.remainder___7337 << 1); s.tmp_2 = r0; - r0 = pxsim_numops.toString(s.tmp_2); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = 30; - s.tmp_1.arg3 = 0; - s.tmp_1.arg4 = undefined; - s.tmp_1.arg5 = undefined; - s.tmp_1.arg6 = undefined; - s.callLocIdx = 722; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - case 1: - case 2: - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = "Do"; - s.tmp_0.arg2 = 70; - r0 = (32 + 8); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 723; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleDisplay_showRuleType__P11275_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = s.arg0.fields["rule"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["r"]; - r0 = r0.fields["ruleType"]; - s.tmp_0.arg1 = r0; - s.tmp_2 = tileworld_RuleView_getDirFromRule__P4987_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 725; s.pc = 15; return s.tmp_2; - case 15: - r0 = s.retval; - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 2; - s.tmp_0.arg4 = 4; - s.tmp_0.arg5 = true; - s.callLocIdx = 726; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleDisplay_makeContext__P11277_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 727; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 728; s.pc = 17; return s.tmp_2; - case 17: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 != 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_3 = tileworld_ruleediting_RuleDisplay_showRuleType__P11275_mk(s); - s.tmp_3.arg0 = s.arg0; - r0 = s.arg0.fields["rule"]; - s.tmp_4 = r0; - r0 = s.tmp_4.fields["r"]; - r0 = r0.fields["ruleType"]; - s.tmp_3.arg1 = r0; - s.tmp_5 = tileworld_RuleView_getDirFromRule__P4987_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_5.arg0 = r0; - s.callLocIdx = 730; s.pc = 19; return s.tmp_5; - case 19: - r0 = s.retval; - s.tmp_3.arg2 = r0; - s.tmp_3.arg3 = 2; - s.tmp_3.arg4 = 4; - s.tmp_3.arg5 = true; - s.callLocIdx = 731; s.pc = 18; return s.tmp_3; - case 18: - r0 = s.retval; - case 3: - case 4: - s.tmp_0 = tileworld_ruleediting_RuleDisplay_showCommands__P11281_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 732; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 733; s.pc = 21; return s.tmp_2; - case 21: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_3 = tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 734; s.pc = 22; return s.tmp_3; - case 22: - r0 = s.retval; - s.image___11596 = (r0); - r0 = pxsim_numops_toBoolDecr(s.image___11596); - if (!r0) { step = 5; continue; } - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 3; - s.tmp_0.arg3 = s.image___11596; - s.callLocIdx = 735; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - case 5: - case 6: - { step = 10; continue; } - case 7: - s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 736; s.pc = 24; return s.tmp_2; - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 3); + r0 = (s.tmp_1 >> s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = 0; - s.tmp_3.arg2 = 3; - s.tmp_3.arg3 = globals.negate___7376; - s.callLocIdx = 737; s.pc = 25; return s.tmp_3; - case 25: - r0 = s.retval; - case 8: - case 9: - case 10: - r0 = undefined; + r0 = (s.tmp_0 & 3); return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_update__P11276.info = {"start":4346,"length":1043,"line":101,"column":8,"endLine":123,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"update","argumentNames":["this"]} +tileworld_RuleView_getSetBuffAttr__P7045.info = {"start":4042,"length":508,"line":122,"column":8,"endLine":132,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetBuffAttr","argumentNames":["this","buf","index","val"]} -function tileworld_ruleediting_RuleDisplay_update__P11276_mk(s) { +function tileworld_RuleView_getSetBuffAttr__P7045_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_update__P11276, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getSetBuffAttr__P7045, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - image___11596: undefined, + byteIndex___7329: undefined, + byte___7332: undefined, + remainder___7337: undefined, + mask___7344: undefined, + newByte___7352: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271(s) { +function tileworld_RuleView_getSetBgAttr__P3647(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22571,61 +25761,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dir___11347 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getDirFromRule__P4987_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 702; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.dir___11347 = (r0); - s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 703; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getSetBuffAttr__P7045_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; 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 = pxsim_Array__getAt(globals.buttonImages___11238, s.dir___11347); - { step = 2; continue; } + r0 = pxsim_Array__getAt(s.tmp_1, s.arg1); + r0 = r0.fields["bgPred"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = s.arg3; + s.callLocIdx = 127; s.pc = 1; return s.tmp_0; case 1: - r0 = pxsim_Array__getAt(globals.moveImages___11219, s.dir___11347); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + r0 = s.retval; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271.info = {"start":2005,"length":188,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getDirectionImage","argumentNames":["this"]} +tileworld_RuleView_getSetBgAttr__P3647.info = {"start":4560,"length":172,"line":134,"column":8,"endLine":136,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSetBgAttr","argumentNames":["this","wdid","index","val"]} -function tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271_mk(s) { +function tileworld_RuleView_getSetBgAttr__P3647_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getSetBgAttr__P3647, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - dir___11347: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tileworld_ruleediting_RuleDisplay_showCommands__P11281(s) { +function tileworld_AllExport_getImages__P3673(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22635,92 +25815,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.lr___11672 = undefined; - s.col___11676 = undefined; - s.row___11679 = undefined; - s.len___11682 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["commandLengths"] = (s.tmp_1); - s.lr___11672 = (0); - case 1: - r0 = (s.lr___11672 < 5); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.lr___11672; - s.callLocIdx = 740; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.col___11676 = (r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.lr___11672; - s.callLocIdx = 741; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.row___11679 = (r0); - s.tmp_1 = tileworld_ruleediting_RuleDisplay_active__P11278_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.col___11676; - s.tmp_1.arg2 = s.row___11679; - s.callLocIdx = 742; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_2 = tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.lr___11672; - s.tmp_2.arg2 = s.col___11676; - s.tmp_2.arg3 = s.row___11679; - s.tmp_2.arg4 = true; - s.callLocIdx = 743; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - { step = 3; continue; } - case 2: - r0 = -1; - case 3: - // jmp value (already in r0) - s.tmp_3 = r0; - s.len___11682 = (s.tmp_3); - r0 = s.arg0.fields["commandLengths"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.len___11682); - r0 = (s.lr___11672 + 1); - s.lr___11672 = (r0); - { step = 1; continue; } - case 4: - r0 = undefined; + if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0); + r0 = s.arg0.fields["allImages"]; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_showCommands__P11281.info = {"start":6317,"length":368,"line":149,"column":8,"endLine":157,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommands","argumentNames":["this"]} +tileworld_AllExport_getImages__P3673.info = {"start":934,"length":65,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"project.ts","functionName":"getImages","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_showCommands__P11281_mk(s) { +function tileworld_AllExport_getImages__P3673_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommands__P11281, depth: s.depth + 1, + parent: s, fn: tileworld_AllExport_getImages__P3673, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - lr___11672: undefined, - col___11676: undefined, - row___11679: undefined, - len___11682: undefined, arg0: undefined, } } @@ -22728,7 +25839,7 @@ function tileworld_ruleediting_RuleDisplay_showCommands__P11281_mk(s) { -function tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283(s) { +function tileworld_RuleView_makeWhenDo__P3644(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22738,332 +25849,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.kind___11772 = undefined; - s.img___11778 = undefined; - s.whendo___11807 = undefined; - s.whendo___11873 = undefined; - s.col___11879 = undefined; - s.tokens___11880 = undefined; - s.cid___11890 = undefined; + s.wd___7267 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg4); - if (!r0) { step = 13; continue; } - s.tmp_0 = tileworld_RuleView_findWitnessColRow__P4997_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.tmp_0.arg3 = true; - s.callLocIdx = 747; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - s.kind___11772 = (r0); - r0 = (s.kind___11772 == -1); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_WhenDo__C3603_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = globals.genericSprite___7259; - { step = 2; continue; } + s.tmp_1 = tileworld_WhenDo_constructor__P3604_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 = null; + s.tmp_1.arg4 = null; + s.tmp_1.arg5 = 0; + s.tmp_1.arg6 = null; + s.tmp_1.arg7 = 0; + s.callLocIdx = 124; s.pc = 1; return s.tmp_1; case 1: - s.tmp_1 = tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg2; - s.tmp_1.arg2 = s.arg3; - s.callLocIdx = 748; s.pc = 29; return s.tmp_1; - case 29: - r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.img___11778 = (s.tmp_2); - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - r0 = (s.arg1 + 2); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.img___11778; - s.callLocIdx = 749; s.pc = 30; return s.tmp_0; - case 30: - r0 = s.retval; - r0 = (s.kind___11772 != -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 3: - s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 750; s.pc = 31; return s.tmp_3; - case 31: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 != 2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = s.tmp_1; - { step = 5; continue; } - case 4: - r0 = (s.arg2 != 2); - case 5: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (!r0) { step = 6; continue; } - r0 = s.tmp_4; - { step = 7; continue; } - case 6: - r0 = (s.arg3 != 2); - case 7: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; - case 8: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 9; continue; } - s.tmp_7 = tileworld_RuleView_getWhenDo__P4608_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = s.arg2; - s.tmp_7.arg2 = s.arg3; - s.callLocIdx = 751; s.pc = 32; return s.tmp_7; - case 32: - r0 = s.retval; - s.whendo___11807 = (r0); - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 5; - r0 = (s.arg1 + 2); - s.tmp_0.arg2 = r0; - s.tmp_1 = r0 = globals.movedImages___11227; - s.tmp_3 = tileworld_RuleView_getWitnessDirection__P4998_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.whendo___11807; - s.callLocIdx = 752; s.pc = 34; return s.tmp_3; - case 34: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - s.tmp_0.arg3 = r0; - s.callLocIdx = 753; s.pc = 33; return s.tmp_0; - case 33: r0 = s.retval; - case 9: - case 10: + s.wd___7267 = (s.tmp_0); + s.tmp_0 = r0 = s.wd___7267; r0 = s.arg0.fields["p"]; - r0 = r0.fields["help"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_imagePrint__P541_mk(s); - s.tmp_1.arg0 = globals.screen___578; - r0 = (s.arg1 + 1); - s.tmp_2 = r0; - r0 = pxsim_numops.toString(s.tmp_2); - s.tmp_1.arg1 = r0; - r0 = (80 + 10); - s.tmp_1.arg2 = r0; - r0 = (2 + s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_4 << 4); s.tmp_3 = r0; - r0 = (s.tmp_3 + 13); - s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = undefined; - s.tmp_1.arg5 = undefined; - s.tmp_1.arg6 = undefined; - s.callLocIdx = 754; s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = (s.arg1 + 1); - s.tmp_1 = r0; - r0 = pxsim_numops.toString(s.tmp_1); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 << 4); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 10); - s.tmp_0.arg2 = r0; - r0 = (2 + s.arg3); + r0 = s.tmp_3.fields["_backgroundsI"]; s.tmp_4 = r0; - r0 = (s.tmp_4 << 4); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 13); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 755; s.pc = 36; return s.tmp_0; - case 36: - r0 = s.retval; - case 11: - case 12: - case 13: - case 14: - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 756; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.whendo___11873 = (r0); - s.col___11879 = (6); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_startTokens__P11285_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 757; s.pc = 38; return s.tmp_0; - case 38: - r0 = s.retval; - s.tokens___11880 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg4); + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim.control.createBuffer(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.arg0).fields["tokens"] = (s.tokens___11880); - case 15: - case 16: - s.cid___11890 = (0); - case 17: - r0 = (s.whendo___11873 != -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 18; continue; } - r0 = s.tmp_0; - { step = 19; continue; } - case 18: - s.tmp_1 = r0 = s.cid___11890; - r0 = s.arg0.fields["rule"]; + r0 = (s.tmp_0).fields["bgPred"] = (s.tmp_1); + s.tmp_0 = r0 = s.wd___7267; + r0 = s.arg0.fields["p"]; s.tmp_3 = r0; - r0 = s.tmp_3.fields["r"]; - r0 = r0.fields["whenDo"]; + r0 = s.tmp_3.fields["_spritesI"]; s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.whendo___11873); - r0 = r0.fields["commandsLen"]; + r0 = pxsim_Array__length(s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - case 19: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 20; continue; } - s.tmp_6 = tileworld_ruleediting_RuleDisplay_showCommand__P11284_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.col___11879; - s.tmp_6.arg2 = s.arg1; - s.tmp_6.arg3 = s.whendo___11873; - s.tmp_6.arg4 = s.cid___11890; - s.tmp_6.arg5 = s.tokens___11880; - s.tmp_6.arg6 = s.arg4; - s.callLocIdx = 759; s.pc = 39; return s.tmp_6; - case 39: - r0 = s.retval; - r0 = (s.cid___11890 + 1); - s.cid___11890 = (r0); - s.tmp_0 = r0 = s.col___11879; - r0 = (s.tmp_0 + 1); - s.col___11879 = (r0); - r0 = s.tmp_0; - { step = 17; continue; } - case 20: - r0 = (s.whendo___11873 == -1); + r0 = pxsim.control.createBuffer(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["spPred"] = (s.tmp_1); + r0 = (s.wd___7267).fields["commandsLen"] = (0); + s.tmp_0 = r0 = s.wd___7267; + r0 = pxsim.control.createBuffer(8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["commands"] = (s.tmp_1); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 21; continue; } - r0 = s.tmp_0; - { step = 24; continue; } - case 21: - r0 = (s.cid___11890 < 4); + r0 = pxsim_Array__push(s.tmp_0, s.wd___7267); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); - if (r0) { step = 22; continue; } - r0 = s.tmp_1; - { step = 23; continue; } - case 22: - r0 = pxsim_Array__length(s.tokens___11880); - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); - case 23: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; - case 24: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 25; continue; } - s.tmp_5 = tileworld_ruleediting_RuleDisplay_showCommand__P11284_mk(s); - s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.col___11879; - s.tmp_5.arg2 = s.arg1; - s.tmp_5.arg3 = s.whendo___11873; - s.tmp_5.arg4 = s.cid___11890; - s.tmp_5.arg5 = s.tokens___11880; - s.tmp_5.arg6 = s.arg4; - s.callLocIdx = 760; s.pc = 40; return s.tmp_5; - case 40: - r0 = s.retval; - r0 = (s.cid___11890 + 1); - { step = 27; continue; } - case 25: - case 26: - r0 = s.cid___11890; - case 27: + r0 = pxsim_Array__length(s.tmp_1); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283.info = {"start":7910,"length":1972,"line":188,"column":8,"endLine":225,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommandsAt","argumentNames":["this","crow","wcol","wrow","draw"]} +tileworld_RuleView_makeWhenDo__P3644.info = {"start":3418,"length":408,"line":104,"column":8,"endLine":112,"endColumn":9,"fileName":"ruleview.ts","functionName":"makeWhenDo","argumentNames":["this","col","row"]} -function tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283_mk(s) { +function tileworld_RuleView_makeWhenDo__P3644_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_makeWhenDo__P3644, depth: s.depth + 1, pc: 0, retval: undefined, 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, - kind___11772: undefined, - img___11778: undefined, - whendo___11807: undefined, - whendo___11873: undefined, - col___11879: undefined, - tokens___11880: undefined, - cid___11890: undefined, + wd___7267: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function tileworld_ruleediting_RuleDisplay_showCommand__P11284(s) { +function tileworld_WhenDo_constructor__P3604(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23073,8 +25943,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.inst___11957 = undefined; - s.arg___11963 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -23083,92 +25951,30 @@ switch (step) { s.arg4 = (s.lambdaArgs[4]); s.arg5 = (s.lambdaArgs[5]); s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = (s.arg3 == -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg6); - if (!r0) { step = 1; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - r0 = (s.arg2 + 2); - s.tmp_1.arg2 = r0; - s.tmp_1.arg3 = globals.emptyTile___7244; - s.callLocIdx = 761; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - case 1: - case 2: - { step = 6; continue; } - case 3: - s.tmp_0 = tileworld_RuleView_getCmdInst__P5000_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg3; - s.tmp_0.arg2 = s.arg4; - s.callLocIdx = 762; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.inst___11957 = (r0); - s.tmp_0 = tileworld_RuleView_getCmdArg__P5001_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg3; - s.tmp_0.arg2 = s.arg4; - s.callLocIdx = 763; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.arg___11963 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg6); - if (!r0) { step = 4; continue; } - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - r0 = (s.arg2 + 2); - s.tmp_0.arg2 = r0; - s.tmp_1 = tileworld_ruleediting_RuleDisplay_instToImage__P11282_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.inst___11957; - s.tmp_1.arg2 = s.arg___11963; - s.callLocIdx = 764; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.callLocIdx = 765; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - case 4: - case 5: - s.tmp_0 = tileworld_ruleediting_RuleDisplay_updateTokens__P11286_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg5; - s.tmp_0.arg2 = s.inst___11957; - s.callLocIdx = 766; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - r0 = (s.arg1 + 1); - s.arg1 = (r0); - case 6: - r0 = s.arg1; - return leave(s, r0) + if (!checkSubtype(r0, tileworld_WhenDo__C3603_VT)) failedCast(r0); + r0 = (s.arg0).fields["col"] = (s.arg1); + r0 = (s.arg0).fields["row"] = (s.arg2); + r0 = (s.arg0).fields["bgPred"] = (s.arg3); + r0 = (s.arg0).fields["spPred"] = (s.arg4); + r0 = (s.arg0).fields["dir"] = (s.arg5); + r0 = (s.arg0).fields["commands"] = (s.arg6); + r0 = (s.arg0).fields["commandsLen"] = (s.arg7); + r0 = (s.arg0).fields["dir"] = (6); + r0 = undefined; + return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_showCommand__P11284.info = {"start":9892,"length":596,"line":227,"column":8,"endLine":240,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommand","argumentNames":["this","col","row","whendo","cid","tokens","draw"]} +tileworld_WhenDo_constructor__P3604.info = {"start":3368,"length":772,"line":101,"column":8,"endLine":111,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["this","col","row","bgPred","spPred","dir","commands","commandsLen"]} -function tileworld_ruleediting_RuleDisplay_showCommand__P11284_mk(s) { +function tileworld_WhenDo_constructor__P3604_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommand__P11284, depth: s.depth + 1, + parent: s, fn: tileworld_WhenDo_constructor__P3604, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - inst___11957: undefined, - arg___11963: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -23176,13 +25982,14 @@ function tileworld_ruleediting_RuleDisplay_showCommand__P11284_mk(s) { arg4: undefined, arg5: undefined, arg6: undefined, + arg7: undefined, } } -function tileworld_ruleediting_RuleDisplay_updateTokens__P11286(s) { +function tileworld_ruleediting_RuleEditor_showMainMenu__P14511(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23192,54 +25999,199 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.rules___15798 = undefined; + s.index___15800 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = (s.arg2 == 255); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 11; + s.callLocIdx = 1075; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.code___3715; + s.callLocIdx = 1076; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.map___3712; + s.callLocIdx = 1077; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 2; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.play___3713; + s.callLocIdx = 1078; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 5; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.flipHoriz___3743; + s.callLocIdx = 1079; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = s.arg0.fields["rule"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["r"]; + r0 = r0.fields["transforms"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 != 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } + s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = 5; + s.tmp_3.arg2 = 0; + s.tmp_3.arg3 = globals.include2___3729; + s.callLocIdx = 1081; s.pc = 14; return s.tmp_3; + case 14: + r0 = s.retval; case 1: case 2: - r0 = pxsim_Array_.removeElement(s.arg1, s.arg2); - r0 = pxsim_Array_.removeElement(s.arg1, 0); - r0 = pxsim_Array_.removeElement(s.arg1, 3); - r0 = (s.arg2 == 2); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 6; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.garbageCan___3718; + s.callLocIdx = 1082; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.tmp_0 = tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1083; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.rules___15798 = (r0); + r0 = s.arg0.fields["rule"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.indexOf(s.rules___15798, s.tmp_0, undefined); + s.index___15800 = (r0); + s.tmp_1 = r0 = s.index___15800; + r0 = pxsim_Array__length(s.rules___15798); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_Array_.insertAt(s.arg1, 0, 0); + r0 = globals.rightArrow___3751; + { step = 4; continue; } case 3: + s.tmp_4 = tileworld_greyImage__P3539_mk(s); + s.tmp_4.arg0 = globals.rightArrow___3751; + s.callLocIdx = 1084; s.pc = 17; return s.tmp_4; + case 17: + r0 = s.retval; case 4: + // jmp value (already in r0) + s.tmp_5 = r0; + s.tmp_6 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = 9; + s.tmp_6.arg2 = 0; + s.tmp_6.arg3 = s.tmp_5; + s.callLocIdx = 1085; s.pc = 18; return s.tmp_6; + case 18: + r0 = s.retval; + s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1086; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 != -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = globals.addRule___3720; + { step = 6; continue; } case 5: + s.tmp_3 = tileworld_greyImage__P3539_mk(s); + s.tmp_3.arg0 = globals.addRule___3720; + s.callLocIdx = 1087; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + case 6: + // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_5 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_5.arg1 = 8; + s.tmp_5.arg2 = 0; + s.tmp_5.arg3 = s.tmp_4; + s.callLocIdx = 1088; s.pc = 21; return s.tmp_5; + case 21: + r0 = s.retval; + r0 = (s.index___15800 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = globals.leftArrow___3752; + { step = 8; continue; } + case 7: + s.tmp_1 = tileworld_greyImage__P3539_mk(s); + s.tmp_1.arg0 = globals.leftArrow___3752; + s.callLocIdx = 1089; s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + case 8: + // jmp value (already in r0) + s.tmp_2 = r0; + s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = 7; + s.tmp_3.arg2 = 0; + s.tmp_3.arg3 = s.tmp_2; + s.callLocIdx = 1090; s.pc = 23; return s.tmp_3; + case 23: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_updateTokens__P11286.info = {"start":11112,"length":474,"line":257,"column":8,"endLine":268,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"updateTokens","argumentNames":["this","tokens","inst"]} +tileworld_ruleediting_RuleEditor_showMainMenu__P14511.info = {"start":11664,"length":850,"line":250,"column":8,"endLine":267,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"showMainMenu","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_updateTokens__P11286_mk(s) { +function tileworld_ruleediting_RuleEditor_showMainMenu__P14511_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_updateTokens__P11286, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_showMainMenu__P14511, depth: s.depth + 1, pc: 0, retval: undefined, 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, + rules___15798: undefined, + index___15800: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tileworld_RuleView_getCmdsLen__P4622(s) { +function tileworld_greyImage__P3539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23249,38 +26201,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ret___6051 = undefined; + s.x___6055 = undefined; + s.y___6062 = undefined; + s.pix___6069 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; + r0 = pxsim_ImageMethods.clone(s.arg0); + s.ret___6051 = (r0); + s.x___6055 = (0); + case 1: + s.tmp_1 = r0 = s.x___6055; + r0 = pxsim_ImageMethods.width(s.ret___6051); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - r0 = r0.fields["commandsLen"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.y___6062 = (0); + case 2: + s.tmp_1 = r0 = s.y___6062; + r0 = pxsim_ImageMethods.height(s.ret___6051); + 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.ret___6051, s.x___6055, s.y___6062); + s.pix___6069 = (r0); + r0 = (s.pix___6069 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = 0; + { step = 4; continue; } + case 3: + r0 = 12; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.setPixel(s.ret___6051, s.x___6055, s.y___6062, s.tmp_1); + r0 = (s.y___6062 + 1); + s.y___6062 = (r0); + { step = 2; continue; } + case 5: + r0 = (s.x___6055 + 1); + s.x___6055 = (r0); + { step = 1; continue; } + case 6: + r0 = s.ret___6051; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getCmdsLen__P4622.info = {"start":6639,"length":95,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdsLen","argumentNames":["this","wdid"]} +tileworld_greyImage__P3539.info = {"start":995,"length":327,"line":29,"column":4,"endLine":38,"endColumn":5,"fileName":"utilities.ts","functionName":"greyImage","argumentNames":["img"]} -function tileworld_RuleView_getCmdsLen__P4622_mk(s) { +function tileworld_greyImage__P3539_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getCmdsLen__P4622, depth: s.depth + 1, + parent: s, fn: tileworld_greyImage__P3539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + ret___6051: undefined, + x___6055: undefined, + y___6062: undefined, + pix___6069: undefined, arg0: undefined, - arg1: undefined, } } -function tileworld_ruleediting_RuleDisplay_startTokens__P11285(s) { +function tileworld_RuleView_getTransforms__P3635(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23290,78 +26286,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tokens___11987 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.tokens___11987 = (r0); - s.tmp_2 = tileworld_RuleView_findWitnessColRow__P4997_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.arg1; - s.tmp_2.arg2 = s.arg2; - s.tmp_2.arg3 = true; - s.callLocIdx = 767; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 != -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_3, 0); - r0 = pxsim_Array__push(s.tmp_3, 3); - s.tokens___11987 = (s.tmp_3); - case 1: - case 2: - 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, 6); - r0 = pxsim_Array__push(s.tmp_0, 5); - r0 = pxsim_Array__push(s.tmp_0, 4); - s.tmp_1 = helpers_arrayConcat__P64_mk(s); - s.tmp_1.arg0 = s.tokens___11987; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 768; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tokens___11987 = (r0); - r0 = s.tokens___11987; + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["transforms"]; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_startTokens__P11285.info = {"start":10630,"length":472,"line":244,"column":8,"endLine":255,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"startTokens","argumentNames":["this","col","row"]} +tileworld_RuleView_getTransforms__P3635.info = {"start":1545,"length":72,"line":45,"column":8,"endLine":47,"endColumn":9,"fileName":"ruleview.ts","functionName":"getTransforms","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_startTokens__P11285_mk(s) { +function tileworld_RuleView_getTransforms__P3635_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_startTokens__P11285, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getTransforms__P3635, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tokens___11987: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function helpers_arrayConcat__P64(s) { +function tileworld_RuleVisualsBase_fillTile__P12699(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23371,83 +26321,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___23765 = undefined; - s.value___23768 = undefined; - s.unnamed40___U2 = undefined; - s.unnamed41___U3 = undefined; - s.value___23775 = undefined; - s.unnamed42___U5 = undefined; - s.unnamed43___U6 = 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__mk(); - s.out___23765 = (r0); - s.value___23768 = (undefined); - s.unnamed40___U2 = (s.arg0); - s.unnamed41___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed41___U3; - r0 = pxsim_Array__length(s.unnamed40___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed40___U2, s.unnamed41___U3); - s.value___23768 = (r0); - r0 = pxsim_Array__push(s.out___23765, s.value___23768); - r0 = (s.unnamed41___U3 + 1); - s.unnamed41___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed40___U2 = (undefined); - s.value___23775 = (undefined); - s.unnamed42___U5 = (s.arg1); - s.unnamed43___U6 = (0); - case 3: - s.tmp_0 = r0 = s.unnamed43___U6; - r0 = pxsim_Array__length(s.unnamed42___U5); + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = (s.arg1 << 4); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed42___U5, s.unnamed43___U6); - s.value___23775 = (r0); - r0 = pxsim_Array__push(s.out___23765, s.value___23775); - r0 = (s.unnamed43___U6 + 1); - s.unnamed43___U6 = (r0); - { step = 3; continue; } - case 4: - s.unnamed42___U5 = (undefined); - r0 = s.out___23765; + r0 = (s.tmp_1 + 1); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 << 4); + s.tmp_3 = r0; + r0 = (6 + s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 15; + s.tmp_0.arg4 = 15; + s.tmp_0.arg5 = s.arg3; + s.callLocIdx = 685; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P64.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"]} +tileworld_RuleVisualsBase_fillTile__P12699.info = {"start":4785,"length":138,"line":124,"column":8,"endLine":126,"endColumn":9,"fileName":"rulesBase.ts","functionName":"fillTile","argumentNames":["this","c","r","col"]} -function helpers_arrayConcat__P64_mk(s) { +function tileworld_RuleVisualsBase_fillTile__P12699_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P64, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_fillTile__P12699, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___23765: undefined, - value___23768: undefined, - unnamed40___U2: undefined, - unnamed41___U3: undefined, - value___23775: undefined, - unnamed42___U5: undefined, - unnamed43___U6: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287(s) { +function tileworld_ruleediting_RuleDisplay_update__P13111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23457,208 +26383,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.whenDo___12041 = undefined; - s.include___12052 = undefined; - s.include2___12056 = undefined; - s.exclude___12069 = undefined; - s.exclude2___12073 = undefined; - s.index___12086 = undefined; + s.image___13430 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 769; s.pc = 22; return s.tmp_0; - case 22: + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = (s.arg0).fields["collideRow"] = (-1); + r0 = (s.arg0).fields["collideCol"] = (-1); + r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = "When"; + s.tmp_0.arg2 = 0; + r0 = (32 + 8); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 720; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.whenDo___12041 = (r0); - r0 = (s.whenDo___12041 == -1); + r0 = s.arg0.fields["p"]; + r0 = r0.fields["debug"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = globals.ok___7271; - { step = 21; continue; } + s.tmp_1 = helpers_imagePrint__P1757_mk(s); + s.tmp_1.arg0 = globals.screen___1799; + r0 = s.arg0.fields["rule"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["rid"]; + s.tmp_2 = r0; + r0 = pxsim_numops.toString(s.tmp_2); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = 30; + s.tmp_1.arg3 = 0; + s.tmp_1.arg4 = undefined; + s.tmp_1.arg5 = undefined; + s.tmp_1.arg6 = undefined; + s.callLocIdx = 722; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; case 1: case 2: - s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P11290_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.whenDo___12041; - s.tmp_1.arg2 = 1; - s.tmp_1.arg3 = 0; - s.callLocIdx = 770; s.pc = 23; return s.tmp_1; - case 23: + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = "Do"; + s.tmp_0.arg2 = 70; + r0 = (32 + 8); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 723; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = tileworld_ruleediting_RuleDisplay_showRuleType__P13110_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.arg0.fields["rule"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["r"]; + r0 = r0.fields["ruleType"]; + s.tmp_0.arg1 = r0; + s.tmp_2 = tileworld_RuleView_getDirFromRule__P3642_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 725; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 2; + s.tmp_0.arg4 = 4; + s.tmp_0.arg5 = true; + s.callLocIdx = 726; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = tileworld_ruleediting_RuleDisplay_makeContext__P13112_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 727; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 728; s.pc = 17; return s.tmp_2; + case 17: r0 = s.retval; - s.include___12052 = (r0); - r0 = (s.include___12052 == -1); + s.tmp_1 = r0; + r0 = (s.tmp_1 != 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = -1; - { step = 4; continue; } - case 3: - s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P11290_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.whenDo___12041; - s.tmp_1.arg2 = 1; - r0 = (s.include___12052 + 1); - s.tmp_1.arg3 = r0; - s.callLocIdx = 771; s.pc = 24; return s.tmp_1; - case 24: + s.tmp_3 = tileworld_ruleediting_RuleDisplay_showRuleType__P13110_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = s.arg0.fields["rule"]; + s.tmp_4 = r0; + r0 = s.tmp_4.fields["r"]; + r0 = r0.fields["ruleType"]; + s.tmp_3.arg1 = r0; + s.tmp_5 = tileworld_RuleView_getDirFromRule__P3642_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_5.arg0 = r0; + s.callLocIdx = 730; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_3.arg2 = r0; + s.tmp_3.arg3 = 2; + s.tmp_3.arg4 = 4; + s.tmp_3.arg5 = true; + s.callLocIdx = 731; s.pc = 18; return s.tmp_3; + case 18: r0 = s.retval; + case 3: case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.include2___12056 = (s.tmp_2); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_attrIndex__P11290_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_showCommands__P13116_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.whenDo___12041; - s.tmp_0.arg2 = 3; - s.tmp_0.arg3 = 0; - s.callLocIdx = 772; s.pc = 25; return s.tmp_0; - case 25: + s.callLocIdx = 732; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 733; s.pc = 21; return s.tmp_2; + case 21: r0 = s.retval; - s.exclude___12069 = (r0); - r0 = (s.exclude___12069 == -1); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_3 = tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 734; s.pc = 22; return s.tmp_3; + case 22: + r0 = s.retval; + s.image___13430 = (r0); + r0 = pxsim_numops_toBoolDecr(s.image___13430); if (!r0) { step = 5; continue; } - r0 = -1; - { step = 6; continue; } - case 5: - s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P11290_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.whenDo___12041; - s.tmp_1.arg2 = 3; - r0 = (s.exclude___12069 + 1); - s.tmp_1.arg3 = r0; - s.callLocIdx = 773; s.pc = 26; return s.tmp_1; - case 26: + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 3; + s.tmp_0.arg3 = s.image___13430; + s.callLocIdx = 735; s.pc = 23; return s.tmp_0; + case 23: r0 = s.retval; + case 5: case 6: - // jmp value (already in r0) - s.tmp_2 = r0; - s.exclude2___12073 = (s.tmp_2); - r0 = (s.include___12052 == -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.exclude___12069; - { step = 8; continue; } + { step = 10; continue; } case 7: - r0 = s.include___12052; - case 8: - // jmp value (already in r0) + s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 736; s.pc = 24; return s.tmp_2; + case 24: + r0 = s.retval; s.tmp_1 = r0; - s.index___12086 = (s.tmp_1); - r0 = (s.include___12052 != -1); + r0 = (s.tmp_1 == 3); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(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 = 8; continue; } + s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = 0; + s.tmp_3.arg2 = 3; + s.tmp_3.arg3 = globals.negate___3765; + s.callLocIdx = 737; s.pc = 25; return s.tmp_3; + case 25: + r0 = s.retval; + case 8: case 9: - r0 = (s.include2___12056 != -1); case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 11; continue; } - s.tmp_2 = tileworld_splitImage__P3965_mk(s); - r0 = s.arg0.fields["all"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["allImages"]; - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.include___12052); - s.tmp_2.arg0 = r0; - r0 = s.arg0.fields["all"]; - s.tmp_5 = r0; - r0 = s.tmp_5.fields["allImages"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.include2___12056); - s.tmp_2.arg1 = r0; - s.callLocIdx = 776; s.pc = 27; return s.tmp_2; - case 27: - r0 = s.retval; - { step = 21; continue; } - { step = 20; continue; } - case 11: - r0 = (s.include___12052 == -1); - s.tmp_7 = r0; - r0 = pxsim_numops_toBool(s.tmp_7); - if (r0) { step = 12; continue; } - r0 = s.tmp_7; - { step = 13; continue; } - case 12: - r0 = (s.exclude___12069 != -1); - case 13: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBool(s.tmp_8); - if (r0) { step = 14; continue; } - r0 = s.tmp_8; - { step = 15; continue; } - case 14: - r0 = (s.exclude2___12073 != -1); - case 15: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_9); - if (!r0) { step = 16; continue; } - s.tmp_10 = tileworld_splitImage__P3965_mk(s); - r0 = s.arg0.fields["all"]; - s.tmp_11 = r0; - r0 = s.tmp_11.fields["allImages"]; - s.tmp_12 = r0; - r0 = pxsim_Array__getAt(s.tmp_12, s.exclude___12069); - s.tmp_10.arg0 = r0; - r0 = s.arg0.fields["all"]; - s.tmp_13 = r0; - r0 = s.tmp_13.fields["allImages"]; - s.tmp_14 = r0; - r0 = pxsim_Array__getAt(s.tmp_14, s.exclude2___12073); - s.tmp_10.arg1 = r0; - s.callLocIdx = 779; s.pc = 28; return s.tmp_10; - case 28: - r0 = s.retval; - { step = 21; continue; } - { step = 19; continue; } - case 16: - r0 = (s.index___12086 != -1); - s.tmp_15 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_15); - if (!r0) { step = 17; continue; } - r0 = s.arg0.fields["all"]; - s.tmp_16 = r0; - r0 = s.tmp_16.fields["allImages"]; - s.tmp_17 = r0; - r0 = pxsim_Array__getAt(s.tmp_17, s.index___12086); - { step = 21; continue; } - { step = 18; continue; } - case 17: - r0 = globals.ok___7271; - { step = 21; continue; } - case 18: - case 19: - case 20: r0 = undefined; - case 21: return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287.info = {"start":11596,"length":1170,"line":270,"column":8,"endLine":290,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getWhenDoImage","argumentNames":["this","col","row"]} +tileworld_ruleediting_RuleDisplay_update__P13111.info = {"start":4346,"length":1043,"line":101,"column":8,"endLine":123,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"update","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287_mk(s) { +function tileworld_ruleediting_RuleDisplay_update__P13111_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_update__P13111, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23666,34 +26570,15 @@ function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - whenDo___12041: undefined, - include___12052: undefined, - include2___12056: undefined, - exclude___12069: undefined, - exclude2___12073: undefined, - index___12086: undefined, + image___13430: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tileworld_AllExport_getImage__P6027(s) { +function tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23703,36 +26588,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.dir___13181 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_AllExport__C6025_VT)) failedCast(r0); - r0 = s.arg0.fields["allImages"]; + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getDirFromRule__P3642_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 702; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.dir___13181 = (r0); + s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 703; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__getAt(globals.buttonImages___3791, s.dir___13181); + { step = 2; continue; } + case 1: + r0 = pxsim_Array__getAt(globals.moveImages___3788, s.dir___13181); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; return leave(s, r0) default: oops() } } } -tileworld_AllExport_getImage__P6027.info = {"start":1008,"length":84,"line":28,"column":8,"endLine":30,"endColumn":9,"fileName":"project.ts","functionName":"getImage","argumentNames":["this","index"]} +tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106.info = {"start":2005,"length":188,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getDirectionImage","argumentNames":["this"]} -function tileworld_AllExport_getImage__P6027_mk(s) { +function tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_AllExport_getImage__P6027, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + dir___13181: undefined, arg0: undefined, - arg1: undefined, } } -function tileworld_splitImage__P3965(s) { +function tileworld_ruleediting_RuleDisplay_showCommands__P13116(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23742,81 +26652,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ret___3968 = undefined; - s.x___3972 = undefined; - s.y___3983 = undefined; + s.lr___13506 = undefined; + s.col___13510 = undefined; + s.row___13513 = undefined; + s.len___13516 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.clone(s.arg0); - s.ret___3968 = (r0); - r0 = pxsim_ImageMethods.width(s.ret___3968); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); - s.x___3972 = (r0); + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["commandLengths"] = (s.tmp_1); + s.lr___13506 = (0); case 1: - s.tmp_1 = r0 = s.x___3972; - r0 = pxsim_ImageMethods.width(s.ret___3968); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.lr___13506 < 5); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___3983 = (0); - case 2: - s.tmp_1 = r0 = s.y___3983; - r0 = pxsim_ImageMethods.height(s.ret___3968); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + s.tmp_1 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.lr___13506; + s.callLocIdx = 740; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.col___13510 = (r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.lr___13506; + s.callLocIdx = 741; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.row___13513 = (r0); + s.tmp_1 = tileworld_ruleediting_RuleDisplay_active__P13113_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.col___13510; + s.tmp_1.arg2 = s.row___13513; + s.callLocIdx = 742; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.ret___3968; - s.tmp_4 = r0 = s.x___3972; - s.tmp_5 = r0 = s.y___3983; - r0 = pxsim_ImageMethods.getPixel(s.arg1, s.x___3972, s.y___3983); - s.tmp_6 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_3, s.tmp_4, s.tmp_5, s.tmp_6); - r0 = (s.y___3983 + 1); - s.y___3983 = (r0); - { step = 2; continue; } + if (!r0) { step = 2; continue; } + s.tmp_2 = tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.lr___13506; + s.tmp_2.arg2 = s.col___13510; + s.tmp_2.arg3 = s.row___13513; + s.tmp_2.arg4 = true; + s.callLocIdx = 743; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + { step = 3; continue; } + case 2: + r0 = -1; case 3: - r0 = (s.x___3972 + 1); - s.x___3972 = (r0); + // jmp value (already in r0) + s.tmp_3 = r0; + s.len___13516 = (s.tmp_3); + r0 = s.arg0.fields["commandLengths"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.len___13516); + r0 = (s.lr___13506 + 1); + s.lr___13506 = (r0); { step = 1; continue; } case 4: - r0 = s.ret___3968; + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_splitImage__P3965.info = {"start":1328,"length":329,"line":40,"column":4,"endLine":48,"endColumn":5,"fileName":"utilities.ts","functionName":"splitImage","argumentNames":["imgLeft","imgRight"]} +tileworld_ruleediting_RuleDisplay_showCommands__P13116.info = {"start":6317,"length":368,"line":149,"column":8,"endLine":157,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommands","argumentNames":["this"]} -function tileworld_splitImage__P3965_mk(s) { +function tileworld_ruleediting_RuleDisplay_showCommands__P13116_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_splitImage__P3965, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommands__P13116, depth: s.depth + 1, pc: 0, retval: undefined, 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, - ret___3968: undefined, - x___3972: undefined, - y___3983: undefined, + lr___13506: undefined, + col___13510: undefined, + row___13513: undefined, + len___13516: undefined, arg0: undefined, - arg1: undefined, } } -function tileworld_ruleediting_RuleDisplay_attrIndex__P11290(s) { +function tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23826,65 +26755,304 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___12348 = undefined; + s.kind___13606 = undefined; + s.img___13612 = undefined; + s.whendo___13641 = undefined; + s.whendo___13707 = undefined; + s.col___13713 = undefined; + s.tokens___13714 = undefined; + s.cid___13724 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.i___12348 = (s.arg3); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 13; continue; } + s.tmp_0 = tileworld_RuleView_findWitnessColRow__P3650_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.tmp_0.arg3 = true; + s.callLocIdx = 747; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + s.kind___13606 = (r0); + r0 = (s.kind___13606 == -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = globals.genericSprite___3726; + { step = 2; continue; } case 1: - s.tmp_1 = r0 = s.i___12348; - s.tmp_3 = tileworld_Project_allCnt__P6119_mk(s); - r0 = s.arg0.fields["p"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 801; s.pc = 6; return s.tmp_3; + s.tmp_1 = tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg2; + s.tmp_1.arg2 = s.arg3; + s.callLocIdx = 748; s.pc = 29; return s.tmp_1; + case 29: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.img___13612 = (s.tmp_2); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 5; + r0 = (s.arg1 + 2); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.img___13612; + s.callLocIdx = 749; s.pc = 30; return s.tmp_0; + case 30: + r0 = s.retval; + r0 = (s.kind___13606 != -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 3: + s.tmp_3 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 750; s.pc = 31; return s.tmp_3; + case 31: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 != 2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = s.tmp_1; + { step = 5; continue; } + case 4: + r0 = (s.arg2 != 2); + case 5: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (!r0) { step = 6; continue; } + r0 = s.tmp_4; + { step = 7; continue; } case 6: + r0 = (s.arg3 != 2); + case 7: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + case 8: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 9; continue; } + s.tmp_7 = tileworld_RuleView_getWhenDo__P3643_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = s.arg2; + s.tmp_7.arg2 = s.arg3; + s.callLocIdx = 751; s.pc = 32; return s.tmp_7; + case 32: + r0 = s.retval; + s.whendo___13641 = (r0); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 5; + r0 = (s.arg1 + 2); + s.tmp_0.arg2 = r0; + s.tmp_1 = r0 = globals.movedImages___3789; + s.tmp_3 = tileworld_RuleView_getWitnessDirection__P3651_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.whendo___13641; + s.callLocIdx = 752; s.pc = 34; return s.tmp_3; + case 34: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + s.tmp_0.arg3 = r0; + s.callLocIdx = 753; s.pc = 33; return s.tmp_0; + case 33: + r0 = s.retval; + case 9: + case 10: + r0 = s.arg0.fields["p"]; + r0 = r0.fields["help"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_6 = tileworld_AllExport_getSetAttr__P6029_mk(s); - r0 = s.arg0.fields["all"]; - s.tmp_6.arg0 = r0; + if (!r0) { step = 11; continue; } + s.tmp_1 = helpers_imagePrint__P1757_mk(s); + s.tmp_1.arg0 = globals.screen___1799; + r0 = (s.arg1 + 1); + s.tmp_2 = r0; + r0 = pxsim_numops.toString(s.tmp_2); + s.tmp_1.arg1 = r0; + r0 = (80 + 10); + s.tmp_1.arg2 = r0; + r0 = (2 + s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_4 << 4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 13); + s.tmp_1.arg3 = r0; + s.tmp_1.arg4 = undefined; + s.tmp_1.arg5 = undefined; + s.tmp_1.arg6 = undefined; + s.callLocIdx = 754; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = (s.arg1 + 1); + s.tmp_1 = r0; + r0 = pxsim_numops.toString(s.tmp_1); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 << 4); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 10); + s.tmp_0.arg2 = r0; + r0 = (2 + s.arg3); + s.tmp_4 = r0; + r0 = (s.tmp_4 << 4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 13); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 755; s.pc = 36; return s.tmp_0; + case 36: + r0 = s.retval; + case 11: + case 12: + case 13: + case 14: + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); r0 = s.arg0.fields["rule"]; - s.tmp_6.arg1 = r0; - s.tmp_6.arg2 = s.arg1; - s.tmp_6.arg3 = s.i___12348; - s.tmp_6.arg4 = 65535; - s.callLocIdx = 802; s.pc = 7; return s.tmp_6; - case 7: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.callLocIdx = 756; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + s.whendo___13707 = (r0); + s.col___13713 = (6); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_startTokens__P13120_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.callLocIdx = 757; s.pc = 38; return s.tmp_0; + case 38: r0 = s.retval; + s.tokens___13714 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.arg0).fields["tokens"] = (s.tokens___13714); + case 15: + case 16: + s.cid___13724 = (0); + case 17: + r0 = (s.whendo___13707 != -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + s.tmp_1 = r0 = s.cid___13724; + r0 = s.arg0.fields["rule"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["r"]; + r0 = r0.fields["whenDo"]; + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.whendo___13707); + r0 = r0.fields["commandsLen"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + case 19: + // jmp value (already in r0) s.tmp_5 = r0; - r0 = (s.tmp_5 == s.arg2); + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 20; continue; } + s.tmp_6 = tileworld_ruleediting_RuleDisplay_showCommand__P13119_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = s.col___13713; + s.tmp_6.arg2 = s.arg1; + s.tmp_6.arg3 = s.whendo___13707; + s.tmp_6.arg4 = s.cid___13724; + s.tmp_6.arg5 = s.tokens___13714; + s.tmp_6.arg6 = s.arg4; + s.callLocIdx = 759; s.pc = 39; return s.tmp_6; + case 39: + r0 = s.retval; + r0 = (s.cid___13724 + 1); + s.cid___13724 = (r0); + s.tmp_0 = r0 = s.col___13713; + r0 = (s.tmp_0 + 1); + s.col___13713 = (r0); + r0 = s.tmp_0; + { step = 17; continue; } + case 20: + r0 = (s.whendo___13707 == -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 21; continue; } + r0 = s.tmp_0; + { step = 24; continue; } + case 21: + r0 = (s.cid___13724 < 4); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 22; continue; } + r0 = s.tmp_1; + { step = 23; continue; } + case 22: + r0 = pxsim_Array__length(s.tokens___13714); + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); + case 23: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + case 24: + // jmp value (already in r0) s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 2; continue; } - r0 = s.i___12348; - { step = 5; continue; } - case 2: - case 3: - r0 = (s.i___12348 + 1); - s.i___12348 = (r0); - { step = 1; continue; } - case 4: - r0 = -1; - case 5: + if (!r0) { step = 25; continue; } + s.tmp_5 = tileworld_ruleediting_RuleDisplay_showCommand__P13119_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_5.arg1 = s.col___13713; + s.tmp_5.arg2 = s.arg1; + s.tmp_5.arg3 = s.whendo___13707; + s.tmp_5.arg4 = s.cid___13724; + s.tmp_5.arg5 = s.tokens___13714; + s.tmp_5.arg6 = s.arg4; + s.callLocIdx = 760; s.pc = 40; return s.tmp_5; + case 40: + r0 = s.retval; + r0 = (s.cid___13724 + 1); + { step = 27; continue; } + case 25: + case 26: + r0 = s.cid___13724; + case 27: return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_attrIndex__P11290.info = {"start":15111,"length":272,"line":342,"column":8,"endLine":348,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"attrIndex","argumentNames":["this","whendo","a","begin"]} +tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118.info = {"start":7910,"length":1972,"line":188,"column":8,"endLine":225,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommandsAt","argumentNames":["this","crow","wcol","wrow","draw"]} -function tileworld_ruleediting_RuleDisplay_attrIndex__P11290_mk(s) { +function tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_attrIndex__P11290, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23893,18 +27061,26 @@ function tileworld_ruleediting_RuleDisplay_attrIndex__P11290_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - i___12348: undefined, + tmp_7: undefined, + kind___13606: undefined, + img___13612: undefined, + whendo___13641: undefined, + whendo___13707: undefined, + col___13713: undefined, + tokens___13714: undefined, + cid___13724: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, + arg4: undefined, } } -function tileworld_Project_allCnt__P6119(s) { +function tileworld_ruleediting_RuleDisplay_showCommand__P13119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23914,43 +27090,116 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.inst___13791 = undefined; + s.arg___13797 = 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, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = s.arg0.fields["_backgroundsI"]; - s.tmp_1 = r0; - r0 = pxsim_Array__length(s.tmp_1); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = (s.arg3 == -1); s.tmp_0 = r0; - r0 = s.arg0.fields["_spritesI"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg6); + if (!r0) { step = 1; continue; } + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + r0 = (s.arg2 + 2); + s.tmp_1.arg2 = r0; + s.tmp_1.arg3 = globals.emptyTile___3721; + s.callLocIdx = 761; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + case 1: + case 2: + { step = 6; continue; } + case 3: + s.tmp_0 = tileworld_RuleView_getCmdInst__P3654_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg3; + s.tmp_0.arg2 = s.arg4; + s.callLocIdx = 762; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.inst___13791 = (r0); + s.tmp_0 = tileworld_RuleView_getCmdArg__P3655_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg3; + s.tmp_0.arg2 = s.arg4; + s.callLocIdx = 763; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.arg___13797 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg6); + if (!r0) { step = 4; continue; } + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + r0 = (s.arg2 + 2); + s.tmp_0.arg2 = r0; + s.tmp_1 = tileworld_ruleediting_RuleDisplay_instToImage__P13117_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.inst___13791; + s.tmp_1.arg2 = s.arg___13797; + s.callLocIdx = 764; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.callLocIdx = 765; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + case 4: + case 5: + s.tmp_0 = tileworld_ruleediting_RuleDisplay_updateTokens__P13121_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg5; + s.tmp_0.arg2 = s.inst___13791; + s.callLocIdx = 766; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + r0 = (s.arg1 + 1); + s.arg1 = (r0); + case 6: + r0 = s.arg1; return leave(s, r0) default: oops() } } } -tileworld_Project_allCnt__P6119.info = {"start":3271,"length":61,"line":98,"column":8,"endLine":98,"endColumn":69,"fileName":"project.ts","functionName":"allCnt","argumentNames":["this"]} +tileworld_ruleediting_RuleDisplay_showCommand__P13119.info = {"start":9892,"length":596,"line":227,"column":8,"endLine":240,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCommand","argumentNames":["this","col","row","whendo","cid","tokens","draw"]} -function tileworld_Project_allCnt__P6119_mk(s) { +function tileworld_ruleediting_RuleDisplay_showCommand__P13119_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_allCnt__P6119, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_showCommand__P13119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, + inst___13791: undefined, + arg___13797: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function tileworld_ruleediting_RuleDisplay_makeContext__P11277(s) { +function tileworld_ruleediting_RuleDisplay_updateTokens__P13121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23960,90 +27209,95 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___11608 = undefined; - s.j___11612 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.i___11608 = (1); - case 1: - r0 = (s.i___11608 <= 3); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = (s.arg2 == 255); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.j___11612 = (1); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: case 2: - r0 = (s.j___11612 <= 3); + r0 = pxsim_Array_.removeElement(s.arg1, s.arg2); + r0 = pxsim_Array_.removeElement(s.arg1, 0); + r0 = pxsim_Array_.removeElement(s.arg1, 3); + r0 = (s.arg2 == 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = tileworld_ruleediting_RuleDisplay_active__P11278_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.i___11608; - s.tmp_2.arg2 = s.j___11612; - s.callLocIdx = 738; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.i___11608; - r0 = (s.j___11612 + 2); - s.tmp_3.arg2 = r0; - s.tmp_3.arg3 = globals.emptyTile___7244; - s.callLocIdx = 739; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleDisplay__C11265_v4_4_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.i___11608; - s.tmp_0.arg2 = s.j___11612; - s.tmp_0.arg3 = true; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.showAttributes; - s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; + r0 = pxsim_Array_.insertAt(s.arg1, 0, 0); case 3: case 4: - r0 = (s.j___11612 + 1); - s.j___11612 = (r0); - { step = 2; continue; } case 5: - r0 = (s.i___11608 + 1); - s.i___11608 = (r0); - { step = 1; continue; } - case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_makeContext__P11277.info = {"start":5399,"length":342,"line":125,"column":8,"endLine":134,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"makeContext","argumentNames":["this"]} +tileworld_ruleediting_RuleDisplay_updateTokens__P13121.info = {"start":11112,"length":474,"line":257,"column":8,"endLine":268,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"updateTokens","argumentNames":["this","tokens","inst"]} -function tileworld_ruleediting_RuleDisplay_makeContext__P11277_mk(s) { +function tileworld_ruleediting_RuleDisplay_updateTokens__P13121_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_makeContext__P11277, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_updateTokens__P13121, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tileworld_RuleView_getCmdsLen__P3653(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, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + r0 = r0.fields["commandsLen"]; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleView_getCmdsLen__P3653.info = {"start":6639,"length":95,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"ruleview.ts","functionName":"getCmdsLen","argumentNames":["this","wdid"]} + +function tileworld_RuleView_getCmdsLen__P3653_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleView_getCmdsLen__P3653, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - i___11608: undefined, - j___11612: undefined, arg0: undefined, + arg1: undefined, } } -function tileworld_ruleediting_RuleDisplay_showAttributes__P11288(s) { +function tileworld_ruleediting_RuleDisplay_startTokens__P13120(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24053,297 +27307,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.whenDo___12147 = undefined; - s.begin___12163 = undefined; - s.end___12164 = undefined; - s.project___12170 = undefined; - s.done___12175 = undefined; - s.x___12245 = undefined; + s.tokens___13821 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); + s.tokens___13821 = (r0); + s.tmp_2 = tileworld_RuleView_findWitnessColRow__P3650_mk(s); r0 = s.arg0.fields["rule"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 781; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.whenDo___12147 = (r0); - r0 = (s.whenDo___12147 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - r0 = (s.arg2 + 2); - s.tmp_1.arg2 = r0; - s.tmp_2 = tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287_mk(s); - s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.arg1; s.tmp_2.arg2 = s.arg2; - s.callLocIdx = 782; s.pc = 15; return s.tmp_2; - case 15: - r0 = s.retval; - s.tmp_1.arg3 = r0; - s.callLocIdx = 783; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - s.begin___12163 = (0); - s.tmp_1 = tileworld_Project_allCnt__P6119_mk(s); - r0 = s.arg0.fields["p"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 784; s.pc = 16; return s.tmp_1; - case 16: + s.tmp_2.arg3 = true; + s.callLocIdx = 767; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 != -1); s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.end___12164 = (r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_projectAttrs__P11289_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.whenDo___12147; - s.tmp_0.arg2 = s.begin___12163; - s.tmp_0.arg3 = s.end___12164; - s.callLocIdx = 785; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.project___12170 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } r0 = pxsim_Array__mk(); - s.done___12175 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P12179); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = s.project___12170; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 786; s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 787; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 != 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_4 = tileworld_RuleView_findWitnessColRow__P4997_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.arg2; - s.tmp_4.arg3 = true; - s.callLocIdx = 788; s.pc = 20; return s.tmp_4; - case 20: - r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 != -1); + r0 = pxsim_Array__push(s.tmp_3, 0); + r0 = pxsim_Array__push(s.tmp_3, 3); + s.tokens___13821 = (s.tmp_3); + case 1: case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 3; continue; } - s.tmp_6 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.arg1; - r0 = (s.arg2 + 2); - s.tmp_6.arg2 = r0; - s.tmp_7 = r0 = globals.movedImages___11227; - s.tmp_9 = tileworld_RuleView_getWitnessDirection__P4998_mk(s); - r0 = s.arg0.fields["rule"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.whenDo___12147; - s.callLocIdx = 789; s.pc = 22; return s.tmp_9; - case 22: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); - s.tmp_6.arg3 = r0; - s.callLocIdx = 790; s.pc = 21; return s.tmp_6; - case 21: - r0 = s.retval; - case 3: - case 4: - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 791; s.pc = 23; return s.tmp_2; - case 23: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == s.arg1); - 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: - s.tmp_6 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = true; - s.callLocIdx = 792; s.pc = 24; return s.tmp_6; - case 24: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 - 2); - s.tmp_4 = r0; - r0 = (s.tmp_4 == s.arg2); - case 8: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtrt.mklocRef(); - s.x___12245 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.x___12245, 0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 22; - s.tmp_0.arg3 = 160; - s.tmp_0.arg4 = 16; - s.tmp_0.arg5 = 0; - s.callLocIdx = 793; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(3, inline__P12255); + r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.whenDo___12147); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.x___12245); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - r0 = s.arg0.fields["all"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["allImages"]; - s.tmp_1.arg0 = r0; + r0 = pxsim_Array__push(s.tmp_0, 1); + r0 = pxsim_Array__push(s.tmp_0, 2); + r0 = pxsim_Array__push(s.tmp_0, 6); + r0 = pxsim_Array__push(s.tmp_0, 5); + r0 = pxsim_Array__push(s.tmp_0, 4); + s.tmp_1 = helpers_arrayConcat__P108_mk(s); + s.tmp_1.arg0 = s.tokens___13821; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 798; s.pc = 26; return s.tmp_1; - case 26: + s.callLocIdx = 768; s.pc = 4; return s.tmp_1; + case 4: r0 = s.retval; - case 9: - case 10: - case 11: - case 12: - r0 = undefined; + s.tokens___13821 = (r0); + r0 = s.tokens___13821; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_showAttributes__P11288.info = {"start":12776,"length":1668,"line":292,"column":8,"endLine":323,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showAttributes","argumentNames":["this","col","row","show"]} +tileworld_ruleediting_RuleDisplay_startTokens__P13120.info = {"start":10630,"length":472,"line":244,"column":8,"endLine":255,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"startTokens","argumentNames":["this","col","row"]} -function tileworld_ruleediting_RuleDisplay_showAttributes__P11288_mk(s) { +function tileworld_ruleediting_RuleDisplay_startTokens__P13120_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_showAttributes__P11288, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_startTokens__P13120, depth: s.depth + 1, pc: 0, retval: undefined, 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, - whenDo___12147: undefined, - begin___12163: undefined, - end___12164: undefined, - project___12170: undefined, - done___12175: undefined, - x___12245: undefined, + tokens___13821: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, -} } - - - - - -function inline__P12179(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.i___12181 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array_.indexOf(globals.attrValues___11248, s.arg0, undefined); - s.i___12181 = (r0); - s.tmp_0 = r0 = globals.screen___578; - r0 = pxsim_Array__getAt(globals.attrImages___11251, s.i___12181); - s.tmp_1 = r0; - r0 = (s.caps[0] << 4); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 8); - s.tmp_2 = r0; - r0 = (s.caps[1] + 2); - s.tmp_7 = r0; - r0 = (s.tmp_7 << 4); - s.tmp_6 = r0; - r0 = (s.tmp_6 + 8); - s.tmp_5 = r0; - r0 = (s.tmp_5 + 6); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_4); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P12179.info = {"start":13280,"length":192,"line":301,"column":32,"endLine":304,"endColumn":17,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["a"]} - -function inline__P12179_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P12179, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - i___12181: undefined, - arg0: undefined, } } -function inline__P12255(s) { +function helpers_arrayConcat__P108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24353,73 +27388,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.a___12258 = undefined; + s.out___25463 = undefined; + s.value___25466 = undefined; + s.unnamed40___U2 = undefined; + s.unnamed41___U3 = undefined; + s.value___25473 = undefined; + s.unnamed42___U5 = undefined; + s.unnamed43___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_AllExport_getSetAttr__P6029_mk(s); - r0 = s.caps[0].fields["all"]; - s.tmp_0.arg0 = r0; - r0 = s.caps[0].fields["rule"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.caps[1]; - s.tmp_0.arg3 = s.arg1; - s.tmp_0.arg4 = 65535; - s.callLocIdx = 795; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.a___12258 = (r0); - r0 = (s.a___12258 != 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_1.arg0 = s.caps[0]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = 1; - s.tmp_1.arg3 = s.arg0; - s.callLocIdx = 796; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.caps[0]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 1; - s.tmp_1 = r0 = globals.attrImages___11251; - r0 = pxsim_Array_.indexOf(globals.attrValues___11248, s.a___12258, undefined); - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - s.tmp_0.arg3 = r0; - s.callLocIdx = 797; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = r0 = s.caps[2]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_Array__mk(); + s.out___25463 = (r0); + s.value___25466 = (undefined); + s.unnamed40___U2 = (s.arg0); + s.unnamed41___U3 = (0); case 1: + s.tmp_0 = r0 = s.unnamed41___U3; + r0 = pxsim_Array__length(s.unnamed40___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed40___U2, s.unnamed41___U3); + s.value___25466 = (r0); + r0 = pxsim_Array__push(s.out___25463, s.value___25466); + r0 = (s.unnamed41___U3 + 1); + s.unnamed41___U3 = (r0); + { step = 1; continue; } case 2: - r0 = undefined; + s.unnamed40___U2 = (undefined); + s.value___25473 = (undefined); + s.unnamed42___U5 = (s.arg1); + s.unnamed43___U6 = (0); + case 3: + s.tmp_0 = r0 = s.unnamed43___U6; + r0 = pxsim_Array__length(s.unnamed42___U5); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed42___U5, s.unnamed43___U6); + s.value___25473 = (r0); + r0 = pxsim_Array__push(s.out___25463, s.value___25473); + r0 = (s.unnamed43___U6 + 1); + s.unnamed43___U6 = (r0); + { step = 3; continue; } + case 4: + s.unnamed42___U5 = (undefined); + r0 = s.out___25463; return leave(s, r0) default: oops() } } } -inline__P12255.info = {"start":14039,"length":361,"line":313,"column":49,"endLine":320,"endColumn":21,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["image","i"]} +helpers_arrayConcat__P108.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 inline__P12255_mk(s) { +function helpers_arrayConcat__P108_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P12255, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P108, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - a___12258: undefined, + out___25463: undefined, + value___25466: undefined, + unnamed40___U2: undefined, + unnamed41___U3: undefined, + value___25473: undefined, + unnamed42___U5: undefined, + unnamed43___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -24428,7 +27464,7 @@ function inline__P12255_mk(s) { -function tileworld_ruleediting_RuleDisplay_projectAttrs__P11289(s) { +function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24438,120 +27474,208 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___12291 = undefined; - s.i___12293 = undefined; - s.a___12299 = undefined; + s.whenDo___13873 = undefined; + s.include___13884 = undefined; + s.include2___13888 = undefined; + s.exclude___13901 = undefined; + s.exclude2___13905 = undefined; + s.index___13918 = 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_1 = tileworld_RuleView_whendoTrue__P5007_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); r0 = s.arg0.fields["rule"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 799; s.pc = 16; return s.tmp_1; - case 16: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.callLocIdx = 769; s.pc = 22; return s.tmp_0; + case 22: r0 = s.retval; + s.whenDo___13873 = (r0); + r0 = (s.whenDo___13873 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - { step = 15; continue; } + r0 = globals.ok___3730; + { step = 21; continue; } case 1: case 2: - r0 = pxsim_Array__mk(); - s.res___12291 = (r0); - s.i___12293 = (s.arg2); - case 3: - r0 = (s.i___12293 <= s.arg3); + s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.whenDo___13873; + s.tmp_1.arg2 = 1; + s.tmp_1.arg3 = 0; + s.callLocIdx = 770; s.pc = 23; return s.tmp_1; + case 23: + r0 = s.retval; + s.include___13884 = (r0); + r0 = (s.include___13884 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_1 = tileworld_AllExport_getSetAttr__P6029_mk(s); - r0 = s.arg0.fields["all"]; - s.tmp_1.arg0 = r0; - r0 = s.arg0.fields["rule"]; - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.i___12293; - s.tmp_1.arg4 = 65535; - s.callLocIdx = 800; s.pc = 17; return s.tmp_1; - case 17: + if (!r0) { step = 3; continue; } + r0 = -1; + { step = 4; continue; } + case 3: + s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.whenDo___13873; + s.tmp_1.arg2 = 1; + r0 = (s.include___13884 + 1); + s.tmp_1.arg3 = r0; + s.callLocIdx = 771; s.pc = 24; return s.tmp_1; + case 24: r0 = s.retval; - s.a___12299 = (r0); - r0 = (s.a___12299 != 0); - 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_Array_.indexOf(s.res___12291, s.a___12299, undefined); - s.tmp_1 = r0; - r0 = (s.tmp_1 == -1); - case 5: // jmp value (already in r0) s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__push(s.res___12291, s.a___12299); + s.include2___13888 = (s.tmp_2); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.whenDo___13873; + s.tmp_0.arg2 = 3; + s.tmp_0.arg3 = 0; + s.callLocIdx = 772; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.exclude___13901 = (r0); + r0 = (s.exclude___13901 == -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 6; continue; } + case 5: + s.tmp_1 = tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.whenDo___13873; + s.tmp_1.arg2 = 3; + r0 = (s.exclude___13901 + 1); + s.tmp_1.arg3 = r0; + s.callLocIdx = 773; s.pc = 26; return s.tmp_1; + case 26: + r0 = s.retval; case 6: + // jmp value (already in r0) + s.tmp_2 = r0; + s.exclude2___13905 = (s.tmp_2); + r0 = (s.include___13884 == -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.exclude___13901; + { step = 8; continue; } case 7: - r0 = (s.i___12293 + 1); - s.i___12293 = (r0); - { step = 3; continue; } + r0 = s.include___13884; case 8: - r0 = pxsim_Array__length(s.res___12291); + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); + s.index___13918 = (s.tmp_1); + r0 = (s.include___13884 != -1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = pxsim_Array__length(s.res___12291); - s.tmp_3 = r0; - r0 = (s.tmp_3 == 1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); + r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 9; continue; } - r0 = s.tmp_2; + r0 = s.tmp_0; { step = 10; continue; } case 9: - r0 = pxsim_Array_.indexOf(s.res___12291, 3, undefined); - s.tmp_4 = r0; - r0 = (s.tmp_4 != -1); + r0 = (s.include2___13888 != -1); case 10: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 11; continue; } - r0 = pxsim_Array__mk(); + s.tmp_2 = tileworld_splitImage__P3540_mk(s); + r0 = s.arg0.fields["all"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["allImages"]; + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_4, s.include___13884); + s.tmp_2.arg0 = r0; + r0 = s.arg0.fields["all"]; + s.tmp_5 = r0; + r0 = s.tmp_5.fields["allImages"]; s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, 3); - r0 = s.tmp_6; - { step = 15; continue; } - { step = 12; continue; } + r0 = pxsim_Array__getAt(s.tmp_6, s.include2___13888); + s.tmp_2.arg1 = r0; + s.callLocIdx = 776; s.pc = 27; return s.tmp_2; + case 27: + r0 = s.retval; + { step = 21; continue; } + { step = 20; continue; } case 11: - r0 = pxsim_Array__mk(); - { step = 15; continue; } + r0 = (s.include___13884 == -1); + s.tmp_7 = r0; + r0 = pxsim_numops_toBool(s.tmp_7); + if (r0) { step = 12; continue; } + r0 = s.tmp_7; + { step = 13; continue; } case 12: + r0 = (s.exclude___13901 != -1); case 13: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBool(s.tmp_8); + if (r0) { step = 14; continue; } + r0 = s.tmp_8; + { step = 15; continue; } case 14: - r0 = s.res___12291; + r0 = (s.exclude2___13905 != -1); case 15: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_9); + if (!r0) { step = 16; continue; } + s.tmp_10 = tileworld_splitImage__P3540_mk(s); + r0 = s.arg0.fields["all"]; + s.tmp_11 = r0; + r0 = s.tmp_11.fields["allImages"]; + s.tmp_12 = r0; + r0 = pxsim_Array__getAt(s.tmp_12, s.exclude___13901); + s.tmp_10.arg0 = r0; + r0 = s.arg0.fields["all"]; + s.tmp_13 = r0; + r0 = s.tmp_13.fields["allImages"]; + s.tmp_14 = r0; + r0 = pxsim_Array__getAt(s.tmp_14, s.exclude2___13905); + s.tmp_10.arg1 = r0; + s.callLocIdx = 779; s.pc = 28; return s.tmp_10; + case 28: + r0 = s.retval; + { step = 21; continue; } + { step = 19; continue; } + case 16: + r0 = (s.index___13918 != -1); + s.tmp_15 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_15); + if (!r0) { step = 17; continue; } + r0 = s.arg0.fields["all"]; + s.tmp_16 = r0; + r0 = s.tmp_16.fields["allImages"]; + s.tmp_17 = r0; + r0 = pxsim_Array__getAt(s.tmp_17, s.index___13918); + { step = 21; continue; } + { step = 18; continue; } + case 17: + r0 = globals.ok___3730; + { step = 21; continue; } + case 18: + case 19: + case 20: + r0 = undefined; + case 21: return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_projectAttrs__P11289.info = {"start":14454,"length":647,"line":325,"column":8,"endLine":340,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"projectAttrs","argumentNames":["this","whendo","begin","end"]} +tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122.info = {"start":11596,"length":1170,"line":270,"column":8,"endLine":290,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getWhenDoImage","argumentNames":["this","col","row"]} -function tileworld_ruleediting_RuleDisplay_projectAttrs__P11289_mk(s) { +function tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_projectAttrs__P11289, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24560,20 +27684,33 @@ function tileworld_ruleediting_RuleDisplay_projectAttrs__P11289_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - res___12291: undefined, - i___12293: undefined, - a___12299: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + whenDo___13873: undefined, + include___13884: undefined, + include2___13888: undefined, + exclude___13901: undefined, + exclude2___13905: undefined, + index___13918: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function tileworld_RuleView_whendoTrue__P5007(s) { +function tileworld_AllExport_getImage__P3674(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24583,36 +27720,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___5748 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; + if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0); + r0 = s.arg0.fields["allImages"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.wd___5748 = (r0); - s.tmp_0 = tileworld_isWhenDoTrue__P4527_mk(s); - s.tmp_0.arg0 = s.wd___5748; - s.callLocIdx = 149; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; return leave(s, r0) default: oops() } } } -tileworld_RuleView_whendoTrue__P5007.info = {"start":9153,"length":126,"line":262,"column":8,"endLine":265,"endColumn":9,"fileName":"ruleview.ts","functionName":"whendoTrue","argumentNames":["this","whendo"]} +tileworld_AllExport_getImage__P3674.info = {"start":1008,"length":84,"line":28,"column":8,"endLine":30,"endColumn":9,"fileName":"project.ts","functionName":"getImage","argumentNames":["this","index"]} -function tileworld_RuleView_whendoTrue__P5007_mk(s) { +function tileworld_AllExport_getImage__P3674_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_whendoTrue__P5007, depth: s.depth + 1, + parent: s, fn: tileworld_AllExport_getImage__P3674, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - wd___5748: undefined, arg0: undefined, arg1: undefined, } } @@ -24621,7 +27749,7 @@ function tileworld_RuleView_whendoTrue__P5007_mk(s) { -function tileworld_isWhenDoTrue__P4527(s) { +function tileworld_splitImage__P3540(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24631,73 +27759,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___4529 = undefined; - s.i___4543 = undefined; + s.ret___6089 = undefined; + s.x___6093 = undefined; + s.y___6104 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.i___4529 = (0); + r0 = pxsim_ImageMethods.clone(s.arg0); + s.ret___6089 = (r0); + r0 = pxsim_ImageMethods.width(s.ret___6089); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + s.x___6093 = (r0); case 1: - s.tmp_1 = r0 = s.i___4529; - r0 = s.arg0.fields["bgPred"]; - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.length(s.tmp_3); + s.tmp_1 = r0 = s.x___6093; + r0 = pxsim_ImageMethods.width(s.ret___6089); 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 = s.arg0.fields["bgPred"]; - s.tmp_5 = r0; - r0 = pxsim.BufferMethods.getUint8(s.tmp_5, s.i___4529); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 2; continue; } - r0 = false; - { step = 9; continue; } + s.y___6104 = (0); case 2: - case 3: - r0 = (s.i___4529 + 1); - s.i___4529 = (r0); - { step = 1; continue; } - case 4: - s.i___4543 = (0); - case 5: - s.tmp_1 = r0 = s.i___4543; - r0 = s.arg0.fields["spPred"]; - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.length(s.tmp_3); + s.tmp_1 = r0 = s.y___6104; + r0 = pxsim_ImageMethods.height(s.ret___6089); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = s.arg0.fields["spPred"]; - s.tmp_5 = r0; - r0 = pxsim.BufferMethods.getUint8(s.tmp_5, s.i___4543); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 6; continue; } - r0 = false; - { step = 9; continue; } - case 6: - case 7: - r0 = (s.i___4543 + 1); - s.i___4543 = (r0); - { step = 5; continue; } - case 8: - r0 = true; - case 9: + if (!r0) { step = 3; continue; } + s.tmp_3 = r0 = s.ret___6089; + s.tmp_4 = r0 = s.x___6093; + s.tmp_5 = r0 = s.y___6104; + r0 = pxsim_ImageMethods.getPixel(s.arg1, s.x___6093, s.y___6104); + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_3, s.tmp_4, s.tmp_5, s.tmp_6); + r0 = (s.y___6104 + 1); + s.y___6104 = (r0); + { step = 2; continue; } + case 3: + r0 = (s.x___6093 + 1); + s.x___6093 = (r0); + { step = 1; continue; } + case 4: + r0 = s.ret___6089; return leave(s, r0) default: oops() } } } -tileworld_isWhenDoTrue__P4527.info = {"start":7342,"length":299,"line":194,"column":4,"endLine":202,"endColumn":5,"fileName":"rule.ts","functionName":"isWhenDoTrue","argumentNames":["wd"]} +tileworld_splitImage__P3540.info = {"start":1328,"length":329,"line":40,"column":4,"endLine":48,"endColumn":5,"fileName":"utilities.ts","functionName":"splitImage","argumentNames":["imgLeft","imgRight"]} -function tileworld_isWhenDoTrue__P4527_mk(s) { +function tileworld_splitImage__P3540_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_isWhenDoTrue__P4527, depth: s.depth + 1, + parent: s, fn: tileworld_splitImage__P3540, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24705,16 +27821,19 @@ function tileworld_isWhenDoTrue__P4527_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - i___4529: undefined, - i___4543: undefined, + tmp_6: undefined, + ret___6089: undefined, + x___6093: undefined, + y___6104: undefined, arg0: undefined, + arg1: undefined, } } -function tileworld_RuleView_getDirFromRule__P4987(s) { +function tileworld_ruleediting_RuleDisplay_attrIndex__P13125(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24724,98 +27843,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rt___5143 = undefined; - s.wd___5154 = undefined; + s.i___14180 = 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, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["ruleType"]; - s.rt___5143 = (r0); - r0 = (s.rt___5143 == 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.i___14180 = (s.arg3); case 1: - r0 = (s.rt___5143 == 1); - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 5; continue; } - s.tmp_2 = tileworld_RuleView_getWhenDo__P4608_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = 2; - s.tmp_2.arg2 = 2; - s.callLocIdx = 116; s.pc = 10; return s.tmp_2; - case 10: + s.tmp_1 = r0 = s.i___14180; + s.tmp_3 = tileworld_Project_allCnt__P3693_mk(s); + r0 = s.arg0.fields["p"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 801; s.pc = 6; return s.tmp_3; + case 6: r0 = s.retval; - s.wd___5154 = (r0); - r0 = (s.wd___5154 == -1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = 6; - { step = 4; continue; } - case 3: - s.tmp_1 = tileworld_RuleView_getWitnessDirection__P4998_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.wd___5154; - s.callLocIdx = 117; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; - { step = 9; continue; } - { step = 8; continue; } - case 5: - r0 = (s.rt___5143 == 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 6; continue; } - s.tmp_4 = tileworld_RuleView_getRuleArg__P4985_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 118; s.pc = 12; return s.tmp_4; - case 12: - r0 = s.retval; - { step = 9; continue; } - case 6: + if (!r0) { step = 4; continue; } + s.tmp_6 = tileworld_AllExport_getSetAttr__P3676_mk(s); + r0 = s.arg0.fields["all"]; + s.tmp_6.arg0 = r0; + r0 = s.arg0.fields["rule"]; + s.tmp_6.arg1 = r0; + s.tmp_6.arg2 = s.arg1; + s.tmp_6.arg3 = s.i___14180; + s.tmp_6.arg4 = 65535; + s.callLocIdx = 802; s.pc = 7; return s.tmp_6; case 7: - case 8: - r0 = 6; - case 9: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 == s.arg2); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 2; continue; } + r0 = s.i___14180; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___14180 + 1); + s.i___14180 = (r0); + { step = 1; continue; } + case 4: + r0 = -1; + case 5: return leave(s, r0) default: oops() } } } -tileworld_RuleView_getDirFromRule__P4987.info = {"start":2246,"length":408,"line":74,"column":8,"endLine":83,"endColumn":9,"fileName":"ruleview.ts","functionName":"getDirFromRule","argumentNames":["this"]} +tileworld_ruleediting_RuleDisplay_attrIndex__P13125.info = {"start":15111,"length":272,"line":342,"column":8,"endLine":348,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"attrIndex","argumentNames":["this","whendo","a","begin"]} -function tileworld_RuleView_getDirFromRule__P4987_mk(s) { +function tileworld_ruleediting_RuleDisplay_attrIndex__P13125_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getDirFromRule__P4987, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_attrIndex__P13125, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - rt___5143: undefined, - wd___5154: undefined, + tmp_5: undefined, + tmp_6: undefined, + i___14180: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tileworld_RuleView_getRuleArg__P4985(s) { +function tileworld_Project_allCnt__P3693(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24830,62 +27936,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["rid"]; + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = s.arg0.fields["_backgroundsI"]; s.tmp_1 = r0; - r0 = (s.tmp_1 != -1); + r0 = pxsim_Array__length(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["r"]; - r0 = r0.fields["ruleArg"]; - { step = 4; continue; } - case 1: - r0 = s.arg0.fields["r"]; - r0 = r0.fields["ruleType"]; + r0 = s.arg0.fields["_spritesI"]; s.tmp_3 = r0; - r0 = (s.tmp_3 == 0); + r0 = pxsim_Array__length(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - s.tmp_4 = tileworld_flipRotateDir__P4366_mk(s); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["ruleArg"]; - s.tmp_4.arg0 = r0; - r0 = s.arg0.fields["view"]; - s.tmp_4.arg1 = r0; - s.callLocIdx = 114; s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - { step = 3; continue; } - case 2: - r0 = s.arg0.fields["r"]; - r0 = r0.fields["ruleArg"]; - case 3: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; - case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = s.tmp_6; + r0 = (s.tmp_0 + s.tmp_2); return leave(s, r0) default: oops() } } } -tileworld_RuleView_getRuleArg__P4985.info = {"start":1949,"length":202,"line":65,"column":8,"endLine":68,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleArg","argumentNames":["this"]} +tileworld_Project_allCnt__P3693.info = {"start":3271,"length":61,"line":98,"column":8,"endLine":98,"endColumn":69,"fileName":"project.ts","functionName":"allCnt","argumentNames":["this"]} -function tileworld_RuleView_getRuleArg__P4985_mk(s) { +function tileworld_Project_allCnt__P3693_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getRuleArg__P4985, depth: s.depth + 1, + parent: s, fn: tileworld_Project_allCnt__P3693, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -24893,7 +27967,7 @@ function tileworld_RuleView_getRuleArg__P4985_mk(s) { -function tileworld_ruleediting_RuleDisplay_showRuleType__P11275(s) { +function tileworld_ruleediting_RuleDisplay_makeContext__P13112(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24903,168 +27977,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.selCol___11468 = undefined; - s.ax___11485 = undefined; - s.ay___11494 = undefined; + s.i___13442 = undefined; + s.j___13446 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.selCol___11468 = (11); - r0 = pxsim_numops_toBoolDecr(s.arg5); - if (!r0) { step = 1; continue; } - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.tmp_0.arg2 = s.arg4; - s.tmp_1 = tileworld_ruleediting_RuleDisplay__C11265_v3_1_mk(s); - s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.centerImage; - s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - s.tmp_0.arg3 = r0; - s.callLocIdx = 716; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.i___13442 = (1); case 1: - case 2: - r0 = (s.arg1 == 1); + r0 = (s.i___13442 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg3; - s.tmp_1.arg2 = s.arg4; - r0 = pxsim_Array__getAt(globals.movedImages___11227, s.arg2); - s.tmp_1.arg3 = r0; - s.callLocIdx = 717; s.pc = 19; return s.tmp_1; - case 19: - r0 = s.retval; - { step = 16; continue; } - case 3: - r0 = (s.arg1 == 2); + if (!r0) { step = 6; continue; } + s.j___13446 = (1); + case 2: + r0 = (s.j___13446 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = (s.arg2 == 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = 1; - { step = 7; continue; } - case 4: - r0 = (s.arg2 == 2); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 5; continue; } - r0 = -1; - { step = 6; continue; } - case 5: - r0 = 0; - case 6: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = s.tmp_3; + s.tmp_2 = tileworld_ruleediting_RuleDisplay_active__P13113_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.i___13442; + s.tmp_2.arg2 = s.j___13446; + s.callLocIdx = 738; s.pc = 7; return s.tmp_2; case 7: - // jmp value (already in r0) - s.tmp_4 = r0; - s.ax___11485 = (s.tmp_4); - r0 = (s.arg2 == 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = -1; - { step = 11; continue; } - case 8: - r0 = (s.arg2 == 1); + r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = 1; - { step = 10; continue; } - case 9: - r0 = 0; - case 10: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; - case 11: - // jmp value (already in r0) - s.tmp_3 = r0; - s.ay___11494 = (s.tmp_3); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_showCollision__P11274_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg3 - s.ax___11485); - s.tmp_0.arg1 = r0; - r0 = (s.arg4 - s.ay___11494); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg2; - r0 = pxsim_Array__getAt(globals.moveImages___11219, s.arg2); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg1; - s.callLocIdx = 718; s.pc = 20; return s.tmp_0; - case 20: + if (!r0) { step = 3; continue; } + s.tmp_3 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.i___13442; + r0 = (s.j___13446 + 2); + s.tmp_3.arg2 = r0; + s.tmp_3.arg3 = globals.emptyTile___3721; + s.callLocIdx = 739; s.pc = 8; return s.tmp_3; + case 8: r0 = s.retval; - { step = 15; continue; } - case 12: - r0 = (s.arg1 == 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg3; - s.tmp_1.arg2 = s.arg4; - s.tmp_1.arg3 = globals.negate___7376; - s.callLocIdx = 719; s.pc = 21; return s.tmp_1; - case 21: + s.tmp_0 = tileworld_ruleediting_RuleDisplay__C3797_v4_4_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.i___13442; + s.tmp_0.arg2 = s.j___13446; + s.tmp_0.arg3 = true; + if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.showAttributes; + s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - case 13: - case 14: - case 15: - case 16: + case 3: + case 4: + r0 = (s.j___13446 + 1); + s.j___13446 = (r0); + { step = 2; continue; } + case 5: + r0 = (s.i___13442 + 1); + s.i___13442 = (r0); + { step = 1; continue; } + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_showRuleType__P11275.info = {"start":3598,"length":730,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showRuleType","argumentNames":["this","rt","rd","x","y","center"]} +tileworld_ruleediting_RuleDisplay_makeContext__P13112.info = {"start":5399,"length":342,"line":125,"column":8,"endLine":134,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"makeContext","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_showRuleType__P11275_mk(s) { +function tileworld_ruleediting_RuleDisplay_makeContext__P13112_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_showRuleType__P11275, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_makeContext__P13112, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - selCol___11468: undefined, - ax___11485: undefined, - ay___11494: undefined, + i___13442: undefined, + j___13446: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function tileworld_ruleediting_RuleDisplay_showCollision__P11274(s) { +function tileworld_ruleediting_RuleDisplay_showAttributes__P13123(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25074,124 +28070,237 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___11430 = undefined; - s.y___11439 = undefined; + s.whenDo___13979 = undefined; + s.begin___13995 = undefined; + s.end___13996 = undefined; + s.project___14002 = undefined; + s.done___14007 = undefined; + s.x___14077 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = (s.arg0).fields["collideCol"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg2 - 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["collideRow"] = (s.tmp_1); - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = globals.collisionSprite___7256; - s.callLocIdx = 714; s.pc = 9; return s.tmp_0; - case 9: + s.callLocIdx = 781; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; - r0 = (s.arg3 == 0); + s.whenDo___13979 = (r0); + r0 = (s.whenDo___13979 >= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 7; - { step = 4; continue; } - case 1: - r0 = (s.arg3 == 2); + if (!r0) { step = 11; continue; } + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + r0 = (s.arg2 + 2); + s.tmp_1.arg2 = r0; + s.tmp_2 = tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + s.tmp_2.arg2 = s.arg2; + s.callLocIdx = 782; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.tmp_1.arg3 = r0; + s.callLocIdx = 783; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + s.begin___13995 = (0); + s.tmp_1 = tileworld_Project_allCnt__P3693_mk(s); + r0 = s.arg0.fields["p"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 784; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.end___13996 = (r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_projectAttrs__P13124_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.whenDo___13979; + s.tmp_0.arg2 = s.begin___13995; + s.tmp_0.arg3 = s.end___13996; + s.callLocIdx = 785; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; + s.project___14002 = (r0); + r0 = pxsim_Array__mk(); + s.done___14007 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P14011); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = s.project___14002; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 786; s.pc = 18; return s.tmp_1; + case 18: + r0 = s.retval; + s.tmp_2 = tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 787; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = -7; - { step = 3; continue; } + r0 = (s.tmp_1 != 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_4 = tileworld_RuleView_findWitnessColRow__P3650_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg1; + s.tmp_4.arg2 = s.arg2; + s.tmp_4.arg3 = true; + s.callLocIdx = 788; s.pc = 20; return s.tmp_4; + case 20: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 != -1); case 2: - r0 = 0; - case 3: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + s.tmp_6 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = s.arg1; + r0 = (s.arg2 + 2); + s.tmp_6.arg2 = r0; + s.tmp_7 = r0 = globals.movedImages___3789; + s.tmp_9 = tileworld_RuleView_getWitnessDirection__P3651_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.whenDo___13979; + s.callLocIdx = 789; s.pc = 22; return s.tmp_9; + case 22: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); + s.tmp_6.arg3 = r0; + s.callLocIdx = 790; s.pc = 21; return s.tmp_6; + case 21: + r0 = s.retval; + case 3: case 4: - // jmp value (already in r0) - s.tmp_3 = r0; - s.x___11430 = (s.tmp_3); - r0 = (s.arg3 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = 7; - { step = 8; continue; } + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } case 5: - r0 = (s.arg3 == 3); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 791; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = -7; - { step = 7; continue; } + r0 = (s.tmp_1 == s.arg1); case 6: - r0 = 0; - case 7: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; + 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: + s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = true; + s.callLocIdx = 792; s.pc = 24; return s.tmp_6; + case 24: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 - 2); + s.tmp_4 = r0; + r0 = (s.tmp_4 == s.arg2); case 8: // jmp value (already in r0) - s.tmp_3 = r0; - s.y___11439 = (s.tmp_3); - s.tmp_0 = tileworld_RuleVisualsBase_drawImageAbs__P10851_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (s.arg1 << 4); - s.tmp_1 = r0; - r0 = (s.tmp_1 + s.x___11430); - s.tmp_0.arg1 = r0; - r0 = (s.arg2 << 4); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 6); + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtrt.mklocRef(); + s.x___14077 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.x___14077, 0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 22; + s.tmp_0.arg3 = 160; + s.tmp_0.arg4 = 16; + s.tmp_0.arg5 = 0; + s.callLocIdx = 793; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(3, inline__P14087); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.whenDo___13979); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.x___14077); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + r0 = s.arg0.fields["all"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.y___11439); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg4; - s.callLocIdx = 715; s.pc = 10; return s.tmp_0; - case 10: + r0 = s.tmp_2.fields["allImages"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 798; s.pc = 26; return s.tmp_1; + case 26: r0 = s.retval; + case 9: + case 10: + case 11: + case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_showCollision__P11274.info = {"start":3076,"length":512,"line":78,"column":8,"endLine":85,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCollision","argumentNames":["this","col","row","dir","arrowImg","rt"]} +tileworld_ruleediting_RuleDisplay_showAttributes__P13123.info = {"start":12776,"length":1668,"line":292,"column":8,"endLine":323,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showAttributes","argumentNames":["this","col","row","show"]} -function tileworld_ruleediting_RuleDisplay_showCollision__P11274_mk(s) { +function tileworld_ruleediting_RuleDisplay_showAttributes__P13123_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_showCollision__P11274, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_showAttributes__P13123, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - x___11430: undefined, - y___11439: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + whenDo___13979: undefined, + begin___13995: undefined, + end___13996: undefined, + project___14002: undefined, + done___14007: undefined, + x___14077: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function tileworld_RuleVisualsBase_drawImageAbs__P10851(s) { +function inline__P14011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25201,64 +28310,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___14013 = 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, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___578, s.arg3, s.arg1, s.arg2); + r0 = pxsim_Array_.indexOf(globals.attrValues___3792, s.arg0, undefined); + s.i___14013 = (r0); + s.tmp_0 = r0 = globals.screen___1799; + r0 = pxsim_Array__getAt(globals.attrImages___3793, s.i___14013); + s.tmp_1 = r0; + r0 = (s.caps[0] << 4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 8); + s.tmp_2 = r0; + r0 = (s.caps[1] + 2); + s.tmp_7 = r0; + r0 = (s.tmp_7 << 4); + s.tmp_6 = r0; + r0 = (s.tmp_6 + 8); + s.tmp_5 = r0; + r0 = (s.tmp_5 + 6); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_2, s.tmp_4); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_drawImageAbs__P10851.info = {"start":4505,"length":120,"line":116,"column":8,"endLine":118,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawImageAbs","argumentNames":["this","x","y","img"]} - -function tileworld_RuleVisualsBase_drawImageAbs__P10851_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_RuleVisualsBase_drawImageAbs__P10851, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function tileworld_ruleediting_RuleDisplay_centerImage__P11270(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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = globals.ok___7271; - return leave(s, r0) - default: oops() -} } } -tileworld_ruleediting_RuleDisplay_centerImage__P11270.info = {"start":1937,"length":58,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"centerImage","argumentNames":["this"]} +inline__P14011.info = {"start":13280,"length":192,"line":301,"column":32,"endLine":304,"endColumn":17,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["a"]} -function tileworld_ruleediting_RuleDisplay_centerImage__P11270_mk(s) { +function inline__P14011_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_centerImage__P11270, depth: s.depth + 1, + parent: s, fn: inline__P14011, depth: s.depth + 1, pc: 0, retval: undefined, 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, + i___14013: undefined, arg0: undefined, } } @@ -25266,7 +28360,7 @@ function tileworld_ruleediting_RuleDisplay_centerImage__P11270_mk(s) { -function tileworld_ruleediting_RuleEditor_saveAndPop__P12679(s) { +function inline__P14087(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25276,44 +28370,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.a___14090 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_Project_saveRule__P6120_mk(s); - r0 = s.arg0.fields["p"]; + s.tmp_0 = tileworld_AllExport_getSetAttr__P3676_mk(s); + r0 = s.caps[0].fields["all"]; s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["rule"]; + r0 = s.caps[0].fields["rule"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 1023; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0.arg2 = s.caps[1]; + s.tmp_0.arg3 = s.arg1; + s.tmp_0.arg4 = 65535; + s.callLocIdx = 795; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); - s.callLocIdx = 1024; s.pc = 2; return s.tmp_0; - case 2: + s.a___14090 = (r0); + r0 = (s.a___14090 != 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_1.arg0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = 1; + s.tmp_1.arg3 = s.arg0; + s.callLocIdx = 796; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 1; + s.tmp_1 = r0 = globals.attrImages___3793; + r0 = pxsim_Array_.indexOf(globals.attrValues___3792, s.a___14090, undefined); + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + s.tmp_0.arg3 = r0; + s.callLocIdx = 797; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; + s.tmp_0 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_saveAndPop__P12679.info = {"start":8514,"length":101,"line":179,"column":8,"endLine":182,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"saveAndPop","argumentNames":["this"]} +inline__P14087.info = {"start":14039,"length":361,"line":313,"column":49,"endLine":320,"endColumn":21,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["image","i"]} -function tileworld_ruleediting_RuleEditor_saveAndPop__P12679_mk(s) { +function inline__P14087_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_saveAndPop__P12679, depth: s.depth + 1, + parent: s, fn: inline__P14087, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + a___14090: undefined, arg0: undefined, + arg1: undefined, } } -function tileworld_RuleView_getWitnessDirection__P4998(s) { +function tileworld_ruleediting_RuleDisplay_projectAttrs__P13124(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25323,74 +28455,142 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dir___5490 = undefined; + s.res___14123 = undefined; + s.i___14125 = undefined; + s.a___14131 = 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, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - r0 = r0.fields["dir"]; - s.dir___5490 = (r0); - r0 = s.arg0.fields["rid"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 != -1); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_1 = tileworld_RuleView_whendoTrue__P3661_mk(s); + r0 = s.arg0.fields["rule"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 799; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_Array__mk(); + { step = 15; continue; } case 1: - r0 = (s.dir___5490 >= 4); case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = s.dir___5490; - { step = 4; continue; } + r0 = pxsim_Array__mk(); + s.res___14123 = (r0); + s.i___14125 = (s.arg2); case 3: - s.tmp_3 = tileworld_flipRotateDir__P4366_mk(s); - s.tmp_3.arg0 = s.dir___5490; - r0 = s.arg0.fields["view"]; - s.tmp_3.arg1 = r0; - s.callLocIdx = 141; s.pc = 5; return s.tmp_3; - case 5: + r0 = (s.i___14125 <= s.arg3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_1 = tileworld_AllExport_getSetAttr__P3676_mk(s); + r0 = s.arg0.fields["all"]; + s.tmp_1.arg0 = r0; + r0 = s.arg0.fields["rule"]; + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.i___14125; + s.tmp_1.arg4 = 65535; + s.callLocIdx = 800; s.pc = 17; return s.tmp_1; + case 17: r0 = s.retval; + s.a___14131 = (r0); + r0 = (s.a___14131 != 0); + 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_Array_.indexOf(s.res___14123, s.a___14131, undefined); + s.tmp_1 = r0; + r0 = (s.tmp_1 == -1); + case 5: // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__push(s.res___14123, s.a___14131); + case 6: + case 7: + r0 = (s.i___14125 + 1); + s.i___14125 = (r0); + { step = 3; continue; } + case 8: + r0 = pxsim_Array__length(s.res___14123); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = pxsim_Array__length(s.res___14123); + s.tmp_3 = r0; + r0 = (s.tmp_3 == 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 9; continue; } + r0 = s.tmp_2; + { step = 10; continue; } + case 9: + r0 = pxsim_Array_.indexOf(s.res___14123, 3, undefined); s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = (s.tmp_4 != -1); + case 10: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 11; continue; } + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, 3); + r0 = s.tmp_6; + { step = 15; continue; } + { step = 12; continue; } + case 11: + r0 = pxsim_Array__mk(); + { step = 15; continue; } + case 12: + case 13: + case 14: + r0 = s.res___14123; + case 15: return leave(s, r0) default: oops() } } } -tileworld_RuleView_getWitnessDirection__P4998.info = {"start":6320,"length":192,"line":182,"column":8,"endLine":185,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWitnessDirection","argumentNames":["this","wdid"]} +tileworld_ruleediting_RuleDisplay_projectAttrs__P13124.info = {"start":14454,"length":647,"line":325,"column":8,"endLine":340,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"projectAttrs","argumentNames":["this","whendo","begin","end"]} -function tileworld_RuleView_getWitnessDirection__P4998_mk(s) { +function tileworld_ruleediting_RuleDisplay_projectAttrs__P13124_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getWitnessDirection__P4998, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_projectAttrs__P13124, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - dir___5490: undefined, + tmp_5: undefined, + tmp_6: undefined, + res___14123: undefined, + i___14125: undefined, + a___14131: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function tileworld_RuleView_getWhenDo__P4608(s) { +function tileworld_RuleView_whendoTrue__P3661(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25400,123 +28600,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ncol___5189 = undefined; - s.nrow___5194 = undefined; - s.whendo___5203 = undefined; + s.wd___7773 = 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, tileworld_RuleView__C4976_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); - r0 = pxsim_pxtrt.mklocRef(); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.arg2); - s.arg2 = (s.tmp_1); - r0 = s.arg0.fields["rid"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 == -1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - s.tmp_4 = tileworld_transformCol__P4436_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_4.arg0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.arg2); - s.tmp_4.arg1 = r0; - s.tmp_5 = tileworld_RuleView_rawView__P4988_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 119; s.pc = 7; return s.tmp_5; - case 7: - r0 = s.retval; - s.tmp_4.arg2 = r0; - s.callLocIdx = 120; s.pc = 6; return s.tmp_4; - case 6: - r0 = s.retval; - s.ncol___5189 = (r0); - s.tmp_0 = tileworld_transformRow__P4481_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.arg2); - s.tmp_0.arg0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_0.arg1 = r0; - s.tmp_1 = tileworld_RuleView_rawView__P4988_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 121; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0.arg2 = r0; - s.callLocIdx = 122; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.nrow___5194 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.arg1, s.ncol___5189); - r0 = pxsim_pxtrt_stlocRef(s.arg2, s.nrow___5194); - case 1: - case 2: - r0 = pxsim_pxtcore_mkAction(2, inline__P5208); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); - s.tmp_1 = helpers_arrayFind__P62_mk(s); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; r0 = r0.fields["whenDo"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 123; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.whendo___5203 = (r0); - r0 = (s.whendo___5203 == null); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = -1; - { step = 5; continue; } - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; - s.tmp_1 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_1, s.whendo___5203, undefined); - { step = 5; continue; } - case 4: - r0 = undefined; - case 5: + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + s.wd___7773 = (r0); + s.tmp_0 = tileworld_isWhenDoTrue__P3624_mk(s); + s.tmp_0.arg0 = s.wd___7773; + s.callLocIdx = 149; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getWhenDo__P4608.info = {"start":2903,"length":505,"line":90,"column":8,"endLine":102,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDo","argumentNames":["this","col","row"]} +tileworld_RuleView_whendoTrue__P3661.info = {"start":9153,"length":126,"line":262,"column":8,"endLine":265,"endColumn":9,"fileName":"ruleview.ts","functionName":"whendoTrue","argumentNames":["this","whendo"]} -function tileworld_RuleView_getWhenDo__P4608_mk(s) { +function tileworld_RuleView_whendoTrue__P3661_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getWhenDo__P4608, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_whendoTrue__P3661, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - ncol___5189: undefined, - nrow___5194: undefined, - whendo___5203: undefined, + wd___7773: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function inline__P5208(s) { +function tileworld_isWhenDoTrue__P3624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25526,39 +28648,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___6607 = undefined; + s.i___6621 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["col"]; - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_2 = r0; - r0 = (s.tmp_1 == s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.i___6607 = (0); case 1: - r0 = s.arg0.fields["row"]; + s.tmp_1 = r0 = s.i___6607; + r0 = s.arg0.fields["bgPred"]; s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + r0 = pxsim.BufferMethods.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 = 4; continue; } + r0 = s.arg0.fields["bgPred"]; + s.tmp_5 = r0; + r0 = pxsim.BufferMethods.getUint8(s.tmp_5, s.i___6607); s.tmp_4 = r0; - r0 = (s.tmp_3 == s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 2; continue; } + r0 = false; + { step = 9; continue; } case 2: - // jmp value (already in r0) + case 3: + r0 = (s.i___6607 + 1); + s.i___6607 = (r0); + { step = 1; continue; } + case 4: + s.i___6621 = (0); + case 5: + s.tmp_1 = r0 = s.i___6621; + r0 = s.arg0.fields["spPred"]; + s.tmp_3 = r0; + r0 = pxsim.BufferMethods.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 = 8; continue; } + r0 = s.arg0.fields["spPred"]; s.tmp_5 = r0; - r0 = s.tmp_5; + r0 = pxsim.BufferMethods.getUint8(s.tmp_5, s.i___6621); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 6; continue; } + r0 = false; + { step = 9; continue; } + case 6: + case 7: + r0 = (s.i___6621 + 1); + s.i___6621 = (r0); + { step = 5; continue; } + case 8: + r0 = true; + case 9: return leave(s, r0) default: oops() } } } -inline__P5208.info = {"start":3230,"length":36,"line":97,"column":44,"endLine":97,"endColumn":80,"fileName":"ruleview.ts","functionName":"inline","argumentNames":["wd"]} +tileworld_isWhenDoTrue__P3624.info = {"start":7342,"length":299,"line":194,"column":4,"endLine":202,"endColumn":5,"fileName":"rule.ts","functionName":"isWhenDoTrue","argumentNames":["wd"]} -function inline__P5208_mk(s) { +function tileworld_isWhenDoTrue__P3624_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P5208, depth: s.depth + 1, + parent: s, fn: tileworld_isWhenDoTrue__P3624, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25566,6 +28722,8 @@ function inline__P5208_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + i___6607: undefined, + i___6621: undefined, arg0: undefined, } } @@ -25573,7 +28731,7 @@ function inline__P5208_mk(s) { -function helpers_arrayFind__P62(s) { +function tileworld_RuleView_getDirFromRule__P3642(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25583,69 +28741,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___25837 = undefined; - s.i___25840 = undefined; - s.v___25845 = undefined; + s.rt___7178 = undefined; + s.wd___7187 = 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___25837 = (r0); - s.i___25840 = (0); - case 1: - r0 = (s.i___25840 < s.len___25837); + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["ruleType"]; + s.rt___7178 = (r0); + r0 = (s.rt___7178 == 2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___25840); - s.v___25845 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___25845; - s.tmp_1.arg1 = s.i___25840; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 8; s.pc = 6; return s.tmp_1; - case 6: + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.rt___7178 == 1); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 5; continue; } + s.tmp_2 = tileworld_RuleView_getWhenDo__P3643_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = 2; + s.tmp_2.arg2 = 2; + s.callLocIdx = 116; s.pc = 10; return s.tmp_2; + case 10: r0 = s.retval; + s.wd___7187 = (r0); + r0 = (s.wd___7187 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = s.v___25845; - { step = 5; continue; } - case 2: + if (!r0) { step = 3; continue; } + r0 = 6; + { step = 4; continue; } case 3: - r0 = (s.i___25840 + 1); - s.i___25840 = (r0); - { step = 1; continue; } + s.tmp_1 = tileworld_RuleView_getWitnessDirection__P3651_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.wd___7187; + s.callLocIdx = 117; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; case 4: - r0 = undefined; + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + { step = 9; continue; } + { step = 8; continue; } case 5: + r0 = (s.rt___7178 == 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 6; continue; } + s.tmp_4 = tileworld_RuleView_getRuleArg__P3640_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 118; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + { step = 9; continue; } + case 6: + case 7: + case 8: + r0 = 6; + case 9: return leave(s, r0) default: oops() } } } -helpers_arrayFind__P62.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]} +tileworld_RuleView_getDirFromRule__P3642.info = {"start":2246,"length":408,"line":74,"column":8,"endLine":83,"endColumn":9,"fileName":"ruleview.ts","functionName":"getDirFromRule","argumentNames":["this"]} -function helpers_arrayFind__P62_mk(s) { +function tileworld_RuleView_getDirFromRule__P3642_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFind__P62, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getDirFromRule__P3642, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___25837: undefined, - i___25840: undefined, - v___25845: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + rt___7178: undefined, + wd___7187: undefined, arg0: undefined, - arg1: undefined, } } -function tileworld_transformRow__P4481(s) { +function tileworld_RuleView_getRuleArg__P3640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25657,91 +28844,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (s.arg2 == 0); + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["rid"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 != -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 13; continue; } - { step = 12; continue; } + r0 = s.arg0.fields["r"]; + r0 = r0.fields["ruleArg"]; + { step = 4; continue; } case 1: - r0 = (s.arg2 == 1); - s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["ruleType"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 == 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.tmp_1; + s.tmp_4 = tileworld_flipRotateDir__P3621_mk(s); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["ruleArg"]; + s.tmp_4.arg0 = r0; + r0 = s.arg0.fields["view"]; + s.tmp_4.arg1 = r0; + s.callLocIdx = 114; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; { step = 3; continue; } case 2: - r0 = (s.arg2 == 2); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["ruleArg"]; case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - r0 = (s.arg2 == 1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 4; continue; } - r0 = s.arg0; - { step = 5; continue; } - case 4: - r0 = (4 - s.arg0); - case 5: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 13; continue; } - { step = 11; continue; } - case 6: - r0 = (s.arg1 - 2); - s.arg1 = (r0); - r0 = (s.arg0 - 2); - s.arg0 = (r0); - r0 = (s.arg2 == 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (0 - s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 2); - { step = 10; continue; } - case 7: - r0 = (s.arg2 == 5); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 8; continue; } - r0 = (s.arg1 + 2); - { step = 9; continue; } - case 8: - r0 = (0 - s.arg0); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - case 9: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - case 10: // jmp value (already in r0) s.tmp_5 = r0; r0 = s.tmp_5; - { step = 13; continue; } - case 11: - case 12: - r0 = undefined; - case 13: + case 4: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = s.tmp_6; return leave(s, r0) default: oops() } } } -tileworld_transformRow__P4481.info = {"start":6710,"length":519,"line":178,"column":4,"endLine":189,"endColumn":5,"fileName":"rule.ts","functionName":"transformRow","argumentNames":["row","col","rt"]} +tileworld_RuleView_getRuleArg__P3640.info = {"start":1949,"length":202,"line":65,"column":8,"endLine":68,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleArg","argumentNames":["this"]} -function tileworld_transformRow__P4481_mk(s) { +function tileworld_RuleView_getRuleArg__P3640_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_transformRow__P4481, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getRuleArg__P3640, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25749,16 +28902,15 @@ function tileworld_transformRow__P4481_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tileworld_RuleView_rawView__P4988(s) { +function tileworld_ruleediting_RuleDisplay_showRuleType__P13110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25768,63 +28920,168 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.selCol___13302 = undefined; + s.ax___13319 = undefined; + s.ay___13328 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["view"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.selCol___13302 = (11); + r0 = pxsim_numops_toBoolDecr(s.arg5); if (!r0) { step = 1; continue; } - r0 = 5; - { step = 4; continue; } + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.tmp_0.arg2 = s.arg4; + s.tmp_1 = tileworld_ruleediting_RuleDisplay__C3797_v3_1_mk(s); + s.tmp_1.arg0 = s.arg0; + if (!checkSubtype(s.tmp_1.arg0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.centerImage; + s.pc = 18; return s.tmp_1; + case 18: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.callLocIdx = 716; s.pc = 17; return s.tmp_0; + case 17: + r0 = s.retval; case 1: - r0 = s.arg0.fields["view"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 5); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 2; continue; } - r0 = 3; - { step = 3; continue; } case 2: - r0 = s.arg0.fields["view"]; + r0 = (s.arg1 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg3; + s.tmp_1.arg2 = s.arg4; + r0 = pxsim_Array__getAt(globals.movedImages___3789, s.arg2); + s.tmp_1.arg3 = r0; + s.callLocIdx = 717; s.pc = 19; return s.tmp_1; + case 19: + r0 = s.retval; + { step = 16; continue; } case 3: + r0 = (s.arg1 == 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = (s.arg2 == 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = 1; + { step = 7; continue; } + case 4: + r0 = (s.arg2 == 2); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + case 7: // jmp value (already in r0) s.tmp_4 = r0; - r0 = s.tmp_4; - case 4: + s.ax___13319 = (s.tmp_4); + r0 = (s.arg2 == 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = -1; + { step = 11; continue; } + case 8: + r0 = (s.arg2 == 1); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = 1; + { step = 10; continue; } + case 9: + r0 = 0; + case 10: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; + s.tmp_2 = r0; + r0 = s.tmp_2; + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + s.ay___13328 = (s.tmp_3); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_showCollision__P13109_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg3 - s.ax___13319); + s.tmp_0.arg1 = r0; + r0 = (s.arg4 - s.ay___13328); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg2; + r0 = pxsim_Array__getAt(globals.moveImages___3788, s.arg2); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg1; + s.callLocIdx = 718; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + { step = 15; continue; } + case 12: + r0 = (s.arg1 == 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg3; + s.tmp_1.arg2 = s.arg4; + s.tmp_1.arg3 = globals.negate___3765; + s.callLocIdx = 719; s.pc = 21; return s.tmp_1; + case 21: + r0 = s.retval; + case 13: + case 14: + case 15: + case 16: + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleView_rawView__P4988.info = {"start":2672,"length":221,"line":85,"column":8,"endLine":88,"endColumn":9,"fileName":"ruleview.ts","functionName":"rawView","argumentNames":["this"]} +tileworld_ruleediting_RuleDisplay_showRuleType__P13110.info = {"start":3598,"length":730,"line":87,"column":8,"endLine":99,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showRuleType","argumentNames":["this","rt","rd","x","y","center"]} -function tileworld_RuleView_rawView__P4988_mk(s) { +function tileworld_ruleediting_RuleDisplay_showRuleType__P13110_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_rawView__P4988, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_showRuleType__P13110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, + selCol___13302: undefined, + ax___13319: undefined, + ay___13328: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function tileworld_transformCol__P4436(s) { +function tileworld_ruleediting_RuleDisplay_showCollision__P13109(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25834,110 +29091,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x___13264 = undefined; + s.y___13273 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } - r0 = (s.arg2 == 0); + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = (s.arg0).fields["collideCol"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg2 - 2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["collideRow"] = (s.tmp_1); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = globals.collisionSprite___3725; + s.callLocIdx = 714; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = (s.arg3 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 13; continue; } - { step = 12; continue; } + r0 = 7; + { step = 4; continue; } case 1: - r0 = (s.arg2 == 1); + r0 = (s.arg3 == 2); s.tmp_1 = r0; - r0 = pxsim_numops_toBool(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 2; continue; } - r0 = s.tmp_1; + r0 = -7; { step = 3; continue; } case 2: - r0 = (s.arg2 == 2); + r0 = 0; case 3: // jmp value (already in r0) s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 6; continue; } - r0 = (s.arg2 == 1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 4; continue; } - r0 = (4 - s.arg0); - { step = 5; continue; } + r0 = s.tmp_2; case 4: - r0 = s.arg0; - case 5: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 13; continue; } - { step = 11; continue; } - case 6: - r0 = (s.arg1 - 2); - s.arg1 = (r0); - r0 = (s.arg0 - 2); - s.arg0 = (r0); - r0 = (s.arg2 == 3); + s.tmp_3 = r0; + s.x___13264 = (s.tmp_3); + r0 = (s.arg3 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (s.arg1 + 2); - { step = 10; continue; } - case 7: - r0 = (s.arg2 == 5); + if (!r0) { step = 5; continue; } + r0 = 7; + { step = 8; continue; } + case 5: + r0 = (s.arg3 == 3); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 8; continue; } - r0 = (0 - s.arg1); + if (!r0) { step = 6; continue; } + r0 = -7; + { step = 7; continue; } + case 6: + r0 = 0; + case 7: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 + 2); - { step = 9; continue; } + r0 = s.tmp_2; case 8: - r0 = (0 - s.arg0); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - case 9: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + s.tmp_3 = r0; + s.y___13273 = (s.tmp_3); + s.tmp_0 = tileworld_RuleVisualsBase_drawImageAbs__P12697_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (s.arg1 << 4); + s.tmp_1 = r0; + r0 = (s.tmp_1 + s.x___13264); + s.tmp_0.arg1 = r0; + r0 = (s.arg2 << 4); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 6); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.y___13273); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg4; + s.callLocIdx = 715; s.pc = 10; return s.tmp_0; case 10: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; - { step = 13; continue; } - case 11: - case 12: + r0 = s.retval; r0 = undefined; - case 13: return leave(s, r0) default: oops() } } } -tileworld_transformCol__P4436.info = {"start":6142,"length":562,"line":164,"column":4,"endLine":176,"endColumn":5,"fileName":"rule.ts","functionName":"transformCol","argumentNames":["col","row","rt"]} +tileworld_ruleediting_RuleDisplay_showCollision__P13109.info = {"start":3076,"length":512,"line":78,"column":8,"endLine":85,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"showCollision","argumentNames":["this","col","row","dir","arrowImg","rt"]} -function tileworld_transformCol__P4436_mk(s) { +function tileworld_ruleediting_RuleDisplay_showCollision__P13109_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_transformCol__P4436, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_showCollision__P13109, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, + x___13264: undefined, + y___13273: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function tileworld_RuleView_getRuleType__P4983(s) { +function tileworld_RuleVisualsBase_drawImageAbs__P12697(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25949,22 +29220,109 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - r0 = s.arg0.fields["r"]; - r0 = r0.fields["ruleType"]; + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, s.arg3, s.arg1, s.arg2); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleVisualsBase_drawImageAbs__P12697.info = {"start":4505,"length":120,"line":116,"column":8,"endLine":118,"endColumn":9,"fileName":"rulesBase.ts","functionName":"drawImageAbs","argumentNames":["this","x","y","img"]} + +function tileworld_RuleVisualsBase_drawImageAbs__P12697_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleVisualsBase_drawImageAbs__P12697, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function tileworld_ruleediting_RuleDisplay_centerImage__P13105(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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = globals.ok___3730; + return leave(s, r0) + default: oops() +} } } +tileworld_ruleediting_RuleDisplay_centerImage__P13105.info = {"start":1937,"length":58,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"centerImage","argumentNames":["this"]} + +function tileworld_ruleediting_RuleDisplay_centerImage__P13105_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_ruleediting_RuleDisplay_centerImage__P13105, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tileworld_ruleediting_RuleEditor_saveAndPop__P14506(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, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_Project_saveRule__P3700_mk(s); + r0 = s.arg0.fields["p"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["rule"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1023; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = game_popScene__P2529_mk(s); + s.callLocIdx = 1024; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getRuleType__P4983.info = {"start":1783,"length":68,"line":57,"column":8,"endLine":59,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleType","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_saveAndPop__P14506.info = {"start":8514,"length":101,"line":179,"column":8,"endLine":182,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"saveAndPop","argumentNames":["this"]} -function tileworld_RuleView_getRuleType__P4983_mk(s) { +function tileworld_ruleediting_RuleEditor_saveAndPop__P14506_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getRuleType__P4983, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_saveAndPop__P14506, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -25972,7 +29330,7 @@ function tileworld_RuleView_getRuleType__P4983_mk(s) { -function tileworld_RuleView_findWitnessColRow__P4997(s) { +function tileworld_RuleView_getWitnessDirection__P3651(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25982,102 +29340,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.whendo___5465 = undefined; + s.dir___7517 = 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, tileworld_RuleView__C4976_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg3; + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + r0 = r0.fields["dir"]; + s.dir___7517 = (r0); + r0 = s.arg0.fields["rid"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 != -1); + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["r"]; - r0 = r0.fields["ruleType"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 3); + r0 = (s.dir___7517 >= 4); case 2: // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - r0 = -1; - { step = 9; continue; } + r0 = s.dir___7517; + { step = 4; continue; } case 3: - case 4: - s.tmp_3 = tileworld_RuleView_getWhenDo__P4608_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.callLocIdx = 138; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; - s.whendo___5465 = (r0); - r0 = (s.whendo___5465 == -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = -1; - { step = 9; continue; } + s.tmp_3 = tileworld_flipRotateDir__P3621_mk(s); + s.tmp_3.arg0 = s.dir___7517; + r0 = s.arg0.fields["view"]; + s.tmp_3.arg1 = r0; + s.callLocIdx = 141; s.pc = 5; return s.tmp_3; case 5: - case 6: - s.tmp_3 = tileworld_RuleView_attrBgIndex__P4995_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.whendo___5465; - s.tmp_3.arg2 = 1; - s.callLocIdx = 139; s.pc = 11; return s.tmp_3; - case 11: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 != -1); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - r0 = -1; - { step = 9; continue; } - case 7: - case 8: - s.tmp_4 = tileworld_RuleView_attrSpIndex__P4996_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.whendo___5465; - s.tmp_4.arg2 = 1; - s.callLocIdx = 140; s.pc = 12; return s.tmp_4; - case 12: r0 = s.retval; - case 9: + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -tileworld_RuleView_findWitnessColRow__P4997.info = {"start":5853,"length":457,"line":171,"column":8,"endLine":180,"endColumn":9,"fileName":"ruleview.ts","functionName":"findWitnessColRow","argumentNames":["this","col","row","editor"]} +tileworld_RuleView_getWitnessDirection__P3651.info = {"start":6320,"length":192,"line":182,"column":8,"endLine":185,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWitnessDirection","argumentNames":["this","wdid"]} -function tileworld_RuleView_findWitnessColRow__P4997_mk(s) { +function tileworld_RuleView_getWitnessDirection__P3651_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_findWitnessColRow__P4997, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getWitnessDirection__P3651, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - whendo___5465: undefined, + dir___7517: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tileworld_RuleView_attrSpIndex__P4996(s) { +function tileworld_RuleView_getWhenDo__P3643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26087,7 +29417,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___5434 = undefined; + s.ncol___7222 = undefined; + s.nrow___7227 = undefined; + s.whendo___7236 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -26095,52 +29427,93 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - s.i___5434 = (0); - case 1: - s.tmp_1 = r0 = s.i___5434; - r0 = s.arg0.fields["p"]; + if (!checkSubtype(r0, tileworld_RuleView__C3630_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); + r0 = pxsim_pxtrt.mklocRef(); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.arg2); + s.arg2 = (s.tmp_1); + r0 = s.arg0.fields["rid"]; s.tmp_3 = r0; - r0 = s.tmp_3.fields["_spritesI"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); + r0 = (s.tmp_3 == -1); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_7 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.arg1; - s.tmp_7.arg2 = s.i___5434; - s.tmp_7.arg3 = 65535; - s.callLocIdx = 136; s.pc = 6; return s.tmp_7; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + s.tmp_4 = tileworld_transformCol__P3622_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_4.arg0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.arg2); + s.tmp_4.arg1 = r0; + s.tmp_5 = tileworld_RuleView_rawView__P7044_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 119; s.pc = 7; return s.tmp_5; + case 7: + r0 = s.retval; + s.tmp_4.arg2 = r0; + s.callLocIdx = 120; s.pc = 6; return s.tmp_4; case 6: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 == s.arg2); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 2; continue; } - r0 = s.i___5434; - { step = 5; continue; } + s.ncol___7222 = (r0); + s.tmp_0 = tileworld_transformRow__P3623_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.arg2); + s.tmp_0.arg0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_0.arg1 = r0; + s.tmp_1 = tileworld_RuleView_rawView__P7044_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 121; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0.arg2 = r0; + s.callLocIdx = 122; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.nrow___7227 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.arg1, s.ncol___7222); + r0 = pxsim_pxtrt_stlocRef(s.arg2, s.nrow___7227); + case 1: case 2: + r0 = pxsim_pxtcore_mkAction(2, inline__P7241); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); + s.tmp_1 = helpers_arrayFind__P106_mk(s); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 123; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.whendo___7236 = (r0); + r0 = (s.whendo___7236 == null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = -1; + { step = 5; continue; } + { step = 4; continue; } case 3: - r0 = (s.i___5434 + 1); - s.i___5434 = (r0); - { step = 1; continue; } + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; + s.tmp_1 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_1, s.whendo___7236, undefined); + { step = 5; continue; } case 4: - r0 = -1; + r0 = undefined; case 5: return leave(s, r0) default: oops() } } } -tileworld_RuleView_attrSpIndex__P4996.info = {"start":5602,"length":241,"line":163,"column":8,"endLine":169,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrSpIndex","argumentNames":["this","whendo","a"]} +tileworld_RuleView_getWhenDo__P3643.info = {"start":2903,"length":505,"line":90,"column":8,"endLine":102,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDo","argumentNames":["this","col","row"]} -function tileworld_RuleView_attrSpIndex__P4996_mk(s) { +function tileworld_RuleView_getWhenDo__P3643_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_attrSpIndex__P4996, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getWhenDo__P3643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26148,9 +29521,9 @@ function tileworld_RuleView_attrSpIndex__P4996_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - i___5434: undefined, + ncol___7222: undefined, + nrow___7227: undefined, + whendo___7236: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -26160,7 +29533,7 @@ function tileworld_RuleView_attrSpIndex__P4996_mk(s) { -function tileworld_RuleView_attrBgIndex__P4995(s) { +function inline__P7241(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26170,80 +29543,126 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___5413 = 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, tileworld_RuleView__C4976_VT)) failedCast(r0); - s.i___5413 = (0); + r0 = s.arg0.fields["col"]; + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2 = r0; + r0 = (s.tmp_1 == s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - s.tmp_1 = r0 = s.i___5413; - r0 = s.arg0.fields["p"]; + r0 = s.arg0.fields["row"]; s.tmp_3 = r0; - r0 = s.tmp_3.fields["_backgroundsI"]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_3 == s.tmp_4); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + return leave(s, r0) + default: oops() +} } } +inline__P7241.info = {"start":3230,"length":36,"line":97,"column":44,"endLine":97,"endColumn":80,"fileName":"ruleview.ts","functionName":"inline","argumentNames":["wd"]} + +function inline__P7241_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P7241, depth: s.depth + 1, + pc: 0, retval: undefined, 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 helpers_arrayFind__P106(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.len___27491 = undefined; + s.i___27494 = undefined; + s.v___27499 = 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___27491 = (r0); + s.i___27494 = (0); + case 1: + r0 = (s.i___27494 < s.len___27491); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_7 = tileworld_RuleView_getSetBgAttr__P4993_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.arg1; - s.tmp_7.arg2 = s.i___5413; - s.tmp_7.arg3 = 65535; - s.callLocIdx = 134; s.pc = 6; return s.tmp_7; + r0 = pxsim_Array__getAt(s.arg0, s.i___27494); + s.v___27499 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___27499; + s.tmp_1.arg1 = s.i___27494; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 8; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 == s.arg2); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = s.i___5413; + r0 = s.v___27499; { step = 5; continue; } case 2: case 3: - r0 = (s.i___5413 + 1); - s.i___5413 = (r0); + r0 = (s.i___27494 + 1); + s.i___27494 = (r0); { step = 1; continue; } case 4: - r0 = -1; + r0 = undefined; case 5: return leave(s, r0) default: oops() } } } -tileworld_RuleView_attrBgIndex__P4995.info = {"start":5353,"length":239,"line":155,"column":8,"endLine":161,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrBgIndex","argumentNames":["this","whendo","a"]} +helpers_arrayFind__P106.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]} -function tileworld_RuleView_attrBgIndex__P4995_mk(s) { +function helpers_arrayFind__P106_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_attrBgIndex__P4995, depth: s.depth + 1, + parent: s, fn: helpers_arrayFind__P106, depth: s.depth + 1, pc: 0, retval: undefined, 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, - i___5413: undefined, + len___27491: undefined, + i___27494: undefined, + v___27499: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280(s) { +function tileworld_transformRow__P3623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26256,56 +29675,107 @@ 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, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = (s.arg1 == 0); + r0 = (s.arg2 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 1; - { step = 4; continue; } + r0 = s.arg0; + { step = 13; continue; } + { step = 12; continue; } case 1: - r0 = (s.arg1 == 4); + r0 = (s.arg2 == 1); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_numops_toBool(s.tmp_1); if (!r0) { step = 2; continue; } - r0 = 3; + r0 = s.tmp_1; { step = 3; continue; } case 2: - r0 = 2; + r0 = (s.arg2 == 2); case 3: // jmp value (already in r0) s.tmp_2 = r0; - r0 = s.tmp_2; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = (s.arg2 == 1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 4; continue; } + r0 = s.arg0; + { step = 5; continue; } case 4: + r0 = (4 - s.arg0); + case 5: // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 13; continue; } + { step = 11; continue; } + case 6: + r0 = (s.arg1 - 2); + s.arg1 = (r0); + r0 = (s.arg0 - 2); + s.arg0 = (r0); + r0 = (s.arg2 == 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (0 - s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 2); + { step = 10; continue; } + case 7: + r0 = (s.arg2 == 5); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 8; continue; } + r0 = (s.arg1 + 2); + { step = 9; continue; } + case 8: + r0 = (0 - s.arg0); s.tmp_3 = r0; - r0 = s.tmp_3; + r0 = (s.tmp_3 + 2); + case 9: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + case 10: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + { step = 13; continue; } + case 11: + case 12: + r0 = undefined; + case 13: return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280.info = {"start":6121,"length":79,"line":145,"column":8,"endLine":145,"endColumn":87,"fileName":"ruledisplay.ts","functionName":"rowToRowCoord","argumentNames":["this","lr"]} +tileworld_transformRow__P3623.info = {"start":6710,"length":519,"line":178,"column":4,"endLine":189,"endColumn":5,"fileName":"rule.ts","functionName":"transformRow","argumentNames":["row","col","rt"]} -function tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280_mk(s) { +function tileworld_transformRow__P3623_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280, depth: s.depth + 1, + parent: s, fn: tileworld_transformRow__P3623, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279(s) { +function tileworld_RuleView_rawView__P7044(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26317,47 +29787,61 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - r0 = (s.arg1 % 2); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["view"]; s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); + r0 = (s.tmp_1 == 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 2; - { step = 2; continue; } + r0 = 5; + { step = 4; continue; } case 1: - r0 = s.arg1; + r0 = s.arg0.fields["view"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 == 5); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = 3; + { step = 3; continue; } case 2: + r0 = s.arg0.fields["view"]; + case 3: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; + s.tmp_4 = r0; + r0 = s.tmp_4; + case 4: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279.info = {"start":6044,"length":68,"line":144,"column":8,"endLine":144,"endColumn":76,"fileName":"ruledisplay.ts","functionName":"rowToColCoord","argumentNames":["this","lr"]} +tileworld_RuleView_rawView__P7044.info = {"start":2672,"length":221,"line":85,"column":8,"endLine":88,"endColumn":9,"fileName":"ruleview.ts","functionName":"rawView","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279_mk(s) { +function tileworld_RuleView_rawView__P7044_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_rawView__P7044, depth: s.depth + 1, pc: 0, retval: undefined, 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 tileworld_ruleediting_RuleEditor_tryEditCommand__P12685(s) { +function tileworld_transformCol__P3622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26367,55 +29851,588 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___14019 = undefined; - s.cmd___14026 = undefined; - s.len___14030 = undefined; - s.newCol___14053 = undefined; - s.newRow___14056 = 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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_1 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = true; - s.callLocIdx = 1091; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 - 2); - s.row___14019 = (r0); - r0 = (s.row___14019 > 4); + r0 = (s.arg2 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = false; - { step = 15; continue; } + r0 = s.arg0; + { step = 13; continue; } + { step = 12; continue; } case 1: - case 2: - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 1092; s.pc = 17; return s.tmp_2; - case 17: - r0 = s.retval; + r0 = (s.arg2 == 1); s.tmp_1 = r0; - r0 = (s.tmp_1 - 6); - s.cmd___14026 = (r0); - r0 = s.arg0.fields["commandLengths"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.row___14019); - s.len___14030 = (r0); - r0 = (s.len___14030 == -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = s.tmp_1; + { step = 3; continue; } + case 2: + r0 = (s.arg2 == 2); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = (s.arg2 == 1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 4; continue; } + r0 = (4 - s.arg0); + { step = 5; continue; } + case 4: + r0 = s.arg0; + case 5: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 13; continue; } + { step = 11; continue; } + case 6: + r0 = (s.arg1 - 2); + s.arg1 = (r0); + r0 = (s.arg0 - 2); + s.arg0 = (r0); + r0 = (s.arg2 == 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (s.arg1 + 2); + { step = 10; continue; } + case 7: + r0 = (s.arg2 == 5); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 8; continue; } + r0 = (0 - s.arg1); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 2); + { step = 9; continue; } + case 8: + r0 = (0 - s.arg0); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + case 9: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + case 10: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + { step = 13; continue; } + case 11: + case 12: + r0 = undefined; + case 13: + return leave(s, r0) + default: oops() +} } } +tileworld_transformCol__P3622.info = {"start":6142,"length":562,"line":164,"column":4,"endLine":176,"endColumn":5,"fileName":"rule.ts","functionName":"transformCol","argumentNames":["col","row","rt"]} + +function tileworld_transformCol__P3622_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_transformCol__P3622, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tileworld_RuleView_getRuleType__P3638(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, tileworld_RuleView__C3630_VT)) failedCast(r0); + r0 = s.arg0.fields["r"]; + r0 = r0.fields["ruleType"]; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleView_getRuleType__P3638.info = {"start":1783,"length":68,"line":57,"column":8,"endLine":59,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleType","argumentNames":["this"]} + +function tileworld_RuleView_getRuleType__P3638_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleView_getRuleType__P3638, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tileworld_RuleView_findWitnessColRow__P3650(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.whendo___7493 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["r"]; + r0 = r0.fields["ruleType"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 3); + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = -1; + { step = 9; continue; } + case 3: + case 4: + s.tmp_3 = tileworld_RuleView_getWhenDo__P3643_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.callLocIdx = 138; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.whendo___7493 = (r0); + r0 = (s.whendo___7493 == -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 9; continue; } + case 5: + case 6: + s.tmp_3 = tileworld_RuleView_attrBgIndex__P7046_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.whendo___7493; + s.tmp_3.arg2 = 1; + s.callLocIdx = 139; s.pc = 11; return s.tmp_3; + case 11: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 != -1); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + r0 = -1; + { step = 9; continue; } + case 7: + case 8: + s.tmp_4 = tileworld_RuleView_attrSpIndex__P7047_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.whendo___7493; + s.tmp_4.arg2 = 1; + s.callLocIdx = 140; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + case 9: + return leave(s, r0) + default: oops() +} } } +tileworld_RuleView_findWitnessColRow__P3650.info = {"start":5853,"length":457,"line":171,"column":8,"endLine":180,"endColumn":9,"fileName":"ruleview.ts","functionName":"findWitnessColRow","argumentNames":["this","col","row","editor"]} + +function tileworld_RuleView_findWitnessColRow__P3650_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleView_findWitnessColRow__P3650, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + whendo___7493: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function tileworld_RuleView_attrSpIndex__P7047(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.i___7463 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0); + s.i___7463 = (0); + case 1: + s.tmp_1 = r0 = s.i___7463; + r0 = s.arg0.fields["p"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_spritesI"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_7 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.arg1; + s.tmp_7.arg2 = s.i___7463; + s.tmp_7.arg3 = 65535; + s.callLocIdx = 136; s.pc = 6; return s.tmp_7; + case 6: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 == s.arg2); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 2; continue; } + r0 = s.i___7463; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___7463 + 1); + s.i___7463 = (r0); + { step = 1; continue; } + case 4: + r0 = -1; + case 5: + return leave(s, r0) + default: oops() +} } } +tileworld_RuleView_attrSpIndex__P7047.info = {"start":5602,"length":241,"line":163,"column":8,"endLine":169,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrSpIndex","argumentNames":["this","whendo","a"]} + +function tileworld_RuleView_attrSpIndex__P7047_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleView_attrSpIndex__P7047, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + i___7463: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tileworld_RuleView_attrBgIndex__P7046(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.i___7442 = 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, tileworld_RuleView__C3630_VT)) failedCast(r0); + s.i___7442 = (0); + case 1: + s.tmp_1 = r0 = s.i___7442; + r0 = s.arg0.fields["p"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_backgroundsI"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_7 = tileworld_RuleView_getSetBgAttr__P3647_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.arg1; + s.tmp_7.arg2 = s.i___7442; + s.tmp_7.arg3 = 65535; + s.callLocIdx = 134; s.pc = 6; return s.tmp_7; + case 6: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 == s.arg2); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 2; continue; } + r0 = s.i___7442; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___7442 + 1); + s.i___7442 = (r0); + { step = 1; continue; } + case 4: + r0 = -1; + case 5: + return leave(s, r0) + default: oops() +} } } +tileworld_RuleView_attrBgIndex__P7046.info = {"start":5353,"length":239,"line":155,"column":8,"endLine":161,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrBgIndex","argumentNames":["this","whendo","a"]} + +function tileworld_RuleView_attrBgIndex__P7046_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleView_attrBgIndex__P7046, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + i___7442: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115(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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = (s.arg1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 1; + { step = 4; continue; } + case 1: + r0 = (s.arg1 == 4); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = 3; + { step = 3; continue; } + case 2: + r0 = 2; + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + return leave(s, r0) + default: oops() +} } } +tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115.info = {"start":6121,"length":79,"line":145,"column":8,"endLine":145,"endColumn":87,"fileName":"ruledisplay.ts","functionName":"rowToRowCoord","argumentNames":["this","lr"]} + +function tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115, depth: s.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 tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114(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, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + r0 = (s.arg1 % 2); + 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 = 2; + { step = 2; continue; } + case 1: + r0 = s.arg1; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = s.tmp_2; + return leave(s, r0) + default: oops() +} } } +tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114.info = {"start":6044,"length":68,"line":144,"column":8,"endLine":144,"endColumn":76,"fileName":"ruledisplay.ts","functionName":"rowToColCoord","argumentNames":["this","lr"]} + +function tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114, 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 tileworld_ruleediting_RuleEditor_tryEditCommand__P14512(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.row___15832 = undefined; + s.cmd___15839 = undefined; + s.len___15843 = undefined; + s.newCol___15866 = undefined; + s.newRow___15869 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_1 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = true; + s.callLocIdx = 1091; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 - 2); + s.row___15832 = (r0); + r0 = (s.row___15832 > 4); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 15; continue; } + case 1: + case 2: + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 1092; s.pc = 17; return s.tmp_2; + case 17: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 6); + s.cmd___15839 = (r0); + r0 = s.arg0.fields["commandLengths"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.row___15832); + s.len___15843 = (r0); + r0 = (s.len___15843 == -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = (s.cmd___14026 >= s.len___14030); + r0 = (s.cmd___15839 >= s.len___15843); case 4: // jmp value (already in r0) s.tmp_1 = r0; @@ -26432,24 +30449,24 @@ switch (step) { r0 = s.arg0.fields["dirMap"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.row___14019; + s.tmp_0.arg1 = s.row___15832; s.callLocIdx = 1093; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.newCol___14053 = (r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280_mk(s); + s.newCol___15866 = (r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.row___14019; + s.tmp_0.arg1 = s.row___15832; s.callLocIdx = 1094; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - s.newRow___14056 = (r0); - s.tmp_3 = tileworld_ruleediting_RuleDisplay_active__P11278_mk(s); + s.newRow___15869 = (r0); + s.tmp_3 = tileworld_ruleediting_RuleDisplay_active__P13113_mk(s); s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.newCol___14053; - s.tmp_3.arg2 = s.newRow___14056; + s.tmp_3.arg1 = s.newCol___15866; + s.tmp_3.arg2 = s.newRow___15869; s.callLocIdx = 1095; s.pc = 20; return s.tmp_3; case 20: r0 = s.retval; @@ -26465,11 +30482,11 @@ switch (step) { case 7: case 8: s.tmp_4 = r0 = s.arg0; - s.tmp_6 = tileworld_RuleView_getWhenDo__P4608_mk(s); + s.tmp_6 = tileworld_RuleView_getWhenDo__P3643_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = s.newCol___14053; - s.tmp_6.arg2 = s.newRow___14056; + s.tmp_6.arg1 = s.newCol___15866; + s.tmp_6.arg2 = s.newRow___15869; s.callLocIdx = 1096; s.pc = 21; return s.tmp_6; case 21: r0 = s.retval; @@ -26482,11 +30499,11 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } s.tmp_2 = r0 = s.arg0; - s.tmp_4 = tileworld_RuleView_makeWhenDo__P4989_mk(s); + s.tmp_4 = tileworld_RuleView_makeWhenDo__P3644_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.newCol___14053; - s.tmp_4.arg2 = s.newRow___14056; + s.tmp_4.arg1 = s.newCol___15866; + s.tmp_4.arg2 = s.newRow___15869; s.callLocIdx = 1097; s.pc = 22; return s.tmp_4; case 22: r0 = s.retval; @@ -26494,18 +30511,18 @@ switch (step) { r0 = (s.tmp_2).fields["whenDo"] = (s.tmp_3); case 9: case 10: - s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1098; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - r0 = (s.arg0).fields["currentCommand"] = (s.cmd___14026); - s.tmp_2 = tileworld_RuleView_getCmdInst__P5000_mk(s); + r0 = (s.arg0).fields["currentCommand"] = (s.cmd___15839); + s.tmp_2 = tileworld_RuleView_getCmdInst__P3654_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["whenDo"]; s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.cmd___14026; + s.tmp_2.arg2 = s.cmd___15839; s.callLocIdx = 1099; s.pc = 24; return s.tmp_2; case 24: r0 = s.retval; @@ -26514,11 +30531,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tmp_3 = tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283_mk(s); + s.tmp_3 = tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118_mk(s); s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.row___14019; - s.tmp_3.arg2 = s.newCol___14053; - s.tmp_3.arg3 = s.newRow___14056; + s.tmp_3.arg1 = s.row___15832; + s.tmp_3.arg2 = s.newCol___15866; + s.tmp_3.arg3 = s.newRow___15869; s.tmp_3.arg4 = false; s.callLocIdx = 1100; s.pc = 25; return s.tmp_3; case 25: @@ -26540,7 +30557,7 @@ switch (step) { case 12: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P12686_mk(s); + s.tmp_5 = tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513_mk(s); s.tmp_5.arg0 = s.arg0; s.tmp_5.arg1 = s.tmp_4; s.tmp_5.arg2 = 255; @@ -26554,7 +30571,7 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["tokens"] = (s.tmp_1); - s.tmp_0 = tileworld_ruleediting_RuleEditor_modifyCommandMenu__P12687_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; s.callLocIdx = 1102; s.pc = 27; return s.tmp_0; @@ -26566,12 +30583,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_tryEditCommand__P12685.info = {"start":12524,"length":1435,"line":269,"column":8,"endLine":301,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"tryEditCommand","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_tryEditCommand__P14512.info = {"start":12524,"length":1435,"line":269,"column":8,"endLine":301,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"tryEditCommand","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_tryEditCommand__P12685_mk(s) { +function tileworld_ruleediting_RuleEditor_tryEditCommand__P14512_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_tryEditCommand__P12685, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_tryEditCommand__P14512, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26580,11 +30597,11 @@ function tileworld_ruleediting_RuleEditor_tryEditCommand__P12685_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - row___14019: undefined, - cmd___14026: undefined, - len___14030: undefined, - newCol___14053: undefined, - newRow___14056: undefined, + row___15832: undefined, + cmd___15839: undefined, + len___15843: undefined, + newCol___15866: undefined, + newRow___15869: undefined, arg0: undefined, } } @@ -26592,7 +30609,7 @@ function tileworld_ruleediting_RuleEditor_tryEditCommand__P12685_mk(s) { -function tileworld_ruleediting_RuleViewDisplay_constructor__P12392(s) { +function tileworld_ruleediting_RuleViewDisplay_constructor__P3802(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26609,29 +30626,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C12387_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(r0); r0 = (s.arg0).fields["baseRule"] = (s.arg2); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P11291_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_constructor__P3798_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; s.callLocIdx = 803; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 804; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 805; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = tileworld_RuleView_getDerivedRules__P4978_mk(s); + s.tmp_2 = tileworld_RuleView_getDerivedRules__P3633_mk(s); r0 = s.arg0.fields["baseRule"]; s.tmp_2.arg0 = r0; s.callLocIdx = 806; s.pc = 4; return s.tmp_2; @@ -26639,21 +30656,21 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["ruleViews"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkAction(1, inline__P12410); + r0 = pxsim_pxtcore_mkAction(1, inline__P14240); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 813; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P12437); + r0 = pxsim_pxtcore_mkAction(1, inline__P14267); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.B___667; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.B___1875; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 816; s.pc = 6; return s.tmp_1; @@ -26663,12 +30680,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleViewDisplay_constructor__P12392.info = {"start":450,"length":736,"line":8,"column":8,"endLine":24,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["this","p","baseRule"]} +tileworld_ruleediting_RuleViewDisplay_constructor__P3802.info = {"start":450,"length":736,"line":8,"column":8,"endLine":24,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["this","p","baseRule"]} -function tileworld_ruleediting_RuleViewDisplay_constructor__P12392_mk(s) { +function tileworld_ruleediting_RuleViewDisplay_constructor__P3802_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleViewDisplay_constructor__P12392, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleViewDisplay_constructor__P3802, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26682,7 +30699,7 @@ function tileworld_ruleediting_RuleViewDisplay_constructor__P12392_mk(s) { -function inline__P12410(s) { +function inline__P14240(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26692,7 +30709,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_2.arg0 = s.caps[0]; s.tmp_2.arg1 = true; s.callLocIdx = 807; s.pc = 7; return s.tmp_2; @@ -26706,7 +30723,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_4.arg0 = s.caps[0]; s.tmp_4.arg1 = true; s.callLocIdx = 808; s.pc = 8; return s.tmp_4; @@ -26722,7 +30739,7 @@ switch (step) { r0 = s.tmp_5; { step = 4; continue; } case 3: - s.tmp_7 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_7 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_7.arg0 = s.caps[0]; s.tmp_7.arg1 = true; s.callLocIdx = 809; s.pc = 9; return s.tmp_7; @@ -26735,11 +30752,11 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 5; continue; } - s.tmp_9 = tileworld_RuleView_setTransforms__P4981_mk(s); + s.tmp_9 = tileworld_RuleView_setTransforms__P3636_mk(s); r0 = s.caps[0].fields["baseRule"]; s.tmp_9.arg0 = r0; - s.tmp_10 = r0 = globals.transformMap___12377; - s.tmp_13 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_10 = r0 = globals.transformMap___14209; + s.tmp_13 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_13.arg0 = s.caps[0]; s.tmp_13.arg1 = true; s.callLocIdx = 810; s.pc = 11; return s.tmp_13; @@ -26754,7 +30771,7 @@ switch (step) { case 10: r0 = s.retval; s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = tileworld_RuleView_getDerivedRules__P4978_mk(s); + s.tmp_2 = tileworld_RuleView_getDerivedRules__P3633_mk(s); r0 = s.caps[0].fields["baseRule"]; s.tmp_2.arg0 = r0; s.callLocIdx = 812; s.pc = 12; return s.tmp_2; @@ -26768,12 +30785,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P12410.info = {"start":719,"length":262,"line":13,"column":64,"endLine":18,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":[]} +inline__P14240.info = {"start":719,"length":262,"line":13,"column":64,"endLine":18,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":[]} -function inline__P12410_mk(s) { +function inline__P14240_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P12410, depth: s.depth + 1, + parent: s, fn: inline__P14240, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26795,7 +30812,7 @@ function inline__P12410_mk(s) { -function inline__P12437(s) { +function inline__P14267(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26805,7 +30822,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_Project_saveRule__P6120_mk(s); + s.tmp_0 = tileworld_Project_saveRule__P3700_mk(s); r0 = s.caps[0].fields["p"]; s.tmp_0.arg0 = r0; r0 = s.caps[0].fields["baseRule"]; @@ -26813,7 +30830,7 @@ switch (step) { s.callLocIdx = 814; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); + s.tmp_0 = game_popScene__P2529_mk(s); s.callLocIdx = 815; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; @@ -26821,12 +30838,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P12437.info = {"start":1048,"length":126,"line":19,"column":64,"endLine":23,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":[]} +inline__P14267.info = {"start":1048,"length":126,"line":19,"column":64,"endLine":23,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":[]} -function inline__P12437_mk(s) { +function inline__P14267_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P12437, depth: s.depth + 1, + parent: s, fn: inline__P14267, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -26835,7 +30852,7 @@ function inline__P12437_mk(s) { -function tileworld_RuleView_setTransforms__P4981(s) { +function tileworld_RuleView_setTransforms__P3636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26851,7 +30868,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; s.tmp_0 = r0; r0 = (s.tmp_0).fields["transforms"] = (s.arg1); @@ -26859,12 +30876,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleView_setTransforms__P4981.info = {"start":1627,"length":77,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"ruleview.ts","functionName":"setTransforms","argumentNames":["this","n"]} +tileworld_RuleView_setTransforms__P3636.info = {"start":1627,"length":77,"line":49,"column":8,"endLine":51,"endColumn":9,"fileName":"ruleview.ts","functionName":"setTransforms","argumentNames":["this","n"]} -function tileworld_RuleView_setTransforms__P4981_mk(s) { +function tileworld_RuleView_setTransforms__P3636_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_setTransforms__P4981, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_setTransforms__P3636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26875,7 +30892,7 @@ function tileworld_RuleView_setTransforms__P4981_mk(s) { -function tileworld_RuleView_getDerivedRules__P4978(s) { +function tileworld_RuleView_getDerivedRules__P3633(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26885,18 +30902,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ret___5024 = undefined; - s.rv___5036 = undefined; - s.t___5054 = undefined; - s.rv___5060 = undefined; + s.ret___7061 = undefined; + s.rv___7072 = undefined; + s.t___7090 = undefined; + s.rv___7096 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.ret___5024 = (r0); + s.ret___7061 = (r0); r0 = s.arg0.fields["r"]; r0 = r0.fields["transforms"]; s.tmp_0 = r0; @@ -26916,9 +30933,9 @@ switch (step) { case 2: case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C4976_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C3630_VT); s.tmp_1 = r0; - s.tmp_2 = tileworld_RuleView_constructor__P5013_mk(s); + s.tmp_2 = tileworld_RuleView_constructor__P3631_mk(s); s.tmp_2.arg0 = s.tmp_1; r0 = s.arg0.fields["p"]; s.tmp_2.arg1 = r0; @@ -26928,23 +30945,23 @@ switch (step) { s.callLocIdx = 112; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; - s.rv___5036 = (s.tmp_1); + s.rv___7072 = (s.tmp_1); r0 = s.arg0.fields["r"]; r0 = r0.fields["transforms"]; s.tmp_0 = r0; - r0 = (s.rv___5036).fields["view"] = (s.tmp_0); - r0 = pxsim_Array__push(s.ret___5024, s.rv___5036); + r0 = (s.rv___7072).fields["view"] = (s.tmp_0); + r0 = pxsim_Array__push(s.ret___7061, s.rv___7072); { step = 8; continue; } case 5: - s.t___5054 = (3); + s.t___7090 = (3); case 6: - r0 = (s.t___5054 != 6); + r0 = (s.t___7090 != 6); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C4976_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C3630_VT); s.tmp_1 = r0; - s.tmp_2 = tileworld_RuleView_constructor__P5013_mk(s); + s.tmp_2 = tileworld_RuleView_constructor__P3631_mk(s); s.tmp_2.arg0 = s.tmp_1; r0 = s.arg0.fields["p"]; s.tmp_2.arg1 = r0; @@ -26954,32 +30971,32 @@ switch (step) { s.callLocIdx = 113; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; - s.rv___5060 = (s.tmp_1); - r0 = (s.rv___5060).fields["view"] = (s.t___5054); - r0 = pxsim_Array__push(s.ret___5024, s.rv___5060); - r0 = (s.t___5054 + 1); - s.t___5054 = (r0); + s.rv___7096 = (s.tmp_1); + r0 = (s.rv___7096).fields["view"] = (s.t___7090); + r0 = pxsim_Array__push(s.ret___7061, s.rv___7096); + r0 = (s.t___7090 + 1); + s.t___7090 = (r0); { step = 6; continue; } case 7: case 8: - r0 = s.ret___5024; + r0 = s.ret___7061; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getDerivedRules__P4978.info = {"start":479,"length":920,"line":14,"column":8,"endLine":37,"endColumn":9,"fileName":"ruleview.ts","functionName":"getDerivedRules","argumentNames":["this"]} +tileworld_RuleView_getDerivedRules__P3633.info = {"start":479,"length":920,"line":14,"column":8,"endLine":37,"endColumn":9,"fileName":"ruleview.ts","functionName":"getDerivedRules","argumentNames":["this"]} -function tileworld_RuleView_getDerivedRules__P4978_mk(s) { +function tileworld_RuleView_getDerivedRules__P3633_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getDerivedRules__P4978, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getDerivedRules__P3633, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ret___5024: undefined, - rv___5036: undefined, - t___5054: undefined, - rv___5060: undefined, + ret___7061: undefined, + rv___7072: undefined, + t___7090: undefined, + rv___7096: undefined, arg0: undefined, } } @@ -26987,7 +31004,7 @@ function tileworld_RuleView_getDerivedRules__P4978_mk(s) { -function tileworld_RuleView_constructor__P5013(s) { +function tileworld_RuleView_constructor__P3631(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27005,7 +31022,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = (s.arg0).fields["p"] = (s.arg1); r0 = (s.arg0).fields["rid"] = (s.arg2); r0 = (s.arg0).fields["r"] = (s.arg3); @@ -27014,12 +31031,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleView_constructor__P5013.info = {"start":319,"length":81,"line":7,"column":8,"endLine":8,"endColumn":9,"fileName":"ruleview.ts","functionName":"inline","argumentNames":["this","p","rid","r"]} +tileworld_RuleView_constructor__P3631.info = {"start":319,"length":81,"line":7,"column":8,"endLine":8,"endColumn":9,"fileName":"ruleview.ts","functionName":"inline","argumentNames":["this","p","rid","r"]} -function tileworld_RuleView_constructor__P5013_mk(s) { +function tileworld_RuleView_constructor__P3631_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_constructor__P5013, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_constructor__P3631, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -27031,7 +31048,7 @@ function tileworld_RuleView_constructor__P5013_mk(s) { -function tileworld_Project_saveRule__P6120(s) { +function tileworld_Project_saveRule__P3700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27047,7 +31064,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = s.arg1.fields["rid"]; s.tmp_1 = r0; r0 = (s.tmp_1 == -1); @@ -27057,7 +31074,7 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = tileworld_Project_storeRule__P6126_mk(s); + s.tmp_2 = tileworld_Project_storeRule__P8110_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg0.fields["prefix"]; s.tmp_2.arg1 = r0; @@ -27073,12 +31090,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_saveRule__P6120.info = {"start":4061,"length":178,"line":118,"column":8,"endLine":122,"endColumn":9,"fileName":"project.ts","functionName":"saveRule","argumentNames":["this","rv"]} +tileworld_Project_saveRule__P3700.info = {"start":4061,"length":178,"line":118,"column":8,"endLine":122,"endColumn":9,"fileName":"project.ts","functionName":"saveRule","argumentNames":["this","rv"]} -function tileworld_Project_saveRule__P6120_mk(s) { +function tileworld_Project_saveRule__P3700_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_saveRule__P6120, depth: s.depth + 1, + parent: s, fn: tileworld_Project_saveRule__P3700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27091,7 +31108,7 @@ function tileworld_Project_saveRule__P6120_mk(s) { -function tileworld_RuleView_getBaseRule__P4977(s) { +function tileworld_RuleView_getBaseRule__P3632(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27106,17 +31123,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getBaseRule__P4977.info = {"start":410,"length":59,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"ruleview.ts","functionName":"getBaseRule","argumentNames":["this"]} +tileworld_RuleView_getBaseRule__P3632.info = {"start":410,"length":59,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"ruleview.ts","functionName":"getBaseRule","argumentNames":["this"]} -function tileworld_RuleView_getBaseRule__P4977_mk(s) { +function tileworld_RuleView_getBaseRule__P3632_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getBaseRule__P4977, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getBaseRule__P3632, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -27125,7 +31142,7 @@ function tileworld_RuleView_getBaseRule__P4977_mk(s) { -function tileworld_Project_storeRule__P6126(s) { +function tileworld_Project_storeRule__P8110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27135,7 +31152,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___6390 = undefined; + s.buf___8366 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -27144,8 +31161,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - s.tmp_0 = tileworld_packRule__P4780_mk(s); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + s.tmp_0 = tileworld_packRule__P3627_mk(s); s.tmp_0.arg0 = s.arg3; r0 = s.arg0.fields["_backgroundsI"]; s.tmp_1 = r0; @@ -27158,8 +31175,8 @@ switch (step) { s.callLocIdx = 195; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.buf___6390 = (r0); - s.tmp_0 = settings_writeBuffer__P611_mk(s); + s.buf___8366 = (r0); + s.tmp_0 = settings_writeBuffer__P1824_mk(s); if ((s.arg1) && (s.arg1).vtable) { setupResume(s, 3); pxsim_String__stringConv(s.arg1); @@ -27169,12 +31186,12 @@ switch (step) { case 3: r0 = s.retval; s.tmp_3 = r0; - if ((globals.RuleKey___6323) && (globals.RuleKey___6323).vtable) { + if ((globals.RuleKey___8299) && (globals.RuleKey___8299).vtable) { setupResume(s, 4); - pxsim_String__stringConv(globals.RuleKey___6323); + pxsim_String__stringConv(globals.RuleKey___8299); checkResumeConsumed(); return; - } else { s.retval = (globals.RuleKey___6323) + ""; } + } else { s.retval = (globals.RuleKey___8299) + ""; } case 4: r0 = s.retval; s.tmp_4 = r0; @@ -27202,20 +31219,20 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_5); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.buf___6390; + s.tmp_0.arg1 = s.buf___8366; s.callLocIdx = 196; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - r0 = s.buf___6390; + r0 = s.buf___8366; return leave(s, r0) default: oops() } } } -tileworld_Project_storeRule__P6126.info = {"start":5677,"length":240,"line":162,"column":8,"endLine":166,"endColumn":9,"fileName":"project.ts","functionName":"storeRule","argumentNames":["this","prefix","rid","rule"]} +tileworld_Project_storeRule__P8110.info = {"start":5677,"length":240,"line":162,"column":8,"endLine":166,"endColumn":9,"fileName":"project.ts","functionName":"storeRule","argumentNames":["this","prefix","rid","rule"]} -function tileworld_Project_storeRule__P6126_mk(s) { +function tileworld_Project_storeRule__P8110_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_storeRule__P6126, depth: s.depth + 1, + parent: s, fn: tileworld_Project_storeRule__P8110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27224,7 +31241,7 @@ function tileworld_Project_storeRule__P6126_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - buf___6390: undefined, + buf___8366: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -27235,7 +31252,7 @@ function tileworld_Project_storeRule__P6126_mk(s) { -function tileworld_packRule__P4780(s) { +function tileworld_packRule__P3627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27245,25 +31262,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wds___4784 = undefined; - s.bytes___4800 = undefined; - s.i___4815 = undefined; + s.wds___6855 = undefined; + s.bytes___6870 = undefined; + s.i___6885 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = helpers_arrayFilter__P61_mk(s); + s.tmp_0 = helpers_arrayFilter__P105_mk(s); r0 = s.arg0.fields["whenDo"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P4789; + s.tmp_0.arg1 = inline__P6859; s.callLocIdx = 84; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.wds___4784 = (r0); - globals.bitIndex___4645 = (0); - r0 = pxsim_Array__length(s.wds___4784); + s.wds___6855 = (r0); + globals.bitIndex___6717 = (0); + r0 = pxsim_Array__length(s.wds___6855); s.tmp_1 = r0; r0 = (s.arg1 >> 2); s.tmp_4 = r0; @@ -27276,84 +31293,84 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (2 + s.tmp_0); - s.bytes___4800 = (r0); - s.i___4815 = (0); + s.bytes___6870 = (r0); + s.i___6885 = (0); case 1: - s.tmp_1 = r0 = s.i___4815; - r0 = pxsim_Array__length(s.wds___4784); + s.tmp_1 = r0 = s.i___6885; + r0 = pxsim_Array__length(s.wds___6855); 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 = s.bytes___4800; - r0 = pxsim_Array__getAt(s.wds___4784, s.i___4815); + s.tmp_3 = r0 = s.bytes___6870; + r0 = pxsim_Array__getAt(s.wds___6855, s.i___6885); r0 = r0.fields["commandsLen"]; s.tmp_5 = r0; r0 = (s.tmp_5 << 1); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); - s.bytes___4800 = (r0); - r0 = (s.i___4815 + 1); - s.i___4815 = (r0); + s.bytes___6870 = (r0); + r0 = (s.i___6885 + 1); + s.i___6885 = (r0); { step = 1; continue; } case 2: - r0 = pxsim.control.createBuffer(s.bytes___4800); - globals.ruleBuf___4643 = (r0); - s.tmp_0 = tileworld_writeBuf__P4735_mk(s); + r0 = pxsim.control.createBuffer(s.bytes___6870); + globals.ruleBuf___6715 = (r0); + s.tmp_0 = tileworld_writeBuf__P6807_mk(s); r0 = s.arg0.fields["ruleType"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; s.callLocIdx = 85; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = tileworld_writeBuf__P4735_mk(s); + s.tmp_0 = tileworld_writeBuf__P6807_mk(s); r0 = s.arg0.fields["ruleArg"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; s.callLocIdx = 86; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = tileworld_writeBuf__P4735_mk(s); + s.tmp_0 = tileworld_writeBuf__P6807_mk(s); r0 = s.arg0.fields["transforms"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; s.callLocIdx = 87; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = tileworld_writeBuf__P4735_mk(s); - r0 = pxsim_Array__length(s.wds___4784); + s.tmp_0 = tileworld_writeBuf__P6807_mk(s); + r0 = pxsim_Array__length(s.wds___6855); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; s.callLocIdx = 88; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(2, inline__P4851); + r0 = pxsim_pxtcore_mkAction(2, inline__P6920); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = s.wds___4784; + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = s.wds___6855; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 95; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - s.tmp_0 = helpers_arrayForEach__P60_mk(s); - s.tmp_0.arg0 = s.wds___4784; - s.tmp_0.arg1 = inline__P4877; + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + s.tmp_0.arg0 = s.wds___6855; + s.tmp_0.arg1 = inline__P6946; s.callLocIdx = 97; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - r0 = globals.ruleBuf___4643; + r0 = globals.ruleBuf___6715; return leave(s, r0) default: oops() } } } -tileworld_packRule__P4780.info = {"start":10502,"length":1227,"line":297,"column":4,"endLine":325,"endColumn":5,"fileName":"rule.ts","functionName":"packRule","argumentNames":["r","bgLen","spLen"]} +tileworld_packRule__P3627.info = {"start":10502,"length":1227,"line":297,"column":4,"endLine":325,"endColumn":5,"fileName":"rule.ts","functionName":"packRule","argumentNames":["r","bgLen","spLen"]} -function tileworld_packRule__P4780_mk(s) { +function tileworld_packRule__P3627_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_packRule__P4780, depth: s.depth + 1, + parent: s, fn: tileworld_packRule__P3627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27361,9 +31378,9 @@ function tileworld_packRule__P4780_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - wds___4784: undefined, - bytes___4800: undefined, - i___4815: undefined, + wds___6855: undefined, + bytes___6870: undefined, + i___6885: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -27373,7 +31390,7 @@ function tileworld_packRule__P4780_mk(s) { -function inline__P4789(s) { +function inline__P6859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27396,7 +31413,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_4 = tileworld_isWhenDoTrue__P4527_mk(s); + s.tmp_4 = tileworld_isWhenDoTrue__P3624_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 83; s.pc = 3; return s.tmp_4; case 3: @@ -27412,12 +31429,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P4789.info = {"start":10674,"length":45,"line":299,"column":34,"endLine":299,"endColumn":79,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]} +inline__P6859.info = {"start":10674,"length":45,"line":299,"column":34,"endLine":299,"endColumn":79,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]} -function inline__P4789_mk(s) { +function inline__P6859_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P4789, depth: s.depth + 1, + parent: s, fn: inline__P6859, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27432,7 +31449,7 @@ function inline__P4789_mk(s) { -function inline__P4851(s) { +function inline__P6920(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27446,21 +31463,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_writeBuf__P4735_mk(s); + s.tmp_0 = tileworld_writeBuf__P6807_mk(s); r0 = s.arg0.fields["col"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; s.callLocIdx = 89; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = tileworld_writeBuf__P4735_mk(s); + s.tmp_0 = tileworld_writeBuf__P6807_mk(s); r0 = s.arg0.fields["row"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; s.callLocIdx = 90; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = tileworld_writeBufRaw__P4741_mk(s); + s.tmp_0 = tileworld_writeBufRaw__P6813_mk(s); r0 = s.arg0.fields["bgPred"]; s.tmp_0.arg0 = r0; r0 = (s.caps[0] >> 2); @@ -27468,7 +31485,7 @@ switch (step) { s.callLocIdx = 91; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = tileworld_writeBufRaw__P4741_mk(s); + s.tmp_0 = tileworld_writeBufRaw__P6813_mk(s); r0 = s.arg0.fields["spPred"]; s.tmp_0.arg0 = r0; r0 = (s.caps[1] >> 2); @@ -27476,14 +31493,14 @@ switch (step) { s.callLocIdx = 92; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = tileworld_writeBuf__P4735_mk(s); + s.tmp_0 = tileworld_writeBuf__P6807_mk(s); r0 = s.arg0.fields["dir"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; s.callLocIdx = 93; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = tileworld_writeBuf__P4735_mk(s); + s.tmp_0 = tileworld_writeBuf__P6807_mk(s); r0 = s.arg0.fields["commandsLen"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; @@ -27494,12 +31511,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P4851.info = {"start":11133,"length":370,"line":310,"column":20,"endLine":317,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]} +inline__P6920.info = {"start":11133,"length":370,"line":310,"column":20,"endLine":317,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]} -function inline__P4851_mk(s) { +function inline__P6920_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P4851, depth: s.depth + 1, + parent: s, fn: inline__P6920, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27509,7 +31526,7 @@ function inline__P4851_mk(s) { -function inline__P4877(s) { +function inline__P6946(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27529,7 +31546,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = tileworld_writeBufRaw__P4741_mk(s); + s.tmp_2 = tileworld_writeBufRaw__P6813_mk(s); r0 = s.arg0.fields["commands"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["commandsLen"]; @@ -27545,12 +31562,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P4877.info = {"start":11565,"length":132,"line":319,"column":20,"endLine":323,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]} +inline__P6946.info = {"start":11565,"length":132,"line":319,"column":20,"endLine":323,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]} -function inline__P4877_mk(s) { +function inline__P6946_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P4877, depth: s.depth + 1, + parent: s, fn: inline__P6946, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27563,7 +31580,7 @@ function inline__P4877_mk(s) { -function tileworld_writeBufRaw__P4741(s) { +function tileworld_writeBufRaw__P6813(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27573,43 +31590,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___4744 = undefined; + s.i___6816 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.i___4744 = (0); + s.i___6816 = (0); case 1: - r0 = (s.i___4744 < s.arg1); + r0 = (s.i___6816 < s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = tileworld_writeBuf__P4735_mk(s); - r0 = pxsim.BufferMethods.getUint8(s.arg0, s.i___4744); + s.tmp_1 = tileworld_writeBuf__P6807_mk(s); + r0 = pxsim.BufferMethods.getUint8(s.arg0, s.i___6816); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 8; s.callLocIdx = 80; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - r0 = (s.i___4744 + 1); - s.i___4744 = (r0); + r0 = (s.i___6816 + 1); + s.i___6816 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_writeBufRaw__P4741.info = {"start":9945,"length":141,"line":277,"column":4,"endLine":281,"endColumn":5,"fileName":"rule.ts","functionName":"writeBufRaw","argumentNames":["b","cnt"]} +tileworld_writeBufRaw__P6813.info = {"start":9945,"length":141,"line":277,"column":4,"endLine":281,"endColumn":5,"fileName":"rule.ts","functionName":"writeBufRaw","argumentNames":["b","cnt"]} -function tileworld_writeBufRaw__P4741_mk(s) { +function tileworld_writeBufRaw__P6813_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_writeBufRaw__P4741, depth: s.depth + 1, + parent: s, fn: tileworld_writeBufRaw__P6813, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___4744: undefined, + i___6816: undefined, arg0: undefined, arg1: undefined, } } @@ -27618,7 +31635,7 @@ function tileworld_writeBufRaw__P4741_mk(s) { -function tileworld_writeBuf__P4735(s) { +function tileworld_writeBuf__P6807(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27633,7 +31650,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_readWriteBuf__P4646_mk(s); + s.tmp_0 = tileworld_readWriteBuf__P6718_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = true; @@ -27644,12 +31661,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_writeBuf__P4735.info = {"start":9798,"length":87,"line":272,"column":4,"endLine":274,"endColumn":5,"fileName":"rule.ts","functionName":"writeBuf","argumentNames":["v","bits"]} +tileworld_writeBuf__P6807.info = {"start":9798,"length":87,"line":272,"column":4,"endLine":274,"endColumn":5,"fileName":"rule.ts","functionName":"writeBuf","argumentNames":["v","bits"]} -function tileworld_writeBuf__P4735_mk(s) { +function tileworld_writeBuf__P6807_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_writeBuf__P4735, depth: s.depth + 1, + parent: s, fn: tileworld_writeBuf__P6807, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27660,7 +31677,7 @@ function tileworld_writeBuf__P4735_mk(s) { -function tileworld_readWriteBuf__P4646(s) { +function tileworld_readWriteBuf__P6718(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27670,30 +31687,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.byteIndex___4650 = undefined; - s.shift___4658 = undefined; - s.byte___4668 = undefined; - s.mask___4673 = undefined; - s.i___4674 = undefined; - s.writeMask___4695 = undefined; - s.newVal___4699 = undefined; - s.ret___4722 = undefined; + s.byteIndex___6722 = undefined; + s.shift___6730 = undefined; + s.byte___6740 = undefined; + s.mask___6745 = undefined; + s.i___6746 = undefined; + s.writeMask___6767 = undefined; + s.newVal___6771 = undefined; + s.ret___6794 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = (globals.bitIndex___4645 >> 3); - s.byteIndex___4650 = (r0); - s.tmp_1 = r0 = s.byteIndex___4650; - r0 = pxsim.BufferMethods.length(globals.ruleBuf___4643); + r0 = (globals.bitIndex___6717 >> 3); + s.byteIndex___6722 = (r0); + s.tmp_1 = r0 = s.byteIndex___6722; + r0 = pxsim.BufferMethods.length(globals.ruleBuf___6715); s.tmp_2 = r0; r0 = (s.tmp_1 >= s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = control_assert__P217_mk(s); + s.tmp_3 = control_assert__P319_mk(s); s.tmp_3.arg0 = false; s.tmp_3.arg1 = 43; s.callLocIdx = 76; s.pc = 11; return s.tmp_3; @@ -27701,18 +31718,18 @@ switch (step) { r0 = s.retval; case 1: case 2: - s.tmp_0 = r0 = globals.bitIndex___4645; - r0 = (s.byteIndex___4650 << 3); + s.tmp_0 = r0 = globals.bitIndex___6717; + r0 = (s.byteIndex___6722 << 3); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.shift___4658 = (r0); - r0 = (s.shift___4658 + s.arg1); + s.shift___6730 = (r0); + r0 = (s.shift___6730 + s.arg1); s.tmp_1 = r0; r0 = (s.tmp_1 > 8); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = control_assert__P217_mk(s); + s.tmp_2 = control_assert__P319_mk(s); s.tmp_2.arg0 = false; s.tmp_2.arg1 = 44; s.callLocIdx = 77; s.pc = 12; return s.tmp_2; @@ -27720,52 +31737,52 @@ switch (step) { r0 = s.retval; case 3: case 4: - r0 = pxsim.BufferMethods.getUint8(globals.ruleBuf___4643, s.byteIndex___4650); - s.byte___4668 = (r0); - s.mask___4673 = (0); - s.i___4674 = (0); + r0 = pxsim.BufferMethods.getUint8(globals.ruleBuf___6715, s.byteIndex___6722); + s.byte___6740 = (r0); + s.mask___6745 = (0); + s.i___6746 = (0); case 5: - r0 = (s.i___4674 < s.arg1); + r0 = (s.i___6746 < s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - r0 = (s.mask___4673 << 1); + r0 = (s.mask___6745 << 1); s.tmp_1 = r0; r0 = (1 | s.tmp_1); - s.mask___4673 = (r0); - r0 = (s.i___4674 + 1); - s.i___4674 = (r0); + s.mask___6745 = (r0); + r0 = (s.i___6746 + 1); + s.i___6746 = (r0); { step = 5; continue; } case 6: - r0 = (s.arg0 & s.mask___4673); + r0 = (s.arg0 & s.mask___6745); s.arg0 = (r0); - r0 = (s.mask___4673 << s.shift___4658); - s.mask___4673 = (r0); - r0 = (s.mask___4673 ^ 4294967295); - s.writeMask___4695 = (r0); + r0 = (s.mask___6745 << s.shift___6730); + s.mask___6745 = (r0); + r0 = (s.mask___6745 ^ 4294967295); + s.writeMask___6767 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 7; continue; } - r0 = (s.byte___4668 & s.writeMask___4695); + r0 = (s.byte___6740 & s.writeMask___6767); s.tmp_0 = r0; - r0 = (s.arg0 << s.shift___4658); + r0 = (s.arg0 << s.shift___6730); s.tmp_1 = r0; r0 = (s.tmp_0 | s.tmp_1); - s.newVal___4699 = (r0); - r0 = pxsim.BufferMethods.setUint8(globals.ruleBuf___4643, s.byteIndex___4650, s.newVal___4699); + s.newVal___6771 = (r0); + r0 = pxsim.BufferMethods.setUint8(globals.ruleBuf___6715, s.byteIndex___6722, s.newVal___6771); case 7: case 8: - r0 = (globals.bitIndex___4645 + s.arg1); - globals.bitIndex___4645 = (r0); - r0 = pxsim.BufferMethods.getUint8(globals.ruleBuf___4643, s.byteIndex___4650); - s.byte___4668 = (r0); - r0 = (s.byte___4668 & s.mask___4673); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> s.shift___4658); - s.ret___4722 = (r0); + r0 = (globals.bitIndex___6717 + s.arg1); + globals.bitIndex___6717 = (r0); + r0 = pxsim.BufferMethods.getUint8(globals.ruleBuf___6715, s.byteIndex___6722); + s.byte___6740 = (r0); + r0 = (s.byte___6740 & s.mask___6745); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> s.shift___6730); + s.ret___6794 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 9; continue; } - s.tmp_0 = control_assert__P217_mk(s); - r0 = (s.ret___4722 == s.arg0); + s.tmp_0 = control_assert__P319_mk(s); + r0 = (s.ret___6794 == s.arg0); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 42; s.callLocIdx = 78; s.pc = 13; return s.tmp_0; @@ -27773,29 +31790,29 @@ switch (step) { r0 = s.retval; case 9: case 10: - r0 = s.ret___4722; + r0 = s.ret___6794; return leave(s, r0) default: oops() } } } -tileworld_readWriteBuf__P4646.info = {"start":8703,"length":1089,"line":238,"column":4,"endLine":270,"endColumn":5,"fileName":"rule.ts","functionName":"readWriteBuf","argumentNames":["v","bits","write"]} +tileworld_readWriteBuf__P6718.info = {"start":8703,"length":1089,"line":238,"column":4,"endLine":270,"endColumn":5,"fileName":"rule.ts","functionName":"readWriteBuf","argumentNames":["v","bits","write"]} -function tileworld_readWriteBuf__P4646_mk(s) { +function tileworld_readWriteBuf__P6718_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_readWriteBuf__P4646, depth: s.depth + 1, + parent: s, fn: tileworld_readWriteBuf__P6718, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - byteIndex___4650: undefined, - shift___4658: undefined, - byte___4668: undefined, - mask___4673: undefined, - i___4674: undefined, - writeMask___4695: undefined, - newVal___4699: undefined, - ret___4722: undefined, + byteIndex___6722: undefined, + shift___6730: undefined, + byte___6740: undefined, + mask___6745: undefined, + i___6746: undefined, + writeMask___6767: undefined, + newVal___6771: undefined, + ret___6794: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -27805,7 +31822,7 @@ function tileworld_readWriteBuf__P4646_mk(s) { -function control_assert__P217(s) { +function control_assert__P319(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27826,7 +31843,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = control_fail__P218_mk(s); + s.tmp_2 = control_fail__P320_mk(s); if ((s.arg1) && (s.arg1).vtable) { setupResume(s, 4); pxsim_String__stringConv(s.arg1); @@ -27847,12 +31864,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_assert__P217.info = {"start":2509,"length":141,"line":83,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"assert","argumentNames":["cond","code"]} +control_assert__P319.info = {"start":2509,"length":141,"line":83,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"assert","argumentNames":["cond","code"]} -function control_assert__P217_mk(s) { +function control_assert__P319_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_assert__P217, depth: s.depth + 1, + parent: s, fn: control_assert__P319, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27866,7 +31883,7 @@ function control_assert__P217_mk(s) { -function control_fail__P218(s) { +function control_fail__P320(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27880,12 +31897,12 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = console_log__P258_mk(s); + s.tmp_0 = console_log__P366_mk(s); s.tmp_0.arg0 = "Fatal failure: "; s.callLocIdx = 26; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = console_log__P258_mk(s); + s.tmp_0 = console_log__P366_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 27; s.pc = 2; return s.tmp_0; case 2: @@ -27896,12 +31913,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_fail__P218.info = {"start":2656,"length":155,"line":89,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"fail","argumentNames":["message"]} +control_fail__P320.info = {"start":2656,"length":155,"line":89,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"fail","argumentNames":["message"]} -function control_fail__P218_mk(s) { +function control_fail__P320_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_fail__P218, depth: s.depth + 1, + parent: s, fn: control_fail__P320, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27911,7 +31928,7 @@ function control_fail__P218_mk(s) { -function console_log__P258(s) { +function console_log__P366(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27925,7 +31942,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = console_add__P254_mk(s); + s.tmp_0 = console_add__P362_mk(s); s.tmp_0.arg0 = 1; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 38; s.pc = 1; return s.tmp_0; @@ -27935,12 +31952,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_log__P258.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__P366.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__P258_mk(s) { +function console_log__P366_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P258, depth: s.depth + 1, + parent: s, fn: console_log__P366, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27950,7 +31967,7 @@ function console_log__P258_mk(s) { -function console_add__P254(s) { +function console_add__P362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27960,58 +31977,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___25762 = undefined; - s.i___25771 = undefined; + s.text___27416 = undefined; + s.i___27425 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < globals.minPriority___251); + r0 = (s.arg0 < globals.minPriority___361); 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__P260_mk(s); + s.tmp_1 = console_inspect__P368_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 20; s.callLocIdx = 36; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - s.text___25762 = (r0); - if ((s.text___25762) && (s.text___25762).vtable) { + s.text___27416 = (r0); + if ((s.text___27416) && (s.text___27416).vtable) { setupResume(s, 7); - pxsim_String__stringConv(s.text___25762); + pxsim_String__stringConv(s.text___27416); checkResumeConsumed(); return; - } else { s.retval = (s.text___25762) + ""; } + } else { s.retval = (s.text___27416) + ""; } case 7: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___25762 = (r0); - s.i___25771 = (0); + s.text___27416 = (r0); + s.i___27425 = (0); case 3: - s.tmp_1 = r0 = s.i___25771; - r0 = pxsim_Array__length(globals.listeners___253); + s.tmp_1 = r0 = s.i___27425; + r0 = pxsim_Array__length(globals.listeners___3939); 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___253, s.i___25771); + r0 = pxsim_Array__getAt(globals.listeners___3939, s.i___27425); s.tmp_3.argL = r0; s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___25762; + s.tmp_3.arg1 = s.text___27416; setupLambda(s.tmp_3, s.tmp_3.argL); s.callLocIdx = 37; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___25771 + 1); - s.i___25771 = (r0); + r0 = (s.i___27425 + 1); + s.i___27425 = (r0); { step = 3; continue; } case 4: case 5: @@ -28019,19 +32036,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_add__P254.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__P362.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__P254_mk(s) { +function console_add__P362_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P254, depth: s.depth + 1, + parent: s, fn: console_add__P362, depth: s.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___25762: undefined, - i___25771: undefined, + text___27416: undefined, + i___27425: undefined, arg0: undefined, arg1: undefined, } } @@ -28040,7 +32057,7 @@ function console_add__P254_mk(s) { -function console_inspect__P260(s) { +function inline__P3938(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28050,10 +32067,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___20718 = undefined; - s.asString___20737 = undefined; - s.keys___20749 = undefined; - s.snipped___20753 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim.control.__log(s.arg0, s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P3938.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__P3938_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P3938, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function console_inspect__P368(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.asArr___22483 = undefined; + s.asString___22501 = undefined; + s.keys___22513 = undefined; + s.snipped___22517 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28094,15 +32146,15 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 5; continue; } - s.asArr___20718 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___20718); + s.asArr___22483 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___22483); 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__P52_mk(s); - s.tmp_2.arg0 = s.asArr___20718; + s.tmp_2 = helpers_arrayJoin__P98_mk(s); + s.tmp_2.arg0 = s.asArr___22483; s.tmp_2.arg1 = ","; s.callLocIdx = 39; s.pc = 19; return s.tmp_2; case 19: @@ -28112,9 +32164,9 @@ switch (step) { case 3: r0 = pxsim_String_.mkEmpty(); s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P52_mk(s); - s.tmp_8 = helpers_arraySlice__P65_mk(s); - s.tmp_8.arg0 = s.asArr___20718; + s.tmp_7 = helpers_arrayJoin__P98_mk(s); + s.tmp_8 = helpers_arraySlice__P109_mk(s); + s.tmp_8.arg0 = s.asArr___22483; s.tmp_8.arg1 = 0; s.tmp_8.arg2 = s.arg1; s.callLocIdx = 40; s.pc = 21; return s.tmp_8; @@ -28154,46 +32206,46 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); s.tmp_10 = r0; r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.asString___20737 = (r0); - r0 = (s.asString___20737 != "[object Object]"); + s.asString___22501 = (r0); + r0 = (s.asString___22501 != "[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___20737 != "[Object]"); + r0 = (s.asString___22501 != "[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___20737; + r0 = s.asString___22501; { step = 17; continue; } case 8: case 9: r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___20749 = (r0); - r0 = pxsim_Array__length(s.keys___20749); + s.keys___22513 = (r0); + r0 = pxsim_Array__length(s.keys___22513); s.tmp_0 = r0; r0 = (s.tmp_0 > s.arg1); - s.snipped___20753 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___20753); + s.snipped___22517 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___22517); if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P65_mk(s); - s.tmp_0.arg0 = s.keys___20749; + s.tmp_0 = helpers_arraySlice__P109_mk(s); + s.tmp_0.arg0 = s.keys___22513; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 42; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.keys___20749 = (r0); + s.keys___22513 = (r0); case 10: case 11: - r0 = pxsim_pxtcore_mkAction(1, inline__P20771); + r0 = pxsim_pxtcore_mkAction(1, inline__P22534); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___20753); + r0 = pxsim_numops_toBoolDecr(s.snipped___22517); if (!r0) { step = 12; continue; } r0 = "\n ..."; { step = 13; continue; } @@ -28202,8 +32254,8 @@ switch (step) { case 13: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P63_mk(s); - s.tmp_7.arg0 = s.keys___20749; + s.tmp_7 = helpers_arrayReduce__P107_mk(s); + s.tmp_7.arg0 = s.keys___22513; s.tmp_7.arg1 = s.tmp_0; r0 = pxsim_String_.mkEmpty(); s.tmp_7.arg2 = r0; @@ -28252,12 +32304,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_inspect__P260.info = {"start":2223,"length":1190,"line":80,"column":4,"endLine":113,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]} +console_inspect__P368.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__P260_mk(s) { +function console_inspect__P368_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P260, depth: s.depth + 1, + parent: s, fn: console_inspect__P368, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28270,10 +32322,10 @@ function console_inspect__P260_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - asArr___20718: undefined, - asString___20737: undefined, - keys___20749: undefined, - snipped___20753: undefined, + asArr___22483: undefined, + asString___22501: undefined, + keys___22513: undefined, + snipped___22517: undefined, arg0: undefined, arg1: undefined, } } @@ -28282,7 +32334,7 @@ function console_inspect__P260_mk(s) { -function inline__P20771(s) { +function inline__P22534(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28345,12 +32397,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P20771.info = {"start":3245,"length":61,"line":107,"column":20,"endLine":107,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]} +inline__P22534.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__P20771_mk(s) { +function inline__P22534_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P20771, depth: s.depth + 1, + parent: s, fn: inline__P22534, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28368,7 +32420,7 @@ function inline__P20771_mk(s) { -function helpers_arrayReduce__P63(s) { +function helpers_arrayReduce__P107(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28378,8 +32430,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___20798 = undefined; - s.i___20801 = undefined; + s.len___22561 = undefined; + s.i___22564 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28387,43 +32439,43 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__length(s.arg0); - s.len___20798 = (r0); - s.i___20801 = (0); + s.len___22561 = (r0); + s.i___22564 = (0); case 1: - r0 = (s.i___20801 < s.len___20798); + r0 = (s.i___22564 < s.len___22561); 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___20801); + r0 = pxsim_Array__getAt(s.arg0, s.i___22564); s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___20801; + s.tmp_1.arg2 = s.i___22564; setupLambda(s.tmp_1, s.tmp_1.argL); s.callLocIdx = 9; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.arg2 = (r0); - r0 = (s.i___20801 + 1); - s.i___20801 = (r0); + r0 = (s.i___22564 + 1); + s.i___22564 = (r0); { step = 1; continue; } case 2: r0 = s.arg2; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P63.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__P107.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__P63_mk(s) { +function helpers_arrayReduce__P107_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P63, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P107, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___20798: undefined, - i___20801: undefined, + len___22561: undefined, + i___22564: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28433,7 +32485,7 @@ function helpers_arrayReduce__P63_mk(s) { -function helpers_arrayJoin__P52(s) { +function helpers_arrayJoin__P98(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28443,9 +32495,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___25711 = undefined; - s.len___25712 = undefined; - s.i___25715 = undefined; + s.r___27365 = undefined; + s.len___27366 = undefined; + s.i___27369 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28468,16 +32520,16 @@ switch (step) { case 3: case 4: r0 = pxsim_String_.mkEmpty(); - s.r___25711 = (r0); + s.r___27365 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___25712 = (r0); - s.i___25715 = (0); + s.len___27366 = (r0); + s.i___27369 = (0); case 5: - r0 = (s.i___25715 < s.len___25712); + r0 = (s.i___27369 < s.len___27366); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.i___25715 > 0); + r0 = (s.i___27369 > 0); s.tmp_1 = r0; r0 = pxsim_numops_toBool(s.tmp_1); if (r0) { step = 6; continue; } @@ -28490,12 +32542,12 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 8; continue; } - if ((s.r___25711) && (s.r___25711).vtable) { + if ((s.r___27365) && (s.r___27365).vtable) { setupResume(s, 15); - pxsim_String__stringConv(s.r___25711); + pxsim_String__stringConv(s.r___27365); checkResumeConsumed(); return; - } else { s.retval = (s.r___25711) + ""; } + } else { s.retval = (s.r___27365) + ""; } case 15: r0 = s.retval; s.tmp_3 = r0; @@ -28509,10 +32561,10 @@ switch (step) { r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___25711 = (r0); + s.r___27365 = (r0); case 8: case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___25715); + r0 = pxsim_Array__getAt(s.arg0, s.i___27369); s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; @@ -28521,7 +32573,7 @@ switch (step) { r0 = s.tmp_0; { step = 11; continue; } case 10: - r0 = pxsim_Array__getAt(s.arg0, s.i___25715); + r0 = pxsim_Array__getAt(s.arg0, s.i___27369); s.tmp_2 = r0; r0 = (s.tmp_2 === null); case 11: @@ -28532,16 +32584,16 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); { step = 13; continue; } case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___25715); + r0 = pxsim_Array__getAt(s.arg0, s.i___27369); case 13: // jmp value (already in r0) s.tmp_4 = r0; - if ((s.r___25711) && (s.r___25711).vtable) { + if ((s.r___27365) && (s.r___27365).vtable) { setupResume(s, 17); - pxsim_String__stringConv(s.r___25711); + pxsim_String__stringConv(s.r___27365); checkResumeConsumed(); return; - } else { s.retval = (s.r___25711) + ""; } + } else { s.retval = (s.r___27365) + ""; } case 17: r0 = s.retval; s.tmp_5 = r0; @@ -28555,21 +32607,21 @@ switch (step) { r0 = s.retval; s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___25711 = (r0); - r0 = (s.i___25715 + 1); - s.i___25715 = (r0); + s.r___27365 = (r0); + r0 = (s.i___27369 + 1); + s.i___27369 = (r0); { step = 5; continue; } case 14: - r0 = s.r___25711; + r0 = s.r___27365; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P52.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__P98.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__P52_mk(s) { +function helpers_arrayJoin__P98_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P52, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P98, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28578,9 +32630,9 @@ function helpers_arrayJoin__P52_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - r___25711: undefined, - len___25712: undefined, - i___25715: undefined, + r___27365: undefined, + len___27366: undefined, + i___27369: undefined, arg0: undefined, arg1: undefined, } } @@ -28589,7 +32641,7 @@ function helpers_arrayJoin__P52_mk(s) { -function inline__P252(s) { +function tileworld_ruleediting_RuleDisplay_getKind__P13104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28599,62 +32651,27 @@ 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.control.__log(s.arg0, s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P252.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__P252_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P252, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tileworld_ruleediting_RuleDisplay_getKind__P11269(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.kinds___11334 = undefined; + s.kinds___13168 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getSpriteKinds__P5005_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getSpriteKinds__P3659_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_0.arg0 = r0; s.callLocIdx = 701; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.kinds___11334 = (r0); - r0 = pxsim_Array__length(s.kinds___11334); + s.kinds___13168 = (r0); + r0 = pxsim_Array__length(s.kinds___13168); 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 = pxsim_Array__getAt(s.kinds___11334, 0); + r0 = pxsim_Array__getAt(s.kinds___13168, 0); { step = 3; continue; } case 1: case 2: @@ -28663,16 +32680,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_getKind__P11269.info = {"start":1754,"length":173,"line":42,"column":8,"endLine":47,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getKind","argumentNames":["this"]} +tileworld_ruleediting_RuleDisplay_getKind__P13104.info = {"start":1754,"length":173,"line":42,"column":8,"endLine":47,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getKind","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_getKind__P11269_mk(s) { +function tileworld_ruleediting_RuleDisplay_getKind__P13104_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_getKind__P11269, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_getKind__P13104, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - kinds___11334: undefined, + kinds___13168: undefined, arg0: undefined, } } @@ -28680,7 +32697,7 @@ function tileworld_ruleediting_RuleDisplay_getKind__P11269_mk(s) { -function tileworld_RuleView_getSpriteKinds__P5005(s) { +function tileworld_RuleView_getSpriteKinds__P3659(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28690,29 +32707,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___5702 = undefined; - s.ret___5704 = undefined; - s.i___5706 = undefined; - s.at___5713 = undefined; + s.wd___7728 = undefined; + s.ret___7730 = undefined; + s.i___7732 = undefined; + s.at___7739 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.tmp_0.arg2 = 2; s.callLocIdx = 144; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.wd___5702 = (r0); + s.wd___7728 = (r0); r0 = pxsim_Array__mk(); - s.ret___5704 = (r0); - s.i___5706 = (0); + s.ret___7730 = (r0); + s.i___7732 = (0); case 1: - s.tmp_1 = r0 = s.i___5706; + s.tmp_1 = r0 = s.i___7732; r0 = s.arg0.fields["p"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_spritesI"]; @@ -28723,45 +32740,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_5 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); + s.tmp_5 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.wd___5702; - s.tmp_5.arg2 = s.i___5706; + s.tmp_5.arg1 = s.wd___7728; + s.tmp_5.arg2 = s.i___7732; s.tmp_5.arg3 = 65535; s.callLocIdx = 146; s.pc = 8; return s.tmp_5; case 8: r0 = s.retval; - s.at___5713 = (r0); - r0 = (s.at___5713 == 1); + s.at___7739 = (r0); + r0 = (s.at___7739 == 1); 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.at___5713 == 2); + r0 = (s.at___7739 == 2); 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.ret___5704, s.i___5706); + r0 = pxsim_Array__push(s.ret___7730, s.i___7732); case 4: case 5: - r0 = (s.i___5706 + 1); - s.i___5706 = (r0); + r0 = (s.i___7732 + 1); + s.i___7732 = (r0); { step = 1; continue; } case 6: - r0 = s.ret___5704; + r0 = s.ret___7730; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getSpriteKinds__P5005.info = {"start":8504,"length":410,"line":244,"column":8,"endLine":254,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSpriteKinds","argumentNames":["this"]} +tileworld_RuleView_getSpriteKinds__P3659.info = {"start":8504,"length":410,"line":244,"column":8,"endLine":254,"endColumn":9,"fileName":"ruleview.ts","functionName":"getSpriteKinds","argumentNames":["this"]} -function tileworld_RuleView_getSpriteKinds__P5005_mk(s) { +function tileworld_RuleView_getSpriteKinds__P3659_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getSpriteKinds__P5005, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getSpriteKinds__P3659, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28769,10 +32786,10 @@ function tileworld_RuleView_getSpriteKinds__P5005_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - wd___5702: undefined, - ret___5704: undefined, - i___5706: undefined, - at___5713: undefined, + wd___7728: undefined, + ret___7730: undefined, + i___7732: undefined, + at___7739: undefined, arg0: undefined, } } @@ -28780,7 +32797,7 @@ function tileworld_RuleView_getSpriteKinds__P5005_mk(s) { -function tileworld_ruleediting_RuleDisplay_getDir__P11267(s) { +function tileworld_ruleediting_RuleDisplay_getDir__P13102(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28795,8 +32812,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getDirFromRule__P4987_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getDirFromRule__P3642_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_0.arg0 = r0; s.callLocIdx = 699; s.pc = 1; return s.tmp_0; @@ -28805,12 +32822,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_getDir__P11267.info = {"start":1582,"length":77,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getDir","argumentNames":["this"]} +tileworld_ruleediting_RuleDisplay_getDir__P13102.info = {"start":1582,"length":77,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getDir","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_getDir__P11267_mk(s) { +function tileworld_ruleediting_RuleDisplay_getDir__P13102_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_getDir__P11267, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_getDir__P13102, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28820,7 +32837,7 @@ function tileworld_ruleediting_RuleDisplay_getDir__P11267_mk(s) { -function tileworld_ruleediting_RuleDisplay_getType__P11268(s) { +function tileworld_ruleediting_RuleDisplay_getType__P13103(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28835,7 +32852,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); r0 = s.arg0.fields["rule"]; s.tmp_0 = r0; r0 = s.tmp_0.fields["r"]; @@ -28843,12 +32860,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_getType__P11268.info = {"start":1669,"length":75,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getType","argumentNames":["this"]} +tileworld_ruleediting_RuleDisplay_getType__P13103.info = {"start":1669,"length":75,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"getType","argumentNames":["this"]} -function tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s) { +function tileworld_ruleediting_RuleDisplay_getType__P13103_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_getType__P11268, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_getType__P13103, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28858,7 +32875,7 @@ function tileworld_ruleediting_RuleDisplay_getType__P11268_mk(s) { -function tileworld_ruleediting_RuleEditor_changeRule__P12677(s) { +function tileworld_ruleediting_RuleEditor_changeRule__P14504(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28874,8 +32891,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_Project_saveRule__P6120_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_Project_saveRule__P3700_mk(s); r0 = s.arg0.fields["p"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["rule"]; @@ -28883,7 +32900,7 @@ switch (step) { s.callLocIdx = 1021; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleEditor_resetRule__P12678_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleEditor_resetRule__P14505_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1022; s.pc = 2; return s.tmp_0; @@ -28893,12 +32910,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_changeRule__P12677.info = {"start":8300,"length":116,"line":170,"column":8,"endLine":173,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"changeRule","argumentNames":["this","rv"]} +tileworld_ruleediting_RuleEditor_changeRule__P14504.info = {"start":8300,"length":116,"line":170,"column":8,"endLine":173,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"changeRule","argumentNames":["this","rv"]} -function tileworld_ruleediting_RuleEditor_changeRule__P12677_mk(s) { +function tileworld_ruleediting_RuleEditor_changeRule__P14504_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_changeRule__P12677, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_changeRule__P14504, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28909,7 +32926,7 @@ function tileworld_ruleediting_RuleEditor_changeRule__P12677_mk(s) { -function tileworld_ruleediting_RuleEditor_dirExprUpdate__P12700(s) { +function tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28924,8 +32941,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1191; s.pc = 10; return s.tmp_2; @@ -28939,7 +32956,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1192; s.pc = 11; return s.tmp_4; @@ -28967,7 +32984,7 @@ switch (step) { r0 = s.tmp_6; { step = 6; continue; } case 5: - s.tmp_10 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_10 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_10.arg0 = s.arg0; s.tmp_10.arg1 = true; s.callLocIdx = 1194; s.pc = 12; return s.tmp_10; @@ -28983,12 +33000,12 @@ switch (step) { { step = 9; continue; } case 7: case 8: - s.tmp_12 = tileworld_RuleView_setWitnessDirection__P4999_mk(s); + s.tmp_12 = tileworld_RuleView_setWitnessDirection__P3652_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_12.arg0 = r0; r0 = s.arg0.fields["whenDo"]; s.tmp_12.arg1 = r0; - s.tmp_13 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_13 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_13.arg0 = s.arg0; s.tmp_13.arg1 = true; s.callLocIdx = 1195; s.pc = 14; return s.tmp_13; @@ -29003,12 +33020,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_dirExprUpdate__P12700.info = {"start":22424,"length":293,"line":511,"column":8,"endLine":517,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"dirExprUpdate","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527.info = {"start":22424,"length":293,"line":511,"column":8,"endLine":517,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"dirExprUpdate","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_dirExprUpdate__P12700_mk(s) { +function tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_dirExprUpdate__P12700, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29031,7 +33048,7 @@ function tileworld_ruleediting_RuleEditor_dirExprUpdate__P12700_mk(s) { -function tileworld_RuleView_setWitnessDirection__P4999(s) { +function tileworld_RuleView_setWitnessDirection__P3652(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29048,7 +33065,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; r0 = r0.fields["whenDo"]; s.tmp_1 = r0; @@ -29059,12 +33076,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleView_setWitnessDirection__P4999.info = {"start":6522,"length":107,"line":187,"column":8,"endLine":189,"endColumn":9,"fileName":"ruleview.ts","functionName":"setWitnessDirection","argumentNames":["this","wdid","val"]} +tileworld_RuleView_setWitnessDirection__P3652.info = {"start":6522,"length":107,"line":187,"column":8,"endLine":189,"endColumn":9,"fileName":"ruleview.ts","functionName":"setWitnessDirection","argumentNames":["this","wdid","val"]} -function tileworld_RuleView_setWitnessDirection__P4999_mk(s) { +function tileworld_RuleView_setWitnessDirection__P3652_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_setWitnessDirection__P4999, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_setWitnessDirection__P3652, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29077,7 +33094,7 @@ function tileworld_RuleView_setWitnessDirection__P4999_mk(s) { -function tileworld_ruleediting_RuleEditor_commandUpdate__P12692(s) { +function tileworld_ruleediting_RuleEditor_commandUpdate__P14519(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29087,27 +33104,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tok___14297 = undefined; - s.arg___14304 = undefined; - s.inst___14311 = undefined; - s.len___14330 = undefined; + s.tok___16109 = undefined; + s.arg___16116 = undefined; + s.inst___16123 = undefined; + s.len___16142 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); r0 = s.arg0.fields["ruleTypeMap"]; s.tmp_0 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1127; s.pc = 27; return s.tmp_2; case 27: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1128; s.pc = 28; return s.tmp_4; @@ -29115,17 +33132,17 @@ switch (step) { r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.tok___14297 = (r0); + s.tok___16109 = (r0); r0 = s.arg0.fields["dirMap"]; s.tmp_0 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1129; s.pc = 29; return s.tmp_2; case 29: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1130; s.pc = 30; return s.tmp_4; @@ -29133,8 +33150,8 @@ switch (step) { r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.arg___14304 = (r0); - s.tmp_0 = tileworld_RuleView_getCmdInst__P5000_mk(s); + s.arg___16116 = (r0); + s.tmp_0 = tileworld_RuleView_getCmdInst__P3654_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["whenDo"]; @@ -29144,8 +33161,8 @@ switch (step) { s.callLocIdx = 1131; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; - s.inst___14311 = (r0); - r0 = (s.tok___14297 == 100); + s.inst___16123 = (r0); + r0 = (s.tok___16109 == 100); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } @@ -29156,7 +33173,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 1; continue; } - s.tmp_2 = Sprite_say__P808_mk(s); + s.tmp_2 = Sprite_say__P2071_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = "delete command"; @@ -29170,7 +33187,7 @@ switch (step) { case 2: { step = 4; continue; } case 3: - s.tmp_0 = tileworld_RuleView_removeCommand__P5004_mk(s); + s.tmp_0 = tileworld_RuleView_removeCommand__P3658_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["whenDo"]; @@ -29180,8 +33197,8 @@ switch (step) { s.callLocIdx = 1133; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; - s.len___14330 = (r0); - s.tmp_0 = tileworld_ruleediting_RuleEditor_mainMenu__P12674_mk(s); + s.len___16142 = (r0); + s.tmp_0 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1134; s.pc = 34; return s.tmp_0; case 34: @@ -29189,7 +33206,7 @@ switch (step) { case 4: { step = 26; continue; } case 5: - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1135; s.pc = 35; return s.tmp_2; @@ -29203,7 +33220,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = (s.tok___14297 != 15); + r0 = (s.tok___16109 != 15); case 7: // jmp value (already in r0) s.tmp_3 = r0; @@ -29216,10 +33233,10 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 8; continue; } - s.tmp_5 = Sprite_say__P808_mk(s); + s.tmp_5 = Sprite_say__P2071_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_5.arg0 = r0; - r0 = pxsim_Array__getAt(globals.categoryText___13297, s.tok___14297); + r0 = pxsim_Array__getAt(globals.categoryText___15113, s.tok___16109); s.tmp_5.arg1 = r0; s.tmp_5.arg2 = undefined; s.tmp_5.arg3 = 15; @@ -29231,16 +33248,16 @@ switch (step) { case 9: { step = 13; continue; } case 10: - r0 = (s.tok___14297 != s.inst___14311); + r0 = (s.tok___16109 != s.inst___16123); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_1 = tileworld_ruleediting_RuleEditor_setCommand__P12693_mk(s); + s.tmp_1 = tileworld_ruleediting_RuleEditor_setCommand__P14520_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.tok___14297; - s.tmp_2 = tileworld_ruleediting_RuleEditor_instToStartArg__P12688_mk(s); + s.tmp_1.arg1 = s.tok___16109; + s.tmp_2 = tileworld_ruleediting_RuleEditor_instToStartArg__P14515_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tok___14297; + s.tmp_2.arg1 = s.tok___16109; s.callLocIdx = 1137; s.pc = 38; return s.tmp_2; case 38: r0 = s.retval; @@ -29248,19 +33265,19 @@ switch (step) { s.callLocIdx = 1138; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 4; s.callLocIdx = 1139; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.callLocIdx = 1140; s.pc = 40; return s.tmp_0; case 40: r0 = s.retval; - s.tmp_0 = Sprite_say__P808_mk(s); + s.tmp_0 = Sprite_say__P2071_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = null; @@ -29275,7 +33292,7 @@ switch (step) { case 13: { step = 25; continue; } case 14: - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1142; s.pc = 42; return s.tmp_2; @@ -29289,7 +33306,7 @@ switch (step) { r0 = s.tmp_0; { step = 16; continue; } case 15: - r0 = (s.arg___14304 != 15); + r0 = (s.arg___16116 != 15); case 16: // jmp value (already in r0) s.tmp_3 = r0; @@ -29297,17 +33314,17 @@ switch (step) { if (!r0) { step = 19; continue; } r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 17; continue; } - s.tmp_4 = Sprite_say__P808_mk(s); + s.tmp_4 = Sprite_say__P2071_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_4.arg0 = r0; - s.tmp_6 = tileworld_ruleediting_RuleEditor_instToArgText__P12689_mk(s); + s.tmp_6 = tileworld_ruleediting_RuleEditor_instToArgText__P14516_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.inst___14311; + s.tmp_6.arg1 = s.inst___16123; s.callLocIdx = 1143; s.pc = 44; return s.tmp_6; case 44: r0 = s.retval; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.arg___14304); + r0 = pxsim_Array__getAt(s.tmp_5, s.arg___16116); s.tmp_4.arg1 = r0; s.tmp_4.arg2 = undefined; s.tmp_4.arg3 = 15; @@ -29317,14 +33334,14 @@ switch (step) { r0 = s.retval; { step = 18; continue; } case 17: - s.tmp_0 = tileworld_RuleView_setCmdArg__P5003_mk(s); + s.tmp_0 = tileworld_RuleView_setCmdArg__P3657_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["whenDo"]; s.tmp_0.arg1 = r0; r0 = s.arg0.fields["currentCommand"]; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg___14304; + s.tmp_0.arg3 = s.arg___16116; s.callLocIdx = 1145; s.pc = 45; return s.tmp_0; case 45: r0 = s.retval; @@ -29340,7 +33357,7 @@ switch (step) { r0 = s.tmp_0; { step = 21; continue; } case 20: - s.tmp_3 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_3 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_3.arg0 = s.arg0; s.tmp_3.arg1 = true; s.callLocIdx = 1146; s.pc = 46; return s.tmp_3; @@ -29353,7 +33370,7 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 22; continue; } - s.tmp_5 = tileworld_ruleediting_RuleEditor_mainMenu__P12674_mk(s); + s.tmp_5 = tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s); s.tmp_5.arg0 = s.arg0; s.callLocIdx = 1147; s.pc = 47; return s.tmp_5; case 47: @@ -29367,12 +33384,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_commandUpdate__P12692.info = {"start":17197,"length":1445,"line":388,"column":8,"endLine":419,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"commandUpdate","argumentNames":["this","hover"]} +tileworld_ruleediting_RuleEditor_commandUpdate__P14519.info = {"start":17197,"length":1445,"line":388,"column":8,"endLine":419,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"commandUpdate","argumentNames":["this","hover"]} -function tileworld_ruleediting_RuleEditor_commandUpdate__P12692_mk(s) { +function tileworld_ruleediting_RuleEditor_commandUpdate__P14519_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_commandUpdate__P12692, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_commandUpdate__P14519, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29381,10 +33398,10 @@ function tileworld_ruleediting_RuleEditor_commandUpdate__P12692_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tok___14297: undefined, - arg___14304: undefined, - inst___14311: undefined, - len___14330: undefined, + tok___16109: undefined, + arg___16116: undefined, + inst___16123: undefined, + len___16142: undefined, arg0: undefined, arg1: undefined, } } @@ -29393,7 +33410,7 @@ function tileworld_ruleediting_RuleEditor_commandUpdate__P12692_mk(s) { -function tileworld_RuleView_setCmdArg__P5003(s) { +function tileworld_RuleView_setCmdArg__P3657(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29403,7 +33420,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___5622 = undefined; + s.wd___7648 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -29412,13 +33429,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; r0 = r0.fields["whenDo"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.wd___5622 = (r0); - r0 = s.wd___5622.fields["commandsLen"]; + s.wd___7648 = (r0); + r0 = s.wd___7648.fields["commandsLen"]; s.tmp_1 = r0; r0 = (s.arg2 > s.tmp_1); s.tmp_0 = r0; @@ -29428,13 +33445,13 @@ switch (step) { { step = 5; continue; } case 1: case 2: - r0 = s.wd___5622.fields["commandsLen"]; + r0 = s.wd___7648.fields["commandsLen"]; s.tmp_3 = r0; r0 = (s.arg2 == s.tmp_3); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = s.wd___5622; + s.tmp_4 = r0 = s.wd___7648; r0 = s.tmp_4.fields["commandsLen"]; s.tmp_6 = r0; r0 = (s.tmp_6 + 1); @@ -29442,7 +33459,7 @@ switch (step) { r0 = (s.tmp_4).fields["commandsLen"] = (s.tmp_5); case 3: case 4: - r0 = s.wd___5622.fields["commands"]; + r0 = s.wd___7648.fields["commands"]; s.tmp_0 = r0; r0 = (s.arg2 << 1); s.tmp_2 = r0; @@ -29456,12 +33473,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleView_setCmdArg__P5003.info = {"start":7697,"length":335,"line":221,"column":8,"endLine":229,"endColumn":9,"fileName":"ruleview.ts","functionName":"setCmdArg","argumentNames":["this","wdid","cid","n"]} +tileworld_RuleView_setCmdArg__P3657.info = {"start":7697,"length":335,"line":221,"column":8,"endLine":229,"endColumn":9,"fileName":"ruleview.ts","functionName":"setCmdArg","argumentNames":["this","wdid","cid","n"]} -function tileworld_RuleView_setCmdArg__P5003_mk(s) { +function tileworld_RuleView_setCmdArg__P3657_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_setCmdArg__P5003, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_setCmdArg__P3657, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29470,7 +33487,7 @@ function tileworld_RuleView_setCmdArg__P5003_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - wd___5622: undefined, + wd___7648: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -29481,7 +33498,7 @@ function tileworld_RuleView_setCmdArg__P5003_mk(s) { -function tileworld_ruleediting_RuleEditor_instToArgText__P12689(s) { +function tileworld_ruleediting_RuleEditor_instToArgText__P14516(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29497,7 +33514,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg1; r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); if (r0) { step = 1; continue; } @@ -29506,10 +33523,10 @@ switch (step) { r0 = s.tmp_0; { step = 3; continue; } case 1: - r0 = globals.moveText___11235; + r0 = globals.moveText___3790; { step = 4; continue; } case 2: - r0 = globals.gameText___11261; + r0 = globals.gameText___3795; { step = 4; continue; } case 3: r0 = pxsim_Array__mk(); @@ -29517,12 +33534,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_instToArgText__P12689.info = {"start":15609,"length":266,"line":346,"column":8,"endLine":353,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToArgText","argumentNames":["this","inst"]} +tileworld_ruleediting_RuleEditor_instToArgText__P14516.info = {"start":15609,"length":266,"line":346,"column":8,"endLine":353,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"instToArgText","argumentNames":["this","inst"]} -function tileworld_ruleediting_RuleEditor_instToArgText__P12689_mk(s) { +function tileworld_ruleediting_RuleEditor_instToArgText__P14516_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_instToArgText__P12689, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_instToArgText__P14516, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29533,7 +33550,7 @@ function tileworld_ruleediting_RuleEditor_instToArgText__P12689_mk(s) { -function tileworld_ruleediting_RuleEditor_setCommand__P12693(s) { +function tileworld_ruleediting_RuleEditor_setCommand__P14520(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29550,8 +33567,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_setCmdInst__P5002_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_setCmdInst__P3656_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["whenDo"]; @@ -29562,7 +33579,7 @@ switch (step) { s.callLocIdx = 1148; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = tileworld_RuleView_setCmdArg__P5003_mk(s); + s.tmp_0 = tileworld_RuleView_setCmdArg__P3657_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["whenDo"]; @@ -29577,12 +33594,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_setCommand__P12693.info = {"start":18652,"length":203,"line":421,"column":8,"endLine":424,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"setCommand","argumentNames":["this","inst","arg"]} +tileworld_ruleediting_RuleEditor_setCommand__P14520.info = {"start":18652,"length":203,"line":421,"column":8,"endLine":424,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"setCommand","argumentNames":["this","inst","arg"]} -function tileworld_ruleediting_RuleEditor_setCommand__P12693_mk(s) { +function tileworld_ruleediting_RuleEditor_setCommand__P14520_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_setCommand__P12693, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_setCommand__P14520, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29594,7 +33611,7 @@ function tileworld_ruleediting_RuleEditor_setCommand__P12693_mk(s) { -function tileworld_RuleView_setCmdInst__P5002(s) { +function tileworld_RuleView_setCmdInst__P3656(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29604,7 +33621,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___5592 = undefined; + s.wd___7618 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -29613,13 +33630,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; r0 = r0.fields["whenDo"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.wd___5592 = (r0); - r0 = s.wd___5592.fields["commandsLen"]; + s.wd___7618 = (r0); + r0 = s.wd___7618.fields["commandsLen"]; s.tmp_1 = r0; r0 = (s.arg2 > s.tmp_1); s.tmp_0 = r0; @@ -29629,13 +33646,13 @@ switch (step) { { step = 5; continue; } case 1: case 2: - r0 = s.wd___5592.fields["commandsLen"]; + r0 = s.wd___7618.fields["commandsLen"]; s.tmp_3 = r0; r0 = (s.arg2 == s.tmp_3); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = s.wd___5592; + s.tmp_4 = r0 = s.wd___7618; r0 = s.tmp_4.fields["commandsLen"]; s.tmp_6 = r0; r0 = (s.tmp_6 + 1); @@ -29643,7 +33660,7 @@ switch (step) { r0 = (s.tmp_4).fields["commandsLen"] = (s.tmp_5); case 3: case 4: - r0 = s.wd___5592.fields["commands"]; + r0 = s.wd___7618.fields["commands"]; s.tmp_0 = r0; r0 = (s.arg2 << 1); s.tmp_1 = r0; @@ -29655,12 +33672,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleView_setCmdInst__P5002.info = {"start":7355,"length":332,"line":211,"column":8,"endLine":219,"endColumn":9,"fileName":"ruleview.ts","functionName":"setCmdInst","argumentNames":["this","wdid","cid","n"]} +tileworld_RuleView_setCmdInst__P3656.info = {"start":7355,"length":332,"line":211,"column":8,"endLine":219,"endColumn":9,"fileName":"ruleview.ts","functionName":"setCmdInst","argumentNames":["this","wdid","cid","n"]} -function tileworld_RuleView_setCmdInst__P5002_mk(s) { +function tileworld_RuleView_setCmdInst__P3656_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_setCmdInst__P5002, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_setCmdInst__P3656, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29669,7 +33686,7 @@ function tileworld_RuleView_setCmdInst__P5002_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - wd___5592: undefined, + wd___7618: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -29680,7 +33697,7 @@ function tileworld_RuleView_setCmdInst__P5002_mk(s) { -function tileworld_RuleView_removeCommand__P5004(s) { +function tileworld_RuleView_removeCommand__P3658(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29690,8 +33707,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___5654 = undefined; - s.i___5669 = undefined; + s.wd___7680 = undefined; + s.i___7695 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -29699,13 +33716,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; r0 = r0.fields["whenDo"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.wd___5654 = (r0); - r0 = s.wd___5654.fields["commandsLen"]; + s.wd___7680 = (r0); + r0 = s.wd___7680.fields["commandsLen"]; s.tmp_1 = r0; r0 = (s.tmp_1 == 0); s.tmp_0 = r0; @@ -29714,7 +33731,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.wd___5654.fields["commandsLen"]; + r0 = s.wd___7680.fields["commandsLen"]; s.tmp_2 = r0; r0 = (s.arg2 >= s.tmp_2); case 2: @@ -29722,14 +33739,14 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - r0 = s.wd___5654.fields["commandsLen"]; + r0 = s.wd___7680.fields["commandsLen"]; { step = 7; continue; } case 3: case 4: r0 = (s.arg2 << 1); - s.i___5669 = (r0); + s.i___7695 = (r0); case 5: - s.tmp_1 = r0 = s.i___5669; + s.tmp_1 = r0 = s.i___7695; r0 = (3 << 1); s.tmp_3 = r0; r0 = (s.tmp_3 - 1); @@ -29738,37 +33755,37 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - r0 = s.wd___5654.fields["commands"]; + r0 = s.wd___7680.fields["commands"]; s.tmp_4 = r0; - s.tmp_5 = r0 = s.i___5669; - r0 = s.wd___5654.fields["commands"]; + s.tmp_5 = r0 = s.i___7695; + r0 = s.wd___7680.fields["commands"]; s.tmp_7 = r0; - r0 = (s.i___5669 + 2); + r0 = (s.i___7695 + 2); s.tmp_8 = r0; r0 = pxsim.BufferMethods.getUint8(s.tmp_7, s.tmp_8); s.tmp_6 = r0; r0 = pxsim.BufferMethods.setUint8(s.tmp_4, s.tmp_5, s.tmp_6); - r0 = (s.i___5669 + 1); - s.i___5669 = (r0); + r0 = (s.i___7695 + 1); + s.i___7695 = (r0); { step = 5; continue; } case 6: - s.tmp_0 = r0 = s.wd___5654; + s.tmp_0 = r0 = s.wd___7680; r0 = s.tmp_0.fields["commandsLen"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1 = r0; r0 = (s.tmp_0).fields["commandsLen"] = (s.tmp_1); - r0 = s.wd___5654.fields["commandsLen"]; + r0 = s.wd___7680.fields["commandsLen"]; case 7: return leave(s, r0) default: oops() } } } -tileworld_RuleView_removeCommand__P5004.info = {"start":8042,"length":419,"line":231,"column":8,"endLine":240,"endColumn":9,"fileName":"ruleview.ts","functionName":"removeCommand","argumentNames":["this","wdid","cid"]} +tileworld_RuleView_removeCommand__P3658.info = {"start":8042,"length":419,"line":231,"column":8,"endLine":240,"endColumn":9,"fileName":"ruleview.ts","functionName":"removeCommand","argumentNames":["this","wdid","cid"]} -function tileworld_RuleView_removeCommand__P5004_mk(s) { +function tileworld_RuleView_removeCommand__P3658_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_removeCommand__P5004, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_removeCommand__P3658, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29779,8 +33796,8 @@ function tileworld_RuleView_removeCommand__P5004_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - wd___5654: undefined, - i___5669: undefined, + wd___7680: undefined, + i___7695: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -29790,7 +33807,7 @@ function tileworld_RuleView_removeCommand__P5004_mk(s) { -function tileworld_ruleediting_RuleEditor_attrUpdate__P12697(s) { +function tileworld_ruleediting_RuleEditor_attrUpdate__P14524(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29800,17 +33817,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collision22___14548 = undefined; - s.a___14571 = undefined; - s.i___14580 = undefined; - s.m___14608 = undefined; - s.val___14636 = undefined; + s.collision22___16360 = undefined; + s.a___16383 = undefined; + s.i___16392 = undefined; + s.m___16420 = undefined; + s.val___16448 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); r0 = s.arg0.fields["rule"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["r"]; @@ -29856,8 +33873,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_12 = r0; - s.collision22___14548 = (s.tmp_12); - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.collision22___16360 = (s.tmp_12); + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1169; s.pc = 32; return s.tmp_2; @@ -29868,7 +33885,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_3.arg0 = s.arg0; s.tmp_3.arg1 = true; s.callLocIdx = 1170; s.pc = 33; return s.tmp_3; @@ -29880,15 +33897,15 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_4 = r0; - s.a___14571 = (s.tmp_4); - r0 = (s.a___14571 == 9); + s.a___16383 = (s.tmp_4); + r0 = (s.a___16383 == 9); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.i___14580 = (0); + s.i___16392 = (0); case 7: - s.tmp_1 = r0 = s.i___14580; - s.tmp_3 = tileworld_Project_allCnt__P6119_mk(s); + s.tmp_1 = r0 = s.i___16392; + s.tmp_3 = tileworld_Project_allCnt__P3693_mk(s); r0 = s.arg0.fields["p"]; s.tmp_3.arg0 = r0; s.callLocIdx = 1171; s.pc = 34; return s.tmp_3; @@ -29899,29 +33916,29 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.tmp_4 = tileworld_ruleediting_RuleEditor_setAttr__P12698_mk(s); + s.tmp_4 = tileworld_ruleediting_RuleEditor_setAttr__P14525_mk(s); s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___14580; + s.tmp_4.arg1 = s.i___16392; s.tmp_4.arg2 = 0; s.tmp_4.arg3 = false; s.callLocIdx = 1172; s.pc = 35; return s.tmp_4; case 35: r0 = s.retval; - r0 = (s.i___14580 + 1); - s.i___14580 = (r0); + r0 = (s.i___16392 + 1); + s.i___16392 = (r0); { step = 7; continue; } case 8: { step = 31; continue; } case 9: case 10: - r0 = (s.a___14571 != -1); + r0 = (s.a___16383 != -1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 11; continue; } r0 = s.tmp_0; { step = 12; continue; } case 11: - r0 = (s.a___14571 < 3); + r0 = (s.a___16383 < 3); case 12: // jmp value (already in r0) s.tmp_1 = r0; @@ -29941,16 +33958,16 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 15; continue; } - s.tmp_5 = tileworld_ruleediting_RuleEditor_selectAttr__P12696_mk(s); + s.tmp_5 = tileworld_ruleediting_RuleEditor_selectAttr__P14523_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.a___14571; + s.tmp_5.arg1 = s.a___16383; s.callLocIdx = 1174; s.pc = 36; return s.tmp_5; case 36: r0 = s.retval; { step = 31; continue; } case 15: case 16: - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1175; s.pc = 37; return s.tmp_2; @@ -29961,7 +33978,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 17; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_3.arg0 = s.arg0; s.tmp_3.arg1 = true; s.callLocIdx = 1176; s.pc = 38; return s.tmp_3; @@ -29973,15 +33990,15 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_4 = r0; - s.m___14608 = (s.tmp_4); - r0 = (s.m___14608 != -1); + s.m___16420 = (s.tmp_4); + r0 = (s.m___16420 != -1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 19; continue; } r0 = s.tmp_0; { step = 26; continue; } case 19: - r0 = pxsim_numops_toBoolDecr(s.collision22___14548); + r0 = pxsim_numops_toBoolDecr(s.collision22___16360); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -29990,8 +34007,8 @@ switch (step) { r0 = s.tmp_1; { step = 21; continue; } case 20: - s.tmp_3 = r0 = s.m___14608; - s.tmp_5 = tileworld_Project_allCnt__P6119_mk(s); + s.tmp_3 = r0 = s.m___16420; + s.tmp_5 = tileworld_Project_allCnt__P3693_mk(s); r0 = s.arg0.fields["p"]; s.tmp_5.arg0 = r0; s.callLocIdx = 1177; s.pc = 39; return s.tmp_5; @@ -30007,13 +34024,13 @@ switch (step) { r0 = s.tmp_6; { step = 25; continue; } case 22: - s.tmp_7 = r0 = s.collision22___14548; + s.tmp_7 = r0 = s.collision22___16360; r0 = pxsim_numops_toBool(s.tmp_7); if (r0) { step = 23; continue; } r0 = s.tmp_7; { step = 24; continue; } case 23: - s.tmp_8 = r0 = s.m___14608; + s.tmp_8 = r0 = s.m___16420; r0 = s.arg0.fields["p"]; s.tmp_10 = r0; r0 = s.tmp_10.fields["_backgroundsI"]; @@ -30036,18 +34053,18 @@ switch (step) { if (!r0) { step = 29; continue; } r0 = s.arg0.fields["attrSelected"]; s.tmp_15 = r0; - r0 = pxsim_Array__getAt(globals.attrValues___11248, s.tmp_15); - s.val___14636 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collision22___14548); + r0 = pxsim_Array__getAt(globals.attrValues___3792, s.tmp_15); + s.val___16448 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collision22___16360); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 27; continue; } - r0 = s.m___14608; + r0 = s.m___16420; { step = 28; continue; } case 27: - s.tmp_2 = r0 = s.m___14608; + s.tmp_2 = r0 = s.m___16420; r0 = s.arg0.fields["p"]; s.tmp_4 = r0; r0 = s.tmp_4.fields["_backgroundsI"]; @@ -30058,10 +34075,10 @@ switch (step) { case 28: // jmp value (already in r0) s.tmp_6 = r0; - s.tmp_7 = tileworld_ruleediting_RuleEditor_setAttr__P12698_mk(s); + s.tmp_7 = tileworld_ruleediting_RuleEditor_setAttr__P14525_mk(s); s.tmp_7.arg0 = s.arg0; s.tmp_7.arg1 = s.tmp_6; - s.tmp_7.arg2 = s.val___14636; + s.tmp_7.arg2 = s.val___16448; s.tmp_7.arg3 = true; s.callLocIdx = 1180; s.pc = 40; return s.tmp_7; case 40: @@ -30073,12 +34090,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_attrUpdate__P12697.info = {"start":20685,"length":967,"line":471,"column":8,"endLine":491,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"attrUpdate","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_attrUpdate__P14524.info = {"start":20685,"length":967,"line":471,"column":8,"endLine":491,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"attrUpdate","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_attrUpdate__P12697_mk(s) { +function tileworld_ruleediting_RuleEditor_attrUpdate__P14524_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_attrUpdate__P12697, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_attrUpdate__P14524, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30096,11 +34113,11 @@ function tileworld_ruleediting_RuleEditor_attrUpdate__P12697_mk(s) { tmp_13: undefined, tmp_14: undefined, tmp_15: undefined, - collision22___14548: undefined, - a___14571: undefined, - i___14580: undefined, - m___14608: undefined, - val___14636: undefined, + collision22___16360: undefined, + a___16383: undefined, + i___16392: undefined, + m___16420: undefined, + val___16448: undefined, arg0: undefined, } } @@ -30108,7 +34125,7 @@ function tileworld_ruleediting_RuleEditor_attrUpdate__P12697_mk(s) { -function tileworld_ruleediting_RuleEditor_setAttr__P12698(s) { +function tileworld_ruleediting_RuleEditor_setAttr__P14525(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30118,7 +34135,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.whenDo___14655 = undefined; + s.whenDo___16467 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30127,18 +34144,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_0.arg0 = r0; - s.tmp_1 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_1 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = false; s.callLocIdx = 1181; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_3 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_3 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_3.arg0 = s.arg0; s.tmp_3.arg1 = false; s.callLocIdx = 1182; s.pc = 7; return s.tmp_3; @@ -30150,19 +34167,19 @@ switch (step) { s.callLocIdx = 1183; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.whenDo___14655 = (r0); + s.whenDo___16467 = (r0); s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = tileworld_AllExport_getSetAttr__P6029_mk(s); + s.tmp_2 = tileworld_AllExport_getSetAttr__P3676_mk(s); r0 = s.arg0.fields["all"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["rule"]; s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.whenDo___14655; + s.tmp_2.arg2 = s.whenDo___16467; s.tmp_2.arg3 = s.arg1; s.tmp_2.arg4 = 65535; s.callLocIdx = 1184; s.pc = 8; return s.tmp_2; @@ -30178,12 +34195,12 @@ switch (step) { s.arg2 = (0); case 3: case 4: - s.tmp_0 = tileworld_AllExport_getSetAttr__P6029_mk(s); + s.tmp_0 = tileworld_AllExport_getSetAttr__P3676_mk(s); r0 = s.arg0.fields["all"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["rule"]; s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.whenDo___14655; + s.tmp_0.arg2 = s.whenDo___16467; s.tmp_0.arg3 = s.arg1; s.tmp_0.arg4 = s.arg2; s.callLocIdx = 1185; s.pc = 9; return s.tmp_0; @@ -30193,18 +34210,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_setAttr__P12698.info = {"start":21662,"length":336,"line":493,"column":8,"endLine":498,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"setAttr","argumentNames":["this","m","val","toggle"]} +tileworld_ruleediting_RuleEditor_setAttr__P14525.info = {"start":21662,"length":336,"line":493,"column":8,"endLine":498,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"setAttr","argumentNames":["this","m","val","toggle"]} -function tileworld_ruleediting_RuleEditor_setAttr__P12698_mk(s) { +function tileworld_ruleediting_RuleEditor_setAttr__P14525_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_setAttr__P12698, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_setAttr__P14525, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - whenDo___14655: undefined, + whenDo___16467: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -30215,7 +34232,7 @@ function tileworld_ruleediting_RuleEditor_setAttr__P12698_mk(s) { -function tileworld_RuleView_getWhenDoRow__P4991(s) { +function tileworld_RuleView_getWhenDoRow__P3646(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30231,7 +34248,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; r0 = r0.fields["whenDo"]; s.tmp_0 = r0; @@ -30240,12 +34257,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleView_getWhenDoRow__P4991.info = {"start":3939,"length":93,"line":118,"column":8,"endLine":120,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDoRow","argumentNames":["this","whendo"]} +tileworld_RuleView_getWhenDoRow__P3646.info = {"start":3939,"length":93,"line":118,"column":8,"endLine":120,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDoRow","argumentNames":["this","whendo"]} -function tileworld_RuleView_getWhenDoRow__P4991_mk(s) { +function tileworld_RuleView_getWhenDoRow__P3646_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getWhenDoRow__P4991, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getWhenDoRow__P3646, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30256,7 +34273,7 @@ function tileworld_RuleView_getWhenDoRow__P4991_mk(s) { -function tileworld_RuleView_getWhenDoCol__P4990(s) { +function tileworld_RuleView_getWhenDoCol__P3645(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30272,7 +34289,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["r"]; r0 = r0.fields["whenDo"]; s.tmp_0 = r0; @@ -30281,12 +34298,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleView_getWhenDoCol__P4990.info = {"start":3836,"length":93,"line":114,"column":8,"endLine":116,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDoCol","argumentNames":["this","whendo"]} +tileworld_RuleView_getWhenDoCol__P3645.info = {"start":3836,"length":93,"line":114,"column":8,"endLine":116,"endColumn":9,"fileName":"ruleview.ts","functionName":"getWhenDoCol","argumentNames":["this","whendo"]} -function tileworld_RuleView_getWhenDoCol__P4990_mk(s) { +function tileworld_RuleView_getWhenDoCol__P3645_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getWhenDoCol__P4990, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getWhenDoCol__P3645, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30297,7 +34314,7 @@ function tileworld_RuleView_getWhenDoCol__P4990_mk(s) { -function tileworld_ruleediting_RuleDisplay_active__P11278(s) { +function tileworld_ruleediting_RuleDisplay_active__P13113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30314,7 +34331,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); r0 = s.arg0.fields["collideCol"]; s.tmp_1 = r0; r0 = (s.tmp_1 != -1); @@ -30365,12 +34382,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_active__P11278.info = {"start":5751,"length":231,"line":136,"column":8,"endLine":141,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"active","argumentNames":["this","col","row"]} +tileworld_ruleediting_RuleDisplay_active__P13113.info = {"start":5751,"length":231,"line":136,"column":8,"endLine":141,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"active","argumentNames":["this","col","row"]} -function tileworld_ruleediting_RuleDisplay_active__P11278_mk(s) { +function tileworld_ruleediting_RuleDisplay_active__P13113_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_active__P11278, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_active__P13113, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30390,7 +34407,7 @@ function tileworld_ruleediting_RuleDisplay_active__P11278_mk(s) { -function tileworld_ruleediting_RuleEditor_inWhenPredicate__P12682(s) { +function tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30405,8 +34422,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1055; s.pc = 7; return s.tmp_2; @@ -30420,7 +34437,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1056; s.pc = 8; return s.tmp_4; @@ -30436,7 +34453,7 @@ switch (step) { r0 = s.tmp_5; { step = 4; continue; } case 3: - s.tmp_8 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_8 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_8.arg0 = s.arg0; s.tmp_8.arg1 = true; s.callLocIdx = 1057; s.pc = 9; return s.tmp_8; @@ -30454,7 +34471,7 @@ switch (step) { r0 = s.tmp_9; { step = 6; continue; } case 5: - s.tmp_12 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_12 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_12.arg0 = s.arg0; s.tmp_12.arg1 = true; s.callLocIdx = 1058; s.pc = 10; return s.tmp_12; @@ -30471,12 +34488,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_inWhenPredicate__P12682.info = {"start":10220,"length":176,"line":218,"column":8,"endLine":221,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"inWhenPredicate","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509.info = {"start":10220,"length":176,"line":218,"column":8,"endLine":221,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"inWhenPredicate","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_inWhenPredicate__P12682_mk(s) { +function tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_inWhenPredicate__P12682, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30499,7 +34516,7 @@ function tileworld_ruleediting_RuleEditor_inWhenPredicate__P12682_mk(s) { -function tileworld_ruleediting_RuleEditor_resetRule__P12678(s) { +function tileworld_ruleediting_RuleEditor_resetRule__P14505(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30515,18 +34532,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); r0 = (s.arg0).fields["rule"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_resetRule__P12678.info = {"start":8426,"length":78,"line":175,"column":8,"endLine":177,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"resetRule","argumentNames":["this","rv"]} +tileworld_ruleediting_RuleEditor_resetRule__P14505.info = {"start":8426,"length":78,"line":175,"column":8,"endLine":177,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"resetRule","argumentNames":["this","rv"]} -function tileworld_ruleediting_RuleEditor_resetRule__P12678_mk(s) { +function tileworld_ruleediting_RuleEditor_resetRule__P14505_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_resetRule__P12678, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_resetRule__P14505, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -30536,7 +34553,7 @@ function tileworld_ruleediting_RuleEditor_resetRule__P12678_mk(s) { -function tileworld_RuleView_getRuleId__P4982(s) { +function tileworld_RuleView_getRuleId__P3637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30551,17 +34568,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); r0 = s.arg0.fields["rid"]; return leave(s, r0) default: oops() } } } -tileworld_RuleView_getRuleId__P4982.info = {"start":1714,"length":59,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleId","argumentNames":["this"]} +tileworld_RuleView_getRuleId__P3637.info = {"start":1714,"length":59,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"ruleview.ts","functionName":"getRuleId","argumentNames":["this"]} -function tileworld_RuleView_getRuleId__P4982_mk(s) { +function tileworld_RuleView_getRuleId__P3637_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_getRuleId__P4982, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_getRuleId__P3637, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30570,7 +34587,7 @@ function tileworld_RuleView_getRuleId__P4982_mk(s) { -function tileworld_Project_removeRule__P6122(s) { +function tileworld_Project_removeRule__P3702(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30580,31 +34597,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___6297 = undefined; + s.r___8274 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P6301); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P8278); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFind__P62_mk(s); + s.tmp_1 = helpers_arrayFind__P106_mk(s); r0 = s.arg0.fields["rules"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 185; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.r___6297 = (r0); - r0 = pxsim_numops_toBoolDecr(s.r___6297); + s.r___8274 = (r0); + r0 = pxsim_numops_toBoolDecr(s.r___8274); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["rules"]; s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.r___6297); - s.tmp_0 = settings_remove__P620_mk(s); + r0 = pxsim_Array_.removeElement(s.tmp_0, s.r___8274); + s.tmp_0 = settings_remove__P1833_mk(s); r0 = s.arg0.fields["prefix"]; s.tmp_4 = r0; if ((s.tmp_4) && (s.tmp_4).vtable) { @@ -30616,12 +34633,12 @@ switch (step) { case 5: r0 = s.retval; s.tmp_3 = r0; - if ((globals.RuleKey___6323) && (globals.RuleKey___6323).vtable) { + if ((globals.RuleKey___8299) && (globals.RuleKey___8299).vtable) { setupResume(s, 6); - pxsim_String__stringConv(globals.RuleKey___6323); + pxsim_String__stringConv(globals.RuleKey___8299); checkResumeConsumed(); return; - } else { s.retval = (globals.RuleKey___6323) + ""; } + } else { s.retval = (globals.RuleKey___8299) + ""; } case 6: r0 = s.retval; s.tmp_5 = r0; @@ -30658,12 +34675,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_removeRule__P6122.info = {"start":4811,"length":259,"line":138,"column":8,"endLine":144,"endColumn":9,"fileName":"project.ts","functionName":"removeRule","argumentNames":["this","rid"]} +tileworld_Project_removeRule__P3702.info = {"start":4811,"length":259,"line":138,"column":8,"endLine":144,"endColumn":9,"fileName":"project.ts","functionName":"removeRule","argumentNames":["this","rid"]} -function tileworld_Project_removeRule__P6122_mk(s) { +function tileworld_Project_removeRule__P3702_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_removeRule__P6122, depth: s.depth + 1, + parent: s, fn: tileworld_Project_removeRule__P3702, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30673,7 +34690,7 @@ function tileworld_Project_removeRule__P6122_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - r___6297: undefined, + r___8274: undefined, arg0: undefined, arg1: undefined, } } @@ -30682,7 +34699,7 @@ function tileworld_Project_removeRule__P6122_mk(s) { -function inline__P6301(s) { +function inline__P8278(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30702,12 +34719,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P6301.info = {"start":4880,"length":25,"line":139,"column":36,"endLine":139,"endColumn":61,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]} +inline__P8278.info = {"start":4880,"length":25,"line":139,"column":36,"endLine":139,"endColumn":61,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]} -function inline__P6301_mk(s) { +function inline__P8278_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6301, depth: s.depth + 1, + parent: s, fn: inline__P8278, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30717,7 +34734,7 @@ function inline__P6301_mk(s) { -function tileworld_ruleediting_RuleEditor_currentRules__P12680(s) { +function tileworld_ruleediting_RuleEditor_currentRules__P14507(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30732,8 +34749,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_Project_getRulesForSpriteKind__P6130_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_Project_getRulesForSpriteKind__P3708_mk(s); r0 = s.arg0.fields["p"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["kind"]; @@ -30744,12 +34761,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_currentRules__P12680.info = {"start":8625,"length":163,"line":184,"column":8,"endLine":187,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"currentRules","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_currentRules__P14507.info = {"start":8625,"length":163,"line":184,"column":8,"endLine":187,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"currentRules","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_currentRules__P12680_mk(s) { +function tileworld_ruleediting_RuleEditor_currentRules__P14507_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_currentRules__P12680, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_currentRules__P14507, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30759,7 +34776,7 @@ function tileworld_ruleediting_RuleEditor_currentRules__P12680_mk(s) { -function Sprite_say__P808(s) { +function Sprite_say__P2071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30769,24 +34786,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.textToDisplay___19620 = undefined; - s.SAYKEY___19629 = undefined; - s.key___19631 = undefined; - s.pixelsOffset___19653 = undefined; - s.holdTextSeconds___19654 = undefined; - s.bubblePadding___19655 = undefined; - s.maxTextWidth___19656 = undefined; - s.font___19657 = undefined; - s.startX___19660 = undefined; - s.startY___19661 = undefined; - s.bubbleWidth___19662 = undefined; - s.maxOffset___19670 = undefined; - s.bubbleOffset___19678 = undefined; - s.needsRedraw___19683 = undefined; - s.speed___19684 = undefined; - s.currentScene___19685 = undefined; - s.imgh___19732 = undefined; - s.sayImg___19754 = undefined; + s.textToDisplay___21391 = undefined; + s.SAYKEY___21399 = undefined; + s.key___21401 = undefined; + s.pixelsOffset___21423 = undefined; + s.holdTextSeconds___21424 = undefined; + s.bubblePadding___21425 = undefined; + s.maxTextWidth___21426 = undefined; + s.font___21427 = undefined; + s.startX___21430 = undefined; + s.startY___21431 = undefined; + s.bubbleWidth___21432 = undefined; + s.maxOffset___21440 = undefined; + s.bubbleOffset___21448 = undefined; + s.needsRedraw___21453 = undefined; + s.speed___21454 = undefined; + s.currentScene___21455 = undefined; + s.imgh___21502 = undefined; + s.sayImg___21524 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30796,7 +34813,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg2); @@ -30812,7 +34829,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = Sprite_destroy__P821_mk(s); + s.tmp_1 = Sprite_destroy__P2084_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; @@ -30826,9 +34843,9 @@ switch (step) { { step = 27; continue; } case 3: case 4: - s.tmp_0 = helpers_arrayJoin__P52_mk(s); - s.tmp_1 = helpers_stringSplit__P70_mk(s); - s.tmp_2 = console_inspect__P260_mk(s); + s.tmp_0 = helpers_arrayJoin__P98_mk(s); + s.tmp_1 = helpers_stringSplit__P114_mk(s); + s.tmp_2 = console_inspect__P368_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = 20; s.callLocIdx = 298; s.pc = 31; return s.tmp_2; @@ -30845,21 +34862,21 @@ switch (step) { s.callLocIdx = 300; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - s.textToDisplay___19620 = (r0); - s.SAYKEY___19629 = ("__saykey"); + s.textToDisplay___21391 = (r0); + s.SAYKEY___21399 = ("__saykey"); r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "text", s.textToDisplay___19620); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "text", s.textToDisplay___21391); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "textColor", s.arg3); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "textBoxColor", s.arg4); - s.tmp_1 = JSON_stringify__P277_mk(s); + s.tmp_1 = JSON_stringify__P373_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = null; s.tmp_1.arg2 = 0; s.callLocIdx = 301; s.pc = 32; return s.tmp_1; case 32: r0 = s.retval; - s.key___19631 = (r0); + s.key___21401 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.arg2); s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); @@ -30878,16 +34895,16 @@ switch (step) { r0 = s.tmp_2; { step = 8; continue; } case 7: - s.tmp_5 = Sprite_data__P786_mk(s); + s.tmp_5 = Sprite_data__P2038_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_5.arg0 = r0; s.callLocIdx = 302; s.pc = 33; return s.tmp_5; case 33: r0 = s.retval; s.tmp_4 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_4, s.SAYKEY___19629); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_4, s.SAYKEY___21399); s.tmp_3 = r0; - r0 = (s.tmp_3 == s.key___19631); + r0 = (s.tmp_3 == s.key___21401); case 8: // jmp value (already in r0) s.tmp_6 = r0; @@ -30897,28 +34914,28 @@ switch (step) { case 9: case 10: r0 = pxsim_pxtrt.mklocRef(); - s.pixelsOffset___19653 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.pixelsOffset___19653, 0); + s.pixelsOffset___21423 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pixelsOffset___21423, 0); r0 = pxsim_pxtrt.mklocRef(); - s.holdTextSeconds___19654 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.holdTextSeconds___19654, 1.5); - s.bubblePadding___19655 = (4); - s.maxTextWidth___19656 = (100); - s.tmp_0 = image_getFontForText__P533_mk(s); - s.tmp_0.arg0 = s.textToDisplay___19620; + s.holdTextSeconds___21424 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.holdTextSeconds___21424, 1.5); + s.bubblePadding___21425 = (4); + s.maxTextWidth___21426 = (100); + s.tmp_0 = image_getFontForText__P1744_mk(s); + s.tmp_0.arg0 = s.textToDisplay___21391; s.callLocIdx = 303; s.pc = 34; return s.tmp_0; case 34: r0 = s.retval; - s.font___19657 = (r0); - s.startX___19660 = (2); - s.startY___19661 = (2); + s.font___21427 = (r0); + s.startX___21430 = (2); + s.startY___21431 = (2); r0 = pxsim_pxtrt.mklocRef(); - s.bubbleWidth___19662 = (r0); - s.tmp_0 = r0 = s.bubbleWidth___19662; - r0 = pxsim_String_.length(s.textToDisplay___19620); + s.bubbleWidth___21432 = (r0); + s.tmp_0 = r0 = s.bubbleWidth___21432; + r0 = pxsim_String_.length(s.textToDisplay___21391); s.tmp_3 = r0; s.tmp_5 = if_charWidth_1_mk(s); - s.tmp_5.arg0 = s.font___19657; + s.tmp_5.arg0 = s.font___21427; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth"); } else { @@ -30932,16 +34949,16 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_2 + s.bubblePadding___19655); + r0 = (s.tmp_2 + s.bubblePadding___21425); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = pxsim_pxtrt.mklocRef(); - s.maxOffset___19670 = (r0); - s.tmp_0 = r0 = s.maxOffset___19670; - r0 = pxsim_String_.length(s.textToDisplay___19620); + s.maxOffset___21440 = (r0); + s.tmp_0 = r0 = s.maxOffset___21440; + r0 = pxsim_String_.length(s.textToDisplay___21391); s.tmp_3 = r0; s.tmp_5 = if_charWidth_1_mk(s); - s.tmp_5.arg0 = s.font___19657; + s.tmp_5.arg0 = s.font___21427; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth"); } else { @@ -30955,7 +34972,7 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_2 - s.maxTextWidth___19656); + r0 = (s.tmp_2 - s.maxTextWidth___21426); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = s.arg0.fields["_hitbox"]; @@ -30964,18 +34981,18 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_1 = r0; r0 = (s.tmp_1 >> 8); - s.bubbleOffset___19678 = (r0); + s.bubbleOffset___21448 = (r0); r0 = pxsim_pxtrt.mklocRef(); - s.needsRedraw___19683 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.needsRedraw___19683, true); + s.needsRedraw___21453 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.needsRedraw___21453, true); r0 = pxsim_pxtrt.mklocRef(); - s.speed___19684 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.speed___19684, 45); - s.tmp_0 = game_currentScene__P961_mk(s); + s.speed___21454 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.speed___21454, 45); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 307; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; - s.currentScene___19685 = (r0); + s.currentScene___21455 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -30983,7 +35000,7 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 11: - r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___19670); + r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___21440); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); case 12: @@ -30991,10 +35008,10 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.speed___19684; - r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___19670); + s.tmp_3 = r0 = s.speed___21454; + r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___21440); s.tmp_6 = r0; - r0 = (2 * s.maxTextWidth___19656); + r0 = (2 * s.maxTextWidth___21426); s.tmp_7 = r0; r0 = (s.tmp_6 + s.tmp_7); s.tmp_5 = r0; @@ -31005,9 +35022,9 @@ switch (step) { r0 = (s.tmp_5 / s.tmp_8); s.tmp_4 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4); - s.tmp_0 = r0 = s.speed___19684; - s.tmp_2 = Math_max__P78_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.speed___19684); + s.tmp_0 = r0 = s.speed___21454; + s.tmp_2 = Math_max__P122_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.speed___21454); s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 45; s.callLocIdx = 308; s.pc = 38; return s.tmp_2; @@ -31015,16 +35032,16 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.holdTextSeconds___19654; - s.tmp_2 = r0 = s.maxTextWidth___19656; - r0 = pxsim_pxtrt_ldlocRef(s.speed___19684); + s.tmp_0 = r0 = s.holdTextSeconds___21424; + s.tmp_2 = r0 = s.maxTextWidth___21426; + r0 = pxsim_pxtrt_ldlocRef(s.speed___21454); s.tmp_3 = r0; r0 = (s.tmp_2 / s.tmp_3); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.holdTextSeconds___19654; - s.tmp_2 = Math_min__P79_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.holdTextSeconds___19654); + s.tmp_0 = r0 = s.holdTextSeconds___21424; + s.tmp_2 = Math_min__P123_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.holdTextSeconds___21424); s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1.5; s.callLocIdx = 309; s.pc = 39; return s.tmp_2; @@ -31041,31 +35058,31 @@ switch (step) { s.tmp_1 = r0 = s.arg2; r0 = pxsim_pxtrt_ldlocRef(s.arg2); s.tmp_3 = r0; - r0 = s.currentScene___19685.fields["_millis"]; + r0 = s.currentScene___21455.fields["_millis"]; s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); case 15: case 16: - r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___19662); + r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___21432); s.tmp_1 = r0; - r0 = (s.maxTextWidth___19656 + s.bubblePadding___19655); + r0 = (s.maxTextWidth___21426 + s.bubblePadding___21425); 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 = 17; continue; } - s.tmp_3 = r0 = s.bubbleWidth___19662; - r0 = (s.maxTextWidth___19656 + s.bubblePadding___19655); + s.tmp_3 = r0 = s.bubbleWidth___21432; + r0 = (s.maxTextWidth___21426 + s.bubblePadding___21425); s.tmp_4 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4); { step = 18; continue; } case 17: - r0 = pxsim_pxtrt_stlocRef(s.maxOffset___19670, -1); + r0 = pxsim_pxtrt_stlocRef(s.maxOffset___21440, -1); case 18: s.tmp_1 = if_charHeight_1_mk(s); - s.tmp_1.arg0 = s.font___19657; + s.tmp_1.arg0 = s.font___21427; if (!s.tmp_1.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); } else { @@ -31077,8 +35094,8 @@ switch (step) { case 40: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 + s.bubblePadding___19655); - s.imgh___19732 = (r0); + r0 = (s.tmp_0 + s.bubblePadding___21425); + s.imgh___21502 = (r0); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -31096,7 +35113,7 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___19662); + r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___21432); s.tmp_6 = r0; r0 = (s.tmp_3 != s.tmp_6); case 20: @@ -31113,39 +35130,39 @@ switch (step) { s.tmp_9 = r0; r0 = pxsim_ImageMethods.height(s.tmp_9); s.tmp_8 = r0; - r0 = (s.tmp_8 != s.imgh___19732); + r0 = (s.tmp_8 != s.imgh___21502); case 22: // jmp value (already in r0) s.tmp_11 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_11); if (!r0) { step = 25; continue; } - r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___19662); + r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___21432); s.tmp_12 = r0; - r0 = pxsim.image.create(s.tmp_12, s.imgh___19732); - s.sayImg___19754 = (r0); + r0 = pxsim.image.create(s.tmp_12, s.imgh___21502); + s.sayImg___21524 = (r0); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 23; continue; } - s.tmp_1 = Sprite_setImage__P790_mk(s); + s.tmp_1 = Sprite_setImage__P2053_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.sayImg___19754; + s.tmp_1.arg1 = s.sayImg___21524; s.callLocIdx = 314; s.pc = 41; return s.tmp_1; case 41: r0 = s.retval; { step = 24; continue; } case 23: s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = s.sayImg___19754; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = s.sayImg___21524; s.tmp_2.arg1 = -1; s.callLocIdx = 315; s.pc = 42; return s.tmp_2; case 42: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["sayBubbleSprite"] = (s.tmp_1); - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 1; @@ -31153,7 +35170,7 @@ switch (step) { s.callLocIdx = 316; s.pc = 43; return s.tmp_0; case 43: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 512; @@ -31175,39 +35192,39 @@ switch (step) { case 24: case 25: case 26: - s.tmp_1 = Sprite_data__P786_mk(s); + s.tmp_1 = Sprite_data__P2038_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; s.callLocIdx = 318; s.pc = 45; return s.tmp_1; case 45: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, s.SAYKEY___19629, s.key___19631); - r0 = pxsim_pxtcore_mkAction(18, inline__P19796); + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, s.SAYKEY___21399, s.key___21401); + r0 = pxsim_pxtcore_mkAction(18, inline__P21564); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.bubbleOffset___19678); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.font___19657); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.bubblePadding___19655); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.bubbleOffset___21448); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.font___21427); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.bubblePadding___21425); r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.arg2); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.currentScene___19685); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.holdTextSeconds___19654); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.pixelsOffset___19653); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.maxTextWidth___19656); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.speed___19684); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.needsRedraw___19683); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.maxOffset___19670); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.currentScene___21455); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.holdTextSeconds___21424); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.pixelsOffset___21423); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.maxTextWidth___21426); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.speed___21454); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.needsRedraw___21453); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.maxOffset___21440); r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.arg4); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 13, s.textToDisplay___19620); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 14, s.startX___19660); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 15, s.startY___19661); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 13, s.textToDisplay___21391); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 14, s.startX___21430); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 15, s.startY___21431); r0 = pxsim_pxtrt_stclo(s.tmp_0, 16, s.arg3); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 17, s.bubbleWidth___19662); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 17, s.bubbleWidth___21432); r0 = (s.arg0).fields["updateSay"] = (s.tmp_0); s.tmp_0 = if_updateSay_3_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - r0 = s.currentScene___19685.fields["camera"]; + r0 = s.currentScene___21455.fields["camera"]; s.tmp_0.arg2 = r0; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "updateSay"), 3); @@ -31225,12 +35242,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_say__P808.info = {"start":13060,"length":6828,"line":467,"column":4,"endLine":618,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"say","argumentNames":["this","text","timeOnScreen","textColor","textBoxColor"]} +Sprite_say__P2071.info = {"start":13058,"length":6828,"line":467,"column":4,"endLine":618,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"say","argumentNames":["this","text","timeOnScreen","textColor","textBoxColor"]} -function Sprite_say__P808_mk(s) { +function Sprite_say__P2071_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_say__P808, depth: s.depth + 1, + parent: s, fn: Sprite_say__P2071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31245,24 +35262,24 @@ function Sprite_say__P808_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - textToDisplay___19620: undefined, - SAYKEY___19629: undefined, - key___19631: undefined, - pixelsOffset___19653: undefined, - holdTextSeconds___19654: undefined, - bubblePadding___19655: undefined, - maxTextWidth___19656: undefined, - font___19657: undefined, - startX___19660: undefined, - startY___19661: undefined, - bubbleWidth___19662: undefined, - maxOffset___19670: undefined, - bubbleOffset___19678: undefined, - needsRedraw___19683: undefined, - speed___19684: undefined, - currentScene___19685: undefined, - imgh___19732: undefined, - sayImg___19754: undefined, + textToDisplay___21391: undefined, + SAYKEY___21399: undefined, + key___21401: undefined, + pixelsOffset___21423: undefined, + holdTextSeconds___21424: undefined, + bubblePadding___21425: undefined, + maxTextWidth___21426: undefined, + font___21427: undefined, + startX___21430: undefined, + startY___21431: undefined, + bubbleWidth___21432: undefined, + maxOffset___21440: undefined, + bubbleOffset___21448: undefined, + needsRedraw___21453: undefined, + speed___21454: undefined, + currentScene___21455: undefined, + imgh___21502: undefined, + sayImg___21524: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31274,7 +35291,7 @@ function Sprite_say__P808_mk(s) { -function inline__P19796(s) { +function inline__P21564(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31284,17 +35301,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___19834 = undefined; - s.oy___19837 = undefined; + s.ox___21602 = undefined; + s.oy___21605 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_0.arg0 = r0; - s.tmp_4 = Sprite_top__P800_mk(s); + s.tmp_4 = Sprite_top__P2063_mk(s); s.tmp_4.arg0 = s.caps[0]; s.callLocIdx = 319; s.pc = 26; return s.tmp_4; case 26: @@ -31326,10 +35343,10 @@ switch (step) { s.callLocIdx = 321; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P770_mk(s); + s.tmp_1 = Sprite_x__P2022_mk(s); s.tmp_1.arg0 = s.caps[0]; s.callLocIdx = 322; s.pc = 29; return s.tmp_1; case 29: @@ -31387,10 +35404,10 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 23; continue; } - s.tmp_9 = Sprite__C768_v4_2_mk(s); + s.tmp_9 = Sprite__C2013_v4_2_mk(s); s.tmp_9.arg0 = s.caps[0]; s.tmp_9.arg1 = s.arg1; - if (!checkSubtype(s.tmp_9.arg0, Sprite__C768_VT)) failedCast(s.tmp_9.arg0); + if (!checkSubtype(s.tmp_9.arg0, Sprite__C2013_VT)) failedCast(s.tmp_9.arg0); s.tmp_9.fn = s.tmp_9.arg0.vtable.methods.isOutOfScreen; s.pc = 32; return s.tmp_9; case 32: @@ -31403,23 +35420,23 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 9; continue; } r0 = s.arg1.fields["_offsetX"]; - s.ox___19834 = (r0); + s.ox___21602 = (r0); r0 = s.arg1.fields["_offsetY"]; - s.oy___19837 = (r0); - s.tmp_3 = Sprite_left__P796_mk(s); + s.oy___21605 = (r0); + s.tmp_3 = Sprite_left__P2059_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_3.arg0 = r0; s.callLocIdx = 329; s.pc = 33; return s.tmp_3; case 33: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___19834); + r0 = (s.tmp_2 - s.ox___21602); 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; } - s.tmp_4 = Sprite_left__P797_mk(s); + s.tmp_4 = Sprite_left__P2060_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_4.arg0 = r0; s.tmp_4.arg1 = 0; @@ -31428,55 +35445,55 @@ switch (step) { r0 = s.retval; case 3: case 4: - s.tmp_3 = Sprite_right__P798_mk(s); + s.tmp_3 = Sprite_right__P2061_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_3.arg0 = r0; s.callLocIdx = 331; s.pc = 35; return s.tmp_3; case 35: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___19834); + r0 = (s.tmp_2 - s.ox___21602); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_4 = r0; r0 = (s.tmp_1 > s.tmp_4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_5 = Sprite_right__P799_mk(s); + s.tmp_5 = Sprite_right__P2062_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_5.arg0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_5.arg1 = r0; s.callLocIdx = 332; s.pc = 36; return s.tmp_5; case 36: r0 = s.retval; case 5: case 6: - s.tmp_3 = Sprite_top__P800_mk(s); + s.tmp_3 = Sprite_top__P2063_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_3.arg0 = r0; s.callLocIdx = 333; s.pc = 37; return s.tmp_3; case 37: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.oy___19837); + r0 = (s.tmp_2 - s.oy___21605); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_y__P773_mk(s); + s.tmp_4 = Sprite_y__P2025_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_4.arg0 = r0; - s.tmp_7 = Sprite_y__P772_mk(s); + s.tmp_7 = Sprite_y__P2024_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_7.arg0 = r0; s.callLocIdx = 334; s.pc = 39; return s.tmp_7; case 39: r0 = s.retval; s.tmp_6 = r0; - s.tmp_10 = Sprite_y__P772_mk(s); + s.tmp_10 = Sprite_y__P2024_mk(s); s.tmp_10.arg0 = s.caps[0]; s.callLocIdx = 335; s.pc = 40; return s.tmp_10; case 40: @@ -31504,7 +35521,7 @@ switch (step) { s.tmp_2 = r0 = s.caps[6]; r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); s.tmp_4 = r0; - s.tmp_7 = game_eventContext__P1290_mk(s); + s.tmp_7 = game_eventContext__P2527_mk(s); s.callLocIdx = 337; s.pc = 41; return s.tmp_7; case 41: r0 = s.retval; @@ -31596,7 +35613,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - s.tmp_2 = helpers_imagePrint__P541_mk(s); + s.tmp_2 = helpers_imagePrint__P1757_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_image"]; @@ -31612,7 +35629,7 @@ switch (step) { r0 = s.retval; { step = 20; continue; } case 19: - s.tmp_0 = helpers_imagePrint__P541_mk(s); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; @@ -31631,7 +35648,7 @@ switch (step) { case 43: r0 = s.retval; case 20: - s.tmp_0 = helpers_imageFillRect__P517_mk(s); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; @@ -31659,7 +35676,7 @@ switch (step) { s.callLocIdx = 346; s.pc = 44; return s.tmp_0; case 44: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P517_mk(s); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; @@ -31759,7 +35776,7 @@ switch (step) { { step = 24; continue; } case 23: r0 = (s.caps[0]).fields["updateSay"] = (undefined); - s.tmp_0 = Sprite_destroy__P821_mk(s); + s.tmp_0 = Sprite_destroy__P2084_mk(s); r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; @@ -31773,12 +35790,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P19796.info = {"start":16030,"length":3804,"line":542,"column":25,"endLine":616,"endColumn":9,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["dt","camera"]} +inline__P21564.info = {"start":16028,"length":3804,"line":542,"column":25,"endLine":616,"endColumn":9,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["dt","camera"]} -function inline__P19796_mk(s) { +function inline__P21564_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19796, depth: s.depth + 1, + parent: s, fn: inline__P21564, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31791,8 +35808,8 @@ function inline__P19796_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - ox___19834: undefined, - oy___19837: undefined, + ox___21602: undefined, + oy___21605: undefined, arg0: undefined, arg1: undefined, } } @@ -31801,7 +35818,7 @@ function inline__P19796_mk(s) { -function Sprite_destroy__P821(s) { +function Sprite_destroy__P2084(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31818,7 +35835,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); @@ -31836,7 +35853,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__P1844_mk(s); + s.tmp_0 = effects_ParticleEffect_destroy__P2784_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg2; @@ -31846,7 +35863,7 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - s.tmp_0 = Sprite__destroyCore__P822_mk(s); + s.tmp_0 = Sprite__destroyCore__P2085_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 438; s.pc = 7; return s.tmp_0; case 7: @@ -31857,12 +35874,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_destroy__P821.info = {"start":28352,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +Sprite_destroy__P2084.info = {"start":28350,"length":293,"line":858,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} -function Sprite_destroy__P821_mk(s) { +function Sprite_destroy__P2084_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P821, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P2084, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31878,7 +35895,7 @@ function Sprite_destroy__P821_mk(s) { -function effects_ParticleEffect_destroy__P1844(s) { +function effects_ParticleEffect_destroy__P2784(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31896,15 +35913,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C1842_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P813_mk(s); + if (!checkSubtype(r0, effects_ParticleEffect__C2781_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = true; - s.callLocIdx = 1174; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1176; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P1843_mk(s); + s.tmp_0 = effects_ParticleEffect_start__P2783_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg3; @@ -31921,7 +35938,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg4 = r0; - s.callLocIdx = 1175; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1177; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -31936,22 +35953,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__P1894_mk(s); - s.tmp_0.arg0 = globals.dissolve___1899; + s.tmp_0 = effects_ImageEffect_applyTo__P2810_mk(s); + s.tmp_0.arg0 = globals.dissolve___2813; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1176; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1178; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P1844.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__P2784.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__P1844_mk(s) { +function effects_ParticleEffect_destroy__P2784_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P1844, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P2784, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31969,7 +35986,7 @@ function effects_ParticleEffect_destroy__P1844_mk(s) { -function inline__P24118(s) { +function inline__P25807(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31979,11 +35996,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___24121 = undefined; - s.x___24132 = undefined; - s.y___24138 = undefined; - s.w___24144 = undefined; - s.h___24148 = undefined; + s.i___25810 = undefined; + s.x___25821 = undefined; + s.y___25827 = undefined; + s.w___25833 = undefined; + s.h___25837 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31996,13 +36013,13 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.i___24121 = (r0); + s.i___25810 = (r0); case 1: - r0 = (s.i___24121 > 0); + r0 = (s.i___25810 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P1567_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P2582_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); @@ -32010,8 +36027,8 @@ switch (step) { s.callLocIdx = 38; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___24132 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P1567_mk(s); + s.x___25821 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P2582_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); @@ -32019,56 +36036,56 @@ switch (step) { s.callLocIdx = 39; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___24138 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P1567_mk(s); + s.y___25827 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P2582_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; s.callLocIdx = 40; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.w___24144 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P1567_mk(s); + s.w___25833 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P2582_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; s.callLocIdx = 41; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.h___24148 = (r0); - s.tmp_0 = helpers_imageDrawRect__P520_mk(s); + s.h___25837 = (r0); + s.tmp_0 = helpers_imageDrawRect__P1728_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___24132; - s.tmp_0.arg2 = s.y___24138; - s.tmp_0.arg3 = s.w___24144; - s.tmp_0.arg4 = s.h___24148; + s.tmp_0.arg1 = s.x___25821; + s.tmp_0.arg2 = s.y___25827; + s.tmp_0.arg3 = s.w___25833; + s.tmp_0.arg4 = s.h___25837; s.tmp_0.arg5 = 0; s.callLocIdx = 42; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = (s.i___24121 - 1); - s.i___24121 = (r0); + r0 = (s.i___25810 - 1); + s.i___25810 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P24118.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__P25807.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__P24118_mk(s) { +function inline__P25807_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24118, depth: s.depth + 1, + parent: s, fn: inline__P25807, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___24121: undefined, - x___24132: undefined, - y___24138: undefined, - w___24144: undefined, - h___24148: undefined, + i___25810: undefined, + x___25821: undefined, + y___25827: undefined, + w___25833: undefined, + h___25837: undefined, arg0: undefined, arg1: undefined, } } @@ -32077,7 +36094,7 @@ function inline__P24118_mk(s) { -function effects_ImageEffect_applyTo__P1894(s) { +function effects_ImageEffect_applyTo__P2810(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32087,14 +36104,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___24169 = undefined; + s.clonedImage___25858 = 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__C1893_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C2808_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -32120,17 +36137,17 @@ switch (step) { r0 = s.arg1.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___24169 = (r0); - s.tmp_0 = effects_ImageEffect_change__P1895_mk(s); + s.clonedImage___25858 = (r0); + s.tmp_0 = effects_ImageEffect_change__P2811_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___24169; - s.callLocIdx = 1187; s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___25858; + s.callLocIdx = 1189; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_setImage__P790_mk(s); + s.tmp_0 = Sprite_setImage__P2053_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___24169; - s.callLocIdx = 1188; s.pc = 7; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___25858; + s.callLocIdx = 1190; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; case 5: @@ -32138,12 +36155,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P1894.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__P2810.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__P1894_mk(s) { +function effects_ImageEffect_applyTo__P2810_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P1894, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P2810, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32151,7 +36168,7 @@ function effects_ImageEffect_applyTo__P1894_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - clonedImage___24169: undefined, + clonedImage___25858: undefined, arg0: undefined, arg1: undefined, } } @@ -32160,7 +36177,7 @@ function effects_ImageEffect_applyTo__P1894_mk(s) { -function effects_ImageEffect_change__P1895(s) { +function effects_ImageEffect_change__P2811(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32176,7 +36193,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C1893_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C2808_VT)) failedCast(r0); s.tmp_0 = if_effect_3_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; @@ -32184,12 +36201,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 = 1189; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1191; 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 = 1189; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1189; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1189; 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 = 1191; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1191; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1191; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -32197,12 +36214,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P1895.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__P2811.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__P1895_mk(s) { +function effects_ImageEffect_change__P2811_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P1895, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P2811, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32213,7 +36230,7 @@ function effects_ImageEffect_change__P1895_mk(s) { -function effects_ParticleEffect_start__P1843(s) { +function effects_ParticleEffect_start__P2783(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32223,7 +36240,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___24193 = undefined; + s.src___25882 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -32233,7 +36250,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C1842_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C2781_VT)) failedCast(r0); r0 = s.arg0.fields["sourceFactory"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -32260,18 +36277,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 = 1172; s.pc = 10; return s.tmp_4; + s.callLocIdx = 1174; 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 = 1172; s.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1172; s.pc = 10; return s.tmp_4;; } - else { s.callLocIdx = 1172; 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 = 1174; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1174; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1174; s.pc = 10; return s.tmp_4; } } case 10: r0 = s.retval; - s.src___24193 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P1722_mk(s); - s.tmp_0.arg0 = s.src___24193; + s.src___25882 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P2681_mk(s); + s.tmp_0.arg0 = s.src___25882; r0 = pxsim_numops_toBoolDecr(s.arg4); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); @@ -32280,7 +36297,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 1173; s.pc = 11; return s.tmp_0; + s.callLocIdx = 1175; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -32296,7 +36313,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.src___24193).fields["lifespan"] = (s.tmp_1); + r0 = (s.src___25882).fields["lifespan"] = (s.tmp_1); case 7: case 8: case 9: @@ -32304,19 +36321,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P1843.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__P2783.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__P1843_mk(s) { +function effects_ParticleEffect_start__P2783_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P1843, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P2783, depth: s.depth + 1, pc: 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___24193: undefined, + src___25882: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -32328,7 +36345,7 @@ function effects_ParticleEffect_start__P1843_mk(s) { -function particles_ParticleSource_setRelativeToCamera__P1722(s) { +function particles_ParticleSource_setRelativeToCamera__P2681(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32344,7 +36361,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -32370,12 +36387,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P1722.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__P2681.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__P1722_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P2681_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P1722, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P2681, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32390,7 +36407,7 @@ function particles_ParticleSource_setRelativeToCamera__P1722_mk(s) { -function Sprite__destroyCore__P822(s) { +function Sprite__destroyCore__P2085(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32400,29 +36417,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___24022 = undefined; + s.scene___25712 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_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__P961_mk(s); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 439; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.scene___24022 = (r0); + s.scene___25712 = (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__P821_mk(s); + s.tmp_1 = Sprite_destroy__P2084_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; @@ -32432,7 +36449,7 @@ switch (step) { r0 = s.retval; case 1: case 2: - r0 = s.scene___24022.fields["allSprites"]; + r0 = s.scene___25712.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); r0 = s.arg0.fields["_kind"]; @@ -32444,7 +36461,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = s.scene___24022.fields["spritesByKind"]; + r0 = s.scene___25712.fields["spritesByKind"]; s.tmp_2 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_3 = r0; @@ -32454,8 +36471,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__P850_mk(s); - r0 = s.scene___24022.fields["spritesByKind"]; + s.tmp_5 = sprites_SpriteSet_remove__P2115_mk(s); + r0 = s.scene___25712.fields["spritesByKind"]; s.tmp_6 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_7 = r0; @@ -32467,11 +36484,11 @@ switch (step) { r0 = s.retval; case 5: case 6: - s.tmp_0 = PhysicsEngine__C880_v1_2_mk(s); - r0 = s.scene___24022.fields["physicsEngine"]; + s.tmp_0 = PhysicsEngine__C2156_v1_2_mk(s); + r0 = s.scene___25712.fields["physicsEngine"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C880_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_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: @@ -32495,15 +36512,15 @@ switch (step) { r0 = s.retval; case 7: case 8: - r0 = pxsim_pxtcore_mkAction(1, inline__P24058); + r0 = pxsim_pxtcore_mkAction(1, inline__P25748); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P24064); + r0 = pxsim_pxtcore_mkAction(1, inline__P25754); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P60_mk(s); - s.tmp_3 = helpers_arrayFilter__P61_mk(s); - r0 = s.scene___24022.fields["destroyedHandlers"]; + s.tmp_2 = helpers_arrayForEach__P104_mk(s); + s.tmp_3 = helpers_arrayFilter__P105_mk(s); + r0 = s.scene___25712.fields["destroyedHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 447; s.pc = 15; return s.tmp_3; @@ -32518,12 +36535,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P822.info = {"start":28651,"length":693,"line":869,"column":4,"endLine":885,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +Sprite__destroyCore__P2085.info = {"start":28649,"length":693,"line":869,"column":4,"endLine":885,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function Sprite__destroyCore__P822_mk(s) { +function Sprite__destroyCore__P2085_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P822, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P2085, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32533,7 +36550,7 @@ function Sprite__destroyCore__P822_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - scene___24022: undefined, + scene___25712: undefined, arg0: undefined, } } @@ -32541,7 +36558,7 @@ function Sprite__destroyCore__P822_mk(s) { -function inline__P24058(s) { +function inline__P25748(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32563,12 +36580,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P24058.info = {"start":29267,"length":26,"line":883,"column":20,"endLine":883,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P25748.info = {"start":29265,"length":26,"line":883,"column":20,"endLine":883,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P24058_mk(s) { +function inline__P25748_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24058, depth: s.depth + 1, + parent: s, fn: inline__P25748, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32579,7 +36596,7 @@ function inline__P24058_mk(s) { -function inline__P24064(s) { +function inline__P25754(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32611,12 +36628,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P24064.info = {"start":29316,"length":20,"line":884,"column":21,"endLine":884,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P25754.info = {"start":29314,"length":20,"line":884,"column":21,"endLine":884,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P24064_mk(s) { +function inline__P25754_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P24064, depth: s.depth + 1, + parent: s, fn: inline__P25754, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32626,7 +36643,7 @@ function inline__P24064_mk(s) { -function PhysicsEngine_removeSprite__P882(s) { +function PhysicsEngine_removeSprite__P2159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32642,17 +36659,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C880_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P882.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__P2159.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__P882_mk(s) { +function PhysicsEngine_removeSprite__P2159_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P882, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P2159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -32662,7 +36679,7 @@ function PhysicsEngine_removeSprite__P882_mk(s) { -function sprites_SpriteSet_remove__P850(s) { +function sprites_SpriteSet_remove__P2115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32672,26 +36689,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___24072 = undefined; + s.i___25762 = 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__C844_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___24072 = (r0); - r0 = (s.i___24072 > -1); + s.i___25762 = (r0); + r0 = (s.i___25762 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P49_mk(s); + s.tmp_1 = helpers_arraySplice__P95_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___24072; + s.tmp_1.arg1 = s.i___25762; s.tmp_1.arg2 = 1; s.callLocIdx = 493; s.pc = 4; return s.tmp_1; case 4: @@ -32705,16 +36722,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P850.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__P2115.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__P850_mk(s) { +function sprites_SpriteSet_remove__P2115_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P850, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P2115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___24072: undefined, + i___25762: undefined, arg0: undefined, arg1: undefined, } } @@ -32723,7 +36740,7 @@ function sprites_SpriteSet_remove__P850_mk(s) { -function Sprite_kind__P804(s) { +function Sprite_kind__P2067(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32738,17 +36755,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = s.arg0.fields["_kind"]; return leave(s, r0) default: oops() } } } -Sprite_kind__P804.info = {"start":10633,"length":41,"line":387,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} +Sprite_kind__P2067.info = {"start":10631,"length":41,"line":387,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} -function Sprite_kind__P804_mk(s) { +function Sprite_kind__P2067_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P804, depth: s.depth + 1, + parent: s, fn: Sprite_kind__P2067, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -32757,7 +36774,7 @@ function Sprite_kind__P804_mk(s) { -function Sprite_isOutOfScreen__P810(s) { +function Sprite_isOutOfScreen__P2073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32767,15 +36784,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___20067 = undefined; - s.oy___20075 = undefined; + s.ox___21833 = undefined; + s.oy___21841 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -32789,7 +36806,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___20067 = (s.tmp_2); + s.ox___21833 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -32803,14 +36820,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___20075 = (s.tmp_2); - s.tmp_3 = Sprite_right__P798_mk(s); + s.oy___21841 = (s.tmp_2); + s.tmp_3 = Sprite_right__P2061_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 358; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___20067); + r0 = (s.tmp_2 - s.ox___21833); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -32819,13 +36836,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P802_mk(s); + s.tmp_6 = Sprite_bottom__P2065_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 359; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___20075); + r0 = (s.tmp_5 - s.oy___21841); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -32836,15 +36853,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P796_mk(s); + s.tmp_10 = Sprite_left__P2059_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 360; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___20067); + r0 = (s.tmp_9 - s.ox___21833); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -32855,15 +36872,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P800_mk(s); + s.tmp_15 = Sprite_top__P2063_mk(s); s.tmp_15.arg0 = s.arg0; s.callLocIdx = 361; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___20075); + r0 = (s.tmp_14 - s.oy___21841); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); + r0 = pxsim_ImageMethods.height(globals.screen___1799); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -32873,12 +36890,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P810.info = {"start":20440,"length":358,"line":636,"column":4,"endLine":640,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} +Sprite_isOutOfScreen__P2073.info = {"start":20438,"length":358,"line":636,"column":4,"endLine":640,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} -function Sprite_isOutOfScreen__P810_mk(s) { +function Sprite_isOutOfScreen__P2073_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P810, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P2073, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32898,8 +36915,8 @@ function Sprite_isOutOfScreen__P810_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___20067: undefined, - oy___20075: undefined, + ox___21833: undefined, + oy___21841: undefined, arg0: undefined, arg1: undefined, } } @@ -32908,7 +36925,7 @@ function Sprite_isOutOfScreen__P810_mk(s) { -function Sprite_bottom__P802(s) { +function Sprite_bottom__P2065(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32923,8 +36940,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P800_mk(s); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P2063_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 288; s.pc = 1; return s.tmp_1; case 1: @@ -32938,13 +36955,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_bottom__P802.info = {"start":10112,"length":59,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} -Sprite_bottom__P802.isGetter = true; +Sprite_bottom__P2065.info = {"start":10110,"length":59,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} +Sprite_bottom__P2065.isGetter = true; -function Sprite_bottom__P802_mk(s) { +function Sprite_bottom__P2065_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P802, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P2065, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32957,7 +36974,7 @@ function Sprite_bottom__P802_mk(s) { -function Sprite_height__P795(s) { +function Sprite_height__P2058(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32972,20 +36989,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_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__P795.info = {"start":8668,"length":54,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} -Sprite_height__P795.isGetter = true; +Sprite_height__P2058.info = {"start":8666,"length":54,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} +Sprite_height__P2058.isGetter = true; -function Sprite_height__P795_mk(s) { +function Sprite_height__P2058_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P795, depth: s.depth + 1, + parent: s, fn: Sprite_height__P2058, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32995,7 +37012,7 @@ function Sprite_height__P795_mk(s) { -function Sprite_right__P799(s) { +function Sprite_right__P2062(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33011,8 +37028,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P797_mk(s); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P2060_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -33028,12 +37045,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_right__P799.info = {"start":9457,"length":71,"line":344,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +Sprite_right__P2062.info = {"start":9455,"length":71,"line":344,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} -function Sprite_right__P799_mk(s) { +function Sprite_right__P2062_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P799, depth: s.depth + 1, + parent: s, fn: Sprite_right__P2062, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33047,7 +37064,7 @@ function Sprite_right__P799_mk(s) { -function Sprite_width__P794(s) { +function Sprite_width__P2057(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33062,20 +37079,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_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__P794.info = {"start":8523,"length":52,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} -Sprite_width__P794.isGetter = true; +Sprite_width__P2057.info = {"start":8521,"length":52,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} +Sprite_width__P2057.isGetter = true; -function Sprite_width__P794_mk(s) { +function Sprite_width__P2057_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P794, depth: s.depth + 1, + parent: s, fn: Sprite_width__P2057, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33085,7 +37102,7 @@ function Sprite_width__P794_mk(s) { -function Sprite_right__P798(s) { +function Sprite_right__P2061(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33100,8 +37117,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P796_mk(s); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P2059_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 280; s.pc = 1; return s.tmp_1; case 1: @@ -33115,13 +37132,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_right__P798.info = {"start":9308,"length":57,"line":339,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} -Sprite_right__P798.isGetter = true; +Sprite_right__P2061.info = {"start":9306,"length":57,"line":339,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} +Sprite_right__P2061.isGetter = true; -function Sprite_right__P798_mk(s) { +function Sprite_right__P2061_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P798, depth: s.depth + 1, + parent: s, fn: Sprite_right__P2061, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33134,7 +37151,7 @@ function Sprite_right__P798_mk(s) { -function Sprite_setImage__P790(s) { +function Sprite_setImage__P2053(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33144,24 +37161,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___20113 = undefined; - s.oMinX___20123 = undefined; - s.oMinY___20127 = undefined; - s.oMaxX___20131 = undefined; - s.oMaxY___20138 = undefined; - s.nMinX___20145 = undefined; - s.nMinY___20148 = undefined; - s.nMaxX___20151 = undefined; - s.nMaxY___20157 = undefined; - s.xDiff___20163 = undefined; - s.yDiff___20174 = undefined; + s.newHitBox___21879 = undefined; + s.oMinX___21889 = undefined; + s.oMinY___21893 = undefined; + s.oMaxX___21897 = undefined; + s.oMaxY___21904 = undefined; + s.nMinX___21911 = undefined; + s.nMinY___21914 = undefined; + s.nMaxX___21917 = undefined; + s.nMaxY___21923 = undefined; + s.xDiff___21929 = undefined; + s.yDiff___21940 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -33172,12 +37189,12 @@ switch (step) { case 1: case 2: r0 = (s.arg0).fields["_image"] = (s.arg1); - s.tmp_0 = game_calculateHitBox__P760_mk(s); + s.tmp_0 = game_calculateHitBox__P1967_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 258; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.newHitBox___20113 = (r0); + s.newHitBox___21879 = (r0); r0 = s.arg0.fields["_hitbox"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -33186,95 +37203,95 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___20113); + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___21879); { step = 9; continue; } case 3: case 4: r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["ox"]; - s.oMinX___20123 = (r0); + s.oMinX___21889 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["oy"]; - s.oMinY___20127 = (r0); + s.oMinY___21893 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; s.tmp_0 = r0; - r0 = (s.oMinX___20123 + s.tmp_0); - s.oMaxX___20131 = (r0); + r0 = (s.oMinX___21889 + s.tmp_0); + s.oMaxX___21897 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["height"]; s.tmp_0 = r0; - r0 = (s.oMinY___20127 + s.tmp_0); - s.oMaxY___20138 = (r0); - r0 = s.newHitBox___20113.fields["ox"]; - s.nMinX___20145 = (r0); - r0 = s.newHitBox___20113.fields["oy"]; - s.nMinY___20148 = (r0); - r0 = s.newHitBox___20113.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___20145 + s.tmp_0); - s.nMaxX___20151 = (r0); - r0 = s.newHitBox___20113.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___20148 + s.tmp_0); - s.nMaxY___20157 = (r0); - s.tmp_1 = Fx_abs__P122_mk(s); - r0 = (s.oMinX___20123 - s.nMinX___20145); + r0 = (s.oMinY___21893 + s.tmp_0); + s.oMaxY___21904 = (r0); + r0 = s.newHitBox___21879.fields["ox"]; + s.nMinX___21911 = (r0); + r0 = s.newHitBox___21879.fields["oy"]; + s.nMinY___21914 = (r0); + r0 = s.newHitBox___21879.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___21911 + s.tmp_0); + s.nMaxX___21917 = (r0); + r0 = s.newHitBox___21879.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___21914 + s.tmp_0); + s.nMaxY___21923 = (r0); + s.tmp_1 = Fx_abs__P157_mk(s); + r0 = (s.oMinX___21889 - s.nMinX___21911); s.tmp_1.arg0 = r0; s.callLocIdx = 264; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P122_mk(s); - r0 = (s.oMaxX___20131 - s.nMaxX___20151); + s.tmp_3 = Fx_abs__P157_mk(s); + r0 = (s.oMaxX___21897 - s.nMaxX___21917); s.tmp_3.arg0 = r0; s.callLocIdx = 266; s.pc = 12; return s.tmp_3; case 12: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___20163 = (r0); - s.tmp_1 = Fx_abs__P122_mk(s); - r0 = (s.oMinY___20127 - s.nMinY___20148); + s.xDiff___21929 = (r0); + s.tmp_1 = Fx_abs__P157_mk(s); + r0 = (s.oMinY___21893 - s.nMinY___21914); s.tmp_1.arg0 = r0; s.callLocIdx = 269; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P122_mk(s); - r0 = (s.oMaxY___20138 - s.nMaxY___20157); + s.tmp_3 = Fx_abs__P157_mk(s); + r0 = (s.oMaxY___21904 - s.nMaxY___21923); s.tmp_3.arg0 = r0; s.callLocIdx = 271; s.pc = 14; return s.tmp_3; case 14: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.yDiff___20174 = (r0); - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___20113); - r0 = (s.xDiff___20163 <= 512); + s.yDiff___21940 = (r0); + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___21879); + r0 = (s.xDiff___21929 <= 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["ox"] = (s.oMinX___20123); + r0 = (s.tmp_1).fields["ox"] = (s.oMinX___21889); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxX___20131 - s.oMinX___20123); + r0 = (s.oMaxX___21897 - s.oMinX___21889); s.tmp_1 = r0; r0 = (s.tmp_0).fields["width"] = (s.tmp_1); case 5: case 6: - r0 = (s.yDiff___20174 <= 512); + r0 = (s.yDiff___21940 <= 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } r0 = s.arg0.fields["_hitbox"]; s.tmp_1 = r0; - r0 = (s.tmp_1).fields["oy"] = (s.oMinY___20127); + r0 = (s.tmp_1).fields["oy"] = (s.oMinY___21893); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxY___20138 - s.oMinY___20127); + r0 = (s.oMaxY___21904 - s.oMinY___21893); s.tmp_1 = r0; r0 = (s.tmp_0).fields["height"] = (s.tmp_1); case 7: @@ -33284,28 +37301,28 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setImage__P790.info = {"start":6827,"length":1386,"line":252,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +Sprite_setImage__P2053.info = {"start":6825,"length":1386,"line":252,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} -function Sprite_setImage__P790_mk(s) { +function Sprite_setImage__P2053_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P790, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P2053, depth: s.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___20113: undefined, - oMinX___20123: undefined, - oMinY___20127: undefined, - oMaxX___20131: undefined, - oMaxY___20138: undefined, - nMinX___20145: undefined, - nMinY___20148: undefined, - nMaxX___20151: undefined, - nMaxY___20157: undefined, - xDiff___20163: undefined, - yDiff___20174: undefined, + newHitBox___21879: undefined, + oMinX___21889: undefined, + oMinY___21893: undefined, + oMaxX___21897: undefined, + oMaxY___21904: undefined, + nMinX___21911: undefined, + nMinY___21914: undefined, + nMaxX___21917: undefined, + nMaxY___21923: undefined, + xDiff___21929: undefined, + yDiff___21940: undefined, arg0: undefined, arg1: undefined, } } @@ -33314,7 +37331,7 @@ function Sprite_setImage__P790_mk(s) { -function game_calculateHitBox__P760(s) { +function game_calculateHitBox__P1967(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33324,104 +37341,104 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___20223 = undefined; - s.minX___20226 = undefined; - s.minY___20229 = undefined; - s.maxX___20232 = undefined; - s.maxY___20233 = undefined; - s.c___20234 = undefined; - s.r___20240 = undefined; - s.width___20271 = undefined; - s.height___20277 = undefined; + s.i___21989 = undefined; + s.minX___21992 = undefined; + s.minY___21995 = undefined; + s.maxX___21998 = undefined; + s.maxY___21999 = undefined; + s.c___22000 = undefined; + s.r___22006 = undefined; + s.width___22037 = undefined; + s.height___22043 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0.fields["_image"]; - s.i___20223 = (r0); - r0 = pxsim_ImageMethods.width(s.i___20223); - s.minX___20226 = (r0); - r0 = pxsim_ImageMethods.height(s.i___20223); - s.minY___20229 = (r0); - s.maxX___20232 = (0); - s.maxY___20233 = (0); - s.c___20234 = (0); - case 1: - s.tmp_1 = r0 = s.c___20234; - r0 = pxsim_ImageMethods.width(s.i___20223); + s.i___21989 = (r0); + r0 = pxsim_ImageMethods.width(s.i___21989); + s.minX___21992 = (r0); + r0 = pxsim_ImageMethods.height(s.i___21989); + s.minY___21995 = (r0); + s.maxX___21998 = (0); + s.maxY___21999 = (0); + s.c___22000 = (0); + case 1: + s.tmp_1 = r0 = s.c___22000; + r0 = pxsim_ImageMethods.width(s.i___21989); 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___20240 = (0); + s.r___22006 = (0); case 2: - s.tmp_1 = r0 = s.r___20240; - r0 = pxsim_ImageMethods.height(s.i___20223); + s.tmp_1 = r0 = s.r___22006; + r0 = pxsim_ImageMethods.height(s.i___21989); 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___20223, s.c___20234, s.r___20240); + r0 = pxsim_ImageMethods.getPixel(s.i___21989, s.c___22000, s.r___22006); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Math_min__P79_mk(s); - s.tmp_4.arg0 = s.minX___20226; - s.tmp_4.arg1 = s.c___20234; + s.tmp_4 = Math_min__P123_mk(s); + s.tmp_4.arg0 = s.minX___21992; + s.tmp_4.arg1 = s.c___22000; s.callLocIdx = 218; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; - s.minX___20226 = (r0); - s.tmp_0 = Math_min__P79_mk(s); - s.tmp_0.arg0 = s.minY___20229; - s.tmp_0.arg1 = s.r___20240; + s.minX___21992 = (r0); + s.tmp_0 = Math_min__P123_mk(s); + s.tmp_0.arg0 = s.minY___21995; + s.tmp_0.arg1 = s.r___22006; s.callLocIdx = 219; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.minY___20229 = (r0); - s.tmp_0 = Math_max__P78_mk(s); - s.tmp_0.arg0 = s.maxX___20232; - s.tmp_0.arg1 = s.c___20234; + s.minY___21995 = (r0); + s.tmp_0 = Math_max__P122_mk(s); + s.tmp_0.arg0 = s.maxX___21998; + s.tmp_0.arg1 = s.c___22000; s.callLocIdx = 220; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.maxX___20232 = (r0); - s.tmp_0 = Math_max__P78_mk(s); - s.tmp_0.arg0 = s.maxY___20233; - s.tmp_0.arg1 = s.r___20240; + s.maxX___21998 = (r0); + s.tmp_0 = Math_max__P122_mk(s); + s.tmp_0.arg0 = s.maxY___21999; + s.tmp_0.arg1 = s.r___22006; s.callLocIdx = 221; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.maxY___20233 = (r0); + s.maxY___21999 = (r0); case 3: case 4: - r0 = (s.r___20240 + 1); - s.r___20240 = (r0); + r0 = (s.r___22006 + 1); + s.r___22006 = (r0); { step = 2; continue; } case 5: - r0 = (s.c___20234 + 1); - s.c___20234 = (r0); + r0 = (s.c___22000 + 1); + s.c___22000 = (r0); { step = 1; continue; } case 6: - r0 = (s.maxX___20232 - s.minX___20226); + r0 = (s.maxX___21998 - s.minX___21992); s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.width___20271 = (r0); - r0 = (s.maxY___20233 - s.minY___20229); + s.width___22037 = (r0); + r0 = (s.maxY___21999 - s.minY___21995); s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.height___20277 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C754_VT); + s.height___22043 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C1956_VT); s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P759_mk(s); + s.tmp_1 = game_Hitbox_constructor__P1962_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___20271; - s.tmp_1.arg3 = s.height___20277; - s.tmp_1.arg4 = s.minX___20226; - s.tmp_1.arg5 = s.minY___20229; + s.tmp_1.arg2 = s.width___22037; + s.tmp_1.arg3 = s.height___22043; + s.tmp_1.arg4 = s.minX___21992; + s.tmp_1.arg5 = s.minY___21995; s.callLocIdx = 222; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; @@ -33429,27 +37446,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_calculateHitBox__P760.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__P1967.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__P760_mk(s) { +function game_calculateHitBox__P1967_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P760, depth: s.depth + 1, + parent: s, fn: game_calculateHitBox__P1967, depth: s.depth + 1, pc: 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___20223: undefined, - minX___20226: undefined, - minY___20229: undefined, - maxX___20232: undefined, - maxY___20233: undefined, - c___20234: undefined, - r___20240: undefined, - width___20271: undefined, - height___20277: undefined, + i___21989: undefined, + minX___21992: undefined, + minY___21995: undefined, + maxX___21998: undefined, + maxY___21999: undefined, + c___22000: undefined, + r___22006: undefined, + width___22037: undefined, + height___22043: undefined, arg0: undefined, } } @@ -33457,7 +37474,7 @@ function game_calculateHitBox__P760_mk(s) { -function game_Hitbox_constructor__P759(s) { +function game_Hitbox_constructor__P1962(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33477,7 +37494,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C754_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0); r0 = (s.arg0).fields["parent"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = (s.arg2 * 256); @@ -33507,12 +37524,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_constructor__P759.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__P1962.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__P759_mk(s) { +function game_Hitbox_constructor__P1962_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P759, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P1962, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33529,7 +37546,7 @@ function game_Hitbox_constructor__P759_mk(s) { -function Fx_abs__P122(s) { +function Fx_abs__P157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33559,12 +37576,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_abs__P122.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__P157.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__P122_mk(s) { +function Fx_abs__P157_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P122, depth: s.depth + 1, + parent: s, fn: Fx_abs__P157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33574,7 +37591,7 @@ function Fx_abs__P122_mk(s) { -function Sprite_image__P789(s) { +function Sprite_image__P2052(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33589,18 +37606,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_image__P789.info = {"start":6551,"length":54,"line":242,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} -Sprite_image__P789.isGetter = true; +Sprite_image__P2052.info = {"start":6549,"length":54,"line":242,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} +Sprite_image__P2052.isGetter = true; -function Sprite_image__P789_mk(s) { +function Sprite_image__P2052_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P789, depth: s.depth + 1, + parent: s, fn: Sprite_image__P2052, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33609,7 +37626,7 @@ function Sprite_image__P789_mk(s) { -function Sprite_data__P786(s) { +function Sprite_data__P2038(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33624,7 +37641,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -33643,13 +37660,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_data__P786.info = {"start":4196,"length":92,"line":160,"column":4,"endLine":163,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} -Sprite_data__P786.isGetter = true; +Sprite_data__P2038.info = {"start":4194,"length":92,"line":160,"column":4,"endLine":163,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} +Sprite_data__P2038.isGetter = true; -function Sprite_data__P786_mk(s) { +function Sprite_data__P2038_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P786, depth: s.depth + 1, + parent: s, fn: Sprite_data__P2038, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33663,7 +37680,7 @@ function Sprite_data__P786_mk(s) { -function JSON_stringify__P277(s) { +function JSON_stringify__P373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33673,16 +37690,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ss___20359 = undefined; + s.ss___22125 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C274_VT); - s.ss___20359 = (r0); - s.tmp_0 = r0 = s.ss___20359; + r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C3950_VT); + s.ss___22125 = (r0); + s.tmp_0 = r0 = s.ss___22125; r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); @@ -33702,15 +37719,15 @@ switch (step) { s.arg2 = (10); case 3: case 4: - s.tmp_0 = r0 = s.ss___20359; + s.tmp_0 = r0 = s.ss___22125; r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["indentStep"] = (s.tmp_1); - s.tmp_0 = r0 = s.ss___20359; + s.tmp_0 = r0 = s.ss___22125; r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); - r0 = (s.ss___20359).fields["indent"] = (s.arg2); + r0 = (s.ss___22125).fields["indent"] = (s.arg2); case 5: s.tmp_0 = r0 = s.arg2; r0 = (s.tmp_0 - 1); @@ -33719,7 +37736,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 6; continue; } - s.tmp_2 = r0 = s.ss___20359; + s.tmp_2 = r0 = s.ss___22125; r0 = s.tmp_2.fields["indentStep"]; s.tmp_5 = r0; if ((s.tmp_5) && (s.tmp_5).vtable) { @@ -33736,8 +37753,8 @@ switch (step) { r0 = (s.tmp_2).fields["indentStep"] = (s.tmp_3); { step = 5; continue; } case 6: - s.tmp_0 = JSON_Stringifier_go__P276_mk(s); - s.tmp_0.arg0 = s.ss___20359; + s.tmp_0 = JSON_Stringifier_go__P3952_mk(s); + s.tmp_0.arg0 = s.ss___22125; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 50; s.pc = 8; return s.tmp_0; case 8: @@ -33745,12 +37762,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -JSON_stringify__P277.info = {"start":8773,"length":414,"line":288,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/base/json.ts","functionName":"stringify","argumentNames":["value","replacer","indent"]} +JSON_stringify__P373.info = {"start":8773,"length":414,"line":288,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/base/json.ts","functionName":"stringify","argumentNames":["value","replacer","indent"]} -function JSON_stringify__P277_mk(s) { +function JSON_stringify__P373_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_stringify__P277, depth: s.depth + 1, + parent: s, fn: JSON_stringify__P373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33758,7 +37775,7 @@ function JSON_stringify__P277_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - ss___20359: undefined, + ss___22125: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -33768,7 +37785,7 @@ function JSON_stringify__P277_mk(s) { -function JSON_Stringifier_go__P276(s) { +function JSON_Stringifier_go__P3952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33778,28 +37795,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___20400 = undefined; - s.arr___20424 = undefined; - s.r___20430 = undefined; - s.i___20447 = undefined; - s.keys___20512 = undefined; - s.r___20519 = undefined; - s.i___20536 = undefined; - s.k___20542 = undefined; + s.t___22166 = undefined; + s.arr___22190 = undefined; + s.r___22196 = undefined; + s.i___22213 = undefined; + s.keys___22277 = undefined; + s.r___22284 = undefined; + s.i___22301 = undefined; + s.k___22307 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, JSON_Stringifier__C274_VT)) failedCast(r0); + if (!checkSubtype(r0, JSON_Stringifier__C3950_VT)) failedCast(r0); r0 = pxsim_pxtcore.typeOf(s.arg1); - s.t___20400 = (r0); - r0 = (s.t___20400 == "string"); + s.t___22166 = (r0); + r0 = (s.t___22166 == "string"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = JSON_Stringifier_doString__P275_mk(s); + s.tmp_1 = JSON_Stringifier_doString__P3951_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 44; s.pc = 38; return s.tmp_1; @@ -33808,14 +37825,14 @@ switch (step) { { step = 37; continue; } { step = 36; continue; } case 1: - r0 = (s.t___20400 == "boolean"); + r0 = (s.t___22166 == "boolean"); s.tmp_2 = r0; r0 = pxsim_numops_toBool(s.tmp_2); if (!r0) { step = 2; continue; } r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = (s.t___20400 == "number"); + r0 = (s.t___22166 == "number"); case 3: // jmp value (already in r0) s.tmp_3 = r0; @@ -33849,8 +37866,8 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 19; continue; } - s.arr___20424 = (s.arg1); - r0 = pxsim_Array__length(s.arr___20424); + s.arr___22190 = (s.arg1); + r0 = pxsim_Array__length(s.arr___22190); s.tmp_1 = r0; r0 = (s.tmp_1 == 0); s.tmp_0 = r0; @@ -33860,7 +37877,7 @@ switch (step) { { step = 37; continue; } { step = 18; continue; } case 7: - s.r___20430 = ("["); + s.r___22196 = ("["); r0 = s.arg0.fields["indent"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -33891,34 +37908,34 @@ switch (step) { r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); s.tmp_2 = r0; r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - if ((s.r___20430) && (s.r___20430).vtable) { + if ((s.r___22196) && (s.r___22196).vtable) { setupResume(s, 42); - pxsim_String__stringConv(s.r___20430); + pxsim_String__stringConv(s.r___22196); checkResumeConsumed(); return; - } else { s.retval = (s.r___20430) + ""; } + } else { s.retval = (s.r___22196) + ""; } case 42: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.r___20430 = (r0); + s.r___22196 = (r0); case 8: case 9: - s.i___20447 = (0); + s.i___22213 = (0); case 10: - s.tmp_1 = r0 = s.i___20447; - r0 = pxsim_Array__length(s.arr___20424); + s.tmp_1 = r0 = s.i___22213; + r0 = pxsim_Array__length(s.arr___22190); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - if ((s.r___20430) && (s.r___20430).vtable) { + if ((s.r___22196) && (s.r___22196).vtable) { setupResume(s, 43); - pxsim_String__stringConv(s.r___20430); + pxsim_String__stringConv(s.r___22196); checkResumeConsumed(); return; - } else { s.retval = (s.r___20430) + ""; } + } else { s.retval = (s.r___22196) + ""; } case 43: r0 = s.retval; s.tmp_3 = r0; @@ -33933,9 +37950,9 @@ switch (step) { case 44: r0 = s.retval; s.tmp_6 = r0; - s.tmp_10 = JSON_Stringifier_go__P276_mk(s); + s.tmp_10 = JSON_Stringifier_go__P3952_mk(s); s.tmp_10.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.arr___20424, s.i___20447); + r0 = pxsim_Array__getAt(s.arr___22190, s.i___22213); s.tmp_10.arg1 = r0; s.callLocIdx = 45; s.pc = 45; return s.tmp_10; case 45: @@ -33962,9 +37979,9 @@ switch (step) { r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___20430 = (r0); - s.tmp_1 = r0 = s.i___20447; - r0 = pxsim_Array__length(s.arr___20424); + s.r___22196 = (r0); + s.tmp_1 = r0 = s.i___22213; + r0 = pxsim_Array__length(s.arr___22190); s.tmp_3 = r0; r0 = (s.tmp_3 - 1); s.tmp_2 = r0; @@ -33972,38 +37989,38 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - if ((s.r___20430) && (s.r___20430).vtable) { + if ((s.r___22196) && (s.r___22196).vtable) { setupResume(s, 48); - pxsim_String__stringConv(s.r___20430); + pxsim_String__stringConv(s.r___22196); checkResumeConsumed(); return; - } else { s.retval = (s.r___20430) + ""; } + } else { s.retval = (s.r___22196) + ""; } case 48: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ","); - s.r___20430 = (r0); + s.r___22196 = (r0); case 11: case 12: r0 = s.arg0.fields["indent"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - if ((s.r___20430) && (s.r___20430).vtable) { + if ((s.r___22196) && (s.r___22196).vtable) { setupResume(s, 49); - pxsim_String__stringConv(s.r___20430); + pxsim_String__stringConv(s.r___22196); checkResumeConsumed(); return; - } else { s.retval = (s.r___20430) + ""; } + } else { s.retval = (s.r___22196) + ""; } case 49: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_1, "\n"); - s.r___20430 = (r0); + s.r___22196 = (r0); case 13: case 14: - r0 = (s.i___20447 + 1); - s.i___20447 = (r0); + r0 = (s.i___22213 + 1); + s.i___22213 = (r0); { step = 10; continue; } case 15: r0 = s.arg0.fields["indent"]; @@ -34011,7 +38028,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } s.tmp_1 = r0 = s.arg0; - s.tmp_3 = helpers_stringSlice__P68_mk(s); + s.tmp_3 = helpers_stringSlice__P112_mk(s); r0 = s.arg0.fields["currIndent"]; s.tmp_3.arg0 = r0; r0 = s.arg0.fields["indent"]; @@ -34024,12 +38041,12 @@ switch (step) { r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); case 16: case 17: - if ((s.r___20430) && (s.r___20430).vtable) { + if ((s.r___22196) && (s.r___22196).vtable) { setupResume(s, 51); - pxsim_String__stringConv(s.r___20430); + pxsim_String__stringConv(s.r___22196); checkResumeConsumed(); return; - } else { s.retval = (s.r___20430) + ""; } + } else { s.retval = (s.r___22196) + ""; } case 51: r0 = s.retval; s.tmp_0 = r0; @@ -34056,15 +38073,15 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___20430 = (r0); - r0 = s.r___20430; + s.r___22196 = (r0); + r0 = s.r___22196; { step = 37; continue; } case 18: { step = 34; continue; } case 19: r0 = pxsim_pxtrt.keysOf(s.arg1); - s.keys___20512 = (r0); - r0 = pxsim_Array__length(s.keys___20512); + s.keys___22277 = (r0); + r0 = pxsim_Array__length(s.keys___22277); s.tmp_1 = r0; r0 = (s.tmp_1 == 0); s.tmp_0 = r0; @@ -34074,7 +38091,7 @@ switch (step) { { step = 37; continue; } case 20: case 21: - s.r___20519 = ("{"); + s.r___22284 = ("{"); r0 = s.arg0.fields["indent"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -34105,36 +38122,36 @@ switch (step) { r0 = pxsim_String__concat(s.tmp_3, s.tmp_5); s.tmp_2 = r0; r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); - if ((s.r___20519) && (s.r___20519).vtable) { + if ((s.r___22284) && (s.r___22284).vtable) { setupResume(s, 56); - pxsim_String__stringConv(s.r___20519); + pxsim_String__stringConv(s.r___22284); checkResumeConsumed(); return; - } else { s.retval = (s.r___20519) + ""; } + } else { s.retval = (s.r___22284) + ""; } case 56: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.r___20519 = (r0); + s.r___22284 = (r0); case 22: case 23: - s.i___20536 = (0); + s.i___22301 = (0); case 24: - s.tmp_1 = r0 = s.i___20536; - r0 = pxsim_Array__length(s.keys___20512); + s.tmp_1 = r0 = s.i___22301; + r0 = pxsim_Array__length(s.keys___22277); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = pxsim_Array__getAt(s.keys___20512, s.i___20536); - s.k___20542 = (r0); - if ((s.r___20519) && (s.r___20519).vtable) { + r0 = pxsim_Array__getAt(s.keys___22277, s.i___22301); + s.k___22307 = (r0); + if ((s.r___22284) && (s.r___22284).vtable) { setupResume(s, 57); - pxsim_String__stringConv(s.r___20519); + pxsim_String__stringConv(s.r___22284); checkResumeConsumed(); return; - } else { s.retval = (s.r___20519) + ""; } + } else { s.retval = (s.r___22284) + ""; } case 57: r0 = s.retval; s.tmp_0 = r0; @@ -34149,9 +38166,9 @@ switch (step) { case 58: r0 = s.retval; s.tmp_3 = r0; - s.tmp_7 = JSON_Stringifier_doString__P275_mk(s); + s.tmp_7 = JSON_Stringifier_doString__P3951_mk(s); s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.k___20542; + s.tmp_7.arg1 = s.k___22307; s.callLocIdx = 47; s.pc = 59; return s.tmp_7; case 59: r0 = s.retval; @@ -34177,48 +38194,48 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___20519 = (r0); + s.r___22284 = (r0); r0 = s.arg0.fields["indent"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 25; continue; } - if ((s.r___20519) && (s.r___20519).vtable) { + if ((s.r___22284) && (s.r___22284).vtable) { setupResume(s, 62); - pxsim_String__stringConv(s.r___20519); + pxsim_String__stringConv(s.r___22284); checkResumeConsumed(); return; - } else { s.retval = (s.r___20519) + ""; } + } else { s.retval = (s.r___22284) + ""; } case 62: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_1, ": "); - s.r___20519 = (r0); + s.r___22284 = (r0); { step = 26; continue; } case 25: - if ((s.r___20519) && (s.r___20519).vtable) { + if ((s.r___22284) && (s.r___22284).vtable) { setupResume(s, 63); - pxsim_String__stringConv(s.r___20519); + pxsim_String__stringConv(s.r___22284); checkResumeConsumed(); return; - } else { s.retval = (s.r___20519) + ""; } + } else { s.retval = (s.r___22284) + ""; } case 63: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, ":"); - s.r___20519 = (r0); + s.r___22284 = (r0); case 26: - if ((s.r___20519) && (s.r___20519).vtable) { + if ((s.r___22284) && (s.r___22284).vtable) { setupResume(s, 64); - pxsim_String__stringConv(s.r___20519); + pxsim_String__stringConv(s.r___22284); checkResumeConsumed(); return; - } else { s.retval = (s.r___20519) + ""; } + } else { s.retval = (s.r___22284) + ""; } case 64: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = JSON_Stringifier_go__P276_mk(s); + s.tmp_3 = JSON_Stringifier_go__P3952_mk(s); s.tmp_3.arg0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___20542); + r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___22307); s.tmp_3.arg1 = r0; s.callLocIdx = 48; s.pc = 65; return s.tmp_3; case 65: @@ -34234,9 +38251,9 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___20519 = (r0); - s.tmp_1 = r0 = s.i___20536; - r0 = pxsim_Array__length(s.keys___20512); + s.r___22284 = (r0); + s.tmp_1 = r0 = s.i___22301; + r0 = pxsim_Array__length(s.keys___22277); s.tmp_3 = r0; r0 = (s.tmp_3 - 1); s.tmp_2 = r0; @@ -34244,38 +38261,38 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 27; continue; } - if ((s.r___20519) && (s.r___20519).vtable) { + if ((s.r___22284) && (s.r___22284).vtable) { setupResume(s, 67); - pxsim_String__stringConv(s.r___20519); + pxsim_String__stringConv(s.r___22284); checkResumeConsumed(); return; - } else { s.retval = (s.r___20519) + ""; } + } else { s.retval = (s.r___22284) + ""; } case 67: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ","); - s.r___20519 = (r0); + s.r___22284 = (r0); case 27: case 28: r0 = s.arg0.fields["indent"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - if ((s.r___20519) && (s.r___20519).vtable) { + if ((s.r___22284) && (s.r___22284).vtable) { setupResume(s, 68); - pxsim_String__stringConv(s.r___20519); + pxsim_String__stringConv(s.r___22284); checkResumeConsumed(); return; - } else { s.retval = (s.r___20519) + ""; } + } else { s.retval = (s.r___22284) + ""; } case 68: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_1, "\n"); - s.r___20519 = (r0); + s.r___22284 = (r0); case 29: case 30: - r0 = (s.i___20536 + 1); - s.i___20536 = (r0); + r0 = (s.i___22301 + 1); + s.i___22301 = (r0); { step = 24; continue; } case 31: r0 = s.arg0.fields["indent"]; @@ -34283,7 +38300,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 32; continue; } s.tmp_1 = r0 = s.arg0; - s.tmp_3 = helpers_stringSlice__P68_mk(s); + s.tmp_3 = helpers_stringSlice__P112_mk(s); r0 = s.arg0.fields["currIndent"]; s.tmp_3.arg0 = r0; r0 = s.arg0.fields["indent"]; @@ -34296,12 +38313,12 @@ switch (step) { r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); case 32: case 33: - if ((s.r___20519) && (s.r___20519).vtable) { + if ((s.r___22284) && (s.r___22284).vtable) { setupResume(s, 70); - pxsim_String__stringConv(s.r___20519); + pxsim_String__stringConv(s.r___22284); checkResumeConsumed(); return; - } else { s.retval = (s.r___20519) + ""; } + } else { s.retval = (s.r___22284) + ""; } case 70: r0 = s.retval; s.tmp_0 = r0; @@ -34328,8 +38345,8 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___20519 = (r0); - r0 = s.r___20519; + s.r___22284 = (r0); + r0 = s.r___22284; { step = 37; continue; } case 34: case 35: @@ -34339,12 +38356,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -JSON_Stringifier_go__P276.info = {"start":6319,"length":2076,"line":223,"column":8,"endLine":279,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"go","argumentNames":["this","v"]} +JSON_Stringifier_go__P3952.info = {"start":6319,"length":2076,"line":223,"column":8,"endLine":279,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"go","argumentNames":["this","v"]} -function JSON_Stringifier_go__P276_mk(s) { +function JSON_Stringifier_go__P3952_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_Stringifier_go__P276, depth: s.depth + 1, + parent: s, fn: JSON_Stringifier_go__P3952, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34357,14 +38374,14 @@ function JSON_Stringifier_go__P276_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - t___20400: undefined, - arr___20424: undefined, - r___20430: undefined, - i___20447: undefined, - keys___20512: undefined, - r___20519: undefined, - i___20536: undefined, - k___20542: undefined, + t___22166: undefined, + arr___22190: undefined, + r___22196: undefined, + i___22213: undefined, + keys___22277: undefined, + r___22284: undefined, + i___22301: undefined, + k___22307: undefined, arg0: undefined, arg1: undefined, } } @@ -34373,7 +38390,7 @@ function JSON_Stringifier_go__P276_mk(s) { -function JSON_Stringifier_doString__P275(s) { +function JSON_Stringifier_doString__P3951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34383,68 +38400,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___20659 = undefined; - s.i___20660 = undefined; - s.c___20666 = undefined; + s.r___22424 = undefined; + s.i___22425 = undefined; + s.c___22431 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, JSON_Stringifier__C274_VT)) failedCast(r0); - s.r___20659 = ("\""); - s.i___20660 = (0); + if (!checkSubtype(r0, JSON_Stringifier__C3950_VT)) failedCast(r0); + s.r___22424 = ("\""); + s.i___22425 = (0); case 1: - s.tmp_1 = r0 = s.i___20660; + s.tmp_1 = r0 = s.i___22425; r0 = pxsim_String_.length(s.arg1); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = pxsim_String_.charAt(s.arg1, s.i___20660); - s.c___20666 = (r0); - r0 = (s.c___20666 == "\n"); + r0 = pxsim_String_.charAt(s.arg1, s.i___22425); + s.c___22431 = (r0); + r0 = (s.c___22431 == "\n"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.c___20666 = ("\\n"); + s.c___22431 = ("\\n"); { step = 13; continue; } case 2: - r0 = (s.c___20666 == "\r"); + r0 = (s.c___22431 == "\r"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.c___20666 = ("\\r"); + s.c___22431 = ("\\r"); { step = 12; continue; } case 3: - r0 = (s.c___20666 == "\t"); + r0 = (s.c___22431 == "\t"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.c___20666 = ("\\t"); + s.c___22431 = ("\\t"); { step = 11; continue; } case 4: - r0 = (s.c___20666 == "\b"); + r0 = (s.c___22431 == "\b"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.c___20666 = ("\\b"); + s.c___22431 = ("\\b"); { step = 10; continue; } case 5: - r0 = (s.c___20666 == "\\"); + r0 = (s.c___22431 == "\\"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.c___20666 = ("\\\\"); + s.c___22431 = ("\\\\"); { step = 9; continue; } case 6: - r0 = (s.c___20666 == "\""); + r0 = (s.c___22431 == "\""); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.c___20666 = ("\\\""); + s.c___22431 = ("\\\""); case 7: case 8: case 9: @@ -34452,36 +38469,36 @@ switch (step) { case 11: case 12: case 13: - if ((s.r___20659) && (s.r___20659).vtable) { + if ((s.r___22424) && (s.r___22424).vtable) { setupResume(s, 15); - pxsim_String__stringConv(s.r___20659); + pxsim_String__stringConv(s.r___22424); checkResumeConsumed(); return; - } else { s.retval = (s.r___20659) + ""; } + } else { s.retval = (s.r___22424) + ""; } case 15: r0 = s.retval; s.tmp_0 = r0; - if ((s.c___20666) && (s.c___20666).vtable) { + if ((s.c___22431) && (s.c___22431).vtable) { setupResume(s, 16); - pxsim_String__stringConv(s.c___20666); + pxsim_String__stringConv(s.c___22431); checkResumeConsumed(); return; - } else { s.retval = (s.c___20666) + ""; } + } else { s.retval = (s.c___22431) + ""; } case 16: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___20659 = (r0); - r0 = (s.i___20660 + 1); - s.i___20660 = (r0); + s.r___22424 = (r0); + r0 = (s.i___22425 + 1); + s.i___22425 = (r0); { step = 1; continue; } case 14: - if ((s.r___20659) && (s.r___20659).vtable) { + if ((s.r___22424) && (s.r___22424).vtable) { setupResume(s, 17); - pxsim_String__stringConv(s.r___20659); + pxsim_String__stringConv(s.r___22424); checkResumeConsumed(); return; - } else { s.retval = (s.r___20659) + ""; } + } else { s.retval = (s.r___22424) + ""; } case 17: r0 = s.retval; s.tmp_0 = r0; @@ -34489,19 +38506,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -JSON_Stringifier_doString__P275.info = {"start":5837,"length":472,"line":208,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"doString","argumentNames":["this","s"]} +JSON_Stringifier_doString__P3951.info = {"start":5837,"length":472,"line":208,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/base/json.ts","functionName":"doString","argumentNames":["this","s"]} -function JSON_Stringifier_doString__P275_mk(s) { +function JSON_Stringifier_doString__P3951_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_Stringifier_doString__P275, depth: s.depth + 1, + parent: s, fn: JSON_Stringifier_doString__P3951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - r___20659: undefined, - i___20660: undefined, - c___20666: undefined, + r___22424: undefined, + i___22425: undefined, + c___22431: undefined, arg0: undefined, arg1: undefined, } } @@ -34510,7 +38527,7 @@ function JSON_Stringifier_doString__P275_mk(s) { -function tileworld_ruleediting_RuleEditor_mainMenu__P12674(s) { +function tileworld_ruleediting_RuleEditor_mainMenu__P14501(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34525,7 +38542,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); r0 = s.arg0.fields["menu"]; s.tmp_1 = r0; r0 = (s.tmp_1 == 3); @@ -34551,7 +38568,7 @@ switch (step) { r0 = s.tmp_2; { step = 4; continue; } case 1: - s.tmp_10 = tileworld_RuleView_getCmdInst__P5000_mk(s); + s.tmp_10 = tileworld_RuleView_getCmdInst__P3654_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_10.arg0 = r0; r0 = s.arg0.fields["whenDo"]; @@ -34569,7 +38586,7 @@ switch (step) { r0 = s.tmp_8; { step = 3; continue; } case 2: - s.tmp_12 = tileworld_RuleView_getCmdArg__P5001_mk(s); + s.tmp_12 = tileworld_RuleView_getCmdArg__P3655_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_12.arg0 = r0; r0 = s.arg0.fields["whenDo"]; @@ -34590,7 +38607,7 @@ switch (step) { s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 5; continue; } - s.tmp_15 = tileworld_RuleView_removeCommand__P5004_mk(s); + s.tmp_15 = tileworld_RuleView_removeCommand__P3658_mk(s); r0 = s.arg0.fields["rule"]; s.tmp_15.arg0 = r0; r0 = s.arg0.fields["whenDo"]; @@ -34608,7 +38625,7 @@ switch (step) { r0 = (s.arg0).fields["currentCommand"] = (-1); r0 = (s.arg0).fields["attrSelected"] = (-1); r0 = (s.arg0).fields["menu"] = (0); - s.tmp_0 = tileworld_ruleediting_RuleEditor_restoreCursor__P12676_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleEditor_restoreCursor__P14503_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1014; s.pc = 12; return s.tmp_0; case 12: @@ -34617,12 +38634,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_mainMenu__P12674.info = {"start":7142,"length":789,"line":140,"column":8,"endLine":156,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"mainMenu","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_mainMenu__P14501.info = {"start":7142,"length":789,"line":140,"column":8,"endLine":156,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"mainMenu","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_mainMenu__P12674_mk(s) { +function tileworld_ruleediting_RuleEditor_mainMenu__P14501_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_mainMenu__P12674, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_mainMenu__P14501, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34647,7 +38664,7 @@ function tileworld_ruleediting_RuleEditor_mainMenu__P12674_mk(s) { -function tileworld_ruleediting_RuleEditor_restoreCursor__P12676(s) { +function tileworld_ruleediting_RuleEditor_restoreCursor__P14503(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34662,7 +38679,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); r0 = s.arg0.fields["tileSaved"]; r0 = r0.fields["flags"]; s.tmp_3 = r0; @@ -34674,9 +38691,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); s.tmp_4.arg0 = s.arg0; - s.tmp_6 = Sprite_x__P770_mk(s); + s.tmp_6 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["tileSaved"]; s.tmp_6.arg0 = r0; s.callLocIdx = 1016; s.pc = 4; return s.tmp_6; @@ -34688,9 +38705,9 @@ switch (step) { s.callLocIdx = 1017; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P772_mk(s); + s.tmp_2 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["tileSaved"]; s.tmp_2.arg0 = r0; s.callLocIdx = 1018; s.pc = 6; return s.tmp_2; @@ -34702,7 +38719,7 @@ switch (step) { s.callLocIdx = 1019; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["tileSaved"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 128; @@ -34716,12 +38733,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_restoreCursor__P12676.info = {"start":8031,"length":259,"line":162,"column":8,"endLine":168,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"restoreCursor","argumentNames":["this"]} +tileworld_ruleediting_RuleEditor_restoreCursor__P14503.info = {"start":8031,"length":259,"line":162,"column":8,"endLine":168,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"restoreCursor","argumentNames":["this"]} -function tileworld_ruleediting_RuleEditor_restoreCursor__P12676_mk(s) { +function tileworld_ruleediting_RuleEditor_restoreCursor__P14503_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_restoreCursor__P12676, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_restoreCursor__P14503, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34737,7 +38754,7 @@ function tileworld_ruleediting_RuleEditor_restoreCursor__P12676_mk(s) { -function tileworld_RuleVisualsBase_isTileSaved__P10855(s) { +function tileworld_RuleVisualsBase_isTileSaved__P12701(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34752,7 +38769,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); r0 = s.arg0.fields["tileSaved"]; r0 = r0.fields["flags"]; s.tmp_2 = r0; @@ -34764,12 +38781,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_isTileSaved__P10855.info = {"start":5172,"length":102,"line":135,"column":8,"endLine":137,"endColumn":9,"fileName":"rulesBase.ts","functionName":"isTileSaved","argumentNames":["this"]} +tileworld_RuleVisualsBase_isTileSaved__P12701.info = {"start":5172,"length":102,"line":135,"column":8,"endLine":137,"endColumn":9,"fileName":"rulesBase.ts","functionName":"isTileSaved","argumentNames":["this"]} -function tileworld_RuleVisualsBase_isTileSaved__P10855_mk(s) { +function tileworld_RuleVisualsBase_isTileSaved__P12701_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_isTileSaved__P10855, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_isTileSaved__P12701, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34781,7 +38798,7 @@ function tileworld_RuleVisualsBase_isTileSaved__P10855_mk(s) { -function tileworld_Project_makeRule__P6121(s) { +function tileworld_Project_makeRule__P3701(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34791,8 +38808,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rv___6266 = undefined; - s.wd___6273 = undefined; + s.rv___8243 = undefined; + s.wd___8250 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34801,10 +38818,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - s.tmp_0 = tileworld_Project_wrapRule__P6129_mk(s); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + s.tmp_0 = tileworld_Project_wrapRule__P8111_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = tileworld_makeNewRule__P4322_mk(s); + s.tmp_1 = tileworld_makeNewRule__P3617_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = s.arg2; s.callLocIdx = 178; s.pc = 8; return s.tmp_1; @@ -34814,22 +38831,22 @@ switch (step) { s.callLocIdx = 179; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.rv___6266 = (r0); + s.rv___8243 = (r0); r0 = (s.arg3 != 65535); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = tileworld_RuleView_makeWhenDo__P4989_mk(s); - s.tmp_1.arg0 = s.rv___6266; + s.tmp_1 = tileworld_RuleView_makeWhenDo__P3644_mk(s); + s.tmp_1.arg0 = s.rv___8243; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = 2; s.callLocIdx = 180; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - s.wd___6273 = (r0); - s.tmp_0 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); - s.tmp_0.arg0 = s.rv___6266; - s.tmp_0.arg1 = s.wd___6273; + s.wd___8250 = (r0); + s.tmp_0 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); + s.tmp_0.arg0 = s.rv___8243; + s.tmp_0.arg1 = s.wd___8250; s.tmp_0.arg2 = s.arg3; s.tmp_0.arg3 = 1; s.callLocIdx = 181; s.pc = 10; return s.tmp_0; @@ -34848,9 +38865,9 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - s.tmp_2 = tileworld_RuleView_setWitnessDirection__P4999_mk(s); - s.tmp_2.arg0 = s.rv___6266; - s.tmp_2.arg1 = s.wd___6273; + s.tmp_2 = tileworld_RuleView_setWitnessDirection__P3652_mk(s); + s.tmp_2.arg0 = s.rv___8243; + s.tmp_2.arg1 = s.wd___8250; s.tmp_2.arg2 = s.arg2; s.callLocIdx = 182; s.pc = 11; return s.tmp_2; case 11: @@ -34859,28 +38876,28 @@ switch (step) { case 4: case 5: case 6: - s.tmp_0 = tileworld_Project_saveRule__P6120_mk(s); + s.tmp_0 = tileworld_Project_saveRule__P3700_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.rv___6266; + s.tmp_0.arg1 = s.rv___8243; s.callLocIdx = 183; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - r0 = s.rv___6266; + r0 = s.rv___8243; return leave(s, r0) default: oops() } } } -tileworld_Project_makeRule__P6121.info = {"start":4249,"length":552,"line":124,"column":8,"endLine":136,"endColumn":9,"fileName":"project.ts","functionName":"makeRule","argumentNames":["this","rt","ra","kind"]} +tileworld_Project_makeRule__P3701.info = {"start":4249,"length":552,"line":124,"column":8,"endLine":136,"endColumn":9,"fileName":"project.ts","functionName":"makeRule","argumentNames":["this","rt","ra","kind"]} -function tileworld_Project_makeRule__P6121_mk(s) { +function tileworld_Project_makeRule__P3701_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_makeRule__P6121, depth: s.depth + 1, + parent: s, fn: tileworld_Project_makeRule__P3701, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - rv___6266: undefined, - wd___6273: undefined, + rv___8243: undefined, + wd___8250: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34891,7 +38908,7 @@ function tileworld_Project_makeRule__P6121_mk(s) { -function tileworld_makeNewRule__P4322(s) { +function tileworld_makeNewRule__P3617(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34906,9 +38923,9 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(tileworld_Rule__C4315_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_Rule__C3615_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_Rule_constructor__P4316_mk(s); + s.tmp_1 = tileworld_Rule_constructor__P3616_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.tmp_1.arg2 = s.arg1; @@ -34922,12 +38939,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_makeNewRule__P4322.info = {"start":4724,"length":105,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"rule.ts","functionName":"makeNewRule","argumentNames":["rt","ra"]} +tileworld_makeNewRule__P3617.info = {"start":4724,"length":105,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"rule.ts","functionName":"makeNewRule","argumentNames":["rt","ra"]} -function tileworld_makeNewRule__P4322_mk(s) { +function tileworld_makeNewRule__P3617_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_makeNewRule__P4322, depth: s.depth + 1, + parent: s, fn: tileworld_makeNewRule__P3617, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34939,7 +38956,7 @@ function tileworld_makeNewRule__P4322_mk(s) { -function tileworld_Rule_constructor__P4316(s) { +function tileworld_Rule_constructor__P3616(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34958,7 +38975,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Rule__C4315_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Rule__C3615_VT)) failedCast(r0); r0 = (s.arg0).fields["ruleType"] = (s.arg1); r0 = (s.arg0).fields["ruleArg"] = (s.arg2); r0 = (s.arg0).fields["whenDo"] = (s.arg3); @@ -34967,12 +38984,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Rule_constructor__P4316.info = {"start":4384,"length":272,"line":118,"column":8,"endLine":123,"endColumn":13,"fileName":"rule.ts","functionName":"inline","argumentNames":["this","ruleType","ruleArg","whenDo","transforms"]} +tileworld_Rule_constructor__P3616.info = {"start":4384,"length":272,"line":118,"column":8,"endLine":123,"endColumn":13,"fileName":"rule.ts","functionName":"inline","argumentNames":["this","ruleType","ruleArg","whenDo","transforms"]} -function tileworld_Rule_constructor__P4316_mk(s) { +function tileworld_Rule_constructor__P3616_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Rule_constructor__P4316, depth: s.depth + 1, + parent: s, fn: tileworld_Rule_constructor__P3616, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -34985,7 +39002,7 @@ function tileworld_Rule_constructor__P4316_mk(s) { -function tileworld_Project_wrapRule__P6129(s) { +function tileworld_Project_wrapRule__P8111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34995,43 +39012,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rids___6519 = undefined; - s.rid___6536 = undefined; - s.i___6537 = undefined; - s.newRule___6555 = undefined; + s.rids___8494 = undefined; + s.rid___8509 = undefined; + s.i___8510 = undefined; + s.newRule___8528 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - s.tmp_0 = helpers_arraySort__P56_mk(s); - s.tmp_1 = helpers_arrayMap__P57_mk(s); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + s.tmp_0 = helpers_arraySort__P100_mk(s); + s.tmp_1 = helpers_arrayMap__P101_mk(s); r0 = s.arg0.fields["rules"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = inline__P6526; + s.tmp_1.arg1 = inline__P8499; s.callLocIdx = 223; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P6530; + s.tmp_0.arg1 = inline__P8503; s.callLocIdx = 224; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.rids___6519 = (r0); - s.rid___6536 = (0); - s.i___6537 = (0); + s.rids___8494 = (r0); + s.rid___8509 = (0); + s.i___8510 = (0); case 1: - s.tmp_1 = r0 = s.i___6537; - r0 = pxsim_Array__length(s.rids___6519); + s.tmp_1 = r0 = s.i___8510; + r0 = pxsim_Array__length(s.rids___8494); 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_4 = r0 = s.rid___6536; - r0 = pxsim_Array__getAt(s.rids___6519, s.i___6537); + s.tmp_4 = r0 = s.rid___8509; + r0 = pxsim_Array__getAt(s.rids___8494, s.i___8510); s.tmp_5 = r0; r0 = (s.tmp_4 != s.tmp_5); s.tmp_3 = r0; @@ -35040,38 +39057,38 @@ switch (step) { { step = 4; continue; } case 2: case 3: - r0 = pxsim_Array__getAt(s.rids___6519, s.i___6537); + r0 = pxsim_Array__getAt(s.rids___8494, s.i___8510); s.tmp_6 = r0; r0 = (s.tmp_6 + 1); - s.rid___6536 = (r0); - r0 = (s.i___6537 + 1); - s.i___6537 = (r0); + s.rid___8509 = (r0); + r0 = (s.i___8510 + 1); + s.i___8510 = (r0); { step = 1; continue; } case 4: - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C4976_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C3630_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_RuleView_constructor__P5013_mk(s); + s.tmp_1 = tileworld_RuleView_constructor__P3631_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.rid___6536; + s.tmp_1.arg2 = s.rid___8509; s.tmp_1.arg3 = s.arg1; s.callLocIdx = 225; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - s.newRule___6555 = (s.tmp_0); + s.newRule___8528 = (s.tmp_0); r0 = s.arg0.fields["rules"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.newRule___6555); - r0 = s.newRule___6555; + r0 = pxsim_Array__push(s.tmp_0, s.newRule___8528); + r0 = s.newRule___8528; return leave(s, r0) default: oops() } } } -tileworld_Project_wrapRule__P6129.info = {"start":7197,"length":477,"line":196,"column":8,"endLine":208,"endColumn":9,"fileName":"project.ts","functionName":"wrapRule","argumentNames":["this","r"]} +tileworld_Project_wrapRule__P8111.info = {"start":7197,"length":477,"line":196,"column":8,"endLine":208,"endColumn":9,"fileName":"project.ts","functionName":"wrapRule","argumentNames":["this","r"]} -function tileworld_Project_wrapRule__P6129_mk(s) { +function tileworld_Project_wrapRule__P8111_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_wrapRule__P6129, depth: s.depth + 1, + parent: s, fn: tileworld_Project_wrapRule__P8111, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35080,10 +39097,10 @@ function tileworld_Project_wrapRule__P6129_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - rids___6519: undefined, - rid___6536: undefined, - i___6537: undefined, - newRule___6555: undefined, + rids___8494: undefined, + rid___8509: undefined, + i___8510: undefined, + newRule___8528: undefined, arg0: undefined, arg1: undefined, } } @@ -35092,7 +39109,7 @@ function tileworld_Project_wrapRule__P6129_mk(s) { -function inline__P6526(s) { +function inline__P8499(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35110,12 +39127,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P6526.info = {"start":7317,"length":18,"line":198,"column":38,"endLine":198,"endColumn":56,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]} +inline__P8499.info = {"start":7317,"length":18,"line":198,"column":38,"endLine":198,"endColumn":56,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]} -function inline__P6526_mk(s) { +function inline__P8499_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6526, depth: s.depth + 1, + parent: s, fn: inline__P8499, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -35124,7 +39141,7 @@ function inline__P6526_mk(s) { -function inline__P6530(s) { +function inline__P8503(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35143,12 +39160,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P6530.info = {"start":7342,"length":14,"line":198,"column":63,"endLine":198,"endColumn":77,"fileName":"project.ts","functionName":"inline","argumentNames":["a","b"]} +inline__P8503.info = {"start":7342,"length":14,"line":198,"column":63,"endLine":198,"endColumn":77,"fileName":"project.ts","functionName":"inline","argumentNames":["a","b"]} -function inline__P6530_mk(s) { +function inline__P8503_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6530, depth: s.depth + 1, + parent: s, fn: inline__P8503, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -35158,7 +39175,7 @@ function inline__P6530_mk(s) { -function helpers_arrayMap__P57(s) { +function helpers_arrayMap__P101(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35168,58 +39185,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___25438 = undefined; - s.len___25440 = undefined; - s.i___25443 = undefined; + s.res___27093 = undefined; + s.len___27095 = undefined; + s.i___27098 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___25438 = (r0); + s.res___27093 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___25440 = (r0); - s.i___25443 = (0); + s.len___27095 = (r0); + s.i___27098 = (0); case 1: - r0 = (s.i___25443 < s.len___25440); + r0 = (s.i___27098 < s.len___27095); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___25438; + s.tmp_1 = r0 = s.res___27093; s.tmp_3 = lambda_3_mk(s); s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___25443); + r0 = pxsim_Array__getAt(s.arg0, s.i___27098); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___25443; + s.tmp_3.arg1 = s.i___27098; setupLambda(s.tmp_3, s.tmp_3.argL); s.callLocIdx = 4; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___25443 + 1); - s.i___25443 = (r0); + r0 = (s.i___27098 + 1); + s.i___27098 = (r0); { step = 1; continue; } case 2: - r0 = s.res___25438; + r0 = s.res___27093; return leave(s, r0) default: oops() } } } -helpers_arrayMap__P57.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__P101.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__P57_mk(s) { +function helpers_arrayMap__P101_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P57, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P101, depth: s.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___25438: undefined, - len___25440: undefined, - i___25443: undefined, + res___27093: undefined, + len___27095: undefined, + i___27098: undefined, arg0: undefined, arg1: undefined, } } @@ -35228,7 +39245,7 @@ function helpers_arrayMap__P57_mk(s) { -function tileworld_RuleVisualsBase_getRulesForTypeDir__P10845(s) { +function tileworld_RuleVisualsBase_getRulesForTypeDir__P12691(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35246,12 +39263,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P11066); + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P12911); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg2); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg3); - s.tmp_1 = helpers_arrayFilter__P61_mk(s); + s.tmp_1 = helpers_arrayFilter__P105_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 677; s.pc = 1; return s.tmp_1; @@ -35260,12 +39277,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_getRulesForTypeDir__P10845.info = {"start":3688,"length":186,"line":92,"column":8,"endLine":94,"endColumn":9,"fileName":"rulesBase.ts","functionName":"getRulesForTypeDir","argumentNames":["this","rules","rt","dir"]} +tileworld_RuleVisualsBase_getRulesForTypeDir__P12691.info = {"start":3688,"length":186,"line":92,"column":8,"endLine":94,"endColumn":9,"fileName":"rulesBase.ts","functionName":"getRulesForTypeDir","argumentNames":["this","rules","rt","dir"]} -function tileworld_RuleVisualsBase_getRulesForTypeDir__P10845_mk(s) { +function tileworld_RuleVisualsBase_getRulesForTypeDir__P12691_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35279,7 +39296,7 @@ function tileworld_RuleVisualsBase_getRulesForTypeDir__P10845_mk(s) { -function inline__P11066(s) { +function inline__P12911(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35303,7 +39320,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_3 = tileworld_RuleView_getDirFromRule__P4987_mk(s); + s.tmp_3 = tileworld_RuleView_getDirFromRule__P3642_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 676; s.pc = 3; return s.tmp_3; case 3: @@ -35317,12 +39334,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P11066.info = {"start":3804,"length":58,"line":93,"column":32,"endLine":93,"endColumn":90,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["rv"]} +inline__P12911.info = {"start":3804,"length":58,"line":93,"column":32,"endLine":93,"endColumn":90,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["rv"]} -function inline__P11066_mk(s) { +function inline__P12911_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P11066, depth: s.depth + 1, + parent: s, fn: inline__P12911, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35336,7 +39353,7 @@ function inline__P11066_mk(s) { -function tileworld_Project_getRulesForSpriteKind__P6130(s) { +function tileworld_Project_getRulesForSpriteKind__P3708(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35352,11 +39369,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P6571); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P8544); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P61_mk(s); + s.tmp_1 = helpers_arrayFilter__P105_mk(s); r0 = s.arg0.fields["rules"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; @@ -35366,12 +39383,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_getRulesForSpriteKind__P6130.info = {"start":7688,"length":122,"line":210,"column":8,"endLine":212,"endColumn":9,"fileName":"project.ts","functionName":"getRulesForSpriteKind","argumentNames":["this","kind"]} +tileworld_Project_getRulesForSpriteKind__P3708.info = {"start":7688,"length":122,"line":210,"column":8,"endLine":212,"endColumn":9,"fileName":"project.ts","functionName":"getRulesForSpriteKind","argumentNames":["this","kind"]} -function tileworld_Project_getRulesForSpriteKind__P6130_mk(s) { +function tileworld_Project_getRulesForSpriteKind__P3708_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_getRulesForSpriteKind__P6130, depth: s.depth + 1, + parent: s, fn: tileworld_Project_getRulesForSpriteKind__P3708, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35383,7 +39400,7 @@ function tileworld_Project_getRulesForSpriteKind__P6130_mk(s) { -function inline__P6571(s) { +function inline__P8544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35397,7 +39414,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleView_hasSpriteKind__P5006_mk(s); + s.tmp_0 = tileworld_RuleView_hasSpriteKind__P3660_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.caps[0]; s.callLocIdx = 226; s.pc = 1; return s.tmp_0; @@ -35406,12 +39423,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P6571.info = {"start":7770,"length":28,"line":211,"column":37,"endLine":211,"endColumn":65,"fileName":"project.ts","functionName":"inline","argumentNames":["rv"]} +inline__P8544.info = {"start":7770,"length":28,"line":211,"column":37,"endLine":211,"endColumn":65,"fileName":"project.ts","functionName":"inline","argumentNames":["rv"]} -function inline__P6571_mk(s) { +function inline__P8544_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6571, depth: s.depth + 1, + parent: s, fn: inline__P8544, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35421,7 +39438,7 @@ function inline__P6571_mk(s) { -function tileworld_RuleView_hasSpriteKind__P5006(s) { +function tileworld_RuleView_hasSpriteKind__P3660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35431,32 +39448,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___5734 = undefined; + s.wd___7759 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.tmp_0.arg2 = 2; s.callLocIdx = 147; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.wd___5734 = (r0); - r0 = (s.wd___5734 == -1); + s.wd___7759 = (r0); + r0 = (s.wd___7759 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = false; { step = 2; continue; } case 1: - s.tmp_2 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); + s.tmp_2 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.wd___5734; + s.tmp_2.arg1 = s.wd___7759; s.tmp_2.arg2 = s.arg1; s.tmp_2.arg3 = 65535; s.callLocIdx = 148; s.pc = 4; return s.tmp_2; @@ -35471,18 +39488,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleView_hasSpriteKind__P5006.info = {"start":8924,"length":219,"line":256,"column":8,"endLine":260,"endColumn":9,"fileName":"ruleview.ts","functionName":"hasSpriteKind","argumentNames":["this","kind"]} +tileworld_RuleView_hasSpriteKind__P3660.info = {"start":8924,"length":219,"line":256,"column":8,"endLine":260,"endColumn":9,"fileName":"ruleview.ts","functionName":"hasSpriteKind","argumentNames":["this","kind"]} -function tileworld_RuleView_hasSpriteKind__P5006_mk(s) { +function tileworld_RuleView_hasSpriteKind__P3660_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleView_hasSpriteKind__P5006, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_hasSpriteKind__P3660, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - wd___5734: undefined, + wd___7759: undefined, arg0: undefined, arg1: undefined, } } @@ -35491,7 +39508,7 @@ function tileworld_RuleView_hasSpriteKind__P5006_mk(s) { -function tileworld_Project_spriteCnt__P5256(s) { +function tileworld_Project_spriteCnt__P3692(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35506,19 +39523,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = s.arg0.fields["_spritesI"]; s.tmp_0 = r0; r0 = pxsim_Array__length(s.tmp_0); return leave(s, r0) default: oops() } } } -tileworld_Project_spriteCnt__P5256.info = {"start":3210,"length":52,"line":97,"column":8,"endLine":97,"endColumn":60,"fileName":"project.ts","functionName":"spriteCnt","argumentNames":["this"]} +tileworld_Project_spriteCnt__P3692.info = {"start":3210,"length":52,"line":97,"column":8,"endLine":97,"endColumn":60,"fileName":"project.ts","functionName":"spriteCnt","argumentNames":["this"]} -function tileworld_Project_spriteCnt__P5256_mk(s) { +function tileworld_Project_spriteCnt__P3692_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_spriteCnt__P5256, depth: s.depth + 1, + parent: s, fn: tileworld_Project_spriteCnt__P3692, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35528,7 +39545,7 @@ function tileworld_Project_spriteCnt__P5256_mk(s) { -function tileworld_ruleediting_RuleRoom_update__P12558(s) { +function tileworld_ruleediting_RuleRoom_update__P14387(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35543,10 +39560,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.fill(globals.screen___578, 15); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; + if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.fill(globals.screen___1799, 15); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 6; s.tmp_0.arg3 = 16; @@ -35555,18 +39572,18 @@ switch (step) { s.callLocIdx = 877; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___578, globals.code___7226, 0, 6); - s.tmp_0 = tileworld_ruleediting_RuleRoom_showRuleMenu__P12564_mk(s); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, globals.code___3715, 0, 6); + s.tmp_0 = tileworld_ruleediting_RuleRoom_showRuleMenu__P14393_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 0; s.callLocIdx = 878; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P12798); + r0 = pxsim_pxtcore_mkAction(1, inline__P14624); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["_spritesI"]; @@ -35579,12 +39596,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_update__P12558.info = {"start":2835,"length":324,"line":62,"column":8,"endLine":70,"endColumn":9,"fileName":"spriteRules.ts","functionName":"update","argumentNames":["this"]} +tileworld_ruleediting_RuleRoom_update__P14387.info = {"start":2835,"length":324,"line":62,"column":8,"endLine":70,"endColumn":9,"fileName":"spriteRules.ts","functionName":"update","argumentNames":["this"]} -function tileworld_ruleediting_RuleRoom_update__P12558_mk(s) { +function tileworld_ruleediting_RuleRoom_update__P14387_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_update__P12558, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_update__P14387, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35596,7 +39613,7 @@ function tileworld_ruleediting_RuleRoom_update__P12558_mk(s) { -function inline__P12798(s) { +function inline__P14624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35611,7 +39628,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 0; r0 = (1 + s.arg1); @@ -35624,12 +39641,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P12798.info = {"start":3074,"length":73,"line":67,"column":42,"endLine":69,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":["img","i"]} +inline__P14624.info = {"start":3074,"length":73,"line":67,"column":42,"endLine":69,"endColumn":13,"fileName":"spriteRules.ts","functionName":"inline","argumentNames":["img","i"]} -function inline__P12798_mk(s) { +function inline__P14624_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P12798, depth: s.depth + 1, + parent: s, fn: inline__P14624, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35640,7 +39657,7 @@ function inline__P12798_mk(s) { -function tileworld_ruleediting_RuleRoom_showRuleMenu__P12564(s) { +function tileworld_ruleediting_RuleRoom_showRuleMenu__P14393(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35657,9 +39674,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = tileworld_Project_getRulesForSpriteKind__P6130_mk(s); + s.tmp_2 = tileworld_Project_getRulesForSpriteKind__P3708_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["kind"]; @@ -35669,7 +39686,7 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["rules"] = (s.tmp_1); - s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P12560_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + 3); s.tmp_0.arg1 = r0; @@ -35678,7 +39695,7 @@ switch (step) { s.callLocIdx = 902; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 6; @@ -35690,7 +39707,7 @@ switch (step) { s.callLocIdx = 903; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 2; @@ -35704,7 +39721,7 @@ switch (step) { s.callLocIdx = 904; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 0; @@ -35718,7 +39735,7 @@ switch (step) { s.callLocIdx = 905; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 1; @@ -35729,7 +39746,7 @@ switch (step) { s.callLocIdx = 906; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; @@ -35741,7 +39758,7 @@ switch (step) { s.callLocIdx = 907; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 4; @@ -35755,7 +39772,7 @@ switch (step) { s.callLocIdx = 908; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 5; @@ -35769,7 +39786,7 @@ switch (step) { s.callLocIdx = 909; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P12563_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = "change"; s.tmp_0.arg2 = 3; @@ -35777,7 +39794,7 @@ switch (step) { s.callLocIdx = 910; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P12560_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + 3); s.tmp_0.arg1 = r0; @@ -35786,7 +39803,7 @@ switch (step) { s.callLocIdx = 911; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.tmp_0.arg2 = 2; @@ -35798,7 +39815,7 @@ switch (step) { s.callLocIdx = 912; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.tmp_0.arg2 = 0; @@ -35810,7 +39827,7 @@ switch (step) { s.callLocIdx = 913; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.tmp_0.arg2 = 1; @@ -35822,7 +39839,7 @@ switch (step) { s.callLocIdx = 914; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.tmp_0.arg2 = 3; @@ -35834,15 +39851,15 @@ switch (step) { s.callLocIdx = 915; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + 3); s.tmp_0.arg1 = r0; r0 = (s.arg2 + 5); s.tmp_0.arg2 = r0; - s.tmp_1 = tileworld_ruleediting_RuleRoom__C12555_v3_1_mk(s); + s.tmp_1 = tileworld_ruleediting_RuleRoom__C3805_v3_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.centerImage; s.pc = 17; return s.tmp_1; case 17: @@ -35851,7 +39868,7 @@ switch (step) { s.callLocIdx = 916; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P12563_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = "smash"; s.tmp_0.arg2 = 3; @@ -35859,7 +39876,7 @@ switch (step) { s.callLocIdx = 917; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P12560_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + 7); s.tmp_0.arg1 = r0; @@ -35868,7 +39885,7 @@ switch (step) { s.callLocIdx = 918; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 2; @@ -35882,7 +39899,7 @@ switch (step) { s.callLocIdx = 919; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; @@ -35896,7 +39913,7 @@ switch (step) { s.callLocIdx = 920; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 3; @@ -35908,7 +39925,7 @@ switch (step) { s.callLocIdx = 921; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 1; @@ -35920,7 +39937,7 @@ switch (step) { s.callLocIdx = 922; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 4; @@ -35932,7 +39949,7 @@ switch (step) { s.callLocIdx = 923; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P12563_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = "press"; s.tmp_0.arg2 = 7; @@ -35940,7 +39957,7 @@ switch (step) { s.callLocIdx = 924; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P12560_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + 7); s.tmp_0.arg1 = r0; @@ -35949,7 +39966,7 @@ switch (step) { s.callLocIdx = 925; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 3; s.tmp_0.arg2 = 6; @@ -35963,7 +39980,7 @@ switch (step) { s.callLocIdx = 926; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P12563_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = "misc"; s.tmp_0.arg2 = 7; @@ -35975,12 +39992,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_showRuleMenu__P12564.info = {"start":5336,"length":2147,"line":118,"column":8,"endLine":152,"endColumn":9,"fileName":"spriteRules.ts","functionName":"showRuleMenu","argumentNames":["this","x","y"]} +tileworld_ruleediting_RuleRoom_showRuleMenu__P14393.info = {"start":5336,"length":2147,"line":118,"column":8,"endLine":152,"endColumn":9,"fileName":"spriteRules.ts","functionName":"showRuleMenu","argumentNames":["this","x","y"]} -function tileworld_ruleediting_RuleRoom_showRuleMenu__P12564_mk(s) { +function tileworld_ruleediting_RuleRoom_showRuleMenu__P14393_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_showRuleMenu__P12564, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_showRuleMenu__P14393, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35994,7 +40011,7 @@ function tileworld_ruleediting_RuleRoom_showRuleMenu__P12564_mk(s) { -function tileworld_ruleediting_RuleRoom_centerImage__P12559(s) { +function tileworld_ruleediting_RuleRoom_centerImage__P14388(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36009,8 +40026,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); - s.tmp_0 = tileworld_Project_getSpriteImage__P6007_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); + s.tmp_0 = tileworld_Project_getSpriteImage__P3697_mk(s); r0 = s.arg0.fields["p"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["kind"]; @@ -36021,12 +40038,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_centerImage__P12559.info = {"start":3171,"length":90,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"spriteRules.ts","functionName":"centerImage","argumentNames":["this"]} +tileworld_ruleediting_RuleRoom_centerImage__P14388.info = {"start":3171,"length":90,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"spriteRules.ts","functionName":"centerImage","argumentNames":["this"]} -function tileworld_ruleediting_RuleRoom_centerImage__P12559_mk(s) { +function tileworld_ruleediting_RuleRoom_centerImage__P14388_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_centerImage__P12559, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_centerImage__P14388, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36036,7 +40053,7 @@ function tileworld_ruleediting_RuleRoom_centerImage__P12559_mk(s) { -function tileworld_Project_getSpriteImage__P6007(s) { +function tileworld_Project_getSpriteImage__P3697(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36052,7 +40069,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = (0 <= s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -36084,12 +40101,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_getSpriteImage__P6007.info = {"start":3614,"length":134,"line":106,"column":8,"endLine":108,"endColumn":9,"fileName":"project.ts","functionName":"getSpriteImage","argumentNames":["this","kind"]} +tileworld_Project_getSpriteImage__P3697.info = {"start":3614,"length":134,"line":106,"column":8,"endLine":108,"endColumn":9,"fileName":"project.ts","functionName":"getSpriteImage","argumentNames":["this","kind"]} -function tileworld_Project_getSpriteImage__P6007_mk(s) { +function tileworld_Project_getSpriteImage__P3697_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_getSpriteImage__P6007, depth: s.depth + 1, + parent: s, fn: tileworld_Project_getSpriteImage__P3697, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36106,7 +40123,7 @@ function tileworld_Project_getSpriteImage__P6007_mk(s) { -function tileworld_ruleediting_RuleRoom_stringColumn__P12563(s) { +function tileworld_ruleediting_RuleRoom_stringColumn__P14392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36116,7 +40133,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___12982 = undefined; + s.i___14808 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36125,19 +40142,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); - s.i___12982 = (0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); + s.i___14808 = (0); case 1: - s.tmp_1 = r0 = s.i___12982; + s.tmp_1 = r0 = s.i___14808; 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 = 2; continue; } - s.tmp_3 = helpers_imagePrint__P541_mk(s); - s.tmp_3.arg0 = globals.screen___578; - r0 = pxsim_String_.charAt(s.arg1, s.i___12982); + s.tmp_3 = helpers_imagePrint__P1757_mk(s); + s.tmp_3.arg0 = globals.screen___1799; + r0 = pxsim_String_.charAt(s.arg1, s.i___14808); s.tmp_3.arg1 = r0; r0 = (s.arg2 << 4); s.tmp_4 = r0; @@ -36145,7 +40162,7 @@ switch (step) { s.tmp_3.arg2 = r0; r0 = (s.arg3 << 4); s.tmp_6 = r0; - r0 = (s.i___12982 << 3); + r0 = (s.i___14808 << 3); s.tmp_7 = r0; r0 = (s.tmp_6 + s.tmp_7); s.tmp_5 = r0; @@ -36157,20 +40174,20 @@ switch (step) { s.callLocIdx = 900; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - r0 = (s.i___12982 + 1); - s.i___12982 = (r0); + r0 = (s.i___14808 + 1); + s.i___14808 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_stringColumn__P12563.info = {"start":5109,"length":215,"line":112,"column":8,"endLine":116,"endColumn":9,"fileName":"spriteRules.ts","functionName":"stringColumn","argumentNames":["this","s","col","row"]} +tileworld_ruleediting_RuleRoom_stringColumn__P14392.info = {"start":5109,"length":215,"line":112,"column":8,"endLine":116,"endColumn":9,"fileName":"spriteRules.ts","functionName":"stringColumn","argumentNames":["this","s","col","row"]} -function tileworld_ruleediting_RuleRoom_stringColumn__P12563_mk(s) { +function tileworld_ruleediting_RuleRoom_stringColumn__P14392_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_stringColumn__P12563, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_stringColumn__P14392, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36180,7 +40197,7 @@ function tileworld_ruleediting_RuleRoom_stringColumn__P12563_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - i___12982: undefined, + i___14808: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36191,7 +40208,7 @@ function tileworld_ruleediting_RuleRoom_stringColumn__P12563_mk(s) { -function tileworld_ruleediting_RuleRoom_doBoth__P12562(s) { +function tileworld_ruleediting_RuleRoom_doBoth__P14391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36201,12 +40218,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scol___12864 = undefined; - s.rules___12865 = undefined; - s.tcol___12879 = undefined; - s.trow___12885 = undefined; - s.tcol___12909 = undefined; - s.trow___12918 = undefined; + s.scol___14690 = undefined; + s.rules___14691 = undefined; + s.tcol___14705 = undefined; + s.trow___14711 = undefined; + s.tcol___14735 = undefined; + s.trow___14744 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36217,9 +40234,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); - s.scol___12864 = (13); - s.tmp_0 = tileworld_RuleVisualsBase_getRulesForTypeDir__P10845_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); + s.scol___14690 = (13); + s.tmp_0 = tileworld_RuleVisualsBase_getRulesForTypeDir__P12691_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg0.fields["rules"]; s.tmp_0.arg1 = r0; @@ -36228,7 +40245,7 @@ switch (step) { s.callLocIdx = 884; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - s.rules___12865 = (r0); + s.rules___14691 = (r0); r0 = (s.arg1 == 2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -36243,50 +40260,50 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 5; continue; } s.tmp_2 = r0 = s.arg3; - s.tmp_4 = tileworld_moveXdelta__P4332_mk(s); + s.tmp_4 = tileworld_moveXdelta__P3618_mk(s); s.tmp_4.arg0 = s.arg2; s.callLocIdx = 885; s.pc = 24; return s.tmp_4; case 24: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); - s.tcol___12879 = (r0); + s.tcol___14705 = (r0); s.tmp_0 = r0 = s.arg4; - s.tmp_2 = tileworld_moveYdelta__P4344_mk(s); + s.tmp_2 = tileworld_moveYdelta__P3619_mk(s); s.tmp_2.arg0 = s.arg2; s.callLocIdx = 886; s.pc = 25; return s.tmp_2; case 25: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.trow___12885 = (r0); - s.tmp_0 = tileworld_ruleediting_RuleRoom_setRuleType__P12561_mk(s); + s.trow___14711 = (r0); + s.tmp_0 = tileworld_ruleediting_RuleRoom_setRuleType__P14390_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.tcol___12879; - s.tmp_0.arg4 = s.trow___12885; + s.tmp_0.arg3 = s.tcol___14705; + s.tmp_0.arg4 = s.trow___14711; s.callLocIdx = 887; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - r0 = pxsim_Array__length(s.rules___12865); + r0 = pxsim_Array__length(s.rules___14691); 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; } - s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tcol___12879; - s.tmp_2.arg2 = s.trow___12885; - s.tmp_2.arg3 = s.scol___12864; + s.tmp_2.arg1 = s.tcol___14705; + s.tmp_2.arg2 = s.trow___14711; + s.tmp_2.arg3 = s.scol___14690; s.callLocIdx = 888; s.pc = 27; return s.tmp_2; case 27: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P10852_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.tcol___12879; - s.tmp_0.arg2 = s.trow___12885; + s.tmp_0.arg1 = s.tcol___14705; + s.tmp_0.arg2 = s.trow___14711; s.tmp_0.arg3 = 1; s.callLocIdx = 889; s.pc = 28; return s.tmp_0; case 28: @@ -36304,7 +40321,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 6; continue; } s.tmp_2 = r0 = s.arg3; - s.tmp_4 = tileworld_moveXdelta__P4332_mk(s); + s.tmp_4 = tileworld_moveXdelta__P3618_mk(s); s.tmp_4.arg0 = s.arg2; s.callLocIdx = 890; s.pc = 29; return s.tmp_4; case 29: @@ -36317,13 +40334,13 @@ switch (step) { case 7: // jmp value (already in r0) s.tmp_5 = r0; - s.tcol___12909 = (s.tmp_5); + s.tcol___14735 = (s.tmp_5); r0 = (s.arg2 < 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } s.tmp_1 = r0 = s.arg4; - s.tmp_3 = tileworld_moveYdelta__P4344_mk(s); + s.tmp_3 = tileworld_moveYdelta__P3619_mk(s); s.tmp_3.arg0 = s.arg2; s.callLocIdx = 891; s.pc = 30; return s.tmp_3; case 30: @@ -36336,45 +40353,45 @@ switch (step) { case 9: // jmp value (already in r0) s.tmp_4 = r0; - s.trow___12918 = (s.tmp_4); - s.tmp_0 = tileworld_ruleediting_RuleRoom_setRuleType__P12561_mk(s); + s.trow___14744 = (s.tmp_4); + s.tmp_0 = tileworld_ruleediting_RuleRoom_setRuleType__P14390_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = s.tcol___12909; - s.tmp_0.arg4 = s.trow___12918; + s.tmp_0.arg3 = s.tcol___14735; + s.tmp_0.arg4 = s.trow___14744; s.callLocIdx = 892; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; - r0 = pxsim_Array__length(s.rules___12865); + r0 = pxsim_Array__length(s.rules___14691); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tcol___12909; - s.tmp_2.arg2 = s.trow___12918; - s.tmp_2.arg3 = s.scol___12864; + s.tmp_2.arg1 = s.tcol___14735; + s.tmp_2.arg2 = s.trow___14744; + s.tmp_2.arg3 = s.scol___14690; s.callLocIdx = 893; s.pc = 32; return s.tmp_2; case 32: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P10852_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.tcol___12909; - s.tmp_0.arg2 = s.trow___12918; + s.tmp_0.arg1 = s.tcol___14735; + s.tmp_0.arg2 = s.trow___14744; s.tmp_0.arg3 = 1; s.callLocIdx = 894; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; case 10: case 11: - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.tcol___12909; - s.tmp_0.arg2 = s.trow___12918; - r0 = pxsim_Array__getAt(globals.buttonImages___11238, s.arg2); + s.tmp_0.arg1 = s.tcol___14735; + s.tmp_0.arg2 = s.trow___14744; + r0 = pxsim_Array__getAt(globals.buttonImages___3791, s.arg2); s.tmp_0.arg3 = r0; s.callLocIdx = 895; s.pc = 34; return s.tmp_0; case 34: @@ -36394,7 +40411,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 17; continue; } - s.tmp_2 = tileworld_ruleediting_RuleRoom_setRuleType__P12561_mk(s); + s.tmp_2 = tileworld_ruleediting_RuleRoom_setRuleType__P14390_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; s.tmp_2.arg2 = s.arg2; @@ -36403,21 +40420,21 @@ switch (step) { s.callLocIdx = 896; s.pc = 35; return s.tmp_2; case 35: r0 = s.retval; - r0 = pxsim_Array__length(s.rules___12865); + r0 = pxsim_Array__length(s.rules___14691); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg3; s.tmp_2.arg2 = s.arg4; - s.tmp_2.arg3 = s.scol___12864; + s.tmp_2.arg3 = s.scol___14690; s.callLocIdx = 897; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P10852_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawOutline__P12698_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; s.tmp_0.arg2 = s.arg4; @@ -36435,7 +40452,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 21; continue; } - s.tmp_1 = tileworld_ruleediting_RuleDisplay_showRuleType__P11275_mk(s); + s.tmp_1 = tileworld_ruleediting_RuleDisplay_showRuleType__P13110_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -36451,12 +40468,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_doBoth__P12562.info = {"start":3772,"length":1325,"line":90,"column":8,"endLine":110,"endColumn":9,"fileName":"spriteRules.ts","functionName":"doBoth","argumentNames":["this","rt","rd","col","row","center"]} +tileworld_ruleediting_RuleRoom_doBoth__P14391.info = {"start":3772,"length":1325,"line":90,"column":8,"endLine":110,"endColumn":9,"fileName":"spriteRules.ts","functionName":"doBoth","argumentNames":["this","rt","rd","col","row","center"]} -function tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s) { +function tileworld_ruleediting_RuleRoom_doBoth__P14391_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_doBoth__P12562, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_doBoth__P14391, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36464,12 +40481,12 @@ function tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scol___12864: undefined, - rules___12865: undefined, - tcol___12879: undefined, - trow___12885: undefined, - tcol___12909: undefined, - trow___12918: undefined, + scol___14690: undefined, + rules___14691: undefined, + tcol___14705: undefined, + trow___14711: undefined, + tcol___14735: undefined, + trow___14744: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36482,7 +40499,7 @@ function tileworld_ruleediting_RuleRoom_doBoth__P12562_mk(s) { -function tileworld_ruleediting_RuleRoom_setRuleType__P12561(s) { +function tileworld_ruleediting_RuleRoom_setRuleType__P14390(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36501,7 +40518,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); r0 = s.arg0.fields["ruleTypeMap"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.arg3, s.arg4, s.arg1); @@ -36512,12 +40529,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_setRuleType__P12561.info = {"start":3530,"length":194,"line":84,"column":8,"endLine":87,"endColumn":9,"fileName":"spriteRules.ts","functionName":"setRuleType","argumentNames":["this","rt","rd","col","row"]} +tileworld_ruleediting_RuleRoom_setRuleType__P14390.info = {"start":3530,"length":194,"line":84,"column":8,"endLine":87,"endColumn":9,"fileName":"spriteRules.ts","functionName":"setRuleType","argumentNames":["this","rt","rd","col","row"]} -function tileworld_ruleediting_RuleRoom_setRuleType__P12561_mk(s) { +function tileworld_ruleediting_RuleRoom_setRuleType__P14390_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_setRuleType__P12561, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_setRuleType__P14390, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36531,7 +40548,7 @@ function tileworld_ruleediting_RuleRoom_setRuleType__P12561_mk(s) { -function tileworld_moveYdelta__P4344(s) { +function tileworld_moveYdelta__P3619(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36571,12 +40588,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_moveYdelta__P4344.info = {"start":4981,"length":137,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"rule.ts","functionName":"moveYdelta","argumentNames":["dir"]} +tileworld_moveYdelta__P3619.info = {"start":4981,"length":137,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"rule.ts","functionName":"moveYdelta","argumentNames":["dir"]} -function tileworld_moveYdelta__P4344_mk(s) { +function tileworld_moveYdelta__P3619_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_moveYdelta__P4344, depth: s.depth + 1, + parent: s, fn: tileworld_moveYdelta__P3619, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36589,7 +40606,7 @@ function tileworld_moveYdelta__P4344_mk(s) { -function tileworld_moveXdelta__P4332(s) { +function tileworld_moveXdelta__P3618(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36629,12 +40646,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_moveXdelta__P4332.info = {"start":4835,"length":140,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"rule.ts","functionName":"moveXdelta","argumentNames":["dir"]} +tileworld_moveXdelta__P3618.info = {"start":4835,"length":140,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"rule.ts","functionName":"moveXdelta","argumentNames":["dir"]} -function tileworld_moveXdelta__P4332_mk(s) { +function tileworld_moveXdelta__P3618_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_moveXdelta__P4332, depth: s.depth + 1, + parent: s, fn: tileworld_moveXdelta__P3618, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36647,7 +40664,7 @@ function tileworld_moveXdelta__P4332_mk(s) { -function tileworld_ruleediting_RuleRoom_make3by3__P12560(s) { +function tileworld_ruleediting_RuleRoom_make3by3__P14389(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36657,8 +40674,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___12815 = undefined; - s.j___12821 = undefined; + s.i___14641 = undefined; + s.j___14647 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36666,52 +40683,52 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); - s.i___12815 = (-1); + if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); + s.i___14641 = (-1); case 1: - r0 = (s.i___12815 <= 1); + r0 = (s.i___14641 <= 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.j___12821 = (-1); + s.j___14647 = (-1); case 2: - r0 = (s.j___12821 <= 1); + r0 = (s.j___14647 <= 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_1.arg0 = s.arg0; - r0 = (s.arg1 + s.i___12815); + r0 = (s.arg1 + s.i___14641); s.tmp_1.arg1 = r0; - r0 = (s.arg2 + s.j___12821); + r0 = (s.arg2 + s.j___14647); s.tmp_1.arg2 = r0; - s.tmp_1.arg3 = globals.emptyTile___7244; + s.tmp_1.arg3 = globals.emptyTile___3721; s.callLocIdx = 883; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = (s.j___12821 + 1); - s.j___12821 = (r0); + r0 = (s.j___14647 + 1); + s.j___14647 = (r0); { step = 2; continue; } case 3: - r0 = (s.i___12815 + 1); - s.i___12815 = (r0); + r0 = (s.i___14641 + 1); + s.i___14641 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_make3by3__P12560.info = {"start":3273,"length":245,"line":76,"column":8,"endLine":82,"endColumn":9,"fileName":"spriteRules.ts","functionName":"make3by3","argumentNames":["this","col","row"]} +tileworld_ruleediting_RuleRoom_make3by3__P14389.info = {"start":3273,"length":245,"line":76,"column":8,"endLine":82,"endColumn":9,"fileName":"spriteRules.ts","functionName":"make3by3","argumentNames":["this","col","row"]} -function tileworld_ruleediting_RuleRoom_make3by3__P12560_mk(s) { +function tileworld_ruleediting_RuleRoom_make3by3__P14389_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_make3by3__P12560, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_make3by3__P14389, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___12815: undefined, - j___12821: undefined, + i___14641: undefined, + j___14647: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36721,7 +40738,7 @@ function tileworld_ruleediting_RuleRoom_make3by3__P12560_mk(s) { -function sprites_create__P763(s) { +function sprites_create__P1971(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36731,51 +40748,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___23843 = undefined; - s.sprite___23846 = undefined; + s.scene___25541 = undefined; + s.sprite___25544 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P961_mk(s); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 223; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___23843 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C768_VT); + s.scene___25541 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C2013_VT); s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P825_mk(s); + s.tmp_1 = Sprite_constructor__P2050_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.callLocIdx = 224; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.sprite___23846 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P805_mk(s); - s.tmp_0.arg0 = s.sprite___23846; + s.sprite___25544 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P2068_mk(s); + s.tmp_0.arg0 = s.sprite___25544; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 225; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = PhysicsEngine__C880_v0_2_mk(s); - r0 = s.scene___23843.fields["physicsEngine"]; + s.tmp_0 = PhysicsEngine__C2156_v0_2_mk(s); + r0 = s.scene___25541.fields["physicsEngine"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___23846; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C880_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.sprite___25544; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_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__P23861); + r0 = pxsim_pxtcore_mkAction(1, inline__P25559); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, inline__P23868); + r0 = pxsim_pxtcore_mkAction(1, inline__P25566); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___23846); - s.tmp_2 = helpers_arrayForEach__P60_mk(s); - s.tmp_3 = helpers_arrayFilter__P61_mk(s); - r0 = s.scene___23843.fields["createdHandlers"]; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___25544); + s.tmp_2 = helpers_arrayForEach__P104_mk(s); + s.tmp_3 = helpers_arrayFilter__P105_mk(s); + r0 = s.scene___25541.fields["createdHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 226; s.pc = 6; return s.tmp_3; @@ -36786,23 +40803,23 @@ switch (step) { s.callLocIdx = 228; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - r0 = s.sprite___23846; + r0 = s.sprite___25544; return leave(s, r0) default: oops() } } } -sprites_create__P763.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__P1971.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__P763_mk(s) { +function sprites_create__P1971_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P763, depth: s.depth + 1, + parent: s, fn: sprites_create__P1971, depth: s.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___23843: undefined, - sprite___23846: undefined, + scene___25541: undefined, + sprite___25544: undefined, arg0: undefined, arg1: undefined, } } @@ -36811,7 +40828,7 @@ function sprites_create__P763_mk(s) { -function inline__P23861(s) { +function inline__P25559(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36831,12 +40848,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P23861.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +inline__P25559.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__P23861_mk(s) { +function inline__P25559_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23861, depth: s.depth + 1, + parent: s, fn: inline__P25559, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36846,7 +40863,7 @@ function inline__P23861_mk(s) { -function inline__P23868(s) { +function inline__P25566(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36878,12 +40895,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P23868.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +inline__P25566.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__P23868_mk(s) { +function inline__P25566_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23868, depth: s.depth + 1, + parent: s, fn: inline__P25566, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36893,7 +40910,7 @@ function inline__P23868_mk(s) { -function PhysicsEngine_addSprite__P881(s) { +function PhysicsEngine_addSprite__P2158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36909,17 +40926,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C880_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C2156_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_addSprite__P881.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__P2158.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__P881_mk(s) { +function PhysicsEngine_addSprite__P2158_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P881, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P2158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -36929,7 +40946,7 @@ function PhysicsEngine_addSprite__P881_mk(s) { -function Sprite_constructor__P825(s) { +function Sprite_setKind__P2068(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36939,122 +40956,135 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.spritesByKind___26311 = undefined; + s.overlapMap___26340 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P647_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 247; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = (s.arg1 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); + r0 = s.arg0.fields["_kind"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.arg0.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); - r0 = s.arg0.fields["_y"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = Sprite_vx__P775_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 250; s.pc = 2; return s.tmp_0; + r0 = (s.tmp_1 === s.arg1); case 2: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P777_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 251; s.pc = 3; return s.tmp_0; + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + { step = 15; continue; } case 3: - r0 = s.retval; - s.tmp_0 = Sprite_ax__P779_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 252; s.pc = 4; return s.tmp_0; case 4: + s.tmp_3 = game_currentScene__P2524_mk(s); + s.callLocIdx = 292; s.pc = 16; return s.tmp_3; + case 16: r0 = s.retval; - s.tmp_0 = Sprite_ay__P781_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 253; s.pc = 5; return s.tmp_0; + r0 = r0.fields["spritesByKind"]; + s.spritesByKind___26311 = (r0); + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } case 5: - r0 = s.retval; - s.tmp_0 = Sprite_fx__P783_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 254; s.pc = 6; return s.tmp_0; + r0 = s.arg0.fields["_kind"]; + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26311, 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__P2115_mk(s); + r0 = s.arg0.fields["_kind"]; + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26311, s.tmp_5); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg0; + s.callLocIdx = 293; s.pc = 17; return s.tmp_4; + case 17: r0 = s.retval; - s.tmp_0 = Sprite_fy__P785_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 255; s.pc = 7; return s.tmp_0; case 7: - r0 = s.retval; - r0 = (s.arg0).fields["flags"] = (0); - s.tmp_0 = Sprite_setImage__P790_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 256; s.pc = 8; return s.tmp_0; case 8: + r0 = (s.arg1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26311, s.arg1); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C2108_VT); + s.tmp_4 = r0; + s.tmp_5 = sprites_SpriteSet_constructor__P2110_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.callLocIdx = 294; s.pc = 18; return s.tmp_5; + case 18: r0 = s.retval; - s.tmp_0 = Sprite_setKind__P805_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = -1; - s.callLocIdx = 257; s.pc = 9; return s.tmp_0; + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___26311, s.arg1, s.tmp_4); case 9: + case 10: + s.tmp_0 = sprites_SpriteSet_add__P2113_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___26311, s.arg1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 295; s.pc = 19; return s.tmp_0; + case 19: r0 = s.retval; - r0 = (s.arg0).fields["layer"] = (1); - r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + case 11: + case 12: + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 296; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = r0.fields["overlapMap"]; + s.overlapMap___26340 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___26340, s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_3 = r0 = s.overlapMap___26340; + s.tmp_4 = r0 = s.arg1; r0 = pxsim_Array__mk(); + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); + case 13: + case 14: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___26340, s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); + r0 = (s.arg0).fields["_kind"] = (s.arg1); + case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_constructor__P825.info = {"start":5180,"length":618,"line":202,"column":4,"endLine":222,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +Sprite_setKind__P2068.info = {"start":10899,"length":663,"line":398,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} -function Sprite_constructor__P825_mk(s) { +function Sprite_setKind__P2068_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P825, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P2068, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37062,7 +41092,8 @@ function Sprite_constructor__P825_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, + spritesByKind___26311: undefined, + overlapMap___26340: undefined, arg0: undefined, arg1: undefined, } } @@ -37071,7 +41102,7 @@ function Sprite_constructor__P825_mk(s) { -function Sprite_fy__P785(s) { +function sprites_SpriteSet_add__P2113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37087,36 +41118,50 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P78_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 245; s.pc = 1; return s.tmp_3; + if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 5; continue; } case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); + case 2: + r0 = s.arg0.fields["_sprites"]; s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); + s.tmp_3 = r0; + r0 = (s.tmp_3 > -1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_sprites"]; + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_5, s.arg1); + r0 = true; + case 5: return leave(s, r0) default: oops() } } } -Sprite_fy__P785.info = {"start":4059,"length":64,"line":151,"column":4,"endLine":153,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +sprites_SpriteSet_add__P2113.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 Sprite_fy__P785_mk(s) { +function sprites_SpriteSet_add__P2113_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P785, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P2113, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -37125,45 +41170,7 @@ function Sprite_fy__P785_mk(s) { -function Sprite_fy__P784(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__C768_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__P784.info = {"start":3897,"length":60,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} -Sprite_fy__P784.isGetter = true; - -function Sprite_fy__P784_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_fy__P784, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function Sprite_fx__P783(s) { +function sprites_SpriteSet_contains__P2116(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37179,36 +41186,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P78_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 242; 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); + if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); + s.tmp_0 = r0; + r0 = (s.tmp_0 > -1); return leave(s, r0) default: oops() } } } -Sprite_fx__P783.info = {"start":3716,"length":64,"line":141,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +sprites_SpriteSet_contains__P2116.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 Sprite_fx__P783_mk(s) { +function sprites_SpriteSet_contains__P2116_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P783, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P2116, depth: s.depth + 1, pc: 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, } } @@ -37217,7 +41212,7 @@ function Sprite_fx__P783_mk(s) { -function Sprite_fx__P782(s) { +function sprites_SpriteSet_constructor__P2110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37232,30 +41227,174 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_fx"]; + if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_SpriteSet_constructor__P2110.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__P2110_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteSet_constructor__P2110, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function Sprite_constructor__P2050(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P1857_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 247; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = s.arg0.fields["_x"]; s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); + r0 = s.arg0.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = Sprite_vx__P2027_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 250; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P2029_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 251; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_ax__P2031_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 252; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = Sprite_ay__P2033_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 253; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = Sprite_fx__P2035_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 254; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_fy__P2037_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 255; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["flags"] = (0); + s.tmp_0 = Sprite_setImage__P2053_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 256; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = Sprite_setKind__P2068_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 257; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = (s.arg0).fields["layer"] = (1); + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_overlappers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_fx__P782.info = {"start":3554,"length":60,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} -Sprite_fx__P782.isGetter = true; +Sprite_constructor__P2050.info = {"start":5178,"length":618,"line":202,"column":4,"endLine":222,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} -function Sprite_fx__P782_mk(s) { +function Sprite_constructor__P2050_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P782, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P2050, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_ay__P781(s) { +function Sprite_fy__P2037(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37271,27 +41410,36 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + s.tmp_3 = Math_max__P122_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 245; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ay__P781.info = {"start":3385,"length":51,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +Sprite_fy__P2037.info = {"start":4057,"length":64,"line":151,"column":4,"endLine":153,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} -function Sprite_ay__P781_mk(s) { +function Sprite_fy__P2037_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P781, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P2037, depth: s.depth + 1, pc: 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, } } @@ -37300,7 +41448,7 @@ function Sprite_ay__P781_mk(s) { -function Sprite_ay__P780(s) { +function Sprite_fy__P2036(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37315,20 +41463,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_ay"]; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_fy"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_ay__P780.info = {"start":3219,"length":60,"line":125,"column":4,"endLine":127,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} -Sprite_ay__P780.isGetter = true; +Sprite_fy__P2036.info = {"start":3895,"length":60,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} +Sprite_fy__P2036.isGetter = true; -function Sprite_ay__P780_mk(s) { +function Sprite_fy__P2036_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P780, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P2036, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37338,7 +41486,7 @@ function Sprite_ay__P780_mk(s) { -function Sprite_ax__P779(s) { +function Sprite_fx__P2035(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37354,27 +41502,36 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + s.tmp_3 = Math_max__P122_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 242; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ax__P779.info = {"start":3046,"length":51,"line":119,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +Sprite_fx__P2035.info = {"start":3714,"length":64,"line":141,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} -function Sprite_ax__P779_mk(s) { +function Sprite_fx__P2035_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P779, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P2035, depth: s.depth + 1, pc: 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, } } @@ -37383,7 +41540,7 @@ function Sprite_ax__P779_mk(s) { -function Sprite_ax__P778(s) { +function Sprite_fx__P2034(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37398,20 +41555,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_ax"]; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_fx"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_ax__P778.info = {"start":2880,"length":60,"line":114,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} -Sprite_ax__P778.isGetter = true; +Sprite_fx__P2034.info = {"start":3552,"length":60,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} +Sprite_fx__P2034.isGetter = true; -function Sprite_ax__P778_mk(s) { +function Sprite_fx__P2034_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P778, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P2034, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37421,7 +41578,7 @@ function Sprite_ax__P778_mk(s) { -function Sprite_vy__P777(s) { +function Sprite_ay__P2033(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37437,23 +41594,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vy__P777.info = {"start":2707,"length":51,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} +Sprite_ay__P2033.info = {"start":3383,"length":51,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} -function Sprite_vy__P777_mk(s) { +function Sprite_ay__P2033_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P777, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P2033, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37466,7 +41623,7 @@ function Sprite_vy__P777_mk(s) { -function Sprite_vy__P776(s) { +function Sprite_ay__P2032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37481,20 +41638,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_vy"]; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_ay"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_vy__P776.info = {"start":2545,"length":60,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} -Sprite_vy__P776.isGetter = true; +Sprite_ay__P2032.info = {"start":3217,"length":60,"line":125,"column":4,"endLine":127,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} +Sprite_ay__P2032.isGetter = true; -function Sprite_vy__P776_mk(s) { +function Sprite_ay__P2032_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P776, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P2032, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37504,7 +41661,7 @@ function Sprite_vy__P776_mk(s) { -function Sprite_vx__P775(s) { +function Sprite_ax__P2031(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37520,23 +41677,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vx__P775.info = {"start":2376,"length":51,"line":97,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +Sprite_ax__P2031.info = {"start":3044,"length":51,"line":119,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} -function Sprite_vx__P775_mk(s) { +function Sprite_ax__P2031_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P775, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P2031, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37549,7 +41706,7 @@ function Sprite_vx__P775_mk(s) { -function Sprite_vx__P774(s) { +function Sprite_ax__P2030(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37564,20 +41721,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = s.arg0.fields["_vx"]; + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_ax"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_vx__P774.info = {"start":2214,"length":60,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} -Sprite_vx__P774.isGetter = true; +Sprite_ax__P2030.info = {"start":2878,"length":60,"line":114,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} +Sprite_ax__P2030.isGetter = true; -function Sprite_vx__P774_mk(s) { +function Sprite_ax__P2030_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P774, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P2030, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37587,7 +41744,7 @@ function Sprite_vx__P774_mk(s) { -function Sprite_setKind__P805(s) { +function Sprite_vy__P2029(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37597,144 +41754,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___24625 = undefined; - s.overlapMap___24654 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - r0 = (s.arg1 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg1); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 15; continue; } - case 3: - case 4: - s.tmp_3 = game_currentScene__P961_mk(s); - s.callLocIdx = 292; s.pc = 16; return s.tmp_3; - case 16: - r0 = s.retval; - r0 = r0.fields["spritesByKind"]; - s.spritesByKind___24625 = (r0); - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["_kind"]; - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___24625, 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__P850_mk(s); - r0 = s.arg0.fields["_kind"]; - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___24625, s.tmp_5); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg0; - s.callLocIdx = 293; s.pc = 17; return s.tmp_4; - case 17: - r0 = s.retval; - case 7: - case 8: - r0 = (s.arg1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___24625, s.arg1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C844_VT); - s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P855_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.callLocIdx = 294; s.pc = 18; return s.tmp_5; - case 18: - r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___24625, s.arg1, s.tmp_4); - case 9: - case 10: - s.tmp_0 = sprites_SpriteSet_add__P848_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___24625, s.arg1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 295; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - case 11: - case 12: - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 296; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - r0 = r0.fields["overlapMap"]; - s.overlapMap___24654 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___24654, s.arg1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.overlapMap___24654; - s.tmp_4 = r0 = s.arg1; - r0 = pxsim_Array__mk(); - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); - case 13: - case 14: + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___24654, s.arg1); + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); - r0 = (s.arg0).fields["_kind"] = (s.arg1); - case 15: + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setKind__P805.info = {"start":10901,"length":663,"line":398,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +Sprite_vy__P2029.info = {"start":2705,"length":51,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} -function Sprite_setKind__P805_mk(s) { +function Sprite_vy__P2029_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P805, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P2029, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - spritesByKind___24625: undefined, - overlapMap___24654: undefined, arg0: undefined, arg1: undefined, } } @@ -37743,7 +41789,7 @@ function Sprite_setKind__P805_mk(s) { -function sprites_SpriteSet_constructor__P855(s) { +function Sprite_vy__P2028(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37758,24 +41804,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C844_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_vy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P855.info = {"start":488,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +Sprite_vy__P2028.info = {"start":2543,"length":60,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} +Sprite_vy__P2028.isGetter = true; -function sprites_SpriteSet_constructor__P855_mk(s) { +function Sprite_vy__P2028_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P855, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P2028, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -37783,7 +41827,7 @@ function sprites_SpriteSet_constructor__P855_mk(s) { -function sprites_SpriteSet_add__P848(s) { +function Sprite_vx__P2027(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37799,50 +41843,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C844_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } - case 1: - case 2: - r0 = s.arg0.fields["_sprites"]; - s.tmp_4 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); - s.tmp_3 = r0; - r0 = (s.tmp_3 > -1); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = false; - { step = 5; continue; } - case 3: - case 4: - r0 = s.arg0.fields["_sprites"]; - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_5, s.arg1); - r0 = true; - case 5: + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P848.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +Sprite_vx__P2027.info = {"start":2374,"length":51,"line":97,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} -function sprites_SpriteSet_add__P848_mk(s) { +function Sprite_vx__P2027_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P848, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P2027, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -37851,7 +41872,7 @@ function sprites_SpriteSet_add__P848_mk(s) { -function sprites_SpriteSet_contains__P851(s) { +function Sprite_vx__P2026(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37863,37 +41884,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C844_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_1 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + r0 = s.arg0.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 > -1); - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P851.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +Sprite_vx__P2026.info = {"start":2212,"length":60,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} +Sprite_vx__P2026.isGetter = true; -function sprites_SpriteSet_contains__P851_mk(s) { +function Sprite_vx__P2026_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P851, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P2026, 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 tileworld_RuleVisualsBase_setTileSaved__P10854(s) { +function tileworld_RuleVisualsBase_setTileSaved__P12700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37908,11 +41925,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_0 = Sprite_x__P771_mk(s); + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["tileSaved"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P770_mk(s); + s.tmp_1 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_1.arg0 = r0; s.callLocIdx = 686; s.pc = 2; return s.tmp_1; @@ -37922,10 +41939,10 @@ switch (step) { s.callLocIdx = 687; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["tileSaved"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P772_mk(s); + s.tmp_1 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_1.arg0 = r0; s.callLocIdx = 688; s.pc = 4; return s.tmp_1; @@ -37949,7 +41966,7 @@ switch (step) { } case 5: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["tileSaved"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 128; @@ -37961,12 +41978,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_setTileSaved__P10854.info = {"start":4933,"length":229,"line":128,"column":8,"endLine":133,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setTileSaved","argumentNames":["this"]} +tileworld_RuleVisualsBase_setTileSaved__P12700.info = {"start":4933,"length":229,"line":128,"column":8,"endLine":133,"endColumn":9,"fileName":"rulesBase.ts","functionName":"setTileSaved","argumentNames":["this"]} -function tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s) { +function tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_setTileSaved__P10854, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_setTileSaved__P12700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37977,7 +41994,7 @@ function tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s) { -function tileworld_ruleediting_RuleDisplay_constructor__P11291(s) { +function tileworld_ruleediting_RuleDisplay_constructor__P3798(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37994,17 +42011,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); r0 = (s.arg0).fields["rule"] = (s.arg2); - s.tmp_0 = tileworld_RuleVisualsBase_constructor__P10857_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_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_mkClassInstance(tileworld_AllExport__C6025_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_AllExport__C3671_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_AllExport_constructor__P6030_mk(s); + s.tmp_1 = tileworld_AllExport_constructor__P3672_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 693; s.pc = 2; return s.tmp_1; @@ -38012,15 +42029,15 @@ switch (step) { r0 = s.retval; r0 = (s.arg0).fields["all"] = (s.tmp_0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.cursorOut___7253; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.cursorOut___3724; s.tmp_2.arg1 = undefined; s.callLocIdx = 694; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["otherCursor"] = (s.tmp_1); - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["otherCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 128; @@ -38028,14 +42045,14 @@ switch (step) { s.callLocIdx = 695; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["otherCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 88; s.callLocIdx = 696; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["otherCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 46; @@ -38060,12 +42077,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_constructor__P11291.info = {"start":1170,"length":402,"line":22,"column":8,"endLine":32,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["this","p","rule"]} +tileworld_ruleediting_RuleDisplay_constructor__P3798.info = {"start":1170,"length":402,"line":22,"column":8,"endLine":32,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"inline","argumentNames":["this","p","rule"]} -function tileworld_ruleediting_RuleDisplay_constructor__P11291_mk(s) { +function tileworld_ruleediting_RuleDisplay_constructor__P3798_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_constructor__P11291, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_constructor__P3798, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38079,7 +42096,7 @@ function tileworld_ruleediting_RuleDisplay_constructor__P11291_mk(s) { -function tileworld_AllExport_constructor__P6030(s) { +function tileworld_AllExport_constructor__P3672(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38095,16 +42112,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_AllExport__C6025_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0); r0 = (s.arg0).fields["p"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["allImages"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkAction(1, inline__P6041); + r0 = pxsim_pxtcore_mkAction(1, inline__P8041); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["_backgroundsI"]; @@ -38113,10 +42130,10 @@ switch (step) { s.callLocIdx = 155; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P6052); + r0 = pxsim_pxtcore_mkAction(1, inline__P8052); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["_spritesI"]; @@ -38129,12 +42146,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_AllExport_constructor__P6030.info = {"start":693,"length":232,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","p"]} +tileworld_AllExport_constructor__P3672.info = {"start":693,"length":232,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","p"]} -function tileworld_AllExport_constructor__P6030_mk(s) { +function tileworld_AllExport_constructor__P3672_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_AllExport_constructor__P6030, depth: s.depth + 1, + parent: s, fn: tileworld_AllExport_constructor__P3672, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38147,7 +42164,7 @@ function tileworld_AllExport_constructor__P6030_mk(s) { -function inline__P6041(s) { +function inline__P8041(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38168,12 +42185,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P6041.info = {"start":806,"length":31,"line":22,"column":46,"endLine":22,"endColumn":77,"fileName":"project.ts","functionName":"inline","argumentNames":["img"]} +inline__P8041.info = {"start":806,"length":31,"line":22,"column":46,"endLine":22,"endColumn":77,"fileName":"project.ts","functionName":"inline","argumentNames":["img"]} -function inline__P6041_mk(s) { +function inline__P8041_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6041, depth: s.depth + 1, + parent: s, fn: inline__P8041, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38183,7 +42200,7 @@ function inline__P6041_mk(s) { -function inline__P6052(s) { +function inline__P8052(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38204,12 +42221,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P6052.info = {"start":882,"length":31,"line":23,"column":42,"endLine":23,"endColumn":73,"fileName":"project.ts","functionName":"inline","argumentNames":["img"]} +inline__P8052.info = {"start":882,"length":31,"line":23,"column":42,"endLine":23,"endColumn":73,"fileName":"project.ts","functionName":"inline","argumentNames":["img"]} -function inline__P6052_mk(s) { +function inline__P8052_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6052, depth: s.depth + 1, + parent: s, fn: inline__P8052, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38219,7 +42236,7 @@ function inline__P6052_mk(s) { -function tileworld_ImageEditor_constructor__P10062(s) { +function tileworld_ImageEditor_constructor__P3779(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38235,12 +42252,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); r0 = (s.arg0).fields["p"] = (s.arg1); r0 = (s.arg0).fields["Adown"] = (false); r0 = (s.arg0).fields["kind"] = (0); r0 = (s.arg0).fields["dirty"] = (false); - s.tmp_0 = tileworld_BackgroundBase_constructor__P9502_mk(s); + s.tmp_0 = tileworld_BackgroundBase_constructor__P3783_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 532; s.pc = 1; return s.tmp_0; case 1: @@ -38254,15 +42271,15 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["image"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.colorOut___10041; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.colorOut___11894; s.tmp_2.arg1 = undefined; s.callLocIdx = 534; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["colorCursor"] = (s.tmp_1); - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_0.arg0 = r0; r0 = (5 + 4); @@ -38270,45 +42287,45 @@ switch (step) { s.callLocIdx = 535; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 94; s.callLocIdx = 536; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = tileworld_cursorAnimation__P3907_mk(s); + s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.colorIn___10044; + s.tmp_0.arg1 = globals.colorIn___11897; s.callLocIdx = 537; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = (s.arg0).fields["selectedColor"] = (0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.paintOut___10047; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.paintOut___11900; s.tmp_2.arg1 = undefined; s.callLocIdx = 538; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["paintCursor"] = (s.tmp_1); - s.tmp_0 = tileworld_cursorAnimation__P3907_mk(s); + s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.paintIn___10050; + s.tmp_0.arg1 = globals.paintIn___11903; s.callLocIdx = 539; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 32; s.callLocIdx = 540; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 26; @@ -38316,153 +42333,153 @@ switch (step) { case 9: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.cursorIn___7250; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.cursorIn___3723; s.tmp_2.arg1 = undefined; s.callLocIdx = 542; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["menuCursor"] = (s.tmp_1); - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 8; s.callLocIdx = 543; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 12; s.callLocIdx = 544; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = tileworld_cursorAnimation__P3907_mk(s); + s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.cursorOut___7253; + s.tmp_0.arg1 = globals.cursorOut___3724; s.callLocIdx = 545; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.tmp_0 = tileworld_ImageEditor_setCursor__P10060_mk(s); + s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.callLocIdx = 546; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = tileworld_ImageEditor__C10052_v0_1_mk(s); + s.tmp_0 = tileworld_ImageEditor__C3778_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ImageEditor__C10052_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_ImageEditor__C3778_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10156); + r0 = pxsim_pxtcore_mkAction(1, inline__P12007); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 548; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10161); + r0 = pxsim_pxtcore_mkAction(1, inline__P12012); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 550; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10166); + r0 = pxsim_pxtcore_mkAction(1, inline__P12017); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 552; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10171); + r0 = pxsim_pxtcore_mkAction(1, inline__P12022); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 554; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10176); + r0 = pxsim_pxtcore_mkAction(1, inline__P12027); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 556; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10181); + r0 = pxsim_pxtcore_mkAction(1, inline__P12032); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 558; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10186); + r0 = pxsim_pxtcore_mkAction(1, inline__P12037); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 560; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10191); + r0 = pxsim_pxtcore_mkAction(1, inline__P12042); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 562; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10196); + r0 = pxsim_pxtcore_mkAction(1, inline__P12047); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 564; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10205); + r0 = pxsim_pxtcore_mkAction(1, inline__P12055); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2048; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 565; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10211); + r0 = pxsim_pxtcore_mkAction(1, inline__P12061); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.B___667; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.B___1875; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 569; s.pc = 26; return s.tmp_1; @@ -38472,12 +42489,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_constructor__P10062.info = {"start":1515,"length":2170,"line":63,"column":8,"endLine":105,"endColumn":9,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":["this","p"]} +tileworld_ImageEditor_constructor__P3779.info = {"start":1515,"length":2170,"line":63,"column":8,"endLine":105,"endColumn":9,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":["this","p"]} -function tileworld_ImageEditor_constructor__P10062_mk(s) { +function tileworld_ImageEditor_constructor__P3779_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_constructor__P10062, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_constructor__P3779, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38491,7 +42508,7 @@ function tileworld_ImageEditor_constructor__P10062_mk(s) { -function inline__P10156(s) { +function inline__P12007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38501,7 +42518,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_ImageEditor_moveLeft__P10055_mk(s); + s.tmp_0 = tileworld_ImageEditor_moveLeft__P11907_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 547; s.pc = 1; return s.tmp_0; case 1: @@ -38510,12 +42527,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10156.info = {"start":2428,"length":21,"line":86,"column":67,"endLine":86,"endColumn":88,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12007.info = {"start":2428,"length":21,"line":86,"column":67,"endLine":86,"endColumn":88,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10156_mk(s) { +function inline__P12007_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10156, depth: s.depth + 1, + parent: s, fn: inline__P12007, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38524,7 +42541,7 @@ function inline__P10156_mk(s) { -function inline__P10161(s) { +function inline__P12012(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38534,7 +42551,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_ImageEditor_moveLeft__P10055_mk(s); + s.tmp_0 = tileworld_ImageEditor_moveLeft__P11907_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 549; s.pc = 1; return s.tmp_0; case 1: @@ -38543,12 +42560,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10161.info = {"start":2520,"length":21,"line":87,"column":68,"endLine":87,"endColumn":89,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12012.info = {"start":2520,"length":21,"line":87,"column":68,"endLine":87,"endColumn":89,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10161_mk(s) { +function inline__P12012_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10161, depth: s.depth + 1, + parent: s, fn: inline__P12012, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38557,7 +42574,7 @@ function inline__P10161_mk(s) { -function inline__P10166(s) { +function inline__P12017(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38567,7 +42584,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_ImageEditor_moveRight__P10056_mk(s); + s.tmp_0 = tileworld_ImageEditor_moveRight__P11908_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 551; s.pc = 1; return s.tmp_0; case 1: @@ -38576,12 +42593,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10166.info = {"start":2612,"length":22,"line":88,"column":68,"endLine":88,"endColumn":90,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12017.info = {"start":2612,"length":22,"line":88,"column":68,"endLine":88,"endColumn":90,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10166_mk(s) { +function inline__P12017_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10166, depth: s.depth + 1, + parent: s, fn: inline__P12017, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38590,7 +42607,7 @@ function inline__P10166_mk(s) { -function inline__P10171(s) { +function inline__P12022(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38600,7 +42617,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_ImageEditor_moveRight__P10056_mk(s); + s.tmp_0 = tileworld_ImageEditor_moveRight__P11908_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 553; s.pc = 1; return s.tmp_0; case 1: @@ -38609,12 +42626,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10171.info = {"start":2706,"length":22,"line":89,"column":69,"endLine":89,"endColumn":91,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12022.info = {"start":2706,"length":22,"line":89,"column":69,"endLine":89,"endColumn":91,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10171_mk(s) { +function inline__P12022_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10171, depth: s.depth + 1, + parent: s, fn: inline__P12022, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38623,7 +42640,7 @@ function inline__P10171_mk(s) { -function inline__P10176(s) { +function inline__P12027(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38633,7 +42650,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_ImageEditor_moveUp__P10057_mk(s); + s.tmp_0 = tileworld_ImageEditor_moveUp__P11909_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 555; s.pc = 1; return s.tmp_0; case 1: @@ -38642,12 +42659,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10176.info = {"start":2796,"length":19,"line":90,"column":65,"endLine":90,"endColumn":84,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12027.info = {"start":2796,"length":19,"line":90,"column":65,"endLine":90,"endColumn":84,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10176_mk(s) { +function inline__P12027_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10176, depth: s.depth + 1, + parent: s, fn: inline__P12027, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38656,7 +42673,7 @@ function inline__P10176_mk(s) { -function inline__P10181(s) { +function inline__P12032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38666,7 +42683,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_ImageEditor_moveUp__P10057_mk(s); + s.tmp_0 = tileworld_ImageEditor_moveUp__P11909_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 557; s.pc = 1; return s.tmp_0; case 1: @@ -38675,12 +42692,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10181.info = {"start":2884,"length":19,"line":91,"column":66,"endLine":91,"endColumn":85,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12032.info = {"start":2884,"length":19,"line":91,"column":66,"endLine":91,"endColumn":85,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10181_mk(s) { +function inline__P12032_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10181, depth: s.depth + 1, + parent: s, fn: inline__P12032, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38689,7 +42706,7 @@ function inline__P10181_mk(s) { -function inline__P10186(s) { +function inline__P12037(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38699,7 +42716,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_ImageEditor_moveDown__P10058_mk(s); + s.tmp_0 = tileworld_ImageEditor_moveDown__P11910_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 559; s.pc = 1; return s.tmp_0; case 1: @@ -38708,12 +42725,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10186.info = {"start":2973,"length":21,"line":92,"column":67,"endLine":92,"endColumn":88,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12037.info = {"start":2973,"length":21,"line":92,"column":67,"endLine":92,"endColumn":88,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10186_mk(s) { +function inline__P12037_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10186, depth: s.depth + 1, + parent: s, fn: inline__P12037, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38722,7 +42739,7 @@ function inline__P10186_mk(s) { -function inline__P10191(s) { +function inline__P12042(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38732,7 +42749,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_ImageEditor_moveDown__P10058_mk(s); + s.tmp_0 = tileworld_ImageEditor_moveDown__P11910_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 561; s.pc = 1; return s.tmp_0; case 1: @@ -38741,12 +42758,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10191.info = {"start":3065,"length":21,"line":93,"column":68,"endLine":93,"endColumn":89,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12042.info = {"start":3065,"length":21,"line":93,"column":68,"endLine":93,"endColumn":89,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10191_mk(s) { +function inline__P12042_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10191, depth: s.depth + 1, + parent: s, fn: inline__P12042, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38755,7 +42772,7 @@ function inline__P10191_mk(s) { -function inline__P10196(s) { +function inline__P12047(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38766,7 +42783,7 @@ switch (step) { case 0: r0 = (s.caps[0]).fields["Adown"] = (true); - s.tmp_0 = tileworld_ImageEditor_paintPixel__P10054_mk(s); + s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 563; s.pc = 1; return s.tmp_0; case 1: @@ -38775,12 +42792,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10196.info = {"start":3154,"length":46,"line":95,"column":64,"endLine":95,"endColumn":110,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12047.info = {"start":3154,"length":46,"line":95,"column":64,"endLine":95,"endColumn":110,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10196_mk(s) { +function inline__P12047_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10196, depth: s.depth + 1, + parent: s, fn: inline__P12047, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -38789,7 +42806,7 @@ function inline__P10196_mk(s) { -function inline__P10205(s) { +function inline__P12055(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38804,12 +42821,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10205.info = {"start":3268,"length":29,"line":96,"column":65,"endLine":96,"endColumn":94,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12055.info = {"start":3268,"length":29,"line":96,"column":65,"endLine":96,"endColumn":94,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10205_mk(s) { +function inline__P12055_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10205, depth: s.depth + 1, + parent: s, fn: inline__P12055, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -38817,7 +42834,7 @@ function inline__P10205_mk(s) { -function inline__P10211(s) { +function inline__P12061(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38833,7 +42850,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = tileworld_ImageEditor_saveAndPop__P10059_mk(s); + s.tmp_2 = tileworld_ImageEditor_saveAndPop__P11911_mk(s); s.tmp_2.arg0 = s.caps[0]; s.callLocIdx = 566; s.pc = 5; return s.tmp_2; case 5: @@ -38846,7 +42863,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_2 = tileworld_ImageEditor_setCursor__P10060_mk(s); + s.tmp_2 = tileworld_ImageEditor_setCursor__P11912_mk(s); s.tmp_2.arg0 = s.caps[0]; s.tmp_2.arg1 = 0; s.callLocIdx = 567; s.pc = 6; return s.tmp_2; @@ -38854,7 +42871,7 @@ switch (step) { r0 = s.retval; { step = 3; continue; } case 2: - s.tmp_0 = tileworld_ImageEditor_setCursor__P10060_mk(s); + s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 2; s.callLocIdx = 568; s.pc = 7; return s.tmp_0; @@ -38866,12 +42883,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10211.info = {"start":3364,"length":309,"line":97,"column":64,"endLine":104,"endColumn":13,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} +inline__P12061.info = {"start":3364,"length":309,"line":97,"column":64,"endLine":104,"endColumn":13,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":[]} -function inline__P10211_mk(s) { +function inline__P12061_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10211, depth: s.depth + 1, + parent: s, fn: inline__P12061, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38882,7 +42899,7 @@ function inline__P10211_mk(s) { -function tileworld_ImageEditor_saveAndPop__P10059(s) { +function tileworld_ImageEditor_saveAndPop__P11911(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38897,8 +42914,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); - s.tmp_0 = tileworld_AllExport_saveImage__P6028_mk(s); + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); + s.tmp_0 = tileworld_AllExport_saveImage__P3675_mk(s); r0 = s.arg0.fields["p"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["kind"]; @@ -38906,7 +42923,7 @@ switch (step) { s.callLocIdx = 617; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); + s.tmp_0 = game_popScene__P2529_mk(s); s.callLocIdx = 618; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; @@ -38914,12 +42931,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_saveAndPop__P10059.info = {"start":7392,"length":102,"line":196,"column":8,"endLine":199,"endColumn":9,"fileName":"imageeditor.ts","functionName":"saveAndPop","argumentNames":["this"]} +tileworld_ImageEditor_saveAndPop__P11911.info = {"start":7392,"length":102,"line":196,"column":8,"endLine":199,"endColumn":9,"fileName":"imageeditor.ts","functionName":"saveAndPop","argumentNames":["this"]} -function tileworld_ImageEditor_saveAndPop__P10059_mk(s) { +function tileworld_ImageEditor_saveAndPop__P11911_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_saveAndPop__P10059, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_saveAndPop__P11911, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38929,7 +42946,7 @@ function tileworld_ImageEditor_saveAndPop__P10059_mk(s) { -function tileworld_AllExport_saveImage__P6028(s) { +function tileworld_AllExport_saveImage__P3675(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38945,7 +42962,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_AllExport__C6025_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_AllExport__C3671_VT)) failedCast(r0); s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["p"]; s.tmp_3 = r0; @@ -38957,7 +42974,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_5 = tileworld_Project_saveBackgroundImage__P6016_mk(s); + s.tmp_5 = tileworld_Project_saveBackgroundImage__P3698_mk(s); r0 = s.arg0.fields["p"]; s.tmp_5.arg0 = r0; s.tmp_5.arg1 = s.arg1; @@ -38966,7 +42983,7 @@ switch (step) { r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_6 = tileworld_Project_saveSpriteImage__P6021_mk(s); + s.tmp_6 = tileworld_Project_saveSpriteImage__P3699_mk(s); r0 = s.arg0.fields["p"]; s.tmp_6.arg0 = r0; s.tmp_7 = r0 = s.arg1; @@ -38987,12 +43004,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_AllExport_saveImage__P6028.info = {"start":1101,"length":168,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"project.ts","functionName":"saveImage","argumentNames":["this","index"]} +tileworld_AllExport_saveImage__P3675.info = {"start":1101,"length":168,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"project.ts","functionName":"saveImage","argumentNames":["this","index"]} -function tileworld_AllExport_saveImage__P6028_mk(s) { +function tileworld_AllExport_saveImage__P3675_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_AllExport_saveImage__P6028, depth: s.depth + 1, + parent: s, fn: tileworld_AllExport_saveImage__P3675, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39013,7 +43030,7 @@ function tileworld_AllExport_saveImage__P6028_mk(s) { -function tileworld_Project_saveSpriteImage__P6021(s) { +function tileworld_Project_saveSpriteImage__P3699(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39023,19 +43040,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___6240 = undefined; + s.buf___8217 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - s.tmp_0 = tileworld_saveImage__P6232_mk(s); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + s.tmp_0 = tileworld_saveImage__P8209_mk(s); r0 = s.arg0.fields["prefix"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.tmp_1 = tileworld_Project_getSpriteImage__P6007_mk(s); + s.tmp_1 = tileworld_Project_getSpriteImage__P3697_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 172; s.pc = 2; return s.tmp_1; @@ -39046,21 +43063,21 @@ switch (step) { s.callLocIdx = 173; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.buf___6240 = (r0); + s.buf___8217 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_Project_saveSpriteImage__P6021.info = {"start":3917,"length":134,"line":114,"column":8,"endLine":116,"endColumn":9,"fileName":"project.ts","functionName":"saveSpriteImage","argumentNames":["this","kind"]} +tileworld_Project_saveSpriteImage__P3699.info = {"start":3917,"length":134,"line":114,"column":8,"endLine":116,"endColumn":9,"fileName":"project.ts","functionName":"saveSpriteImage","argumentNames":["this","kind"]} -function tileworld_Project_saveSpriteImage__P6021_mk(s) { +function tileworld_Project_saveSpriteImage__P3699_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_saveSpriteImage__P6021, depth: s.depth + 1, + parent: s, fn: tileworld_Project_saveSpriteImage__P3699, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___6240: undefined, + buf___8217: undefined, arg0: undefined, arg1: undefined, } } @@ -39069,7 +43086,7 @@ function tileworld_Project_saveSpriteImage__P6021_mk(s) { -function tileworld_saveImage__P6232(s) { +function tileworld_saveImage__P8209(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39079,7 +43096,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___7123 = undefined; + s.buf___9093 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -39087,22 +43104,22 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_imageToBuffer__P4091_mk(s); + s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s); s.tmp_0.arg0 = s.arg2; s.callLocIdx = 277; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.buf___7123 = (r0); + s.buf___9093 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg3); if (!r0) { step = 1; continue; } - r0 = globals.BackImageKey___6729; + r0 = globals.BackImageKey___8702; { step = 2; continue; } case 1: - r0 = globals.SpriteImageKey___6731; + r0 = globals.SpriteImageKey___8704; case 2: // jmp value (already in r0) s.tmp_0 = r0; - s.tmp_1 = settings_writeBuffer__P611_mk(s); + s.tmp_1 = settings_writeBuffer__P1824_mk(s); if ((s.arg0) && (s.arg0).vtable) { setupResume(s, 5); pxsim_String__stringConv(s.arg0); @@ -39145,20 +43162,20 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_2, s.tmp_6); s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.buf___7123; + s.tmp_1.arg1 = s.buf___9093; s.callLocIdx = 278; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; - r0 = s.buf___7123; + r0 = s.buf___9093; return leave(s, r0) default: oops() } } } -tileworld_saveImage__P6232.info = {"start":13600,"length":255,"line":347,"column":4,"endLine":351,"endColumn":5,"fileName":"project.ts","functionName":"saveImage","argumentNames":["prefix","kind","img","background"]} +tileworld_saveImage__P8209.info = {"start":13600,"length":255,"line":347,"column":4,"endLine":351,"endColumn":5,"fileName":"project.ts","functionName":"saveImage","argumentNames":["prefix","kind","img","background"]} -function tileworld_saveImage__P6232_mk(s) { +function tileworld_saveImage__P8209_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_saveImage__P6232, depth: s.depth + 1, + parent: s, fn: tileworld_saveImage__P8209, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39168,7 +43185,7 @@ function tileworld_saveImage__P6232_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - buf___7123: undefined, + buf___9093: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -39179,7 +43196,7 @@ function tileworld_saveImage__P6232_mk(s) { -function tileworld_imageToBuffer__P4091(s) { +function tileworld_imageToBuffer__P3542(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39189,13 +43206,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___4093 = undefined; - s.index___4106 = undefined; - s.pixel___4127 = undefined; - s.length___4128 = undefined; - s.x___4129 = undefined; - s.y___4136 = undefined; - s.newPixel___4143 = undefined; + s.buf___6212 = undefined; + s.index___6225 = undefined; + s.pixel___6244 = undefined; + s.length___6245 = undefined; + s.x___6246 = undefined; + s.y___6253 = undefined; + s.newPixel___6260 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -39209,129 +43226,129 @@ switch (step) { r0 = (2 + s.tmp_1); s.tmp_0 = r0; r0 = pxsim.control.createBuffer(s.tmp_0); - s.buf___4093 = (r0); - s.index___4106 = (0); - s.tmp_0 = r0 = s.index___4106; + s.buf___6212 = (r0); + s.index___6225 = (0); + s.tmp_0 = r0 = s.index___6225; r0 = (s.tmp_0 + 1); - s.index___4106 = (r0); - s.tmp_1 = r0 = s.buf___4093; + s.index___6225 = (r0); + s.tmp_1 = r0 = s.buf___6212; r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_2 = r0; r0 = pxsim.BufferMethods.setNumber(s.tmp_1, 1, s.tmp_0, s.tmp_2); - s.tmp_0 = r0 = s.index___4106; + s.tmp_0 = r0 = s.index___6225; r0 = (s.tmp_0 + 1); - s.index___4106 = (r0); - s.tmp_1 = r0 = s.buf___4093; + s.index___6225 = (r0); + s.tmp_1 = r0 = s.buf___6212; r0 = pxsim_ImageMethods.height(s.arg0); s.tmp_2 = r0; r0 = pxsim.BufferMethods.setNumber(s.tmp_1, 1, s.tmp_0, s.tmp_2); - s.pixel___4127 = (17); - s.length___4128 = (0); - s.x___4129 = (0); + s.pixel___6244 = (17); + s.length___6245 = (0); + s.x___6246 = (0); case 1: - s.tmp_1 = r0 = s.x___4129; + s.tmp_1 = r0 = s.x___6246; r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - s.y___4136 = (0); + s.y___6253 = (0); case 2: - s.tmp_1 = r0 = s.y___4136; + s.tmp_1 = r0 = s.y___6253; r0 = pxsim_ImageMethods.height(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___4129, s.y___4136); - s.newPixel___4143 = (r0); - r0 = (s.newPixel___4143 != s.pixel___4127); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___6246, s.y___6253); + s.newPixel___6260 = (r0); + r0 = (s.newPixel___6260 != s.pixel___6244); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = (s.length___4128 > 0); + r0 = (s.length___6245 > 0); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - s.tmp_2 = r0 = s.index___4106; + s.tmp_2 = r0 = s.index___6225; r0 = (s.tmp_2 + 1); - s.index___4106 = (r0); - s.tmp_3 = r0 = s.buf___4093; - r0 = (s.length___4128 & 15); + s.index___6225 = (r0); + s.tmp_3 = r0 = s.buf___6212; + r0 = (s.length___6245 & 15); s.tmp_6 = r0; r0 = (s.tmp_6 << 4); s.tmp_5 = r0; - r0 = (s.pixel___4127 & 15); + r0 = (s.pixel___6244 & 15); s.tmp_7 = r0; r0 = (s.tmp_5 | s.tmp_7); s.tmp_4 = r0; r0 = pxsim.BufferMethods.setUint8(s.tmp_3, s.tmp_2, s.tmp_4); case 3: case 4: - s.pixel___4127 = (s.newPixel___4143); - s.length___4128 = (1); + s.pixel___6244 = (s.newPixel___6260); + s.length___6245 = (1); { step = 8; continue; } case 5: - r0 = (s.length___4128 == 14); + r0 = (s.length___6245 == 14); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_1 = r0 = s.index___4106; + s.tmp_1 = r0 = s.index___6225; r0 = (s.tmp_1 + 1); - s.index___4106 = (r0); - s.tmp_2 = r0 = s.buf___4093; - r0 = (s.pixel___4127 & 15); + s.index___6225 = (r0); + s.tmp_2 = r0 = s.buf___6212; + r0 = (s.pixel___6244 & 15); s.tmp_4 = r0; r0 = (240 | s.tmp_4); s.tmp_3 = r0; r0 = pxsim.BufferMethods.setUint8(s.tmp_2, s.tmp_1, s.tmp_3); - s.pixel___4127 = (17); - s.length___4128 = (0); + s.pixel___6244 = (17); + s.length___6245 = (0); { step = 7; continue; } case 6: - r0 = (s.length___4128 + 1); - s.length___4128 = (r0); + r0 = (s.length___6245 + 1); + s.length___6245 = (r0); case 7: case 8: - r0 = (s.y___4136 + 1); - s.y___4136 = (r0); + r0 = (s.y___6253 + 1); + s.y___6253 = (r0); { step = 2; continue; } case 9: - r0 = (s.x___4129 + 1); - s.x___4129 = (r0); + r0 = (s.x___6246 + 1); + s.x___6246 = (r0); { step = 1; continue; } case 10: - r0 = (s.length___4128 > 0); + r0 = (s.length___6245 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_1 = r0 = s.index___4106; + s.tmp_1 = r0 = s.index___6225; r0 = (s.tmp_1 + 1); - s.index___4106 = (r0); - s.tmp_2 = r0 = s.buf___4093; - r0 = (s.length___4128 & 15); + s.index___6225 = (r0); + s.tmp_2 = r0 = s.buf___6212; + r0 = (s.length___6245 & 15); s.tmp_5 = r0; r0 = (s.tmp_5 << 4); s.tmp_4 = r0; - r0 = (s.pixel___4127 & 15); + r0 = (s.pixel___6244 & 15); s.tmp_6 = r0; r0 = (s.tmp_4 | s.tmp_6); s.tmp_3 = r0; r0 = pxsim.BufferMethods.setUint8(s.tmp_2, s.tmp_1, s.tmp_3); case 11: case 12: - r0 = pxsim.BufferMethods.slice(s.buf___4093, 0, s.index___4106); + r0 = pxsim.BufferMethods.slice(s.buf___6212, 0, s.index___6225); return leave(s, r0) default: oops() } } } -tileworld_imageToBuffer__P4091.info = {"start":2360,"length":1477,"line":68,"column":4,"endLine":106,"endColumn":5,"fileName":"utilities.ts","functionName":"imageToBuffer","argumentNames":["img"]} +tileworld_imageToBuffer__P3542.info = {"start":2360,"length":1477,"line":68,"column":4,"endLine":106,"endColumn":5,"fileName":"utilities.ts","functionName":"imageToBuffer","argumentNames":["img"]} -function tileworld_imageToBuffer__P4091_mk(s) { +function tileworld_imageToBuffer__P3542_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_imageToBuffer__P4091, depth: s.depth + 1, + parent: s, fn: tileworld_imageToBuffer__P3542, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39341,13 +43358,13 @@ function tileworld_imageToBuffer__P4091_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - buf___4093: undefined, - index___4106: undefined, - pixel___4127: undefined, - length___4128: undefined, - x___4129: undefined, - y___4136: undefined, - newPixel___4143: undefined, + buf___6212: undefined, + index___6225: undefined, + pixel___6244: undefined, + length___6245: undefined, + x___6246: undefined, + y___6253: undefined, + newPixel___6260: undefined, arg0: undefined, } } @@ -39355,7 +43372,7 @@ function tileworld_imageToBuffer__P4091_mk(s) { -function tileworld_Project_saveBackgroundImage__P6016(s) { +function tileworld_Project_saveBackgroundImage__P3698(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39365,19 +43382,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___6230 = undefined; + s.buf___8207 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - s.tmp_0 = tileworld_saveImage__P6232_mk(s); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + s.tmp_0 = tileworld_saveImage__P8209_mk(s); r0 = s.arg0.fields["prefix"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.tmp_1 = tileworld_Project_getBackgroundImage__P6002_mk(s); + s.tmp_1 = tileworld_Project_getBackgroundImage__P3696_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.callLocIdx = 170; s.pc = 2; return s.tmp_1; @@ -39388,21 +43405,21 @@ switch (step) { s.callLocIdx = 171; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.buf___6230 = (r0); + s.buf___8207 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_Project_saveBackgroundImage__P6016.info = {"start":3758,"length":141,"line":110,"column":8,"endLine":112,"endColumn":9,"fileName":"project.ts","functionName":"saveBackgroundImage","argumentNames":["this","kind"]} +tileworld_Project_saveBackgroundImage__P3698.info = {"start":3758,"length":141,"line":110,"column":8,"endLine":112,"endColumn":9,"fileName":"project.ts","functionName":"saveBackgroundImage","argumentNames":["this","kind"]} -function tileworld_Project_saveBackgroundImage__P6016_mk(s) { +function tileworld_Project_saveBackgroundImage__P3698_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_saveBackgroundImage__P6016, depth: s.depth + 1, + parent: s, fn: tileworld_Project_saveBackgroundImage__P3698, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___6230: undefined, + buf___8207: undefined, arg0: undefined, arg1: undefined, } } @@ -39411,7 +43428,7 @@ function tileworld_Project_saveBackgroundImage__P6016_mk(s) { -function tileworld_Project_getBackgroundImage__P6002(s) { +function tileworld_Project_getBackgroundImage__P3696(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39427,7 +43444,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = (0 <= s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -39459,12 +43476,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_getBackgroundImage__P6002.info = {"start":3464,"length":140,"line":102,"column":8,"endLine":104,"endColumn":9,"fileName":"project.ts","functionName":"getBackgroundImage","argumentNames":["this","kind"]} +tileworld_Project_getBackgroundImage__P3696.info = {"start":3464,"length":140,"line":102,"column":8,"endLine":104,"endColumn":9,"fileName":"project.ts","functionName":"getBackgroundImage","argumentNames":["this","kind"]} -function tileworld_Project_getBackgroundImage__P6002_mk(s) { +function tileworld_Project_getBackgroundImage__P3696_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_getBackgroundImage__P6002, depth: s.depth + 1, + parent: s, fn: tileworld_Project_getBackgroundImage__P3696, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39481,7 +43498,7 @@ function tileworld_Project_getBackgroundImage__P6002_mk(s) { -function tileworld_ImageEditor_paintPixel__P10054(s) { +function tileworld_ImageEditor_paintPixel__P11906(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39491,17 +43508,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___10236 = undefined; - s.row___10247 = undefined; - s.col___10276 = undefined; - s.row___10291 = undefined; - s.col___10312 = undefined; + s.col___12086 = undefined; + s.row___12097 = undefined; + s.col___12126 = undefined; + s.row___12141 = undefined; + s.col___12162 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); r0 = s.arg0.fields["Adown"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -39519,7 +43536,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_8 = Sprite_x__P770_mk(s); + s.tmp_8 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_8.arg0 = r0; s.callLocIdx = 570; s.pc = 14; return s.tmp_8; @@ -39531,8 +43548,8 @@ switch (step) { r0 = (s.tmp_6 / 8); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.col___10236 = (r0); - s.tmp_4 = Sprite_y__P772_mk(s); + s.col___12086 = (r0); + s.tmp_4 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 571; s.pc = 15; return s.tmp_4; @@ -39546,14 +43563,14 @@ switch (step) { r0 = (s.tmp_1 / 8); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - s.row___10247 = (r0); + s.row___12097 = (r0); s.tmp_0 = r0 = s.arg0; - r0 = (s.row___10247 * 2); + r0 = (s.row___12097 * 2); s.tmp_2 = r0; - r0 = (s.tmp_2 + s.col___10236); + r0 = (s.tmp_2 + s.col___12086); s.tmp_1 = r0; r0 = (s.tmp_0).fields["selectedColor"] = (s.tmp_1); - s.tmp_0 = tileworld_ImageEditor_setCursor__P10060_mk(s); + s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.callLocIdx = 572; s.pc = 16; return s.tmp_0; @@ -39568,7 +43585,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } r0 = (s.arg0).fields["dirty"] = (true); - s.tmp_3 = Sprite_x__P770_mk(s); + s.tmp_3 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_3.arg0 = r0; s.callLocIdx = 573; s.pc = 17; return s.tmp_3; @@ -39580,8 +43597,8 @@ switch (step) { r0 = (s.tmp_1 / 6); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - s.col___10276 = (r0); - s.tmp_3 = Sprite_y__P772_mk(s); + s.col___12126 = (r0); + s.tmp_3 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_3.arg0 = r0; s.callLocIdx = 574; s.pc = 18; return s.tmp_3; @@ -39593,15 +43610,15 @@ switch (step) { r0 = (s.tmp_1 / 6); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - s.row___10291 = (r0); + s.row___12141 = (r0); r0 = s.arg0.fields["image"]; s.tmp_0 = r0; r0 = s.arg0.fields["selectedColor"]; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.col___10276, s.row___10291, s.tmp_1); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.col___12126, s.row___12141, s.tmp_1); { step = 11; continue; } case 4: - s.tmp_1 = Sprite_x__P770_mk(s); + s.tmp_1 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_1.arg0 = r0; s.callLocIdx = 575; s.pc = 19; return s.tmp_1; @@ -39609,15 +43626,15 @@ switch (step) { r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 >> 4); - s.col___10312 = (r0); - r0 = (2 <= s.col___10312); + s.col___12162 = (r0); + r0 = (2 <= s.col___12162); 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_1 = r0 = s.col___10312; + s.tmp_1 = r0 = s.col___12162; r0 = s.arg0.fields["p"]; s.tmp_5 = r0; r0 = s.tmp_5.fields["allImages"]; @@ -39636,7 +43653,7 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 7; continue; } - s.tmp_8 = tileworld_AllExport_saveImage__P6028_mk(s); + s.tmp_8 = tileworld_AllExport_saveImage__P3675_mk(s); r0 = s.arg0.fields["p"]; s.tmp_8.arg0 = r0; r0 = s.arg0.fields["kind"]; @@ -39647,7 +43664,7 @@ switch (step) { case 7: case 8: s.tmp_0 = r0 = s.arg0; - r0 = (s.col___10312 - 2); + r0 = (s.col___12162 - 2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["kind"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; @@ -39665,9 +43682,9 @@ switch (step) { case 10: case 11: case 12: - s.tmp_0 = tileworld_ImageEditor__C10052_v0_1_mk(s); + s.tmp_0 = tileworld_ImageEditor__C3778_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ImageEditor__C10052_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_ImageEditor__C3778_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 21; return s.tmp_0; case 21: @@ -39677,12 +43694,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_paintPixel__P10054.info = {"start":3695,"length":1186,"line":107,"column":8,"endLine":131,"endColumn":9,"fileName":"imageeditor.ts","functionName":"paintPixel","argumentNames":["this"]} +tileworld_ImageEditor_paintPixel__P11906.info = {"start":3695,"length":1186,"line":107,"column":8,"endLine":131,"endColumn":9,"fileName":"imageeditor.ts","functionName":"paintPixel","argumentNames":["this"]} -function tileworld_ImageEditor_paintPixel__P10054_mk(s) { +function tileworld_ImageEditor_paintPixel__P11906_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_paintPixel__P10054, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_paintPixel__P11906, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39693,11 +43710,11 @@ function tileworld_ImageEditor_paintPixel__P10054_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - col___10236: undefined, - row___10247: undefined, - col___10276: undefined, - row___10291: undefined, - col___10312: undefined, + col___12086: undefined, + row___12097: undefined, + col___12126: undefined, + row___12141: undefined, + col___12162: undefined, arg0: undefined, } } @@ -39705,7 +43722,7 @@ function tileworld_ImageEditor_paintPixel__P10054_mk(s) { -function tileworld_ImageEditor_moveDown__P10058(s) { +function tileworld_ImageEditor_moveDown__P11910(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39720,14 +43737,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); r0 = s.arg0.fields["cursorType"]; 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; } - s.tmp_4 = Sprite_y__P772_mk(s); + s.tmp_4 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 609; s.pc = 9; return s.tmp_4; @@ -39744,11 +43761,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_8 = Sprite_y__P773_mk(s); + s.tmp_8 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_9 = r0; s.tmp_8.arg0 = r0; - s.tmp_11 = Sprite_y__P772_mk(s); + s.tmp_11 = Sprite_y__P2024_mk(s); s.tmp_11.arg0 = s.tmp_9; s.callLocIdx = 610; s.pc = 11; return s.tmp_11; case 11: @@ -39769,7 +43786,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = tileworld_ImageEditor_setCursor__P10060_mk(s); + s.tmp_2 = tileworld_ImageEditor_setCursor__P11912_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = 1; s.callLocIdx = 612; s.pc = 12; return s.tmp_2; @@ -39777,7 +43794,7 @@ switch (step) { r0 = s.retval; { step = 7; continue; } case 4: - s.tmp_2 = Sprite_y__P772_mk(s); + s.tmp_2 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_2.arg0 = r0; s.callLocIdx = 613; s.pc = 13; return s.tmp_2; @@ -39788,11 +43805,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_3 = Sprite_y__P773_mk(s); + s.tmp_3 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_4 = r0; s.tmp_3.arg0 = r0; - s.tmp_6 = Sprite_y__P772_mk(s); + s.tmp_6 = Sprite_y__P2024_mk(s); s.tmp_6.arg0 = s.tmp_4; s.callLocIdx = 614; s.pc = 15; return s.tmp_6; case 15: @@ -39807,7 +43824,7 @@ switch (step) { case 6: case 7: case 8: - s.tmp_0 = tileworld_ImageEditor_paintPixel__P10054_mk(s); + s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 616; s.pc = 16; return s.tmp_0; case 16: @@ -39816,12 +43833,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_moveDown__P10058.info = {"start":6846,"length":536,"line":183,"column":8,"endLine":194,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveDown","argumentNames":["this"]} +tileworld_ImageEditor_moveDown__P11910.info = {"start":6846,"length":536,"line":183,"column":8,"endLine":194,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveDown","argumentNames":["this"]} -function tileworld_ImageEditor_moveDown__P10058_mk(s) { +function tileworld_ImageEditor_moveDown__P11910_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_moveDown__P10058, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_moveDown__P11910, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39842,7 +43859,7 @@ function tileworld_ImageEditor_moveDown__P10058_mk(s) { -function tileworld_ImageEditor_moveUp__P10057(s) { +function tileworld_ImageEditor_moveUp__P11909(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39857,14 +43874,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); r0 = s.arg0.fields["cursorType"]; 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; } - s.tmp_4 = Sprite_y__P772_mk(s); + s.tmp_4 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 601; s.pc = 9; return s.tmp_4; @@ -39879,11 +43896,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_7 = Sprite_y__P773_mk(s); + s.tmp_7 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_8 = r0; s.tmp_7.arg0 = r0; - s.tmp_10 = Sprite_y__P772_mk(s); + s.tmp_10 = Sprite_y__P2024_mk(s); s.tmp_10.arg0 = s.tmp_8; s.callLocIdx = 602; s.pc = 11; return s.tmp_10; case 11: @@ -39904,7 +43921,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_4 = Sprite_y__P772_mk(s); + s.tmp_4 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 604; s.pc = 12; return s.tmp_4; @@ -39915,11 +43932,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - s.tmp_5 = Sprite_y__P773_mk(s); + s.tmp_5 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_6 = r0; s.tmp_5.arg0 = r0; - s.tmp_8 = Sprite_y__P772_mk(s); + s.tmp_8 = Sprite_y__P2024_mk(s); s.tmp_8.arg0 = s.tmp_6; s.callLocIdx = 605; s.pc = 14; return s.tmp_8; case 14: @@ -39932,7 +43949,7 @@ switch (step) { r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = tileworld_ImageEditor_setCursor__P10060_mk(s); + s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.callLocIdx = 607; s.pc = 15; return s.tmp_0; @@ -39942,7 +43959,7 @@ switch (step) { case 6: case 7: case 8: - s.tmp_0 = tileworld_ImageEditor_paintPixel__P10054_mk(s); + s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 608; s.pc = 16; return s.tmp_0; case 16: @@ -39951,12 +43968,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_moveUp__P10057.info = {"start":6292,"length":544,"line":169,"column":8,"endLine":181,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveUp","argumentNames":["this"]} +tileworld_ImageEditor_moveUp__P11909.info = {"start":6292,"length":544,"line":169,"column":8,"endLine":181,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveUp","argumentNames":["this"]} -function tileworld_ImageEditor_moveUp__P10057_mk(s) { +function tileworld_ImageEditor_moveUp__P11909_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_moveUp__P10057, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_moveUp__P11909, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39976,7 +43993,7 @@ function tileworld_ImageEditor_moveUp__P10057_mk(s) { -function tileworld_ImageEditor_moveRight__P10056(s) { +function tileworld_ImageEditor_moveRight__P11908(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39991,14 +44008,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); r0 = s.arg0.fields["cursorType"]; 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; } - s.tmp_4 = Sprite_x__P770_mk(s); + s.tmp_4 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 590; s.pc = 11; return s.tmp_4; @@ -40009,11 +44026,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_5 = Sprite_x__P771_mk(s); + s.tmp_5 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_6 = r0; s.tmp_5.arg0 = r0; - s.tmp_8 = Sprite_x__P770_mk(s); + s.tmp_8 = Sprite_x__P2022_mk(s); s.tmp_8.arg0 = s.tmp_6; s.callLocIdx = 591; s.pc = 13; return s.tmp_8; case 13: @@ -40026,7 +44043,7 @@ switch (step) { r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = tileworld_ImageEditor_setCursor__P10060_mk(s); + s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.callLocIdx = 593; s.pc = 14; return s.tmp_0; @@ -40041,7 +44058,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_4 = Sprite_x__P770_mk(s); + s.tmp_4 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 594; s.pc = 15; return s.tmp_4; @@ -40052,11 +44069,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - s.tmp_5 = Sprite_x__P771_mk(s); + s.tmp_5 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_6 = r0; s.tmp_5.arg0 = r0; - s.tmp_8 = Sprite_x__P770_mk(s); + s.tmp_8 = Sprite_x__P2022_mk(s); s.tmp_8.arg0 = s.tmp_6; s.callLocIdx = 595; s.pc = 17; return s.tmp_8; case 17: @@ -40071,7 +44088,7 @@ switch (step) { case 5: { step = 9; continue; } case 6: - s.tmp_2 = Sprite_x__P770_mk(s); + s.tmp_2 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_2.arg0 = r0; s.callLocIdx = 597; s.pc = 18; return s.tmp_2; @@ -40084,11 +44101,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_x__P771_mk(s); + s.tmp_4 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_5 = r0; s.tmp_4.arg0 = r0; - s.tmp_7 = Sprite_x__P770_mk(s); + s.tmp_7 = Sprite_x__P2022_mk(s); s.tmp_7.arg0 = s.tmp_5; s.callLocIdx = 598; s.pc = 20; return s.tmp_7; case 20: @@ -40103,7 +44120,7 @@ switch (step) { case 8: case 9: case 10: - s.tmp_0 = tileworld_ImageEditor_paintPixel__P10054_mk(s); + s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 600; s.pc = 21; return s.tmp_0; case 21: @@ -40112,12 +44129,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_moveRight__P10056.info = {"start":5579,"length":703,"line":151,"column":8,"endLine":167,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveRight","argumentNames":["this"]} +tileworld_ImageEditor_moveRight__P11908.info = {"start":5579,"length":703,"line":151,"column":8,"endLine":167,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveRight","argumentNames":["this"]} -function tileworld_ImageEditor_moveRight__P10056_mk(s) { +function tileworld_ImageEditor_moveRight__P11908_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_moveRight__P10056, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_moveRight__P11908, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40135,7 +44152,7 @@ function tileworld_ImageEditor_moveRight__P10056_mk(s) { -function tileworld_ImageEditor_moveLeft__P10055(s) { +function tileworld_ImageEditor_moveLeft__P11907(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40150,14 +44167,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); r0 = s.arg0.fields["cursorType"]; 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; } - s.tmp_4 = Sprite_x__P770_mk(s); + s.tmp_4 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 579; s.pc = 11; return s.tmp_4; @@ -40168,11 +44185,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_5 = Sprite_x__P771_mk(s); + s.tmp_5 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_6 = r0; s.tmp_5.arg0 = r0; - s.tmp_8 = Sprite_x__P770_mk(s); + s.tmp_8 = Sprite_x__P2022_mk(s); s.tmp_8.arg0 = s.tmp_6; s.callLocIdx = 580; s.pc = 13; return s.tmp_8; case 13: @@ -40193,7 +44210,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_4 = Sprite_x__P770_mk(s); + s.tmp_4 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 582; s.pc = 14; return s.tmp_4; @@ -40204,11 +44221,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - s.tmp_5 = Sprite_x__P771_mk(s); + s.tmp_5 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_6 = r0; s.tmp_5.arg0 = r0; - s.tmp_8 = Sprite_x__P770_mk(s); + s.tmp_8 = Sprite_x__P2022_mk(s); s.tmp_8.arg0 = s.tmp_6; s.callLocIdx = 583; s.pc = 16; return s.tmp_8; case 16: @@ -40223,7 +44240,7 @@ switch (step) { case 5: { step = 9; continue; } case 6: - s.tmp_2 = Sprite_x__P770_mk(s); + s.tmp_2 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_2.arg0 = r0; s.callLocIdx = 585; s.pc = 17; return s.tmp_2; @@ -40234,11 +44251,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_3 = Sprite_x__P771_mk(s); + s.tmp_3 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_4 = r0; s.tmp_3.arg0 = r0; - s.tmp_6 = Sprite_x__P770_mk(s); + s.tmp_6 = Sprite_x__P2022_mk(s); s.tmp_6.arg0 = s.tmp_4; s.callLocIdx = 586; s.pc = 19; return s.tmp_6; case 19: @@ -40251,7 +44268,7 @@ switch (step) { r0 = s.retval; { step = 8; continue; } case 7: - s.tmp_0 = tileworld_ImageEditor_setCursor__P10060_mk(s); + s.tmp_0 = tileworld_ImageEditor_setCursor__P11912_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 588; s.pc = 20; return s.tmp_0; @@ -40260,7 +44277,7 @@ switch (step) { case 8: case 9: case 10: - s.tmp_0 = tileworld_ImageEditor_paintPixel__P10054_mk(s); + s.tmp_0 = tileworld_ImageEditor_paintPixel__P11906_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 589; s.pc = 21; return s.tmp_0; case 21: @@ -40269,12 +44286,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_moveLeft__P10055.info = {"start":4891,"length":678,"line":133,"column":8,"endLine":149,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveLeft","argumentNames":["this"]} +tileworld_ImageEditor_moveLeft__P11907.info = {"start":4891,"length":678,"line":133,"column":8,"endLine":149,"endColumn":9,"fileName":"imageeditor.ts","functionName":"moveLeft","argumentNames":["this"]} -function tileworld_ImageEditor_moveLeft__P10055_mk(s) { +function tileworld_ImageEditor_moveLeft__P11907_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_moveLeft__P10055, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_moveLeft__P11907, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40292,7 +44309,7 @@ function tileworld_ImageEditor_moveLeft__P10055_mk(s) { -function tileworld_ImageEditor_update__P10061(s) { +function tileworld_ImageEditor_update__P11913(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40302,24 +44319,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___10634 = undefined; - s.col___10638 = undefined; - s.color___10642 = undefined; - s.yOffset___10647 = undefined; - s.row___10718 = undefined; - s.y___10725 = undefined; - s.col___10731 = undefined; - s.x___10738 = undefined; - s.color___10746 = undefined; + s.row___12483 = undefined; + s.col___12487 = undefined; + s.color___12491 = undefined; + s.yOffset___12496 = undefined; + s.row___12566 = undefined; + s.y___12573 = undefined; + s.col___12579 = undefined; + s.x___12586 = undefined; + s.color___12594 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.fill(globals.screen___578, 0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 4; s.tmp_0.arg3 = 16; @@ -40328,11 +44345,11 @@ switch (step) { s.callLocIdx = 622; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___578, globals.paint___7229, 0, 4); - r0 = pxsim_pxtcore_mkAction(1, inline__P10607); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, globals.paint___3716, 0, 4); + r0 = pxsim_pxtcore_mkAction(1, inline__P12456); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["allImages"]; @@ -40341,34 +44358,34 @@ switch (step) { s.callLocIdx = 624; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; - s.row___10634 = (0); + s.row___12483 = (0); case 1: - r0 = (s.row___10634 < 8); + r0 = (s.row___12483 < 8); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.col___10638 = (0); + s.col___12487 = (0); case 2: - r0 = (s.col___10638 < 2); + r0 = (s.col___12487 < 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = (s.row___10634 * 2); + r0 = (s.row___12483 * 2); s.tmp_1 = r0; - r0 = (s.tmp_1 + s.col___10638); - s.color___10642 = (r0); + r0 = (s.tmp_1 + s.col___12487); + s.color___12491 = (r0); r0 = (38 + 4); - s.yOffset___10647 = (r0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = (s.col___10638 * 8); + s.yOffset___12496 = (r0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = (s.col___12487 * 8); s.tmp_2 = r0; r0 = (5 + s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_1 + 1); s.tmp_0.arg1 = r0; - s.tmp_4 = r0 = s.yOffset___10647; - r0 = (s.row___10634 * 8); + s.tmp_4 = r0 = s.yOffset___12496; + r0 = (s.row___12483 * 8); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -40376,24 +44393,24 @@ switch (step) { s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 6; s.tmp_0.arg4 = 6; - s.tmp_0.arg5 = s.color___10642; + s.tmp_0.arg5 = s.color___12491; s.callLocIdx = 625; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; r0 = s.arg0.fields["selectedColor"]; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.color___10642); + r0 = (s.tmp_1 == s.color___12491); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = helpers_imageDrawRect__P520_mk(s); - s.tmp_2.arg0 = globals.screen___578; - r0 = (s.col___10638 * 8); + s.tmp_2 = helpers_imageDrawRect__P1728_mk(s); + s.tmp_2.arg0 = globals.screen___1799; + r0 = (s.col___12487 * 8); s.tmp_3 = r0; r0 = (5 + s.tmp_3); s.tmp_2.arg1 = r0; - s.tmp_4 = r0 = s.yOffset___10647; - r0 = (s.row___10634 * 8); + s.tmp_4 = r0 = s.yOffset___12496; + r0 = (s.row___12483 * 8); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_2.arg2 = r0; @@ -40405,16 +44422,16 @@ switch (step) { r0 = s.retval; case 3: case 4: - r0 = (s.col___10638 + 1); - s.col___10638 = (r0); + r0 = (s.col___12487 + 1); + s.col___12487 = (r0); { step = 2; continue; } case 5: - r0 = (s.row___10634 + 1); - s.row___10634 = (r0); + r0 = (s.row___12483 + 1); + s.row___12483 = (r0); { step = 1; continue; } case 6: - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = 6; s.tmp_0.arg2 = 43; s.tmp_0.arg3 = 3; @@ -40423,8 +44440,8 @@ switch (step) { s.callLocIdx = 627; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = 9; s.tmp_0.arg2 = 46; s.tmp_0.arg3 = 3; @@ -40433,9 +44450,9 @@ switch (step) { s.callLocIdx = 628; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.row___10718 = (0); + s.row___12566 = (0); case 7: - s.tmp_1 = r0 = s.row___10718; + s.tmp_1 = r0 = s.row___12566; r0 = s.arg0.fields["image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -40444,13 +44461,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - r0 = (s.row___10718 * 6); + r0 = (s.row___12566 * 6); s.tmp_4 = r0; r0 = (24 + s.tmp_4); - s.y___10725 = (r0); - s.col___10731 = (0); + s.y___12573 = (r0); + s.col___12579 = (0); case 8: - s.tmp_1 = r0 = s.col___10731; + s.tmp_1 = r0 = s.col___12579; r0 = s.arg0.fields["image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.width(s.tmp_3); @@ -40459,32 +44476,32 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = (s.col___10731 * 6); + r0 = (s.col___12579 * 6); s.tmp_4 = r0; r0 = (30 + s.tmp_4); - s.x___10738 = (r0); + s.x___12586 = (r0); r0 = s.arg0.fields["image"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.col___10731, s.row___10718); - s.color___10746 = (r0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = s.x___10738; - s.tmp_0.arg2 = s.y___10725; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.col___12579, s.row___12566); + s.color___12594 = (r0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = s.x___12586; + s.tmp_0.arg2 = s.y___12573; s.tmp_0.arg3 = 5; s.tmp_0.arg4 = 5; - s.tmp_0.arg5 = s.color___10746; + s.tmp_0.arg5 = s.color___12594; s.callLocIdx = 629; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = (s.color___10746 == 0); + r0 = (s.color___12594 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.tmp_1 = helpers_imageFillRect__P517_mk(s); - s.tmp_1.arg0 = globals.screen___578; - s.tmp_1.arg1 = s.x___10738; - s.tmp_1.arg2 = s.y___10725; + s.tmp_1 = helpers_imageFillRect__P1725_mk(s); + s.tmp_1.arg0 = globals.screen___1799; + s.tmp_1.arg1 = s.x___12586; + s.tmp_1.arg2 = s.y___12573; r0 = (3 - 1); s.tmp_1.arg3 = r0; r0 = (3 - 1); @@ -40493,11 +44510,11 @@ switch (step) { s.callLocIdx = 630; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = (s.x___10738 + 3); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = (s.x___12586 + 3); s.tmp_0.arg1 = r0; - r0 = (s.y___10725 + 3); + r0 = (s.y___12573 + 3); s.tmp_0.arg2 = r0; r0 = (3 - 1); s.tmp_0.arg3 = r0; @@ -40509,16 +44526,16 @@ switch (step) { r0 = s.retval; case 9: case 10: - r0 = (s.col___10731 + 1); - s.col___10731 = (r0); + r0 = (s.col___12579 + 1); + s.col___12579 = (r0); { step = 8; continue; } case 11: - r0 = (s.row___10718 + 1); - s.row___10718 = (r0); + r0 = (s.row___12566 + 1); + s.row___12566 = (r0); { step = 7; continue; } case 12: - s.tmp_0 = helpers_imageDrawRect__P520_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imageDrawRect__P1728_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = 28; s.tmp_0.arg2 = 22; r0 = (96 + 4); @@ -40533,12 +44550,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_update__P10061.info = {"start":7850,"length":2296,"line":208,"column":8,"endLine":251,"endColumn":9,"fileName":"imageeditor.ts","functionName":"update","argumentNames":["this"]} +tileworld_ImageEditor_update__P11913.info = {"start":7850,"length":2296,"line":208,"column":8,"endLine":251,"endColumn":9,"fileName":"imageeditor.ts","functionName":"update","argumentNames":["this"]} -function tileworld_ImageEditor_update__P10061_mk(s) { +function tileworld_ImageEditor_update__P11913_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_update__P10061, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_update__P11913, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40546,15 +44563,15 @@ function tileworld_ImageEditor_update__P10061_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - row___10634: undefined, - col___10638: undefined, - color___10642: undefined, - yOffset___10647: undefined, - row___10718: undefined, - y___10725: undefined, - col___10731: undefined, - x___10738: undefined, - color___10746: undefined, + row___12483: undefined, + col___12487: undefined, + color___12491: undefined, + yOffset___12496: undefined, + row___12566: undefined, + y___12573: undefined, + col___12579: undefined, + x___12586: undefined, + color___12594: undefined, arg0: undefined, } } @@ -40562,7 +44579,7 @@ function tileworld_ImageEditor_update__P10061_mk(s) { -function inline__P10607(s) { +function inline__P12456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40577,7 +44594,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = globals.screen___578; + s.tmp_0 = r0 = globals.screen___1799; s.tmp_1 = r0 = s.arg0; r0 = (2 + s.arg1); s.tmp_3 = r0; @@ -40590,8 +44607,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = r0 = globals.screen___578; - s.tmp_3 = r0 = globals.cursorOut___7253; + s.tmp_2 = r0 = globals.screen___1799; + s.tmp_3 = r0 = globals.cursorOut___3724; r0 = (2 + s.arg1); s.tmp_5 = r0; r0 = (s.tmp_5 * 16); @@ -40603,12 +44620,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10607.info = {"start":8044,"length":232,"line":212,"column":39,"endLine":217,"endColumn":13,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":["img","index"]} +inline__P12456.info = {"start":8044,"length":232,"line":212,"column":39,"endLine":217,"endColumn":13,"fileName":"imageeditor.ts","functionName":"inline","argumentNames":["img","index"]} -function inline__P10607_mk(s) { +function inline__P12456_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10607, depth: s.depth + 1, + parent: s, fn: inline__P12456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40624,7 +44641,7 @@ function inline__P10607_mk(s) { -function tileworld_ImageEditor_setCursor__P10060(s) { +function tileworld_ImageEditor_setCursor__P11912(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40640,8 +44657,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ImageEditor__C10052_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P813_mk(s); + if (!checkSubtype(r0, tileworld_ImageEditor__C3778_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["colorCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 128; @@ -40650,7 +44667,7 @@ switch (step) { s.callLocIdx = 619; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 128; @@ -40659,7 +44676,7 @@ switch (step) { s.callLocIdx = 620; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["menuCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 128; @@ -40673,12 +44690,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_ImageEditor_setCursor__P10060.info = {"start":7512,"length":328,"line":201,"column":8,"endLine":206,"endColumn":9,"fileName":"imageeditor.ts","functionName":"setCursor","argumentNames":["this","ct"]} +tileworld_ImageEditor_setCursor__P11912.info = {"start":7512,"length":328,"line":201,"column":8,"endLine":206,"endColumn":9,"fileName":"imageeditor.ts","functionName":"setCursor","argumentNames":["this","ct"]} -function tileworld_ImageEditor_setCursor__P10060_mk(s) { +function tileworld_ImageEditor_setCursor__P11912_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ImageEditor_setCursor__P10060, depth: s.depth + 1, + parent: s, fn: tileworld_ImageEditor_setCursor__P11912, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40689,7 +44706,7 @@ function tileworld_ImageEditor_setCursor__P10060_mk(s) { -function tileworld_cursorAnimation__P3907(s) { +function tileworld_cursorAnimation__P3538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40699,39 +44716,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.anim___3910 = undefined; + s.anim___6036 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = animation_createAnimation__P2117_mk(s); + s.tmp_0 = animation_createAnimation__P2928_mk(s); s.tmp_0.arg0 = 0; s.tmp_0.arg1 = 300; s.callLocIdx = 65; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.anim___3910 = (r0); - s.tmp_0 = animation_Animation_addAnimationFrame__P2113_mk(s); - s.tmp_0.arg0 = s.anim___3910; + s.anim___6036 = (r0); + s.tmp_0 = animation_Animation_addAnimationFrame__P2925_mk(s); + s.tmp_0.arg0 = s.anim___6036; r0 = s.arg0.fields["_image"]; s.tmp_0.arg1 = r0; s.callLocIdx = 67; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = animation_Animation_addAnimationFrame__P2113_mk(s); - s.tmp_0.arg0 = s.anim___3910; + s.tmp_0 = animation_Animation_addAnimationFrame__P2925_mk(s); + s.tmp_0.arg0 = s.anim___6036; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 68; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = animation_attachAnimation__P2118_mk(s); + s.tmp_0 = animation_attachAnimation__P2929_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.anim___3910; + s.tmp_0.arg1 = s.anim___6036; s.callLocIdx = 69; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = animation_setAction__P2119_mk(s); + s.tmp_0 = animation_setAction__P2930_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 70; s.pc = 5; return s.tmp_0; @@ -40741,15 +44758,15 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_cursorAnimation__P3907.info = {"start":670,"length":297,"line":20,"column":4,"endLine":26,"endColumn":5,"fileName":"utilities.ts","functionName":"cursorAnimation","argumentNames":["cursor","second"]} +tileworld_cursorAnimation__P3538.info = {"start":670,"length":297,"line":20,"column":4,"endLine":26,"endColumn":5,"fileName":"utilities.ts","functionName":"cursorAnimation","argumentNames":["cursor","second"]} -function tileworld_cursorAnimation__P3907_mk(s) { +function tileworld_cursorAnimation__P3538_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_cursorAnimation__P3907, depth: s.depth + 1, + parent: s, fn: tileworld_cursorAnimation__P3538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - anim___3910: undefined, + anim___6036: undefined, arg0: undefined, arg1: undefined, } } @@ -40758,7 +44775,7 @@ function tileworld_cursorAnimation__P3907_mk(s) { -function animation_setAction__P2119(s) { +function animation_setAction__P2930(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40778,12 +44795,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -animation_setAction__P2119.info = {"start":4990,"length":98,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"setAction","argumentNames":["sprite","action"]} +animation_setAction__P2930.info = {"start":4990,"length":98,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"setAction","argumentNames":["sprite","action"]} -function animation_setAction__P2119_mk(s) { +function animation_setAction__P2930_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_setAction__P2119, depth: s.depth + 1, + parent: s, fn: animation_setAction__P2930, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -40793,7 +44810,7 @@ function animation_setAction__P2119_mk(s) { -function animation_attachAnimation__P2118(s) { +function animation_attachAnimation__P2929(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40808,22 +44825,22 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = animation_Animation_registerSprite__P2114_mk(s); + s.tmp_0 = animation_Animation_registerSprite__P2926_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1226; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1228; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -animation_attachAnimation__P2118.info = {"start":4622,"length":107,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"attachAnimation","argumentNames":["sprite","set"]} +animation_attachAnimation__P2929.info = {"start":4622,"length":107,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"attachAnimation","argumentNames":["sprite","set"]} -function animation_attachAnimation__P2118_mk(s) { +function animation_attachAnimation__P2929_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_attachAnimation__P2118, depth: s.depth + 1, + parent: s, fn: animation_attachAnimation__P2929, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40834,7 +44851,7 @@ function animation_attachAnimation__P2118_mk(s) { -function animation_Animation_registerSprite__P2114(s) { +function animation_Animation_registerSprite__P2926(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40850,7 +44867,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Animation__C2106_VT)) failedCast(r0); + if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0); r0 = s.arg0.fields["sprites"]; s.tmp_2 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg1, undefined); @@ -40868,12 +44885,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -animation_Animation_registerSprite__P2114.info = {"start":3258,"length":154,"line":115,"column":8,"endLine":119,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"registerSprite","argumentNames":["this","sprite"]} +animation_Animation_registerSprite__P2926.info = {"start":3258,"length":154,"line":115,"column":8,"endLine":119,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"registerSprite","argumentNames":["this","sprite"]} -function animation_Animation_registerSprite__P2114_mk(s) { +function animation_Animation_registerSprite__P2926_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Animation_registerSprite__P2114, depth: s.depth + 1, + parent: s, fn: animation_Animation_registerSprite__P2926, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40887,7 +44904,7 @@ function animation_Animation_registerSprite__P2114_mk(s) { -function animation_Animation_addAnimationFrame__P2113(s) { +function animation_Animation_addAnimationFrame__P2925(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40903,7 +44920,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Animation__C2106_VT)) failedCast(r0); + if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["index"]; s.tmp_2 = r0; @@ -40917,12 +44934,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -animation_Animation_addAnimationFrame__P2113.info = {"start":3158,"length":90,"line":111,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"addAnimationFrame","argumentNames":["this","frame"]} +animation_Animation_addAnimationFrame__P2925.info = {"start":3158,"length":90,"line":111,"column":8,"endLine":113,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"addAnimationFrame","argumentNames":["this","frame"]} -function animation_Animation_addAnimationFrame__P2113_mk(s) { +function animation_Animation_addAnimationFrame__P2925_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Animation_addAnimationFrame__P2113, depth: s.depth + 1, + parent: s, fn: animation_Animation_addAnimationFrame__P2925, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40936,7 +44953,7 @@ function animation_Animation_addAnimationFrame__P2113_mk(s) { -function animation_createAnimation__P2117(s) { +function animation_createAnimation__P2928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40951,25 +44968,25 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(animation_Animation__C2106_VT); + r0 = pxsim_pxtcore_mkClassInstance(animation_Animation__C2911_VT); s.tmp_0 = r0; - s.tmp_1 = animation_Animation_constructor__P2115_mk(s); + s.tmp_1 = animation_Animation_constructor__P2918_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.tmp_1.arg2 = s.arg1; - s.callLocIdx = 1225; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1227; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -animation_createAnimation__P2117.info = {"start":4227,"length":121,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"createAnimation","argumentNames":["action","interval"]} +animation_createAnimation__P2928.info = {"start":4227,"length":121,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/animation/legacy.ts","functionName":"createAnimation","argumentNames":["action","interval"]} -function animation_createAnimation__P2117_mk(s) { +function animation_createAnimation__P2928_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_createAnimation__P2117, depth: s.depth + 1, + parent: s, fn: animation_createAnimation__P2928, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40981,7 +44998,7 @@ function animation_createAnimation__P2117_mk(s) { -function animation_Animation_constructor__P2115(s) { +function animation_Animation_constructor__P2918(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40998,7 +45015,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Animation__C2106_VT)) failedCast(r0); + if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0); r0 = (s.arg0).fields["interval"] = (s.arg2); r0 = (s.arg0).fields["index"] = (-1); r0 = (s.arg0).fields["action"] = (s.arg1); @@ -41014,21 +45031,21 @@ switch (step) { r0 = pxsim.control.millis(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["lastTime"] = (s.tmp_1); - s.tmp_0 = animation_Animation__init__P2107_mk(s); + s.tmp_0 = animation_Animation__init__P2919_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1215; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1217; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -animation_Animation_constructor__P2115.info = {"start":1152,"length":292,"line":45,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["this","action","interval"]} +animation_Animation_constructor__P2918.info = {"start":1152,"length":292,"line":45,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["this","action","interval"]} -function animation_Animation_constructor__P2115_mk(s) { +function animation_Animation_constructor__P2918_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Animation_constructor__P2115, depth: s.depth + 1, + parent: s, fn: animation_Animation_constructor__P2918, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41041,7 +45058,7 @@ function animation_Animation_constructor__P2115_mk(s) { -function animation_Animation__init__P2107(s) { +function animation_Animation__init__P2919(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41056,39 +45073,39 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Animation__C2106_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals.animations___2061); + if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals.animations___4778); 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.animations___2061 = (r0); - s.tmp_0 = control_EventContext_registerFrameHandler__P293_mk(s); - s.tmp_1 = game_eventContext__P1290_mk(s); - s.callLocIdx = 1216; s.pc = 4; return s.tmp_1; + globals.animations___4778 = (r0); + s.tmp_0 = control_EventContext_registerFrameHandler__P389_mk(s); + s.tmp_1 = game_eventContext__P2527_mk(s); + s.callLocIdx = 1218; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 15; - s.tmp_0.arg2 = inline__P25959; - s.callLocIdx = 1219; s.pc = 3; return s.tmp_0; + s.tmp_0.arg2 = inline__P27606; + s.callLocIdx = 1221; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: case 2: - r0 = pxsim_Array__push(globals.animations___2061, s.arg0); + r0 = pxsim_Array__push(globals.animations___4778, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -animation_Animation__init__P2107.info = {"start":1454,"length":313,"line":56,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"_init","argumentNames":["this"]} +animation_Animation__init__P2919.info = {"start":1454,"length":313,"line":56,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"_init","argumentNames":["this"]} -function animation_Animation__init__P2107_mk(s) { +function animation_Animation__init__P2919_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Animation__init__P2107, depth: s.depth + 1, + parent: s, fn: animation_Animation__init__P2919, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41099,7 +45116,7 @@ function animation_Animation__init__P2107_mk(s) { -function inline__P25959(s) { +function inline__P27606(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41109,22 +45126,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P60_mk(s); - s.tmp_0.arg0 = globals.animations___2061; - s.tmp_0.arg1 = inline__P25962; - s.callLocIdx = 1218; s.pc = 1; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + s.tmp_0.arg0 = globals.animations___4778; + s.tmp_0.arg1 = inline__P27609; + s.callLocIdx = 1220; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25959.info = {"start":1618,"length":88,"line":59,"column":90,"endLine":61,"endColumn":17,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":[]} +inline__P27606.info = {"start":1618,"length":88,"line":59,"column":90,"endLine":61,"endColumn":17,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":[]} -function inline__P25959_mk(s) { +function inline__P27606_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25959, depth: s.depth + 1, + parent: s, fn: inline__P27606, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -41133,7 +45150,7 @@ function inline__P25959_mk(s) { -function inline__P25962(s) { +function inline__P27609(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41147,21 +45164,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = animation_Animation_update__P2108_mk(s); + s.tmp_0 = animation_Animation_update__P2920_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1217; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1219; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P25962.info = {"start":1665,"length":21,"line":60,"column":39,"endLine":60,"endColumn":60,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["anim"]} +inline__P27609.info = {"start":1665,"length":21,"line":60,"column":39,"endLine":60,"endColumn":60,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["anim"]} -function inline__P25962_mk(s) { +function inline__P27609_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P25962, depth: s.depth + 1, + parent: s, fn: inline__P27609, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -41171,7 +45188,7 @@ function inline__P25962_mk(s) { -function animation_Animation_update__P2108(s) { +function animation_Animation_update__P2920(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41181,23 +45198,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currentTime___25970 = undefined; - s.dt___25973 = undefined; + s.currentTime___27617 = undefined; + s.dt___27620 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Animation__C2106_VT)) failedCast(r0); + if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0); r0 = pxsim.control.millis(); - s.currentTime___25970 = (r0); + s.currentTime___27617 = (r0); r0 = s.arg0.fields["lastTime"]; s.tmp_0 = r0; - r0 = (s.currentTime___25970 - s.tmp_0); - s.dt___25973 = (r0); + r0 = (s.currentTime___27617 - s.tmp_0); + s.dt___27620 = (r0); r0 = s.arg0.fields["interval"]; s.tmp_1 = r0; - r0 = (s.dt___25973 >= s.tmp_1); + r0 = (s.dt___27620 >= s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } @@ -41224,39 +45241,39 @@ switch (step) { r0 = (s.tmp_6 % s.tmp_8); s.tmp_5 = r0; r0 = (s.tmp_4).fields["index"] = (s.tmp_5); - r0 = (s.arg0).fields["lastTime"] = (s.currentTime___25970); + r0 = (s.arg0).fields["lastTime"] = (s.currentTime___27617); case 3: case 4: s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P61_mk(s); + s.tmp_2 = helpers_arrayFilter__P105_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P26005; - s.callLocIdx = 1220; s.pc = 5; return s.tmp_2; + s.tmp_2.arg1 = inline__P27652; + s.callLocIdx = 1222; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkAction(1, inline__P26016); + r0 = pxsim_pxtcore_mkAction(1, inline__P27663); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1224; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1226; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -animation_Animation_update__P2108.info = {"start":1777,"length":790,"line":66,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"update","argumentNames":["this"]} +animation_Animation_update__P2920.info = {"start":1777,"length":790,"line":66,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"update","argumentNames":["this"]} -function animation_Animation_update__P2108_mk(s) { +function animation_Animation_update__P2920_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Animation_update__P2108, depth: s.depth + 1, + parent: s, fn: animation_Animation_update__P2920, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41268,8 +45285,8 @@ function animation_Animation_update__P2108_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - currentTime___25970: undefined, - dt___25973: undefined, + currentTime___27617: undefined, + dt___27620: undefined, arg0: undefined, } } @@ -41277,7 +45294,7 @@ function animation_Animation_update__P2108_mk(s) { -function inline__P26005(s) { +function inline__P27652(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41301,12 +45318,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26005.info = {"start":2134,"length":50,"line":74,"column":47,"endLine":74,"endColumn":97,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["sprite"]} +inline__P27652.info = {"start":2134,"length":50,"line":74,"column":47,"endLine":74,"endColumn":97,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["sprite"]} -function inline__P26005_mk(s) { +function inline__P27652_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26005, depth: s.depth + 1, + parent: s, fn: inline__P27652, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41318,7 +45335,7 @@ function inline__P26005_mk(s) { -function inline__P26016(s) { +function inline__P27663(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41328,7 +45345,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newImage___26023 = undefined; + s.newImage___27670 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -41346,17 +45363,17 @@ switch (step) { r0 = s.caps[0].fields["index"]; s.tmp_4 = r0; r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.newImage___26023 = (r0); + s.newImage___27670 = (r0); r0 = s.arg0.fields["_image"]; s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.newImage___26023); + r0 = (s.tmp_1 !== s.newImage___27670); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = Sprite_setImage__P790_mk(s); + s.tmp_2 = Sprite_setImage__P2053_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.newImage___26023; - s.callLocIdx = 1223; s.pc = 5; return s.tmp_2; + s.tmp_2.arg1 = s.newImage___27670; + s.callLocIdx = 1225; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 1: @@ -41367,19 +45384,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26016.info = {"start":2221,"length":334,"line":76,"column":33,"endLine":84,"endColumn":13,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["sprite"]} +inline__P27663.info = {"start":2221,"length":334,"line":76,"column":33,"endLine":84,"endColumn":13,"fileName":"pxt_modules/animation/legacy.ts","functionName":"inline","argumentNames":["sprite"]} -function inline__P26016_mk(s) { +function inline__P27663_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26016, depth: s.depth + 1, + parent: s, fn: inline__P27663, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - newImage___26023: undefined, + newImage___27670: undefined, arg0: undefined, } } @@ -41387,7 +45404,7 @@ function inline__P26016_mk(s) { -function animation_Animation_getImage__P2109(s) { +function animation_Animation_getImage__P2921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41402,7 +45419,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, animation_Animation__C2106_VT)) failedCast(r0); + if (!checkSubtype(r0, animation_Animation__C2911_VT)) failedCast(r0); r0 = s.arg0.fields["frames"]; s.tmp_0 = r0; r0 = s.arg0.fields["index"]; @@ -41411,12 +45428,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -animation_Animation_getImage__P2109.info = {"start":2577,"length":66,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"getImage","argumentNames":["this"]} +animation_Animation_getImage__P2921.info = {"start":2577,"length":66,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"pxt_modules/animation/legacy.ts","functionName":"getImage","argumentNames":["this"]} -function animation_Animation_getImage__P2109_mk(s) { +function animation_Animation_getImage__P2921_mk(s) { checkStack(s.depth); return { - parent: s, fn: animation_Animation_getImage__P2109, depth: s.depth + 1, + parent: s, fn: animation_Animation_getImage__P2921, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41427,7 +45444,7 @@ function animation_Animation_getImage__P2109_mk(s) { -function tileworld_BackgroundBase_constructor__P9502(s) { +function tileworld_BackgroundBase_constructor__P3783(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41442,11 +45459,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_BackgroundBase__C9493_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P10835); + if (!checkSubtype(r0, tileworld_BackgroundBase__C3782_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P12682); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onPaint__P1305_mk(s); + s.tmp_1 = game_onPaint__P2538_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 634; s.pc = 1; return s.tmp_1; case 1: @@ -41455,12 +45472,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_BackgroundBase_constructor__P9502.info = {"start":93,"length":110,"line":5,"column":8,"endLine":9,"endColumn":9,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["this"]} +tileworld_BackgroundBase_constructor__P3783.info = {"start":93,"length":110,"line":5,"column":8,"endLine":9,"endColumn":9,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["this"]} -function tileworld_BackgroundBase_constructor__P9502_mk(s) { +function tileworld_BackgroundBase_constructor__P3783_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_BackgroundBase_constructor__P9502, depth: s.depth + 1, + parent: s, fn: tileworld_BackgroundBase_constructor__P3783, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41471,7 +45488,7 @@ function tileworld_BackgroundBase_constructor__P9502_mk(s) { -function inline__P10835(s) { +function inline__P12682(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41498,12 +45515,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P10835.info = {"start":134,"length":58,"line":6,"column":25,"endLine":8,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} +inline__P12682.info = {"start":134,"length":58,"line":6,"column":25,"endLine":8,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} -function inline__P10835_mk(s) { +function inline__P12682_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10835, depth: s.depth + 1, + parent: s, fn: inline__P12682, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -41512,7 +45529,7 @@ function inline__P10835_mk(s) { -function game_onPaint__P1305(s) { +function game_onPaint__P2538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41526,9 +45543,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P1291_mk(s); + s.tmp_0 = game_init__P4282_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 894; s.pc = 4; return s.tmp_0; + s.callLocIdx = 896; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -41540,11 +45557,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P1147_mk(s); + s.tmp_2 = scene_createRenderable__P2375_mk(s); s.tmp_2.arg0 = -20; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; - s.callLocIdx = 895; s.pc = 5; return s.tmp_2; + s.callLocIdx = 897; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -41552,12 +45569,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onPaint__P1305.info = {"start":9621,"length":145,"line":308,"column":4,"endLine":312,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onPaint","argumentNames":["a"]} +game_onPaint__P2538.info = {"start":9621,"length":145,"line":308,"column":4,"endLine":312,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onPaint","argumentNames":["a"]} -function game_onPaint__P1305_mk(s) { +function game_onPaint__P2538_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onPaint__P1305, depth: s.depth + 1, + parent: s, fn: game_onPaint__P2538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41569,7 +45586,7 @@ function game_onPaint__P1305_mk(s) { -function scene_createRenderable__P1147(s) { +function scene_createRenderable__P2375(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41579,14 +45596,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___19478 = undefined; + s.renderable___21253 = 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__C1141_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C2370_VT); s.tmp_0 = r0; s.tmp_1 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_1); @@ -41594,11 +45611,11 @@ switch (step) { r0 = s.tmp_1; { step = 2; continue; } case 1: - r0 = inline__P19484; + r0 = inline__P21259; case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P1146_mk(s); + s.tmp_3 = scene_Renderable_constructor__P2371_mk(s); s.tmp_3.arg0 = s.tmp_0; s.tmp_3.arg1 = s.arg1; s.tmp_3.arg2 = s.tmp_2; @@ -41606,23 +45623,23 @@ switch (step) { s.callLocIdx = 813; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.renderable___19478 = (s.tmp_0); - r0 = s.renderable___19478; + s.renderable___21253 = (s.tmp_0); + r0 = s.renderable___21253; return leave(s, r0) default: oops() } } } -scene_createRenderable__P1147.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__P2375.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__P1147_mk(s) { +function scene_createRenderable__P2375_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P1147, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P2375, depth: s.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___19478: undefined, + renderable___21253: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41632,7 +45649,7 @@ function scene_createRenderable__P1147_mk(s) { -function inline__P19484(s) { +function inline__P21259(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41646,12 +45663,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P19484.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +inline__P21259.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function inline__P19484_mk(s) { +function inline__P21259_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19484, depth: s.depth + 1, + parent: s, fn: inline__P21259, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -41659,7 +45676,7 @@ function inline__P19484_mk(s) { -function scene_Renderable_constructor__P1146(s) { +function scene_Renderable_constructor__P2371(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41677,10 +45694,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C1141_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C2370_VT)) failedCast(r0); r0 = (s.arg0).fields["handler"] = (s.arg1); r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P647_mk(s); + s.tmp_0 = sprites_BaseSprite_constructor__P1857_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; s.callLocIdx = 810; s.pc = 1; return s.tmp_0; @@ -41690,12 +45707,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable_constructor__P1146.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__P2371.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__P1146_mk(s) { +function scene_Renderable_constructor__P2371_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P1146, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P2371, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -41708,7 +45725,7 @@ function scene_Renderable_constructor__P1146_mk(s) { -function tileworld_MapEditor_constructor__P13492(s) { +function tileworld_MapEditor_constructor__P3820(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41724,31 +45741,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); r0 = (s.arg0).fields["p"] = (s.arg1); - s.tmp_0 = tileworld_BackgroundBase_constructor__P9502_mk(s); + s.tmp_0 = tileworld_BackgroundBase_constructor__P3783_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1197; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = (s.arg0).fields["aDown"] = (false); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.cursorOut___7253; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.cursorOut___3724; s.tmp_2.arg1 = undefined; s.callLocIdx = 1198; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["selected"] = (s.tmp_1); - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["selected"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 24; s.callLocIdx = 1199; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["selected"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 12; @@ -41757,174 +45774,174 @@ switch (step) { r0 = s.retval; r0 = (s.arg0).fields["userSpriteIndex"] = (0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.cursorIn___7250; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.cursorIn___3723; s.tmp_2.arg1 = undefined; s.callLocIdx = 1201; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["cursor"] = (s.tmp_1); - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 8; s.callLocIdx = 1202; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 12; s.callLocIdx = 1203; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = tileworld_cursorAnimation__P3907_mk(s); + s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.cursorOut___7253; + s.tmp_0.arg1 = globals.cursorOut___3724; s.callLocIdx = 1204; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.paintOut___14745; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.paintOut___16557; s.tmp_2.arg1 = undefined; s.callLocIdx = 1205; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["paintCursor"] = (s.tmp_1); - s.tmp_0 = tileworld_cursorAnimation__P3907_mk(s); + s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.paintIn___14748; + s.tmp_0.arg1 = globals.paintIn___16560; s.callLocIdx = 1206; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.tmp_0 = tileworld_MapEditor_paintHome__P13480_mk(s); + s.tmp_0 = tileworld_MapEditor_paintHome__P15295_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1207; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = tileworld_MapEditor_setCursor__P13481_mk(s); + s.tmp_0 = tileworld_MapEditor_setCursor__P15296_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 1208; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = tileworld_MapEditor__C13477_v0_1_mk(s); + s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C13477_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14814); + r0 = pxsim_pxtcore_mkAction(1, inline__P16626); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1210; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14819); + r0 = pxsim_pxtcore_mkAction(1, inline__P16631); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1212; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14824); + r0 = pxsim_pxtcore_mkAction(1, inline__P16636); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1214; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14829); + r0 = pxsim_pxtcore_mkAction(1, inline__P16641); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1216; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14834); + r0 = pxsim_pxtcore_mkAction(1, inline__P16646); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1218; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14839); + r0 = pxsim_pxtcore_mkAction(1, inline__P16651); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1220; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14844); + r0 = pxsim_pxtcore_mkAction(1, inline__P16656); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1222; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14849); + r0 = pxsim_pxtcore_mkAction(1, inline__P16661); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1224; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14854); + r0 = pxsim_pxtcore_mkAction(1, inline__P16666); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1226; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14861); + r0 = pxsim_pxtcore_mkAction(1, inline__P16673); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2048; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1227; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P14867); + r0 = pxsim_pxtcore_mkAction(1, inline__P16679); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.B___667; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.B___1875; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1231; s.pc = 24; return s.tmp_1; @@ -41934,12 +45951,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_constructor__P13492.info = {"start":956,"length":1952,"line":37,"column":8,"endLine":76,"endColumn":9,"fileName":"editor.ts","functionName":"inline","argumentNames":["this","p"]} +tileworld_MapEditor_constructor__P3820.info = {"start":956,"length":1952,"line":37,"column":8,"endLine":76,"endColumn":9,"fileName":"editor.ts","functionName":"inline","argumentNames":["this","p"]} -function tileworld_MapEditor_constructor__P13492_mk(s) { +function tileworld_MapEditor_constructor__P3820_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_constructor__P13492, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_constructor__P3820, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41952,7 +45969,7 @@ function tileworld_MapEditor_constructor__P13492_mk(s) { -function inline__P14814(s) { +function inline__P16626(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41962,7 +45979,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_MapEditor_moveLeft__P13482_mk(s); + s.tmp_0 = tileworld_MapEditor_moveLeft__P15297_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1209; s.pc = 1; return s.tmp_0; case 1: @@ -41971,12 +45988,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14814.info = {"start":1706,"length":21,"line":58,"column":67,"endLine":58,"endColumn":88,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16626.info = {"start":1706,"length":21,"line":58,"column":67,"endLine":58,"endColumn":88,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14814_mk(s) { +function inline__P16626_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14814, depth: s.depth + 1, + parent: s, fn: inline__P16626, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -41985,7 +46002,7 @@ function inline__P14814_mk(s) { -function inline__P14819(s) { +function inline__P16631(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41995,7 +46012,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_MapEditor_moveLeft__P13482_mk(s); + s.tmp_0 = tileworld_MapEditor_moveLeft__P15297_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1211; s.pc = 1; return s.tmp_0; case 1: @@ -42004,12 +46021,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14819.info = {"start":1798,"length":21,"line":59,"column":68,"endLine":59,"endColumn":89,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16631.info = {"start":1798,"length":21,"line":59,"column":68,"endLine":59,"endColumn":89,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14819_mk(s) { +function inline__P16631_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14819, depth: s.depth + 1, + parent: s, fn: inline__P16631, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -42018,7 +46035,7 @@ function inline__P14819_mk(s) { -function inline__P14824(s) { +function inline__P16636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42028,7 +46045,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_MapEditor_moveRight__P13483_mk(s); + s.tmp_0 = tileworld_MapEditor_moveRight__P15298_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1213; s.pc = 1; return s.tmp_0; case 1: @@ -42037,12 +46054,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14824.info = {"start":1890,"length":22,"line":60,"column":68,"endLine":60,"endColumn":90,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16636.info = {"start":1890,"length":22,"line":60,"column":68,"endLine":60,"endColumn":90,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14824_mk(s) { +function inline__P16636_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14824, depth: s.depth + 1, + parent: s, fn: inline__P16636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -42051,7 +46068,7 @@ function inline__P14824_mk(s) { -function inline__P14829(s) { +function inline__P16641(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42061,7 +46078,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_MapEditor_moveRight__P13483_mk(s); + s.tmp_0 = tileworld_MapEditor_moveRight__P15298_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1215; s.pc = 1; return s.tmp_0; case 1: @@ -42070,12 +46087,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14829.info = {"start":1984,"length":22,"line":61,"column":69,"endLine":61,"endColumn":91,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16641.info = {"start":1984,"length":22,"line":61,"column":69,"endLine":61,"endColumn":91,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14829_mk(s) { +function inline__P16641_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14829, depth: s.depth + 1, + parent: s, fn: inline__P16641, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -42084,7 +46101,7 @@ function inline__P14829_mk(s) { -function inline__P14834(s) { +function inline__P16646(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42094,7 +46111,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_MapEditor_moveUp__P13484_mk(s); + s.tmp_0 = tileworld_MapEditor_moveUp__P15299_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1217; s.pc = 1; return s.tmp_0; case 1: @@ -42103,12 +46120,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14834.info = {"start":2074,"length":19,"line":62,"column":65,"endLine":62,"endColumn":84,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16646.info = {"start":2074,"length":19,"line":62,"column":65,"endLine":62,"endColumn":84,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14834_mk(s) { +function inline__P16646_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14834, depth: s.depth + 1, + parent: s, fn: inline__P16646, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -42117,7 +46134,7 @@ function inline__P14834_mk(s) { -function inline__P14839(s) { +function inline__P16651(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42127,7 +46144,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_MapEditor_moveUp__P13484_mk(s); + s.tmp_0 = tileworld_MapEditor_moveUp__P15299_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1219; s.pc = 1; return s.tmp_0; case 1: @@ -42136,12 +46153,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14839.info = {"start":2162,"length":19,"line":63,"column":66,"endLine":63,"endColumn":85,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16651.info = {"start":2162,"length":19,"line":63,"column":66,"endLine":63,"endColumn":85,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14839_mk(s) { +function inline__P16651_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14839, depth: s.depth + 1, + parent: s, fn: inline__P16651, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -42150,7 +46167,7 @@ function inline__P14839_mk(s) { -function inline__P14844(s) { +function inline__P16656(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42160,7 +46177,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_MapEditor_moveDown__P13485_mk(s); + s.tmp_0 = tileworld_MapEditor_moveDown__P15300_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1221; s.pc = 1; return s.tmp_0; case 1: @@ -42169,12 +46186,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14844.info = {"start":2251,"length":21,"line":64,"column":67,"endLine":64,"endColumn":88,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16656.info = {"start":2251,"length":21,"line":64,"column":67,"endLine":64,"endColumn":88,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14844_mk(s) { +function inline__P16656_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14844, depth: s.depth + 1, + parent: s, fn: inline__P16656, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -42183,7 +46200,7 @@ function inline__P14844_mk(s) { -function inline__P14849(s) { +function inline__P16661(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42193,7 +46210,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_MapEditor_moveDown__P13485_mk(s); + s.tmp_0 = tileworld_MapEditor_moveDown__P15300_mk(s); s.tmp_0.arg0 = s.caps[0]; s.callLocIdx = 1223; s.pc = 1; return s.tmp_0; case 1: @@ -42202,12 +46219,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14849.info = {"start":2343,"length":21,"line":65,"column":68,"endLine":65,"endColumn":89,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16661.info = {"start":2343,"length":21,"line":65,"column":68,"endLine":65,"endColumn":89,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14849_mk(s) { +function inline__P16661_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14849, depth: s.depth + 1, + parent: s, fn: inline__P16661, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -42216,7 +46233,7 @@ function inline__P14849_mk(s) { -function inline__P14854(s) { +function inline__P16666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42227,7 +46244,7 @@ switch (step) { case 0: r0 = (s.caps[0]).fields["aDown"] = (true); - s.tmp_0 = tileworld_MapEditor_cursorAction__P13487_mk(s); + s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; s.callLocIdx = 1225; s.pc = 1; return s.tmp_0; @@ -42237,12 +46254,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14854.info = {"start":2431,"length":49,"line":66,"column":64,"endLine":66,"endColumn":113,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16666.info = {"start":2431,"length":49,"line":66,"column":64,"endLine":66,"endColumn":113,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14854_mk(s) { +function inline__P16666_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14854, depth: s.depth + 1, + parent: s, fn: inline__P16666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -42251,7 +46268,7 @@ function inline__P14854_mk(s) { -function inline__P14861(s) { +function inline__P16673(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42266,12 +46283,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14861.info = {"start":2548,"length":29,"line":67,"column":65,"endLine":67,"endColumn":94,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16673.info = {"start":2548,"length":29,"line":67,"column":65,"endLine":67,"endColumn":94,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14861_mk(s) { +function inline__P16673_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14861, depth: s.depth + 1, + parent: s, fn: inline__P16673, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -42279,7 +46296,7 @@ function inline__P14861_mk(s) { -function inline__P14867(s) { +function inline__P16679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42295,19 +46312,19 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = tileworld_Project_saveWorld__P6123_mk(s); + s.tmp_2 = tileworld_Project_saveWorld__P3703_mk(s); r0 = s.caps[0].fields["p"]; s.tmp_2.arg0 = r0; s.callLocIdx = 1228; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); + s.tmp_0 = game_popScene__P2529_mk(s); s.callLocIdx = 1229; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = tileworld_MapEditor_setCursor__P13481_mk(s); + s.tmp_0 = tileworld_MapEditor_setCursor__P15296_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 0; s.callLocIdx = 1230; s.pc = 5; return s.tmp_0; @@ -42318,12 +46335,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P14867.info = {"start":2644,"length":252,"line":68,"column":64,"endLine":75,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} +inline__P16679.info = {"start":2644,"length":252,"line":68,"column":64,"endLine":75,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":[]} -function inline__P14867_mk(s) { +function inline__P16679_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P14867, depth: s.depth + 1, + parent: s, fn: inline__P16679, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42334,7 +46351,7 @@ function inline__P14867_mk(s) { -function tileworld_Project_saveWorld__P6123(s) { +function tileworld_Project_saveWorld__P3703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42344,22 +46361,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worldBuf___6331 = undefined; - s.spritesBuf___6345 = undefined; + s.worldBuf___8307 = undefined; + s.spritesBuf___8321 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); - s.tmp_0 = tileworld_imageToBuffer__P4091_mk(s); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s); r0 = s.arg0.fields["_backgrounds"]; s.tmp_0.arg0 = r0; s.callLocIdx = 187; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.worldBuf___6331 = (r0); - s.tmp_0 = settings_writeBuffer__P611_mk(s); + s.worldBuf___8307 = (r0); + s.tmp_0 = settings_writeBuffer__P1824_mk(s); r0 = s.arg0.fields["prefix"]; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { @@ -42371,29 +46388,29 @@ switch (step) { case 3: r0 = s.retval; s.tmp_1 = r0; - if ((globals.WorldBackgroundsKey___6341) && (globals.WorldBackgroundsKey___6341).vtable) { + if ((globals.WorldBackgroundsKey___8317) && (globals.WorldBackgroundsKey___8317).vtable) { setupResume(s, 4); - pxsim_String__stringConv(globals.WorldBackgroundsKey___6341); + pxsim_String__stringConv(globals.WorldBackgroundsKey___8317); checkResumeConsumed(); return; - } else { s.retval = (globals.WorldBackgroundsKey___6341) + ""; } + } else { s.retval = (globals.WorldBackgroundsKey___8317) + ""; } case 4: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_3); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.worldBuf___6331; + s.tmp_0.arg1 = s.worldBuf___8307; s.callLocIdx = 188; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = tileworld_imageToBuffer__P4091_mk(s); + s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_0.arg0 = r0; s.callLocIdx = 189; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.spritesBuf___6345 = (r0); - s.tmp_0 = settings_writeBuffer__P611_mk(s); + s.spritesBuf___8321 = (r0); + s.tmp_0 = settings_writeBuffer__P1824_mk(s); r0 = s.arg0.fields["prefix"]; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { @@ -42405,18 +46422,18 @@ switch (step) { case 7: r0 = s.retval; s.tmp_1 = r0; - if ((globals.WorldSpritesKey___6355) && (globals.WorldSpritesKey___6355).vtable) { + if ((globals.WorldSpritesKey___8331) && (globals.WorldSpritesKey___8331).vtable) { setupResume(s, 8); - pxsim_String__stringConv(globals.WorldSpritesKey___6355); + pxsim_String__stringConv(globals.WorldSpritesKey___8331); checkResumeConsumed(); return; - } else { s.retval = (globals.WorldSpritesKey___6355) + ""; } + } else { s.retval = (globals.WorldSpritesKey___8331) + ""; } case 8: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_3); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.spritesBuf___6345; + s.tmp_0.arg1 = s.spritesBuf___8321; s.callLocIdx = 190; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; @@ -42424,19 +46441,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_saveWorld__P6123.info = {"start":5080,"length":306,"line":146,"column":8,"endLine":151,"endColumn":9,"fileName":"project.ts","functionName":"saveWorld","argumentNames":["this"]} +tileworld_Project_saveWorld__P3703.info = {"start":5080,"length":306,"line":146,"column":8,"endLine":151,"endColumn":9,"fileName":"project.ts","functionName":"saveWorld","argumentNames":["this"]} -function tileworld_Project_saveWorld__P6123_mk(s) { +function tileworld_Project_saveWorld__P3703_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_saveWorld__P6123, depth: s.depth + 1, + parent: s, fn: tileworld_Project_saveWorld__P3703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - worldBuf___6331: undefined, - spritesBuf___6345: undefined, + worldBuf___8307: undefined, + spritesBuf___8321: undefined, arg0: undefined, } } @@ -42444,7 +46461,7 @@ function tileworld_Project_saveWorld__P6123_mk(s) { -function tileworld_MapEditor_cursorAction__P13487(s) { +function tileworld_MapEditor_cursorAction__P15302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42454,18 +46471,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___15060 = undefined; - s.row___15069 = undefined; - s.backs___15083 = undefined; - s.sprs___15108 = undefined; - s.spriteIndex___15112 = undefined; + s.col___16872 = undefined; + s.row___16881 = undefined; + s.backs___16895 = undefined; + s.sprs___16920 = undefined; + s.spriteIndex___16924 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); r0 = s.arg0.fields["aDown"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -42483,7 +46500,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 9; continue; } - s.tmp_7 = Sprite_x__P770_mk(s); + s.tmp_7 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_7.arg0 = r0; s.callLocIdx = 1263; s.pc = 20; return s.tmp_7; @@ -42495,8 +46512,8 @@ switch (step) { r0 = s.arg0.fields["offsetX"]; s.tmp_8 = r0; r0 = (s.tmp_5 + s.tmp_8); - s.col___15060 = (r0); - s.tmp_3 = Sprite_y__P772_mk(s); + s.col___16872 = (r0); + s.tmp_3 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_3.arg0 = r0; s.callLocIdx = 1264; s.pc = 21; return s.tmp_3; @@ -42510,18 +46527,18 @@ switch (step) { r0 = s.arg0.fields["offsetY"]; s.tmp_4 = r0; r0 = (s.tmp_0 + s.tmp_4); - s.row___15069 = (r0); + s.row___16881 = (r0); r0 = s.arg0.fields["p"]; s.tmp_0 = r0; r0 = s.tmp_0.fields["_backgrounds"]; - s.backs___15083 = (r0); + s.backs___16895 = (r0); r0 = s.arg0.fields["userSpriteIndex"]; s.tmp_1 = r0; r0 = (s.tmp_1 == 15); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_ImageMethods.setPixel(s.backs___15083, s.col___15060, s.row___15069, 15); + r0 = pxsim_ImageMethods.setPixel(s.backs___16895, s.col___16872, s.row___16881, 15); { step = 8; continue; } case 3: r0 = s.arg0.fields["userSpriteIndex"]; @@ -42538,13 +46555,13 @@ switch (step) { if (!r0) { step = 4; continue; } r0 = s.arg0.fields["userSpriteIndex"]; s.tmp_5 = r0; - r0 = pxsim_ImageMethods.setPixel(s.backs___15083, s.col___15060, s.row___15069, s.tmp_5); + r0 = pxsim_ImageMethods.setPixel(s.backs___16895, s.col___16872, s.row___16881, s.tmp_5); { step = 7; continue; } case 4: r0 = s.arg0.fields["p"]; s.tmp_0 = r0; r0 = s.tmp_0.fields["_sprites"]; - s.sprs___15108 = (r0); + s.sprs___16920 = (r0); r0 = s.arg0.fields["userSpriteIndex"]; s.tmp_0 = r0; r0 = s.arg0.fields["p"]; @@ -42554,23 +46571,23 @@ switch (step) { r0 = pxsim_Array__length(s.tmp_3); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.spriteIndex___15112 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.sprs___15108, s.col___15060, s.row___15069); + s.spriteIndex___16924 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.sprs___16920, s.col___16872, s.row___16881); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.spriteIndex___15112); + r0 = (s.tmp_1 == s.spriteIndex___16924); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.setPixel(s.sprs___15108, s.col___15060, s.row___15069, 15); + r0 = pxsim_ImageMethods.setPixel(s.sprs___16920, s.col___16872, s.row___16881, 15); { step = 6; continue; } case 5: - r0 = pxsim_ImageMethods.setPixel(s.sprs___15108, s.col___15060, s.row___15069, s.spriteIndex___15112); + r0 = pxsim_ImageMethods.setPixel(s.sprs___16920, s.col___16872, s.row___16881, s.spriteIndex___16924); case 6: case 7: case 8: - s.tmp_0 = tileworld_MapEditor__C13477_v0_1_mk(s); + s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C13477_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 22; return s.tmp_0; case 22: @@ -42583,7 +46600,7 @@ switch (step) { { step = 19; continue; } case 11: case 12: - s.tmp_2 = tileworld_MapEditor_row__P13489_mk(s); + s.tmp_2 = tileworld_MapEditor_row__P15304_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1269; s.pc = 23; return s.tmp_2; @@ -42594,7 +46611,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 17; continue; } - s.tmp_5 = tileworld_MapEditor_col__P13488_mk(s); + s.tmp_5 = tileworld_MapEditor_col__P15303_mk(s); s.tmp_5.arg0 = s.arg0; s.tmp_5.arg1 = true; s.callLocIdx = 1270; s.pc = 24; return s.tmp_5; @@ -42608,14 +46625,14 @@ switch (step) { r0 = s.tmp_3; { step = 14; continue; } case 13: - s.tmp_7 = tileworld_MapEditor_col__P13488_mk(s); + s.tmp_7 = tileworld_MapEditor_col__P15303_mk(s); s.tmp_7.arg0 = s.arg0; s.tmp_7.arg1 = true; s.callLocIdx = 1271; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_6 = r0; - s.tmp_10 = tileworld_Project_allCnt__P6119_mk(s); + s.tmp_10 = tileworld_Project_allCnt__P3693_mk(s); r0 = s.arg0.fields["p"]; s.tmp_10.arg0 = r0; s.callLocIdx = 1272; s.pc = 26; return s.tmp_10; @@ -42631,7 +46648,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_11); if (!r0) { step = 15; continue; } s.tmp_12 = r0 = s.arg0; - s.tmp_15 = tileworld_MapEditor_col__P13488_mk(s); + s.tmp_15 = tileworld_MapEditor_col__P15303_mk(s); s.tmp_15.arg0 = s.arg0; s.tmp_15.arg1 = true; s.callLocIdx = 1273; s.pc = 27; return s.tmp_15; @@ -42641,7 +46658,7 @@ switch (step) { r0 = (s.tmp_14 - 1); s.tmp_13 = r0; r0 = (s.tmp_12).fields["userSpriteIndex"] = (s.tmp_13); - s.tmp_0 = tileworld_MapEditor_updateSelection__P13486_mk(s); + s.tmp_0 = tileworld_MapEditor_updateSelection__P15301_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1274; s.pc = 28; return s.tmp_0; case 28: @@ -42650,9 +46667,9 @@ switch (step) { case 16: case 17: case 18: - s.tmp_0 = tileworld_MapEditor__C13477_v0_1_mk(s); + s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C13477_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 29; return s.tmp_0; case 29: @@ -42662,12 +46679,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_cursorAction__P13487.info = {"start":5134,"length":1427,"line":147,"column":8,"endLine":179,"endColumn":9,"fileName":"editor.ts","functionName":"cursorAction","argumentNames":["this","repeated"]} +tileworld_MapEditor_cursorAction__P15302.info = {"start":5134,"length":1427,"line":147,"column":8,"endLine":179,"endColumn":9,"fileName":"editor.ts","functionName":"cursorAction","argumentNames":["this","repeated"]} -function tileworld_MapEditor_cursorAction__P13487_mk(s) { +function tileworld_MapEditor_cursorAction__P15302_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_cursorAction__P13487, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_cursorAction__P15302, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42685,11 +46702,11 @@ function tileworld_MapEditor_cursorAction__P13487_mk(s) { tmp_13: undefined, tmp_14: undefined, tmp_15: undefined, - col___15060: undefined, - row___15069: undefined, - backs___15083: undefined, - sprs___15108: undefined, - spriteIndex___15112: undefined, + col___16872: undefined, + row___16881: undefined, + backs___16895: undefined, + sprs___16920: undefined, + spriteIndex___16924: undefined, arg0: undefined, arg1: undefined, } } @@ -42698,7 +46715,7 @@ function tileworld_MapEditor_cursorAction__P13487_mk(s) { -function tileworld_MapEditor_updateSelection__P13486(s) { +function tileworld_MapEditor_updateSelection__P15301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42713,11 +46730,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); - s.tmp_0 = Sprite_x__P771_mk(s); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["selected"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P770_mk(s); + s.tmp_1 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1259; s.pc = 2; return s.tmp_1; @@ -42727,10 +46744,10 @@ switch (step) { s.callLocIdx = 1260; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["selected"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P772_mk(s); + s.tmp_1 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1261; s.pc = 4; return s.tmp_1; @@ -42744,12 +46761,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_updateSelection__P13486.info = {"start":4997,"length":127,"line":142,"column":8,"endLine":145,"endColumn":9,"fileName":"editor.ts","functionName":"updateSelection","argumentNames":["this"]} +tileworld_MapEditor_updateSelection__P15301.info = {"start":4997,"length":127,"line":142,"column":8,"endLine":145,"endColumn":9,"fileName":"editor.ts","functionName":"updateSelection","argumentNames":["this"]} -function tileworld_MapEditor_updateSelection__P13486_mk(s) { +function tileworld_MapEditor_updateSelection__P15301_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_updateSelection__P13486, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_updateSelection__P15301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42760,7 +46777,7 @@ function tileworld_MapEditor_updateSelection__P13486_mk(s) { -function tileworld_MapEditor_col__P13488(s) { +function tileworld_MapEditor_col__P15303(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42776,8 +46793,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); - s.tmp_1 = Sprite_x__P770_mk(s); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); + s.tmp_1 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_1.arg0 = r0; s.callLocIdx = 1275; s.pc = 1; return s.tmp_1; @@ -42788,12 +46805,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_col__P13488.info = {"start":6571,"length":87,"line":181,"column":8,"endLine":183,"endColumn":9,"fileName":"editor.ts","functionName":"col","argumentNames":["this","current"]} +tileworld_MapEditor_col__P15303.info = {"start":6571,"length":87,"line":181,"column":8,"endLine":183,"endColumn":9,"fileName":"editor.ts","functionName":"col","argumentNames":["this","current"]} -function tileworld_MapEditor_col__P13488_mk(s) { +function tileworld_MapEditor_col__P15303_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_col__P13488, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_col__P15303, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42805,7 +46822,7 @@ function tileworld_MapEditor_col__P13488_mk(s) { -function tileworld_MapEditor_row__P13489(s) { +function tileworld_MapEditor_row__P15304(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42821,8 +46838,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); - s.tmp_2 = Sprite_y__P772_mk(s); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); + s.tmp_2 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_2.arg0 = r0; s.callLocIdx = 1276; s.pc = 1; return s.tmp_2; @@ -42835,12 +46852,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_row__P13489.info = {"start":6676,"length":96,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"editor.ts","functionName":"row","argumentNames":["this","current"]} +tileworld_MapEditor_row__P15304.info = {"start":6676,"length":96,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"editor.ts","functionName":"row","argumentNames":["this","current"]} -function tileworld_MapEditor_row__P13489_mk(s) { +function tileworld_MapEditor_row__P15304_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_row__P13489, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_row__P15304, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42853,7 +46870,7 @@ function tileworld_MapEditor_row__P13489_mk(s) { -function tileworld_MapEditor_moveDown__P13485(s) { +function tileworld_MapEditor_moveDown__P15300(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42868,14 +46885,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); r0 = s.arg0.fields["cursorType"]; 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; } - s.tmp_2 = tileworld_MapEditor_setCursor__P13481_mk(s); + s.tmp_2 = tileworld_MapEditor_setCursor__P15296_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = 1; s.callLocIdx = 1254; s.pc = 5; return s.tmp_2; @@ -42883,7 +46900,7 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 1: - s.tmp_2 = Sprite_y__P772_mk(s); + s.tmp_2 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_2.arg0 = r0; s.callLocIdx = 1255; s.pc = 6; return s.tmp_2; @@ -42894,11 +46911,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_3 = Sprite_y__P773_mk(s); + s.tmp_3 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_4 = r0; s.tmp_3.arg0 = r0; - s.tmp_6 = Sprite_y__P772_mk(s); + s.tmp_6 = Sprite_y__P2024_mk(s); s.tmp_6.arg0 = s.tmp_4; s.callLocIdx = 1256; s.pc = 8; return s.tmp_6; case 8: @@ -42918,15 +46935,15 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["offsetY"] = (s.tmp_1); case 3: - s.tmp_0 = tileworld_MapEditor__C13477_v0_1_mk(s); + s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C13477_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; case 4: - s.tmp_0 = tileworld_MapEditor_cursorAction__P13487_mk(s); + s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; s.callLocIdx = 1258; s.pc = 10; return s.tmp_0; @@ -42936,12 +46953,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_moveDown__P13485.info = {"start":4569,"length":418,"line":129,"column":8,"endLine":140,"endColumn":9,"fileName":"editor.ts","functionName":"moveDown","argumentNames":["this"]} +tileworld_MapEditor_moveDown__P15300.info = {"start":4569,"length":418,"line":129,"column":8,"endLine":140,"endColumn":9,"fileName":"editor.ts","functionName":"moveDown","argumentNames":["this"]} -function tileworld_MapEditor_moveDown__P13485_mk(s) { +function tileworld_MapEditor_moveDown__P15300_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_moveDown__P13485, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_moveDown__P15300, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42957,7 +46974,7 @@ function tileworld_MapEditor_moveDown__P13485_mk(s) { -function tileworld_MapEditor_moveUp__P13484(s) { +function tileworld_MapEditor_moveUp__P15299(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42972,14 +46989,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); r0 = s.arg0.fields["cursorType"]; s.tmp_1 = r0; r0 = (s.tmp_1 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_y__P772_mk(s); + s.tmp_4 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_4.arg0 = r0; s.callLocIdx = 1250; s.pc = 5; return s.tmp_4; @@ -42990,11 +47007,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_5 = Sprite_y__P773_mk(s); + s.tmp_5 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_6 = r0; s.tmp_5.arg0 = r0; - s.tmp_8 = Sprite_y__P772_mk(s); + s.tmp_8 = Sprite_y__P2024_mk(s); s.tmp_8.arg0 = s.tmp_6; s.callLocIdx = 1251; s.pc = 7; return s.tmp_8; case 7: @@ -43014,16 +47031,16 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["offsetY"] = (s.tmp_1); case 2: - s.tmp_0 = tileworld_MapEditor__C13477_v0_1_mk(s); + s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C13477_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; case 3: case 4: - s.tmp_0 = tileworld_MapEditor_cursorAction__P13487_mk(s); + s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; s.callLocIdx = 1253; s.pc = 9; return s.tmp_0; @@ -43033,12 +47050,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_moveUp__P13484.info = {"start":4216,"length":343,"line":118,"column":8,"endLine":127,"endColumn":9,"fileName":"editor.ts","functionName":"moveUp","argumentNames":["this"]} +tileworld_MapEditor_moveUp__P15299.info = {"start":4216,"length":343,"line":118,"column":8,"endLine":127,"endColumn":9,"fileName":"editor.ts","functionName":"moveUp","argumentNames":["this"]} -function tileworld_MapEditor_moveUp__P13484_mk(s) { +function tileworld_MapEditor_moveUp__P15299_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_moveUp__P13484, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_moveUp__P15299, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43056,7 +47073,7 @@ function tileworld_MapEditor_moveUp__P13484_mk(s) { -function tileworld_MapEditor_moveRight__P13483(s) { +function tileworld_MapEditor_moveRight__P15298(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43071,14 +47088,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); r0 = s.arg0.fields["cursorType"]; 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; } - s.tmp_4 = tileworld_MapEditor_col__P13488_mk(s); + s.tmp_4 = tileworld_MapEditor_col__P15303_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1243; s.pc = 7; return s.tmp_4; @@ -43089,11 +47106,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_5 = Sprite_x__P771_mk(s); + s.tmp_5 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_6 = r0; s.tmp_5.arg0 = r0; - s.tmp_8 = Sprite_x__P770_mk(s); + s.tmp_8 = Sprite_x__P2022_mk(s); s.tmp_8.arg0 = s.tmp_6; s.callLocIdx = 1244; s.pc = 9; return s.tmp_8; case 9: @@ -43108,7 +47125,7 @@ switch (step) { case 2: { step = 6; continue; } case 3: - s.tmp_2 = Sprite_x__P770_mk(s); + s.tmp_2 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_2.arg0 = r0; s.callLocIdx = 1246; s.pc = 10; return s.tmp_2; @@ -43119,11 +47136,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_3 = Sprite_x__P771_mk(s); + s.tmp_3 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_4 = r0; s.tmp_3.arg0 = r0; - s.tmp_6 = Sprite_x__P770_mk(s); + s.tmp_6 = Sprite_x__P2022_mk(s); s.tmp_6.arg0 = s.tmp_4; s.callLocIdx = 1247; s.pc = 12; return s.tmp_6; case 12: @@ -43143,15 +47160,15 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["offsetX"] = (s.tmp_1); case 5: - s.tmp_0 = tileworld_MapEditor__C13477_v0_1_mk(s); + s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C13477_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 6: - s.tmp_0 = tileworld_MapEditor_cursorAction__P13487_mk(s); + s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; s.callLocIdx = 1249; s.pc = 14; return s.tmp_0; @@ -43161,12 +47178,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_moveRight__P13483.info = {"start":3773,"length":433,"line":104,"column":8,"endLine":116,"endColumn":9,"fileName":"editor.ts","functionName":"moveRight","argumentNames":["this"]} +tileworld_MapEditor_moveRight__P15298.info = {"start":3773,"length":433,"line":104,"column":8,"endLine":116,"endColumn":9,"fileName":"editor.ts","functionName":"moveRight","argumentNames":["this"]} -function tileworld_MapEditor_moveRight__P13483_mk(s) { +function tileworld_MapEditor_moveRight__P15298_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_moveRight__P13483, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_moveRight__P15298, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43184,7 +47201,7 @@ function tileworld_MapEditor_moveRight__P13483_mk(s) { -function tileworld_MapEditor_moveLeft__P13482(s) { +function tileworld_MapEditor_moveLeft__P15297(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43199,14 +47216,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); r0 = s.arg0.fields["cursorType"]; 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; } - s.tmp_4 = tileworld_MapEditor_col__P13488_mk(s); + s.tmp_4 = tileworld_MapEditor_col__P15303_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1236; s.pc = 7; return s.tmp_4; @@ -43217,11 +47234,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_5 = Sprite_x__P771_mk(s); + s.tmp_5 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_6 = r0; s.tmp_5.arg0 = r0; - s.tmp_8 = Sprite_x__P770_mk(s); + s.tmp_8 = Sprite_x__P2022_mk(s); s.tmp_8.arg0 = s.tmp_6; s.callLocIdx = 1237; s.pc = 9; return s.tmp_8; case 9: @@ -43236,7 +47253,7 @@ switch (step) { case 2: { step = 6; continue; } case 3: - s.tmp_2 = Sprite_x__P770_mk(s); + s.tmp_2 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_2.arg0 = r0; s.callLocIdx = 1239; s.pc = 10; return s.tmp_2; @@ -43247,11 +47264,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_3 = Sprite_x__P771_mk(s); + s.tmp_3 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_4 = r0; s.tmp_3.arg0 = r0; - s.tmp_6 = Sprite_x__P770_mk(s); + s.tmp_6 = Sprite_x__P2022_mk(s); s.tmp_6.arg0 = s.tmp_4; s.callLocIdx = 1240; s.pc = 12; return s.tmp_6; case 12: @@ -43271,15 +47288,15 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["offsetX"] = (s.tmp_1); case 5: - s.tmp_0 = tileworld_MapEditor__C13477_v0_1_mk(s); + s.tmp_0 = tileworld_MapEditor__C3819_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C13477_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tileworld_MapEditor__C3819_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 6: - s.tmp_0 = tileworld_MapEditor_cursorAction__P13487_mk(s); + s.tmp_0 = tileworld_MapEditor_cursorAction__P15302_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; s.callLocIdx = 1242; s.pc = 14; return s.tmp_0; @@ -43289,12 +47306,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_moveLeft__P13482.info = {"start":3335,"length":428,"line":90,"column":8,"endLine":102,"endColumn":9,"fileName":"editor.ts","functionName":"moveLeft","argumentNames":["this"]} +tileworld_MapEditor_moveLeft__P15297.info = {"start":3335,"length":428,"line":90,"column":8,"endLine":102,"endColumn":9,"fileName":"editor.ts","functionName":"moveLeft","argumentNames":["this"]} -function tileworld_MapEditor_moveLeft__P13482_mk(s) { +function tileworld_MapEditor_moveLeft__P15297_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_moveLeft__P13482, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_moveLeft__P15297, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43312,7 +47329,7 @@ function tileworld_MapEditor_moveLeft__P13482_mk(s) { -function tileworld_MapEditor_update__P13491(s) { +function tileworld_MapEditor_update__P3821(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43322,27 +47339,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___15202 = undefined; - s.backs___15225 = undefined; - s.x___15229 = undefined; - s.y___15239 = undefined; - s.inRange___15249 = undefined; - s.col___15267 = undefined; - s.row___15272 = undefined; - s.nx___15277 = undefined; - s.ny___15281 = undefined; - s.index___15287 = undefined; - s.img___15296 = undefined; - s.index___15314 = undefined; + s.index___17014 = undefined; + s.backs___17037 = undefined; + s.x___17041 = undefined; + s.y___17051 = undefined; + s.inRange___17061 = undefined; + s.col___17079 = undefined; + s.row___17084 = undefined; + s.nx___17089 = undefined; + s.ny___17093 = undefined; + s.index___17099 = undefined; + s.img___17108 = undefined; + s.index___17126 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.fill(globals.screen___578, 0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 4; s.tmp_0.arg3 = 16; @@ -43351,22 +47368,22 @@ switch (step) { s.callLocIdx = 1277; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.tmp_0 = tileworld_MapEditor_drawImage__P13490_mk(s); + s.tmp_0 = tileworld_MapEditor_drawImage__P15305_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.map___7217; + s.tmp_0.arg1 = globals.map___3712; s.tmp_0.arg2 = 0; s.tmp_0.arg3 = 0; s.callLocIdx = 1278; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; r0 = pxsim_pxtrt.mklocRef(); - s.index___15202 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.index___15202, 1); - r0 = pxsim_pxtcore_mkAction(2, inline__P15207); + s.index___17014 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.index___17014, 1); + r0 = pxsim_pxtcore_mkAction(2, inline__P17019); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.index___15202); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.index___17014); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["_backgroundsI"]; @@ -43375,11 +47392,11 @@ switch (step) { s.callLocIdx = 1281; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(2, inline__P15218); + r0 = pxsim_pxtcore_mkAction(2, inline__P17030); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.index___15202); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.index___17014); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["_spritesI"]; @@ -43391,11 +47408,11 @@ switch (step) { r0 = s.arg0.fields["p"]; s.tmp_0 = r0; r0 = s.tmp_0.fields["_backgrounds"]; - s.backs___15225 = (r0); + s.backs___17037 = (r0); r0 = s.arg0.fields["offsetX"]; - s.x___15229 = (r0); + s.x___17041 = (r0); case 1: - s.tmp_1 = r0 = s.x___15229; + s.tmp_1 = r0 = s.x___17041; r0 = s.arg0.fields["offsetX"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 20); @@ -43405,9 +47422,9 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } r0 = s.arg0.fields["offsetY"]; - s.y___15239 = (r0); + s.y___17051 = (r0); case 2: - s.tmp_1 = r0 = s.y___15239; + s.tmp_1 = r0 = s.y___17051; r0 = s.arg0.fields["offsetY"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 15); @@ -43416,15 +47433,15 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - r0 = (0 <= s.x___15229); + r0 = (0 <= s.x___17041); s.tmp_4 = r0; r0 = pxsim_numops_toBool(s.tmp_4); if (r0) { step = 3; continue; } r0 = s.tmp_4; { step = 4; continue; } case 3: - s.tmp_5 = r0 = s.x___15229; - r0 = pxsim_ImageMethods.width(s.backs___15225); + s.tmp_5 = r0 = s.x___17041; + r0 = pxsim_ImageMethods.width(s.backs___17037); s.tmp_6 = r0; r0 = (s.tmp_5 < s.tmp_6); case 4: @@ -43435,7 +47452,7 @@ switch (step) { r0 = s.tmp_7; { step = 6; continue; } case 5: - r0 = (0 <= s.y___15239); + r0 = (0 <= s.y___17051); case 6: // jmp value (already in r0) s.tmp_8 = r0; @@ -43444,56 +47461,56 @@ switch (step) { r0 = s.tmp_8; { step = 8; continue; } case 7: - s.tmp_9 = r0 = s.y___15239; - r0 = pxsim_ImageMethods.height(s.backs___15225); + s.tmp_9 = r0 = s.y___17051; + r0 = pxsim_ImageMethods.height(s.backs___17037); s.tmp_10 = r0; r0 = (s.tmp_9 < s.tmp_10); case 8: // jmp value (already in r0) s.tmp_11 = r0; - s.inRange___15249 = (s.tmp_11); + s.inRange___17061 = (s.tmp_11); r0 = s.arg0.fields["offsetX"]; s.tmp_0 = r0; - r0 = (s.x___15229 - s.tmp_0); - s.col___15267 = (r0); + r0 = (s.x___17041 - s.tmp_0); + s.col___17079 = (r0); r0 = s.arg0.fields["offsetY"]; s.tmp_0 = r0; - r0 = (s.y___15239 - s.tmp_0); - s.row___15272 = (r0); - r0 = (s.col___15267 * 8); - s.nx___15277 = (r0); - r0 = (s.row___15272 * 8); + r0 = (s.y___17051 - s.tmp_0); + s.row___17084 = (r0); + r0 = (s.col___17079 * 8); + s.nx___17089 = (r0); + r0 = (s.row___17084 * 8); s.tmp_0 = r0; r0 = (20 + s.tmp_0); - s.ny___15281 = (r0); - r0 = pxsim_numops_toBoolDecr(s.inRange___15249); + s.ny___17093 = (r0); + r0 = pxsim_numops_toBoolDecr(s.inRange___17061); if (!r0) { step = 9; continue; } - r0 = pxsim_ImageMethods.getPixel(s.backs___15225, s.x___15229, s.y___15239); + r0 = pxsim_ImageMethods.getPixel(s.backs___17037, s.x___17041, s.y___17051); { step = 10; continue; } case 9: r0 = -1; case 10: // jmp value (already in r0) s.tmp_0 = r0; - s.index___15287 = (s.tmp_0); - r0 = (s.index___15287 == -1); + s.index___17099 = (s.tmp_0); + r0 = (s.index___17099 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = globals.emptyTile___7244; + r0 = globals.emptyTile___3721; { step = 14; continue; } case 11: - r0 = (s.index___15287 == 15); + r0 = (s.index___17099 == 15); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 12; continue; } - r0 = globals.emptyDiagTile___7247; + r0 = globals.emptyDiagTile___3722; { step = 13; continue; } case 12: - s.tmp_2 = tileworld_Project_getBackgroundImage__P6002_mk(s); + s.tmp_2 = tileworld_Project_getBackgroundImage__P3696_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.index___15287; + s.tmp_2.arg1 = s.index___17099; s.callLocIdx = 1286; s.pc = 25; return s.tmp_2; case 25: r0 = s.retval; @@ -43504,38 +47521,38 @@ switch (step) { case 14: // jmp value (already in r0) s.tmp_4 = r0; - s.img___15296 = (s.tmp_4); - s.tmp_0 = tileworld_drawHalfSize__P4005_mk(s); - s.tmp_0.arg0 = s.img___15296; - s.tmp_0.arg1 = s.nx___15277; - s.tmp_0.arg2 = s.ny___15281; + s.img___17108 = (s.tmp_4); + s.tmp_0 = tileworld_drawHalfSize__P3541_mk(s); + s.tmp_0.arg0 = s.img___17108; + s.tmp_0.arg1 = s.nx___17089; + s.tmp_0.arg2 = s.ny___17093; s.tmp_0.arg3 = false; s.callLocIdx = 1287; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.inRange___15249); + r0 = pxsim_numops_toBoolDecr(s.inRange___17061); if (!r0) { step = 17; continue; } r0 = s.arg0.fields["p"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_sprites"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.x___15229, s.y___15239); - s.index___15314 = (r0); - r0 = (s.index___15314 != 15); + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.x___17041, s.y___17051); + s.index___17126 = (r0); + r0 = (s.index___17126 != 15); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - s.tmp_1 = tileworld_drawHalfSize__P4005_mk(s); - s.tmp_2 = tileworld_Project_getSpriteImage__P6007_mk(s); + s.tmp_1 = tileworld_drawHalfSize__P3541_mk(s); + s.tmp_2 = tileworld_Project_getSpriteImage__P3697_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.index___15314; + s.tmp_2.arg1 = s.index___17126; s.callLocIdx = 1289; s.pc = 28; return s.tmp_2; case 28: r0 = s.retval; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.nx___15277; - s.tmp_1.arg2 = s.ny___15281; + s.tmp_1.arg1 = s.nx___17089; + s.tmp_1.arg2 = s.ny___17093; s.tmp_1.arg3 = true; s.callLocIdx = 1290; s.pc = 27; return s.tmp_1; case 27: @@ -43544,16 +47561,16 @@ switch (step) { case 16: case 17: case 18: - r0 = (s.y___15239 + 1); - s.y___15239 = (r0); + r0 = (s.y___17051 + 1); + s.y___17051 = (r0); { step = 2; continue; } case 19: - r0 = (s.x___15229 + 1); - s.x___15229 = (r0); + r0 = (s.x___17041 + 1); + s.x___17041 = (r0); { step = 1; continue; } case 20: - s.tmp_0 = helpers_imageDrawLine__P519_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 20; s.tmp_0.arg3 = 159; @@ -43566,12 +47583,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_update__P13491.info = {"start":6932,"length":1668,"line":193,"column":8,"endLine":229,"endColumn":9,"fileName":"editor.ts","functionName":"update","argumentNames":["this"]} +tileworld_MapEditor_update__P3821.info = {"start":6932,"length":1668,"line":193,"column":8,"endLine":229,"endColumn":9,"fileName":"editor.ts","functionName":"update","argumentNames":["this"]} -function tileworld_MapEditor_update__P13491_mk(s) { +function tileworld_MapEditor_update__P3821_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_update__P13491, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_update__P3821, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43585,18 +47602,18 @@ function tileworld_MapEditor_update__P13491_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - index___15202: undefined, - backs___15225: undefined, - x___15229: undefined, - y___15239: undefined, - inRange___15249: undefined, - col___15267: undefined, - row___15272: undefined, - nx___15277: undefined, - ny___15281: undefined, - index___15287: undefined, - img___15296: undefined, - index___15314: undefined, + index___17014: undefined, + backs___17037: undefined, + x___17041: undefined, + y___17051: undefined, + inRange___17061: undefined, + col___17079: undefined, + row___17084: undefined, + nx___17089: undefined, + ny___17093: undefined, + index___17099: undefined, + img___17108: undefined, + index___17126: undefined, arg0: undefined, } } @@ -43604,7 +47621,7 @@ function tileworld_MapEditor_update__P13491_mk(s) { -function inline__P15207(s) { +function inline__P17019(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43618,7 +47635,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_MapEditor_drawImage__P13490_mk(s); + s.tmp_0 = tileworld_MapEditor_drawImage__P15305_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); @@ -43637,12 +47654,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P15207.info = {"start":7140,"length":96,"line":198,"column":46,"endLine":201,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":["img"]} +inline__P17019.info = {"start":7140,"length":96,"line":198,"column":46,"endLine":201,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":["img"]} -function inline__P15207_mk(s) { +function inline__P17019_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15207, depth: s.depth + 1, + parent: s, fn: inline__P17019, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43654,7 +47671,7 @@ function inline__P15207_mk(s) { -function inline__P15218(s) { +function inline__P17030(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43668,7 +47685,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_MapEditor_drawImage__P13490_mk(s); + s.tmp_0 = tileworld_MapEditor_drawImage__P15305_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); @@ -43687,12 +47704,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P15218.info = {"start":7281,"length":94,"line":202,"column":42,"endLine":205,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":["img"]} +inline__P17030.info = {"start":7281,"length":94,"line":202,"column":42,"endLine":205,"endColumn":13,"fileName":"editor.ts","functionName":"inline","argumentNames":["img"]} -function inline__P15218_mk(s) { +function inline__P17030_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15218, depth: s.depth + 1, + parent: s, fn: inline__P17030, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43704,7 +47721,7 @@ function inline__P15218_mk(s) { -function tileworld_drawHalfSize__P4005(s) { +function tileworld_drawHalfSize__P3541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43714,11 +47731,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___4012 = undefined; - s.j___4018 = undefined; - s.i___4050 = undefined; - s.j___4056 = undefined; - s.pix___4062 = undefined; + s.i___6132 = undefined; + s.j___6138 = undefined; + s.i___6170 = undefined; + s.j___6176 = undefined; + s.pix___6182 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -43732,90 +47749,90 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.i___4012 = (0); + s.i___6132 = (0); case 1: - s.tmp_1 = r0 = s.i___4012; + s.tmp_1 = r0 = s.i___6132; r0 = pxsim_ImageMethods.width(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; } - s.j___4018 = (0); + s.j___6138 = (0); case 2: - s.tmp_1 = r0 = s.j___4018; + s.tmp_1 = r0 = s.j___6138; r0 = pxsim_ImageMethods.height(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = globals.screen___578; + s.tmp_3 = r0 = globals.screen___1799; s.tmp_5 = r0 = s.arg1; - r0 = (s.i___4012 >> 1); + r0 = (s.i___6132 >> 1); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; s.tmp_8 = r0 = s.arg2; - r0 = (s.j___4018 >> 1); + r0 = (s.j___6138 >> 1); s.tmp_9 = r0; r0 = (s.tmp_8 + s.tmp_9); s.tmp_7 = r0; - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___4012, s.j___4018); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___6132, s.j___6138); s.tmp_10 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_3, s.tmp_4, s.tmp_7, s.tmp_10); - r0 = (s.j___4018 + 2); - s.j___4018 = (r0); + r0 = (s.j___6138 + 2); + s.j___6138 = (r0); { step = 2; continue; } case 3: - r0 = (s.i___4012 + 2); - s.i___4012 = (r0); + r0 = (s.i___6132 + 2); + s.i___6132 = (r0); { step = 1; continue; } case 4: { step = 12; continue; } case 5: - s.i___4050 = (0); + s.i___6170 = (0); case 6: - s.tmp_1 = r0 = s.i___4050; + s.tmp_1 = r0 = s.i___6170; r0 = pxsim_ImageMethods.width(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 = 11; continue; } - s.j___4056 = (0); + s.j___6176 = (0); case 7: - s.tmp_1 = r0 = s.j___4056; + s.tmp_1 = r0 = s.j___6176; r0 = pxsim_ImageMethods.height(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___4050, s.j___4056); - s.pix___4062 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pix___4062); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.i___6170, s.j___6176); + s.pix___6182 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pix___6182); if (!r0) { step = 8; continue; } - s.tmp_0 = r0 = globals.screen___578; + s.tmp_0 = r0 = globals.screen___1799; s.tmp_2 = r0 = s.arg1; - r0 = (s.i___4050 >> 1); + r0 = (s.i___6170 >> 1); s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; s.tmp_5 = r0 = s.arg2; - r0 = (s.j___4056 >> 1); + r0 = (s.j___6176 >> 1); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_4, s.pix___4062); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_4, s.pix___6182); case 8: case 9: - r0 = (s.j___4056 + 2); - s.j___4056 = (r0); + r0 = (s.j___6176 + 2); + s.j___6176 = (r0); { step = 7; continue; } case 10: - r0 = (s.i___4050 + 2); - s.i___4050 = (r0); + r0 = (s.i___6170 + 2); + s.i___6170 = (r0); { step = 6; continue; } case 11: case 12: @@ -43823,12 +47840,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_drawHalfSize__P4005.info = {"start":1663,"length":691,"line":50,"column":4,"endLine":66,"endColumn":5,"fileName":"utilities.ts","functionName":"drawHalfSize","argumentNames":["img","nx","ny","transparent"]} +tileworld_drawHalfSize__P3541.info = {"start":1663,"length":691,"line":50,"column":4,"endLine":66,"endColumn":5,"fileName":"utilities.ts","functionName":"drawHalfSize","argumentNames":["img","nx","ny","transparent"]} -function tileworld_drawHalfSize__P4005_mk(s) { +function tileworld_drawHalfSize__P3541_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_drawHalfSize__P4005, depth: s.depth + 1, + parent: s, fn: tileworld_drawHalfSize__P3541, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43841,11 +47858,11 @@ function tileworld_drawHalfSize__P4005_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - i___4012: undefined, - j___4018: undefined, - i___4050: undefined, - j___4056: undefined, - pix___4062: undefined, + i___6132: undefined, + j___6138: undefined, + i___6170: undefined, + j___6176: undefined, + pix___6182: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -43856,7 +47873,7 @@ function tileworld_drawHalfSize__P4005_mk(s) { -function tileworld_MapEditor_drawImage__P13490(s) { +function tileworld_MapEditor_drawImage__P15305(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43874,8 +47891,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___578; + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___1799; s.tmp_1 = r0 = s.arg1; r0 = (s.arg2 << 4); s.tmp_2 = r0; @@ -43888,12 +47905,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_drawImage__P13490.info = {"start":6782,"length":140,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"editor.ts","functionName":"drawImage","argumentNames":["this","img","col","row"]} +tileworld_MapEditor_drawImage__P15305.info = {"start":6782,"length":140,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"editor.ts","functionName":"drawImage","argumentNames":["this","img","col","row"]} -function tileworld_MapEditor_drawImage__P13490_mk(s) { +function tileworld_MapEditor_drawImage__P15305_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_drawImage__P13490, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_drawImage__P15305, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43910,7 +47927,7 @@ function tileworld_MapEditor_drawImage__P13490_mk(s) { -function tileworld_MapEditor_setCursor__P13481(s) { +function tileworld_MapEditor_setCursor__P15296(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43926,8 +47943,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P813_mk(s); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 128; @@ -43936,7 +47953,7 @@ switch (step) { s.callLocIdx = 1234; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 128; @@ -43950,12 +47967,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_setCursor__P13481.info = {"start":3086,"length":239,"line":84,"column":8,"endLine":88,"endColumn":9,"fileName":"editor.ts","functionName":"setCursor","argumentNames":["this","ct"]} +tileworld_MapEditor_setCursor__P15296.info = {"start":3086,"length":239,"line":84,"column":8,"endLine":88,"endColumn":9,"fileName":"editor.ts","functionName":"setCursor","argumentNames":["this","ct"]} -function tileworld_MapEditor_setCursor__P13481_mk(s) { +function tileworld_MapEditor_setCursor__P15296_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_setCursor__P13481, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_setCursor__P15296, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -43966,7 +47983,7 @@ function tileworld_MapEditor_setCursor__P13481_mk(s) { -function tileworld_MapEditor_paintHome__P13480(s) { +function tileworld_MapEditor_paintHome__P15295(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43981,15 +47998,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_MapEditor__C13477_VT)) failedCast(r0); - s.tmp_0 = Sprite_x__P771_mk(s); + if (!checkSubtype(r0, tileworld_MapEditor__C3819_VT)) failedCast(r0); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; s.callLocIdx = 1232; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["paintCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 24; @@ -44002,12 +48019,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_MapEditor_paintHome__P13480.info = {"start":2918,"length":158,"line":78,"column":8,"endLine":82,"endColumn":9,"fileName":"editor.ts","functionName":"paintHome","argumentNames":["this"]} +tileworld_MapEditor_paintHome__P15295.info = {"start":2918,"length":158,"line":78,"column":8,"endLine":82,"endColumn":9,"fileName":"editor.ts","functionName":"paintHome","argumentNames":["this"]} -function tileworld_MapEditor_paintHome__P13480_mk(s) { +function tileworld_MapEditor_paintHome__P15295_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_MapEditor_paintHome__P13480, depth: s.depth + 1, + parent: s, fn: tileworld_MapEditor_paintHome__P15295, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -44017,7 +48034,7 @@ function tileworld_MapEditor_paintHome__P13480_mk(s) { -function tileworld_RunGame_start__P9497(s) { +function tileworld_RunGame_start__P3776(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44027,60 +48044,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.signal___9723 = undefined; - s.halfway___9744 = undefined; - s.playerId___9745 = undefined; + s.signal___11580 = undefined; + s.halfway___11601 = undefined; + s.playerId___11602 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RunGame__C9491_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["currentDirection"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C7459_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C9368_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_TileSprite_constructor__P7466_mk(s); + s.tmp_1 = tileworld_TileSprite_constructor__P9375_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.cursorIn___7250; + s.tmp_1.arg1 = globals.cursorIn___3723; s.tmp_1.arg2 = 0; s.tmp_1.arg3 = false; s.callLocIdx = 477; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - s.signal___9723 = (s.tmp_0); - s.tmp_0 = Sprite_setFlag__P813_mk(s); - s.tmp_0.arg0 = s.signal___9723; + s.signal___11580 = (s.tmp_0); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + s.tmp_0.arg0 = s.signal___11580; s.tmp_0.arg1 = 128; s.tmp_0.arg2 = true; s.callLocIdx = 478; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); - s.tmp_0.arg0 = s.signal___9723; + s.tmp_0 = Sprite_y__P2025_mk(s); + s.tmp_0.arg0 = s.signal___11580; s.tmp_0.arg1 = 8; s.callLocIdx = 479; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_1 = Sprite_x__P771_mk(s); - s.tmp_1.arg0 = s.signal___9723; + s.tmp_1 = Sprite_x__P2023_mk(s); + s.tmp_1.arg0 = s.signal___11580; s.tmp_1.arg1 = 8; s.callLocIdx = 480; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = (s.signal___9723).fields["dir"] = (2); - r0 = (s.signal___9723).fields["inst"] = (-1); - r0 = (s.arg0).fields["signal"] = (s.signal___9723); + r0 = (s.signal___11580).fields["dir"] = (2); + r0 = (s.signal___11580).fields["inst"] = (-1); + r0 = (s.arg0).fields["signal"] = (s.signal___11580); r0 = pxsim_pxtrt.mklocRef(); - s.halfway___9744 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.halfway___9744, false); + s.halfway___11601 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.halfway___11601, false); r0 = s.arg0.fields["p"]; s.tmp_0 = r0; r0 = s.tmp_0.fields["_player"]; - s.playerId___9745 = (r0); - r0 = (s.playerId___9745 != -1); + s.playerId___11602 = (r0); + r0 = (s.playerId___11602 != -1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } @@ -44090,17 +48107,17 @@ switch (step) { r0 = s.arg0.fields["state"]; r0 = r0.fields["sprites"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.playerId___9745); + r0 = pxsim_Array__getAt(s.tmp_1, s.playerId___11602); 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 = scene_cameraFollowSprite__P1213_mk(s); + s.tmp_3 = scene_cameraFollowSprite__P2456_mk(s); r0 = s.arg0.fields["state"]; r0 = r0.fields["sprites"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.playerId___9745); + r0 = pxsim_Array__getAt(s.tmp_5, s.playerId___11602); s.tmp_4 = r0; r0 = pxsim_Array__getAt(s.tmp_4, 0); s.tmp_3.arg0 = r0; @@ -44109,7 +48126,7 @@ switch (step) { r0 = s.retval; case 3: case 4: - s.tmp_0 = tileworld_TileWorldVM_setState__P7666_mk(s); + s.tmp_0 = tileworld_TileWorldVM_setState__P9568_mk(s); r0 = s.arg0.fields["vm"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["state"]; @@ -44117,7 +48134,7 @@ switch (step) { s.callLocIdx = 483; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.tmp_0 = tileworld_RunGame_roundToCompletion__P9496_mk(s); + s.tmp_0 = tileworld_RunGame_roundToCompletion__P11384_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_0.arg1 = r0; @@ -44125,38 +48142,38 @@ switch (step) { case 11: r0 = s.retval; r0 = (s.arg0).fields["running"] = (true); - r0 = pxsim_pxtcore_mkAction(2, inline__P9775); + r0 = pxsim_pxtcore_mkAction(2, inline__P11632); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.halfway___9744); - s.tmp_1 = game_onUpdate__P1300_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.halfway___11601); + s.tmp_1 = game_onUpdate__P2535_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 496; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9871); + r0 = pxsim_pxtcore_mkAction(1, inline__P11728); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P1306_mk(s); + s.tmp_1 = game_onShade__P2539_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 499; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9901); + r0 = pxsim_pxtcore_mkAction(1, inline__P11758); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onPaint__P1305_mk(s); + s.tmp_1 = game_onPaint__P2538_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 500; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; - s.tmp_0 = tileworld_RunGame_registerController__P9499_mk(s); + s.tmp_0 = tileworld_RunGame_registerController__P11386_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 501; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - s.tmp_0 = Sprite_vx__P775_mk(s); - s.tmp_0.arg0 = s.signal___9723; + s.tmp_0 = Sprite_vx__P2027_mk(s); + s.tmp_0.arg0 = s.signal___11580; s.tmp_0.arg1 = 100; s.callLocIdx = 502; s.pc = 16; return s.tmp_0; case 16: @@ -44165,12 +48182,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RunGame_start__P9497.info = {"start":33469,"length":2735,"line":752,"column":8,"endLine":821,"endColumn":9,"fileName":"vm.ts","functionName":"start","argumentNames":["this"]} +tileworld_RunGame_start__P3776.info = {"start":33469,"length":2735,"line":752,"column":8,"endLine":821,"endColumn":9,"fileName":"vm.ts","functionName":"start","argumentNames":["this"]} -function tileworld_RunGame_start__P9497_mk(s) { +function tileworld_RunGame_start__P3776_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RunGame_start__P9497, depth: s.depth + 1, + parent: s, fn: tileworld_RunGame_start__P3776, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44178,9 +48195,9 @@ function tileworld_RunGame_start__P9497_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - signal___9723: undefined, - halfway___9744: undefined, - playerId___9745: undefined, + signal___11580: undefined, + halfway___11601: undefined, + playerId___11602: undefined, arg0: undefined, } } @@ -44188,7 +48205,7 @@ function tileworld_RunGame_start__P9497_mk(s) { -function inline__P9775(s) { +function inline__P11632(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44198,7 +48215,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.message___9790 = undefined; + s.message___11647 = undefined; r0 = s.caps[0].fields["running"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -44210,7 +48227,7 @@ switch (step) { { step = 17; continue; } case 1: case 2: - s.tmp_5 = Sprite_x__P770_mk(s); + s.tmp_5 = Sprite_x__P2022_mk(s); r0 = s.caps[0].fields["signal"]; s.tmp_5.arg0 = r0; s.callLocIdx = 485; s.pc = 18; return s.tmp_5; @@ -44243,7 +48260,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.message___9790 = (s.tmp_2); + s.message___11647 = (s.tmp_2); r0 = s.caps[0].fields["state"]; r0 = r0.fields["highScore"]; s.tmp_1 = r0; @@ -44254,7 +48271,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_3 = tileworld_Project_newHighScore__P6125_mk(s); + s.tmp_3 = tileworld_Project_newHighScore__P3705_mk(s); r0 = s.caps[0].fields["p"]; s.tmp_3.arg0 = r0; r0 = s.caps[0].fields["state"]; @@ -44263,12 +48280,12 @@ switch (step) { s.callLocIdx = 486; s.pc = 19; return s.tmp_3; case 19: r0 = s.retval; - if ((s.message___9790) && (s.message___9790).vtable) { + if ((s.message___11647) && (s.message___11647).vtable) { setupResume(s, 20); - pxsim_String__stringConv(s.message___9790); + pxsim_String__stringConv(s.message___11647); checkResumeConsumed(); return; - } else { s.retval = (s.message___9790) + ""; } + } else { s.retval = (s.message___11647) + ""; } case 20: r0 = s.retval; s.tmp_0 = r0; @@ -44298,36 +48315,36 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.message___9790 = (r0); + s.message___11647 = (r0); case 5: case 6: - s.tmp_0 = game_showDialog__P1295_mk(s); + s.tmp_0 = game_showDialog__P2530_mk(s); s.tmp_0.arg0 = "Game Over"; - s.tmp_0.arg1 = s.message___9790; + s.tmp_0.arg1 = s.message___11647; s.tmp_0.arg2 = undefined; s.callLocIdx = 487; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - s.tmp_0 = pause__P309_mk(s); + s.tmp_0 = pause__P399_mk(s); s.tmp_0.arg0 = 500; s.callLocIdx = 488; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.tmp_0 = game_waitAnyButton__P1289_mk(s); + s.tmp_0 = game_waitAnyButton__P2526_mk(s); s.callLocIdx = 489; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; { step = 17; continue; } case 7: case 8: - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.caps[0].fields["signal"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 8; s.callLocIdx = 490; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.tmp_0 = tileworld_RunGame_roundToCompletion__P9496_mk(s); + s.tmp_0 = tileworld_RunGame_roundToCompletion__P11384_mk(s); s.tmp_0.arg0 = s.caps[0]; r0 = s.caps[0].fields["currentDirection"]; s.tmp_0.arg1 = r0; @@ -44352,7 +48369,7 @@ switch (step) { r0 = s.tmp_0; { step = 11; continue; } case 10: - s.tmp_4 = Sprite_x__P770_mk(s); + s.tmp_4 = Sprite_x__P2022_mk(s); r0 = s.caps[0].fields["signal"]; s.tmp_4.arg0 = r0; s.callLocIdx = 492; s.pc = 28; return s.tmp_4; @@ -44372,10 +48389,10 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 12; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P9854); + r0 = pxsim_pxtcore_mkAction(1, inline__P11711); s.tmp_8 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_8, 0, s.caps[0]); - s.tmp_9 = helpers_arrayForEach__P60_mk(s); + s.tmp_9 = helpers_arrayForEach__P104_mk(s); r0 = s.caps[0].fields["state"]; r0 = r0.fields["deadSprites"]; s.tmp_9.arg0 = r0; @@ -44394,12 +48411,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9775.info = {"start":34200,"length":1507,"line":773,"column":26,"endLine":804,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11632.info = {"start":34200,"length":1507,"line":773,"column":26,"endLine":804,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9775_mk(s) { +function inline__P11632_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9775, depth: s.depth + 1, + parent: s, fn: inline__P11632, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44411,14 +48428,14 @@ function inline__P9775_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - message___9790: undefined, + message___11647: undefined, } } -function inline__P9854(s) { +function inline__P11711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44440,7 +48457,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); - s.tmp_0 = Sprite_destroy__P821_mk(s); + s.tmp_0 = Sprite_destroy__P2084_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; @@ -44451,12 +48468,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9854.info = {"start":35463,"length":152,"line":797,"column":55,"endLine":800,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P11711.info = {"start":35463,"length":152,"line":797,"column":55,"endLine":800,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P9854_mk(s) { +function inline__P11711_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9854, depth: s.depth + 1, + parent: s, fn: inline__P11711, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44468,7 +48485,7 @@ function inline__P9854_mk(s) { -function inline__P9871(s) { +function inline__P11728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44478,8 +48495,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; r0 = s.caps[0].fields["state"]; r0 = r0.fields["score"]; s.tmp_3 = r0; @@ -44504,8 +48521,8 @@ switch (step) { s.callLocIdx = 497; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; r0 = s.caps[0].fields["state"]; r0 = r0.fields["highScore"]; s.tmp_3 = r0; @@ -44534,12 +48551,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9871.info = {"start":35748,"length":174,"line":806,"column":25,"endLine":809,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11728.info = {"start":35748,"length":174,"line":806,"column":25,"endLine":809,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9871_mk(s) { +function inline__P11728_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9871, depth: s.depth + 1, + parent: s, fn: inline__P11728, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44551,7 +48568,7 @@ function inline__P9871_mk(s) { -function inline__P9901(s) { +function inline__P11758(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44565,19 +48582,19 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_ImageMethods.drawImage(globals.screen___578, globals.debug___7223, 0, 0); + r0 = pxsim_ImageMethods.drawImage(globals.screen___1799, globals.debug___3714, 0, 0); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P9901.info = {"start":35950,"length":173,"line":811,"column":25,"endLine":817,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11758.info = {"start":35950,"length":173,"line":811,"column":25,"endLine":817,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9901_mk(s) { +function inline__P11758_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9901, depth: s.depth + 1, + parent: s, fn: inline__P11758, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44586,7 +48603,7 @@ function inline__P9901_mk(s) { -function tileworld_RunGame_registerController__P9499(s) { +function tileworld_RunGame_registerController__P11386(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44601,128 +48618,128 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RunGame__C9491_VT)) failedCast(r0); - s.tmp_0 = controller_setRepeatDefault__P709_mk(s); + if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0); + s.tmp_0 = controller_setRepeatDefault__P1913_mk(s); s.tmp_0.arg0 = 200; s.tmp_0.arg1 = 80; s.callLocIdx = 503; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9920); + r0 = pxsim_pxtcore_mkAction(1, inline__P11775); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 505; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9928); + r0 = pxsim_pxtcore_mkAction(1, inline__P11782); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 507; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9934); + r0 = pxsim_pxtcore_mkAction(1, inline__P11788); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 509; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9940); + r0 = pxsim_pxtcore_mkAction(1, inline__P11794); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 511; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9946); + r0 = pxsim_pxtcore_mkAction(1, inline__P11800); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 513; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9952); + r0 = pxsim_pxtcore_mkAction(1, inline__P11806); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 515; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9958); + r0 = pxsim_pxtcore_mkAction(1, inline__P11812); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 517; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9964); + r0 = pxsim_pxtcore_mkAction(1, inline__P11818); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 519; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9970); + r0 = pxsim_pxtcore_mkAction(1, inline__P11824); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 521; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9976); + r0 = pxsim_pxtcore_mkAction(1, inline__P11830); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 523; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9983); + r0 = pxsim_pxtcore_mkAction(1, inline__P11836); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2054; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 525; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9989); + r0 = pxsim_pxtcore_mkAction(1, inline__P11842); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.B___667; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.B___1875; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 529; s.pc = 13; return s.tmp_1; @@ -44732,12 +48749,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RunGame_registerController__P9499.info = {"start":36296,"length":1999,"line":828,"column":8,"endLine":871,"endColumn":9,"fileName":"vm.ts","functionName":"registerController","argumentNames":["this"]} +tileworld_RunGame_registerController__P11386.info = {"start":36296,"length":1999,"line":828,"column":8,"endLine":871,"endColumn":9,"fileName":"vm.ts","functionName":"registerController","argumentNames":["this"]} -function tileworld_RunGame_registerController__P9499_mk(s) { +function tileworld_RunGame_registerController__P11386_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RunGame_registerController__P9499, depth: s.depth + 1, + parent: s, fn: tileworld_RunGame_registerController__P11386, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44748,7 +48765,7 @@ function tileworld_RunGame_registerController__P9499_mk(s) { -function inline__P9920(s) { +function inline__P11775(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44758,7 +48775,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 0; s.callLocIdx = 504; s.pc = 1; return s.tmp_0; @@ -44768,12 +48785,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9920.info = {"start":36444,"length":74,"line":830,"column":67,"endLine":832,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11775.info = {"start":36444,"length":74,"line":830,"column":67,"endLine":832,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9920_mk(s) { +function inline__P11775_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9920, depth: s.depth + 1, + parent: s, fn: inline__P11775, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44782,7 +48799,7 @@ function inline__P9920_mk(s) { -function inline__P9928(s) { +function inline__P11782(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44792,7 +48809,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 0; s.callLocIdx = 506; s.pc = 1; return s.tmp_0; @@ -44802,12 +48819,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9928.info = {"start":36588,"length":74,"line":833,"column":68,"endLine":835,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11782.info = {"start":36588,"length":74,"line":833,"column":68,"endLine":835,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9928_mk(s) { +function inline__P11782_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9928, depth: s.depth + 1, + parent: s, fn: inline__P11782, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44816,7 +48833,7 @@ function inline__P9928_mk(s) { -function inline__P9934(s) { +function inline__P11788(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44826,7 +48843,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 2; s.callLocIdx = 508; s.pc = 1; return s.tmp_0; @@ -44836,12 +48853,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9934.info = {"start":36732,"length":75,"line":836,"column":68,"endLine":838,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11788.info = {"start":36732,"length":75,"line":836,"column":68,"endLine":838,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9934_mk(s) { +function inline__P11788_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9934, depth: s.depth + 1, + parent: s, fn: inline__P11788, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44850,7 +48867,7 @@ function inline__P9934_mk(s) { -function inline__P9940(s) { +function inline__P11794(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44860,7 +48877,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 2; s.callLocIdx = 510; s.pc = 1; return s.tmp_0; @@ -44870,12 +48887,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9940.info = {"start":36878,"length":75,"line":839,"column":69,"endLine":841,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11794.info = {"start":36878,"length":75,"line":839,"column":69,"endLine":841,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9940_mk(s) { +function inline__P11794_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9940, depth: s.depth + 1, + parent: s, fn: inline__P11794, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44884,7 +48901,7 @@ function inline__P9940_mk(s) { -function inline__P9946(s) { +function inline__P11800(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44894,7 +48911,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 1; s.callLocIdx = 512; s.pc = 1; return s.tmp_0; @@ -44904,12 +48921,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9946.info = {"start":37020,"length":72,"line":842,"column":65,"endLine":844,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11800.info = {"start":37020,"length":72,"line":842,"column":65,"endLine":844,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9946_mk(s) { +function inline__P11800_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9946, depth: s.depth + 1, + parent: s, fn: inline__P11800, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44918,7 +48935,7 @@ function inline__P9946_mk(s) { -function inline__P9952(s) { +function inline__P11806(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44928,7 +48945,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 1; s.callLocIdx = 514; s.pc = 1; return s.tmp_0; @@ -44938,12 +48955,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9952.info = {"start":37160,"length":72,"line":845,"column":66,"endLine":847,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11806.info = {"start":37160,"length":72,"line":845,"column":66,"endLine":847,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9952_mk(s) { +function inline__P11806_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9952, depth: s.depth + 1, + parent: s, fn: inline__P11806, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44952,7 +48969,7 @@ function inline__P9952_mk(s) { -function inline__P9958(s) { +function inline__P11812(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44962,7 +48979,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 3; s.callLocIdx = 516; s.pc = 1; return s.tmp_0; @@ -44972,12 +48989,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9958.info = {"start":37301,"length":74,"line":848,"column":67,"endLine":850,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11812.info = {"start":37301,"length":74,"line":848,"column":67,"endLine":850,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9958_mk(s) { +function inline__P11812_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9958, depth: s.depth + 1, + parent: s, fn: inline__P11812, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -44986,7 +49003,7 @@ function inline__P9958_mk(s) { -function inline__P9964(s) { +function inline__P11818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44996,7 +49013,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 3; s.callLocIdx = 518; s.pc = 1; return s.tmp_0; @@ -45006,12 +49023,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9964.info = {"start":37445,"length":74,"line":851,"column":68,"endLine":853,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11818.info = {"start":37445,"length":74,"line":851,"column":68,"endLine":853,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9964_mk(s) { +function inline__P11818_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9964, depth: s.depth + 1, + parent: s, fn: inline__P11818, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -45020,7 +49037,7 @@ function inline__P9964_mk(s) { -function inline__P9970(s) { +function inline__P11824(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45030,7 +49047,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 3; s.callLocIdx = 520; s.pc = 1; return s.tmp_0; @@ -45040,12 +49057,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9970.info = {"start":37585,"length":75,"line":854,"column":64,"endLine":856,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11824.info = {"start":37585,"length":75,"line":854,"column":64,"endLine":856,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9970_mk(s) { +function inline__P11824_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9970, depth: s.depth + 1, + parent: s, fn: inline__P11824, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -45054,7 +49071,7 @@ function inline__P9970_mk(s) { -function inline__P9976(s) { +function inline__P11830(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45064,7 +49081,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 4; s.callLocIdx = 522; s.pc = 1; return s.tmp_0; @@ -45074,12 +49091,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9976.info = {"start":37727,"length":68,"line":857,"column":64,"endLine":859,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11830.info = {"start":37727,"length":68,"line":857,"column":64,"endLine":859,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9976_mk(s) { +function inline__P11830_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9976, depth: s.depth + 1, + parent: s, fn: inline__P11830, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -45088,7 +49105,7 @@ function inline__P9976_mk(s) { -function inline__P9983(s) { +function inline__P11836(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45098,7 +49115,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RunGame_requestMove__P9500_mk(s); + s.tmp_0 = tileworld_RunGame_requestMove__P11387_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = 4; s.callLocIdx = 524; s.pc = 1; return s.tmp_0; @@ -45108,12 +49125,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9983.info = {"start":37863,"length":68,"line":860,"column":65,"endLine":862,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11836.info = {"start":37863,"length":68,"line":860,"column":65,"endLine":862,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9983_mk(s) { +function inline__P11836_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9983, depth: s.depth + 1, + parent: s, fn: inline__P11836, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -45122,7 +49139,7 @@ function inline__P9983_mk(s) { -function inline__P9989(s) { +function inline__P11842(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45142,7 +49159,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = tileworld_Project_newHighScore__P6125_mk(s); + s.tmp_3 = tileworld_Project_newHighScore__P3705_mk(s); r0 = s.caps[0].fields["p"]; s.tmp_3.arg0 = r0; r0 = s.caps[0].fields["state"]; @@ -45153,13 +49170,13 @@ switch (step) { r0 = s.retval; case 1: case 2: - s.tmp_0 = controller_setRepeatDefault__P709_mk(s); + s.tmp_0 = controller_setRepeatDefault__P1913_mk(s); s.tmp_0.arg0 = 500; s.tmp_0.arg1 = 80; s.callLocIdx = 527; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); + s.tmp_0 = game_popScene__P2529_mk(s); s.callLocIdx = 528; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; @@ -45167,12 +49184,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9989.info = {"start":37998,"length":286,"line":863,"column":64,"endLine":870,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} +inline__P11842.info = {"start":37998,"length":286,"line":863,"column":64,"endLine":870,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":[]} -function inline__P9989_mk(s) { +function inline__P11842_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9989, depth: s.depth + 1, + parent: s, fn: inline__P11842, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45184,7 +49201,7 @@ function inline__P9989_mk(s) { -function tileworld_RunGame_requestMove__P9500(s) { +function tileworld_RunGame_requestMove__P11387(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45200,7 +49217,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RunGame__C9491_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0); r0 = s.arg0.fields["running"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -45209,13 +49226,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = controller_setRepeatDefault__P709_mk(s); + s.tmp_3 = controller_setRepeatDefault__P1913_mk(s); s.tmp_3.arg0 = 500; s.tmp_3.arg1 = 80; s.callLocIdx = 530; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); + s.tmp_0 = game_popScene__P2529_mk(s); s.callLocIdx = 531; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; @@ -45239,12 +49256,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RunGame_requestMove__P9500.info = {"start":38305,"length":309,"line":873,"column":8,"endLine":880,"endColumn":9,"fileName":"vm.ts","functionName":"requestMove","argumentNames":["this","dir"]} +tileworld_RunGame_requestMove__P11387.info = {"start":38305,"length":309,"line":873,"column":8,"endLine":880,"endColumn":9,"fileName":"vm.ts","functionName":"requestMove","argumentNames":["this","dir"]} -function tileworld_RunGame_requestMove__P9500_mk(s) { +function tileworld_RunGame_requestMove__P11387_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RunGame_requestMove__P9500, depth: s.depth + 1, + parent: s, fn: tileworld_RunGame_requestMove__P11387, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45258,7 +49275,7 @@ function tileworld_RunGame_requestMove__P9500_mk(s) { -function game_onShade__P1306(s) { +function game_onShade__P2539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45272,9 +49289,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P1291_mk(s); + s.tmp_0 = game_init__P4282_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 896; s.pc = 4; return s.tmp_0; + s.callLocIdx = 898; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -45286,11 +49303,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P1147_mk(s); + s.tmp_2 = scene_createRenderable__P2375_mk(s); s.tmp_2.arg0 = 80; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; - s.callLocIdx = 897; s.pc = 5; return s.tmp_2; + s.callLocIdx = 899; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -45298,12 +49315,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onShade__P1306.info = {"start":9936,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} +game_onShade__P2539.info = {"start":9936,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} -function game_onShade__P1306_mk(s) { +function game_onShade__P2539_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P1306, depth: s.depth + 1, + parent: s, fn: game_onShade__P2539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45315,7 +49332,7 @@ function game_onShade__P1306_mk(s) { -function game_waitAnyButton__P1289(s) { +function game_waitAnyButton__P2526(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45325,19 +49342,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___1284); + r0 = pxsim_numops_toBoolDecr(globals.__waitAnyButton___4278); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__waitAnyButton___1284; + s.tmp_0.argL = globals.__waitAnyButton___4278; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 846; s.pc = 3; return s.tmp_0; + s.callLocIdx = 848; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = pause__P309_mk(s); + s.tmp_0 = pause__P399_mk(s); s.tmp_0.arg0 = 3000; - s.callLocIdx = 847; s.pc = 4; return s.tmp_0; + s.callLocIdx = 849; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 2: @@ -45345,12 +49362,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_waitAnyButton__P1289.info = {"start":967,"length":111,"line":35,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]} +game_waitAnyButton__P2526.info = {"start":967,"length":111,"line":35,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"waitAnyButton","argumentNames":[]} -function game_waitAnyButton__P1289_mk(s) { +function game_waitAnyButton__P2526_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_waitAnyButton__P1289, depth: s.depth + 1, + parent: s, fn: game_waitAnyButton__P2526, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -45359,7 +49376,7 @@ function game_waitAnyButton__P1289_mk(s) { -function tileworld_Project_newHighScore__P6125(s) { +function tileworld_Project_newHighScore__P3705(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45375,9 +49392,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = (s.arg0).fields["highScore"] = (s.arg1); - s.tmp_0 = settings_writeNumber__P613_mk(s); + s.tmp_0 = settings_writeNumber__P1826_mk(s); r0 = s.arg0.fields["prefix"]; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { @@ -45389,12 +49406,12 @@ switch (step) { case 2: r0 = s.retval; s.tmp_1 = r0; - if ((globals.HighScoreKey___6382) && (globals.HighScoreKey___6382).vtable) { + if ((globals.HighScoreKey___8358) && (globals.HighScoreKey___8358).vtable) { setupResume(s, 3); - pxsim_String__stringConv(globals.HighScoreKey___6382); + pxsim_String__stringConv(globals.HighScoreKey___8358); checkResumeConsumed(); return; - } else { s.retval = (globals.HighScoreKey___6382) + ""; } + } else { s.retval = (globals.HighScoreKey___8358) + ""; } case 3: r0 = s.retval; s.tmp_3 = r0; @@ -45408,12 +49425,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_newHighScore__P6125.info = {"start":5509,"length":158,"line":157,"column":8,"endLine":160,"endColumn":9,"fileName":"project.ts","functionName":"newHighScore","argumentNames":["this","newScore"]} +tileworld_Project_newHighScore__P3705.info = {"start":5509,"length":158,"line":157,"column":8,"endLine":160,"endColumn":9,"fileName":"project.ts","functionName":"newHighScore","argumentNames":["this","newScore"]} -function tileworld_Project_newHighScore__P6125_mk(s) { +function tileworld_Project_newHighScore__P3705_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_newHighScore__P6125, depth: s.depth + 1, + parent: s, fn: tileworld_Project_newHighScore__P3705, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45427,7 +49444,7 @@ function tileworld_Project_newHighScore__P6125_mk(s) { -function tileworld_RunGame_roundToCompletion__P9496(s) { +function tileworld_RunGame_roundToCompletion__P11384(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45437,16 +49454,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rcs___9700 = undefined; - s.rc___9710 = undefined; + s.rcs___11557 = undefined; + s.rc___11567 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RunGame__C9491_VT)) failedCast(r0); - s.tmp_0 = tileworld_TileWorldVM_startRound__P7667_mk(s); + if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0); + s.tmp_0 = tileworld_TileWorldVM_startRound__P9569_mk(s); r0 = s.arg0.fields["vm"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -45461,21 +49478,21 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.tmp_2 = tileworld_TileWorldVM_continueRound__P7669_mk(s); + s.tmp_2 = tileworld_TileWorldVM_continueRound__P9571_mk(s); r0 = s.arg0.fields["vm"]; s.tmp_2.arg0 = r0; s.callLocIdx = 475; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.rcs___9700 = (r0); + s.rcs___11557 = (r0); case 2: - s.tmp_0 = r0 = s.rcs___9700; + s.tmp_0 = r0 = s.rcs___11557; 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.rcs___9700); + r0 = pxsim_Array__length(s.rcs___11557); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); case 4: @@ -45483,12 +49500,12 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 5; continue; } - r0 = pxsim_Array_.pop(s.rcs___9700); - s.rc___9710 = (r0); - s.tmp_0 = tileworld_TileWorldVM_processClosure__P7668_mk(s); + r0 = pxsim_Array_.pop(s.rcs___11557); + s.rc___11567 = (r0); + s.tmp_0 = tileworld_TileWorldVM_processClosure__P9570_mk(s); r0 = s.arg0.fields["vm"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.rc___9710; + s.tmp_0.arg1 = s.rc___11567; s.callLocIdx = 476; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; @@ -45500,18 +49517,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RunGame_roundToCompletion__P9496.info = {"start":33053,"length":355,"line":740,"column":8,"endLine":749,"endColumn":9,"fileName":"vm.ts","functionName":"roundToCompletion","argumentNames":["this","dirs"]} +tileworld_RunGame_roundToCompletion__P11384.info = {"start":33053,"length":355,"line":740,"column":8,"endLine":749,"endColumn":9,"fileName":"vm.ts","functionName":"roundToCompletion","argumentNames":["this","dirs"]} -function tileworld_RunGame_roundToCompletion__P9496_mk(s) { +function tileworld_RunGame_roundToCompletion__P11384_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RunGame_roundToCompletion__P9496, depth: s.depth + 1, + parent: s, fn: tileworld_RunGame_roundToCompletion__P11384, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - rcs___9700: undefined, - rc___9710: undefined, + rcs___11557: undefined, + rc___11567: undefined, arg0: undefined, arg1: undefined, } } @@ -45520,7 +49537,7 @@ function tileworld_RunGame_roundToCompletion__P9496_mk(s) { -function tileworld_TileWorldVM_processClosure__P7668(s) { +function tileworld_TileWorldVM_processClosure__P9570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45536,8 +49553,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - s.tmp_0 = tileworld_TileWorldVM_evaluateRuleClosure__P7687_mk(s); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + s.tmp_0 = tileworld_TileWorldVM_evaluateRuleClosure__P9589_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 308; s.pc = 15; return s.tmp_0; @@ -45641,12 +49658,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_processClosure__P7668.info = {"start":6612,"length":964,"line":159,"column":8,"endLine":176,"endColumn":9,"fileName":"vm.ts","functionName":"processClosure","argumentNames":["this","rc"]} +tileworld_TileWorldVM_processClosure__P9570.info = {"start":6612,"length":964,"line":159,"column":8,"endLine":176,"endColumn":9,"fileName":"vm.ts","functionName":"processClosure","argumentNames":["this","rc"]} -function tileworld_TileWorldVM_processClosure__P7668_mk(s) { +function tileworld_TileWorldVM_processClosure__P9570_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_processClosure__P7668, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_processClosure__P9570, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -45666,7 +49683,7 @@ function tileworld_TileWorldVM_processClosure__P7668_mk(s) { -function tileworld_TileWorldVM_evaluateRuleClosure__P7687(s) { +function tileworld_TileWorldVM_evaluateRuleClosure__P9589(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45676,58 +49693,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___9022 = undefined; - s.row___9026 = undefined; + s.col___10917 = undefined; + s.row___10921 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - s.col___9022 = (1); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + s.col___10917 = (1); case 1: - r0 = (s.col___9022 <= 3); + r0 = (s.col___10917 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.row___9026 = (1); + s.row___10921 = (1); case 2: - r0 = (s.row___9026 <= 3); + r0 = (s.row___10921 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = tileworld_TileWorldVM_evaluateWhenDoCommands__P7688_mk(s); + s.tmp_1 = tileworld_TileWorldVM_evaluateWhenDoCommands__P9590_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.col___9022; - s.tmp_1.arg3 = s.row___9026; + s.tmp_1.arg2 = s.col___10917; + s.tmp_1.arg3 = s.row___10921; s.callLocIdx = 429; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = (s.row___9026 + 1); - s.row___9026 = (r0); + r0 = (s.row___10921 + 1); + s.row___10921 = (r0); { step = 2; continue; } case 3: - r0 = (s.col___9022 + 1); - s.col___9022 = (r0); + r0 = (s.col___10917 + 1); + s.col___10917 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_evaluateRuleClosure__P7687.info = {"start":24090,"length":253,"line":548,"column":8,"endLine":554,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateRuleClosure","argumentNames":["this","rc"]} +tileworld_TileWorldVM_evaluateRuleClosure__P9589.info = {"start":24090,"length":253,"line":548,"column":8,"endLine":554,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateRuleClosure","argumentNames":["this","rc"]} -function tileworld_TileWorldVM_evaluateRuleClosure__P7687_mk(s) { +function tileworld_TileWorldVM_evaluateRuleClosure__P9589_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_evaluateRuleClosure__P7687, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_evaluateRuleClosure__P9589, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - col___9022: undefined, - row___9026: undefined, + col___10917: undefined, + row___10921: undefined, arg0: undefined, arg1: undefined, } } @@ -45736,7 +49753,7 @@ function tileworld_TileWorldVM_evaluateRuleClosure__P7687_mk(s) { -function tileworld_TileWorldVM_evaluateWhenDoCommands__P7688(s) { +function tileworld_TileWorldVM_evaluateWhenDoCommands__P9590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -45746,26 +49763,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wid___9042 = undefined; - s.wcol___9061 = undefined; - s.wrow___9074 = undefined; - s.spawned___9087 = undefined; - s.portal___9089 = undefined; - s.ok___9091 = undefined; - s.cid___9092 = undefined; - s.inst___9109 = undefined; - s.arg___9119 = undefined; - s.colliding___9152 = undefined; - s.button___9159 = undefined; - s.self___9166 = undefined; - s.witness___9172 = undefined; - s.witness___9245 = undefined; - s.tm___9355 = undefined; - s.copy___9359 = undefined; - s.kindCnt___9391 = undefined; - s.x___9392 = undefined; - s.y___9393 = undefined; - s.index___9429 = undefined; + s.wid___10937 = undefined; + s.wcol___10956 = undefined; + s.wrow___10969 = undefined; + s.spawned___10982 = undefined; + s.portal___10984 = undefined; + s.ok___10986 = undefined; + s.cid___10987 = undefined; + s.inst___11004 = undefined; + s.arg___11014 = undefined; + s.colliding___11045 = undefined; + s.button___11052 = undefined; + s.self___11059 = undefined; + s.witness___11065 = undefined; + s.witness___11137 = undefined; + s.tm___11246 = undefined; + s.copy___11250 = undefined; + s.kindCnt___11282 = undefined; + s.x___11283 = undefined; + s.y___11284 = undefined; + s.index___11320 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -45774,8 +49791,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); r0 = s.arg1.fields["rv"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg2; @@ -45783,18 +49800,18 @@ switch (step) { s.callLocIdx = 430; s.pc = 100; return s.tmp_0; case 100: r0 = s.retval; - s.wid___9042 = (r0); - r0 = (s.wid___9042 == -1); + s.wid___10937 = (r0); + r0 = (s.wid___10937 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = tileworld_RuleView_getCmdInst__P5000_mk(s); + s.tmp_2 = tileworld_RuleView_getCmdInst__P3654_mk(s); r0 = s.arg1.fields["rv"]; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.wid___9042; + s.tmp_2.arg1 = s.wid___10937; s.tmp_2.arg2 = 0; s.callLocIdx = 431; s.pc = 101; return s.tmp_2; case 101: @@ -45810,12 +49827,12 @@ switch (step) { case 3: case 4: r0 = pxsim_pxtrt.mklocRef(); - s.wcol___9061 = (r0); + s.wcol___10956 = (r0); r0 = s.arg1.fields["self"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 5; continue; } - s.tmp_6 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_6 = tileworld_TileSprite_col__P9370_mk(s); r0 = s.arg1.fields["self"]; s.tmp_6.arg0 = r0; s.callLocIdx = 432; s.pc = 102; return s.tmp_6; @@ -45831,14 +49848,14 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_8 = r0; - r0 = pxsim_pxtrt_stlocRef(s.wcol___9061, s.tmp_8); + r0 = pxsim_pxtrt_stlocRef(s.wcol___10956, s.tmp_8); r0 = pxsim_pxtrt.mklocRef(); - s.wrow___9074 = (r0); + s.wrow___10969 = (r0); r0 = s.arg1.fields["self"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_2 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_2 = tileworld_TileSprite_row__P9371_mk(s); r0 = s.arg1.fields["self"]; s.tmp_2.arg0 = r0; s.callLocIdx = 433; s.pc = 103; return s.tmp_2; @@ -45854,26 +49871,26 @@ switch (step) { case 8: // jmp value (already in r0) s.tmp_4 = r0; - r0 = pxsim_pxtrt_stlocRef(s.wrow___9074, s.tmp_4); - s.spawned___9087 = (null); - s.portal___9089 = (null); - s.ok___9091 = (true); - s.cid___9092 = (0); + r0 = pxsim_pxtrt_stlocRef(s.wrow___10969, s.tmp_4); + s.spawned___10982 = (null); + s.portal___10984 = (null); + s.ok___10986 = (true); + s.cid___10987 = (0); case 9: - s.tmp_1 = r0 = s.cid___9092; + s.tmp_1 = r0 = s.cid___10987; r0 = s.arg1.fields["rv"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["r"]; r0 = r0.fields["whenDo"]; s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.wid___9042); + r0 = pxsim_Array__getAt(s.tmp_4, s.wid___10937); r0 = r0.fields["commandsLen"]; 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 = 98; continue; } - r0 = pxsim_numops_toBoolDecr(s.ok___9091); + r0 = pxsim_numops_toBoolDecr(s.ok___10986); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -45882,42 +49899,42 @@ switch (step) { { step = 98; continue; } case 10: case 11: - r0 = pxsim_numops_toBoolDecr(s.portal___9089); + r0 = pxsim_numops_toBoolDecr(s.portal___10984); if (!r0) { step = 12; continue; } - r0 = s.portal___9089.fields["col"]; + r0 = s.portal___10984.fields["col"]; s.tmp_7 = r0; - r0 = pxsim_pxtrt_stlocRef(s.wcol___9061, s.tmp_7); - r0 = s.portal___9089.fields["row"]; + r0 = pxsim_pxtrt_stlocRef(s.wcol___10956, s.tmp_7); + r0 = s.portal___10984.fields["row"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.wrow___9074, s.tmp_0); + r0 = pxsim_pxtrt_stlocRef(s.wrow___10969, s.tmp_0); case 12: case 13: - s.tmp_0 = tileworld_RuleView_getCmdInst__P5000_mk(s); + s.tmp_0 = tileworld_RuleView_getCmdInst__P3654_mk(s); r0 = s.arg1.fields["rv"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.wid___9042; - s.tmp_0.arg2 = s.cid___9092; + s.tmp_0.arg1 = s.wid___10937; + s.tmp_0.arg2 = s.cid___10987; s.callLocIdx = 435; s.pc = 104; return s.tmp_0; case 104: r0 = s.retval; - s.inst___9109 = (r0); - r0 = (s.inst___9109 == -1); + s.inst___11004 = (r0); + r0 = (s.inst___11004 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } { step = 98; continue; } case 14: case 15: - s.tmp_1 = tileworld_RuleView_getCmdArg__P5001_mk(s); + s.tmp_1 = tileworld_RuleView_getCmdArg__P3655_mk(s); r0 = s.arg1.fields["rv"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.wid___9042; - s.tmp_1.arg2 = s.cid___9092; + s.tmp_1.arg1 = s.wid___10937; + s.tmp_1.arg2 = s.cid___10987; s.callLocIdx = 436; s.pc = 105; return s.tmp_1; case 105: r0 = s.retval; - s.arg___9119 = (r0); - s.tmp_0 = r0 = s.inst___9109; + s.arg___11014 = (r0); + s.tmp_0 = r0 = s.inst___11004; r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); if (r0) { step = 16; continue; } r0 = pxsim_pxtcore.switch_eq(0, s.tmp_0); @@ -45946,15 +49963,15 @@ switch (step) { { step = 97; continue; } case 17: case 18: - r0 = pxsim_pxtcore_mkClassInstance(tileworld_Tile__C7646_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_Tile__C9548_VT); s.tmp_4 = r0; - s.tmp_5 = tileworld_Tile_constructor__P7647_mk(s); + s.tmp_5 = tileworld_Tile_constructor__P9549_mk(s); s.tmp_5.arg0 = s.tmp_4; - r0 = pxsim_pxtrt_ldlocRef(s.wcol___9061); + r0 = pxsim_pxtrt_ldlocRef(s.wcol___10956); s.tmp_5.arg1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.wrow___9074); + r0 = pxsim_pxtrt_ldlocRef(s.wrow___10969); s.tmp_5.arg2 = r0; - s.tmp_5.arg3 = s.arg___9119; + s.tmp_5.arg3 = s.arg___11014; s.callLocIdx = 437; s.pc = 106; return s.tmp_5; case 106: r0 = s.retval; @@ -45981,14 +49998,14 @@ switch (step) { r0 = r0.fields["ruleType"]; s.tmp_3 = r0; r0 = (s.tmp_3 == 2); - s.colliding___9152 = (r0); + s.colliding___11045 = (r0); r0 = s.arg1.fields["rv"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["r"]; r0 = r0.fields["ruleType"]; s.tmp_0 = r0; r0 = (s.tmp_0 == 0); - s.button___9159 = (r0); + s.button___11052 = (r0); r0 = (s.arg2 == 2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -46000,29 +50017,29 @@ switch (step) { case 23: // jmp value (already in r0) s.tmp_1 = r0; - s.self___9166 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.spawned___9087); + s.self___11059 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.spawned___10982); if (!r0) { step = 24; continue; } - r0 = s.spawned___9087; + r0 = s.spawned___10982; { step = 29; continue; } case 24: - r0 = pxsim_numops_toBoolDecr(s.self___9166); + r0 = pxsim_numops_toBoolDecr(s.self___11059); if (!r0) { step = 25; continue; } r0 = s.arg1.fields["self"]; { step = 28; continue; } case 25: - r0 = pxsim_numops_toBoolDecr(s.colliding___9152); + r0 = pxsim_numops_toBoolDecr(s.colliding___11045); if (!r0) { step = 26; continue; } r0 = s.arg1.fields["witnesses"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, 0); { step = 27; continue; } case 26: - r0 = pxsim_pxtcore_mkAction(2, inline__P9184); + r0 = pxsim_pxtcore_mkAction(2, inline__P11077); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.wcol___9061); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.wrow___9074); - s.tmp_2 = helpers_arrayFind__P62_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.wcol___10956); + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.wrow___10969); + s.tmp_2 = helpers_arrayFind__P106_mk(s); r0 = s.arg1.fields["witnesses"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; @@ -46040,14 +50057,14 @@ switch (step) { case 29: // jmp value (already in r0) s.tmp_5 = r0; - s.witness___9172 = (s.tmp_5); - s.tmp_0 = r0 = s.witness___9172; + s.witness___11065 = (s.tmp_5); + s.tmp_0 = r0 = s.witness___11065; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 30; continue; } r0 = s.tmp_0; { step = 37; continue; } case 30: - r0 = s.witness___9172.fields["inst"]; + r0 = s.witness___11065.fields["inst"]; s.tmp_2 = r0; r0 = (s.tmp_2 == -1); s.tmp_1 = r0; @@ -46067,7 +50084,7 @@ switch (step) { r0 = s.tmp_4; { step = 34; continue; } case 33: - r0 = s.colliding___9152; + r0 = s.colliding___11045; case 34: // jmp value (already in r0) s.tmp_5 = r0; @@ -46076,7 +50093,7 @@ switch (step) { r0 = s.tmp_5; { step = 36; continue; } case 35: - r0 = s.button___9159; + r0 = s.button___11052; case 36: // jmp value (already in r0) s.tmp_6 = r0; @@ -46086,13 +50103,13 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 50; continue; } - s.tmp_8 = r0 = s.colliding___9152; + s.tmp_8 = r0 = s.colliding___11045; r0 = pxsim_numops_toBool(s.tmp_8); if (r0) { step = 38; continue; } r0 = s.tmp_8; { step = 39; continue; } case 38: - r0 = pxsim_numops_toBoolDecr(s.self___9166); + r0 = pxsim_numops_toBoolDecr(s.self___11059); s.tmp_9 = r0; r0 = pxsim_Boolean__bang(s.tmp_9); case 39: @@ -46103,7 +50120,7 @@ switch (step) { r0 = s.tmp_10; { step = 41; continue; } case 40: - r0 = s.witness___9172.fields["inst"]; + r0 = s.witness___11065.fields["inst"]; s.tmp_11 = r0; r0 = (s.tmp_11 == 0); case 41: @@ -46114,7 +50131,7 @@ switch (step) { r0 = s.tmp_12; { step = 43; continue; } case 42: - r0 = s.witness___9172.fields["arg"]; + r0 = s.witness___11065.fields["arg"]; s.tmp_13 = r0; r0 = (s.tmp_13 < 4); case 43: @@ -46122,26 +50139,26 @@ switch (step) { s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 48; continue; } - r0 = (s.arg___9119 == 4); + r0 = (s.arg___11014 == 4); s.tmp_15 = r0; r0 = pxsim_numops_toBool(s.tmp_15); if (!r0) { step = 44; continue; } r0 = s.tmp_15; { step = 45; continue; } case 44: - r0 = (s.arg___9119 == 5); + r0 = (s.arg___11014 == 5); case 45: // jmp value (already in r0) s.tmp_16 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_16); if (!r0) { step = 46; continue; } - r0 = (s.witness___9172).fields["movedToStopped"] = (true); + r0 = (s.witness___11065).fields["movedToStopped"] = (true); case 46: case 47: case 48: case 49: - r0 = (s.witness___9172).fields["inst"] = (s.inst___9109); - r0 = (s.witness___9172).fields["arg"] = (s.arg___9119); + r0 = (s.witness___11065).fields["inst"] = (s.inst___11004); + r0 = (s.witness___11065).fields["arg"] = (s.arg___11014); case 50: case 51: { step = 97; continue; } @@ -46157,18 +50174,18 @@ switch (step) { { step = 97; continue; } case 53: case 54: - r0 = pxsim_pxtcore_mkAction(2, inline__P9249); + r0 = pxsim_pxtcore_mkAction(2, inline__P11141); s.tmp_3 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_3, 0, s.wcol___9061); - r0 = pxsim_pxtrt_stclo(s.tmp_3, 1, s.wrow___9074); - s.tmp_4 = helpers_arrayFind__P62_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_3, 0, s.wcol___10956); + r0 = pxsim_pxtrt_stclo(s.tmp_3, 1, s.wrow___10969); + s.tmp_4 = helpers_arrayFind__P106_mk(s); r0 = s.arg1.fields["witnesses"]; s.tmp_4.arg0 = r0; s.tmp_4.arg1 = s.tmp_3; s.callLocIdx = 445; s.pc = 108; return s.tmp_4; case 108: r0 = s.retval; - s.witness___9245 = (r0); + s.witness___11137 = (r0); r0 = s.arg1.fields["rv"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["r"]; @@ -46200,27 +50217,27 @@ switch (step) { case 58: // jmp value (already in r0) s.tmp_6 = r0; - s.witness___9245 = (s.tmp_6); + s.witness___11137 = (s.tmp_6); case 59: case 60: - r0 = (s.arg___9119 == 0); + r0 = (s.arg___11014 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 61; continue; } r0 = s.tmp_0; { step = 62; continue; } case 61: - r0 = s.witness___9245; + r0 = s.witness___11137; case 62: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 65; continue; } - r0 = (s.witness___9245).fields["state"] = (1); + r0 = (s.witness___11137).fields["state"] = (1); r0 = s.arg0.fields["vm"]; r0 = r0.fields["deadSprites"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.witness___9245, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.witness___11137, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 == -1); s.tmp_0 = r0; @@ -46229,7 +50246,7 @@ switch (step) { r0 = s.arg0.fields["vm"]; r0 = r0.fields["deadSprites"]; s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_3, s.witness___9245); + r0 = pxsim_Array__push(s.tmp_3, s.witness___11137); case 63: case 64: case 65: @@ -46247,29 +50264,29 @@ switch (step) { { step = 97; continue; } case 68: case 69: - r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C7459_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C9368_VT); s.tmp_3 = r0; - s.tmp_4 = tileworld_TileSprite_constructor__P7466_mk(s); + s.tmp_4 = tileworld_TileSprite_constructor__P9375_mk(s); s.tmp_4.arg0 = s.tmp_3; r0 = s.arg0.fields["p"]; s.tmp_6 = r0; r0 = s.tmp_6.fields["_spritesI"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.arg___9119); + r0 = pxsim_Array__getAt(s.tmp_5, s.arg___11014); s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = s.arg___9119; + s.tmp_4.arg2 = s.arg___11014; s.tmp_4.arg3 = false; s.callLocIdx = 448; s.pc = 109; return s.tmp_4; case 109: r0 = s.retval; - s.spawned___9087 = (s.tmp_3); + s.spawned___10982 = (s.tmp_3); r0 = s.arg0.fields["vm"]; r0 = r0.fields["spawnedSprites"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.spawned___9087); - s.tmp_0 = Sprite_x__P771_mk(s); - s.tmp_0.arg0 = s.spawned___9087; - r0 = pxsim_pxtrt_ldlocRef(s.wcol___9061); + r0 = pxsim_Array__push(s.tmp_0, s.spawned___10982); + s.tmp_0 = Sprite_x__P2023_mk(s); + s.tmp_0.arg0 = s.spawned___10982; + r0 = pxsim_pxtrt_ldlocRef(s.wcol___10956); s.tmp_2 = r0; r0 = (s.tmp_2 << 4); s.tmp_1 = r0; @@ -46278,9 +50295,9 @@ switch (step) { s.callLocIdx = 449; s.pc = 110; return s.tmp_0; case 110: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); - s.tmp_0.arg0 = s.spawned___9087; - r0 = pxsim_pxtrt_ldlocRef(s.wrow___9074); + s.tmp_0 = Sprite_y__P2025_mk(s); + s.tmp_0.arg0 = s.spawned___10982; + r0 = pxsim_pxtrt_ldlocRef(s.wrow___10969); s.tmp_2 = r0; r0 = (s.tmp_2 << 4); s.tmp_1 = r0; @@ -46289,8 +50306,8 @@ switch (step) { s.callLocIdx = 450; s.pc = 111; return s.tmp_0; case 111: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P813_mk(s); - s.tmp_0.arg0 = s.spawned___9087; + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + s.tmp_0.arg0 = s.spawned___10982; s.tmp_0.arg1 = 128; s.tmp_0.arg2 = true; s.callLocIdx = 451; s.pc = 112; return s.tmp_0; @@ -46301,7 +50318,7 @@ switch (step) { r0 = s.arg0.fields["vm"]; r0 = r0.fields["nextBlockedSprites"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg___9119, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.arg___11014, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 == -1); s.tmp_0 = r0; @@ -46310,36 +50327,36 @@ switch (step) { r0 = s.arg0.fields["vm"]; r0 = r0.fields["nextBlockedSprites"]; s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_3, s.arg___9119); + r0 = pxsim_Array__push(s.tmp_3, s.arg___11014); case 71: case 72: { step = 97; continue; } case 73: - s.tmp_0 = game_currentScene__P961_mk(s); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 452; s.pc = 113; return s.tmp_0; case 113: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___9355 = (r0); + s.tm___11246 = (r0); r0 = s.arg0.fields["vm"]; r0 = r0.fields["changed"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.copy___9359 = (r0); - r0 = pxsim_ImageMethods.fill(s.copy___9359, 0); - r0 = pxsim_pxtcore_mkAction(1, inline__P9369); + s.copy___11250 = (r0); + r0 = pxsim_ImageMethods.fill(s.copy___11250, 0); + r0 = pxsim_pxtcore_mkAction(1, inline__P11260); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.copy___9359); - s.tmp_1 = tileworld_TileWorldVM_allSprites__P7670_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.copy___11250); + s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 455; s.pc = 114; return s.tmp_1; case 114: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P9382); + r0 = pxsim_pxtcore_mkAction(1, inline__P11273); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.copy___9359); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.copy___11250); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["vm"]; r0 = r0.fields["spawnedSprites"]; s.tmp_1.arg0 = r0; @@ -46347,27 +50364,27 @@ switch (step) { s.callLocIdx = 458; s.pc = 115; return s.tmp_1; case 115: r0 = s.retval; - s.kindCnt___9391 = (0); - s.x___9392 = (0); - s.y___9393 = (0); + s.kindCnt___11282 = (0); + s.x___11283 = (0); + s.y___11284 = (0); case 74: - s.tmp_1 = r0 = s.x___9392; - r0 = pxsim_ImageMethods.width(s.copy___9359); + s.tmp_1 = r0 = s.x___11283; + r0 = pxsim_ImageMethods.width(s.copy___11250); 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 = 81; continue; } - s.y___9393 = (0); + s.y___11284 = (0); case 75: - s.tmp_1 = r0 = s.y___9393; - r0 = pxsim_ImageMethods.height(s.copy___9359); + s.tmp_1 = r0 = s.y___11284; + r0 = pxsim_ImageMethods.height(s.copy___11250); 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 = 80; continue; } - r0 = pxsim_ImageMethods.getPixel(s.copy___9359, s.x___9392, s.y___9393); + r0 = pxsim_ImageMethods.getPixel(s.copy___11250, s.x___11283, s.y___11284); s.tmp_4 = r0; r0 = (s.tmp_4 == 0); s.tmp_3 = r0; @@ -46376,62 +50393,62 @@ switch (step) { r0 = s.tmp_3; { step = 77; continue; } case 76: - s.tmp_6 = tiles_TileMap__C1086_v8_3_mk(s); - s.tmp_6.arg0 = s.tm___9355; - s.tmp_6.arg1 = s.x___9392; - s.tmp_6.arg2 = s.y___9393; - if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_6.arg0); + s.tmp_6 = tiles_TileMap__C2314_v8_3_mk(s); + s.tmp_6.arg0 = s.tm___11246; + s.tmp_6.arg1 = s.x___11283; + s.tmp_6.arg2 = s.y___11284; + if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0); s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex; s.pc = 116; return s.tmp_6; case 116: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 == s.arg___9119); + r0 = (s.tmp_5 == s.arg___11014); case 77: // jmp value (already in r0) s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 78; continue; } - r0 = (s.kindCnt___9391 + 1); - s.kindCnt___9391 = (r0); + r0 = (s.kindCnt___11282 + 1); + s.kindCnt___11282 = (r0); case 78: case 79: - r0 = (s.y___9393 + 1); - s.y___9393 = (r0); + r0 = (s.y___11284 + 1); + s.y___11284 = (r0); { step = 75; continue; } case 80: - r0 = (s.x___9392 + 1); - s.x___9392 = (r0); + r0 = (s.x___11283 + 1); + s.x___11283 = (r0); { step = 74; continue; } case 81: - r0 = (s.kindCnt___9391 > 0); + r0 = (s.kindCnt___11282 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 94; continue; } - r0 = (s.kindCnt___9391 - 1); + r0 = (s.kindCnt___11282 - 1); s.tmp_1 = r0; r0 = pxsim.Math_.randomRange(0, s.tmp_1); - s.index___9429 = (r0); - s.kindCnt___9391 = (0); - s.x___9392 = (0); + s.index___11320 = (r0); + s.kindCnt___11282 = (0); + s.x___11283 = (0); case 82: - s.tmp_1 = r0 = s.x___9392; - r0 = pxsim_ImageMethods.width(s.copy___9359); + s.tmp_1 = r0 = s.x___11283; + r0 = pxsim_ImageMethods.width(s.copy___11250); 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 = 93; continue; } - s.y___9393 = (0); + s.y___11284 = (0); case 83: - s.tmp_1 = r0 = s.y___9393; - r0 = pxsim_ImageMethods.height(s.copy___9359); + s.tmp_1 = r0 = s.y___11284; + r0 = pxsim_ImageMethods.height(s.copy___11250); 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 = 90; continue; } - r0 = pxsim_ImageMethods.getPixel(s.copy___9359, s.x___9392, s.y___9393); + r0 = pxsim_ImageMethods.getPixel(s.copy___11250, s.x___11283, s.y___11284); s.tmp_4 = r0; r0 = (s.tmp_4 == 0); s.tmp_3 = r0; @@ -46440,72 +50457,72 @@ switch (step) { r0 = s.tmp_3; { step = 85; continue; } case 84: - s.tmp_6 = tiles_TileMap__C1086_v8_3_mk(s); - s.tmp_6.arg0 = s.tm___9355; - s.tmp_6.arg1 = s.x___9392; - s.tmp_6.arg2 = s.y___9393; - if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_6.arg0); + s.tmp_6 = tiles_TileMap__C2314_v8_3_mk(s); + s.tmp_6.arg0 = s.tm___11246; + s.tmp_6.arg1 = s.x___11283; + s.tmp_6.arg2 = s.y___11284; + if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0); s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex; s.pc = 117; return s.tmp_6; case 117: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 == s.arg___9119); + r0 = (s.tmp_5 == s.arg___11014); case 85: // jmp value (already in r0) s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 88; continue; } - r0 = (s.kindCnt___9391 == s.index___9429); + r0 = (s.kindCnt___11282 == s.index___11320); s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 86; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tileworld_Tile__C7646_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_Tile__C9548_VT); s.tmp_9 = r0; - s.tmp_10 = tileworld_Tile_constructor__P7647_mk(s); + s.tmp_10 = tileworld_Tile_constructor__P9549_mk(s); s.tmp_10.arg0 = s.tmp_9; - s.tmp_10.arg1 = s.x___9392; - s.tmp_10.arg2 = s.y___9393; + s.tmp_10.arg1 = s.x___11283; + s.tmp_10.arg2 = s.y___11284; s.tmp_10.arg3 = 0; s.callLocIdx = 459; s.pc = 118; return s.tmp_10; case 118: r0 = s.retval; - s.portal___9089 = (s.tmp_9); + s.portal___10984 = (s.tmp_9); { step = 90; continue; } case 86: case 87: - r0 = (s.kindCnt___9391 + 1); - s.kindCnt___9391 = (r0); + r0 = (s.kindCnt___11282 + 1); + s.kindCnt___11282 = (r0); case 88: case 89: - r0 = (s.y___9393 + 1); - s.y___9393 = (r0); + r0 = (s.y___11284 + 1); + s.y___11284 = (r0); { step = 83; continue; } case 90: - r0 = pxsim_numops_toBoolDecr(s.portal___9089); + r0 = pxsim_numops_toBoolDecr(s.portal___10984); if (!r0) { step = 91; continue; } { step = 93; continue; } case 91: case 92: - r0 = (s.x___9392 + 1); - s.x___9392 = (r0); + r0 = (s.x___11283 + 1); + s.x___11283 = (r0); { step = 82; continue; } case 93: { step = 95; continue; } case 94: - s.ok___9091 = (false); + s.ok___10986 = (false); case 95: { step = 97; continue; } case 96: r0 = s.arg0.fields["globalInsts"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.inst___9109); + r0 = pxsim_Array__push(s.tmp_0, s.inst___11004); r0 = s.arg0.fields["globalArgs"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg___9119); + r0 = pxsim_Array__push(s.tmp_0, s.arg___11014); case 97: - r0 = (s.cid___9092 + 1); - s.cid___9092 = (r0); + r0 = (s.cid___10987 + 1); + s.cid___10987 = (r0); { step = 9; continue; } case 98: case 99: @@ -46513,12 +50530,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_evaluateWhenDoCommands__P7688.info = {"start":24353,"length":6890,"line":556,"column":8,"endLine":693,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateWhenDoCommands","argumentNames":["this","rc","col","row"]} +tileworld_TileWorldVM_evaluateWhenDoCommands__P9590.info = {"start":24353,"length":6890,"line":556,"column":8,"endLine":693,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateWhenDoCommands","argumentNames":["this","rc","col","row"]} -function tileworld_TileWorldVM_evaluateWhenDoCommands__P7688_mk(s) { +function tileworld_TileWorldVM_evaluateWhenDoCommands__P9590_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_evaluateWhenDoCommands__P7688, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_evaluateWhenDoCommands__P9590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46537,26 +50554,26 @@ function tileworld_TileWorldVM_evaluateWhenDoCommands__P7688_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, - wid___9042: undefined, - wcol___9061: undefined, - wrow___9074: undefined, - spawned___9087: undefined, - portal___9089: undefined, - ok___9091: undefined, - cid___9092: undefined, - inst___9109: undefined, - arg___9119: undefined, - colliding___9152: undefined, - button___9159: undefined, - self___9166: undefined, - witness___9172: undefined, - witness___9245: undefined, - tm___9355: undefined, - copy___9359: undefined, - kindCnt___9391: undefined, - x___9392: undefined, - y___9393: undefined, - index___9429: undefined, + wid___10937: undefined, + wcol___10956: undefined, + wrow___10969: undefined, + spawned___10982: undefined, + portal___10984: undefined, + ok___10986: undefined, + cid___10987: undefined, + inst___11004: undefined, + arg___11014: undefined, + colliding___11045: undefined, + button___11052: undefined, + self___11059: undefined, + witness___11065: undefined, + witness___11137: undefined, + tm___11246: undefined, + copy___11250: undefined, + kindCnt___11282: undefined, + x___11283: undefined, + y___11284: undefined, + index___11320: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -46567,7 +50584,7 @@ function tileworld_TileWorldVM_evaluateWhenDoCommands__P7688_mk(s) { -function inline__P9184(s) { +function inline__P11077(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46581,7 +50598,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 440; s.pc = 3; return s.tmp_2; case 3: @@ -46596,7 +50613,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_5 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_5 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_5.arg0 = s.arg0; s.callLocIdx = 441; s.pc = 4; return s.tmp_5; case 4: @@ -46612,12 +50629,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9184.info = {"start":26061,"length":42,"line":592,"column":59,"endLine":592,"endColumn":101,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P11077.info = {"start":26061,"length":42,"line":592,"column":59,"endLine":592,"endColumn":101,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P9184_mk(s) { +function inline__P11077_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9184, depth: s.depth + 1, + parent: s, fn: inline__P11077, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46634,7 +50651,7 @@ function inline__P9184_mk(s) { -function inline__P9249(s) { +function inline__P11141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46648,7 +50665,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 443; s.pc = 3; return s.tmp_2; case 3: @@ -46663,7 +50680,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_5 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_5 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_5.arg0 = s.arg0; s.callLocIdx = 444; s.pc = 4; return s.tmp_5; case 4: @@ -46679,12 +50696,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9249.info = {"start":27117,"length":42,"line":609,"column":56,"endLine":609,"endColumn":98,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P11141.info = {"start":27117,"length":42,"line":609,"column":56,"endLine":609,"endColumn":98,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P9249_mk(s) { +function inline__P11141_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9249, depth: s.depth + 1, + parent: s, fn: inline__P11141, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46701,7 +50718,7 @@ function inline__P9249_mk(s) { -function inline__P9369(s) { +function inline__P11260(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46716,13 +50733,13 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 453; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 454; s.pc = 2; return s.tmp_4; case 2: @@ -46733,12 +50750,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9369.info = {"start":28970,"length":99,"line":643,"column":40,"endLine":645,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P11260.info = {"start":28970,"length":99,"line":643,"column":40,"endLine":645,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P9369_mk(s) { +function inline__P11260_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9369, depth: s.depth + 1, + parent: s, fn: inline__P11260, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46752,7 +50769,7 @@ function inline__P9369_mk(s) { -function inline__P9382(s) { +function inline__P11273(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46767,13 +50784,13 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.caps[0]; - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 456; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 457; s.pc = 2; return s.tmp_4; case 2: @@ -46784,12 +50801,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9382.info = {"start":29127,"length":100,"line":646,"column":55,"endLine":648,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P11273.info = {"start":29127,"length":100,"line":646,"column":55,"endLine":648,"endColumn":25,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P9382_mk(s) { +function inline__P11273_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9382, depth: s.depth + 1, + parent: s, fn: inline__P11273, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46803,7 +50820,7 @@ function inline__P9382_mk(s) { -function tiles_TileMap_getTileIndex__P1099(s) { +function tiles_TileMap_getTileIndex__P2327(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46820,11 +50837,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P1078_mk(s); - s.tmp_1 = tiles_TileMap__C1086_v0_1_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P2307_mk(s); + s.tmp_1 = tiles_TileMap__C2314_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.data; s.pc = 2; return s.tmp_1; case 2: @@ -46838,12 +50855,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileIndex__P1099.info = {"start":7314,"length":105,"line":271,"column":8,"endLine":273,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} +tiles_TileMap_getTileIndex__P2327.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__P1099_mk(s) { +function tiles_TileMap_getTileIndex__P2327_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P1099, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P2327, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46856,7 +50873,7 @@ function tiles_TileMap_getTileIndex__P1099_mk(s) { -function tiles_TileMap_data__P1089(s) { +function tiles_TileMap_data__P4221(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46871,18 +50888,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_data__P1089.info = {"start":6278,"length":75,"line":229,"column":8,"endLine":231,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} -tiles_TileMap_data__P1089.isGetter = true; +tiles_TileMap_data__P4221.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__P4221.isGetter = true; -function tiles_TileMap_data__P1089_mk(s) { +function tiles_TileMap_data__P4221_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_data__P1089, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_data__P4221, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -46891,7 +50908,7 @@ function tiles_TileMap_data__P1089_mk(s) { -function tiles_TileMapData_getTile__P1078(s) { +function tiles_TileMapData_getTile__P2307(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46908,8 +50925,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C1073_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P1084_mk(s); + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P2313_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -46942,12 +50959,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P1078.info = {"start":3931,"length":200,"line":150,"column":8,"endLine":154,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +tiles_TileMapData_getTile__P2307.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__P1078_mk(s) { +function tiles_TileMapData_getTile__P2307_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P1078, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P2307, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -46967,7 +50984,7 @@ function tiles_TileMapData_getTile__P1078_mk(s) { -function tiles_TileMapData_isOutsideMap__P1084(s) { +function tiles_TileMapData_isOutsideMap__P2313(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -46984,7 +51001,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C1073_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -47024,12 +51041,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P1084.info = {"start":5514,"length":132,"line":197,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} +tiles_TileMapData_isOutsideMap__P2313.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__P1084_mk(s) { +function tiles_TileMapData_isOutsideMap__P2313_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P1084, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P2313, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47048,7 +51065,7 @@ function tiles_TileMapData_isOutsideMap__P1084_mk(s) { -function tileworld_TileWorldVM_allSprites__P7670(s) { +function tileworld_TileWorldVM_allSprites__P9572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47064,11 +51081,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P8079); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P9979); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["vm"]; r0 = r0.fields["sprites"]; s.tmp_1.arg0 = r0; @@ -47080,12 +51097,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_allSprites__P7670.info = {"start":10446,"length":179,"line":244,"column":8,"endLine":248,"endColumn":9,"fileName":"vm.ts","functionName":"allSprites","argumentNames":["this","handler"]} +tileworld_TileWorldVM_allSprites__P9572.info = {"start":10446,"length":179,"line":244,"column":8,"endLine":248,"endColumn":9,"fileName":"vm.ts","functionName":"allSprites","argumentNames":["this","handler"]} -function tileworld_TileWorldVM_allSprites__P7670_mk(s) { +function tileworld_TileWorldVM_allSprites__P9572_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_allSprites__P7670, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_allSprites__P9572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47097,7 +51114,7 @@ function tileworld_TileWorldVM_allSprites__P7670_mk(s) { -function inline__P8079(s) { +function inline__P9979(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47113,10 +51130,10 @@ switch (step) { } r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P8084); + r0 = pxsim_pxtcore_mkAction(1, inline__P9984); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[0]); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 321; s.pc = 3; return s.tmp_1; @@ -47128,12 +51145,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8079.info = {"start":10536,"length":77,"line":245,"column":36,"endLine":247,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ls"]} +inline__P9979.info = {"start":10536,"length":77,"line":245,"column":36,"endLine":247,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ls"]} -function inline__P8079_mk(s) { +function inline__P9979_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8079, depth: s.depth + 1, + parent: s, fn: inline__P9979, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47144,7 +51161,7 @@ function inline__P8079_mk(s) { -function inline__P8084(s) { +function inline__P9984(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47169,12 +51186,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8084.info = {"start":10580,"length":17,"line":246,"column":35,"endLine":246,"endColumn":52,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P9984.info = {"start":10580,"length":17,"line":246,"column":35,"endLine":246,"endColumn":52,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P8084_mk(s) { +function inline__P9984_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8084, depth: s.depth + 1, + parent: s, fn: inline__P9984, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -47184,7 +51201,7 @@ function inline__P8084_mk(s) { -function tileworld_Tile_constructor__P7647(s) { +function tileworld_Tile_constructor__P9549(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47202,7 +51219,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Tile__C7646_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Tile__C9548_VT)) failedCast(r0); r0 = (s.arg0).fields["col"] = (s.arg1); r0 = (s.arg0).fields["row"] = (s.arg2); r0 = (s.arg0).fields["kind"] = (s.arg3); @@ -47210,12 +51227,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Tile_constructor__P7647.info = {"start":2918,"length":84,"line":63,"column":8,"endLine":64,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","col","row","kind"]} +tileworld_Tile_constructor__P9549.info = {"start":2918,"length":84,"line":63,"column":8,"endLine":64,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","col","row","kind"]} -function tileworld_Tile_constructor__P7647_mk(s) { +function tileworld_Tile_constructor__P9549_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Tile_constructor__P7647, depth: s.depth + 1, + parent: s, fn: tileworld_Tile_constructor__P9549, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -47227,7 +51244,7 @@ function tileworld_Tile_constructor__P7647_mk(s) { -function tileworld_TileSprite_row__P7462(s) { +function tileworld_TileSprite_row__P9371(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47242,8 +51259,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileSprite__C7459_VT)) failedCast(r0); - s.tmp_1 = Sprite_y__P772_mk(s); + if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0); + s.tmp_1 = Sprite_y__P2024_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 289; s.pc = 1; return s.tmp_1; case 1: @@ -47253,12 +51270,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileSprite_row__P7462.info = {"start":1168,"length":36,"line":28,"column":8,"endLine":28,"endColumn":44,"fileName":"vm.ts","functionName":"row","argumentNames":["this"]} +tileworld_TileSprite_row__P9371.info = {"start":1168,"length":36,"line":28,"column":8,"endLine":28,"endColumn":44,"fileName":"vm.ts","functionName":"row","argumentNames":["this"]} -function tileworld_TileSprite_row__P7462_mk(s) { +function tileworld_TileSprite_row__P9371_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileSprite_row__P7462, depth: s.depth + 1, + parent: s, fn: tileworld_TileSprite_row__P9371, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47269,7 +51286,7 @@ function tileworld_TileSprite_row__P7462_mk(s) { -function tileworld_TileSprite_col__P7461(s) { +function tileworld_TileSprite_col__P9370(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47284,8 +51301,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileSprite__C7459_VT)) failedCast(r0); - s.tmp_1 = Sprite_x__P770_mk(s); + if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0); + s.tmp_1 = Sprite_x__P2022_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 288; s.pc = 1; return s.tmp_1; case 1: @@ -47295,12 +51312,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileSprite_col__P7461.info = {"start":1080,"length":36,"line":27,"column":8,"endLine":27,"endColumn":44,"fileName":"vm.ts","functionName":"col","argumentNames":["this"]} +tileworld_TileSprite_col__P9370.info = {"start":1080,"length":36,"line":27,"column":8,"endLine":27,"endColumn":44,"fileName":"vm.ts","functionName":"col","argumentNames":["this"]} -function tileworld_TileSprite_col__P7461_mk(s) { +function tileworld_TileSprite_col__P9370_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileSprite_col__P7461, depth: s.depth + 1, + parent: s, fn: tileworld_TileSprite_col__P9370, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47311,7 +51328,7 @@ function tileworld_TileSprite_col__P7461_mk(s) { -function tileworld_TileWorldVM_continueRound__P7669(s) { +function tileworld_TileWorldVM_continueRound__P9571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47321,16 +51338,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ruleClosures___7921 = undefined; - s.ts___7971 = undefined; - s.ts___8013 = undefined; - s.ts___8047 = undefined; + s.ruleClosures___9821 = undefined; + s.ts___9871 = undefined; + s.ts___9913 = undefined; + s.ts___9947 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = s.arg0.fields["vm"]; r0 = r0.fields["phase"]; s.tmp_1 = r0; @@ -47339,12 +51356,12 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = pxsim_Array__mk(); - s.ruleClosures___7921 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P7927); + s.ruleClosures___9821 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P9827); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.ruleClosures___7921); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.ruleClosures___9821); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["ruleIndex"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, 3); @@ -47356,7 +51373,7 @@ switch (step) { r0 = s.arg0.fields["vm"]; s.tmp_0 = r0; r0 = (s.tmp_0).fields["phase"] = (0); - r0 = s.ruleClosures___7921; + r0 = s.ruleClosures___9821; { step = 21; continue; } case 1: case 2: @@ -47380,11 +51397,11 @@ switch (step) { r0 = r0.fields["queued"]; s.tmp_5 = r0; r0 = pxsim_Array_.pop(s.tmp_5); - s.ts___7971 = (r0); - s.tmp_0 = tileworld_TileWorldVM_applyRules__P7675_mk(s); + s.ts___9871 = (r0); + s.tmp_0 = tileworld_TileWorldVM_applyRules__P9577_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = s.ts___7971; + s.tmp_0.arg2 = s.ts___9871; s.callLocIdx = 313; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; @@ -47394,10 +51411,10 @@ switch (step) { r0 = s.arg0.fields["vm"]; s.tmp_1 = r0; r0 = (s.tmp_1).fields["phase"] = (1); - r0 = pxsim_pxtcore_mkAction(1, inline__P7985); + r0 = pxsim_pxtcore_mkAction(1, inline__P9885); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = tileworld_TileWorldVM_allSprites__P7670_mk(s); + s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 314; s.pc = 24; return s.tmp_1; @@ -47426,20 +51443,20 @@ switch (step) { r0 = r0.fields["queued"]; s.tmp_5 = r0; r0 = pxsim_Array_.pop(s.tmp_5); - s.ts___8013 = (r0); - s.tmp_1 = tileworld_TileWorldVM_contextChanged__P7671_mk(s); + s.ts___9913 = (r0); + s.tmp_1 = tileworld_TileWorldVM_contextChanged__P9573_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.ts___8013; + s.tmp_1.arg1 = s.ts___9913; s.callLocIdx = 315; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_2 = tileworld_TileWorldVM_applyRules__P7675_mk(s); + s.tmp_2 = tileworld_TileWorldVM_applyRules__P9577_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = 1; - s.tmp_2.arg2 = s.ts___8013; + s.tmp_2.arg2 = s.ts___9913; s.callLocIdx = 316; s.pc = 26; return s.tmp_2; case 26: r0 = s.retval; @@ -47451,10 +51468,10 @@ switch (step) { r0 = s.arg0.fields["vm"]; s.tmp_3 = r0; r0 = (s.tmp_3).fields["phase"] = (2); - r0 = pxsim_pxtcore_mkAction(1, inline__P8029); + r0 = pxsim_pxtcore_mkAction(1, inline__P9929); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = tileworld_TileWorldVM_allSprites__P7670_mk(s); + s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 317; s.pc = 27; return s.tmp_1; @@ -47483,10 +51500,10 @@ switch (step) { r0 = r0.fields["queued"]; s.tmp_5 = r0; r0 = pxsim_Array_.pop(s.tmp_5); - s.ts___8047 = (r0); - s.tmp_0 = tileworld_TileWorldVM_collisionDetection__P7678_mk(s); + s.ts___9947 = (r0); + s.tmp_0 = tileworld_TileWorldVM_collisionDetection__P9580_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ts___8047; + s.tmp_0.arg1 = s.ts___9947; s.callLocIdx = 318; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; @@ -47518,7 +51535,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - s.tmp_2 = tileworld_TileWorldVM_updateWorld__P7681_mk(s); + s.tmp_2 = tileworld_TileWorldVM_updateWorld__P9583_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 319; s.pc = 29; return s.tmp_2; case 29: @@ -47530,12 +51547,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_continueRound__P7669.info = {"start":7586,"length":2850,"line":178,"column":8,"endLine":242,"endColumn":10,"fileName":"vm.ts","functionName":"continueRound","argumentNames":["this"]} +tileworld_TileWorldVM_continueRound__P9571.info = {"start":7586,"length":2850,"line":178,"column":8,"endLine":242,"endColumn":10,"fileName":"vm.ts","functionName":"continueRound","argumentNames":["this"]} -function tileworld_TileWorldVM_continueRound__P7669_mk(s) { +function tileworld_TileWorldVM_continueRound__P9571_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_continueRound__P7669, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_continueRound__P9571, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47543,10 +51560,10 @@ function tileworld_TileWorldVM_continueRound__P7669_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - ruleClosures___7921: undefined, - ts___7971: undefined, - ts___8013: undefined, - ts___8047: undefined, + ruleClosures___9821: undefined, + ts___9871: undefined, + ts___9913: undefined, + ts___9947: undefined, arg0: undefined, } } @@ -47554,7 +51571,7 @@ function tileworld_TileWorldVM_continueRound__P7669_mk(s) { -function inline__P7927(s) { +function inline__P9827(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47564,13 +51581,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.kind___7929 = undefined; - s.witnesses___7936 = undefined; + s.kind___9829 = undefined; + s.witnesses___9836 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleView_findWitnessColRow__P4997_mk(s); + s.tmp_0 = tileworld_RuleView_findWitnessColRow__P3650_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.tmp_0.arg2 = 2; @@ -47578,8 +51595,8 @@ switch (step) { s.callLocIdx = 310; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.kind___7929 = (r0); - r0 = (s.kind___7929 == -1); + s.kind___9829 = (r0); + r0 = (s.kind___9829 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -47589,9 +51606,9 @@ switch (step) { r0 = s.caps[0].fields["vm"]; r0 = r0.fields["sprites"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.kind___7929); - s.witnesses___7936 = (r0); - r0 = pxsim_numops_toBoolDecr(s.witnesses___7936); + r0 = pxsim_Array__getAt(s.tmp_1, s.kind___9829); + s.witnesses___9836 = (r0); + r0 = pxsim_numops_toBoolDecr(s.witnesses___9836); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -47600,7 +51617,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = pxsim_Array__length(s.witnesses___7936); + r0 = pxsim_Array__length(s.witnesses___9836); s.tmp_2 = r0; r0 = (s.tmp_2 == 0); case 4: @@ -47608,9 +51625,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C7659_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C9561_VT); s.tmp_4 = r0; - s.tmp_5 = tileworld_RuleClosure_constructor__P7660_mk(s); + s.tmp_5 = tileworld_RuleClosure_constructor__P9562_mk(s); s.tmp_5.arg0 = s.tmp_4; s.tmp_5.arg1 = s.arg0; s.tmp_5.arg2 = null; @@ -47627,12 +51644,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7927.info = {"start":7843,"length":640,"line":182,"column":63,"endLine":195,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} +inline__P9827.info = {"start":7843,"length":640,"line":182,"column":63,"endLine":195,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} -function inline__P7927_mk(s) { +function inline__P9827_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7927, depth: s.depth + 1, + parent: s, fn: inline__P9827, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47640,8 +51657,8 @@ function inline__P7927_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - kind___7929: undefined, - witnesses___7936: undefined, + kind___9829: undefined, + witnesses___9836: undefined, arg0: undefined, } } @@ -47649,7 +51666,7 @@ function inline__P7927_mk(s) { -function inline__P7985(s) { +function inline__P9885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47682,12 +51699,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7985.info = {"start":8970,"length":222,"line":206,"column":36,"endLine":210,"endColumn":21,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P9885.info = {"start":8970,"length":222,"line":206,"column":36,"endLine":210,"endColumn":21,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P7985_mk(s) { +function inline__P9885_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7985, depth: s.depth + 1, + parent: s, fn: inline__P9885, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47700,7 +51717,7 @@ function inline__P7985_mk(s) { -function inline__P8029(s) { +function inline__P9929(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47722,12 +51739,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8029.info = {"start":9683,"length":33,"line":222,"column":36,"endLine":222,"endColumn":69,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P9929.info = {"start":9683,"length":33,"line":222,"column":36,"endLine":222,"endColumn":69,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P8029_mk(s) { +function inline__P9929_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8029, depth: s.depth + 1, + parent: s, fn: inline__P9929, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -47737,7 +51754,7 @@ function inline__P8029_mk(s) { -function tileworld_TileWorldVM_updateWorld__P7681(s) { +function tileworld_TileWorldVM_updateWorld__P9583(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47747,23 +51764,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___8695 = undefined; - s.inst___8702 = undefined; - s.arg___8706 = undefined; + s.i___10593 = undefined; + s.inst___10600 = undefined; + s.arg___10604 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = s.arg0.fields["vm"]; r0 = r0.fields["changed"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.fill(s.tmp_0, 0); - r0 = pxsim_pxtcore_mkAction(1, inline__P8563); + r0 = pxsim_pxtcore_mkAction(1, inline__P10462); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["vm"]; r0 = r0.fields["spawnedSprites"]; s.tmp_1.arg0 = r0; @@ -47776,10 +51793,10 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["spawnedSprites"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkAction(1, inline__P8601); + r0 = pxsim_pxtcore_mkAction(1, inline__P10499); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["vm"]; r0 = r0.fields["deadSprites"]; s.tmp_1.arg0 = r0; @@ -47787,19 +51804,19 @@ switch (step) { s.callLocIdx = 397; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P8613); + r0 = pxsim_pxtcore_mkAction(1, inline__P10511); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = tileworld_TileWorldVM_allSprites__P7670_mk(s); + s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 405; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P8661); + r0 = pxsim_pxtcore_mkAction(1, inline__P10559); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["vm"]; r0 = r0.fields["paintTile"]; s.tmp_1.arg0 = r0; @@ -47807,9 +51824,9 @@ switch (step) { s.callLocIdx = 407; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; - s.i___8695 = (0); + s.i___10593 = (0); case 1: - s.tmp_1 = r0 = s.i___8695; + s.tmp_1 = r0 = s.i___10593; r0 = s.arg0.fields["globalInsts"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -47820,32 +51837,32 @@ switch (step) { if (!r0) { step = 14; continue; } r0 = s.arg0.fields["globalInsts"]; s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_4, s.i___8695); - s.inst___8702 = (r0); + r0 = pxsim_Array__getAt(s.tmp_4, s.i___10593); + s.inst___10600 = (r0); r0 = s.arg0.fields["globalArgs"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.i___8695); - s.arg___8706 = (r0); - s.tmp_0 = r0 = s.inst___8702; + r0 = pxsim_Array__getAt(s.tmp_0, s.i___10593); + s.arg___10604 = (r0); + s.tmp_0 = r0 = s.inst___10600; r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); if (r0) { step = 2; continue; } r0 = s.tmp_0; { step = 13; continue; } case 2: - r0 = (s.arg___8706 == 0); + r0 = (s.arg___10604 == 0); s.tmp_1 = r0; r0 = pxsim_numops_toBool(s.tmp_1); if (!r0) { step = 3; continue; } r0 = s.tmp_1; { step = 4; continue; } case 3: - r0 = (s.arg___8706 == 1); + r0 = (s.arg___10604 == 1); case 4: // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 7; continue; } - r0 = (s.arg___8706 == 0); + r0 = (s.arg___10604 == 0); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 5; continue; } @@ -47861,7 +51878,7 @@ switch (step) { r0 = (s.tmp_5).fields["game"] = (s.tmp_4); { step = 12; continue; } case 7: - r0 = (s.arg___8706 == 2); + r0 = (s.arg___10604 == 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } @@ -47894,20 +51911,20 @@ switch (step) { case 11: case 12: case 13: - r0 = (s.i___8695 + 1); - s.i___8695 = (r0); + r0 = (s.i___10593 + 1); + s.i___10593 = (r0); { step = 1; continue; } case 14: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_updateWorld__P7681.info = {"start":16942,"length":2613,"line":388,"column":8,"endLine":444,"endColumn":9,"fileName":"vm.ts","functionName":"updateWorld","argumentNames":["this"]} +tileworld_TileWorldVM_updateWorld__P9583.info = {"start":16942,"length":2613,"line":388,"column":8,"endLine":444,"endColumn":9,"fileName":"vm.ts","functionName":"updateWorld","argumentNames":["this"]} -function tileworld_TileWorldVM_updateWorld__P7681_mk(s) { +function tileworld_TileWorldVM_updateWorld__P9583_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_updateWorld__P7681, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_updateWorld__P9583, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -47915,9 +51932,9 @@ function tileworld_TileWorldVM_updateWorld__P7681_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - i___8695: undefined, - inst___8702: undefined, - arg___8706: undefined, + i___10593: undefined, + inst___10600: undefined, + arg___10604: undefined, arg0: undefined, } } @@ -47925,7 +51942,7 @@ function tileworld_TileWorldVM_updateWorld__P7681_mk(s) { -function inline__P8563(s) { +function inline__P10462(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -47950,20 +51967,20 @@ switch (step) { r0 = s.caps[0].fields["vm"]; r0 = r0.fields["changed"]; s.tmp_0 = r0; - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 389; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 390; s.pc = 4; return s.tmp_4; case 4: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, 1); - s.tmp_0 = Sprite_setFlag__P813_mk(s); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 128; s.tmp_0.arg2 = false; @@ -47976,7 +51993,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = scene_cameraFollowSprite__P1213_mk(s); + s.tmp_2 = scene_cameraFollowSprite__P2456_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 393; s.pc = 6; return s.tmp_2; case 6: @@ -47987,12 +52004,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8563.info = {"start":17073,"length":282,"line":391,"column":43,"endLine":397,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P10462.info = {"start":17073,"length":282,"line":391,"column":43,"endLine":397,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P8563_mk(s) { +function inline__P10462_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8563, depth: s.depth + 1, + parent: s, fn: inline__P10462, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48006,7 +52023,7 @@ function inline__P8563_mk(s) { -function inline__P8601(s) { +function inline__P10499(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48023,13 +52040,13 @@ switch (step) { r0 = s.caps[0].fields["vm"]; r0 = r0.fields["changed"]; s.tmp_0 = r0; - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 395; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 396; s.pc = 2; return s.tmp_4; case 2: @@ -48040,12 +52057,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8601.info = {"start":17494,"length":86,"line":400,"column":40,"endLine":402,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P10499.info = {"start":17494,"length":86,"line":400,"column":40,"endLine":402,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P8601_mk(s) { +function inline__P10499_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8601, depth: s.depth + 1, + parent: s, fn: inline__P10499, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48059,7 +52076,7 @@ function inline__P8601_mk(s) { -function inline__P8613(s) { +function inline__P10511(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48073,7 +52090,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_TileSprite_update__P7463_mk(s); + s.tmp_0 = tileworld_TileSprite_update__P9372_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 398; s.pc = 5; return s.tmp_0; case 5: @@ -48100,13 +52117,13 @@ switch (step) { r0 = s.caps[0].fields["vm"]; r0 = r0.fields["changed"]; s.tmp_5 = r0; - s.tmp_7 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_7 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_7.arg0 = s.arg0; s.callLocIdx = 399; s.pc = 6; return s.tmp_7; case 6: r0 = s.retval; s.tmp_6 = r0; - s.tmp_9 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_9 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_9.arg0 = s.arg0; s.callLocIdx = 400; s.pc = 7; return s.tmp_9; case 7: @@ -48116,13 +52133,13 @@ switch (step) { r0 = s.caps[0].fields["vm"]; r0 = r0.fields["changed"]; s.tmp_0 = r0; - s.tmp_3 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_3 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_3.arg0 = s.arg0; s.callLocIdx = 401; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; s.tmp_2 = r0; - s.tmp_5 = tileworld_moveXdelta__P4332_mk(s); + s.tmp_5 = tileworld_moveXdelta__P3618_mk(s); r0 = s.arg0.fields["dir"]; s.tmp_5.arg0 = r0; s.callLocIdx = 402; s.pc = 9; return s.tmp_5; @@ -48131,13 +52148,13 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_2 + s.tmp_4); s.tmp_1 = r0; - s.tmp_8 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_8 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_8.arg0 = s.arg0; s.callLocIdx = 403; s.pc = 10; return s.tmp_8; case 10: r0 = s.retval; s.tmp_7 = r0; - s.tmp_10 = tileworld_moveYdelta__P4344_mk(s); + s.tmp_10 = tileworld_moveYdelta__P3619_mk(s); r0 = s.arg0.fields["dir"]; s.tmp_10.arg0 = r0; s.callLocIdx = 404; s.pc = 11; return s.tmp_10; @@ -48153,12 +52170,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8613.info = {"start":17681,"length":475,"line":404,"column":28,"endLine":413,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P10511.info = {"start":17681,"length":475,"line":404,"column":28,"endLine":413,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P8613_mk(s) { +function inline__P10511_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8613, depth: s.depth + 1, + parent: s, fn: inline__P10511, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48178,7 +52195,7 @@ function inline__P8613_mk(s) { -function inline__P8661(s) { +function inline__P10559(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48188,45 +52205,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___8663 = undefined; - s.old___8667 = undefined; + s.tm___10561 = undefined; + s.old___10565 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P961_mk(s); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 406; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___8663 = (r0); - s.tmp_0 = tiles_TileMap__C1086_v8_3_mk(s); - s.tmp_0.arg0 = s.tm___8663; + s.tm___10561 = (r0); + s.tmp_0 = tiles_TileMap__C2314_v8_3_mk(s); + s.tmp_0.arg0 = s.tm___10561; r0 = s.arg0.fields["col"]; s.tmp_0.arg1 = r0; r0 = s.arg0.fields["row"]; s.tmp_0.arg2 = r0; - if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.getTileIndex; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.old___8667 = (r0); + s.old___10565 = (r0); r0 = s.arg0.fields["kind"]; s.tmp_1 = r0; - r0 = (s.old___8667 != s.tmp_1); + r0 = (s.old___10565 != s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = tiles_TileMap__C1086_v9_4_mk(s); - s.tmp_2.arg0 = s.tm___8663; + s.tmp_2 = tiles_TileMap__C2314_v9_4_mk(s); + s.tmp_2.arg0 = s.tm___10561; r0 = s.arg0.fields["col"]; s.tmp_2.arg1 = r0; r0 = s.arg0.fields["row"]; s.tmp_2.arg2 = r0; r0 = s.arg0.fields["kind"]; s.tmp_2.arg3 = r0; - if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.setTileAt; s.pc = 5; return s.tmp_2; case 5: @@ -48245,18 +52262,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8661.info = {"start":18266,"length":316,"line":415,"column":38,"endLine":422,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["pt"]} +inline__P10559.info = {"start":18266,"length":316,"line":415,"column":38,"endLine":422,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["pt"]} -function inline__P8661_mk(s) { +function inline__P10559_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8661, depth: s.depth + 1, + parent: s, fn: inline__P10559, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tm___8663: undefined, - old___8667: undefined, + tm___10561: undefined, + old___10565: undefined, arg0: undefined, } } @@ -48264,7 +52281,7 @@ function inline__P8661_mk(s) { -function tiles_TileMap_setTileAt__P1100(s) { +function tiles_TileMap_setTileAt__P2328(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48282,8 +52299,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); - s.tmp_3 = tiles_TileMapData_isOutsideMap__P1084_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + s.tmp_3 = tiles_TileMapData_isOutsideMap__P2313_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.arg1; @@ -48301,10 +52318,10 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_6 = tiles_TileMap__C1086_v10_2_mk(s); + s.tmp_6 = tiles_TileMap__C2314_v10_2_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = s.arg3; - if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_6.arg0); + if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0); s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.isInvalidIndex; s.pc = 6; return s.tmp_6; case 6: @@ -48318,7 +52335,7 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 3; continue; } - s.tmp_8 = tiles_TileMapData_setTile__P1079_mk(s); + s.tmp_8 = tiles_TileMapData_setTile__P2308_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_8.arg0 = r0; s.tmp_8.arg1 = s.arg1; @@ -48333,12 +52350,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_setTileAt__P1100.info = {"start":7429,"length":209,"line":275,"column":8,"endLine":278,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} +tiles_TileMap_setTileAt__P2328.info = {"start":7495,"length":209,"line":277,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} -function tiles_TileMap_setTileAt__P1100_mk(s) { +function tiles_TileMap_setTileAt__P2328_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setTileAt__P1100, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_setTileAt__P2328, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48359,7 +52376,7 @@ function tiles_TileMap_setTileAt__P1100_mk(s) { -function tiles_TileMap_isInvalidIndex__P1104(s) { +function tiles_TileMap_isInvalidIndex__P4222(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48375,7 +52392,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -48391,12 +52408,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isInvalidIndex__P1104.info = {"start":8894,"length":106,"line":315,"column":8,"endLine":317,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} +tiles_TileMap_isInvalidIndex__P4222.info = {"start":8960,"length":106,"line":317,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} -function tiles_TileMap_isInvalidIndex__P1104_mk(s) { +function tiles_TileMap_isInvalidIndex__P4222_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isInvalidIndex__P1104, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isInvalidIndex__P4222, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48408,7 +52425,7 @@ function tiles_TileMap_isInvalidIndex__P1104_mk(s) { -function tiles_TileMapData_setTile__P1079(s) { +function tiles_TileMapData_setTile__P2308(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48426,8 +52443,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C1073_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P1084_mk(s); + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P2313_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -48474,12 +52491,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_setTile__P1079.info = {"start":4141,"length":315,"line":156,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]} +tiles_TileMapData_setTile__P2308.info = {"start":4207,"length":315,"line":158,"column":8,"endLine":166,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]} -function tiles_TileMapData_setTile__P1079_mk(s) { +function tiles_TileMapData_setTile__P2308_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_setTile__P1079, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_setTile__P2308, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48498,7 +52515,7 @@ function tiles_TileMapData_setTile__P1079_mk(s) { -function tileworld_TileSprite_update__P7463(s) { +function tileworld_TileSprite_update__P9372(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48513,7 +52530,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileSprite__C7459_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0); r0 = s.arg0.fields["dir"]; s.tmp_0 = r0; r0 = (s.arg0).fields["lastDir"] = (s.tmp_0); @@ -48568,7 +52585,7 @@ switch (step) { case 8: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = Sprite_vx__P775_mk(s); + s.tmp_6 = Sprite_vx__P2027_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = s.tmp_5; s.callLocIdx = 290; s.pc = 13; return s.tmp_6; @@ -48600,7 +52617,7 @@ switch (step) { case 12: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = Sprite_vy__P777_mk(s); + s.tmp_6 = Sprite_vy__P2029_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = s.tmp_5; s.callLocIdx = 291; s.pc = 14; return s.tmp_6; @@ -48610,12 +52627,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileSprite_update__P7463.info = {"start":1240,"length":442,"line":30,"column":8,"endLine":36,"endColumn":9,"fileName":"vm.ts","functionName":"update","argumentNames":["this"]} +tileworld_TileSprite_update__P9372.info = {"start":1240,"length":442,"line":30,"column":8,"endLine":36,"endColumn":9,"fileName":"vm.ts","functionName":"update","argumentNames":["this"]} -function tileworld_TileSprite_update__P7463_mk(s) { +function tileworld_TileSprite_update__P9372_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileSprite_update__P7463, depth: s.depth + 1, + parent: s, fn: tileworld_TileSprite_update__P9372, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48631,7 +52648,7 @@ function tileworld_TileSprite_update__P7463_mk(s) { -function tileworld_TileWorldVM_collisionDetection__P7678(s) { +function tileworld_TileWorldVM_collisionDetection__P9580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48641,20 +52658,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rcs___8270 = undefined; - s.wcol___8277 = undefined; - s.wrow___8286 = undefined; - s.tm___8301 = undefined; + s.rcs___10170 = undefined; + s.wcol___10177 = undefined; + s.wrow___10186 = undefined; + s.tm___10201 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.rcs___8270 = (r0); - s.tmp_3 = tileworld_TileWorldVM_moving__P7677_mk(s); + s.rcs___10170 = (r0); + s.tmp_3 = tileworld_TileWorldVM_moving__P9579_mk(s); s.tmp_3.arg0 = s.arg0; s.tmp_3.arg1 = s.arg1; s.callLocIdx = 342; s.pc = 6; return s.tmp_3; @@ -48667,17 +52684,17 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.rcs___8270; + r0 = s.rcs___10170; { step = 5; continue; } case 1: case 2: - s.tmp_5 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_5 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_5.arg0 = s.arg1; s.callLocIdx = 343; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; s.tmp_4 = r0; - s.tmp_7 = tileworld_moveXdelta__P4332_mk(s); + s.tmp_7 = tileworld_moveXdelta__P3618_mk(s); r0 = s.arg1.fields["arg"]; s.tmp_7.arg0 = r0; s.callLocIdx = 344; s.pc = 8; return s.tmp_7; @@ -48685,14 +52702,14 @@ switch (step) { r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_4 + s.tmp_6); - s.wcol___8277 = (r0); - s.tmp_1 = tileworld_TileSprite_row__P7462_mk(s); + s.wcol___10177 = (r0); + s.tmp_1 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 345; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = tileworld_moveYdelta__P4344_mk(s); + s.tmp_3 = tileworld_moveYdelta__P3619_mk(s); r0 = s.arg1.fields["arg"]; s.tmp_3.arg0 = r0; s.callLocIdx = 346; s.pc = 10; return s.tmp_3; @@ -48700,11 +52717,11 @@ switch (step) { r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.wrow___8286 = (r0); - s.tmp_3 = tileworld_TileWorldVM_inBounds__P7684_mk(s); + s.wrow___10186 = (r0); + s.tmp_3 = tileworld_TileWorldVM_inBounds__P9586_mk(s); s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.wcol___8277; - s.tmp_3.arg2 = s.wrow___8286; + s.tmp_3.arg1 = s.wcol___10177; + s.tmp_3.arg2 = s.wrow___10186; s.callLocIdx = 347; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; @@ -48715,42 +52732,42 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = s.rcs___8270; + r0 = s.rcs___10170; { step = 5; continue; } case 3: case 4: - s.tmp_4 = game_currentScene__P961_mk(s); + s.tmp_4 = game_currentScene__P2524_mk(s); s.callLocIdx = 348; s.pc = 12; return s.tmp_4; case 12: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___8301 = (r0); - r0 = pxsim_pxtcore_mkAction(6, inline__P8308); + s.tm___10201 = (r0); + r0 = pxsim_pxtcore_mkAction(6, inline__P10207); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.tm___8301); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.wcol___8277); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.wrow___8286); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.rcs___8270); - s.tmp_1 = tileworld_TileWorldVM_collidingRules__P7676_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.tm___10201); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.wcol___10177); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.wrow___10186); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.rcs___10170); + s.tmp_1 = tileworld_TileWorldVM_collidingRules__P9578_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 386; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = s.rcs___8270; + r0 = s.rcs___10170; case 5: return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_collisionDetection__P7678.info = {"start":13185,"length":3389,"line":310,"column":8,"endLine":375,"endColumn":9,"fileName":"vm.ts","functionName":"collisionDetection","argumentNames":["this","ts"]} +tileworld_TileWorldVM_collisionDetection__P9580.info = {"start":13185,"length":3389,"line":310,"column":8,"endLine":375,"endColumn":9,"fileName":"vm.ts","functionName":"collisionDetection","argumentNames":["this","ts"]} -function tileworld_TileWorldVM_collisionDetection__P7678_mk(s) { +function tileworld_TileWorldVM_collisionDetection__P9580_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_collisionDetection__P7678, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_collisionDetection__P9580, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48760,10 +52777,10 @@ function tileworld_TileWorldVM_collisionDetection__P7678_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - rcs___8270: undefined, - wcol___8277: undefined, - wrow___8286: undefined, - tm___8301: undefined, + rcs___10170: undefined, + wcol___10177: undefined, + wrow___10186: undefined, + tm___10201: undefined, arg0: undefined, arg1: undefined, } } @@ -48772,7 +52789,7 @@ function tileworld_TileWorldVM_collisionDetection__P7678_mk(s) { -function inline__P8308(s) { +function inline__P10207(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48782,18 +52799,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.wd___8310 = undefined; - s.includePassed___8329 = undefined; - s.kind___8330 = undefined; - s.hasInclude___8361 = undefined; - s.kind___8362 = undefined; + s.wd___10209 = undefined; + s.includePassed___10228 = undefined; + s.kind___10229 = undefined; + s.hasInclude___10260 = undefined; + s.kind___10261 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = tileworld_moveXdelta__P4332_mk(s); + s.tmp_2 = tileworld_moveXdelta__P3618_mk(s); r0 = s.caps[0].fields["arg"]; s.tmp_2.arg0 = r0; s.callLocIdx = 349; s.pc = 17; return s.tmp_2; @@ -48802,7 +52819,7 @@ switch (step) { s.tmp_1 = r0; r0 = (2 + s.tmp_1); s.tmp_0.arg1 = r0; - s.tmp_4 = tileworld_moveYdelta__P4344_mk(s); + s.tmp_4 = tileworld_moveYdelta__P3619_mk(s); r0 = s.caps[0].fields["arg"]; s.tmp_4.arg0 = r0; s.callLocIdx = 350; s.pc = 18; return s.tmp_4; @@ -48814,18 +52831,18 @@ switch (step) { s.callLocIdx = 351; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.wd___8310 = (r0); - r0 = (s.wd___8310 == -1); + s.wd___10209 = (r0); + r0 = (s.wd___10209 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } { step = 15; continue; } case 1: case 2: - s.includePassed___8329 = (false); - s.kind___8330 = (0); + s.includePassed___10228 = (false); + s.kind___10229 = (0); case 3: - s.tmp_1 = r0 = s.kind___8330; + s.tmp_1 = r0 = s.kind___10229; r0 = s.caps[1].fields["p"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_backgroundsI"]; @@ -48836,10 +52853,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.tmp_7 = tileworld_RuleView_getSetBgAttr__P4993_mk(s); + s.tmp_7 = tileworld_RuleView_getSetBgAttr__P3647_mk(s); s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.wd___8310; - s.tmp_7.arg2 = s.kind___8330; + s.tmp_7.arg1 = s.wd___10209; + s.tmp_7.arg2 = s.kind___10229; s.tmp_7.arg3 = 65535; s.callLocIdx = 353; s.pc = 19; return s.tmp_7; case 19: @@ -48849,23 +52866,23 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 6; continue; } - s.tmp_10 = tiles_TileMap__C1086_v8_3_mk(s); + s.tmp_10 = tiles_TileMap__C2314_v8_3_mk(s); s.tmp_10.arg0 = s.caps[2]; s.tmp_10.arg1 = s.caps[3]; s.tmp_10.arg2 = s.caps[4]; - if (!checkSubtype(s.tmp_10.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_10.arg0); + if (!checkSubtype(s.tmp_10.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_10.arg0); s.tmp_10.fn = s.tmp_10.arg0.vtable.methods.getTileIndex; s.pc = 20; return s.tmp_10; case 20: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 == s.kind___8330); + r0 = (s.tmp_9 == s.kind___10229); s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C7659_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C9561_VT); s.tmp_11 = r0; - s.tmp_12 = tileworld_RuleClosure_constructor__P7660_mk(s); + s.tmp_12 = tileworld_RuleClosure_constructor__P9562_mk(s); s.tmp_12.arg0 = s.tmp_11; s.tmp_12.arg1 = s.arg0; s.tmp_12.arg2 = s.caps[0]; @@ -48880,14 +52897,14 @@ switch (step) { case 5: case 6: case 7: - r0 = (s.kind___8330 + 1); - s.kind___8330 = (r0); + r0 = (s.kind___10229 + 1); + s.kind___10229 = (r0); { step = 3; continue; } case 8: - s.hasInclude___8361 = (false); - s.kind___8362 = (0); + s.hasInclude___10260 = (false); + s.kind___10261 = (0); case 9: - s.tmp_1 = r0 = s.kind___8362; + s.tmp_1 = r0 = s.kind___10261; r0 = s.caps[1].fields["p"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_spritesI"]; @@ -48898,10 +52915,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - s.tmp_7 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); + s.tmp_7 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.wd___8310; - s.tmp_7.arg2 = s.kind___8362; + s.tmp_7.arg1 = s.wd___10209; + s.tmp_7.arg2 = s.kind___10261; s.tmp_7.arg3 = 65535; s.callLocIdx = 356; s.pc = 22; return s.tmp_7; case 22: @@ -48911,14 +52928,14 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 10; continue; } - s.hasInclude___8361 = (true); + s.hasInclude___10260 = (true); case 10: case 11: - r0 = (s.kind___8362 + 1); - s.kind___8362 = (r0); + r0 = (s.kind___10261 + 1); + s.kind___10261 = (r0); { step = 9; continue; } case 12: - r0 = pxsim_numops_toBoolDecr(s.hasInclude___8361); + r0 = pxsim_numops_toBoolDecr(s.hasInclude___10260); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -48927,16 +52944,16 @@ switch (step) { { step = 15; continue; } case 13: case 14: - r0 = pxsim_pxtcore_mkAction(7, inline__P8382); + r0 = pxsim_pxtcore_mkAction(7, inline__P10281); s.tmp_2 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.caps[0]); r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_2, 2, s.wd___8310); + r0 = pxsim_pxtrt_stclo(s.tmp_2, 2, s.wd___10209); r0 = pxsim_pxtrt_stclo(s.tmp_2, 3, s.caps[3]); r0 = pxsim_pxtrt_stclo(s.tmp_2, 4, s.caps[4]); r0 = pxsim_pxtrt_stclo(s.tmp_2, 5, s.caps[1]); r0 = pxsim_pxtrt_stclo(s.tmp_2, 6, s.caps[5]); - s.tmp_3 = tileworld_TileWorldVM_allSprites__P7670_mk(s); + s.tmp_3 = tileworld_TileWorldVM_allSprites__P9572_mk(s); s.tmp_3.arg0 = s.caps[1]; s.tmp_3.arg1 = s.tmp_2; s.callLocIdx = 385; s.pc = 23; return s.tmp_3; @@ -48947,12 +52964,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8308.info = {"start":13585,"length":2953,"line":318,"column":36,"endLine":373,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} +inline__P10207.info = {"start":13585,"length":2953,"line":318,"column":36,"endLine":373,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} -function inline__P8308_mk(s) { +function inline__P10207_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8308, depth: s.depth + 1, + parent: s, fn: inline__P10207, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -48967,11 +52984,11 @@ function inline__P8308_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - wd___8310: undefined, - includePassed___8329: undefined, - kind___8330: undefined, - hasInclude___8361: undefined, - kind___8362: undefined, + wd___10209: undefined, + includePassed___10228: undefined, + kind___10229: undefined, + hasInclude___10260: undefined, + kind___10261: undefined, arg0: undefined, } } @@ -48979,7 +52996,7 @@ function inline__P8308_mk(s) { -function inline__P8382(s) { +function inline__P10281(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -48989,10 +53006,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftRotate___8424 = undefined; - s.osCol___8429 = undefined; - s.osRow___8435 = undefined; - s.rightRotate___8462 = undefined; + s.leftRotate___10323 = undefined; + s.osCol___10328 = undefined; + s.osRow___10334 = undefined; + s.rightRotate___10361 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -49004,7 +53021,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); + s.tmp_2 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); s.tmp_2.arg0 = s.caps[1]; s.tmp_2.arg1 = s.caps[2]; r0 = s.arg0.fields["_kind"]; @@ -49023,7 +53040,7 @@ switch (step) { { step = 33; continue; } case 3: case 4: - s.tmp_6 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_6 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 359; s.pc = 35; return s.tmp_6; case 35: @@ -49036,7 +53053,7 @@ switch (step) { r0 = s.tmp_4; { step = 6; continue; } case 5: - s.tmp_8 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_8 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_8.arg0 = s.arg0; s.callLocIdx = 360; s.pc = 36; return s.tmp_8; case 36: @@ -49048,7 +53065,7 @@ switch (step) { s.tmp_9 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 11; continue; } - s.tmp_13 = tileworld_TileWorldVM_moving__P7677_mk(s); + s.tmp_13 = tileworld_TileWorldVM_moving__P9579_mk(s); s.tmp_13.arg0 = s.caps[5]; s.tmp_13.arg1 = s.arg0; s.callLocIdx = 361; s.pc = 37; return s.tmp_13; @@ -49078,7 +53095,7 @@ switch (step) { s.tmp_18 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_18); if (!r0) { step = 9; continue; } - s.tmp_19 = tileworld_TileWorldVM_collide__P7680_mk(s); + s.tmp_19 = tileworld_TileWorldVM_collide__P9582_mk(s); s.tmp_19.arg0 = s.caps[5]; s.tmp_19.arg1 = s.caps[1]; s.tmp_19.arg2 = s.caps[0]; @@ -49091,7 +53108,7 @@ switch (step) { case 10: case 11: case 12: - s.tmp_1 = tileworld_TileWorldVM_moving__P7677_mk(s); + s.tmp_1 = tileworld_TileWorldVM_moving__P9579_mk(s); s.tmp_1.arg0 = s.caps[5]; s.tmp_1.arg1 = s.arg0; s.callLocIdx = 364; s.pc = 39; return s.tmp_1; @@ -49100,52 +53117,52 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - s.tmp_2 = tileworld_flipRotateDir__P4366_mk(s); + s.tmp_2 = tileworld_flipRotateDir__P3621_mk(s); r0 = s.caps[0].fields["arg"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 3; s.callLocIdx = 365; s.pc = 40; return s.tmp_2; case 40: r0 = s.retval; - s.leftRotate___8424 = (r0); + s.leftRotate___10323 = (r0); s.tmp_0 = r0 = s.caps[3]; - s.tmp_2 = tileworld_moveXdelta__P4332_mk(s); - s.tmp_2.arg0 = s.leftRotate___8424; + s.tmp_2 = tileworld_moveXdelta__P3618_mk(s); + s.tmp_2.arg0 = s.leftRotate___10323; s.callLocIdx = 366; s.pc = 41; return s.tmp_2; case 41: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.osCol___8429 = (r0); + s.osCol___10328 = (r0); s.tmp_0 = r0 = s.caps[4]; - s.tmp_2 = tileworld_moveYdelta__P4344_mk(s); - s.tmp_2.arg0 = s.leftRotate___8424; + s.tmp_2 = tileworld_moveYdelta__P3619_mk(s); + s.tmp_2.arg0 = s.leftRotate___10323; s.callLocIdx = 367; s.pc = 42; return s.tmp_2; case 42: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.osRow___8435 = (r0); - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.osRow___10334 = (r0); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 368; s.pc = 43; return s.tmp_2; case 43: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.osCol___8429); + r0 = (s.tmp_1 == s.osCol___10328); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 13; continue; } r0 = s.tmp_0; { step = 14; continue; } case 13: - s.tmp_4 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 369; s.pc = 44; return s.tmp_4; case 44: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 == s.osRow___8435); + r0 = (s.tmp_3 == s.osRow___10334); case 14: // jmp value (already in r0) s.tmp_5 = r0; @@ -49156,7 +53173,7 @@ switch (step) { case 15: r0 = s.arg0.fields["arg"]; s.tmp_6 = r0; - r0 = (s.leftRotate___8424 + 2); + r0 = (s.leftRotate___10323 + 2); s.tmp_8 = r0; r0 = (s.tmp_8 % 4); s.tmp_7 = r0; @@ -49166,7 +53183,7 @@ switch (step) { s.tmp_9 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 17; continue; } - s.tmp_10 = tileworld_TileWorldVM_collide__P7680_mk(s); + s.tmp_10 = tileworld_TileWorldVM_collide__P9582_mk(s); s.tmp_10.arg0 = s.caps[5]; s.tmp_10.arg1 = s.caps[1]; s.tmp_10.arg2 = s.caps[0]; @@ -49177,52 +53194,52 @@ switch (step) { r0 = s.retval; case 17: case 18: - s.tmp_0 = tileworld_flipRotateDir__P4366_mk(s); + s.tmp_0 = tileworld_flipRotateDir__P3621_mk(s); r0 = s.caps[0].fields["arg"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 5; s.callLocIdx = 372; s.pc = 46; return s.tmp_0; case 46: r0 = s.retval; - s.rightRotate___8462 = (r0); + s.rightRotate___10361 = (r0); s.tmp_0 = r0 = s.caps[3]; - s.tmp_2 = tileworld_moveXdelta__P4332_mk(s); - s.tmp_2.arg0 = s.rightRotate___8462; + s.tmp_2 = tileworld_moveXdelta__P3618_mk(s); + s.tmp_2.arg0 = s.rightRotate___10361; s.callLocIdx = 373; s.pc = 47; return s.tmp_2; case 47: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.osCol___8429 = (r0); + s.osCol___10328 = (r0); s.tmp_0 = r0 = s.caps[4]; - s.tmp_2 = tileworld_moveYdelta__P4344_mk(s); - s.tmp_2.arg0 = s.rightRotate___8462; + s.tmp_2 = tileworld_moveYdelta__P3619_mk(s); + s.tmp_2.arg0 = s.rightRotate___10361; s.callLocIdx = 374; s.pc = 48; return s.tmp_2; case 48: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.osRow___8435 = (r0); - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.osRow___10334 = (r0); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 375; s.pc = 49; return s.tmp_2; case 49: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.osCol___8429); + r0 = (s.tmp_1 == s.osCol___10328); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 19; continue; } r0 = s.tmp_0; { step = 20; continue; } case 19: - s.tmp_4 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 376; s.pc = 50; return s.tmp_4; case 50: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 == s.osRow___8435); + r0 = (s.tmp_3 == s.osRow___10334); case 20: // jmp value (already in r0) s.tmp_5 = r0; @@ -49233,7 +53250,7 @@ switch (step) { case 21: r0 = s.arg0.fields["arg"]; s.tmp_6 = r0; - r0 = (s.rightRotate___8462 + 2); + r0 = (s.rightRotate___10361 + 2); s.tmp_8 = r0; r0 = (s.tmp_8 % 4); s.tmp_7 = r0; @@ -49243,7 +53260,7 @@ switch (step) { s.tmp_9 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 23; continue; } - s.tmp_10 = tileworld_TileWorldVM_collide__P7680_mk(s); + s.tmp_10 = tileworld_TileWorldVM_collide__P9582_mk(s); s.tmp_10.arg0 = s.caps[5]; s.tmp_10.arg1 = s.caps[1]; s.tmp_10.arg2 = s.caps[0]; @@ -49255,7 +53272,7 @@ switch (step) { case 23: case 24: s.tmp_0 = r0 = s.caps[3]; - s.tmp_2 = tileworld_moveXdelta__P4332_mk(s); + s.tmp_2 = tileworld_moveXdelta__P3618_mk(s); r0 = s.caps[0].fields["arg"]; s.tmp_2.arg0 = r0; s.callLocIdx = 379; s.pc = 52; return s.tmp_2; @@ -49263,9 +53280,9 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.osCol___8429 = (r0); + s.osCol___10328 = (r0); s.tmp_0 = r0 = s.caps[4]; - s.tmp_2 = tileworld_moveYdelta__P4344_mk(s); + s.tmp_2 = tileworld_moveYdelta__P3619_mk(s); r0 = s.caps[0].fields["arg"]; s.tmp_2.arg0 = r0; s.callLocIdx = 380; s.pc = 53; return s.tmp_2; @@ -49273,27 +53290,27 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.osRow___8435 = (r0); - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.osRow___10334 = (r0); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 381; s.pc = 54; return s.tmp_2; case 54: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.osCol___8429); + r0 = (s.tmp_1 == s.osCol___10328); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 25; continue; } r0 = s.tmp_0; { step = 26; continue; } case 25: - s.tmp_4 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 382; s.pc = 55; return s.tmp_4; case 55: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 == s.osRow___8435); + r0 = (s.tmp_3 == s.osRow___10334); case 26: // jmp value (already in r0) s.tmp_5 = r0; @@ -49316,7 +53333,7 @@ switch (step) { s.tmp_10 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_10); if (!r0) { step = 29; continue; } - s.tmp_11 = tileworld_TileWorldVM_collide__P7680_mk(s); + s.tmp_11 = tileworld_TileWorldVM_collide__P9582_mk(s); s.tmp_11.arg0 = s.caps[5]; s.tmp_11.arg1 = s.caps[1]; s.tmp_11.arg2 = s.caps[0]; @@ -49334,12 +53351,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8382.info = {"start":14832,"length":1690,"line":343,"column":32,"endLine":372,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["os"]} +inline__P10281.info = {"start":14832,"length":1690,"line":343,"column":32,"endLine":372,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["os"]} -function inline__P8382_mk(s) { +function inline__P10281_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8382, depth: s.depth + 1, + parent: s, fn: inline__P10281, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49361,10 +53378,10 @@ function inline__P8382_mk(s) { tmp_17: undefined, tmp_18: undefined, tmp_19: undefined, - leftRotate___8424: undefined, - osCol___8429: undefined, - osRow___8435: undefined, - rightRotate___8462: undefined, + leftRotate___10323: undefined, + osCol___10328: undefined, + osRow___10334: undefined, + rightRotate___10361: undefined, arg0: undefined, } } @@ -49372,7 +53389,7 @@ function inline__P8382_mk(s) { -function tileworld_TileWorldVM_collide__P7680(s) { +function tileworld_TileWorldVM_collide__P9582(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49391,13 +53408,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C7659_VT); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C9561_VT); s.tmp_0 = r0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_1, s.arg3); - s.tmp_2 = tileworld_RuleClosure_constructor__P7660_mk(s); + s.tmp_2 = tileworld_RuleClosure_constructor__P9562_mk(s); s.tmp_2.arg0 = s.tmp_0; s.tmp_2.arg1 = s.arg1; s.tmp_2.arg2 = s.arg2; @@ -49410,12 +53427,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_collide__P7680.info = {"start":16649,"length":150,"line":381,"column":8,"endLine":383,"endColumn":9,"fileName":"vm.ts","functionName":"collide","argumentNames":["this","rv","ts","os","rcs"]} +tileworld_TileWorldVM_collide__P9582.info = {"start":16649,"length":150,"line":381,"column":8,"endLine":383,"endColumn":9,"fileName":"vm.ts","functionName":"collide","argumentNames":["this","rv","ts","os","rcs"]} -function tileworld_TileWorldVM_collide__P7680_mk(s) { +function tileworld_TileWorldVM_collide__P9582_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_collide__P7680, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_collide__P9582, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49431,7 +53448,7 @@ function tileworld_TileWorldVM_collide__P7680_mk(s) { -function tileworld_oppDir__P4356(s) { +function tileworld_oppDir__P3620(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49454,12 +53471,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_oppDir__P4356.info = {"start":5124,"length":109,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"rule.ts","functionName":"oppDir","argumentNames":["dir","dir2"]} +tileworld_oppDir__P3620.info = {"start":5124,"length":109,"line":140,"column":4,"endLine":142,"endColumn":5,"fileName":"rule.ts","functionName":"oppDir","argumentNames":["dir","dir2"]} -function tileworld_oppDir__P4356_mk(s) { +function tileworld_oppDir__P3620_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_oppDir__P4356, depth: s.depth + 1, + parent: s, fn: tileworld_oppDir__P3620, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49471,7 +53488,7 @@ function tileworld_oppDir__P4356_mk(s) { -function tileworld_TileWorldVM_collidingRules__P7676(s) { +function tileworld_TileWorldVM_collidingRules__P9578(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49488,13 +53505,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P8244); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(3, inline__P10144); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["ruleIndex"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, 2); @@ -49507,12 +53524,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_collidingRules__P7676.info = {"start":12435,"length":308,"line":293,"column":8,"endLine":299,"endColumn":9,"fileName":"vm.ts","functionName":"collidingRules","argumentNames":["this","ts","handler"]} +tileworld_TileWorldVM_collidingRules__P9578.info = {"start":12435,"length":308,"line":293,"column":8,"endLine":299,"endColumn":9,"fileName":"vm.ts","functionName":"collidingRules","argumentNames":["this","ts","handler"]} -function tileworld_TileWorldVM_collidingRules__P7676_mk(s) { +function tileworld_TileWorldVM_collidingRules__P9578_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_collidingRules__P7676, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_collidingRules__P9578, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49526,7 +53543,7 @@ function tileworld_TileWorldVM_collidingRules__P7676_mk(s) { -function inline__P8244(s) { +function inline__P10144(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49540,7 +53557,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = tileworld_TileWorldVM_ruleMatchesSprite__P7672_mk(s); + s.tmp_1 = tileworld_TileWorldVM_ruleMatchesSprite__P9574_mk(s); s.tmp_1.arg0 = s.caps[0]; s.tmp_1.arg1 = s.arg0; s.tmp_1.arg2 = s.caps[1]; @@ -49553,7 +53570,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = tileworld_TileWorldVM_ruleMatchesDirection__P7674_mk(s); + s.tmp_2 = tileworld_TileWorldVM_ruleMatchesDirection__P9576_mk(s); s.tmp_2.arg0 = s.caps[0]; s.tmp_2.arg1 = s.arg0; r0 = s.caps[1].fields["arg"]; @@ -49579,12 +53596,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8244.info = {"start":12564,"length":167,"line":294,"column":55,"endLine":298,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} +inline__P10144.info = {"start":12564,"length":167,"line":294,"column":55,"endLine":298,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} -function inline__P8244_mk(s) { +function inline__P10144_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8244, depth: s.depth + 1, + parent: s, fn: inline__P10144, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49598,7 +53615,7 @@ function inline__P8244_mk(s) { -function tileworld_TileWorldVM_ruleMatchesDirection__P7674(s) { +function tileworld_TileWorldVM_ruleMatchesDirection__P9576(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49615,10 +53632,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - s.tmp_0 = tileworld_TileWorldVM_exprMatchesDirection__P7673_mk(s); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + s.tmp_0 = tileworld_TileWorldVM_exprMatchesDirection__P9575_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = tileworld_RuleView_getDirFromRule__P4987_mk(s); + s.tmp_1 = tileworld_RuleView_getDirFromRule__P3642_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 331; s.pc = 2; return s.tmp_1; case 2: @@ -49631,12 +53648,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_ruleMatchesDirection__P7674.info = {"start":11615,"length":141,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"vm.ts","functionName":"ruleMatchesDirection","argumentNames":["this","rv","dir"]} +tileworld_TileWorldVM_ruleMatchesDirection__P9576.info = {"start":11615,"length":141,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"vm.ts","functionName":"ruleMatchesDirection","argumentNames":["this","rv","dir"]} -function tileworld_TileWorldVM_ruleMatchesDirection__P7674_mk(s) { +function tileworld_TileWorldVM_ruleMatchesDirection__P9576_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_ruleMatchesDirection__P7674, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_ruleMatchesDirection__P9576, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49649,7 +53666,7 @@ function tileworld_TileWorldVM_ruleMatchesDirection__P7674_mk(s) { -function tileworld_TileWorldVM_exprMatchesDirection__P7673(s) { +function tileworld_TileWorldVM_exprMatchesDirection__P9575(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49666,7 +53683,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = (s.arg1 == 6); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -49702,12 +53719,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_exprMatchesDirection__P7673.info = {"start":11430,"length":175,"line":270,"column":8,"endLine":272,"endColumn":9,"fileName":"vm.ts","functionName":"exprMatchesDirection","argumentNames":["this","dirExpr","dir"]} +tileworld_TileWorldVM_exprMatchesDirection__P9575.info = {"start":11430,"length":175,"line":270,"column":8,"endLine":272,"endColumn":9,"fileName":"vm.ts","functionName":"exprMatchesDirection","argumentNames":["this","dirExpr","dir"]} -function tileworld_TileWorldVM_exprMatchesDirection__P7673_mk(s) { +function tileworld_TileWorldVM_exprMatchesDirection__P9575_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_exprMatchesDirection__P7673, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_exprMatchesDirection__P9575, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49723,7 +53740,7 @@ function tileworld_TileWorldVM_exprMatchesDirection__P7673_mk(s) { -function tileworld_TileWorldVM_ruleMatchesSprite__P7672(s) { +function tileworld_TileWorldVM_ruleMatchesSprite__P9574(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49740,8 +53757,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - s.tmp_1 = tileworld_RuleView_hasSpriteKind__P5006_mk(s); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + s.tmp_1 = tileworld_RuleView_hasSpriteKind__P3660_mk(s); s.tmp_1.arg0 = s.arg1; r0 = s.arg2.fields["_kind"]; s.tmp_1.arg1 = r0; @@ -49769,12 +53786,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_ruleMatchesSprite__P7672.info = {"start":11250,"length":170,"line":266,"column":8,"endLine":268,"endColumn":9,"fileName":"vm.ts","functionName":"ruleMatchesSprite","argumentNames":["this","rv","ts"]} +tileworld_TileWorldVM_ruleMatchesSprite__P9574.info = {"start":11250,"length":170,"line":266,"column":8,"endLine":268,"endColumn":9,"fileName":"vm.ts","functionName":"ruleMatchesSprite","argumentNames":["this","rv","ts"]} -function tileworld_TileWorldVM_ruleMatchesSprite__P7672_mk(s) { +function tileworld_TileWorldVM_ruleMatchesSprite__P9574_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_ruleMatchesSprite__P7672, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_ruleMatchesSprite__P9574, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49791,7 +53808,7 @@ function tileworld_TileWorldVM_ruleMatchesSprite__P7672_mk(s) { -function tileworld_TileWorldVM_inBounds__P7684(s) { +function tileworld_TileWorldVM_inBounds__P9586(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49808,7 +53825,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = (0 <= s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -49854,12 +53871,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_inBounds__P7684.info = {"start":20656,"length":177,"line":471,"column":8,"endLine":474,"endColumn":9,"fileName":"vm.ts","functionName":"inBounds","argumentNames":["this","col","row"]} +tileworld_TileWorldVM_inBounds__P9586.info = {"start":20656,"length":177,"line":471,"column":8,"endLine":474,"endColumn":9,"fileName":"vm.ts","functionName":"inBounds","argumentNames":["this","col","row"]} -function tileworld_TileWorldVM_inBounds__P7684_mk(s) { +function tileworld_TileWorldVM_inBounds__P9586_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_inBounds__P7684, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_inBounds__P9586, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49880,7 +53897,7 @@ function tileworld_TileWorldVM_inBounds__P7684_mk(s) { -function tileworld_TileWorldVM_moving__P7677(s) { +function tileworld_TileWorldVM_moving__P9579(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49896,7 +53913,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = s.arg1.fields["inst"]; s.tmp_1 = r0; r0 = (s.tmp_1 == 0); @@ -49916,12 +53933,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_moving__P7677.info = {"start":12838,"length":115,"line":302,"column":8,"endLine":304,"endColumn":9,"fileName":"vm.ts","functionName":"moving","argumentNames":["this","ts"]} +tileworld_TileWorldVM_moving__P9579.info = {"start":12838,"length":115,"line":302,"column":8,"endLine":304,"endColumn":9,"fileName":"vm.ts","functionName":"moving","argumentNames":["this","ts"]} -function tileworld_TileWorldVM_moving__P7677_mk(s) { +function tileworld_TileWorldVM_moving__P9579_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_moving__P7677, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_moving__P9579, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -49935,7 +53952,7 @@ function tileworld_TileWorldVM_moving__P7677_mk(s) { -function tileworld_TileWorldVM_contextChanged__P7671(s) { +function tileworld_TileWorldVM_contextChanged__P9573(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -49945,37 +53962,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___8090 = undefined; - s.j___8096 = undefined; - s.x___8110 = undefined; - s.y___8116 = undefined; + s.i___9990 = undefined; + s.j___9996 = undefined; + s.x___10010 = undefined; + s.y___10016 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - s.i___8090 = (-2); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + s.i___9990 = (-2); case 1: - r0 = (s.i___8090 <= 2); + r0 = (s.i___9990 <= 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - s.j___8096 = (-2); + s.j___9996 = (-2); case 2: - r0 = (s.j___8096 <= 2); + r0 = (s.j___9996 <= 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.tmp_4 = Math_abs__P76_mk(s); - s.tmp_4.arg0 = s.i___8090; + s.tmp_4 = Math_abs__P120_mk(s); + s.tmp_4.arg0 = s.i___9990; s.callLocIdx = 323; s.pc = 12; return s.tmp_4; case 12: r0 = s.retval; s.tmp_3 = r0; - s.tmp_6 = Math_abs__P76_mk(s); - s.tmp_6.arg0 = s.j___8096; + s.tmp_6 = Math_abs__P120_mk(s); + s.tmp_6.arg0 = s.j___9996; s.callLocIdx = 324; s.pc = 13; return s.tmp_6; case 13: r0 = s.retval; @@ -49986,26 +54003,26 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - s.tmp_8 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_8 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_8.arg0 = s.arg1; s.callLocIdx = 325; s.pc = 14; return s.tmp_8; case 14: r0 = s.retval; s.tmp_7 = r0; - r0 = (s.tmp_7 + s.i___8090); - s.x___8110 = (r0); - s.tmp_1 = tileworld_TileSprite_row__P7462_mk(s); + r0 = (s.tmp_7 + s.i___9990); + s.x___10010 = (r0); + s.tmp_1 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 326; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 + s.j___8096); - s.y___8116 = (r0); - s.tmp_1 = tileworld_TileWorldVM_inBounds__P7684_mk(s); + r0 = (s.tmp_0 + s.j___9996); + s.y___10016 = (r0); + s.tmp_1 = tileworld_TileWorldVM_inBounds__P9586_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.x___8110; - s.tmp_1.arg2 = s.y___8116; + s.tmp_1.arg1 = s.x___10010; + s.tmp_1.arg2 = s.y___10016; s.callLocIdx = 327; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; @@ -50018,7 +54035,7 @@ switch (step) { r0 = s.arg0.fields["vm"]; r0 = r0.fields["changed"]; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_2, s.x___8110, s.y___8116); + r0 = pxsim_ImageMethods.getPixel(s.tmp_2, s.x___10010, s.y___10016); case 4: // jmp value (already in r0) s.tmp_3 = r0; @@ -50030,12 +54047,12 @@ switch (step) { case 6: case 7: case 8: - r0 = (s.j___8096 + 1); - s.j___8096 = (r0); + r0 = (s.j___9996 + 1); + s.j___9996 = (r0); { step = 2; continue; } case 9: - r0 = (s.i___8090 + 1); - s.i___8090 = (r0); + r0 = (s.i___9990 + 1); + s.i___9990 = (r0); { step = 1; continue; } case 10: r0 = false; @@ -50043,12 +54060,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_contextChanged__P7671.info = {"start":10713,"length":527,"line":251,"column":8,"endLine":264,"endColumn":9,"fileName":"vm.ts","functionName":"contextChanged","argumentNames":["this","ts"]} +tileworld_TileWorldVM_contextChanged__P9573.info = {"start":10713,"length":527,"line":251,"column":8,"endLine":264,"endColumn":9,"fileName":"vm.ts","functionName":"contextChanged","argumentNames":["this","ts"]} -function tileworld_TileWorldVM_contextChanged__P7671_mk(s) { +function tileworld_TileWorldVM_contextChanged__P9573_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_contextChanged__P7671, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_contextChanged__P9573, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50059,10 +54076,10 @@ function tileworld_TileWorldVM_contextChanged__P7671_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - i___8090: undefined, - j___8096: undefined, - x___8110: undefined, - y___8116: undefined, + i___9990: undefined, + j___9996: undefined, + x___10010: undefined, + y___10016: undefined, arg0: undefined, arg1: undefined, } } @@ -50071,7 +54088,7 @@ function tileworld_TileWorldVM_contextChanged__P7671_mk(s) { -function tileworld_TileWorldVM_applyRules__P7675(s) { +function tileworld_TileWorldVM_applyRules__P9577(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50081,7 +54098,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ruleClosures___8190 = undefined; + s.ruleClosures___10090 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -50089,16 +54106,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.ruleClosures___8190 = (r0); - r0 = pxsim_pxtcore_mkAction(4, inline__P8196); + s.ruleClosures___10090 = (r0); + r0 = pxsim_pxtcore_mkAction(4, inline__P10096); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg2); r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.ruleClosures___8190); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.ruleClosures___10090); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["ruleIndex"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); @@ -50107,21 +54124,21 @@ switch (step) { s.callLocIdx = 337; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = s.ruleClosures___8190; + r0 = s.ruleClosures___10090; return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_applyRules__P7675.info = {"start":11766,"length":623,"line":278,"column":8,"endLine":290,"endColumn":9,"fileName":"vm.ts","functionName":"applyRules","argumentNames":["this","phase","ts"]} +tileworld_TileWorldVM_applyRules__P9577.info = {"start":11766,"length":623,"line":278,"column":8,"endLine":290,"endColumn":9,"fileName":"vm.ts","functionName":"applyRules","argumentNames":["this","phase","ts"]} -function tileworld_TileWorldVM_applyRules__P7675_mk(s) { +function tileworld_TileWorldVM_applyRules__P9577_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_applyRules__P7675, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_applyRules__P9577, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ruleClosures___8190: undefined, + ruleClosures___10090: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -50131,7 +54148,7 @@ function tileworld_TileWorldVM_applyRules__P7675_mk(s) { -function inline__P8196(s) { +function inline__P10096(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50141,12 +54158,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.closure___8227 = undefined; + s.closure___10127 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = tileworld_TileWorldVM_ruleMatchesSprite__P7672_mk(s); + s.tmp_1 = tileworld_TileWorldVM_ruleMatchesSprite__P9574_mk(s); s.tmp_1.arg0 = s.caps[0]; s.tmp_1.arg1 = s.arg0; s.tmp_1.arg2 = s.caps[1]; @@ -50166,7 +54183,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - s.tmp_3 = tileworld_TileWorldVM_ruleMatchesDirection__P7674_mk(s); + s.tmp_3 = tileworld_TileWorldVM_ruleMatchesDirection__P9576_mk(s); s.tmp_3.arg0 = s.caps[0]; s.tmp_3.arg1 = s.arg0; r0 = s.caps[1].fields["dir"]; @@ -50191,7 +54208,7 @@ switch (step) { case 5: r0 = s.caps[0].fields["dpad"]; s.tmp_7 = r0; - s.tmp_9 = tileworld_RuleView_getRuleArg__P4985_mk(s); + s.tmp_9 = tileworld_RuleView_getRuleArg__P3640_mk(s); s.tmp_9.arg0 = s.arg0; s.callLocIdx = 335; s.pc = 15; return s.tmp_9; case 15: @@ -50213,17 +54230,17 @@ switch (step) { s.tmp_12 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_12); if (!r0) { step = 11; continue; } - s.tmp_13 = tileworld_TileWorldVM_evaluateRule__P7682_mk(s); + s.tmp_13 = tileworld_TileWorldVM_evaluateRule__P9584_mk(s); s.tmp_13.arg0 = s.caps[0]; s.tmp_13.arg1 = s.caps[1]; s.tmp_13.arg2 = s.arg0; s.callLocIdx = 336; s.pc = 16; return s.tmp_13; case 16: r0 = s.retval; - s.closure___8227 = (r0); - r0 = pxsim_numops_toBoolDecr(s.closure___8227); + s.closure___10127 = (r0); + r0 = pxsim_numops_toBoolDecr(s.closure___10127); if (!r0) { step = 9; continue; } - r0 = pxsim_Array__push(s.caps[3], s.closure___8227); + r0 = pxsim_Array__push(s.caps[3], s.closure___10127); case 9: case 10: case 11: @@ -50232,12 +54249,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8196.info = {"start":11912,"length":432,"line":280,"column":42,"endLine":288,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} +inline__P10096.info = {"start":11912,"length":432,"line":280,"column":42,"endLine":288,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} -function inline__P8196_mk(s) { +function inline__P10096_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8196, depth: s.depth + 1, + parent: s, fn: inline__P10096, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50253,7 +54270,7 @@ function inline__P8196_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - closure___8227: undefined, + closure___10127: undefined, arg0: undefined, } } @@ -50261,7 +54278,7 @@ function inline__P8196_mk(s) { -function tileworld_TileWorldVM_evaluateRule__P7682(s) { +function tileworld_TileWorldVM_evaluateRule__P9584(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50271,9 +54288,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.witnesses___8763 = undefined; - s.col___8765 = undefined; - s.row___8769 = undefined; + s.witnesses___10658 = undefined; + s.col___10660 = undefined; + s.row___10664 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -50281,28 +54298,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.witnesses___8763 = (r0); - s.col___8765 = (1); + s.witnesses___10658 = (r0); + s.col___10660 = (1); case 1: - r0 = (s.col___8765 <= 3); + r0 = (s.col___10660 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.row___8769 = (1); + s.row___10664 = (1); case 2: - r0 = (s.row___8769 <= 3); + r0 = (s.row___10664 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_4 = tileworld_TileWorldVM_evaluateWhenDo__P7685_mk(s); + s.tmp_4 = tileworld_TileWorldVM_evaluateWhenDo__P9587_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; s.tmp_4.arg2 = s.arg2; - s.tmp_4.arg3 = s.col___8765; - s.tmp_4.arg4 = s.row___8769; - s.tmp_4.arg5 = s.witnesses___8763; + s.tmp_4.arg3 = s.col___10660; + s.tmp_4.arg4 = s.row___10664; + s.tmp_4.arg5 = s.witnesses___10658; s.callLocIdx = 408; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; @@ -50317,21 +54334,21 @@ switch (step) { { step = 7; continue; } case 3: case 4: - r0 = (s.row___8769 + 1); - s.row___8769 = (r0); + r0 = (s.row___10664 + 1); + s.row___10664 = (r0); { step = 2; continue; } case 5: - r0 = (s.col___8765 + 1); - s.col___8765 = (r0); + r0 = (s.col___10660 + 1); + s.col___10660 = (r0); { step = 1; continue; } case 6: - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C7659_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleClosure__C9561_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_RuleClosure_constructor__P7660_mk(s); + s.tmp_1 = tileworld_RuleClosure_constructor__P9562_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg2; s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.witnesses___8763; + s.tmp_1.arg3 = s.witnesses___10658; s.callLocIdx = 409; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; @@ -50340,21 +54357,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_evaluateRule__P7682.info = {"start":19706,"length":726,"line":449,"column":8,"endLine":464,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateRule","argumentNames":["this","ts","rv"]} +tileworld_TileWorldVM_evaluateRule__P9584.info = {"start":19706,"length":726,"line":449,"column":8,"endLine":464,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateRule","argumentNames":["this","ts","rv"]} -function tileworld_TileWorldVM_evaluateRule__P7682_mk(s) { +function tileworld_TileWorldVM_evaluateRule__P9584_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_evaluateRule__P7682, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_evaluateRule__P9584, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - witnesses___8763: undefined, - col___8765: undefined, - row___8769: undefined, + witnesses___10658: undefined, + col___10660: undefined, + row___10664: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -50364,7 +54381,7 @@ function tileworld_TileWorldVM_evaluateRule__P7682_mk(s) { -function tileworld_TileWorldVM_evaluateWhenDo__P7685(s) { +function tileworld_TileWorldVM_evaluateWhenDo__P9587(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50374,23 +54391,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.whendo___8849 = undefined; - s.wcol___8862 = undefined; - s.wrow___8870 = undefined; - s.hasInclude___8883 = undefined; - s.includePassed___8884 = undefined; - s.includeWitness___8885 = undefined; - s.hasInclude2___8887 = undefined; - s.include2Passed___8888 = undefined; - s.tm___8889 = undefined; - s.kind___8893 = undefined; - s.hasKind___8900 = undefined; - s.attr___8908 = undefined; - s.adjacent___8932 = undefined; - s.kind___8938 = undefined; - s.attr___8945 = undefined; - s.witness___8950 = undefined; - s.ret___8980 = undefined; + s.whendo___10744 = undefined; + s.wcol___10757 = undefined; + s.wrow___10765 = undefined; + s.hasInclude___10778 = undefined; + s.includePassed___10779 = undefined; + s.includeWitness___10780 = undefined; + s.hasInclude2___10782 = undefined; + s.include2Passed___10783 = undefined; + s.tm___10784 = undefined; + s.kind___10788 = undefined; + s.hasKind___10795 = undefined; + s.attr___10803 = undefined; + s.adjacent___10827 = undefined; + s.kind___10833 = undefined; + s.attr___10840 = undefined; + s.witness___10845 = undefined; + s.ret___10875 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -50401,25 +54418,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - s.tmp_0 = tileworld_RuleView_getWhenDo__P4608_mk(s); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + s.tmp_0 = tileworld_RuleView_getWhenDo__P3643_mk(s); s.tmp_0.arg0 = s.arg2; s.tmp_0.arg1 = s.arg3; s.tmp_0.arg2 = s.arg4; s.callLocIdx = 413; s.pc = 52; return s.tmp_0; case 52: r0 = s.retval; - s.whendo___8849 = (r0); - r0 = (s.whendo___8849 == -1); + s.whendo___10744 = (r0); + r0 = (s.whendo___10744 == -1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = tileworld_RuleView_whendoTrue__P5007_mk(s); + s.tmp_1 = tileworld_RuleView_whendoTrue__P3661_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.whendo___8849; + s.tmp_1.arg1 = s.whendo___10744; s.callLocIdx = 414; s.pc = 53; return s.tmp_1; case 53: r0 = s.retval; @@ -50432,7 +54449,7 @@ switch (step) { { step = 51; continue; } case 3: case 4: - s.tmp_4 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_4 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_4.arg0 = s.arg1; s.callLocIdx = 415; s.pc = 54; return s.tmp_4; case 54: @@ -50441,8 +54458,8 @@ switch (step) { r0 = (s.arg3 - 2); s.tmp_5 = r0; r0 = (s.tmp_3 + s.tmp_5); - s.wcol___8862 = (r0); - s.tmp_1 = tileworld_TileSprite_row__P7462_mk(s); + s.wcol___10757 = (r0); + s.tmp_1 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 416; s.pc = 55; return s.tmp_1; case 55: @@ -50451,11 +54468,11 @@ switch (step) { r0 = (s.arg4 - 2); s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.wrow___8870 = (r0); - s.tmp_3 = tileworld_TileWorldVM_inBounds__P7684_mk(s); + s.wrow___10765 = (r0); + s.tmp_3 = tileworld_TileWorldVM_inBounds__P9586_mk(s); s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.wcol___8862; - s.tmp_3.arg2 = s.wrow___8870; + s.tmp_3.arg1 = s.wcol___10757; + s.tmp_3.arg2 = s.wrow___10765; s.callLocIdx = 417; s.pc = 56; return s.tmp_3; case 56: r0 = s.retval; @@ -50470,20 +54487,20 @@ switch (step) { { step = 51; continue; } case 5: case 6: - s.hasInclude___8883 = (false); - s.includePassed___8884 = (false); - s.includeWitness___8885 = (null); - s.hasInclude2___8887 = (false); - s.include2Passed___8888 = (false); - s.tmp_0 = game_currentScene__P961_mk(s); + s.hasInclude___10778 = (false); + s.includePassed___10779 = (false); + s.includeWitness___10780 = (null); + s.hasInclude2___10782 = (false); + s.include2Passed___10783 = (false); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 418; s.pc = 57; return s.tmp_0; case 57: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___8889 = (r0); - s.kind___8893 = (0); + s.tm___10784 = (r0); + s.kind___10788 = (0); case 7: - s.tmp_1 = r0 = s.kind___8893; + s.tmp_1 = r0 = s.kind___10788; r0 = s.arg0.fields["p"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_backgroundsI"]; @@ -50494,35 +54511,35 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - s.tmp_6 = tiles_TileMap__C1086_v8_3_mk(s); - s.tmp_6.arg0 = s.tm___8889; - s.tmp_6.arg1 = s.wcol___8862; - s.tmp_6.arg2 = s.wrow___8870; - if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_6.arg0); + s.tmp_6 = tiles_TileMap__C2314_v8_3_mk(s); + s.tmp_6.arg0 = s.tm___10784; + s.tmp_6.arg1 = s.wcol___10757; + s.tmp_6.arg2 = s.wrow___10765; + if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0); s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTileIndex; s.pc = 58; return s.tmp_6; case 58: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 == s.kind___8893); - s.hasKind___8900 = (r0); - s.tmp_0 = tileworld_RuleView_getSetBgAttr__P4993_mk(s); + r0 = (s.tmp_5 == s.kind___10788); + s.hasKind___10795 = (r0); + s.tmp_0 = tileworld_RuleView_getSetBgAttr__P3647_mk(s); s.tmp_0.arg0 = s.arg2; - s.tmp_0.arg1 = s.whendo___8849; - s.tmp_0.arg2 = s.kind___8893; + s.tmp_0.arg1 = s.whendo___10744; + s.tmp_0.arg2 = s.kind___10788; s.tmp_0.arg3 = 65535; s.callLocIdx = 420; s.pc = 59; return s.tmp_0; case 59: r0 = s.retval; - s.attr___8908 = (r0); - r0 = (s.attr___8908 == 3); + s.attr___10803 = (r0); + r0 = (s.attr___10803 == 3); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 8; continue; } r0 = s.tmp_0; { step = 9; continue; } case 8: - r0 = s.hasKind___8900; + r0 = s.hasKind___10795; case 9: // jmp value (already in r0) s.tmp_1 = r0; @@ -50532,37 +54549,37 @@ switch (step) { { step = 51; continue; } { step = 19; continue; } case 10: - r0 = (s.attr___8908 == 1); + r0 = (s.attr___10803 == 1); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 13; continue; } - s.hasInclude___8883 = (true); - r0 = pxsim_numops_toBoolDecr(s.hasKind___8900); + s.hasInclude___10778 = (true); + r0 = pxsim_numops_toBoolDecr(s.hasKind___10795); if (!r0) { step = 11; continue; } - s.includePassed___8884 = (true); + s.includePassed___10779 = (true); case 11: case 12: { step = 18; continue; } case 13: - r0 = (s.attr___8908 == 2); + r0 = (s.attr___10803 == 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - s.hasInclude2___8887 = (true); - r0 = pxsim_numops_toBoolDecr(s.hasKind___8900); + s.hasInclude2___10782 = (true); + r0 = pxsim_numops_toBoolDecr(s.hasKind___10795); if (!r0) { step = 14; continue; } - s.include2Passed___8888 = (true); + s.include2Passed___10783 = (true); case 14: case 15: case 16: case 17: case 18: case 19: - r0 = (s.kind___8893 + 1); - s.kind___8893 = (r0); + r0 = (s.kind___10788 + 1); + s.kind___10788 = (r0); { step = 7; continue; } case 20: - s.tmp_1 = tileworld_TileWorldVM_manhattan__P7686_mk(s); + s.tmp_1 = tileworld_TileWorldVM_manhattan__P9588_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg3; s.tmp_1.arg2 = s.arg4; @@ -50571,10 +54588,10 @@ switch (step) { r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 <= 1); - s.adjacent___8932 = (r0); - s.kind___8938 = (0); + s.adjacent___10827 = (r0); + s.kind___10833 = (0); case 21: - s.tmp_1 = r0 = s.kind___8938; + s.tmp_1 = r0 = s.kind___10833; r0 = s.arg0.fields["p"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_spritesI"]; @@ -50585,32 +54602,32 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 38; continue; } - s.tmp_5 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); + s.tmp_5 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); s.tmp_5.arg0 = s.arg2; - s.tmp_5.arg1 = s.whendo___8849; - s.tmp_5.arg2 = s.kind___8938; + s.tmp_5.arg1 = s.whendo___10744; + s.tmp_5.arg2 = s.kind___10833; s.tmp_5.arg3 = 65535; s.callLocIdx = 423; s.pc = 61; return s.tmp_5; case 61: r0 = s.retval; - s.attr___8945 = (r0); - s.tmp_0 = tileworld_TileWorldVM_getWitness__P7683_mk(s); + s.attr___10840 = (r0); + s.tmp_0 = tileworld_TileWorldVM_getWitness__P9585_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.kind___8938; - s.tmp_0.arg2 = s.wcol___8862; - s.tmp_0.arg3 = s.wrow___8870; + s.tmp_0.arg1 = s.kind___10833; + s.tmp_0.arg2 = s.wcol___10757; + s.tmp_0.arg3 = s.wrow___10765; s.callLocIdx = 424; s.pc = 62; return s.tmp_0; case 62: r0 = s.retval; - s.witness___8950 = (r0); - r0 = (s.attr___8945 == 3); + s.witness___10845 = (r0); + r0 = (s.attr___10840 == 3); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 22; continue; } r0 = s.tmp_0; { step = 23; continue; } case 22: - r0 = s.witness___8950; + r0 = s.witness___10845; case 23: // jmp value (already in r0) s.tmp_1 = r0; @@ -50620,21 +54637,21 @@ switch (step) { { step = 51; continue; } { step = 37; continue; } case 24: - r0 = (s.attr___8945 == 1); + r0 = (s.attr___10840 == 1); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 31; continue; } - s.hasInclude___8883 = (true); - r0 = pxsim_numops_toBoolDecr(s.witness___8950); + s.hasInclude___10778 = (true); + r0 = pxsim_numops_toBoolDecr(s.witness___10845); if (!r0) { step = 29; continue; } - s.includePassed___8884 = (true); - s.tmp_0 = r0 = s.adjacent___8932; + s.includePassed___10779 = (true); + s.tmp_0 = r0 = s.adjacent___10827; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 25; continue; } r0 = s.tmp_0; { step = 26; continue; } case 25: - r0 = pxsim_numops_toBoolDecr(s.includeWitness___8885); + r0 = pxsim_numops_toBoolDecr(s.includeWitness___10780); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); case 26: @@ -50642,32 +54659,32 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 27; continue; } - s.includeWitness___8885 = (s.witness___8950); + s.includeWitness___10780 = (s.witness___10845); case 27: case 28: case 29: case 30: { step = 36; continue; } case 31: - r0 = (s.attr___8945 == 2); + r0 = (s.attr___10840 == 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 34; continue; } - s.hasInclude2___8887 = (true); - r0 = pxsim_numops_toBoolDecr(s.witness___8950); + s.hasInclude2___10782 = (true); + r0 = pxsim_numops_toBoolDecr(s.witness___10845); if (!r0) { step = 32; continue; } - s.include2Passed___8888 = (true); + s.include2Passed___10783 = (true); case 32: case 33: case 34: case 35: case 36: case 37: - r0 = (s.kind___8938 + 1); - s.kind___8938 = (r0); + r0 = (s.kind___10833 + 1); + s.kind___10833 = (r0); { step = 21; continue; } case 38: - r0 = pxsim_numops_toBoolDecr(s.hasInclude___8883); + r0 = pxsim_numops_toBoolDecr(s.hasInclude___10778); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -50676,33 +54693,33 @@ switch (step) { r0 = s.tmp_0; { step = 40; continue; } case 39: - r0 = s.includePassed___8884; + r0 = s.includePassed___10779; case 40: // jmp value (already in r0) s.tmp_2 = r0; - s.ret___8980 = (s.tmp_2); - s.tmp_0 = r0 = s.ret___8980; + s.ret___10875 = (s.tmp_2); + s.tmp_0 = r0 = s.ret___10875; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 41; continue; } r0 = s.tmp_0; { step = 42; continue; } case 41: - r0 = s.includeWitness___8885; + r0 = s.includeWitness___10780; case 42: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 45; continue; } - s.tmp_5 = tileworld_TileWorldVM_exprMatchesDirection__P7673_mk(s); + s.tmp_5 = tileworld_TileWorldVM_exprMatchesDirection__P9575_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_6 = tileworld_RuleView_getWitnessDirection__P4998_mk(s); + s.tmp_6 = tileworld_RuleView_getWitnessDirection__P3651_mk(s); s.tmp_6.arg0 = s.arg2; - s.tmp_6.arg1 = s.whendo___8849; + s.tmp_6.arg1 = s.whendo___10744; s.callLocIdx = 425; s.pc = 64; return s.tmp_6; case 64: r0 = s.retval; s.tmp_5.arg1 = r0; - r0 = s.includeWitness___8885.fields["dir"]; + r0 = s.includeWitness___10780.fields["dir"]; s.tmp_5.arg2 = r0; s.callLocIdx = 426; s.pc = 63; return s.tmp_5; case 63: @@ -50718,16 +54735,16 @@ switch (step) { { step = 51; continue; } case 43: case 44: - r0 = pxsim_Array__push(s.arg5, s.includeWitness___8885); + r0 = pxsim_Array__push(s.arg5, s.includeWitness___10780); case 45: case 46: - s.tmp_0 = r0 = s.ret___8980; + s.tmp_0 = r0 = s.ret___10875; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 47; continue; } r0 = s.tmp_0; { step = 50; continue; } case 47: - r0 = pxsim_numops_toBoolDecr(s.hasInclude2___8887); + r0 = pxsim_numops_toBoolDecr(s.hasInclude2___10782); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -50736,7 +54753,7 @@ switch (step) { r0 = s.tmp_1; { step = 49; continue; } case 48: - r0 = s.include2Passed___8888; + r0 = s.include2Passed___10783; case 49: // jmp value (already in r0) s.tmp_3 = r0; @@ -50749,12 +54766,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_evaluateWhenDo__P7685.info = {"start":20891,"length":3062,"line":477,"column":8,"endLine":542,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateWhenDo","argumentNames":["this","ts","rv","col","row","witnesses"]} +tileworld_TileWorldVM_evaluateWhenDo__P9587.info = {"start":20891,"length":3062,"line":477,"column":8,"endLine":542,"endColumn":9,"fileName":"vm.ts","functionName":"evaluateWhenDo","argumentNames":["this","ts","rv","col","row","witnesses"]} -function tileworld_TileWorldVM_evaluateWhenDo__P7685_mk(s) { +function tileworld_TileWorldVM_evaluateWhenDo__P9587_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_evaluateWhenDo__P7685, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_evaluateWhenDo__P9587, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50763,23 +54780,23 @@ function tileworld_TileWorldVM_evaluateWhenDo__P7685_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - whendo___8849: undefined, - wcol___8862: undefined, - wrow___8870: undefined, - hasInclude___8883: undefined, - includePassed___8884: undefined, - includeWitness___8885: undefined, - hasInclude2___8887: undefined, - include2Passed___8888: undefined, - tm___8889: undefined, - kind___8893: undefined, - hasKind___8900: undefined, - attr___8908: undefined, - adjacent___8932: undefined, - kind___8938: undefined, - attr___8945: undefined, - witness___8950: undefined, - ret___8980: undefined, + whendo___10744: undefined, + wcol___10757: undefined, + wrow___10765: undefined, + hasInclude___10778: undefined, + includePassed___10779: undefined, + includeWitness___10780: undefined, + hasInclude2___10782: undefined, + include2Passed___10783: undefined, + tm___10784: undefined, + kind___10788: undefined, + hasKind___10795: undefined, + attr___10803: undefined, + adjacent___10827: undefined, + kind___10833: undefined, + attr___10840: undefined, + witness___10845: undefined, + ret___10875: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -50792,7 +54809,7 @@ function tileworld_TileWorldVM_evaluateWhenDo__P7685_mk(s) { -function tileworld_TileWorldVM_getWitness__P7683(s) { +function tileworld_TileWorldVM_getWitness__P9585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50810,7 +54827,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = s.arg0.fields["vm"]; r0 = r0.fields["sprites"]; s.tmp_1 = r0; @@ -50821,11 +54838,11 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_pxtcore_mkAction(2, inline__P8806); + r0 = pxsim_pxtcore_mkAction(2, inline__P10701); s.tmp_2 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg2); r0 = pxsim_pxtrt_stclo(s.tmp_2, 1, s.arg3); - s.tmp_3 = helpers_arrayFind__P62_mk(s); + s.tmp_3 = helpers_arrayFind__P106_mk(s); r0 = s.arg0.fields["vm"]; r0 = r0.fields["sprites"]; s.tmp_4 = r0; @@ -50842,12 +54859,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_getWitness__P7683.info = {"start":20442,"length":204,"line":466,"column":8,"endLine":469,"endColumn":9,"fileName":"vm.ts","functionName":"getWitness","argumentNames":["this","kind","col","row"]} +tileworld_TileWorldVM_getWitness__P9585.info = {"start":20442,"length":204,"line":466,"column":8,"endLine":469,"endColumn":9,"fileName":"vm.ts","functionName":"getWitness","argumentNames":["this","kind","col","row"]} -function tileworld_TileWorldVM_getWitness__P7683_mk(s) { +function tileworld_TileWorldVM_getWitness__P9585_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_getWitness__P7683, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_getWitness__P9585, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50865,7 +54882,7 @@ function tileworld_TileWorldVM_getWitness__P7683_mk(s) { -function inline__P8806(s) { +function inline__P10701(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50879,7 +54896,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_2 = tileworld_TileSprite_col__P7461_mk(s); + s.tmp_2 = tileworld_TileSprite_col__P9370_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 410; s.pc = 3; return s.tmp_2; case 3: @@ -50892,7 +54909,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_4 = tileworld_TileSprite_row__P7462_mk(s); + s.tmp_4 = tileworld_TileSprite_row__P9371_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 411; s.pc = 4; return s.tmp_4; case 4: @@ -50906,12 +54923,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P8806.info = {"start":20594,"length":40,"line":468,"column":46,"endLine":468,"endColumn":86,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P10701.info = {"start":20594,"length":40,"line":468,"column":46,"endLine":468,"endColumn":86,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P8806_mk(s) { +function inline__P10701_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P8806, depth: s.depth + 1, + parent: s, fn: inline__P10701, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50926,7 +54943,7 @@ function inline__P8806_mk(s) { -function tileworld_TileWorldVM_manhattan__P7686(s) { +function tileworld_TileWorldVM_manhattan__P9588(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -50943,15 +54960,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); - s.tmp_1 = Math_abs__P76_mk(s); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); + s.tmp_1 = Math_abs__P120_mk(s); r0 = (2 - s.arg1); s.tmp_1.arg0 = r0; s.callLocIdx = 427; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Math_abs__P76_mk(s); + s.tmp_3 = Math_abs__P120_mk(s); r0 = (2 - s.arg2); s.tmp_3.arg0 = r0; s.callLocIdx = 428; s.pc = 2; return s.tmp_3; @@ -50962,12 +54979,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_manhattan__P7686.info = {"start":23963,"length":113,"line":544,"column":8,"endLine":546,"endColumn":9,"fileName":"vm.ts","functionName":"manhattan","argumentNames":["this","col","row"]} +tileworld_TileWorldVM_manhattan__P9588.info = {"start":23963,"length":113,"line":544,"column":8,"endLine":546,"endColumn":9,"fileName":"vm.ts","functionName":"manhattan","argumentNames":["this","col","row"]} -function tileworld_TileWorldVM_manhattan__P7686_mk(s) { +function tileworld_TileWorldVM_manhattan__P9588_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_manhattan__P7686, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_manhattan__P9588, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -50982,7 +54999,7 @@ function tileworld_TileWorldVM_manhattan__P7686_mk(s) { -function tileworld_RuleClosure_constructor__P7660(s) { +function tileworld_RuleClosure_constructor__P9562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51000,7 +55017,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleClosure__C7659_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RuleClosure__C9561_VT)) failedCast(r0); r0 = (s.arg0).fields["rv"] = (s.arg1); r0 = (s.arg0).fields["self"] = (s.arg2); r0 = (s.arg0).fields["witnesses"] = (s.arg3); @@ -51008,12 +55025,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RuleClosure_constructor__P7660.info = {"start":4448,"length":147,"line":97,"column":8,"endLine":102,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","rv","self","witnesses"]} +tileworld_RuleClosure_constructor__P9562.info = {"start":4448,"length":147,"line":97,"column":8,"endLine":102,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","rv","self","witnesses"]} -function tileworld_RuleClosure_constructor__P7660_mk(s) { +function tileworld_RuleClosure_constructor__P9562_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleClosure_constructor__P7660, depth: s.depth + 1, + parent: s, fn: tileworld_RuleClosure_constructor__P9562, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -51025,7 +55042,7 @@ function tileworld_RuleClosure_constructor__P7660_mk(s) { -function tileworld_TileWorldVM_startRound__P7667(s) { +function tileworld_TileWorldVM_startRound__P9569(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51041,7 +55058,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = s.arg0.fields["vm"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -51106,10 +55123,10 @@ switch (step) { r0 = s.arg0.fields["vm"]; s.tmp_0 = r0; r0 = (s.tmp_0).fields["phase"] = (3); - r0 = pxsim_pxtcore_mkAction(1, inline__P7808); + r0 = pxsim_pxtcore_mkAction(1, inline__P9708); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = tileworld_TileWorldVM_allSprites__P7670_mk(s); + s.tmp_1 = tileworld_TileWorldVM_allSprites__P9572_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 307; s.pc = 4; return s.tmp_1; @@ -51120,12 +55137,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_startRound__P7667.info = {"start":5647,"length":955,"line":134,"column":8,"endLine":157,"endColumn":9,"fileName":"vm.ts","functionName":"startRound","argumentNames":["this","currDir"]} +tileworld_TileWorldVM_startRound__P9569.info = {"start":5647,"length":955,"line":134,"column":8,"endLine":157,"endColumn":9,"fileName":"vm.ts","functionName":"startRound","argumentNames":["this","currDir"]} -function tileworld_TileWorldVM_startRound__P7667_mk(s) { +function tileworld_TileWorldVM_startRound__P9569_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_startRound__P7667, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_startRound__P9569, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -51138,7 +55155,7 @@ function tileworld_TileWorldVM_startRound__P7667_mk(s) { -function inline__P7808(s) { +function inline__P9708(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51152,9 +55169,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_4 = Sprite_x__P770_mk(s); + s.tmp_4 = Sprite_x__P2022_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 303; s.pc = 2; return s.tmp_4; case 2: @@ -51169,9 +55186,9 @@ switch (step) { s.callLocIdx = 304; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_4 = Sprite_y__P772_mk(s); + s.tmp_4 = Sprite_y__P2024_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 305; s.pc = 4; return s.tmp_4; case 4: @@ -51196,12 +55213,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7808.info = {"start":6261,"length":329,"line":150,"column":28,"endLine":156,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} +inline__P9708.info = {"start":6261,"length":329,"line":150,"column":28,"endLine":156,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["ts"]} -function inline__P7808_mk(s) { +function inline__P9708_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7808, depth: s.depth + 1, + parent: s, fn: inline__P9708, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -51215,7 +55232,7 @@ function inline__P7808_mk(s) { -function tileworld_TileWorldVM_setState__P7666(s) { +function tileworld_TileWorldVM_setState__P9568(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51231,18 +55248,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = (s.arg0).fields["vm"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_setState__P7666.info = {"start":5573,"length":64,"line":130,"column":8,"endLine":132,"endColumn":9,"fileName":"vm.ts","functionName":"setState","argumentNames":["this","v"]} +tileworld_TileWorldVM_setState__P9568.info = {"start":5573,"length":64,"line":130,"column":8,"endLine":132,"endColumn":9,"fileName":"vm.ts","functionName":"setState","argumentNames":["this","v"]} -function tileworld_TileWorldVM_setState__P7666_mk(s) { +function tileworld_TileWorldVM_setState__P9568_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_setState__P7666, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_setState__P9568, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -51252,7 +55269,7 @@ function tileworld_TileWorldVM_setState__P7666_mk(s) { -function scene_cameraFollowSprite__P1213(s) { +function scene_cameraFollowSprite__P2456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51262,32 +55279,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___24467 = undefined; + s.scene___26154 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 844; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 846; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___24467 = (r0); - r0 = s.scene___24467.fields["camera"]; + s.scene___26154 = (r0); + r0 = s.scene___26154.fields["camera"]; s.tmp_0 = r0; r0 = (s.tmp_0).fields["sprite"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_cameraFollowSprite__P1213.info = {"start":3990,"length":139,"line":142,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]} +scene_cameraFollowSprite__P2456.info = {"start":3990,"length":139,"line":142,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]} -function scene_cameraFollowSprite__P1213_mk(s) { +function scene_cameraFollowSprite__P2456_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_cameraFollowSprite__P1213, depth: s.depth + 1, + parent: s, fn: scene_cameraFollowSprite__P2456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___24467: undefined, + scene___26154: undefined, arg0: undefined, } } @@ -51295,7 +55312,7 @@ function scene_cameraFollowSprite__P1213_mk(s) { -function tileworld_Project_getPlayer__P6114(s) { +function tileworld_Project_getPlayer__P3686(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51310,17 +55327,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = s.arg0.fields["_player"]; return leave(s, r0) default: oops() } } } -tileworld_Project_getPlayer__P6114.info = {"start":2574,"length":63,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"project.ts","functionName":"getPlayer","argumentNames":["this"]} +tileworld_Project_getPlayer__P3686.info = {"start":2574,"length":63,"line":71,"column":8,"endLine":73,"endColumn":9,"fileName":"project.ts","functionName":"getPlayer","argumentNames":["this"]} -function tileworld_Project_getPlayer__P6114_mk(s) { +function tileworld_Project_getPlayer__P3686_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_getPlayer__P6114, depth: s.depth + 1, + parent: s, fn: tileworld_Project_getPlayer__P3686, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -51329,7 +55346,7 @@ function tileworld_Project_getPlayer__P6114_mk(s) { -function tileworld_TileSprite_constructor__P7466(s) { +function tileworld_TileSprite_constructor__P9375(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51339,7 +55356,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___7473 = undefined; + s.scene___9382 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -51348,28 +55365,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileSprite__C7459_VT)) failedCast(r0); - s.tmp_0 = Sprite_constructor__P825_mk(s); + if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0); + s.tmp_0 = Sprite_constructor__P2050_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 284; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = game_currentScene__P961_mk(s); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 285; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.scene___7473 = (r0); - s.tmp_0 = PhysicsEngine__C880_v0_2_mk(s); - r0 = s.scene___7473.fields["physicsEngine"]; + s.scene___9382 = (r0); + s.tmp_0 = PhysicsEngine__C2156_v0_2_mk(s); + r0 = s.scene___9382.fields["physicsEngine"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C880_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C2156_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_setKind__P805_mk(s); + s.tmp_0 = Sprite_setKind__P2068_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; s.callLocIdx = 286; s.pc = 4; return s.tmp_0; @@ -51398,15 +55415,15 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileSprite_constructor__P7466.info = {"start":648,"length":422,"line":14,"column":8,"endLine":25,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","img","kind","d"]} +tileworld_TileSprite_constructor__P9375.info = {"start":648,"length":422,"line":14,"column":8,"endLine":25,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","img","kind","d"]} -function tileworld_TileSprite_constructor__P7466_mk(s) { +function tileworld_TileSprite_constructor__P9375_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileSprite_constructor__P7466, depth: s.depth + 1, + parent: s, fn: tileworld_TileSprite_constructor__P9375, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___7473: undefined, + scene___9382: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -51417,7 +55434,7 @@ function tileworld_TileSprite_constructor__P7466_mk(s) { -function tileworld_Project_getWorldSprites__P6118(s) { +function tileworld_Project_getWorldSprites__P3690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51432,17 +55449,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; return leave(s, r0) default: oops() } } } -tileworld_Project_getWorldSprites__P6118.info = {"start":3049,"length":70,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"project.ts","functionName":"getWorldSprites","argumentNames":["this"]} +tileworld_Project_getWorldSprites__P3690.info = {"start":3049,"length":70,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"project.ts","functionName":"getWorldSprites","argumentNames":["this"]} -function tileworld_Project_getWorldSprites__P6118_mk(s) { +function tileworld_Project_getWorldSprites__P3690_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_getWorldSprites__P6118, depth: s.depth + 1, + parent: s, fn: tileworld_Project_getWorldSprites__P3690, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -51451,7 +55468,7 @@ function tileworld_Project_getWorldSprites__P6118_mk(s) { -function tileworld_RunGame_setWorld__P9495(s) { +function tileworld_RunGame_setWorld__P3775(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51461,13 +55478,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScene___9545 = undefined; - s.kind___9615 = undefined; - s.x___9630 = undefined; - s.y___9636 = undefined; - s.kind___9642 = undefined; - s.art___9650 = undefined; - s.ts___9655 = undefined; + s.currScene___11430 = undefined; + s.kind___11472 = undefined; + s.x___11487 = undefined; + s.y___11493 = undefined; + s.kind___11499 = undefined; + s.art___11507 = undefined; + s.ts___11512 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -51475,11 +55492,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RunGame__C9491_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0); r0 = (s.arg0).fields["signal"] = (null); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_VMState__C7652_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_VMState__C9554_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_VMState_constructor__P7653_mk(s); + s.tmp_1 = tileworld_VMState_constructor__P9555_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 462; s.pc = 12; return s.tmp_1; case 12: @@ -51502,12 +55519,12 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); - s.tmp_0 = game_currentScene__P961_mk(s); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 463; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.currScene___9545 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_LegacyTilemap__C9551_VT); + s.currScene___11430 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_LegacyTilemap__C3850_VT); s.tmp_0 = r0; r0 = s.arg0.fields["debug"]; s.tmp_1 = r0; @@ -51520,15 +55537,15 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.tmp_3 = tiles_legacy_LegacyTilemap_constructor__P9581_mk(s); + s.tmp_3 = tiles_legacy_LegacyTilemap_constructor__P3852_mk(s); s.tmp_3.arg0 = s.tmp_0; s.tmp_3.arg1 = 4; s.tmp_3.arg2 = s.tmp_2; s.callLocIdx = 464; s.pc = 14; return s.tmp_3; case 14: r0 = s.retval; - r0 = (s.currScene___9545).fields["tileMap"] = (s.tmp_0); - s.tmp_0 = scene_setTileMap__P9587_mk(s); + r0 = (s.currScene___11430).fields["tileMap"] = (s.tmp_0); + s.tmp_0 = scene_setTileMap__P3846_mk(s); r0 = pxsim_ImageMethods.clone(s.arg1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 4; @@ -51544,18 +55561,18 @@ switch (step) { r0 = r0.fields["changed"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); - s.tmp_0 = helpers_arrayForEach__P60_mk(s); + s.tmp_0 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_backgroundsI"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P9607; + s.tmp_0.arg1 = inline__P11465; s.callLocIdx = 468; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.kind___9615 = (0); + s.kind___11472 = (0); case 3: - s.tmp_1 = r0 = s.kind___9615; + s.tmp_1 = r0 = s.kind___11472; r0 = s.arg0.fields["p"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_spritesI"]; @@ -51569,79 +55586,79 @@ switch (step) { r0 = s.arg0.fields["state"]; r0 = r0.fields["sprites"]; s.tmp_5 = r0; - s.tmp_6 = r0 = s.kind___9615; + s.tmp_6 = r0 = s.kind___11472; r0 = pxsim_Array__mk(); s.tmp_7 = r0; r0 = pxsim_Array_.setAt(s.tmp_5, s.tmp_6, s.tmp_7); - r0 = (s.kind___9615 + 1); - s.kind___9615 = (r0); + r0 = (s.kind___11472 + 1); + s.kind___11472 = (r0); { step = 3; continue; } case 4: - s.x___9630 = (0); + s.x___11487 = (0); case 5: - s.tmp_1 = r0 = s.x___9630; + s.tmp_1 = r0 = s.x___11487; r0 = pxsim_ImageMethods.width(s.arg2); 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; } - s.y___9636 = (0); + s.y___11493 = (0); case 6: - s.tmp_1 = r0 = s.y___9636; + s.tmp_1 = r0 = s.y___11493; r0 = pxsim_ImageMethods.height(s.arg2); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 10; continue; } - r0 = pxsim_ImageMethods.getPixel(s.arg2, s.x___9630, s.y___9636); - s.kind___9642 = (r0); - r0 = (s.kind___9642 == 15); + r0 = pxsim_ImageMethods.getPixel(s.arg2, s.x___11487, s.y___11493); + s.kind___11499 = (r0); + r0 = (s.kind___11499 == 15); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } { step = 9; continue; } case 7: case 8: - s.tmp_1 = tileworld_Project_getSpriteImage__P6007_mk(s); + s.tmp_1 = tileworld_Project_getSpriteImage__P3697_mk(s); r0 = s.arg0.fields["p"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.kind___9642; + s.tmp_1.arg1 = s.kind___11499; s.callLocIdx = 470; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.art___9650 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C7459_VT); + s.art___11507 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileSprite__C9368_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_TileSprite_constructor__P7466_mk(s); + s.tmp_1 = tileworld_TileSprite_constructor__P9375_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.art___9650; - s.tmp_1.arg2 = s.kind___9642; + s.tmp_1.arg1 = s.art___11507; + s.tmp_1.arg2 = s.kind___11499; r0 = s.arg0.fields["debug"]; s.tmp_1.arg3 = r0; s.callLocIdx = 471; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; - s.ts___9655 = (s.tmp_0); + s.ts___11512 = (s.tmp_0); r0 = s.arg0.fields["state"]; r0 = r0.fields["sprites"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.kind___9642); + r0 = pxsim_Array__getAt(s.tmp_1, s.kind___11499); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.ts___9655); - s.tmp_0 = Sprite_x__P771_mk(s); - s.tmp_0.arg0 = s.ts___9655; - r0 = (s.x___9630 << 4); + r0 = pxsim_Array__push(s.tmp_0, s.ts___11512); + s.tmp_0 = Sprite_x__P2023_mk(s); + s.tmp_0.arg0 = s.ts___11512; + r0 = (s.x___11487 << 4); s.tmp_1 = r0; r0 = (s.tmp_1 + 8); s.tmp_0.arg1 = r0; s.callLocIdx = 472; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); - s.tmp_0.arg0 = s.ts___9655; - r0 = (s.y___9636 << 4); + s.tmp_0 = Sprite_y__P2025_mk(s); + s.tmp_0.arg0 = s.ts___11512; + r0 = (s.y___11493 << 4); s.tmp_1 = r0; r0 = (s.tmp_1 + 8); s.tmp_0.arg1 = r0; @@ -51649,24 +55666,24 @@ switch (step) { case 20: r0 = s.retval; case 9: - r0 = (s.y___9636 + 1); - s.y___9636 = (r0); + r0 = (s.y___11493 + 1); + s.y___11493 = (r0); { step = 6; continue; } case 10: - r0 = (s.x___9630 + 1); - s.x___9630 = (r0); + r0 = (s.x___11487 + 1); + s.x___11487 = (r0); { step = 5; continue; } case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RunGame_setWorld__P9495.info = {"start":31626,"length":1417,"line":706,"column":8,"endLine":738,"endColumn":9,"fileName":"vm.ts","functionName":"setWorld","argumentNames":["this","w","sprites"]} +tileworld_RunGame_setWorld__P3775.info = {"start":31626,"length":1417,"line":706,"column":8,"endLine":738,"endColumn":9,"fileName":"vm.ts","functionName":"setWorld","argumentNames":["this","w","sprites"]} -function tileworld_RunGame_setWorld__P9495_mk(s) { +function tileworld_RunGame_setWorld__P3775_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RunGame_setWorld__P9495, depth: s.depth + 1, + parent: s, fn: tileworld_RunGame_setWorld__P3775, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -51676,13 +55693,13 @@ function tileworld_RunGame_setWorld__P9495_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - currScene___9545: undefined, - kind___9615: undefined, - x___9630: undefined, - y___9636: undefined, - kind___9642: undefined, - art___9650: undefined, - ts___9655: undefined, + currScene___11430: undefined, + kind___11472: undefined, + x___11487: undefined, + y___11493: undefined, + kind___11499: undefined, + art___11507: undefined, + ts___11512: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -51692,7 +55709,7 @@ function tileworld_RunGame_setWorld__P9495_mk(s) { -function inline__P9607(s) { +function inline__P11465(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51707,7 +55724,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_setTile__P9611_mk(s); + s.tmp_0 = scene_setTile__P3847_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = undefined; @@ -51718,12 +55735,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P9607.info = {"start":32292,"length":71,"line":720,"column":46,"endLine":722,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["img","kind"]} +inline__P11465.info = {"start":32292,"length":71,"line":720,"column":46,"endLine":722,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["img","kind"]} -function inline__P9607_mk(s) { +function inline__P11465_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P9607, depth: s.depth + 1, + parent: s, fn: inline__P11465, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -51734,7 +55751,7 @@ function inline__P9607_mk(s) { -function scene_setTile__P9611(s) { +function scene_setTile__P3847(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51744,20 +55761,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___18335 = undefined; + s.scene___20129 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 1698; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 1699; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___18335 = (r0); - s.tmp_0 = tiles_legacy_LegacyTilemap_setTile__P9565_mk(s); - r0 = s.scene___18335.fields["tileMap"]; + s.scene___20129 = (r0); + s.tmp_0 = tiles_legacy_LegacyTilemap_setTile__P3864_mk(s); + r0 = s.scene___20129.fields["tileMap"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; @@ -51769,25 +55786,25 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg3 = r0; - s.callLocIdx = 1699; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1700; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setTile__P9611.info = {"start":249,"length":200,"line":8,"column":4,"endLine":11,"endColumn":5,"fileName":"mytilemap.ts","functionName":"setTile","argumentNames":["index","img","wall"]} +scene_setTile__P3847.info = {"start":249,"length":200,"line":8,"column":4,"endLine":11,"endColumn":5,"fileName":"mytilemap.ts","functionName":"setTile","argumentNames":["index","img","wall"]} -function scene_setTile__P9611_mk(s) { +function scene_setTile__P3847_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setTile__P9611, depth: s.depth + 1, + parent: s, fn: scene_setTile__P3847, depth: s.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___18335: undefined, + scene___20129: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -51797,7 +55814,7 @@ function scene_setTile__P9611_mk(s) { -function tiles_legacy_LegacyTilemap_setTile__P9565(s) { +function tiles_legacy_LegacyTilemap_setTile__P3864(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51815,11 +55832,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_1 = tiles_legacy_LegacyTilemap__C9551_v10_2_mk(s); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_1 = tiles_legacy_LegacyTilemap__C3850_v10_2_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - if (!checkSubtype(s.tmp_1.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isInvalidIndex; s.pc = 4; return s.tmp_1; case 4: @@ -51830,14 +55847,14 @@ switch (step) { { step = 3; continue; } case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_TileSet__C18346_VT); + r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_TileSet__C20140_VT); s.tmp_2 = r0; - s.tmp_3 = tiles_legacy_TileSet_constructor__P18348_mk(s); + s.tmp_3 = tiles_legacy_TileSet_constructor__P20142_mk(s); s.tmp_3.arg0 = s.tmp_2; s.tmp_3.arg1 = s.arg2; s.tmp_3.arg2 = s.arg3; s.tmp_3.arg3 = s.arg0; - s.callLocIdx = 1711; s.pc = 5; return s.tmp_3; + s.callLocIdx = 1712; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; r0 = s.arg0.fields["_tileSets"]; @@ -51848,12 +55865,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_setTile__P9565.info = {"start":2976,"length":192,"line":103,"column":8,"endLine":106,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setTile","argumentNames":["this","index","img","collisions"]} +tiles_legacy_LegacyTilemap_setTile__P3864.info = {"start":2976,"length":192,"line":103,"column":8,"endLine":106,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setTile","argumentNames":["this","index","img","collisions"]} -function tiles_legacy_LegacyTilemap_setTile__P9565_mk(s) { +function tiles_legacy_LegacyTilemap_setTile__P3864_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_setTile__P9565, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_setTile__P3864, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -51870,7 +55887,7 @@ function tiles_legacy_LegacyTilemap_setTile__P9565_mk(s) { -function tiles_legacy_TileSet_constructor__P18348(s) { +function tiles_legacy_TileSet_constructor__P20142(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51888,7 +55905,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_TileSet__C18346_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_legacy_TileSet__C20140_VT)) failedCast(r0); r0 = (s.arg0).fields["originalImage"] = (s.arg1); r0 = (s.arg0).fields["obstacle"] = (s.arg2); r0 = (s.arg0).fields["map"] = (s.arg3); @@ -51896,12 +55913,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_legacy_TileSet_constructor__P18348.info = {"start":638,"length":186,"line":21,"column":8,"endLine":25,"endColumn":9,"fileName":"mytilemap.ts","functionName":"inline","argumentNames":["this","image","collisions","map"]} +tiles_legacy_TileSet_constructor__P20142.info = {"start":638,"length":186,"line":21,"column":8,"endLine":25,"endColumn":9,"fileName":"mytilemap.ts","functionName":"inline","argumentNames":["this","image","collisions","map"]} -function tiles_legacy_TileSet_constructor__P18348_mk(s) { +function tiles_legacy_TileSet_constructor__P20142_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_TileSet_constructor__P18348, depth: s.depth + 1, + parent: s, fn: tiles_legacy_TileSet_constructor__P20142, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -51913,7 +55930,7 @@ function tiles_legacy_TileSet_constructor__P18348_mk(s) { -function tiles_legacy_LegacyTilemap_isInvalidIndex__P9574(s) { +function tiles_legacy_LegacyTilemap_isInvalidIndex__P11440(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51929,7 +55946,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -51945,12 +55962,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_isInvalidIndex__P9574.info = {"start":5347,"length":105,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} +tiles_legacy_LegacyTilemap_isInvalidIndex__P11440.info = {"start":5347,"length":105,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} -function tiles_legacy_LegacyTilemap_isInvalidIndex__P9574_mk(s) { +function tiles_legacy_LegacyTilemap_isInvalidIndex__P11440_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_isInvalidIndex__P9574, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_isInvalidIndex__P11440, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -51962,7 +55979,7 @@ function tiles_legacy_LegacyTilemap_isInvalidIndex__P9574_mk(s) { -function scene_setTileMap__P9587(s) { +function scene_setTileMap__P3846(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -51972,44 +55989,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___18321 = undefined; + s.scene___20115 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 1695; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 1696; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___18321 = (r0); - s.tmp_0 = tiles_legacy_LegacyTilemap_setMap__P9566_mk(s); - r0 = s.scene___18321.fields["tileMap"]; + s.scene___20115 = (r0); + s.tmp_0 = tiles_legacy_LegacyTilemap_setMap__P3865_mk(s); + r0 = s.scene___20115.fields["tileMap"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1696; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1697; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = tiles_TileMap_scale__P1088_mk(s); - r0 = s.scene___18321.fields["tileMap"]; + s.tmp_0 = tiles_TileMap_scale__P2317_mk(s); + r0 = s.scene___20115.fields["tileMap"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1697; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1698; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setTileMap__P9587.info = {"start":23,"length":220,"line":2,"column":4,"endLine":6,"endColumn":5,"fileName":"mytilemap.ts","functionName":"setTileMap","argumentNames":["map","scale"]} +scene_setTileMap__P3846.info = {"start":23,"length":220,"line":2,"column":4,"endLine":6,"endColumn":5,"fileName":"mytilemap.ts","functionName":"setTileMap","argumentNames":["map","scale"]} -function scene_setTileMap__P9587_mk(s) { +function scene_setTileMap__P3846_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setTileMap__P9587, depth: s.depth + 1, + parent: s, fn: scene_setTileMap__P3846, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___18321: undefined, + scene___20115: undefined, arg0: undefined, arg1: undefined, } } @@ -52018,7 +56035,7 @@ function scene_setTileMap__P9587_mk(s) { -function tiles_TileMap_scale__P1088(s) { +function tiles_TileMap_scale__P2317(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52034,13 +56051,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C2314_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__P1077_mk(s); + s.tmp_1 = tiles_TileMapData_scale__P2306_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -52053,12 +56070,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P1088.info = {"start":6124,"length":144,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMap_scale__P2317.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__P1088_mk(s) { +function tiles_TileMap_scale__P2317_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P1088, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P2317, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -52070,7 +56087,7 @@ function tiles_TileMap_scale__P1088_mk(s) { -function tiles_TileMapData_scale__P1077(s) { +function tiles_TileMapData_scale__P2306(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52086,7 +56103,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C1073_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); r0 = (s.arg0).fields["_scale"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); @@ -52096,12 +56113,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P1077.info = {"start":3819,"length":102,"line":145,"column":8,"endLine":148,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMapData_scale__P2306.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__P1077_mk(s) { +function tiles_TileMapData_scale__P2306_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P1077, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P2306, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -52113,7 +56130,7 @@ function tiles_TileMapData_scale__P1077_mk(s) { -function tiles_TileMapData_scale__P1076(s) { +function tiles_TileMapData_scale__P2305(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52128,18 +56145,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C1073_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_scale__P1076.info = {"start":3743,"length":66,"line":141,"column":8,"endLine":143,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMapData_scale__P1076.isGetter = true; +tiles_TileMapData_scale__P2305.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__P2305.isGetter = true; -function tiles_TileMapData_scale__P1076_mk(s) { +function tiles_TileMapData_scale__P2305_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P1076, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P2305, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -52148,7 +56165,7 @@ function tiles_TileMapData_scale__P1076_mk(s) { -function tiles_legacy_LegacyTilemap_setMap__P9566(s) { +function tiles_legacy_LegacyTilemap_setMap__P3865(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52164,18 +56181,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); r0 = (s.arg0).fields["_mapImage"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_setMap__P9566.info = {"start":3178,"length":64,"line":108,"column":8,"endLine":110,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setMap","argumentNames":["this","map"]} +tiles_legacy_LegacyTilemap_setMap__P3865.info = {"start":3178,"length":64,"line":108,"column":8,"endLine":110,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setMap","argumentNames":["this","map"]} -function tiles_legacy_LegacyTilemap_setMap__P9566_mk(s) { +function tiles_legacy_LegacyTilemap_setMap__P3865_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_setMap__P9566, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_setMap__P3865, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -52185,7 +56202,7 @@ function tiles_legacy_LegacyTilemap_setMap__P9566_mk(s) { -function tiles_legacy_LegacyTilemap_constructor__P9581(s) { +function tiles_legacy_LegacyTilemap_constructor__P3852(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52202,11 +56219,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_constructor__P1110_mk(s); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_constructor__P2315_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1701; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1702; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = (s.arg0).fields["_screenX"] = (s.arg2); @@ -52219,12 +56236,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_constructor__P9581.info = {"start":1614,"length":206,"line":48,"column":8,"endLine":53,"endColumn":9,"fileName":"mytilemap.ts","functionName":"inline","argumentNames":["this","scale","left"]} +tiles_legacy_LegacyTilemap_constructor__P3852.info = {"start":1614,"length":206,"line":48,"column":8,"endLine":53,"endColumn":9,"fileName":"mytilemap.ts","functionName":"inline","argumentNames":["this","scale","left"]} -function tiles_legacy_LegacyTilemap_constructor__P9581_mk(s) { +function tiles_legacy_LegacyTilemap_constructor__P3852_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_constructor__P9581, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_constructor__P3852, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -52237,7 +56254,7 @@ function tiles_legacy_LegacyTilemap_constructor__P9581_mk(s) { -function tiles_TileMap_constructor__P1110(s) { +function tiles_TileMap_constructor__P2315(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52253,18 +56270,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P1088_mk(s); + s.tmp_0 = tiles_TileMap_scale__P2317_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 740; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P19179); + r0 = pxsim_pxtcore_mkAction(1, inline__P20954); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = scene_createRenderable__P1147_mk(s); + s.tmp_1 = scene_createRenderable__P2375_mk(s); s.tmp_1.arg0 = -1; s.tmp_1.arg1 = s.tmp_0; s.tmp_1.arg2 = undefined; @@ -52275,12 +56292,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_constructor__P1110.info = {"start":5799,"length":250,"line":208,"column":8,"endLine":216,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +tiles_TileMap_constructor__P2315.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__P1110_mk(s) { +function tiles_TileMap_constructor__P2315_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P1110, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P2315, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -52292,7 +56309,7 @@ function tiles_TileMap_constructor__P1110_mk(s) { -function inline__P19179(s) { +function inline__P20954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52307,11 +56324,11 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap__C1086_v11_3_mk(s); + s.tmp_0 = tiles_TileMap__C2314_v11_3_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; - if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.draw; s.pc = 1; return s.tmp_0; case 1: @@ -52320,12 +56337,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P19179.info = {"start":5999,"length":25,"line":214,"column":16,"endLine":214,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +inline__P20954.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__P19179_mk(s) { +function inline__P20954_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P19179, depth: s.depth + 1, + parent: s, fn: inline__P20954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -52336,7 +56353,7 @@ function inline__P19179_mk(s) { -function tiles_TileMap_draw__P1105(s) { +function tiles_TileMap_draw__P4223(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52346,21 +56363,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___19190 = undefined; - s.offsetX___19196 = undefined; - s.offsetY___19201 = undefined; - s.x0___19206 = undefined; - s.xn___19213 = undefined; - s.y0___19231 = undefined; - s.yn___19238 = undefined; - s.x___19255 = undefined; - s.y___19261 = undefined; - s.index___19267 = undefined; - s.tile___19274 = undefined; - s.x___19310 = undefined; - s.xLine___19316 = undefined; - s.y___19342 = undefined; - s.yLine___19348 = undefined; + s.bitmask___20965 = undefined; + s.offsetX___20971 = undefined; + s.offsetY___20976 = undefined; + s.x0___20981 = undefined; + s.xn___20988 = undefined; + s.y0___21006 = undefined; + s.yn___21013 = undefined; + s.x___21030 = undefined; + s.y___21036 = undefined; + s.index___21042 = undefined; + s.tile___21049 = undefined; + s.x___21085 = undefined; + s.xLine___21091 = undefined; + s.y___21117 = undefined; + s.yLine___21123 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -52368,10 +56385,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); - s.tmp_3 = tiles_TileMap__C1086_v6_1_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + s.tmp_3 = tiles_TileMap__C2314_v6_1_mk(s); s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled; s.pc = 24; return s.tmp_3; case 24: @@ -52391,16 +56408,16 @@ switch (step) { r0 = (1 << s.tmp_5); s.tmp_4 = r0; r0 = (s.tmp_4 - 1); - s.bitmask___19190 = (r0); + s.bitmask___20965 = (r0); r0 = s.arg2.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___19190); - s.offsetX___19196 = (r0); + r0 = (s.tmp_0 & s.bitmask___20965); + s.offsetX___20971 = (r0); r0 = s.arg2.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___19190); - s.offsetY___19201 = (r0); - s.tmp_0 = Math_max__P78_mk(s); + r0 = (s.tmp_0 & s.bitmask___20965); + s.offsetY___20976 = (r0); + s.tmp_0 = Math_max__P122_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetX"]; s.tmp_1 = r0; @@ -52411,8 +56428,8 @@ switch (step) { s.callLocIdx = 757; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.x0___19206 = (r0); - s.tmp_0 = Math_min__P79_mk(s); + s.x0___20981 = (r0); + s.tmp_0 = Math_min__P123_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_width"]; @@ -52432,8 +56449,8 @@ switch (step) { s.callLocIdx = 760; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.xn___19213 = (r0); - s.tmp_0 = Math_max__P78_mk(s); + s.xn___20988 = (r0); + s.tmp_0 = Math_max__P122_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -52444,8 +56461,8 @@ switch (step) { s.callLocIdx = 762; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.y0___19231 = (r0); - s.tmp_0 = Math_min__P79_mk(s); + s.y0___21006 = (r0); + s.tmp_0 = Math_min__P123_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_height"]; @@ -52465,92 +56482,92 @@ switch (step) { s.callLocIdx = 765; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; - s.yn___19238 = (r0); - s.x___19255 = (s.x0___19206); + s.yn___21013 = (r0); + s.x___21030 = (s.x0___20981); case 3: - r0 = (s.x___19255 <= s.xn___19213); + r0 = (s.x___21030 <= s.xn___20988); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___19261 = (s.y0___19231); + s.y___21036 = (s.y0___21006); case 4: - r0 = (s.y___19261 <= s.yn___19238); + r0 = (s.y___21036 <= s.yn___21013); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P1078_mk(s); + s.tmp_1 = tiles_TileMapData_getTile__P2307_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___19255; - s.tmp_1.arg2 = s.y___19261; + s.tmp_1.arg1 = s.x___21030; + s.tmp_1.arg2 = s.y___21036; s.callLocIdx = 766; s.pc = 29; return s.tmp_1; case 29: r0 = s.retval; - s.index___19267 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P1081_mk(s); + s.index___21042 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P2310_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___19267; + s.tmp_0.arg1 = s.index___21042; s.callLocIdx = 767; s.pc = 30; return s.tmp_0; case 30: r0 = s.retval; - s.tile___19274 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___19274); + s.tile___21049 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___21049); if (!r0) { step = 5; continue; } s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___19274; - r0 = (s.x___19255 - s.x0___19206); + s.tmp_1 = r0 = s.tile___21049; + r0 = (s.x___21030 - s.x0___20981); 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___19196); + r0 = (s.tmp_3 - s.offsetX___20971); s.tmp_2 = r0; - r0 = (s.y___19261 - s.y0___19231); + r0 = (s.y___21036 - s.y0___21006); 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___19201); + r0 = (s.tmp_7 - s.offsetY___20976); 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___19261 + 1); - s.y___19261 = (r0); + r0 = (s.y___21036 + 1); + s.y___21036 = (r0); { step = 4; continue; } case 7: - r0 = (s.x___19255 + 1); - s.x___19255 = (r0); + r0 = (s.x___21030 + 1); + s.x___21030 = (r0); { step = 3; continue; } case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___1269); + r0 = pxsim_numops_toBoolDecr(globals.debug___2520); if (!r0) { step = 21; continue; } - s.x___19310 = (s.x0___19206); + s.x___21085 = (s.x0___20981); case 9: - r0 = (s.x___19310 <= s.xn___19213); + r0 = (s.x___21085 <= s.xn___20988); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.x___19310 - s.x0___19206); + r0 = (s.x___21085 - s.x0___20981); 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___19196); - s.xLine___19316 = (r0); - r0 = (s.xLine___19316 >= 0); + r0 = (s.tmp_1 - s.offsetX___20971); + s.xLine___21091 = (r0); + r0 = (s.xLine___21091 >= 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___19316; - r0 = pxsim_ImageMethods.width(globals.screen___578); + s.tmp_1 = r0 = s.xLine___21091; + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 11: @@ -52558,11 +56575,11 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P519_mk(s); + s.tmp_4 = helpers_imageDrawLine__P1727_mk(s); s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___19316; + s.tmp_4.arg1 = s.xLine___21091; s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___19316; + s.tmp_4.arg3 = s.xLine___21091; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_4.arg4 = r0; s.tmp_4.arg5 = 1; @@ -52571,33 +56588,33 @@ switch (step) { r0 = s.retval; case 12: case 13: - r0 = (s.x___19310 + 1); - s.x___19310 = (r0); + r0 = (s.x___21085 + 1); + s.x___21085 = (r0); { step = 9; continue; } case 14: - s.y___19342 = (s.y0___19231); + s.y___21117 = (s.y0___21006); case 15: - r0 = (s.y___19342 <= s.yn___19238); + r0 = (s.y___21117 <= s.yn___21013); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.y___19342 - s.y0___19231); + r0 = (s.y___21117 - s.y0___21006); 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___19201); - s.yLine___19348 = (r0); - r0 = (s.yLine___19348 >= 0); + r0 = (s.tmp_1 - s.offsetY___20976); + s.yLine___21123 = (r0); + r0 = (s.yLine___21123 >= 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___19348; - r0 = pxsim_ImageMethods.height(globals.screen___578); + s.tmp_1 = r0 = s.yLine___21123; + r0 = pxsim_ImageMethods.height(globals.screen___1799); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 17: @@ -52605,21 +56622,21 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P519_mk(s); + s.tmp_4 = helpers_imageDrawLine__P1727_mk(s); s.tmp_4.arg0 = s.arg1; s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___19348; + s.tmp_4.arg2 = s.yLine___21123; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___19348; + s.tmp_4.arg4 = s.yLine___21123; s.tmp_4.arg5 = 1; s.callLocIdx = 773; s.pc = 32; return s.tmp_4; case 32: r0 = s.retval; case 18: case 19: - r0 = (s.y___19342 + 1); - s.y___19342 = (r0); + r0 = (s.y___21117 + 1); + s.y___21117 = (r0); { step = 15; continue; } case 20: case 21: @@ -52629,12 +56646,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P1105.info = {"start":9010,"length":2224,"line":319,"column":8,"endLine":374,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} +tiles_TileMap_draw__P4223.info = {"start":9076,"length":2224,"line":321,"column":8,"endLine":376,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} -function tiles_TileMap_draw__P1105_mk(s) { +function tiles_TileMap_draw__P4223_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P1105, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P4223, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -52646,21 +56663,21 @@ function tiles_TileMap_draw__P1105_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - bitmask___19190: undefined, - offsetX___19196: undefined, - offsetY___19201: undefined, - x0___19206: undefined, - xn___19213: undefined, - y0___19231: undefined, - yn___19238: undefined, - x___19255: undefined, - y___19261: undefined, - index___19267: undefined, - tile___19274: undefined, - x___19310: undefined, - xLine___19316: undefined, - y___19342: undefined, - yLine___19348: undefined, + bitmask___20965: undefined, + offsetX___20971: undefined, + offsetY___20976: undefined, + x0___20981: undefined, + xn___20988: undefined, + y0___21006: undefined, + yn___21013: undefined, + x___21030: undefined, + y___21036: undefined, + index___21042: undefined, + tile___21049: undefined, + x___21085: undefined, + xLine___21091: undefined, + y___21117: undefined, + yLine___21123: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -52670,7 +56687,7 @@ function tiles_TileMap_draw__P1105_mk(s) { -function tiles_TileMapData_getTileImage__P1081(s) { +function tiles_TileMapData_getTileImage__P2310(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52680,25 +56697,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___19376 = undefined; - s.cachedImage___19380 = undefined; - s.originalImage___19387 = undefined; + s.size___21151 = undefined; + s.cachedImage___21155 = undefined; + s.originalImage___21162 = 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__C1073_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.size___19376 = (r0); + s.size___21151 = (r0); r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___19380 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___19380); + s.cachedImage___21155 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___21155); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -52707,58 +56724,58 @@ switch (step) { r0 = s.arg0.fields["tileset"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___19387 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___19387); + s.originalImage___21162 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___21162); if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___19387); + r0 = pxsim_ImageMethods.width(s.originalImage___21162); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___19376); + r0 = (s.tmp_1 <= s.size___21151); 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___19387); + r0 = pxsim_ImageMethods.height(s.originalImage___21162); s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___19376); + r0 = (s.tmp_2 <= s.size___21151); 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___19380 = (s.originalImage___19387); + s.cachedImage___21155 = (s.originalImage___21162); { step = 4; continue; } case 3: - r0 = pxsim.image.create(s.size___19376, s.size___19376); - s.cachedImage___19380 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___19380, s.originalImage___19387, 0, 0); + r0 = pxsim.image.create(s.size___21151, s.size___21151); + s.cachedImage___21155 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___21155, s.originalImage___21162, 0, 0); case 4: r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___19380); + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___21155); case 5: case 6: case 7: case 8: - r0 = s.cachedImage___19380; + r0 = s.cachedImage___21155; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P1081.info = {"start":4533,"length":717,"line":170,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMapData_getTileImage__P2310.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__P1081_mk(s) { +function tiles_TileMapData_getTileImage__P2310_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P1081, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P2310, depth: s.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___19376: undefined, - cachedImage___19380: undefined, - originalImage___19387: undefined, + size___21151: undefined, + cachedImage___21155: undefined, + originalImage___21162: undefined, arg0: undefined, arg1: undefined, } } @@ -52767,7 +56784,7 @@ function tiles_TileMapData_getTileImage__P1081_mk(s) { -function tileworld_VMState_constructor__P7653(s) { +function tileworld_VMState_constructor__P9555(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52782,7 +56799,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_VMState__C7652_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_VMState__C9554_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -52791,12 +56808,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_VMState_constructor__P7653.info = {"start":4224,"length":67,"line":89,"column":8,"endLine":91,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this"]} +tileworld_VMState_constructor__P9555.info = {"start":4224,"length":67,"line":89,"column":8,"endLine":91,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this"]} -function tileworld_VMState_constructor__P7653_mk(s) { +function tileworld_VMState_constructor__P9555_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_VMState_constructor__P7653, depth: s.depth + 1, + parent: s, fn: tileworld_VMState_constructor__P9555, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -52807,7 +56824,7 @@ function tileworld_VMState_constructor__P7653_mk(s) { -function tileworld_RunGame_constructor__P9501(s) { +function tileworld_RunGame_constructor__P3774(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52825,17 +56842,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RunGame__C9491_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_RunGame__C3773_VT)) failedCast(r0); r0 = (s.arg0).fields["p"] = (s.arg1); r0 = (s.arg0).fields["debug"] = (s.arg3); - s.tmp_0 = tileworld_BackgroundBase_constructor__P9502_mk(s); + s.tmp_0 = tileworld_BackgroundBase_constructor__P3783_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 460; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileWorldVM__C7665_VT); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_TileWorldVM__C9567_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_TileWorldVM_constructor__P7689_mk(s); + s.tmp_1 = tileworld_TileWorldVM_constructor__P9591_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -52847,12 +56864,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_RunGame_constructor__P9501.info = {"start":31444,"length":164,"line":701,"column":8,"endLine":704,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","p","rules","debug"]} +tileworld_RunGame_constructor__P3774.info = {"start":31444,"length":164,"line":701,"column":8,"endLine":704,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","p","rules","debug"]} -function tileworld_RunGame_constructor__P9501_mk(s) { +function tileworld_RunGame_constructor__P3774_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RunGame_constructor__P9501, depth: s.depth + 1, + parent: s, fn: tileworld_RunGame_constructor__P3774, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -52866,7 +56883,7 @@ function tileworld_RunGame_constructor__P9501_mk(s) { -function tileworld_TileWorldVM_constructor__P7689(s) { +function tileworld_TileWorldVM_constructor__P9591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52876,7 +56893,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rt___7699 = undefined; + s.rt___9601 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -52884,7 +56901,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileWorldVM__C7665_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_TileWorldVM__C9567_VT)) failedCast(r0); r0 = (s.arg0).fields["p"] = (s.arg1); r0 = (s.arg0).fields["rules"] = (s.arg2); s.tmp_0 = r0 = s.arg0; @@ -52892,26 +56909,26 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["ruleIndex"] = (s.tmp_1); r0 = (s.arg0).fields["vm"] = (null); - s.rt___7699 = (0); + s.rt___9601 = (0); case 1: - r0 = (s.rt___7699 <= 3); + r0 = (s.rt___9601 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } r0 = s.arg0.fields["ruleIndex"]; s.tmp_1 = r0; - s.tmp_2 = r0 = s.rt___7699; + s.tmp_2 = r0 = s.rt___9601; r0 = pxsim_Array__mk(); s.tmp_3 = r0; r0 = pxsim_Array_.setAt(s.tmp_1, s.tmp_2, s.tmp_3); - r0 = (s.rt___7699 + 1); - s.rt___7699 = (r0); + r0 = (s.rt___9601 + 1); + s.rt___9601 = (r0); { step = 1; continue; } case 2: - r0 = pxsim_pxtcore_mkAction(1, inline__P7717); + r0 = pxsim_pxtcore_mkAction(1, inline__P9617); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["rules"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; @@ -52922,18 +56939,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_TileWorldVM_constructor__P7689.info = {"start":4909,"length":654,"line":113,"column":8,"endLine":128,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","p","rules"]} +tileworld_TileWorldVM_constructor__P9591.info = {"start":4909,"length":654,"line":113,"column":8,"endLine":128,"endColumn":9,"fileName":"vm.ts","functionName":"inline","argumentNames":["this","p","rules"]} -function tileworld_TileWorldVM_constructor__P7689_mk(s) { +function tileworld_TileWorldVM_constructor__P9591_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileWorldVM_constructor__P7689, depth: s.depth + 1, + parent: s, fn: tileworld_TileWorldVM_constructor__P9591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - rt___7699: undefined, + rt___9601: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -52943,7 +56960,7 @@ function tileworld_TileWorldVM_constructor__P7689_mk(s) { -function inline__P7717(s) { +function inline__P9617(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -52953,23 +56970,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.derivedRules___7719 = undefined; + s.derivedRules___9619 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleView_getDerivedRules__P4978_mk(s); + s.tmp_0 = tileworld_RuleView_getDerivedRules__P3633_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 299; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.derivedRules___7719 = (r0); - r0 = pxsim_Array__push(s.derivedRules___7719, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P7728); + s.derivedRules___9619 = (r0); + r0 = pxsim_Array__push(s.derivedRules___9619, s.arg0); + r0 = pxsim_pxtcore_mkAction(1, inline__P9628); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[0]); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = s.derivedRules___7719; + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = s.derivedRules___9619; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 301; s.pc = 2; return s.tmp_1; case 2: @@ -52978,16 +56995,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P7717.info = {"start":5273,"length":278,"line":120,"column":31,"endLine":127,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} +inline__P9617.info = {"start":5273,"length":278,"line":120,"column":31,"endLine":127,"endColumn":13,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} -function inline__P7717_mk(s) { +function inline__P9617_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7717, depth: s.depth + 1, + parent: s, fn: inline__P9617, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - derivedRules___7719: undefined, + derivedRules___9619: undefined, arg0: undefined, } } @@ -52995,7 +57012,7 @@ function inline__P7717_mk(s) { -function inline__P7728(s) { +function inline__P9628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53005,33 +57022,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rt___7730 = undefined; + s.rt___9630 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0.fields["r"]; r0 = r0.fields["ruleType"]; - s.rt___7730 = (r0); + s.rt___9630 = (r0); r0 = s.caps[0].fields["ruleIndex"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.rt___7730); + r0 = pxsim_Array__getAt(s.tmp_1, s.rt___9630); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P7728.info = {"start":5414,"length":121,"line":123,"column":37,"endLine":126,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} +inline__P9628.info = {"start":5414,"length":121,"line":123,"column":37,"endLine":126,"endColumn":17,"fileName":"vm.ts","functionName":"inline","argumentNames":["rv"]} -function inline__P7728_mk(s) { +function inline__P9628_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P7728, depth: s.depth + 1, + parent: s, fn: inline__P9628, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rt___7730: undefined, + rt___9630: undefined, arg0: undefined, } } @@ -53039,7 +57056,7 @@ function inline__P7728_mk(s) { -function tileworld_Project_getRules__P6112(s) { +function tileworld_Project_getRules__P3684(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53054,17 +57071,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = s.arg0.fields["rules"]; return leave(s, r0) default: oops() } } } -tileworld_Project_getRules__P6112.info = {"start":2419,"length":60,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"project.ts","functionName":"getRules","argumentNames":["this"]} +tileworld_Project_getRules__P3684.info = {"start":2419,"length":60,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"project.ts","functionName":"getRules","argumentNames":["this"]} -function tileworld_Project_getRules__P6112_mk(s) { +function tileworld_Project_getRules__P3684_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_getRules__P6112, depth: s.depth + 1, + parent: s, fn: tileworld_Project_getRules__P3684, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -53073,7 +57090,7 @@ function tileworld_Project_getRules__P6112_mk(s) { -function tileworld_SwitchExport_constructor__P5982(s) { +function tileworld_SwitchExport_constructor__P3667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53090,19 +57107,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_SwitchExport__C5978_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_SwitchExport__C3666_VT)) failedCast(r0); r0 = (s.arg0).fields["p"] = (s.arg1); r0 = (s.arg0).fields["backgrounds"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_SwitchExport_constructor__P5982.info = {"start":107,"length":80,"line":5,"column":8,"endLine":6,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","p","backgrounds"]} +tileworld_SwitchExport_constructor__P3667.info = {"start":107,"length":80,"line":5,"column":8,"endLine":6,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","p","backgrounds"]} -function tileworld_SwitchExport_constructor__P5982_mk(s) { +function tileworld_SwitchExport_constructor__P3667_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_SwitchExport_constructor__P5982, depth: s.depth + 1, + parent: s, fn: tileworld_SwitchExport_constructor__P3667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -53113,7 +57130,7 @@ function tileworld_SwitchExport_constructor__P5982_mk(s) { -function tileworld_Gallery_constructor__P15347(s) { +function tileworld_Gallery_constructor__P3824(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53132,18 +57149,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Gallery__C15344_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Gallery__C3823_VT)) failedCast(r0); r0 = (s.arg0).fields["kind"] = (s.arg2); r0 = (s.arg0).fields["wrapper"] = (s.arg3); r0 = (s.arg0).fields["gallery"] = (s.arg4); - s.tmp_0 = tileworld_RuleVisualsBase_constructor__P10857_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_constructor__P3785_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 1292; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_3 = tileworld_SwitchExport_getImage__P5980_mk(s); + s.tmp_3 = tileworld_SwitchExport_getImage__P3669_mk(s); r0 = s.arg0.fields["wrapper"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.arg2; @@ -53160,50 +57177,50 @@ switch (step) { r0 = pxsim_ImageMethods.clone(s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["newImage"] = (s.tmp_1); - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.callLocIdx = 1294; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 1; s.callLocIdx = 1295; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 1296; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setCol__P10846_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setCol__P12692_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 1297; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_setRow__P10847_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_setRow__P12693_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.callLocIdx = 1298; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P15379); + r0 = pxsim_pxtcore_mkAction(1, inline__P17188); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1304; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P15416); + r0 = pxsim_pxtcore_mkAction(1, inline__P17224); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.B___667; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.B___1875; s.tmp_1.arg1 = 2049; s.tmp_1.arg2 = s.tmp_0; s.callLocIdx = 1308; s.pc = 9; return s.tmp_1; @@ -53213,12 +57230,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Gallery_constructor__P15347.info = {"start":147,"length":1126,"line":5,"column":8,"endLine":30,"endColumn":9,"fileName":"gallery.ts","functionName":"inline","argumentNames":["this","p","kind","wrapper","gallery"]} +tileworld_Gallery_constructor__P3824.info = {"start":147,"length":1126,"line":5,"column":8,"endLine":30,"endColumn":9,"fileName":"gallery.ts","functionName":"inline","argumentNames":["this","p","kind","wrapper","gallery"]} -function tileworld_Gallery_constructor__P15347_mk(s) { +function tileworld_Gallery_constructor__P3824_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Gallery_constructor__P15347, depth: s.depth + 1, + parent: s, fn: tileworld_Gallery_constructor__P3824, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53235,7 +57252,7 @@ function tileworld_Gallery_constructor__P15347_mk(s) { -function inline__P15379(s) { +function inline__P17188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53245,10 +57262,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.isCurrent___15380 = undefined; - s.index___15388 = undefined; - s.img___15400 = undefined; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.isCurrent___17189 = undefined; + s.index___17197 = undefined; + s.img___17209 = undefined; + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.caps[0]; s.tmp_2.arg1 = true; s.callLocIdx = 1299; s.pc = 9; return s.tmp_2; @@ -53262,7 +57279,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_4.arg0 = s.caps[0]; s.tmp_4.arg1 = true; s.callLocIdx = 1300; s.pc = 10; return s.tmp_4; @@ -53273,17 +57290,17 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_5 = r0; - s.isCurrent___15380 = (s.tmp_5); + s.isCurrent___17189 = (s.tmp_5); r0 = s.caps[0].fields["dirMap"]; s.tmp_0 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.caps[0]; s.tmp_2.arg1 = true; s.callLocIdx = 1301; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_4.arg0 = s.caps[0]; s.tmp_4.arg1 = true; s.callLocIdx = 1302; s.pc = 12; return s.tmp_4; @@ -53291,34 +57308,34 @@ switch (step) { r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.index___15388 = (r0); - s.tmp_0 = r0 = s.isCurrent___15380; + s.index___17197 = (r0); + s.tmp_0 = r0 = s.isCurrent___17189; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = (s.index___15388 != 15); + r0 = (s.index___17197 != 15); case 4: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - s.tmp_2 = tileworld_RuleVisualsBase_setTileSaved__P10854_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_setTileSaved__P12700_mk(s); s.tmp_2.arg0 = s.caps[0]; s.callLocIdx = 1303; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; r0 = s.caps[0].fields["gallery"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.index___15388); - s.img___15400 = (r0); - r0 = pxsim_numops_toBoolDecr(s.isCurrent___15380); + r0 = pxsim_Array__getAt(s.tmp_0, s.index___17197); + s.img___17209 = (r0); + r0 = pxsim_numops_toBoolDecr(s.isCurrent___17189); if (!r0) { step = 5; continue; } r0 = s.caps[0].fields["current"]; { step = 6; continue; } case 5: - r0 = s.img___15400; + r0 = s.img___17209; case 6: // jmp value (already in r0) s.tmp_0 = r0; @@ -53331,12 +57348,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P15379.info = {"start":615,"length":399,"line":15,"column":64,"endLine":23,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":[]} +inline__P17188.info = {"start":615,"length":399,"line":15,"column":64,"endLine":23,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":[]} -function inline__P15379_mk(s) { +function inline__P17188_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15379, depth: s.depth + 1, + parent: s, fn: inline__P17188, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53344,16 +57361,16 @@ function inline__P15379_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - isCurrent___15380: undefined, - index___15388: undefined, - img___15400: undefined, + isCurrent___17189: undefined, + index___17197: undefined, + img___17209: undefined, } } -function inline__P15416(s) { +function inline__P17224(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53363,7 +57380,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = tileworld_SwitchExport_getImage__P5980_mk(s); + s.tmp_1 = tileworld_SwitchExport_getImage__P3669_mk(s); r0 = s.caps[0].fields["wrapper"]; s.tmp_1.arg0 = r0; r0 = s.caps[0].fields["kind"]; @@ -53375,7 +57392,7 @@ switch (step) { r0 = s.caps[0].fields["newImage"]; s.tmp_2 = r0; r0 = pxsim_ImageMethods.copyFrom(s.tmp_0, s.tmp_2); - s.tmp_0 = tileworld_SwitchExport_saveImage__P5981_mk(s); + s.tmp_0 = tileworld_SwitchExport_saveImage__P3670_mk(s); r0 = s.caps[0].fields["wrapper"]; s.tmp_0.arg0 = r0; r0 = s.caps[0].fields["kind"]; @@ -53383,7 +57400,7 @@ switch (step) { s.callLocIdx = 1306; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); + s.tmp_0 = game_popScene__P2529_mk(s); s.callLocIdx = 1307; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; @@ -53391,12 +57408,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P15416.info = {"start":1082,"length":179,"line":25,"column":64,"endLine":29,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":[]} +inline__P17224.info = {"start":1082,"length":179,"line":25,"column":64,"endLine":29,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":[]} -function inline__P15416_mk(s) { +function inline__P17224_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15416, depth: s.depth + 1, + parent: s, fn: inline__P17224, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53407,7 +57424,7 @@ function inline__P15416_mk(s) { -function tileworld_SwitchExport_saveImage__P5981(s) { +function tileworld_SwitchExport_saveImage__P3670(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53423,12 +57440,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_SwitchExport__C5978_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_SwitchExport__C3666_VT)) failedCast(r0); r0 = s.arg0.fields["backgrounds"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = tileworld_Project_saveBackgroundImage__P6016_mk(s); + s.tmp_1 = tileworld_Project_saveBackgroundImage__P3698_mk(s); r0 = s.arg0.fields["p"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -53437,7 +57454,7 @@ switch (step) { r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_2 = tileworld_Project_saveSpriteImage__P6021_mk(s); + s.tmp_2 = tileworld_Project_saveSpriteImage__P3699_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.arg1; @@ -53450,12 +57467,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_SwitchExport_saveImage__P5981.info = {"start":475,"length":137,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"project.ts","functionName":"saveImage","argumentNames":["this","kind"]} +tileworld_SwitchExport_saveImage__P3670.info = {"start":475,"length":137,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"project.ts","functionName":"saveImage","argumentNames":["this","kind"]} -function tileworld_SwitchExport_saveImage__P5981_mk(s) { +function tileworld_SwitchExport_saveImage__P3670_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_SwitchExport_saveImage__P5981, depth: s.depth + 1, + parent: s, fn: tileworld_SwitchExport_saveImage__P3670, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53468,7 +57485,7 @@ function tileworld_SwitchExport_saveImage__P5981_mk(s) { -function tileworld_SwitchExport_getImage__P5980(s) { +function tileworld_SwitchExport_getImage__P3669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53484,12 +57501,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_SwitchExport__C5978_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_SwitchExport__C3666_VT)) failedCast(r0); r0 = s.arg0.fields["backgrounds"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = tileworld_Project_getBackgroundImage__P6002_mk(s); + s.tmp_1 = tileworld_Project_getBackgroundImage__P3696_mk(s); r0 = s.arg0.fields["p"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -53498,7 +57515,7 @@ switch (step) { r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_2 = tileworld_Project_getSpriteImage__P6007_mk(s); + s.tmp_2 = tileworld_Project_getSpriteImage__P3697_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.arg1; @@ -53512,12 +57529,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_SwitchExport_getImage__P5980.info = {"start":324,"length":142,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"project.ts","functionName":"getImage","argumentNames":["this","kind"]} +tileworld_SwitchExport_getImage__P3669.info = {"start":324,"length":142,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"project.ts","functionName":"getImage","argumentNames":["this","kind"]} -function tileworld_SwitchExport_getImage__P5980_mk(s) { +function tileworld_SwitchExport_getImage__P3669_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_SwitchExport_getImage__P5980, depth: s.depth + 1, + parent: s, fn: tileworld_SwitchExport_getImage__P3669, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -53531,7 +57548,7 @@ function tileworld_SwitchExport_getImage__P5980_mk(s) { -function game_pushScene__P1292(s) { +function game_pushScene__P2528(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53541,45 +57558,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___21008 = undefined; - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 852; s.pc = 5; return s.tmp_0; + s.oldScene___22771 = undefined; + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 854; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.oldScene___21008 = (r0); - s.tmp_0 = particles_clearAll__P1749_mk(s); - s.callLocIdx = 853; s.pc = 6; return s.tmp_0; + s.oldScene___22771 = (r0); + s.tmp_0 = particles_clearAll__P2700_mk(s); + s.callLocIdx = 855; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_disableAll__P1750_mk(s); - s.callLocIdx = 854; s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_disableAll__P2701_mk(s); + s.callLocIdx = 856; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___1281); + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___4275); 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___1281 = (r0); + globals._sceneStack___4275 = (r0); case 1: case 2: - r0 = pxsim_Array__push(globals._sceneStack___1281, globals._scene___1280); - s.tmp_0 = game_init__P1291_mk(s); + r0 = pxsim_Array__push(globals._sceneStack___4275, globals._scene___4274); + s.tmp_0 = game_init__P4282_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 855; s.pc = 8; return s.tmp_0; + s.callLocIdx = 857; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___1282); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___4276); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P21025); + r0 = pxsim_pxtcore_mkAction(1, inline__P22788); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___21008); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___1282; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___22771); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___4276; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 857; s.pc = 9; return s.tmp_1; + s.callLocIdx = 859; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; case 3: @@ -53588,23 +57605,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_pushScene__P1292.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +game_pushScene__P2528.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__P1292_mk(s) { +function game_pushScene__P2528_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P1292, depth: s.depth + 1, + parent: s, fn: game_pushScene__P2528, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___21008: undefined, + oldScene___22771: undefined, } } -function inline__P21025(s) { +function inline__P22788(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53622,19 +57639,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 = 856; s.pc = 1; return s.tmp_0; + s.callLocIdx = 858; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P21025.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +inline__P22788.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__P21025_mk(s) { +function inline__P22788_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P21025, depth: s.depth + 1, + parent: s, fn: inline__P22788, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -53644,7 +57661,7 @@ function inline__P21025_mk(s) { -function particles_disableAll__P1750(s) { +function particles_disableAll__P2701(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53654,22 +57671,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___23741 = undefined; - s.tmp_0 = particles_particleSources__P1752_mk(s); - s.callLocIdx = 1114; s.pc = 3; return s.tmp_0; + s.sources___25439 = undefined; + s.tmp_0 = particles_particleSources__P4635_mk(s); + s.callLocIdx = 1116; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___23741 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___23741); + s.sources___25439 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___25439); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P60_mk(s); - s.tmp_0.arg0 = s.sources___23741; - s.tmp_0.arg1 = inline__P23747; - s.callLocIdx = 1116; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + s.tmp_0.arg0 = s.sources___25439; + s.tmp_0.arg1 = inline__P25445; + s.callLocIdx = 1118; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P1739_mk(s); - s.callLocIdx = 1117; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P4631_mk(s); + s.callLocIdx = 1119; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -53678,22 +57695,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_disableAll__P1750.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} +particles_disableAll__P2701.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__P1750_mk(s) { +function particles_disableAll__P2701_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll__P1750, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P2701, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___23741: undefined, + sources___25439: undefined, } } -function inline__P23747(s) { +function inline__P25445(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53707,22 +57724,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P1724_mk(s); + s.tmp_0 = particles_ParticleSource_enabled__P2683_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.callLocIdx = 1115; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1117; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = false; return leave(s, r0) default: oops() } } } -inline__P23747.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P25445.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__P23747_mk(s) { +function inline__P25445_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23747, depth: s.depth + 1, + parent: s, fn: inline__P25445, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -53732,7 +57749,7 @@ function inline__P23747_mk(s) { -function particles_clearAll__P1749(s) { +function particles_clearAll__P2700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53742,22 +57759,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___23752 = undefined; - s.tmp_0 = particles_particleSources__P1752_mk(s); - s.callLocIdx = 1110; s.pc = 3; return s.tmp_0; + s.sources___25450 = undefined; + s.tmp_0 = particles_particleSources__P4635_mk(s); + s.callLocIdx = 1112; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___23752 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___23752); + s.sources___25450 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___25450); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P60_mk(s); - s.tmp_0.arg0 = s.sources___23752; - s.tmp_0.arg1 = inline__P23758; - s.callLocIdx = 1112; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + s.tmp_0.arg0 = s.sources___25450; + s.tmp_0.arg1 = inline__P25456; + s.callLocIdx = 1114; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P1739_mk(s); - s.callLocIdx = 1113; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P4631_mk(s); + s.callLocIdx = 1115; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -53766,22 +57783,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_clearAll__P1749.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} +particles_clearAll__P2700.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__P1749_mk(s) { +function particles_clearAll__P2700_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll__P1749, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P2700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___23752: undefined, + sources___25450: undefined, } } -function inline__P23758(s) { +function inline__P25456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53795,21 +57812,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P1726_mk(s); + s.tmp_0 = particles_ParticleSource_clear__P2685_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1111; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1113; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P23758.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P25456.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__P23758_mk(s) { +function inline__P25456_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P23758, depth: s.depth + 1, + parent: s, fn: inline__P25456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -53819,7 +57836,7 @@ function inline__P23758_mk(s) { -function tileworld_Project_saveProject__P6127(s) { +function tileworld_Project_saveProject__P3706(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -53829,33 +57846,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.prefix___6410 = undefined; - s.worldBuf___6479 = undefined; - s.spritesBuf___6489 = undefined; + s.prefix___8386 = undefined; + s.worldBuf___8454 = undefined; + s.spritesBuf___8464 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = s.arg0.fields["prefix"]; - s.prefix___6410 = (r0); - s.tmp_0 = settings_writeString__P612_mk(s); - if ((s.prefix___6410) && (s.prefix___6410).vtable) { + s.prefix___8386 = (r0); + s.tmp_0 = settings_writeString__P1825_mk(s); + if ((s.prefix___8386) && (s.prefix___8386).vtable) { setupResume(s, 4); - pxsim_String__stringConv(s.prefix___6410); + pxsim_String__stringConv(s.prefix___8386); checkResumeConsumed(); return; - } else { s.retval = (s.prefix___6410) + ""; } + } else { s.retval = (s.prefix___8386) + ""; } case 4: r0 = s.retval; s.tmp_1 = r0; - if ((globals.VersionKey___6418) && (globals.VersionKey___6418).vtable) { + if ((globals.VersionKey___8394) && (globals.VersionKey___8394).vtable) { setupResume(s, 5); - pxsim_String__stringConv(globals.VersionKey___6418); + pxsim_String__stringConv(globals.VersionKey___8394); checkResumeConsumed(); return; - } else { s.retval = (globals.VersionKey___6418) + ""; } + } else { s.retval = (globals.VersionKey___8394) + ""; } case 5: r0 = s.retval; s.tmp_2 = r0; @@ -53877,22 +57894,22 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = settings_writeNumber__P613_mk(s); - if ((s.prefix___6410) && (s.prefix___6410).vtable) { + s.tmp_2 = settings_writeNumber__P1826_mk(s); + if ((s.prefix___8386) && (s.prefix___8386).vtable) { setupResume(s, 7); - pxsim_String__stringConv(s.prefix___6410); + pxsim_String__stringConv(s.prefix___8386); checkResumeConsumed(); return; - } else { s.retval = (s.prefix___6410) + ""; } + } else { s.retval = (s.prefix___8386) + ""; } case 7: r0 = s.retval; s.tmp_3 = r0; - if ((globals.HelpKey___6366) && (globals.HelpKey___6366).vtable) { + if ((globals.HelpKey___8342) && (globals.HelpKey___8342).vtable) { setupResume(s, 8); - pxsim_String__stringConv(globals.HelpKey___6366); + pxsim_String__stringConv(globals.HelpKey___8342); checkResumeConsumed(); return; - } else { s.retval = (globals.HelpKey___6366) + ""; } + } else { s.retval = (globals.HelpKey___8342) + ""; } case 8: r0 = s.retval; s.tmp_4 = r0; @@ -53902,22 +57919,22 @@ switch (step) { s.callLocIdx = 198; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.prefix___6410) && (s.prefix___6410).vtable) { + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.prefix___8386) && (s.prefix___8386).vtable) { setupResume(s, 10); - pxsim_String__stringConv(s.prefix___6410); + pxsim_String__stringConv(s.prefix___8386); checkResumeConsumed(); return; - } else { s.retval = (s.prefix___6410) + ""; } + } else { s.retval = (s.prefix___8386) + ""; } case 10: r0 = s.retval; s.tmp_1 = r0; - if ((globals.BackImgCntKey___6437) && (globals.BackImgCntKey___6437).vtable) { + if ((globals.BackImgCntKey___8412) && (globals.BackImgCntKey___8412).vtable) { setupResume(s, 11); - pxsim_String__stringConv(globals.BackImgCntKey___6437); + pxsim_String__stringConv(globals.BackImgCntKey___8412); checkResumeConsumed(); return; - } else { s.retval = (globals.BackImgCntKey___6437) + ""; } + } else { s.retval = (globals.BackImgCntKey___8412) + ""; } case 11: r0 = s.retval; s.tmp_2 = r0; @@ -53930,22 +57947,22 @@ switch (step) { s.callLocIdx = 200; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.prefix___6410) && (s.prefix___6410).vtable) { + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.prefix___8386) && (s.prefix___8386).vtable) { setupResume(s, 13); - pxsim_String__stringConv(s.prefix___6410); + pxsim_String__stringConv(s.prefix___8386); checkResumeConsumed(); return; - } else { s.retval = (s.prefix___6410) + ""; } + } else { s.retval = (s.prefix___8386) + ""; } case 13: r0 = s.retval; s.tmp_1 = r0; - if ((globals.SpriteImgCntKey___6446) && (globals.SpriteImgCntKey___6446).vtable) { + if ((globals.SpriteImgCntKey___8421) && (globals.SpriteImgCntKey___8421).vtable) { setupResume(s, 14); - pxsim_String__stringConv(globals.SpriteImgCntKey___6446); + pxsim_String__stringConv(globals.SpriteImgCntKey___8421); checkResumeConsumed(); return; - } else { s.retval = (globals.SpriteImgCntKey___6446) + ""; } + } else { s.retval = (globals.SpriteImgCntKey___8421) + ""; } case 14: r0 = s.retval; s.tmp_2 = r0; @@ -53958,22 +57975,22 @@ switch (step) { s.callLocIdx = 202; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.prefix___6410) && (s.prefix___6410).vtable) { + s.tmp_0 = settings_writeNumber__P1826_mk(s); + if ((s.prefix___8386) && (s.prefix___8386).vtable) { setupResume(s, 16); - pxsim_String__stringConv(s.prefix___6410); + pxsim_String__stringConv(s.prefix___8386); checkResumeConsumed(); return; - } else { s.retval = (s.prefix___6410) + ""; } + } else { s.retval = (s.prefix___8386) + ""; } case 16: r0 = s.retval; s.tmp_1 = r0; - if ((globals.PlayerIndexKey___6455) && (globals.PlayerIndexKey___6455).vtable) { + if ((globals.PlayerIndexKey___8430) && (globals.PlayerIndexKey___8430).vtable) { setupResume(s, 17); - pxsim_String__stringConv(globals.PlayerIndexKey___6455); + pxsim_String__stringConv(globals.PlayerIndexKey___8430); checkResumeConsumed(); return; - } else { s.retval = (globals.PlayerIndexKey___6455) + ""; } + } else { s.retval = (globals.PlayerIndexKey___8430) + ""; } case 17: r0 = s.retval; s.tmp_2 = r0; @@ -53984,95 +58001,95 @@ switch (step) { s.callLocIdx = 204; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P6461); + r0 = pxsim_pxtcore_mkAction(1, inline__P8436); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.prefix___6410); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.prefix___8386); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["_backgroundsI"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 207; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P6471); + r0 = pxsim_pxtcore_mkAction(1, inline__P8446); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.prefix___6410); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.prefix___8386); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["_spritesI"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 210; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; - s.tmp_0 = tileworld_imageToBuffer__P4091_mk(s); + s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s); r0 = s.arg0.fields["_backgrounds"]; s.tmp_0.arg0 = r0; s.callLocIdx = 212; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; - s.worldBuf___6479 = (r0); - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.prefix___6410) && (s.prefix___6410).vtable) { + s.worldBuf___8454 = (r0); + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.prefix___8386) && (s.prefix___8386).vtable) { setupResume(s, 22); - pxsim_String__stringConv(s.prefix___6410); + pxsim_String__stringConv(s.prefix___8386); checkResumeConsumed(); return; - } else { s.retval = (s.prefix___6410) + ""; } + } else { s.retval = (s.prefix___8386) + ""; } case 22: r0 = s.retval; s.tmp_1 = r0; - if ((globals.WorldBackgroundsKey___6341) && (globals.WorldBackgroundsKey___6341).vtable) { + if ((globals.WorldBackgroundsKey___8317) && (globals.WorldBackgroundsKey___8317).vtable) { setupResume(s, 23); - pxsim_String__stringConv(globals.WorldBackgroundsKey___6341); + pxsim_String__stringConv(globals.WorldBackgroundsKey___8317); checkResumeConsumed(); return; - } else { s.retval = (globals.WorldBackgroundsKey___6341) + ""; } + } else { s.retval = (globals.WorldBackgroundsKey___8317) + ""; } case 23: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.worldBuf___6479; + s.tmp_0.arg1 = s.worldBuf___8454; s.callLocIdx = 213; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.tmp_0 = tileworld_imageToBuffer__P4091_mk(s); + s.tmp_0 = tileworld_imageToBuffer__P3542_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_0.arg0 = r0; s.callLocIdx = 215; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.spritesBuf___6489 = (r0); - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.prefix___6410) && (s.prefix___6410).vtable) { + s.spritesBuf___8464 = (r0); + s.tmp_0 = settings_writeBuffer__P1824_mk(s); + if ((s.prefix___8386) && (s.prefix___8386).vtable) { setupResume(s, 26); - pxsim_String__stringConv(s.prefix___6410); + pxsim_String__stringConv(s.prefix___8386); checkResumeConsumed(); return; - } else { s.retval = (s.prefix___6410) + ""; } + } else { s.retval = (s.prefix___8386) + ""; } case 26: r0 = s.retval; s.tmp_1 = r0; - if ((globals.WorldSpritesKey___6355) && (globals.WorldSpritesKey___6355).vtable) { + if ((globals.WorldSpritesKey___8331) && (globals.WorldSpritesKey___8331).vtable) { setupResume(s, 27); - pxsim_String__stringConv(globals.WorldSpritesKey___6355); + pxsim_String__stringConv(globals.WorldSpritesKey___8331); checkResumeConsumed(); return; - } else { s.retval = (globals.WorldSpritesKey___6355) + ""; } + } else { s.retval = (globals.WorldSpritesKey___8331) + ""; } case 27: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.spritesBuf___6489; + s.tmp_0.arg1 = s.spritesBuf___8464; s.callLocIdx = 216; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(2, inline__P6501); + r0 = pxsim_pxtcore_mkAction(2, inline__P8476); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.prefix___6410); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.prefix___8386); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["rules"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; @@ -54083,21 +58100,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_saveProject__P6127.info = {"start":5927,"length":1127,"line":168,"column":8,"endLine":188,"endColumn":9,"fileName":"project.ts","functionName":"saveProject","argumentNames":["this"]} +tileworld_Project_saveProject__P3706.info = {"start":5927,"length":1127,"line":168,"column":8,"endLine":188,"endColumn":9,"fileName":"project.ts","functionName":"saveProject","argumentNames":["this"]} -function tileworld_Project_saveProject__P6127_mk(s) { +function tileworld_Project_saveProject__P3706_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_saveProject__P6127, depth: s.depth + 1, + parent: s, fn: tileworld_Project_saveProject__P3706, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - prefix___6410: undefined, - worldBuf___6479: undefined, - spritesBuf___6489: undefined, + prefix___8386: undefined, + worldBuf___8454: undefined, + spritesBuf___8464: undefined, arg0: undefined, } } @@ -54105,7 +58122,7 @@ function tileworld_Project_saveProject__P6127_mk(s) { -function inline__P6461(s) { +function inline__P8436(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54115,13 +58132,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___6464 = undefined; + s.buf___8439 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_saveImage__P6232_mk(s); + s.tmp_0 = tileworld_saveImage__P8209_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg0; @@ -54129,20 +58146,20 @@ switch (step) { s.callLocIdx = 206; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.buf___6464 = (r0); + s.buf___8439 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6461.info = {"start":6401,"length":86,"line":175,"column":44,"endLine":177,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["img","i"]} +inline__P8436.info = {"start":6401,"length":86,"line":175,"column":44,"endLine":177,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["img","i"]} -function inline__P6461_mk(s) { +function inline__P8436_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6461, depth: s.depth + 1, + parent: s, fn: inline__P8436, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - buf___6464: undefined, + buf___8439: undefined, arg0: undefined, arg1: undefined, } } @@ -54151,7 +58168,7 @@ function inline__P6461_mk(s) { -function inline__P6471(s) { +function inline__P8446(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54161,13 +58178,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___6474 = undefined; + s.buf___8449 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_saveImage__P6232_mk(s); + s.tmp_0 = tileworld_saveImage__P8209_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg0; @@ -54175,20 +58192,20 @@ switch (step) { s.callLocIdx = 209; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.buf___6474 = (r0); + s.buf___8449 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P6471.info = {"start":6530,"length":87,"line":178,"column":40,"endLine":180,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["img","i"]} +inline__P8446.info = {"start":6530,"length":87,"line":178,"column":40,"endLine":180,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["img","i"]} -function inline__P6471_mk(s) { +function inline__P8446_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P6471, depth: s.depth + 1, + parent: s, fn: inline__P8446, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - buf___6474: undefined, + buf___8449: undefined, arg0: undefined, arg1: undefined, } } @@ -54197,7 +58214,7 @@ function inline__P6471_mk(s) { -function inline__P6501(s) { +function inline__P8476(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54207,12 +58224,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___6503 = undefined; + s.buf___8478 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_Project_storeRule__P6126_mk(s); + s.tmp_0 = tileworld_Project_storeRule__P8110_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.caps[1]; r0 = s.arg0.fields["rid"]; @@ -54222,70 +58239,28 @@ switch (step) { s.callLocIdx = 220; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.buf___6503 = (r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P6501.info = {"start":6940,"length":102,"line":185,"column":36,"endLine":187,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]} - -function inline__P6501_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P6501, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - buf___6503: undefined, - arg0: undefined, -} } - - - - - -function settings_writeString__P612(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 = settings_writeBuffer__P611_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim.control.createBufferFromUTF8(s.arg1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 132; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + s.buf___8478 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeString__P612.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} +inline__P8476.info = {"start":6940,"length":102,"line":185,"column":36,"endLine":187,"endColumn":13,"fileName":"project.ts","functionName":"inline","argumentNames":["r"]} -function settings_writeString__P612_mk(s) { +function inline__P8476_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P612, depth: s.depth + 1, + parent: s, fn: inline__P8476, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + buf___8478: undefined, arg0: undefined, - arg1: undefined, } } -function tileworld_emptyProject__P7143(s) { +function tileworld_emptyProject__P3710(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54295,71 +58270,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fixed___7145 = undefined; - s.movable___7147 = undefined; - s.f___7149 = undefined; - s.f___7167 = undefined; - s.rules___7185 = undefined; - s.p___7187 = undefined; - s.world___7193 = undefined; - s.sprites___7198 = undefined; + s.fixed___9114 = undefined; + s.movable___9116 = undefined; + s.f___9118 = undefined; + s.f___9135 = undefined; + s.rules___9151 = undefined; + s.p___9153 = undefined; + s.world___9159 = undefined; + s.sprites___9164 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.fixed___7145 = (r0); + s.fixed___9114 = (r0); r0 = pxsim_Array__mk(); - s.movable___7147 = (r0); - s.f___7149 = (0); + s.movable___9116 = (r0); + s.f___9118 = (0); case 1: - r0 = (s.f___7149 < 4); + r0 = (s.f___9118 < 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.fixed___7145; - r0 = pxsim_Array__getAt(globals.galleryTiles___7160, s.f___7149); + s.tmp_1 = r0 = s.fixed___9114; + r0 = pxsim_Array__getAt(globals.galleryTiles___3771, s.f___9118); s.tmp_3 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.f___7149 + 1); - s.f___7149 = (r0); + r0 = (s.f___9118 + 1); + s.f___9118 = (r0); { step = 1; continue; } case 2: - s.f___7167 = (0); + s.f___9135 = (0); case 3: - r0 = (s.f___7167 < 4); + r0 = (s.f___9135 < 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = r0 = s.movable___7147; - r0 = pxsim_Array__getAt(globals.gallerySprites___7178, s.f___7167); + s.tmp_1 = r0 = s.movable___9116; + r0 = pxsim_Array__getAt(globals.gallerySprites___3770, s.f___9135); s.tmp_3 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.f___7167 + 1); - s.f___7167 = (r0); + r0 = (s.f___9135 + 1); + s.f___9135 = (r0); { step = 3; continue; } case 4: r0 = pxsim_Array__mk(); - s.rules___7185 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_Project__C6110_VT); + s.rules___9151 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_Project__C3677_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_Project_constructor__P6131_mk(s); + s.tmp_1 = tileworld_Project_constructor__P3682_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.fixed___7145; - s.tmp_1.arg3 = s.movable___7147; + s.tmp_1.arg2 = s.fixed___9114; + s.tmp_1.arg3 = s.movable___9116; s.callLocIdx = 279; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - s.p___7187 = (s.tmp_0); + s.p___9153 = (s.tmp_0); r0 = pxsim.image.create(32, 24); - s.world___7193 = (r0); - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = s.world___7193; + s.world___9159 = (r0); + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = s.world___9159; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 1; s.tmp_0.arg3 = 30; @@ -54369,50 +58344,50 @@ switch (step) { case 6: r0 = s.retval; r0 = pxsim.image.create(32, 24); - s.sprites___7198 = (r0); - r0 = pxsim_ImageMethods.fill(s.sprites___7198, 15); - s.tmp_0 = tileworld_Project_setWorldBackgrounds__P6115_mk(s); - s.tmp_0.arg0 = s.p___7187; - s.tmp_0.arg1 = s.world___7193; + s.sprites___9164 = (r0); + r0 = pxsim_ImageMethods.fill(s.sprites___9164, 15); + s.tmp_0 = tileworld_Project_setWorldBackgrounds__P3687_mk(s); + s.tmp_0.arg0 = s.p___9153; + s.tmp_0.arg1 = s.world___9159; s.callLocIdx = 281; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = tileworld_Project_setWorldSprites__P6117_mk(s); - s.tmp_0.arg0 = s.p___7187; - s.tmp_0.arg1 = s.sprites___7198; + s.tmp_0 = tileworld_Project_setWorldSprites__P3689_mk(s); + s.tmp_0.arg0 = s.p___9153; + s.tmp_0.arg1 = s.sprites___9164; s.callLocIdx = 282; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = tileworld_Project_setPlayer__P6113_mk(s); - s.tmp_0.arg0 = s.p___7187; + s.tmp_0 = tileworld_Project_setPlayer__P3685_mk(s); + s.tmp_0.arg0 = s.p___9153; s.tmp_0.arg1 = 0; s.callLocIdx = 283; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - r0 = (s.p___7187).fields["version"] = (globals.TileWorldVersion___5977); - r0 = s.p___7187; + r0 = (s.p___9153).fields["version"] = (globals.TileWorldVersion___3665); + r0 = s.p___9153; return leave(s, r0) default: oops() } } } -tileworld_emptyProject__P7143.info = {"start":13861,"length":719,"line":353,"column":4,"endLine":373,"endColumn":5,"fileName":"project.ts","functionName":"emptyProject","argumentNames":["prefix"]} +tileworld_emptyProject__P3710.info = {"start":13861,"length":719,"line":353,"column":4,"endLine":373,"endColumn":5,"fileName":"project.ts","functionName":"emptyProject","argumentNames":["prefix"]} -function tileworld_emptyProject__P7143_mk(s) { +function tileworld_emptyProject__P3710_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_emptyProject__P7143, depth: s.depth + 1, + parent: s, fn: tileworld_emptyProject__P3710, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - fixed___7145: undefined, - movable___7147: undefined, - f___7149: undefined, - f___7167: undefined, - rules___7185: undefined, - p___7187: undefined, - world___7193: undefined, - sprites___7198: undefined, + fixed___9114: undefined, + movable___9116: undefined, + f___9118: undefined, + f___9135: undefined, + rules___9151: undefined, + p___9153: undefined, + world___9159: undefined, + sprites___9164: undefined, arg0: undefined, } } @@ -54420,7 +58395,7 @@ function tileworld_emptyProject__P7143_mk(s) { -function tileworld_Project_setPlayer__P6113(s) { +function tileworld_Project_setPlayer__P3685(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54436,18 +58411,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = (s.arg0).fields["_player"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_Project_setPlayer__P6113.info = {"start":2489,"length":75,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"project.ts","functionName":"setPlayer","argumentNames":["this","kind"]} +tileworld_Project_setPlayer__P3685.info = {"start":2489,"length":75,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"project.ts","functionName":"setPlayer","argumentNames":["this","kind"]} -function tileworld_Project_setPlayer__P6113_mk(s) { +function tileworld_Project_setPlayer__P3685_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_setPlayer__P6113, depth: s.depth + 1, + parent: s, fn: tileworld_Project_setPlayer__P3685, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -54457,7 +58432,7 @@ function tileworld_Project_setPlayer__P6113_mk(s) { -function tileworld_Project_setWorldSprites__P6117(s) { +function tileworld_Project_setWorldSprites__P3689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54473,18 +58448,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = (s.arg0).fields["_sprites"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_Project_setWorldSprites__P6117.info = {"start":2959,"length":80,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"project.ts","functionName":"setWorldSprites","argumentNames":["this","img"]} +tileworld_Project_setWorldSprites__P3689.info = {"start":2959,"length":80,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"project.ts","functionName":"setWorldSprites","argumentNames":["this","img"]} -function tileworld_Project_setWorldSprites__P6117_mk(s) { +function tileworld_Project_setWorldSprites__P3689_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_setWorldSprites__P6117, depth: s.depth + 1, + parent: s, fn: tileworld_Project_setWorldSprites__P3689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -54494,7 +58469,7 @@ function tileworld_Project_setWorldSprites__P6117_mk(s) { -function tileworld_Project_setWorldBackgrounds__P6115(s) { +function tileworld_Project_setWorldBackgrounds__P3687(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54510,18 +58485,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = (s.arg0).fields["_backgrounds"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_Project_setWorldBackgrounds__P6115.info = {"start":2774,"length":87,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"project.ts","functionName":"setWorldBackgrounds","argumentNames":["this","img"]} +tileworld_Project_setWorldBackgrounds__P3687.info = {"start":2774,"length":87,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"project.ts","functionName":"setWorldBackgrounds","argumentNames":["this","img"]} -function tileworld_Project_setWorldBackgrounds__P6115_mk(s) { +function tileworld_Project_setWorldBackgrounds__P3687_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_setWorldBackgrounds__P6115, depth: s.depth + 1, + parent: s, fn: tileworld_Project_setWorldBackgrounds__P3687, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -54531,7 +58506,7 @@ function tileworld_Project_setWorldBackgrounds__P6115_mk(s) { -function tileworld_Project_constructor__P6131(s) { +function tileworld_Project_constructor__P3682(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54549,7 +58524,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_Project__C6110_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); r0 = (s.arg0).fields["prefix"] = (s.arg1); r0 = (s.arg0).fields["_backgroundsI"] = (s.arg2); r0 = (s.arg0).fields["_spritesI"] = (s.arg3); @@ -54568,12 +58543,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_Project_constructor__P6131.info = {"start":1935,"length":390,"line":50,"column":8,"endLine":57,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","prefix","_backgroundsI","_spritesI"]} +tileworld_Project_constructor__P3682.info = {"start":1935,"length":390,"line":50,"column":8,"endLine":57,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["this","prefix","_backgroundsI","_spritesI"]} -function tileworld_Project_constructor__P6131_mk(s) { +function tileworld_Project_constructor__P3682_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Project_constructor__P6131, depth: s.depth + 1, + parent: s, fn: tileworld_Project_constructor__P3682, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -54587,7 +58562,7 @@ function tileworld_Project_constructor__P6131_mk(s) { -function tileworld_LoadScreen_update__P16015(s) { +function tileworld_LoadScreen_update__P17818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54597,111 +58572,111 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___16209 = undefined; - s.row___16213 = undefined; - s.i___16225 = undefined; - s.i___16245 = undefined; - s.r___16351 = undefined; + s.col___18011 = undefined; + s.row___18015 = undefined; + s.i___18027 = undefined; + s.i___18047 = undefined; + s.r___18153 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_LoadScreen__C16011_VT)) failedCast(r0); - s.col___16209 = (0); + if (!checkSubtype(r0, tileworld_LoadScreen__C3832_VT)) failedCast(r0); + s.col___18011 = (0); case 1: - r0 = (s.col___16209 < 10); + r0 = (s.col___18011 < 10); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.row___16213 = (0); + s.row___18015 = (0); case 2: - r0 = (s.row___16213 < 7); + r0 = (s.row___18015 < 7); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.col___16209; - s.tmp_1.arg2 = s.row___16213; - s.tmp_1.arg3 = globals.emptyTile___7244; + s.tmp_1.arg1 = s.col___18011; + s.tmp_1.arg2 = s.row___18015; + s.tmp_1.arg3 = globals.emptyTile___3721; s.callLocIdx = 1445; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = (s.row___16213 + 1); - s.row___16213 = (r0); + r0 = (s.row___18015 + 1); + s.row___18015 = (r0); { step = 2; continue; } case 3: - r0 = (s.col___16209 + 1); - s.col___16209 = (r0); + r0 = (s.col___18011 + 1); + s.col___18011 = (r0); { step = 1; continue; } case 4: - s.i___16225 = (0); + s.i___18027 = (0); case 5: - r0 = (s.i___16225 < 10); + r0 = (s.i___18027 < 10); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.i___16225; + s.tmp_1.arg1 = s.i___18027; s.tmp_1.arg2 = 0; - s.tmp_1.arg3 = globals.genericSprite___7259; + s.tmp_1.arg3 = globals.genericSprite___3726; s.callLocIdx = 1446; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.i___16225; + s.tmp_0.arg1 = s.i___18027; s.tmp_0.arg2 = 6; - s.tmp_0.arg3 = globals.genericSprite___7259; + s.tmp_0.arg3 = globals.genericSprite___3726; s.callLocIdx = 1447; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - r0 = (s.i___16225 > 6); + r0 = (s.i___18027 > 6); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } { step = 8; continue; } case 6: case 7: - s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_1 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.i___16225; - s.tmp_1.arg3 = globals.genericSprite___7259; + s.tmp_1.arg2 = s.i___18027; + s.tmp_1.arg3 = globals.genericSprite___3726; s.callLocIdx = 1448; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 9; - s.tmp_0.arg2 = s.i___16225; - s.tmp_0.arg3 = globals.genericSprite___7259; + s.tmp_0.arg2 = s.i___18027; + s.tmp_0.arg3 = globals.genericSprite___3726; s.callLocIdx = 1449; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; case 8: - r0 = (s.i___16225 + 1); - s.i___16225 = (r0); + r0 = (s.i___18027 + 1); + s.i___18027 = (r0); { step = 5; continue; } case 9: - s.i___16245 = (0); + s.i___18047 = (0); case 10: - r0 = (s.i___16245 < 4); + r0 = (s.i___18047 < 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_1 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_1 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.i___16245; + s.tmp_1.arg1 = s.i___18047; s.tmp_1.arg2 = 0; s.tmp_1.arg3 = 12; s.callLocIdx = 1450; s.pc = 27; return s.tmp_1; case 27: r0 = s.retval; - r0 = (s.i___16245 + 1); - s.i___16245 = (r0); + r0 = (s.i___18047 + 1); + s.i___18047 = (r0); { step = 10; continue; } case 11: r0 = s.arg0.fields["lastDir"]; @@ -54710,18 +58685,18 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - r0 = globals.downButton___7301; + r0 = globals.downButton___3740; { step = 13; continue; } case 12: - s.tmp_2 = tileworld_greyImage__P3924_mk(s); - s.tmp_2.arg0 = globals.downButton___7301; + s.tmp_2 = tileworld_greyImage__P3539_mk(s); + s.tmp_2.arg0 = globals.downButton___3740; s.callLocIdx = 1451; s.pc = 28; return s.tmp_2; case 28: r0 = s.retval; case 13: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = 1; s.tmp_4.arg2 = 6; @@ -54735,18 +58710,18 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = globals.upButton___7304; + r0 = globals.upButton___3741; { step = 15; continue; } case 14: - s.tmp_2 = tileworld_greyImage__P3924_mk(s); - s.tmp_2.arg0 = globals.upButton___7304; + s.tmp_2 = tileworld_greyImage__P3539_mk(s); + s.tmp_2.arg0 = globals.upButton___3741; s.callLocIdx = 1453; s.pc = 30; return s.tmp_2; case 30: r0 = s.retval; case 15: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = 1; s.tmp_4.arg2 = 4; @@ -54760,18 +58735,18 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - r0 = globals.leftButton___7295; + r0 = globals.leftButton___3738; { step = 17; continue; } case 16: - s.tmp_2 = tileworld_greyImage__P3924_mk(s); - s.tmp_2.arg0 = globals.leftButton___7295; + s.tmp_2 = tileworld_greyImage__P3539_mk(s); + s.tmp_2.arg0 = globals.leftButton___3738; s.callLocIdx = 1455; s.pc = 32; return s.tmp_2; case 32: r0 = s.retval; case 17: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = 0; s.tmp_4.arg2 = 5; @@ -54785,18 +58760,18 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - r0 = globals.rightButton___7298; + r0 = globals.rightButton___3739; { step = 19; continue; } case 18: - s.tmp_2 = tileworld_greyImage__P3924_mk(s); - s.tmp_2.arg0 = globals.rightButton___7298; + s.tmp_2 = tileworld_greyImage__P3539_mk(s); + s.tmp_2.arg0 = globals.rightButton___3739; s.callLocIdx = 1457; s.pc = 34; return s.tmp_2; case 34: r0 = s.retval; case 19: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = 2; s.tmp_4.arg2 = 5; @@ -54804,8 +58779,8 @@ switch (step) { s.callLocIdx = 1458; s.pc = 35; return s.tmp_4; case 35: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = "TileCode"; s.tmp_0.arg2 = 6; s.tmp_0.arg3 = 10; @@ -54815,7 +58790,7 @@ switch (step) { s.callLocIdx = 1459; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 3; s.tmp_0.arg2 = 1; @@ -54823,7 +58798,7 @@ switch (step) { s.callLocIdx = 1460; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 4; s.tmp_0.arg2 = 1; @@ -54831,8 +58806,8 @@ switch (step) { s.callLocIdx = 1461; s.pc = 38; return s.tmp_0; case 38: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = "Load"; r0 = (48 + 4); s.tmp_0.arg2 = r0; @@ -54846,7 +58821,7 @@ switch (step) { s.callLocIdx = 1462; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 5; s.tmp_0.arg2 = 1; @@ -54854,7 +58829,7 @@ switch (step) { s.callLocIdx = 1463; s.pc = 40; return s.tmp_0; case 40: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 6; s.tmp_0.arg2 = 1; @@ -54862,8 +58837,8 @@ switch (step) { s.callLocIdx = 1464; s.pc = 41; return s.tmp_0; case 41: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = "Game"; r0 = (5 << 4); s.tmp_1 = r0; @@ -54879,30 +58854,30 @@ switch (step) { s.callLocIdx = 1465; s.pc = 42; return s.tmp_0; case 42: r0 = s.retval; - s.r___16351 = (0); + s.r___18153 = (0); case 20: - r0 = (s.r___16351 < 4); + r0 = (s.r___18153 < 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 21; continue; } - s.tmp_1 = tileworld_LoadScreen_makeIt__P16014_mk(s); + s.tmp_1 = tileworld_LoadScreen_makeIt__P17817_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = 3; - r0 = (2 + s.r___16351); + r0 = (2 + s.r___18153); s.tmp_1.arg2 = r0; - r0 = (s.r___16351 + 1); + r0 = (s.r___18153 + 1); s.tmp_2 = r0; r0 = pxsim_numops.toString(s.tmp_2); s.tmp_1.arg3 = r0; s.callLocIdx = 1466; s.pc = 43; return s.tmp_1; case 43: r0 = s.retval; - s.tmp_0 = tileworld_LoadScreen_makeIt__P16014_mk(s); + s.tmp_0 = tileworld_LoadScreen_makeIt__P17817_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 5; - r0 = (2 + s.r___16351); + r0 = (2 + s.r___18153); s.tmp_0.arg2 = r0; - r0 = (s.r___16351 + 1); + r0 = (s.r___18153 + 1); s.tmp_2 = r0; r0 = (s.tmp_2 + 4); s.tmp_1 = r0; @@ -54911,47 +58886,47 @@ switch (step) { s.callLocIdx = 1467; s.pc = 44; return s.tmp_0; case 44: r0 = s.retval; - r0 = (s.r___16351 + 1); - s.r___16351 = (r0); + r0 = (s.r___18153 + 1); + s.r___18153 = (r0); { step = 20; continue; } case 21: - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 8; s.tmp_0.arg2 = 4; - s.tmp_0.arg3 = globals.player___7180; + s.tmp_0.arg3 = globals.player___3768; s.callLocIdx = 1468; s.pc = 45; return s.tmp_0; case 45: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 8; s.tmp_0.arg2 = 6; - s.tmp_0.arg3 = globals.dog___7406; + s.tmp_0.arg3 = globals.dog___3767; s.callLocIdx = 1469; s.pc = 46; return s.tmp_0; case 46: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 7; s.tmp_0.arg2 = 5; - s.tmp_0.arg3 = globals.snakeHead___7385; + s.tmp_0.arg3 = globals.snakeHead___3766; s.callLocIdx = 1470; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 9; s.tmp_0.arg2 = 5; - s.tmp_0.arg3 = globals.enemy___7419; + s.tmp_0.arg3 = globals.enemy___3769; s.callLocIdx = 1471; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 9; s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.settingsIcon___7238; + s.tmp_0.arg3 = globals.settingsIcon___3719; s.callLocIdx = 1472; s.pc = 49; return s.tmp_0; case 49: r0 = s.retval; @@ -54959,23 +58934,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_LoadScreen_update__P16015.info = {"start":2047,"length":1909,"line":48,"column":8,"endLine":86,"endColumn":9,"fileName":"loadScreen.ts","functionName":"update","argumentNames":["this"]} +tileworld_LoadScreen_update__P17818.info = {"start":2047,"length":1909,"line":48,"column":8,"endLine":86,"endColumn":9,"fileName":"loadScreen.ts","functionName":"update","argumentNames":["this"]} -function tileworld_LoadScreen_update__P16015_mk(s) { +function tileworld_LoadScreen_update__P17818_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_LoadScreen_update__P16015, depth: s.depth + 1, + parent: s, fn: tileworld_LoadScreen_update__P17818, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - col___16209: undefined, - row___16213: undefined, - i___16225: undefined, - i___16245: undefined, - r___16351: undefined, + col___18011: undefined, + row___18015: undefined, + i___18027: undefined, + i___18047: undefined, + r___18153: undefined, arg0: undefined, } } @@ -54983,7 +58958,7 @@ function tileworld_LoadScreen_update__P16015_mk(s) { -function tileworld_LoadScreen_makeIt__P16014(s) { +function tileworld_LoadScreen_makeIt__P17817(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -54993,8 +58968,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.prefix___16145 = undefined; - s.projectAvailable___16155 = undefined; + s.prefix___17947 = undefined; + s.projectAvailable___17957 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -55003,7 +58978,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_LoadScreen__C16011_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_LoadScreen__C3832_VT)) failedCast(r0); if ((s.arg3) && (s.arg3).vtable) { setupResume(s, 9); pxsim_String__stringConv(s.arg3); @@ -55025,9 +59000,9 @@ switch (step) { r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "-"); - s.prefix___16145 = (r0); - s.tmp_2 = settings_list__P619_mk(s); - s.tmp_2.arg0 = s.prefix___16145; + s.prefix___17947 = (r0); + s.tmp_2 = settings_list__P1832_mk(s); + s.tmp_2.arg0 = s.prefix___17947; s.callLocIdx = 1438; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; @@ -55035,16 +59010,16 @@ switch (step) { r0 = pxsim_Array__length(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 > 0); - s.projectAvailable___16155 = (r0); - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.projectAvailable___17957 = (r0); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = globals.diskIcon___7370; + s.tmp_0.arg3 = globals.diskIcon___3763; s.callLocIdx = 1439; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1440; s.pc = 13; return s.tmp_2; @@ -55058,7 +59033,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1441; s.pc = 14; return s.tmp_4; @@ -55076,7 +59051,7 @@ switch (step) { r0 = s.tmp_6; { step = 4; continue; } case 3: - s.tmp_8 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_8 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_8.arg0 = s.arg0; s.tmp_8.arg1 = true; s.callLocIdx = 1442; s.pc = 15; return s.tmp_8; @@ -55092,7 +59067,7 @@ switch (step) { r0 = 7; { step = 8; continue; } case 5: - r0 = pxsim_numops_toBoolDecr(s.projectAvailable___16155); + r0 = pxsim_numops_toBoolDecr(s.projectAvailable___17957); if (!r0) { step = 6; continue; } r0 = 6; { step = 7; continue; } @@ -55105,7 +59080,7 @@ switch (step) { case 8: // jmp value (already in r0) s.tmp_11 = r0; - s.tmp_12 = tileworld_RuleVisualsBase_fillTile__P10853_mk(s); + s.tmp_12 = tileworld_RuleVisualsBase_fillTile__P12699_mk(s); s.tmp_12.arg0 = s.arg0; r0 = (s.arg1 + 1); s.tmp_12.arg1 = r0; @@ -55114,8 +59089,8 @@ switch (step) { s.callLocIdx = 1443; s.pc = 16; return s.tmp_12; case 16: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = s.arg3; r0 = (s.arg1 + 1); s.tmp_2 = r0; @@ -55139,12 +59114,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_LoadScreen_makeIt__P16014.info = {"start":1571,"length":464,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"loadScreen.ts","functionName":"makeIt","argumentNames":["this","col","row","id"]} +tileworld_LoadScreen_makeIt__P17817.info = {"start":1571,"length":464,"line":39,"column":8,"endLine":46,"endColumn":9,"fileName":"loadScreen.ts","functionName":"makeIt","argumentNames":["this","col","row","id"]} -function tileworld_LoadScreen_makeIt__P16014_mk(s) { +function tileworld_LoadScreen_makeIt__P17817_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_LoadScreen_makeIt__P16014, depth: s.depth + 1, + parent: s, fn: tileworld_LoadScreen_makeIt__P17817, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -55159,8 +59134,8 @@ function tileworld_LoadScreen_makeIt__P16014_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - prefix___16145: undefined, - projectAvailable___16155: undefined, + prefix___17947: undefined, + projectAvailable___17957: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -55171,7 +59146,7 @@ function tileworld_LoadScreen_makeIt__P16014_mk(s) { -function tileworld_loadProject__P6784(s) { +function tileworld_loadProject__P3709(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -55181,39 +59156,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.names___6787 = undefined; - s.version___6798 = undefined; - s.buf___6803 = undefined; - s.world___6808 = undefined; - s.sprites___6827 = undefined; - s.backCnt___6841 = undefined; - s.backImages___6846 = undefined; - s.spriteCnt___6852 = undefined; - s.spriteImages___6857 = undefined; - s.helpNum___6863 = undefined; - s.help___6868 = undefined; - s.highScore___6870 = undefined; - s.p___6880 = undefined; - s.ruleName___6886 = undefined; - s.ruleids___6892 = undefined; - s.rules___6915 = undefined; - s.derivedRules___6917 = undefined; - s.whenDoCount___6918 = undefined; - s.commandCount___6919 = undefined; - s.attrCount___6920 = undefined; - s.player___6995 = undefined; + s.names___8758 = undefined; + s.version___8769 = undefined; + s.buf___8774 = undefined; + s.world___8779 = undefined; + s.sprites___8798 = undefined; + s.backCnt___8812 = undefined; + s.backImages___8817 = undefined; + s.spriteCnt___8823 = undefined; + s.spriteImages___8828 = undefined; + s.helpNum___8834 = undefined; + s.help___8839 = undefined; + s.highScore___8841 = undefined; + s.p___8851 = undefined; + s.ruleName___8857 = undefined; + s.ruleids___8863 = undefined; + s.rules___8886 = undefined; + s.derivedRules___8888 = undefined; + s.whenDoCount___8889 = undefined; + s.commandCount___8890 = undefined; + s.attrCount___8891 = undefined; + s.player___8965 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_list__P619_mk(s); + s.tmp_0 = settings_list__P1832_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 240; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; - s.names___6787 = (r0); - r0 = pxsim_Array__length(s.names___6787); + s.names___8758 = (r0); + r0 = pxsim_Array__length(s.names___8758); s.tmp_1 = r0; r0 = (s.tmp_1 == 0); s.tmp_0 = r0; @@ -55225,7 +59200,7 @@ switch (step) { case 2: r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 3; continue; } - s.tmp_2 = console_log__P258_mk(s); + s.tmp_2 = console_log__P366_mk(s); s.tmp_2.arg0 = "function createNAME(prefix: string) {"; s.callLocIdx = 241; s.pc = 29; return s.tmp_2; case 29: @@ -55234,36 +59209,36 @@ switch (step) { case 4: r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 5; continue; } - s.tmp_0 = console_log__P258_mk(s); + s.tmp_0 = console_log__P366_mk(s); s.tmp_0.arg0 = "if (settings.exists(prefix+\"-VersionS\")) return;"; s.callLocIdx = 242; s.pc = 30; return s.tmp_0; case 30: r0 = s.retval; case 5: case 6: - s.tmp_0 = tileworld_settingsReadString__P6681_mk(s); + s.tmp_0 = tileworld_settingsReadString__P8654_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.VersionKey___6418; + s.tmp_0.arg1 = globals.VersionKey___8394; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 243; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; - s.version___6798 = (r0); - s.tmp_0 = tileworld_settingsReadBuffer__P6712_mk(s); + s.version___8769 = (r0); + s.tmp_0 = tileworld_settingsReadBuffer__P8685_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.WorldBackgroundsKey___6341; + s.tmp_0.arg1 = globals.WorldBackgroundsKey___8317; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 244; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - s.buf___6803 = (r0); - s.tmp_0 = r0 = s.buf___6803; + s.buf___8774 = (r0); + s.tmp_0 = r0 = s.buf___8774; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 7; continue; } r0 = s.tmp_0; { step = 8; continue; } case 7: - r0 = pxsim.BufferMethods.length(s.buf___6803); + r0 = pxsim.BufferMethods.length(s.buf___8774); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); case 8: @@ -55271,8 +59246,8 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 9; continue; } - s.tmp_3 = tileworld_bufferToImage__P4211_mk(s); - s.tmp_3.arg0 = s.buf___6803; + s.tmp_3 = tileworld_bufferToImage__P3543_mk(s); + s.tmp_3.arg0 = s.buf___8774; s.callLocIdx = 245; s.pc = 33; return s.tmp_3; case 33: r0 = s.retval; @@ -55282,32 +59257,32 @@ switch (step) { case 10: // jmp value (already in r0) s.tmp_4 = r0; - s.world___6808 = (s.tmp_4); - r0 = pxsim_numops_toBoolDecr(s.world___6808); + s.world___8779 = (s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.world___8779); if (!r0) { step = 11; continue; } - r0 = s.world___6808; + r0 = s.world___8779; { step = 12; continue; } case 11: r0 = pxsim.image.create(32, 24); case 12: // jmp value (already in r0) s.tmp_0 = r0; - s.world___6808 = (s.tmp_0); - s.tmp_0 = tileworld_settingsReadBuffer__P6712_mk(s); + s.world___8779 = (s.tmp_0); + s.tmp_0 = tileworld_settingsReadBuffer__P8685_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.WorldSpritesKey___6355; + s.tmp_0.arg1 = globals.WorldSpritesKey___8331; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 246; s.pc = 34; return s.tmp_0; case 34: r0 = s.retval; - s.buf___6803 = (r0); - s.tmp_0 = r0 = s.buf___6803; + s.buf___8774 = (r0); + s.tmp_0 = r0 = s.buf___8774; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 13; continue; } r0 = s.tmp_0; { step = 14; continue; } case 13: - r0 = pxsim.BufferMethods.length(s.buf___6803); + r0 = pxsim.BufferMethods.length(s.buf___8774); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); case 14: @@ -55315,8 +59290,8 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 15; continue; } - s.tmp_3 = tileworld_bufferToImage__P4211_mk(s); - s.tmp_3.arg0 = s.buf___6803; + s.tmp_3 = tileworld_bufferToImage__P3543_mk(s); + s.tmp_3.arg0 = s.buf___8774; s.callLocIdx = 247; s.pc = 35; return s.tmp_3; case 35: r0 = s.retval; @@ -55326,60 +59301,60 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_4 = r0; - s.sprites___6827 = (s.tmp_4); - r0 = pxsim_numops_toBoolDecr(s.sprites___6827); + s.sprites___8798 = (s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.sprites___8798); if (!r0) { step = 17; continue; } - r0 = s.sprites___6827; + r0 = s.sprites___8798; { step = 18; continue; } case 17: r0 = pxsim.image.create(32, 24); case 18: // jmp value (already in r0) s.tmp_0 = r0; - s.sprites___6827 = (s.tmp_0); - s.tmp_0 = tileworld_settingsReadNumber__P6648_mk(s); + s.sprites___8798 = (s.tmp_0); + s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.BackImgCntKey___6437; + s.tmp_0.arg1 = globals.BackImgCntKey___8412; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 248; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; - s.backCnt___6841 = (r0); - s.tmp_0 = tileworld_readImages__P6733_mk(s); - s.tmp_0.arg0 = s.backCnt___6841; + s.backCnt___8812 = (r0); + s.tmp_0 = tileworld_readImages__P8706_mk(s); + s.tmp_0.arg0 = s.backCnt___8812; s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = globals.BackImageKey___6729; + s.tmp_0.arg2 = globals.BackImageKey___8702; s.tmp_0.arg3 = s.arg1; s.callLocIdx = 249; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; - s.backImages___6846 = (r0); - s.tmp_0 = tileworld_settingsReadNumber__P6648_mk(s); + s.backImages___8817 = (r0); + s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.SpriteImgCntKey___6446; + s.tmp_0.arg1 = globals.SpriteImgCntKey___8421; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 250; s.pc = 38; return s.tmp_0; case 38: r0 = s.retval; - s.spriteCnt___6852 = (r0); - s.tmp_0 = tileworld_readImages__P6733_mk(s); - s.tmp_0.arg0 = s.spriteCnt___6852; + s.spriteCnt___8823 = (r0); + s.tmp_0 = tileworld_readImages__P8706_mk(s); + s.tmp_0.arg0 = s.spriteCnt___8823; s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = globals.SpriteImageKey___6731; + s.tmp_0.arg2 = globals.SpriteImageKey___8704; s.tmp_0.arg3 = s.arg1; s.callLocIdx = 251; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; - s.spriteImages___6857 = (r0); - s.tmp_0 = tileworld_settingsReadNumber__P6648_mk(s); + s.spriteImages___8828 = (r0); + s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.HelpKey___6366; + s.tmp_0.arg1 = globals.HelpKey___8342; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 252; s.pc = 40; return s.tmp_0; case 40: r0 = s.retval; - s.helpNum___6863 = (r0); - r0 = pxsim_numops_toBoolDecr(s.helpNum___6863); + s.helpNum___8834 = (r0); + r0 = pxsim_numops_toBoolDecr(s.helpNum___8834); if (!r0) { step = 19; continue; } r0 = true; { step = 20; continue; } @@ -55388,38 +59363,38 @@ switch (step) { case 20: // jmp value (already in r0) s.tmp_0 = r0; - s.help___6868 = (s.tmp_0); - s.tmp_0 = tileworld_settingsReadNumber__P6648_mk(s); + s.help___8839 = (s.tmp_0); + s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.HighScoreKey___6382; + s.tmp_0.arg1 = globals.HighScoreKey___8358; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 253; s.pc = 41; return s.tmp_0; case 41: r0 = s.retval; - s.highScore___6870 = (r0); - r0 = (s.highScore___6870 == undefined); + s.highScore___8841 = (r0); + r0 = (s.highScore___8841 == undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 21; continue; } r0 = 0; { step = 22; continue; } case 21: - r0 = s.highScore___6870; + r0 = s.highScore___8841; case 22: // jmp value (already in r0) s.tmp_1 = r0; - s.highScore___6870 = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_Project__C6110_VT); + s.highScore___8841 = (s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_Project__C3677_VT); s.tmp_0 = r0; - s.tmp_1 = tileworld_Project_constructor__P6131_mk(s); + s.tmp_1 = tileworld_Project_constructor__P3682_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.backImages___6846; - s.tmp_1.arg3 = s.spriteImages___6857; + s.tmp_1.arg2 = s.backImages___8817; + s.tmp_1.arg3 = s.spriteImages___8828; s.callLocIdx = 254; s.pc = 42; return s.tmp_1; case 42: r0 = s.retval; - s.p___6880 = (s.tmp_0); + s.p___8851 = (s.tmp_0); if ((s.arg0) && (s.arg0).vtable) { setupResume(s, 43); pxsim_String__stringConv(s.arg0); @@ -55429,26 +59404,26 @@ switch (step) { case 43: r0 = s.retval; s.tmp_0 = r0; - if ((globals.RuleKey___6323) && (globals.RuleKey___6323).vtable) { + if ((globals.RuleKey___8299) && (globals.RuleKey___8299).vtable) { setupResume(s, 44); - pxsim_String__stringConv(globals.RuleKey___6323); + pxsim_String__stringConv(globals.RuleKey___8299); checkResumeConsumed(); return; - } else { s.retval = (globals.RuleKey___6323) + ""; } + } else { s.retval = (globals.RuleKey___8299) + ""; } case 44: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.ruleName___6886 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P6896); + s.ruleName___8857 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P8867); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.ruleName___6886); - r0 = pxsim_pxtcore_mkAction(1, inline__P6904); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.ruleName___8857); + r0 = pxsim_pxtcore_mkAction(1, inline__P8875); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.ruleName___6886); - s.tmp_2 = helpers_arrayMap__P57_mk(s); - s.tmp_3 = helpers_arrayFilter__P61_mk(s); - s.tmp_3.arg0 = s.names___6787; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.ruleName___8857); + s.tmp_2 = helpers_arrayMap__P101_mk(s); + s.tmp_3 = helpers_arrayFilter__P105_mk(s); + s.tmp_3.arg0 = s.names___8758; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 255; s.pc = 46; return s.tmp_3; case 46: @@ -55458,50 +59433,50 @@ switch (step) { s.callLocIdx = 257; s.pc = 45; return s.tmp_2; case 45: r0 = s.retval; - s.ruleids___6892 = (r0); + s.ruleids___8863 = (r0); r0 = pxsim_Array__mk(); - s.rules___6915 = (r0); + s.rules___8886 = (r0); r0 = pxsim_pxtrt.mklocRef(); - s.derivedRules___6917 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.derivedRules___6917, 0); + s.derivedRules___8888 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.derivedRules___8888, 0); r0 = pxsim_pxtrt.mklocRef(); - s.whenDoCount___6918 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.whenDoCount___6918, 0); + s.whenDoCount___8889 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.whenDoCount___8889, 0); r0 = pxsim_pxtrt.mklocRef(); - s.commandCount___6919 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.commandCount___6919, 0); + s.commandCount___8890 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.commandCount___8890, 0); r0 = pxsim_pxtrt.mklocRef(); - s.attrCount___6920 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.attrCount___6920, 0); - r0 = pxsim_pxtcore_mkAction(10, inline__P6923); + s.attrCount___8891 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.attrCount___8891, 0); + r0 = pxsim_pxtcore_mkAction(10, inline__P8894); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.backCnt___6841); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.spriteCnt___6852); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.p___6880); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.rules___6915); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.derivedRules___6917); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.whenDoCount___6918); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.commandCount___6919); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.attrCount___6920); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = s.ruleids___6892; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.backCnt___8812); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.spriteCnt___8823); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.p___8851); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.rules___8886); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.derivedRules___8888); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.whenDoCount___8889); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.commandCount___8890); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.attrCount___8891); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = s.ruleids___8863; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 265; s.pc = 47; return s.tmp_1; case 47: r0 = s.retval; - s.tmp_0 = tileworld_settingsReadNumber__P6648_mk(s); + s.tmp_0 = tileworld_settingsReadNumber__P8621_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.PlayerIndexKey___6455; + s.tmp_0.arg1 = globals.PlayerIndexKey___8430; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 266; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - s.player___6995 = (r0); + s.player___8965 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 23; continue; } - s.tmp_0 = console_log__P258_mk(s); + s.tmp_0 = console_log__P366_mk(s); s.tmp_0.arg0 = "}"; s.callLocIdx = 267; s.pc = 49; return s.tmp_0; case 49: @@ -55510,8 +59485,8 @@ switch (step) { case 24: r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 25; continue; } - s.tmp_0 = console_log__P258_mk(s); - r0 = pxsim_Array__length(s.ruleids___6892); + s.tmp_0 = console_log__P366_mk(s); + r0 = pxsim_Array__length(s.ruleids___8863); s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 51); @@ -55527,8 +59502,8 @@ switch (step) { s.callLocIdx = 268; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - s.tmp_0 = console_log__P258_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.derivedRules___6917); + s.tmp_0 = console_log__P366_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.derivedRules___8888); s.tmp_8 = r0; if ((s.tmp_8) && (s.tmp_8).vtable) { setupResume(s, 53); @@ -55561,9 +59536,9 @@ switch (step) { case 55: r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.derivedRules___6917); + r0 = pxsim_pxtrt_ldlocRef(s.derivedRules___8888); s.tmp_11 = r0; - r0 = pxsim_Array__length(s.ruleids___6892); + r0 = pxsim_Array__length(s.ruleids___8863); s.tmp_12 = r0; r0 = (s.tmp_11 / s.tmp_12); s.tmp_10 = r0; @@ -55592,8 +59567,8 @@ switch (step) { s.callLocIdx = 269; s.pc = 52; return s.tmp_0; case 52: r0 = s.retval; - s.tmp_0 = console_log__P258_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___6918); + s.tmp_0 = console_log__P366_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___8889); s.tmp_8 = r0; if ((s.tmp_8) && (s.tmp_8).vtable) { setupResume(s, 59); @@ -55626,9 +59601,9 @@ switch (step) { case 61: r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___6918); + r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___8889); s.tmp_11 = r0; - r0 = pxsim_Array__length(s.ruleids___6892); + r0 = pxsim_Array__length(s.ruleids___8863); s.tmp_12 = r0; r0 = (s.tmp_11 / s.tmp_12); s.tmp_10 = r0; @@ -55657,8 +59632,8 @@ switch (step) { s.callLocIdx = 270; s.pc = 58; return s.tmp_0; case 58: r0 = s.retval; - s.tmp_0 = console_log__P258_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.commandCount___6919); + s.tmp_0 = console_log__P366_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.commandCount___8890); s.tmp_8 = r0; if ((s.tmp_8) && (s.tmp_8).vtable) { setupResume(s, 65); @@ -55691,9 +59666,9 @@ switch (step) { case 67: r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.commandCount___6919); + r0 = pxsim_pxtrt_ldlocRef(s.commandCount___8890); s.tmp_11 = r0; - r0 = pxsim_Array__length(s.ruleids___6892); + r0 = pxsim_Array__length(s.ruleids___8863); s.tmp_12 = r0; r0 = (s.tmp_11 / s.tmp_12); s.tmp_10 = r0; @@ -55722,8 +59697,8 @@ switch (step) { s.callLocIdx = 271; s.pc = 64; return s.tmp_0; case 64: r0 = s.retval; - s.tmp_0 = console_log__P258_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.attrCount___6920); + s.tmp_0 = console_log__P366_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.attrCount___8891); s.tmp_8 = r0; if ((s.tmp_8) && (s.tmp_8).vtable) { setupResume(s, 71); @@ -55756,9 +59731,9 @@ switch (step) { case 73: r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.attrCount___6920); + r0 = pxsim_pxtrt_ldlocRef(s.attrCount___8891); s.tmp_11 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___6918); + r0 = pxsim_pxtrt_ldlocRef(s.whenDoCount___8889); s.tmp_12 = r0; r0 = (s.tmp_11 / s.tmp_12); s.tmp_10 = r0; @@ -55789,3154 +59764,88 @@ switch (step) { r0 = s.retval; case 25: case 26: - s.tmp_0 = tileworld_Project_setRules__P6111_mk(s); - s.tmp_0.arg0 = s.p___6880; - s.tmp_0.arg1 = s.rules___6915; + s.tmp_0 = tileworld_Project_setRules__P3683_mk(s); + s.tmp_0.arg0 = s.p___8851; + s.tmp_0.arg1 = s.rules___8886; s.callLocIdx = 273; s.pc = 76; return s.tmp_0; case 76: r0 = s.retval; - s.tmp_0 = tileworld_Project_setWorldBackgrounds__P6115_mk(s); - s.tmp_0.arg0 = s.p___6880; - s.tmp_0.arg1 = s.world___6808; + s.tmp_0 = tileworld_Project_setWorldBackgrounds__P3687_mk(s); + s.tmp_0.arg0 = s.p___8851; + s.tmp_0.arg1 = s.world___8779; s.callLocIdx = 274; s.pc = 77; return s.tmp_0; case 77: r0 = s.retval; - s.tmp_0 = tileworld_Project_setWorldSprites__P6117_mk(s); - s.tmp_0.arg0 = s.p___6880; - s.tmp_0.arg1 = s.sprites___6827; + s.tmp_0 = tileworld_Project_setWorldSprites__P3689_mk(s); + s.tmp_0.arg0 = s.p___8851; + s.tmp_0.arg1 = s.sprites___8798; s.callLocIdx = 275; s.pc = 78; return s.tmp_0; case 78: r0 = s.retval; - s.tmp_0 = tileworld_Project_setPlayer__P6113_mk(s); - s.tmp_0.arg0 = s.p___6880; - s.tmp_0.arg1 = s.player___6995; - s.callLocIdx = 276; s.pc = 79; return s.tmp_0; - case 79: - r0 = s.retval; - r0 = (s.p___6880).fields["help"] = (s.help___6868); - r0 = (s.p___6880).fields["version"] = (s.version___6798); - r0 = (s.p___6880).fields["highScore"] = (s.highScore___6870); - r0 = s.p___6880; - case 27: - return leave(s, r0) - default: oops() -} } } -tileworld_loadProject__P6784.info = {"start":10108,"length":3486,"line":276,"column":4,"endLine":345,"endColumn":5,"fileName":"project.ts","functionName":"loadProject","argumentNames":["prefix","output"]} - -function tileworld_loadProject__P6784_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_loadProject__P6784, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - names___6787: undefined, - version___6798: undefined, - buf___6803: undefined, - world___6808: undefined, - sprites___6827: undefined, - backCnt___6841: undefined, - backImages___6846: undefined, - spriteCnt___6852: undefined, - spriteImages___6857: undefined, - helpNum___6863: undefined, - help___6868: undefined, - highScore___6870: undefined, - p___6880: undefined, - ruleName___6886: undefined, - ruleids___6892: undefined, - rules___6915: undefined, - derivedRules___6917: undefined, - whenDoCount___6918: undefined, - commandCount___6919: undefined, - attrCount___6920: undefined, - player___6995: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function inline__P6896(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_String_.indexOf(s.arg0, s.caps[0], undefined); - s.tmp_0 = r0; - r0 = (s.tmp_0 == 0); - return leave(s, r0) - default: oops() -} } } -inline__P6896.info = {"start":11773,"length":29,"line":304,"column":35,"endLine":304,"endColumn":64,"fileName":"project.ts","functionName":"inline","argumentNames":["s"]} - -function inline__P6896_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P6896, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function inline__P6904(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = parseInt__P47_mk(s); - s.tmp_1 = r0 = s.arg0; - r0 = pxsim_String_.length(s.caps[0]); - s.tmp_2 = r0; - r0 = pxsim_String_.substr(s.tmp_1, s.tmp_2, 10); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 256; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -inline__P6904.info = {"start":11808,"length":42,"line":304,"column":70,"endLine":304,"endColumn":112,"fileName":"project.ts","functionName":"inline","argumentNames":["s"]} - -function inline__P6904_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P6904, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function inline__P6923(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.buf___6925 = undefined; - s.rule___6937 = undefined; - s.rv___6942 = undefined; - s.wdCnt___6962 = undefined; - s.cmdCnt___6963 = undefined; - s.attrCnt___6964 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = tileworld_settingsReadBuffer__P6712_mk(s); - s.tmp_0.arg0 = s.caps[0]; - if ((globals.RuleKey___6323) && (globals.RuleKey___6323).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(globals.RuleKey___6323); - checkResumeConsumed(); - return; - } else { s.retval = (globals.RuleKey___6323) + ""; } - case 6: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_numops.toString(s.arg0); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } - case 7: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.caps[1]; - s.callLocIdx = 258; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.buf___6925 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___6925); - if (!r0) { step = 3; continue; } - s.tmp_0 = tileworld_unPackRule__P4889_mk(s); - s.tmp_0.arg0 = s.buf___6925; - s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.caps[3]; - s.callLocIdx = 259; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.rule___6937 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C4976_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_RuleView_constructor__P5013_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.caps[4]; - s.tmp_1.arg2 = s.arg0; - s.tmp_1.arg3 = s.rule___6937; - s.callLocIdx = 260; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.rv___6942 = (s.tmp_0); - r0 = pxsim_Array__push(s.caps[5], s.rv___6942); - r0 = pxsim_numops_toBoolDecr(s.caps[1]); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = s.caps[6]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); - s.tmp_2 = r0; - s.tmp_5 = tileworld_RuleView_getDerivedRules__P4978_mk(s); - s.tmp_5.arg0 = s.rv___6942; - s.callLocIdx = 261; s.pc = 10; return s.tmp_5; - case 10: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_1 = tileworld_ruleStats__P4593_mk(s); - s.tmp_1.arg0 = s.rv___6942; - s.callLocIdx = 262; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, 0); - s.wdCnt___6962 = (r0); - r0 = pxsim_Array__getAt(s.tmp_0, 1); - s.cmdCnt___6963 = (r0); - r0 = pxsim_Array__getAt(s.tmp_0, 2); - s.attrCnt___6964 = (r0); - s.tmp_0 = r0 = s.caps[7]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[7]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.wdCnt___6962); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.caps[8]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.cmdCnt___6963); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.caps[9]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.attrCnt___6964); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 1: - case 2: - { step = 4; continue; } - case 3: - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = pxsim_numops.toString(s.arg0); - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 13); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 13: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat("Read (", s.tmp_3); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, ") failed"); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 10; - s.tmp_0.arg3 = 10; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 263; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = control_assert__P217_mk(s); - s.tmp_0.arg0 = false; - s.tmp_0.arg1 = 42; - s.callLocIdx = 264; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - case 4: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P6923.info = {"start":12029,"length":732,"line":310,"column":24,"endLine":327,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["rid"]} - -function inline__P6923_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P6923, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - buf___6925: undefined, - rule___6937: undefined, - rv___6942: undefined, - wdCnt___6962: undefined, - cmdCnt___6963: undefined, - attrCnt___6964: undefined, - arg0: undefined, -} } - - - - - -function tileworld_Project_setRules__P6111(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, tileworld_Project__C6110_VT)) failedCast(r0); - r0 = (s.arg0).fields["rules"] = (s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_Project_setRules__P6111.info = {"start":2335,"length":74,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"project.ts","functionName":"setRules","argumentNames":["this","rvl"]} - -function tileworld_Project_setRules__P6111_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_Project_setRules__P6111, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tileworld_ruleStats__P4593(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.wdCnt___4595 = undefined; - s.cmdCnt___4596 = undefined; - s.attrCnt___4597 = undefined; - s.col___4598 = undefined; - s.row___4602 = undefined; - s.whendo___4606 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.wdCnt___4595 = (0); - s.cmdCnt___4596 = (0); - s.attrCnt___4597 = (0); - s.col___4598 = (1); - case 1: - r0 = (s.col___4598 <= 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.row___4602 = (1); - case 2: - r0 = (s.row___4602 <= 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_1 = tileworld_RuleView_getWhenDo__P4608_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.col___4598; - s.tmp_1.arg2 = s.row___4602; - s.callLocIdx = 73; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - s.whendo___4606 = (r0); - r0 = (s.whendo___4606 != -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.wdCnt___4595 + 1); - s.wdCnt___4595 = (r0); - s.tmp_0 = r0 = s.cmdCnt___4596; - r0 = s.arg0.fields["r"]; - r0 = r0.fields["whenDo"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.whendo___4606); - r0 = r0.fields["commandsLen"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.cmdCnt___4596 = (r0); - s.tmp_0 = r0 = s.attrCnt___4597; - s.tmp_2 = tileworld_RuleView_attrCnt__P4630_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.whendo___4606; - s.callLocIdx = 75; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.attrCnt___4597 = (r0); - case 3: - case 4: - r0 = (s.row___4602 + 1); - s.row___4602 = (r0); - { step = 2; continue; } - case 5: - r0 = (s.col___4598 + 1); - s.col___4598 = (r0); - { step = 1; continue; } - case 6: - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.wdCnt___4595); - r0 = pxsim_Array__push(s.tmp_0, s.cmdCnt___4596); - r0 = pxsim_Array__push(s.tmp_0, s.attrCnt___4597); - r0 = s.tmp_0; - return leave(s, r0) - default: oops() -} } } -tileworld_ruleStats__P4593.info = {"start":8007,"length":517,"line":215,"column":4,"endLine":230,"endColumn":5,"fileName":"rule.ts","functionName":"ruleStats","argumentNames":["rv"]} - -function tileworld_ruleStats__P4593_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_ruleStats__P4593, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - wdCnt___4595: undefined, - cmdCnt___4596: undefined, - attrCnt___4597: undefined, - col___4598: undefined, - row___4602: undefined, - whendo___4606: undefined, - arg0: undefined, -} } - - - - - -function tileworld_RuleView_attrCnt__P4630(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.cnt___5373 = undefined; - s.i___5374 = undefined; - s.i___5392 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleView__C4976_VT)) failedCast(r0); - s.cnt___5373 = (0); - s.i___5374 = (0); - case 1: - s.tmp_1 = r0 = s.i___5374; - r0 = s.arg0.fields["p"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_backgroundsI"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_7 = tileworld_RuleView_getSetBgAttr__P4993_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.arg1; - s.tmp_7.arg2 = s.i___5374; - s.tmp_7.arg3 = 65535; - s.callLocIdx = 130; s.pc = 9; return s.tmp_7; - case 9: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 != 0); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 2; continue; } - r0 = (s.cnt___5373 + 1); - s.cnt___5373 = (r0); - case 2: - case 3: - r0 = (s.i___5374 + 1); - s.i___5374 = (r0); - { step = 1; continue; } - case 4: - s.i___5392 = (0); - case 5: - s.tmp_1 = r0 = s.i___5392; - r0 = s.arg0.fields["p"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_spritesI"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_7 = tileworld_RuleView_getSetSpAttr__P4994_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.arg1; - s.tmp_7.arg2 = s.i___5392; - s.tmp_7.arg3 = 65535; - s.callLocIdx = 132; s.pc = 10; return s.tmp_7; - case 10: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 != 0); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 6; continue; } - r0 = (s.cnt___5373 + 1); - s.cnt___5373 = (r0); - case 6: - case 7: - r0 = (s.i___5392 + 1); - s.i___5392 = (r0); - { step = 5; continue; } - case 8: - r0 = s.cnt___5373; - return leave(s, r0) - default: oops() -} } } -tileworld_RuleView_attrCnt__P4630.info = {"start":4924,"length":419,"line":142,"column":8,"endLine":153,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrCnt","argumentNames":["this","whendo"]} - -function tileworld_RuleView_attrCnt__P4630_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_RuleView_attrCnt__P4630, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - cnt___5373: undefined, - i___5374: undefined, - i___5392: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tileworld_unPackRule__P4889(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.rt___4896 = undefined; - s.ra___4898 = undefined; - s.rv___4900 = undefined; - s.rule___4902 = undefined; - s.whenDoLen___4909 = undefined; - s.i___4911 = undefined; - s.col___4916 = undefined; - s.row___4918 = undefined; - s.wd___4920 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - globals.ruleBuf___4643 = (s.arg0); - globals.bitIndex___4645 = (0); - s.tmp_0 = tileworld_readBuf__P4756_mk(s); - s.tmp_0.arg0 = 4; - s.callLocIdx = 98; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.rt___4896 = (r0); - s.tmp_0 = tileworld_readBuf__P4756_mk(s); - s.tmp_0.arg0 = 4; - s.callLocIdx = 99; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.ra___4898 = (r0); - s.tmp_0 = tileworld_readBuf__P4756_mk(s); - s.tmp_0.arg0 = 4; - s.callLocIdx = 100; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.rv___4900 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_Rule__C4315_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_Rule_constructor__P4316_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.rt___4896; - s.tmp_1.arg2 = s.ra___4898; - r0 = pxsim_Array__mk(); - s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = s.rv___4900; - s.callLocIdx = 101; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.rule___4902 = (s.tmp_0); - s.tmp_0 = tileworld_readBuf__P4756_mk(s); - s.tmp_0.arg0 = 4; - s.callLocIdx = 102; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.whenDoLen___4909 = (r0); - s.i___4911 = (0); - case 1: - r0 = (s.i___4911 < s.whenDoLen___4909); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = tileworld_readBuf__P4756_mk(s); - s.tmp_1.arg0 = 4; - s.callLocIdx = 103; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.col___4916 = (r0); - s.tmp_0 = tileworld_readBuf__P4756_mk(s); - s.tmp_0.arg0 = 4; - s.callLocIdx = 104; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.row___4918 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(tileworld_WhenDo__C4302_VT); - s.tmp_0 = r0; - s.tmp_1 = tileworld_WhenDo_constructor__P4303_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.col___4916; - s.tmp_1.arg2 = s.row___4918; - s.tmp_2 = tileworld_readBufRaw__P4760_mk(s); - r0 = (s.arg1 >> 2); - s.tmp_2.arg0 = r0; - r0 = (s.arg1 >> 2); - s.tmp_2.arg1 = r0; - s.callLocIdx = 105; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; - s.tmp_1.arg3 = r0; - s.tmp_3 = tileworld_readBufRaw__P4760_mk(s); - r0 = (s.arg2 >> 2); - s.tmp_3.arg0 = r0; - r0 = (s.arg2 >> 2); - s.tmp_3.arg1 = r0; - s.callLocIdx = 106; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = -1; - s.tmp_1.arg6 = null; - s.tmp_1.arg7 = 0; - s.callLocIdx = 107; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.wd___4920 = (s.tmp_0); - s.tmp_0 = r0 = s.wd___4920; - s.tmp_2 = tileworld_readBuf__P4756_mk(s); - s.tmp_2.arg0 = 4; - s.callLocIdx = 108; s.pc = 13; return s.tmp_2; - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["dir"] = (s.tmp_1); - s.tmp_0 = r0 = s.wd___4920; - s.tmp_2 = tileworld_readBuf__P4756_mk(s); - s.tmp_2.arg0 = 4; - s.callLocIdx = 109; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["commandsLen"] = (s.tmp_1); - r0 = s.rule___4902.fields["whenDo"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.wd___4920); - r0 = (s.i___4911 + 1); - s.i___4911 = (r0); - { step = 1; continue; } - case 2: - s.tmp_0 = helpers_arrayForEach__P60_mk(s); - r0 = s.rule___4902.fields["whenDo"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P4954; - s.callLocIdx = 111; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = s.rule___4902; - return leave(s, r0) - default: oops() -} } } -tileworld_unPackRule__P4889.info = {"start":11735,"length":1027,"line":327,"column":4,"endLine":355,"endColumn":5,"fileName":"rule.ts","functionName":"unPackRule","argumentNames":["buf","bgLen","spLen"]} - -function tileworld_unPackRule__P4889_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_unPackRule__P4889, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - rt___4896: undefined, - ra___4898: undefined, - rv___4900: undefined, - rule___4902: undefined, - whenDoLen___4909: undefined, - i___4911: undefined, - col___4916: undefined, - row___4918: undefined, - wd___4920: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function inline__P4954(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["commandsLen"]; - 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; } - s.tmp_2 = r0 = s.arg0; - s.tmp_4 = tileworld_readBufRaw__P4760_mk(s); - s.tmp_4.arg0 = 8; - r0 = s.arg0.fields["commandsLen"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 << 1); - s.tmp_4.arg1 = r0; - s.callLocIdx = 110; s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["commands"] = (s.tmp_3); - { step = 2; continue; } - case 1: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.createBuffer(8); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["commands"] = (s.tmp_1); - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P4954.info = {"start":12492,"length":241,"line":347,"column":28,"endLine":353,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]} - -function inline__P4954_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P4954, depth: s.depth + 1, - pc: 0, retval: undefined, 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 tileworld_readBufRaw__P4760(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.b___4763 = undefined; - s.i___4767 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim.control.createBuffer(s.arg0); - s.b___4763 = (r0); - s.i___4767 = (0); - case 1: - r0 = (s.i___4767 < s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.b___4763; - s.tmp_2 = r0 = s.i___4767; - s.tmp_4 = tileworld_readBuf__P4756_mk(s); - s.tmp_4.arg0 = 8; - s.callLocIdx = 82; s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.setUint8(s.tmp_1, s.tmp_2, s.tmp_3); - r0 = (s.i___4767 + 1); - s.i___4767 = (r0); - { step = 1; continue; } - case 2: - r0 = s.b___4763; - return leave(s, r0) - default: oops() -} } } -tileworld_readBufRaw__P4760.info = {"start":10235,"length":207,"line":288,"column":4,"endLine":294,"endColumn":5,"fileName":"rule.ts","functionName":"readBufRaw","argumentNames":["bytes","cnt"]} - -function tileworld_readBufRaw__P4760_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_readBufRaw__P4760, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - b___4763: undefined, - i___4767: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tileworld_readBuf__P4756(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = tileworld_readWriteBuf__P4646_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = false; - s.callLocIdx = 81; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -tileworld_readBuf__P4756.info = {"start":10092,"length":83,"line":283,"column":4,"endLine":285,"endColumn":5,"fileName":"rule.ts","functionName":"readBuf","argumentNames":["bits"]} - -function tileworld_readBuf__P4756_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_readBuf__P4756, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function parseInt__P47(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.start___25140 = undefined; - s.sign___25170 = undefined; - s.output___25216 = undefined; - s.hasDigit___25217 = undefined; - s.i___25218 = undefined; - s.code___25225 = undefined; - s.val___25232 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 1: - r0 = (s.arg1 != null); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 2; continue; } - r0 = s.tmp_2; - { step = 5; continue; } - case 2: - r0 = (s.arg1 < 2); - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } - case 3: - r0 = (s.arg1 > 36); - case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - case 5: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = s.tmp_5; - case 6: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 7; continue; } - r0 = NaN; - { step = 46; continue; } - case 7: - case 8: - s.start___25140 = (0); - case 9: - s.tmp_1 = r0 = s.start___25140; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } - case 10: - s.tmp_3 = helpers_isWhitespace__P73_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.start___25140); - s.tmp_3.arg0 = r0; - s.callLocIdx = 0; s.pc = 47; return s.tmp_3; - case 47: - r0 = s.retval; - case 11: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 12; continue; } - r0 = (s.start___25140 + 1); - s.start___25140 = (r0); - { step = 9; continue; } - case 12: - s.tmp_1 = r0 = s.start___25140; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 === s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = NaN; - { step = 46; continue; } - case 13: - case 14: - s.sign___25170 = (1); - r0 = pxsim_String_.charAt(s.arg0, s.start___25140); - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); - if (r0) { step = 15; continue; } - r0 = pxsim_pxtcore.switch_eq("+", s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 15: - s.sign___25170 = (-1); - case 16: - r0 = (s.start___25140 + 1); - s.start___25140 = (r0); - case 17: - 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 = 18; continue; } - r0 = s.tmp_0; - { step = 19; continue; } - case 18: - r0 = (s.arg1 == 16); - case 19: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 20; continue; } - r0 = s.tmp_2; - { step = 21; continue; } - case 20: - r0 = pxsim_String_.charAt(s.arg0, s.start___25140); - s.tmp_3 = r0; - r0 = ("0" === s.tmp_3); - case 21: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 22; continue; } - r0 = s.tmp_4; - { step = 25; continue; } - case 22: - s.tmp_7 = r0 = s.arg0; - r0 = (s.start___25140 + 1); - s.tmp_8 = r0; - r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8); - s.tmp_6 = r0; - r0 = ("x" === s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (!r0) { step = 23; continue; } - r0 = s.tmp_5; - { step = 24; continue; } - case 23: - s.tmp_10 = r0 = s.arg0; - r0 = (s.start___25140 + 1); - s.tmp_11 = r0; - r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); - s.tmp_9 = r0; - r0 = ("X" === s.tmp_9); - case 24: - // jmp value (already in r0) - s.tmp_12 = r0; - r0 = s.tmp_12; - case 25: - // jmp value (already in r0) - s.tmp_13 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_13); - if (!r0) { step = 26; continue; } - s.arg1 = (16); - r0 = (s.start___25140 + 2); - s.start___25140 = (r0); - { step = 29; continue; } - case 26: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - s.arg1 = (10); - case 27: - case 28: - case 29: - s.output___25216 = (0); - s.hasDigit___25217 = (false); - s.i___25218 = (s.start___25140); - case 30: - s.tmp_1 = r0 = s.i___25218; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 45; continue; } - r0 = pxsim_String_.charCodeAt(s.arg0, s.i___25218); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 32); - s.code___25225 = (r0); - s.val___25232 = (undefined); - r0 = (s.code___25225 >= 48); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 31; continue; } - r0 = s.tmp_0; - { step = 32; continue; } - case 31: - r0 = (s.code___25225 < 58); - case 32: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 33; continue; } - r0 = (s.code___25225 - 48); - s.val___25232 = (r0); - { step = 38; continue; } - case 33: - r0 = (s.code___25225 >= 97); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 34; continue; } - r0 = s.tmp_0; - { step = 35; continue; } - case 34: - r0 = (s.code___25225 < 123); - case 35: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 36; continue; } - r0 = (10 + s.code___25225); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 97); - s.val___25232 = (r0); - case 36: - case 37: - case 38: - r0 = (s.val___25232 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 39; continue; } - r0 = s.tmp_0; - { step = 40; continue; } - case 39: - r0 = (s.val___25232 >= s.arg1); - case 40: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 43; continue; } - r0 = pxsim_numops_toBoolDecr(s.hasDigit___25217); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 41; continue; } - r0 = NaN; - { step = 46; continue; } - case 41: - case 42: - { step = 45; continue; } - case 43: - case 44: - s.hasDigit___25217 = (true); - r0 = (s.output___25216 * s.arg1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.val___25232); - s.output___25216 = (r0); - r0 = (s.i___25218 + 1); - s.i___25218 = (r0); - { step = 30; continue; } - case 45: - r0 = (s.sign___25170 * s.output___25216); - case 46: - return leave(s, r0) - default: oops() -} } } -parseInt__P47.info = {"start":1064,"length":1690,"line":44,"column":0,"endLine":103,"endColumn":1,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"parseInt","argumentNames":["text","radix"]} - -function parseInt__P47_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: parseInt__P47, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - start___25140: undefined, - sign___25170: undefined, - output___25216: undefined, - hasDigit___25217: undefined, - i___25218: undefined, - code___25225: undefined, - val___25232: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function helpers_isWhitespace__P73(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(32, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(160, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(65279, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); - if (r0) { step = 7; continue; } - r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(8232, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = pxsim_pxtcore.switch_eq(8233, s.tmp_0); - if (r0) { step = 10; continue; } - r0 = s.tmp_0; - { step = 11; continue; } - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - r0 = true; - { step = 12; continue; } - case 11: - r0 = false; - { step = 12; continue; } - r0 = undefined; - case 12: - return leave(s, r0) - default: oops() -} } } -helpers_isWhitespace__P73.info = {"start":13875,"length":674,"line":476,"column":4,"endLine":493,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} - -function helpers_isWhitespace__P73_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: helpers_isWhitespace__P73, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function tileworld_readImages__P6733(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.images___6738 = undefined; - s.i___6740 = undefined; - s.buf___6745 = undefined; - s.img___6756 = 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__mk(); - s.images___6738 = (r0); - s.i___6740 = (0); - case 1: - r0 = (s.i___6740 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_1 = tileworld_settingsReadBuffer__P6712_mk(s); - s.tmp_1.arg0 = s.arg1; - if ((s.arg2) && (s.arg2).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.arg2); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg2) + ""; } - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops.toString(s.i___6740); - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 11); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 11: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.arg3; - s.callLocIdx = 238; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.buf___6745 = (r0); - s.tmp_0 = r0 = s.buf___6745; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - r0 = pxsim.BufferMethods.length(s.buf___6745); - 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; } - s.tmp_3 = tileworld_bufferToImage__P4211_mk(s); - s.tmp_3.arg0 = s.buf___6745; - s.callLocIdx = 239; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - { step = 5; continue; } - case 4: - r0 = null; - case 5: - // jmp value (already in r0) - s.tmp_4 = r0; - s.img___6756 = (s.tmp_4); - r0 = pxsim_numops_toBoolDecr(s.img___6756); - 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 = 6; continue; } - r0 = pxsim.image.create(16, 16); - s.img___6756 = (r0); - s.tmp_0 = r0 = s.img___6756; - r0 = (1 + s.i___6740); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.fill(s.tmp_0, s.tmp_1); - case 6: - case 7: - r0 = pxsim_Array__push(s.images___6738, s.img___6756); - r0 = (s.i___6740 + 1); - s.i___6740 = (r0); - { step = 1; continue; } - case 8: - r0 = s.images___6738; - return leave(s, r0) - default: oops() -} } } -tileworld_readImages__P6733.info = {"start":9562,"length":442,"line":262,"column":4,"endLine":271,"endColumn":5,"fileName":"project.ts","functionName":"readImages","argumentNames":["cnt","prefix","key","output"]} - -function tileworld_readImages__P6733_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_readImages__P6733, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - images___6738: undefined, - i___6740: undefined, - buf___6745: undefined, - img___6756: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function tileworld_settingsReadNumber__P6648(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.val___6652 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - s.tmp_0 = settings_readNumber__P617_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: - r0 = s.retval; - s.tmp_1 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 5); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 5: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.tmp_0.arg0 = r0; - s.callLocIdx = 232; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.val___6652 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - s.tmp_0 = console_log__P258_mk(s); - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 7: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_String__concat("settings.writeNumber(prefix+\"", s.tmp_7); - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 8: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_5, "\","); - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 9); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 9: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_numops.toString(s.val___6652); - s.tmp_9 = r0; - if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.tmp_9); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_9) + ""; } - case 10: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_8); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 11); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 11: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, ");"); - s.tmp_0.arg0 = r0; - s.callLocIdx = 233; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 1: - case 2: - r0 = s.val___6652; - return leave(s, r0) - default: oops() -} } } -tileworld_settingsReadNumber__P6648.info = {"start":8445,"length":249,"line":232,"column":4,"endLine":236,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadNumber","argumentNames":["prefix","key","output"]} - -function tileworld_settingsReadNumber__P6648_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_settingsReadNumber__P6648, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - val___6652: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function settings_readNumber__P617(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.buf___25312 = undefined; - s.nums___25319 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim.settings._get(s.arg0); - s.buf___25312 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___25312); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 7; continue; } - { step = 6; continue; } - case 1: - s.tmp_2 = msgpack_unpackNumberArray__P138_mk(s); - s.tmp_2.arg0 = s.buf___25312; - s.tmp_2.arg1 = 0; - s.callLocIdx = 137; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.nums___25319 = (r0); - s.tmp_0 = r0 = s.nums___25319; - 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___25319); - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 1); - case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.nums___25319, 0); - { step = 7; continue; } - case 4: - case 5: - r0 = undefined; - { step = 7; continue; } - case 6: - r0 = undefined; - case 7: - return leave(s, r0) - default: oops() -} } } -settings_readNumber__P617.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__P617_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: settings_readNumber__P617, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - buf___25312: undefined, - nums___25319: undefined, - arg0: undefined, -} } - - - - - -function settings_readBuffer__P615(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim.settings._get(s.arg0); - return leave(s, r0) - default: oops() -} } } -settings_readBuffer__P615.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__P615_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: settings_readBuffer__P615, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function msgpack_unpackNumberArray__P138(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.res___25332 = undefined; - s.fmt___25339 = undefined; - s.v___25348 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.res___25332 = (r0); - case 1: - s.tmp_1 = r0 = s.arg1; - r0 = pxsim.BufferMethods.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_3 = r0 = s.arg1; - r0 = (s.tmp_3 + 1); - s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P136_mk(s); - r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); - s.tmp_4.arg0 = r0; - s.callLocIdx = 21; s.pc = 12; return s.tmp_4; - case 12: - r0 = s.retval; - s.fmt___25339 = (r0); - r0 = (s.fmt___25339 === null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = (s.arg1 - 1); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___25348 = (r0); - r0 = (-31 <= s.v___25348); - 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___25348 <= 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___25332, s.v___25348); - { step = 5; continue; } - case 4: - r0 = null; - { step = 11; continue; } - case 5: - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.res___25332; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___25339, 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__P129_mk(s); - s.tmp_2.arg0 = s.fmt___25339; - s.callLocIdx = 22; s.pc = 13; return s.tmp_2; - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.arg1 = (r0); - case 7: - case 8: - r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_1 === 193); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = (s.arg1 + 1); - s.arg1 = (r0); - { step = 8; continue; } - case 9: - { step = 1; continue; } - case 10: - r0 = s.res___25332; - case 11: - return leave(s, r0) - default: oops() -} } } -msgpack_unpackNumberArray__P138.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__P138_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: msgpack_unpackNumberArray__P138, depth: s.depth + 1, - pc: 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___25332: undefined, - fmt___25339: undefined, - v___25348: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tileworld_bufferToImage__P4211(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.width___4213 = undefined; - s.height___4219 = undefined; - s.index___4224 = undefined; - s.img___4225 = undefined; - s.x___4230 = undefined; - s.y___4231 = undefined; - s.pair___4238 = undefined; - s.pixel___4245 = undefined; - s.len___4248 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim.BufferMethods.getNumber(s.arg0, 1, 0); - s.width___4213 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.arg0, 1, 1); - s.height___4219 = (r0); - s.index___4224 = (2); - r0 = pxsim.image.create(s.width___4213, s.height___4219); - s.img___4225 = (r0); - s.x___4230 = (0); - s.y___4231 = (0); - case 1: - s.tmp_1 = r0 = s.index___4224; - r0 = pxsim.BufferMethods.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_3 = r0 = s.index___4224; - r0 = (s.tmp_3 + 1); - s.index___4224 = (r0); - r0 = pxsim.BufferMethods.getUint8(s.arg0, s.tmp_3); - s.pair___4238 = (r0); - r0 = (s.pair___4238 & 15); - s.pixel___4245 = (r0); - r0 = (s.pair___4238 & 240); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 4); - s.len___4248 = (r0); - case 2: - r0 = (s.len___4248 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.setPixel(s.img___4225, s.x___4230, s.y___4231, s.pixel___4245); - s.tmp_1 = r0 = s.y___4231; - r0 = (s.height___4219 - 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 == s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.x___4230 + 1); - s.x___4230 = (r0); - s.y___4231 = (0); - { step = 4; continue; } - case 3: - r0 = (s.y___4231 + 1); - s.y___4231 = (r0); - case 4: - r0 = (s.len___4248 - 1); - s.len___4248 = (r0); - { step = 2; continue; } - case 5: - { step = 1; continue; } - case 6: - s.tmp_0 = control_assert__P217_mk(s); - s.tmp_1 = r0 = s.index___4224; - r0 = pxsim.BufferMethods.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 == s.tmp_2); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 54; - s.callLocIdx = 71; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - r0 = s.img___4225; - return leave(s, r0) - default: oops() -} } } -tileworld_bufferToImage__P4211.info = {"start":3843,"length":694,"line":108,"column":4,"endLine":127,"endColumn":5,"fileName":"utilities.ts","functionName":"bufferToImage","argumentNames":["buf"]} - -function tileworld_bufferToImage__P4211_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_bufferToImage__P4211, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - width___4213: undefined, - height___4219: undefined, - index___4224: undefined, - img___4225: undefined, - x___4230: undefined, - y___4231: undefined, - pair___4238: undefined, - pixel___4245: undefined, - len___4248: undefined, - arg0: undefined, -} } - - - - - -function tileworld_settingsReadBuffer__P6712(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.buf___6716 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 3); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 3: - r0 = s.retval; - s.tmp_1 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 4: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.settings._get(s.tmp_0); - s.buf___6716 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - s.tmp_0 = tileworld_outputKeyBuffer__P6578_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.buf___6716; - s.callLocIdx = 237; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = s.buf___6716; - return leave(s, r0) - default: oops() -} } } -tileworld_settingsReadBuffer__P6712.info = {"start":8955,"length":207,"line":244,"column":4,"endLine":248,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadBuffer","argumentNames":["prefix","key","output"]} - -function tileworld_settingsReadBuffer__P6712_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_settingsReadBuffer__P6712, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - buf___6716: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function tileworld_outputKeyBuffer__P6578(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.chunk___6601 = undefined; - s.str___6602 = undefined; - s.i___6603 = undefined; - s.byte___6609 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - s.tmp_0 = console_log__P258_mk(s); - r0 = pxsim.BufferMethods.length(s.arg2); - s.tmp_3 = r0; - r0 = pxsim_numops.toString(s.tmp_3); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 6: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat("// buffer length = ", s.tmp_1); - s.tmp_0.arg0 = r0; - s.callLocIdx = 228; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = console_log__P258_mk(s); - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 8: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String__concat("settings.writeBuffer(prefix+\"", s.tmp_3); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 9); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 9: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "\", hex`"); - s.tmp_0.arg0 = r0; - s.callLocIdx = 229; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.chunk___6601 = (40); - r0 = pxsim_String_.mkEmpty(); - s.str___6602 = (r0); - s.i___6603 = (0); - case 1: - s.tmp_1 = r0 = s.i___6603; - r0 = pxsim.BufferMethods.length(s.arg2); - 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.BufferMethods.getUint8(s.arg2, s.i___6603); - s.byte___6609 = (r0); - if ((s.str___6602) && (s.str___6602).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.str___6602); - checkResumeConsumed(); - return; - } else { s.retval = (s.str___6602) + ""; } - case 10: - r0 = s.retval; - s.tmp_0 = r0; - s.tmp_5 = r0 = globals.toHex___6576; - r0 = (s.byte___6609 & 240); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> 4); - s.tmp_6 = r0; - r0 = pxsim_String_.charAt(s.tmp_5, s.tmp_6); - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 11); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 11: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_10 = r0 = globals.toHex___6576; - r0 = (s.byte___6609 & 15); - s.tmp_11 = r0; - r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); - s.tmp_9 = r0; - if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.tmp_9); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_9) + ""; } - case 12: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_8); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 13); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.str___6602 = (r0); - r0 = (s.chunk___6601 - 1); - s.chunk___6601 = (r0); - r0 = (s.chunk___6601 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = console_log__P258_mk(s); - s.tmp_1.arg0 = s.str___6602; - s.callLocIdx = 230; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - s.chunk___6601 = (40); - r0 = pxsim_String_.mkEmpty(); - s.str___6602 = (r0); - case 2: - case 3: - r0 = (s.i___6603 + 1); - s.i___6603 = (r0); - { step = 1; continue; } - case 4: - s.tmp_0 = console_log__P258_mk(s); - if ((s.str___6602) && (s.str___6602).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.str___6602); - checkResumeConsumed(); - return; - } else { s.retval = (s.str___6602) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "`);"); - s.tmp_0.arg0 = r0; - s.callLocIdx = 231; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_outputKeyBuffer__P6578.info = {"start":7861,"length":578,"line":217,"column":4,"endLine":230,"endColumn":5,"fileName":"project.ts","functionName":"outputKeyBuffer","argumentNames":["prefix","key","val"]} - -function tileworld_outputKeyBuffer__P6578_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_outputKeyBuffer__P6578, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - chunk___6601: undefined, - str___6602: undefined, - i___6603: undefined, - byte___6609: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function tileworld_settingsReadString__P6681(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.val___6685 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - s.tmp_0 = settings_readString__P616_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: - r0 = s.retval; - s.tmp_1 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 5); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 5: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.tmp_0.arg0 = r0; - s.callLocIdx = 234; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.val___6685 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - s.tmp_0 = console_log__P258_mk(s); - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 7: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_String__concat("settings.writeString(prefix+\"", s.tmp_7); - s.tmp_6 = r0; - if ((s.tmp_6) && (s.tmp_6).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.tmp_6); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_6) + ""; } - case 8: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_5, "\",\""); - s.tmp_4 = r0; - if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 9); - pxsim_String__stringConv(s.tmp_4); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_4) + ""; } - case 9: - r0 = s.retval; - s.tmp_3 = r0; - if ((s.val___6685) && (s.val___6685).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.val___6685); - checkResumeConsumed(); - return; - } else { s.retval = (s.val___6685) + ""; } - case 10: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_8); - s.tmp_2 = r0; - if ((s.tmp_2) && (s.tmp_2).vtable) { - setupResume(s, 11); - pxsim_String__stringConv(s.tmp_2); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_2) + ""; } - case 11: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "\");"); - s.tmp_0.arg0 = r0; - s.callLocIdx = 235; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 1: - case 2: - r0 = s.val___6685; - return leave(s, r0) - default: oops() -} } } -tileworld_settingsReadString__P6681.info = {"start":8700,"length":249,"line":238,"column":4,"endLine":242,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadString","argumentNames":["prefix","key","output"]} - -function tileworld_settingsReadString__P6681_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_settingsReadString__P6681, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - val___6685: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function settings_readString__P616(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.buf___25300 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim.settings._get(s.arg0); - s.buf___25300 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___25300); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 3; continue; } - { step = 2; continue; } - case 1: - r0 = pxsim.BufferMethods.toString(s.buf___25300); - { step = 3; continue; } - case 2: - r0 = undefined; - case 3: - return leave(s, r0) - default: oops() -} } } -settings_readString__P616.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__P616_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: settings_readString__P616, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - buf___25300: undefined, - arg0: undefined, -} } - - - - - -function tileworld_RuleVisualsBase_row__P10849(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, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - s.tmp_2 = Sprite_y__P772_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 682; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 6); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 4); - { step = 2; continue; } - case 1: - s.tmp_5 = Sprite_y__P772_mk(s); - r0 = s.arg0.fields["tileSaved"]; - s.tmp_5.arg0 = r0; - s.callLocIdx = 683; s.pc = 4; return s.tmp_5; - case 4: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 - 6); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 4); - case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = s.tmp_6; - return leave(s, r0) - default: oops() -} } } -tileworld_RuleVisualsBase_row__P10849.info = {"start":4214,"length":135,"line":108,"column":8,"endLine":110,"endColumn":9,"fileName":"rulesBase.ts","functionName":"row","argumentNames":["this","curr"]} - -function tileworld_RuleVisualsBase_row__P10849_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_RuleVisualsBase_row__P10849, depth: s.depth + 1, - pc: 0, retval: undefined, 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 tileworld_RuleVisualsBase_col__P10848(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, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - s.tmp_1 = Sprite_x__P770_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 680; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 4); - { step = 2; continue; } - case 1: - s.tmp_3 = Sprite_x__P770_mk(s); - r0 = s.arg0.fields["tileSaved"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 681; s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 4); - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - return leave(s, r0) - default: oops() -} } } -tileworld_RuleVisualsBase_col__P10848.info = {"start":4087,"length":117,"line":104,"column":8,"endLine":106,"endColumn":9,"fileName":"rulesBase.ts","functionName":"col","argumentNames":["this","curr"]} - -function tileworld_RuleVisualsBase_col__P10848_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_RuleVisualsBase_col__P10848, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function controller_Button_onEvent__P699(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C694_VT)) failedCast(r0); - s.tmp_0 = control_onEvent__P280_mk(s); - s.tmp_0.arg0 = s.arg1; - r0 = s.arg0.fields["id"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 16; - s.callLocIdx = 152; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller_Button_onEvent__P699.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__P699_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Button_onEvent__P699, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function controller_setRepeatDefault__P709(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; - } - globals.defaultRepeatDelay___689 = (s.arg0); - globals.defaultRepeatInterval___691 = (s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller_setRepeatDefault__P709.info = {"start":6423,"length":151,"line":200,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"setRepeatDefault","argumentNames":["delay","interval"]} - -function controller_setRepeatDefault__P709_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_setRepeatDefault__P709, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tileworld_RuleVisualsBase_constructor__P10857(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, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - r0 = (s.arg0).fields["p"] = (s.arg1); - s.tmp_0 = tileworld_BackgroundBase_constructor__P9502_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 635; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(10, 7); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ruleTypeMap"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(10, 7); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["dirMap"] = (s.tmp_1); - r0 = s.arg0.fields["ruleTypeMap"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); - r0 = s.arg0.fields["dirMap"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.cursorIn___7250; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 636; s.pc = 2; return s.tmp_2; - case 2: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cursor"] = (s.tmp_1); - s.tmp_0 = Sprite_x__P771_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 24; - s.callLocIdx = 637; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 46; - s.callLocIdx = 638; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = tileworld_cursorAnimation__P3907_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.cursorOut___7253; - s.callLocIdx = 639; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.cursorIn___7250; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 640; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["helpCursor"] = (s.tmp_1); - s.tmp_0 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 128; - s.tmp_0.arg2 = true; - s.callLocIdx = 641; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - s.tmp_2.arg0 = globals.cursorOut___7253; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 642; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["tileSaved"] = (s.tmp_1); - s.tmp_0 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["tileSaved"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 128; - s.tmp_0.arg2 = true; - s.callLocIdx = 643; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10921); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 645; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10927); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; - s.tmp_1.arg1 = 2054; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 647; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10933); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; - s.tmp_1.arg1 = 2048; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 648; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10942); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 650; s.pc = 13; return s.tmp_1; - case 13: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10948); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; - s.tmp_1.arg1 = 2054; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 652; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10954); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; - s.tmp_1.arg1 = 2048; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 653; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10963); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 655; s.pc = 16; return s.tmp_1; - case 16: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10968); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; - s.tmp_1.arg1 = 2054; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 657; s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10973); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; - s.tmp_1.arg1 = 2048; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 658; s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10982); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; - s.tmp_1.arg1 = 2049; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 660; s.pc = 19; return s.tmp_1; - case 19: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10987); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; - s.tmp_1.arg1 = 2054; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 662; s.pc = 20; return s.tmp_1; - case 20: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P10992); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; - s.tmp_1.arg1 = 2048; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 663; s.pc = 21; return s.tmp_1; - case 21: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_RuleVisualsBase_constructor__P10857.info = {"start":650,"length":2272,"line":24,"column":8,"endLine":66,"endColumn":9,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["this","p"]} - -function tileworld_RuleVisualsBase_constructor__P10857_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_RuleVisualsBase_constructor__P10857, 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 inline__P10921(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 = tileworld_RuleVisualsBase_moveInX__P10841_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 0; - s.callLocIdx = 644; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P10921.info = {"start":1393,"length":38,"line":42,"column":67,"endLine":42,"endColumn":105,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} - -function inline__P10921_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P10921, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function inline__P10927(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 = tileworld_RuleVisualsBase_moveInX__P10841_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 0; - s.callLocIdx = 646; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P10927.info = {"start":1503,"length":38,"line":43,"column":68,"endLine":43,"endColumn":106,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} - -function inline__P10927_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P10927, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function inline__P10933(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_3 = tileworld_RuleVisualsBase__C10839_v1_1_mk(s); - s.tmp_3.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; - s.pc = 4; return s.tmp_3; - case 4: - 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 = 3; continue; } - case 1: - case 2: - s.tmp_4 = tileworld_RuleVisualsBase__C10839_v2_3_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = false; - if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove; - s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P10933.info = {"start":1612,"length":127,"line":44,"column":68,"endLine":47,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} - -function inline__P10933_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P10933, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, -} } - - - - - -function inline__P10942(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 = tileworld_RuleVisualsBase_moveInX__P10841_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 2; - s.callLocIdx = 649; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P10942.info = {"start":1810,"length":39,"line":48,"column":68,"endLine":48,"endColumn":107,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} - -function inline__P10942_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P10942, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function inline__P10948(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 = tileworld_RuleVisualsBase_moveInX__P10841_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = 2; - s.callLocIdx = 651; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P10948.info = {"start":1921,"length":39,"line":49,"column":69,"endLine":49,"endColumn":108,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} - -function inline__P10948_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P10948, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function inline__P10954(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_3 = tileworld_RuleVisualsBase__C10839_v1_1_mk(s); - s.tmp_3.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; - s.pc = 4; return s.tmp_3; - case 4: - 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 = 3; continue; } - case 1: - case 2: - s.tmp_4 = tileworld_RuleVisualsBase__C10839_v2_3_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = 2; - s.tmp_4.arg2 = false; - if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove; - s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - case 3: - r0 = undefined; + s.tmp_0 = tileworld_Project_setPlayer__P3685_mk(s); + s.tmp_0.arg0 = s.p___8851; + s.tmp_0.arg1 = s.player___8965; + s.callLocIdx = 276; s.pc = 79; return s.tmp_0; + case 79: + r0 = s.retval; + r0 = (s.p___8851).fields["help"] = (s.help___8839); + r0 = (s.p___8851).fields["version"] = (s.version___8769); + r0 = (s.p___8851).fields["highScore"] = (s.highScore___8841); + r0 = s.p___8851; + case 27: return leave(s, r0) default: oops() } } } -inline__P10954.info = {"start":2032,"length":128,"line":50,"column":69,"endLine":53,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} +tileworld_loadProject__P3709.info = {"start":10108,"length":3486,"line":276,"column":4,"endLine":345,"endColumn":5,"fileName":"project.ts","functionName":"loadProject","argumentNames":["prefix","output"]} -function inline__P10954_mk(s) { +function tileworld_loadProject__P3709_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10954, depth: s.depth + 1, + parent: s, fn: tileworld_loadProject__P3709, depth: s.depth + 1, pc: 0, retval: undefined, 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, + names___8758: undefined, + version___8769: undefined, + buf___8774: undefined, + world___8779: undefined, + sprites___8798: undefined, + backCnt___8812: undefined, + backImages___8817: undefined, + spriteCnt___8823: undefined, + spriteImages___8828: undefined, + helpNum___8834: undefined, + help___8839: undefined, + highScore___8841: undefined, + p___8851: undefined, + ruleName___8857: undefined, + ruleids___8863: undefined, + rules___8886: undefined, + derivedRules___8888: undefined, + whenDoCount___8889: undefined, + commandCount___8890: undefined, + attrCount___8891: undefined, + player___8965: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P10963(s) { +function inline__P8867(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58946,30 +59855,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RuleVisualsBase_moveUp__P10842_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 654; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_String_.indexOf(s.arg0, s.caps[0], undefined); + s.tmp_0 = r0; + r0 = (s.tmp_0 == 0); return leave(s, r0) default: oops() } } } -inline__P10963.info = {"start":2228,"length":19,"line":54,"column":65,"endLine":54,"endColumn":84,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} +inline__P8867.info = {"start":11773,"length":29,"line":304,"column":35,"endLine":304,"endColumn":64,"fileName":"project.ts","functionName":"inline","argumentNames":["s"]} -function inline__P10963_mk(s) { +function inline__P8867_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10963, depth: s.depth + 1, + parent: s, fn: inline__P8867, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function inline__P10968(s) { +function inline__P8875(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -58979,30 +59890,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RuleVisualsBase_moveUp__P10842_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 656; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = parseInt__P92_mk(s); + s.tmp_1 = r0 = s.arg0; + r0 = pxsim_String_.length(s.caps[0]); + s.tmp_2 = r0; + r0 = pxsim_String_.substr(s.tmp_1, s.tmp_2, 10); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 256; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P10968.info = {"start":2316,"length":19,"line":55,"column":66,"endLine":55,"endColumn":85,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} +inline__P8875.info = {"start":11808,"length":42,"line":304,"column":70,"endLine":304,"endColumn":112,"fileName":"project.ts","functionName":"inline","argumentNames":["s"]} -function inline__P10968_mk(s) { +function inline__P8875_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10968, depth: s.depth + 1, + parent: s, fn: inline__P8875, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, } } -function inline__P10973(s) { +function inline__P8894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59012,56 +59934,189 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = tileworld_RuleVisualsBase__C10839_v1_1_mk(s); - s.tmp_3.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; - s.pc = 4; return s.tmp_3; - case 4: + s.buf___8896 = undefined; + s.rule___8908 = undefined; + s.rv___8913 = undefined; + s.wdCnt___8933 = undefined; + s.cmdCnt___8934 = undefined; + s.attrCnt___8935 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = tileworld_settingsReadBuffer__P8685_mk(s); + s.tmp_0.arg0 = s.caps[0]; + if ((globals.RuleKey___8299) && (globals.RuleKey___8299).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(globals.RuleKey___8299); + checkResumeConsumed(); + return; + } else { s.retval = (globals.RuleKey___8299) + ""; } + case 6: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_numops.toString(s.arg0); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 7: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.caps[1]; + s.callLocIdx = 258; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.buf___8896 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___8896); + if (!r0) { step = 3; continue; } + s.tmp_0 = tileworld_unPackRule__P3628_mk(s); + s.tmp_0.arg0 = s.buf___8896; + s.tmp_0.arg1 = s.caps[2]; + s.tmp_0.arg2 = s.caps[3]; + s.callLocIdx = 259; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.rule___8908 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_RuleView__C3630_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.tmp_1 = tileworld_RuleView_constructor__P3631_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.caps[4]; + s.tmp_1.arg2 = s.arg0; + s.tmp_1.arg3 = s.rule___8908; + s.callLocIdx = 260; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.rv___8913 = (s.tmp_0); + r0 = pxsim_Array__push(s.caps[5], s.rv___8913); + r0 = pxsim_numops_toBoolDecr(s.caps[1]); if (!r0) { step = 1; continue; } - { step = 3; continue; } + s.tmp_0 = r0 = s.caps[6]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); + s.tmp_2 = r0; + s.tmp_5 = tileworld_RuleView_getDerivedRules__P3633_mk(s); + s.tmp_5.arg0 = s.rv___8913; + s.callLocIdx = 261; s.pc = 10; return s.tmp_5; + case 10: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_1 = tileworld_ruleStats__P3626_mk(s); + s.tmp_1.arg0 = s.rv___8913; + s.callLocIdx = 262; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, 0); + s.wdCnt___8933 = (r0); + r0 = pxsim_Array__getAt(s.tmp_0, 1); + s.cmdCnt___8934 = (r0); + r0 = pxsim_Array__getAt(s.tmp_0, 2); + s.attrCnt___8935 = (r0); + s.tmp_0 = r0 = s.caps[7]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[7]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.wdCnt___8933); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.caps[8]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.cmdCnt___8934); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.caps[9]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.attrCnt___8935); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); case 1: case 2: - s.tmp_4 = tileworld_RuleVisualsBase__C10839_v2_3_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = 1; - s.tmp_4.arg2 = false; - if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove; - s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; + { step = 4; continue; } case 3: + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = pxsim_numops.toString(s.arg0); + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 13); + pxsim_String__stringConv(s.tmp_4); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_4) + ""; } + case 13: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_String__concat("Read (", s.tmp_3); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.tmp_2); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_2) + ""; } + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_String__concat(s.tmp_1, ") failed"); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 10; + s.tmp_0.arg3 = 10; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 263; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = control_assert__P319_mk(s); + s.tmp_0.arg0 = false; + s.tmp_0.arg1 = 42; + s.callLocIdx = 264; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P10973.info = {"start":2404,"length":125,"line":56,"column":66,"endLine":59,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} +inline__P8894.info = {"start":12029,"length":732,"line":310,"column":24,"endLine":327,"endColumn":9,"fileName":"project.ts","functionName":"inline","argumentNames":["rid"]} -function inline__P10973_mk(s) { +function inline__P8894_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10973, depth: s.depth + 1, + parent: s, fn: inline__P8894, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + buf___8896: undefined, + rule___8908: undefined, + rv___8913: undefined, + wdCnt___8933: undefined, + cmdCnt___8934: undefined, + attrCnt___8935: undefined, + arg0: undefined, } } -function inline__P10982(s) { +function tileworld_Project_setRules__P3683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59071,30 +60126,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RuleVisualsBase_moveDown__P10843_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 659; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_Project__C3677_VT)) failedCast(r0); + r0 = (s.arg0).fields["rules"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P10982.info = {"start":2599,"length":21,"line":60,"column":67,"endLine":60,"endColumn":88,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} +tileworld_Project_setRules__P3683.info = {"start":2335,"length":74,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"project.ts","functionName":"setRules","argumentNames":["this","rvl"]} -function inline__P10982_mk(s) { +function tileworld_Project_setRules__P3683_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10982, depth: s.depth + 1, + parent: s, fn: tileworld_Project_setRules__P3683, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P10987(s) { +function tileworld_ruleStats__P3626(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59104,30 +60163,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = tileworld_RuleVisualsBase_moveDown__P10843_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 661; s.pc = 1; return s.tmp_0; + s.wdCnt___6670 = undefined; + s.cmdCnt___6671 = undefined; + s.attrCnt___6672 = undefined; + s.col___6673 = undefined; + s.row___6677 = undefined; + s.whendo___6681 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.wdCnt___6670 = (0); + s.cmdCnt___6671 = (0); + s.attrCnt___6672 = (0); + s.col___6673 = (1); case 1: + r0 = (s.col___6673 <= 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.row___6677 = (1); + case 2: + r0 = (s.row___6677 <= 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_1 = tileworld_RuleView_getWhenDo__P3643_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.col___6673; + s.tmp_1.arg2 = s.row___6677; + s.callLocIdx = 73; s.pc = 7; return s.tmp_1; + case 7: r0 = s.retval; - r0 = undefined; + s.whendo___6681 = (r0); + r0 = (s.whendo___6681 != -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.wdCnt___6670 + 1); + s.wdCnt___6670 = (r0); + s.tmp_0 = r0 = s.cmdCnt___6671; + r0 = s.arg0.fields["r"]; + r0 = r0.fields["whenDo"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.whendo___6681); + r0 = r0.fields["commandsLen"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.cmdCnt___6671 = (r0); + s.tmp_0 = r0 = s.attrCnt___6672; + s.tmp_2 = tileworld_RuleView_attrCnt__P3649_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.whendo___6681; + s.callLocIdx = 75; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.attrCnt___6672 = (r0); + case 3: + case 4: + r0 = (s.row___6677 + 1); + s.row___6677 = (r0); + { step = 2; continue; } + case 5: + r0 = (s.col___6673 + 1); + s.col___6673 = (r0); + { step = 1; continue; } + case 6: + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.wdCnt___6670); + r0 = pxsim_Array__push(s.tmp_0, s.cmdCnt___6671); + r0 = pxsim_Array__push(s.tmp_0, s.attrCnt___6672); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -inline__P10987.info = {"start":2691,"length":21,"line":61,"column":68,"endLine":61,"endColumn":89,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} +tileworld_ruleStats__P3626.info = {"start":8007,"length":517,"line":215,"column":4,"endLine":230,"endColumn":5,"fileName":"rule.ts","functionName":"ruleStats","argumentNames":["rv"]} -function inline__P10987_mk(s) { +function tileworld_ruleStats__P3626_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10987, depth: s.depth + 1, + parent: s, fn: tileworld_ruleStats__P3626, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + wdCnt___6670: undefined, + cmdCnt___6671: undefined, + attrCnt___6672: undefined, + col___6673: undefined, + row___6677: undefined, + whendo___6681: undefined, + arg0: undefined, } } -function inline__P10992(s) { +function tileworld_RuleView_attrCnt__P3649(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59137,56 +60273,116 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = tileworld_RuleVisualsBase__C10839_v1_1_mk(s); - s.tmp_3.arg0 = s.caps[0]; - if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; - s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; + s.cnt___7403 = undefined; + s.i___7404 = undefined; + s.i___7421 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_RuleView__C3630_VT)) failedCast(r0); + s.cnt___7403 = (0); + s.i___7404 = (0); + case 1: + s.tmp_1 = r0 = s.i___7404; + r0 = s.arg0.fields["p"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_backgroundsI"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: + if (!r0) { step = 4; continue; } + s.tmp_7 = tileworld_RuleView_getSetBgAttr__P3647_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.arg1; + s.tmp_7.arg2 = s.i___7404; + s.tmp_7.arg3 = 65535; + s.callLocIdx = 130; s.pc = 9; return s.tmp_7; + case 9: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 != 0); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 2; continue; } + r0 = (s.cnt___7403 + 1); + s.cnt___7403 = (r0); case 2: - s.tmp_4 = tileworld_RuleVisualsBase__C10839_v2_3_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.tmp_4.arg1 = 3; - s.tmp_4.arg2 = false; - if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_4.arg0); - s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove; - s.pc = 5; return s.tmp_4; + case 3: + r0 = (s.i___7404 + 1); + s.i___7404 = (r0); + { step = 1; continue; } + case 4: + s.i___7421 = (0); case 5: + s.tmp_1 = r0 = s.i___7421; + r0 = s.arg0.fields["p"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_spritesI"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_7 = tileworld_RuleView_getSetSpAttr__P3648_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = s.arg1; + s.tmp_7.arg2 = s.i___7421; + s.tmp_7.arg3 = 65535; + s.callLocIdx = 132; s.pc = 10; return s.tmp_7; + case 10: r0 = s.retval; - case 3: - r0 = undefined; + s.tmp_6 = r0; + r0 = (s.tmp_6 != 0); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 6; continue; } + r0 = (s.cnt___7403 + 1); + s.cnt___7403 = (r0); + case 6: + case 7: + r0 = (s.i___7421 + 1); + s.i___7421 = (r0); + { step = 5; continue; } + case 8: + r0 = s.cnt___7403; return leave(s, r0) default: oops() } } } -inline__P10992.info = {"start":2783,"length":127,"line":62,"column":68,"endLine":65,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} +tileworld_RuleView_attrCnt__P3649.info = {"start":4924,"length":419,"line":142,"column":8,"endLine":153,"endColumn":9,"fileName":"ruleview.ts","functionName":"attrCnt","argumentNames":["this","whendo"]} -function inline__P10992_mk(s) { +function tileworld_RuleView_attrCnt__P3649_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P10992, depth: s.depth + 1, + parent: s, fn: tileworld_RuleView_attrCnt__P3649, depth: s.depth + 1, pc: 0, retval: undefined, 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, + cnt___7403: undefined, + i___7404: undefined, + i___7421: undefined, + arg0: undefined, + arg1: undefined, } } -function tileworld_RuleVisualsBase_moveDown__P10843(s) { +function tileworld_unPackRule__P3628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59196,97 +60392,173 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.rt___6964 = undefined; + s.ra___6966 = undefined; + s.rv___6968 = undefined; + s.rule___6970 = undefined; + s.whenDoLen___6977 = undefined; + s.i___6979 = undefined; + s.col___6984 = undefined; + s.row___6986 = undefined; + s.wd___6988 = 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, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_3 = tileworld_RuleVisualsBase__C10839_v1_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; - s.pc = 6; return s.tmp_3; + globals.ruleBuf___6715 = (s.arg0); + globals.bitIndex___6717 = (0); + s.tmp_0 = tileworld_readBuf__P6828_mk(s); + s.tmp_0.arg0 = 4; + s.callLocIdx = 98; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.rt___6964 = (r0); + s.tmp_0 = tileworld_readBuf__P6828_mk(s); + s.tmp_0.arg0 = 4; + s.callLocIdx = 99; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.ra___6966 = (r0); + s.tmp_0 = tileworld_readBuf__P6828_mk(s); + s.tmp_0.arg0 = 4; + s.callLocIdx = 100; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.rv___6968 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_Rule__C3615_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_Rule_constructor__P3616_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.rt___6964; + s.tmp_1.arg2 = s.ra___6966; + r0 = pxsim_Array__mk(); + s.tmp_1.arg3 = r0; + s.tmp_1.arg4 = s.rv___6968; + s.callLocIdx = 101; s.pc = 6; return s.tmp_1; case 6: 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.rule___6970 = (s.tmp_0); + s.tmp_0 = tileworld_readBuf__P6828_mk(s); + s.tmp_0.arg0 = 4; + s.callLocIdx = 102; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.whenDoLen___6977 = (r0); + s.i___6979 = (0); + case 1: + r0 = (s.i___6979 < s.whenDoLen___6977); 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_6 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = true; - s.callLocIdx = 672; s.pc = 7; return s.tmp_6; - case 7: + if (!r0) { step = 2; continue; } + s.tmp_1 = tileworld_readBuf__P6828_mk(s); + s.tmp_1.arg0 = 4; + s.callLocIdx = 103; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 < 6); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - s.tmp_7 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_8 = r0; - s.tmp_7.arg0 = r0; - s.tmp_10 = Sprite_y__P772_mk(s); - s.tmp_10.arg0 = s.tmp_8; - s.callLocIdx = 673; s.pc = 9; return s.tmp_10; + s.col___6984 = (r0); + s.tmp_0 = tileworld_readBuf__P6828_mk(s); + s.tmp_0.arg0 = 4; + s.callLocIdx = 104; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_9 + 16); - s.tmp_7.arg1 = r0; - s.callLocIdx = 674; s.pc = 8; return s.tmp_7; - case 8: + s.row___6986 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(tileworld_WhenDo__C3603_VT); + s.tmp_0 = r0; + s.tmp_1 = tileworld_WhenDo_constructor__P3604_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.col___6984; + s.tmp_1.arg2 = s.row___6986; + s.tmp_2 = tileworld_readBufRaw__P6832_mk(s); + r0 = (s.arg1 >> 2); + s.tmp_2.arg0 = r0; + r0 = (s.arg1 >> 2); + s.tmp_2.arg1 = r0; + s.callLocIdx = 105; s.pc = 11; return s.tmp_2; + case 11: r0 = s.retval; - case 3: - case 4: - s.tmp_0 = tileworld_RuleVisualsBase__C10839_v2_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 3; - s.tmp_0.arg2 = true; - if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove; - s.pc = 10; return s.tmp_0; + s.tmp_1.arg3 = r0; + s.tmp_3 = tileworld_readBufRaw__P6832_mk(s); + r0 = (s.arg2 >> 2); + s.tmp_3.arg0 = r0; + r0 = (s.arg2 >> 2); + s.tmp_3.arg1 = r0; + s.callLocIdx = 106; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.tmp_1.arg4 = r0; + s.tmp_1.arg5 = -1; + s.tmp_1.arg6 = null; + s.tmp_1.arg7 = 0; + s.callLocIdx = 107; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - case 5: - r0 = undefined; + s.wd___6988 = (s.tmp_0); + s.tmp_0 = r0 = s.wd___6988; + s.tmp_2 = tileworld_readBuf__P6828_mk(s); + s.tmp_2.arg0 = 4; + s.callLocIdx = 108; s.pc = 13; return s.tmp_2; + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["dir"] = (s.tmp_1); + s.tmp_0 = r0 = s.wd___6988; + s.tmp_2 = tileworld_readBuf__P6828_mk(s); + s.tmp_2.arg0 = 4; + s.callLocIdx = 109; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["commandsLen"] = (s.tmp_1); + r0 = s.rule___6970.fields["whenDo"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.wd___6988); + r0 = (s.i___6979 + 1); + s.i___6979 = (r0); + { step = 1; continue; } + case 2: + s.tmp_0 = helpers_arrayForEach__P104_mk(s); + r0 = s.rule___6970.fields["whenDo"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = inline__P7022; + s.callLocIdx = 111; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = s.rule___6970; return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_moveDown__P10843.info = {"start":3441,"length":190,"line":83,"column":8,"endLine":88,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveDown","argumentNames":["this"]} +tileworld_unPackRule__P3628.info = {"start":11735,"length":1027,"line":327,"column":4,"endLine":355,"endColumn":5,"fileName":"rule.ts","functionName":"unPackRule","argumentNames":["buf","bgLen","spLen"]} -function tileworld_RuleVisualsBase_moveDown__P10843_mk(s) { +function tileworld_unPackRule__P3628_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_moveDown__P10843, depth: s.depth + 1, + parent: s, fn: tileworld_unPackRule__P3628, depth: s.depth + 1, pc: 0, retval: undefined, 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, + rt___6964: undefined, + ra___6966: undefined, + rv___6968: undefined, + rule___6970: undefined, + whenDoLen___6977: undefined, + i___6979: undefined, + col___6984: undefined, + row___6986: undefined, + wd___6988: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function tileworld_RuleVisualsBase_moveUp__P10842(s) { +function inline__P7022(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59300,73 +60572,41 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_3 = tileworld_RuleVisualsBase__C10839_v1_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; - s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = s.arg0.fields["commandsLen"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } - case 1: - case 2: - s.tmp_6 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = true; - s.callLocIdx = 669; s.pc = 7; return s.tmp_6; - case 7: - r0 = s.retval; + s.tmp_2 = r0 = s.arg0; + s.tmp_4 = tileworld_readBufRaw__P6832_mk(s); + s.tmp_4.arg0 = 8; + r0 = s.arg0.fields["commandsLen"]; s.tmp_5 = r0; - r0 = (s.tmp_5 > 0); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - s.tmp_7 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_8 = r0; - s.tmp_7.arg0 = r0; - s.tmp_10 = Sprite_y__P772_mk(s); - s.tmp_10.arg0 = s.tmp_8; - s.callLocIdx = 670; s.pc = 9; return s.tmp_10; - case 9: - r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_9 - 16); - s.tmp_7.arg1 = r0; - s.callLocIdx = 671; s.pc = 8; return s.tmp_7; - case 8: - r0 = s.retval; + r0 = (s.tmp_5 << 1); + s.tmp_4.arg1 = r0; + s.callLocIdx = 110; s.pc = 3; return s.tmp_4; case 3: - case 4: - s.tmp_0 = tileworld_RuleVisualsBase__C10839_v2_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = true; - if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove; - s.pc = 10; return s.tmp_0; - case 10: r0 = s.retval; - case 5: + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["commands"] = (s.tmp_3); + { step = 2; continue; } + case 1: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.control.createBuffer(8); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["commands"] = (s.tmp_1); + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_moveUp__P10842.info = {"start":3245,"length":186,"line":76,"column":8,"endLine":81,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveUp","argumentNames":["this"]} +inline__P7022.info = {"start":12492,"length":241,"line":347,"column":28,"endLine":353,"endColumn":9,"fileName":"rule.ts","functionName":"inline","argumentNames":["wd"]} -function tileworld_RuleVisualsBase_moveUp__P10842_mk(s) { +function inline__P7022_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_moveUp__P10842, depth: s.depth + 1, + parent: s, fn: inline__P7022, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -59374,11 +60614,6 @@ function tileworld_RuleVisualsBase_moveUp__P10842_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, arg0: undefined, } } @@ -59386,7 +60621,7 @@ function tileworld_RuleVisualsBase_moveUp__P10842_mk(s) { -function tileworld_RuleVisualsBase_cursorMove__P10856(s) { +function tileworld_readBufRaw__P6832(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59396,35 +60631,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.b___6835 = undefined; + s.i___6839 = 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, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - r0 = undefined; + r0 = pxsim.control.createBuffer(s.arg0); + s.b___6835 = (r0); + s.i___6839 = (0); + case 1: + r0 = (s.i___6839 < s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.b___6835; + s.tmp_2 = r0 = s.i___6839; + s.tmp_4 = tileworld_readBuf__P6828_mk(s); + s.tmp_4.arg0 = 8; + s.callLocIdx = 82; s.pc = 3; return s.tmp_4; + case 3: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim.BufferMethods.setUint8(s.tmp_1, s.tmp_2, s.tmp_3); + r0 = (s.i___6839 + 1); + s.i___6839 = (r0); + { step = 1; continue; } + case 2: + r0 = s.b___6835; return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_cursorMove__P10856.info = {"start":5284,"length":69,"line":139,"column":8,"endLine":139,"endColumn":77,"fileName":"rulesBase.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} +tileworld_readBufRaw__P6832.info = {"start":10235,"length":207,"line":288,"column":4,"endLine":294,"endColumn":5,"fileName":"rule.ts","functionName":"readBufRaw","argumentNames":["bytes","cnt"]} -function tileworld_RuleVisualsBase_cursorMove__P10856_mk(s) { +function tileworld_readBufRaw__P6832_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_cursorMove__P10856, depth: s.depth + 1, + parent: s, fn: tileworld_readBufRaw__P6832, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + b___6835: undefined, + i___6839: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tileworld_RuleVisualsBase_okToMove__P10844(s) { +function tileworld_readBuf__P6828(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59438,19 +60699,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - r0 = true; + s.tmp_0 = tileworld_readWriteBuf__P6718_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = false; + s.callLocIdx = 81; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -tileworld_RuleVisualsBase_okToMove__P10844.info = {"start":3641,"length":37,"line":90,"column":8,"endLine":90,"endColumn":45,"fileName":"rulesBase.ts","functionName":"okToMove","argumentNames":["this"]} +tileworld_readBuf__P6828.info = {"start":10092,"length":83,"line":283,"column":4,"endLine":285,"endColumn":5,"fileName":"rule.ts","functionName":"readBuf","argumentNames":["bits"]} -function tileworld_RuleVisualsBase_okToMove__P10844_mk(s) { +function tileworld_readBuf__P6828_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_RuleVisualsBase_okToMove__P10844, depth: s.depth + 1, + parent: s, fn: tileworld_readBuf__P6828, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -59458,7 +60724,7 @@ function tileworld_RuleVisualsBase_okToMove__P10844_mk(s) { -function tileworld_RuleVisualsBase_moveInX__P10841(s) { +function parseInt__P92(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -59468,695 +60734,313 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.start___26811 = undefined; + s.sign___26841 = undefined; + s.output___26886 = undefined; + s.hasDigit___26887 = undefined; + s.i___26888 = undefined; + s.code___26895 = undefined; + s.val___26902 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(r0); - s.tmp_3 = tileworld_RuleVisualsBase__C10839_v1_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; - s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - 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; } - { step = 11; continue; } + r0 = s.tmp_0; + { step = 6; continue; } case 1: + r0 = (s.arg1 != null); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 5; continue; } case 2: - r0 = (s.arg1 == 0); - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (r0) { step = 3; continue; } - r0 = s.tmp_4; + r0 = (s.arg1 < 2); + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; { step = 4; continue; } case 3: - s.tmp_6 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = true; - s.callLocIdx = 664; s.pc = 13; return s.tmp_6; - case 13: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 > 0); + r0 = (s.arg1 > 36); case 4: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBool(s.tmp_7); - if (!r0) { step = 5; continue; } - r0 = s.tmp_7; - { step = 8; continue; } + s.tmp_4 = r0; + r0 = s.tmp_4; case 5: - r0 = (s.arg1 == 2); - s.tmp_8 = r0; - r0 = pxsim_numops_toBool(s.tmp_8); - if (r0) { step = 6; continue; } - r0 = s.tmp_8; - { step = 7; continue; } + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; case 6: - s.tmp_10 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_10.arg0 = s.arg0; - s.tmp_10.arg1 = true; - s.callLocIdx = 665; s.pc = 14; return s.tmp_10; - case 14: - r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_9 < 9); - case 7: // jmp value (already in r0) - s.tmp_11 = r0; - r0 = s.tmp_11; + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 7; continue; } + r0 = NaN; + { step = 46; continue; } + case 7: case 8: - // jmp value (already in r0) - s.tmp_12 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_12); - if (!r0) { step = 9; continue; } - s.tmp_13 = Sprite_x__P771_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_14 = r0; - s.tmp_13.arg0 = r0; - s.tmp_16 = Sprite_x__P770_mk(s); - s.tmp_16.arg0 = s.tmp_14; - s.callLocIdx = 667; s.pc = 16; return s.tmp_16; - case 16: - r0 = s.retval; - s.tmp_15 = r0; - s.tmp_19 = tileworld_moveXdelta__P4332_mk(s); - s.tmp_19.arg0 = s.arg1; - s.callLocIdx = 666; s.pc = 17; return s.tmp_19; - case 17: - r0 = s.retval; - s.tmp_18 = r0; - r0 = (16 * s.tmp_18); - s.tmp_17 = r0; - r0 = (s.tmp_15 + s.tmp_17); - s.tmp_13.arg1 = r0; - s.callLocIdx = 668; s.pc = 15; return s.tmp_13; - case 15: - r0 = s.retval; + s.start___26811 = (0); case 9: + s.tmp_1 = r0 = s.start___26811; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 10; continue; } + r0 = s.tmp_0; + { step = 11; continue; } case 10: - s.tmp_0 = tileworld_RuleVisualsBase__C10839_v2_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = true; - if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C10839_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove; - s.pc = 18; return s.tmp_0; - case 18: + s.tmp_3 = helpers_isWhitespace__P116_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.start___26811); + s.tmp_3.arg0 = r0; + s.callLocIdx = 0; s.pc = 47; return s.tmp_3; + case 47: r0 = s.retval; case 11: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tileworld_RuleVisualsBase_moveInX__P10841.info = {"start":2932,"length":303,"line":68,"column":8,"endLine":74,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveInX","argumentNames":["this","dir"]} - -function tileworld_RuleVisualsBase_moveInX__P10841_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tileworld_RuleVisualsBase_moveInX__P10841, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function createPacMan__P16407(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; - } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 12; continue; } + r0 = (s.start___26811 + 1); + s.start___26811 = (r0); + { step = 9; continue; } + case 12: + s.tmp_1 = r0 = s.start___26811; + r0 = pxsim_String_.length(s.arg0); s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "VersionS"); - s.tmp_1 = r0; - r0 = pxsim.settings._exists(s.tmp_1); + r0 = (s.tmp_1 === s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_3 = settings_writeString__P612_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 6: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "VersionS"); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = "4.0.0"; - s.callLocIdx = 1590; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WBackM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17400; - s.callLocIdx = 1591; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17408; - s.callLocIdx = 1592; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1593; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17422; - s.callLocIdx = 1594; s.pc = 13; return s.tmp_0; + if (!r0) { step = 13; continue; } + r0 = NaN; + { step = 46; continue; } case 13: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17430; - s.callLocIdx = 1595; s.pc = 15; return s.tmp_0; + case 14: + s.sign___26841 = (1); + r0 = pxsim_String_.charAt(s.arg0, s.start___26811); + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq("-", s.tmp_0); + if (r0) { step = 15; continue; } + r0 = pxsim_pxtcore.switch_eq("+", s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } case 15: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - 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_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17438; - s.callLocIdx = 1596; s.pc = 17; return s.tmp_0; + s.sign___26841 = (-1); + case 16: + r0 = (s.start___26811 + 1); + s.start___26811 = (r0); case 17: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 20: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17446; - s.callLocIdx = 1597; s.pc = 19; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + r0 = (s.arg1 == 16); case 19: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 22: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1598; s.pc = 21; return s.tmp_0; + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 20; continue; } + r0 = s.tmp_2; + { step = 21; continue; } + case 20: + r0 = pxsim_String_.charAt(s.arg0, s.start___26811); + s.tmp_3 = r0; + r0 = ("0" === s.tmp_3); case 21: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17460; - s.callLocIdx = 1599; s.pc = 23; return s.tmp_0; + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 22; continue; } + r0 = s.tmp_4; + { step = 25; continue; } + case 22: + s.tmp_7 = r0 = s.arg0; + r0 = (s.start___26811 + 1); + s.tmp_8 = r0; + r0 = pxsim_String_.charAt(s.tmp_7, s.tmp_8); + s.tmp_6 = r0; + r0 = ("x" === s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (!r0) { step = 23; continue; } + r0 = s.tmp_5; + { step = 24; continue; } case 23: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 26: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17468; - s.callLocIdx = 1600; s.pc = 25; return s.tmp_0; + s.tmp_10 = r0 = s.arg0; + r0 = (s.start___26811 + 1); + s.tmp_11 = r0; + r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); + s.tmp_9 = r0; + r0 = ("X" === s.tmp_9); + case 24: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = s.tmp_12; case 25: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 28: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_13); + if (!r0) { step = 26; continue; } + s.arg1 = (16); + r0 = (s.start___26811 + 2); + s.start___26811 = (r0); + { step = 29; continue; } + case 26: + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17476; - s.callLocIdx = 1601; s.pc = 27; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + s.arg1 = (10); case 27: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 30: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17484; - s.callLocIdx = 1602; s.pc = 29; return s.tmp_0; + case 28: case 29: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 32); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HelpN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1603; s.pc = 31; return s.tmp_0; + s.output___26886 = (0); + s.hasDigit___26887 = (false); + s.i___26888 = (s.start___26811); + case 30: + s.tmp_1 = r0 = s.i___26888; + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 45; continue; } + r0 = pxsim_String_.charCodeAt(s.arg0, s.i___26888); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 32); + s.code___26895 = (r0); + s.val___26902 = (undefined); + r0 = (s.code___26895 >= 48); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 31; continue; } + r0 = s.tmp_0; + { step = 32; continue; } case 31: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 34: - r0 = s.retval; + r0 = (s.code___26895 < 58); + case 32: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HighN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 1540; - s.callLocIdx = 1604; s.pc = 33; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 33; continue; } + r0 = (s.code___26895 - 48); + s.val___26902 = (r0); + { step = 38; continue; } case 33: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 36: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17504; - s.callLocIdx = 1605; s.pc = 35; return s.tmp_0; + r0 = (s.code___26895 >= 97); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 34; continue; } + r0 = s.tmp_0; + { step = 35; continue; } + case 34: + r0 = (s.code___26895 < 123); case 35: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 38); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17512; - s.callLocIdx = 1606; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 40: - r0 = s.retval; + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17520; - s.callLocIdx = 1607; s.pc = 39; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 36; continue; } + r0 = (10 + s.code___26895); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 97); + s.val___26902 = (r0); + case 36: + case 37: + case 38: + r0 = (s.val___26902 == undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 39; continue; } + r0 = s.tmp_0; + { step = 40; continue; } case 39: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 42: - r0 = s.retval; + r0 = (s.val___26902 >= s.arg1); + case 40: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17528; - s.callLocIdx = 1608; s.pc = 41; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 43; continue; } + r0 = pxsim_numops_toBoolDecr(s.hasDigit___26887); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 41; continue; } + r0 = NaN; + { step = 46; continue; } case 41: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17536; - s.callLocIdx = 1609; s.pc = 43; return s.tmp_0; + case 42: + { step = 45; continue; } case 43: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17544; - s.callLocIdx = 1610; s.pc = 45; return s.tmp_0; + case 44: + s.hasDigit___26887 = (true); + r0 = (s.output___26886 * s.arg1); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.val___26902); + s.output___26886 = (r0); + r0 = (s.i___26888 + 1); + s.i___26888 = (r0); + { step = 30; continue; } case 45: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 48: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17552; - s.callLocIdx = 1611; s.pc = 47; return s.tmp_0; - case 47: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 50); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 50: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17560; - s.callLocIdx = 1612; s.pc = 49; return s.tmp_0; - case 49: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 52); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 52: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB8"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17568; - s.callLocIdx = 1613; s.pc = 51; return s.tmp_0; - case 51: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 54); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 54: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17576; - s.callLocIdx = 1614; s.pc = 53; return s.tmp_0; - case 53: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 56); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 56: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17584; - s.callLocIdx = 1615; s.pc = 55; return s.tmp_0; - case 55: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 58); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 58: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB11"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17592; - s.callLocIdx = 1616; s.pc = 57; return s.tmp_0; - case 57: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 60); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 60: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB12"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17600; - s.callLocIdx = 1617; s.pc = 59; return s.tmp_0; - case 59: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 62); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 62: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1618; s.pc = 61; return s.tmp_0; - case 61: - r0 = s.retval; - case 3: - r0 = undefined; + r0 = (s.sign___26841 * s.output___26886); + case 46: return leave(s, r0) default: oops() } } } -createPacMan__P16407.info = {"start":20312,"length":4569,"line":478,"column":0,"endLine":578,"endColumn":1,"fileName":"games.ts","functionName":"createPacMan","argumentNames":["prefix"]} +parseInt__P92.info = {"start":1064,"length":1690,"line":44,"column":0,"endLine":103,"endColumn":1,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"parseInt","argumentNames":["text","radix"]} -function createPacMan__P16407_mk(s) { +function parseInt__P92_mk(s) { checkStack(s.depth); return { - parent: s, fn: createPacMan__P16407, depth: s.depth + 1, + parent: s, fn: parseInt__P92, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + start___26811: undefined, + sign___26841: undefined, + output___26886: undefined, + hasDigit___26887: undefined, + i___26888: undefined, + code___26895: undefined, + val___26902: undefined, arg0: undefined, + arg1: undefined, } } -const _hex17400 = pxsim.BufferMethods.createBufferFromHex("201880111012b021106110111011101110311031102110112011101110111011101110111031101110211011201110113011301130111011102110f13110111021101120115011301110113011102110112031107110311011102110411031101310111031103110214011301133113011301110211041103110131011103110311021101120311071103110111021101120115011301110113011102110f13110111021101120111011301130113011101110211011201110111011101110111011103110111021106110111011101110311031102180111012101190f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f121") -const _hex17408 = pxsim.BufferMethods.createBufferFromHex("2018ffaf613f113f311f314f112f111f113f113f111f311f114f112f111f113f113f113f111f114ff1311f114f112f115f113f111f113f114f112f316f211f311f114f411f212f123f311f317f114f121f124f103f114f411f212f123f311f314f112f316f211f311f114f112f115f113f111f113f114ff1311f114f112f111f113f113f113f111f114f112f111f113f113f111f311f114f613f113f311f31ffffffffffffffffffffffffffffffffffffffffffffffffffcf") -const _hex17422 = pxsim.BufferMethods.createBufferFromHex("1010ff4fa85f18af183f183f683f182f182f186f182f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f181f188f181f182f182f186f182f182f183f683f183f18af185fa8ff4f") -const _hex17430 = pxsim.BufferMethods.createBufferFromHex("1010ffffffffffffffffffffffffffffffffff1f") -const _hex17438 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") -const _hex17446 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") -const _hex17460 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e152f142e3f302f1e152f251d1e1512144f121e151f1e251d141512143f12131e151f1e142d14351f101f221e151f1e142d14351f102f121e151f1e251d141512142f102f1e152f251d1e1512142f103f1e152f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") -const _hex17468 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0d025d045c045d025f0f0f0f0f0f0d0") -const _hex17476 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50") -const _hex17484 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") -const _hex17504 = pxsim.BufferMethods.createBufferFromHex("2016220801160002") -const _hex17512 = pxsim.BufferMethods.createBufferFromHex("222622000112234100060004") -const _hex17520 = pxsim.BufferMethods.createBufferFromHex("2226220001022300042603000402") -const _hex17528 = pxsim.BufferMethods.createBufferFromHex("202022200146210400060300050202000002") -const _hex17536 = pxsim.BufferMethods.createBufferFromHex("002022200146230400060300050202000000") -const _hex17544 = pxsim.BufferMethods.createBufferFromHex("002022200116210400060000") -const _hex17552 = pxsim.BufferMethods.createBufferFromHex("2146220010121201000623040006320100060002") -const _hex17560 = pxsim.BufferMethods.createBufferFromHex("2146220010122301000612010006320400060003") -const _hex17568 = pxsim.BufferMethods.createBufferFromHex("212622001014120400060001") -const _hex17576 = pxsim.BufferMethods.createBufferFromHex("2146220010123201000623010006120400060001") -const _hex17584 = pxsim.BufferMethods.createBufferFromHex("21362200101223040006320400060002") -const _hex17592 = pxsim.BufferMethods.createBufferFromHex("21362200101223040006320400060003") -const _hex17600 = pxsim.BufferMethods.createBufferFromHex("222622001012230001060401") -function settings_exists__P621(s) { +function helpers_isWhitespace__P116(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60170,17 +61054,57 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim.settings._exists(s.arg0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtcore.switch_eq(9, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(11, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(12, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(32, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(160, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(65279, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = pxsim_pxtcore.switch_eq(10, s.tmp_0); + if (r0) { step = 7; continue; } + r0 = pxsim_pxtcore.switch_eq(13, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(8232, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = pxsim_pxtcore.switch_eq(8233, s.tmp_0); + if (r0) { step = 10; continue; } + r0 = s.tmp_0; + { step = 11; continue; } + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + r0 = true; + { step = 12; continue; } + case 11: + r0 = false; + { step = 12; continue; } + r0 = undefined; + case 12: return leave(s, r0) default: oops() } } } -settings_exists__P621.info = {"start":3828,"length":71,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"exists","argumentNames":["key"]} +helpers_isWhitespace__P116.info = {"start":13875,"length":674,"line":476,"column":4,"endLine":493,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} -function settings_exists__P621_mk(s) { +function helpers_isWhitespace__P116_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_exists__P621, depth: s.depth + 1, + parent: s, fn: helpers_isWhitespace__P116, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -60188,7 +61112,7 @@ function settings_exists__P621_mk(s) { -function createSokoban__P16405(s) { +function tileworld_readImages__P8706(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60198,438 +61122,266 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.images___8711 = undefined; + s.i___8713 = undefined; + s.buf___8718 = undefined; + s.img___8729 = 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; } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "VersionS"); - s.tmp_1 = r0; - r0 = pxsim.settings._exists(s.tmp_1); + r0 = pxsim_Array__mk(); + s.images___8711 = (r0); + s.i___8713 = (0); + case 1: + r0 = (s.i___8713 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_3 = settings_writeString__P612_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 6: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "VersionS"); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = "4.0.0"; - s.callLocIdx = 1648; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WBackM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17839; - s.callLocIdx = 1649; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { + if (!r0) { step = 8; continue; } + s.tmp_1 = tileworld_settingsReadBuffer__P8685_mk(s); + s.tmp_1.arg0 = s.arg1; + if ((s.arg2) && (s.arg2).vtable) { setupResume(s, 10); - pxsim_String__stringConv(s.arg0); + pxsim_String__stringConv(s.arg2); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } + } else { s.retval = (s.arg2) + ""; } case 10: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17847; - s.callLocIdx = 1650; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_numops.toString(s.i___8713); + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 11); + pxsim_String__stringConv(s.tmp_4); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1651; s.pc = 11; return s.tmp_0; + } else { s.retval = (s.tmp_4) + ""; } case 11: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17861; - s.callLocIdx = 1652; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17869; - s.callLocIdx = 1653; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - 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_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17877; - s.callLocIdx = 1654; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 20: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17885; - s.callLocIdx = 1655; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 22: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1656; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17899; - s.callLocIdx = 1657; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 26: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17907; - s.callLocIdx = 1658; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 28: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17915; - s.callLocIdx = 1659; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 30: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17923; - s.callLocIdx = 1660; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 32); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 32: + s.tmp_3 = r0; + r0 = pxsim_String__concat(s.tmp_2, s.tmp_3); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.arg3; + s.callLocIdx = 238; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; + s.buf___8718 = (r0); + s.tmp_0 = r0 = s.buf___8718; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + r0 = pxsim.BufferMethods.length(s.buf___8718); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HelpN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1661; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 34: + 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; } + s.tmp_3 = tileworld_bufferToImage__P3543_mk(s); + s.tmp_3.arg0 = s.buf___8718; + s.callLocIdx = 239; s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; + { step = 5; continue; } + case 4: + r0 = null; + case 5: + // jmp value (already in r0) + s.tmp_4 = r0; + s.img___8729 = (s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.img___8729); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HighN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 1662; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 36: - r0 = s.retval; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = pxsim.image.create(16, 16); + s.img___8729 = (r0); + s.tmp_0 = r0 = s.img___8729; + r0 = (1 + s.i___8713); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17944; - s.callLocIdx = 1663; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); + r0 = pxsim_ImageMethods.fill(s.tmp_0, s.tmp_1); + case 6: + case 7: + r0 = pxsim_Array__push(s.images___8711, s.img___8729); + r0 = (s.i___8713 + 1); + s.i___8713 = (r0); + { step = 1; continue; } + case 8: + r0 = s.images___8711; + return leave(s, r0) + default: oops() +} } } +tileworld_readImages__P8706.info = {"start":9562,"length":442,"line":262,"column":4,"endLine":271,"endColumn":5,"fileName":"project.ts","functionName":"readImages","argumentNames":["cnt","prefix","key","output"]} + +function tileworld_readImages__P8706_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_readImages__P8706, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + images___8711: undefined, + i___8713: undefined, + buf___8718: undefined, + img___8729: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function tileworld_settingsReadNumber__P8621(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.val___8625 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + s.tmp_0 = settings_readNumber__P1830_mk(s); if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 38); + setupResume(s, 4); pxsim_String__stringConv(s.arg0); checkResumeConsumed(); return; } else { s.retval = (s.arg0) + ""; } - case 38: + case 4: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17952; - s.callLocIdx = 1664; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.arg0); + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 5); + pxsim_String__stringConv(s.arg1); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 40: + } else { s.retval = (s.arg1) + ""; } + case 5: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17960; - s.callLocIdx = 1665; s.pc = 39; return s.tmp_0; - case 39: + s.callLocIdx = 232; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.arg0); + s.val___8625 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + s.tmp_0 = console_log__P366_mk(s); + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.arg1); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 42: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17968; - s.callLocIdx = 1666; s.pc = 41; return s.tmp_0; - case 41: + } else { s.retval = (s.arg1) + ""; } + case 7: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.arg0); + s.tmp_7 = r0; + r0 = pxsim_String__concat("settings.writeNumber(prefix+\"", s.tmp_7); + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.tmp_6); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17976; - s.callLocIdx = 1667; s.pc = 43; return s.tmp_0; - case 43: + } else { s.retval = (s.tmp_6) + ""; } + case 8: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.arg0); + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_5, "\","); + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 9); + pxsim_String__stringConv(s.tmp_4); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17984; - s.callLocIdx = 1668; s.pc = 45; return s.tmp_0; - case 45: + } else { s.retval = (s.tmp_4) + ""; } + case 9: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.arg0); + s.tmp_3 = r0; + r0 = pxsim_numops.toString(s.val___8625); + s.tmp_9 = r0; + if ((s.tmp_9) && (s.tmp_9).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.tmp_9); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 48: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17992; - s.callLocIdx = 1669; s.pc = 47; return s.tmp_0; - case 47: + } else { s.retval = (s.tmp_9) + ""; } + case 10: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 50); - pxsim_String__stringConv(s.arg0); + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_8); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 11); + pxsim_String__stringConv(s.tmp_2); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 50: + } else { s.retval = (s.tmp_2) + ""; } + case 11: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); + r0 = pxsim_String__concat(s.tmp_1, ");"); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1670; s.pc = 49; return s.tmp_0; - case 49: + s.callLocIdx = 233; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - case 3: - r0 = undefined; + case 1: + case 2: + r0 = s.val___8625; return leave(s, r0) default: oops() } } } -createSokoban__P16405.info = {"start":28590,"length":3571,"line":669,"column":0,"endLine":747,"endColumn":1,"fileName":"games.ts","functionName":"createSokoban","argumentNames":["prefix"]} +tileworld_settingsReadNumber__P8621.info = {"start":8445,"length":249,"line":232,"column":4,"endLine":236,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadNumber","argumentNames":["prefix","key","output"]} -function createSokoban__P16405_mk(s) { +function tileworld_settingsReadNumber__P8621_mk(s) { checkStack(s.depth); return { - parent: s, fn: createSokoban__P16405, depth: s.depth + 1, + parent: s, fn: tileworld_settingsReadNumber__P8621, depth: s.depth + 1, pc: 0, retval: undefined, 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, + val___8625: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -const _hex17839 = pxsim.BufferMethods.createBufferFromHex("2018118041b011101210123110e13011302110e120311011121110e1204112111210e12021124110e170121110e1105140e110f18110f18110f18110f18120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0") -const _hex17847 = pxsim.BufferMethods.createBufferFromHex("2018ffff11ff4f10ff8f113f13ff5f211f11ff8f11ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf") -const _hex17861 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") -const _hex17869 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") -const _hex17877 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f176c4f3c1f375c7f573c8f572c8f2c375f1c4f4c175f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") -const _hex17885 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") -const _hex17899 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") -const _hex17907 = pxsim.BufferMethods.createBufferFromHex("1010f020ee20ee202e844e202e745e202e643e142e202e543e242e202e443e342e202e343e442e202e243e542e202e143e642e205e742e205e742e20ee20eef020") -const _hex17915 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50") -const _hex17923 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") -const _hex17944 = pxsim.BufferMethods.createBufferFromHex("2026220001162314cc060002") -const _hex17952 = pxsim.BufferMethods.createBufferFromHex("2026220001162300441600020002") -const _hex17960 = pxsim.BufferMethods.createBufferFromHex("322622004413320144060004") -const _hex17968 = pxsim.BufferMethods.createBufferFromHex("322622000113320044060004") -const _hex17976 = pxsim.BufferMethods.createBufferFromHex("61102220042603000203") -const _hex17984 = pxsim.BufferMethods.createBufferFromHex("61102208402603000201") -const _hex17992 = pxsim.BufferMethods.createBufferFromHex("6310220004160400") -function createSpaceInvaders__P16403(s) { +function settings_readNumber__P1830(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -60639,471 +61391,931 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.buf___26981 = undefined; + s.nums___26988 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "VersionS"); + r0 = pxsim.settings._get(s.arg0); + s.buf___26981 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___26981); s.tmp_1 = r0; - r0 = pxsim.settings._exists(s.tmp_1); + 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; } + r0 = undefined; + { step = 7; continue; } + { step = 6; continue; } case 1: - case 2: - s.tmp_3 = settings_writeString__P612_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 6: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "VersionS"); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = "4.0.0"; - s.callLocIdx = 1620; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } + s.tmp_2 = msgpack_unpackNumberArray__P173_mk(s); + s.tmp_2.arg0 = s.buf___26981; + s.tmp_2.arg1 = 0; + s.callLocIdx = 137; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; + s.nums___26988 = (r0); + s.tmp_0 = r0 = s.nums___26988; + 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___26988); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WBackM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17627; - s.callLocIdx = 1621; s.pc = 7; return s.tmp_0; + r0 = (s.tmp_1 >= 1); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.nums___26988, 0); + { step = 7; continue; } + case 4: + case 5: + r0 = undefined; + { step = 7; continue; } + case 6: + r0 = undefined; case 7: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17635; - s.callLocIdx = 1622; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } + return leave(s, r0) + default: oops() +} } } +settings_readNumber__P1830.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__P1830_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readNumber__P1830, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + buf___26981: undefined, + nums___26988: undefined, + arg0: undefined, +} } + + + + + +function settings_readBuffer__P1828(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._get(s.arg0); + return leave(s, r0) + default: oops() +} } } +settings_readBuffer__P1828.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__P1828_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readBuffer__P1828, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function msgpack_unpackNumberArray__P173(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.res___27001 = undefined; + s.fmt___27008 = undefined; + s.v___27017 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.res___27001 = (r0); + case 1: + s.tmp_1 = r0 = s.arg1; + r0 = pxsim.BufferMethods.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.tmp_3 = r0 = s.arg1; + r0 = (s.tmp_3 + 1); + s.arg1 = (r0); + s.tmp_4 = msgpack_tagFormat__P3901_mk(s); + r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); + s.tmp_4.arg0 = r0; + s.callLocIdx = 21; s.pc = 12; return s.tmp_4; case 12: r0 = s.retval; + s.fmt___27008 = (r0); + r0 = (s.fmt___27008 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = (s.arg1 - 1); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); + s.v___27017 = (r0); + r0 = (-31 <= s.v___27017); + 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___27017 <= 127); + case 3: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1623; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 14: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__push(s.res___27001, s.v___27017); + { step = 5; continue; } + case 4: + r0 = null; + { step = 11; continue; } + case 5: + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.res___27001; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___27008, s.arg1); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17649; - s.callLocIdx = 1624; s.pc = 13; return s.tmp_0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.tmp_0 = r0 = s.arg1; + s.tmp_2 = pins_sizeOf__P165_mk(s); + s.tmp_2.arg0 = s.fmt___27008; + s.callLocIdx = 22; s.pc = 13; return s.tmp_2; case 13: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17657; - s.callLocIdx = 1625; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - 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_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17665; - s.callLocIdx = 1626; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 20: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17673; - s.callLocIdx = 1627; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 22: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1628; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 24: - r0 = s.retval; + r0 = (s.tmp_0 + s.tmp_1); + s.arg1 = (r0); + case 7: + case 8: + r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); + r0 = (s.tmp_1 === 193); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = (s.arg1 + 1); + s.arg1 = (r0); + { step = 8; continue; } + case 9: + { step = 1; continue; } + case 10: + r0 = s.res___27001; + case 11: + return leave(s, r0) + default: oops() +} } } +msgpack_unpackNumberArray__P173.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__P173_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: msgpack_unpackNumberArray__P173, depth: s.depth + 1, + pc: 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___27001: undefined, + fmt___27008: undefined, + v___27017: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function tileworld_bufferToImage__P3543(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.width___6327 = undefined; + s.height___6332 = undefined; + s.index___6337 = undefined; + s.img___6338 = undefined; + s.x___6343 = undefined; + s.y___6344 = undefined; + s.pair___6350 = undefined; + s.pixel___6356 = undefined; + s.len___6359 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.BufferMethods.getNumber(s.arg0, 1, 0); + s.width___6327 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.arg0, 1, 1); + s.height___6332 = (r0); + s.index___6337 = (2); + r0 = pxsim.image.create(s.width___6327, s.height___6332); + s.img___6338 = (r0); + s.x___6343 = (0); + s.y___6344 = (0); + case 1: + s.tmp_1 = r0 = s.index___6337; + r0 = pxsim.BufferMethods.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_3 = r0 = s.index___6337; + r0 = (s.tmp_3 + 1); + s.index___6337 = (r0); + r0 = pxsim.BufferMethods.getUint8(s.arg0, s.tmp_3); + s.pair___6350 = (r0); + r0 = (s.pair___6350 & 15); + s.pixel___6356 = (r0); + r0 = (s.pair___6350 & 240); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 4); + s.len___6359 = (r0); + case 2: + r0 = (s.len___6359 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = pxsim_ImageMethods.setPixel(s.img___6338, s.x___6343, s.y___6344, s.pixel___6356); + s.tmp_1 = r0 = s.y___6344; + r0 = (s.height___6332 - 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 == s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.x___6343 + 1); + s.x___6343 = (r0); + s.y___6344 = (0); + { step = 4; continue; } + case 3: + r0 = (s.y___6344 + 1); + s.y___6344 = (r0); + case 4: + r0 = (s.len___6359 - 1); + s.len___6359 = (r0); + { step = 2; continue; } + case 5: + { step = 1; continue; } + case 6: + s.tmp_0 = control_assert__P319_mk(s); + s.tmp_1 = r0 = s.index___6337; + r0 = pxsim.BufferMethods.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 == s.tmp_2); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17687; - s.callLocIdx = 1629; s.pc = 23; return s.tmp_0; - case 23: + s.tmp_0.arg1 = 54; + s.callLocIdx = 71; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); + r0 = s.img___6338; + return leave(s, r0) + default: oops() +} } } +tileworld_bufferToImage__P3543.info = {"start":3843,"length":694,"line":108,"column":4,"endLine":127,"endColumn":5,"fileName":"utilities.ts","functionName":"bufferToImage","argumentNames":["buf"]} + +function tileworld_bufferToImage__P3543_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_bufferToImage__P3543, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + width___6327: undefined, + height___6332: undefined, + index___6337: undefined, + img___6338: undefined, + x___6343: undefined, + y___6344: undefined, + pair___6350: undefined, + pixel___6356: undefined, + len___6359: undefined, + arg0: undefined, +} } + + + + + +function tileworld_settingsReadBuffer__P8685(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.buf___8689 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 26); + setupResume(s, 3); pxsim_String__stringConv(s.arg0); checkResumeConsumed(); return; } else { s.retval = (s.arg0) + ""; } - case 26: + case 3: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17695; - s.callLocIdx = 1630; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.arg0); + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 4); + pxsim_String__stringConv(s.arg1); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 28: + } else { s.retval = (s.arg1) + ""; } + case 4: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17703; - s.callLocIdx = 1631; s.pc = 27; return s.tmp_0; - case 27: + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.settings._get(s.tmp_0); + s.buf___8689 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + s.tmp_0 = tileworld_outputKeyBuffer__P8551_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.buf___8689; + s.callLocIdx = 237; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.arg0); + case 1: + case 2: + r0 = s.buf___8689; + return leave(s, r0) + default: oops() +} } } +tileworld_settingsReadBuffer__P8685.info = {"start":8955,"length":207,"line":244,"column":4,"endLine":248,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadBuffer","argumentNames":["prefix","key","output"]} + +function tileworld_settingsReadBuffer__P8685_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_settingsReadBuffer__P8685, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + buf___8689: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tileworld_outputKeyBuffer__P8551(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.chunk___8574 = undefined; + s.str___8575 = undefined; + s.i___8576 = undefined; + s.byte___8582 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + s.tmp_0 = console_log__P366_mk(s); + r0 = pxsim.BufferMethods.length(s.arg2); + s.tmp_3 = r0; + r0 = pxsim_numops.toString(s.tmp_3); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 6); + pxsim_String__stringConv(s.tmp_2); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 30: + } else { s.retval = (s.tmp_2) + ""; } + case 6: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); + r0 = pxsim_String__concat("// buffer length = ", s.tmp_1); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17711; - s.callLocIdx = 1632; s.pc = 29; return s.tmp_0; - case 29: + s.callLocIdx = 228; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 32); - pxsim_String__stringConv(s.arg0); + s.tmp_0 = console_log__P366_mk(s); + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.arg1); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HelpN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1633; s.pc = 31; return s.tmp_0; - case 31: + } else { s.retval = (s.arg1) + ""; } + case 8: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.arg0); + s.tmp_3 = r0; + r0 = pxsim_String__concat("settings.writeBuffer(prefix+\"", s.tmp_3); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 9); + pxsim_String__stringConv(s.tmp_2); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 34: + } else { s.retval = (s.tmp_2) + ""; } + case 9: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HighN"); + r0 = pxsim_String__concat(s.tmp_1, "\", hex`"); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.callLocIdx = 1634; s.pc = 33; return s.tmp_0; - case 33: + s.callLocIdx = 229; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.arg0); + s.chunk___8574 = (40); + r0 = pxsim_String_.mkEmpty(); + s.str___8575 = (r0); + s.i___8576 = (0); + case 1: + s.tmp_1 = r0 = s.i___8576; + r0 = pxsim.BufferMethods.length(s.arg2); + 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.BufferMethods.getUint8(s.arg2, s.i___8576); + s.byte___8582 = (r0); + if ((s.str___8575) && (s.str___8575).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.str___8575); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 36: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17732; - s.callLocIdx = 1635; s.pc = 35; return s.tmp_0; - case 35: + } else { s.retval = (s.str___8575) + ""; } + case 10: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 38); - pxsim_String__stringConv(s.arg0); + s.tmp_0 = r0; + s.tmp_5 = r0 = globals.toHex___8549; + r0 = (s.byte___8582 & 240); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> 4); + s.tmp_6 = r0; + r0 = pxsim_String_.charAt(s.tmp_5, s.tmp_6); + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 11); + pxsim_String__stringConv(s.tmp_4); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17740; - s.callLocIdx = 1636; s.pc = 37; return s.tmp_0; - case 37: + } else { s.retval = (s.tmp_4) + ""; } + case 11: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.arg0); + s.tmp_3 = r0; + s.tmp_10 = r0 = globals.toHex___8549; + r0 = (s.byte___8582 & 15); + s.tmp_11 = r0; + r0 = pxsim_String_.charAt(s.tmp_10, s.tmp_11); + s.tmp_9 = r0; + if ((s.tmp_9) && (s.tmp_9).vtable) { + setupResume(s, 12); + pxsim_String__stringConv(s.tmp_9); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 40: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17748; - s.callLocIdx = 1637; s.pc = 39; return s.tmp_0; - case 39: + } else { s.retval = (s.tmp_9) + ""; } + case 12: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.arg0); + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_8); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 13); + pxsim_String__stringConv(s.tmp_2); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 42: + } else { s.retval = (s.tmp_2) + ""; } + case 13: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17756; - s.callLocIdx = 1638; s.pc = 41; return s.tmp_0; - case 41: + r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); + s.str___8575 = (r0); + r0 = (s.chunk___8574 - 1); + s.chunk___8574 = (r0); + r0 = (s.chunk___8574 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = console_log__P366_mk(s); + s.tmp_1.arg0 = s.str___8575; + s.callLocIdx = 230; s.pc = 14; return s.tmp_1; + case 14: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.arg0); + s.chunk___8574 = (40); + r0 = pxsim_String_.mkEmpty(); + s.str___8575 = (r0); + case 2: + case 3: + r0 = (s.i___8576 + 1); + s.i___8576 = (r0); + { step = 1; continue; } + case 4: + s.tmp_0 = console_log__P366_mk(s); + if ((s.str___8575) && (s.str___8575).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.str___8575); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 44: + } else { s.retval = (s.str___8575) + ""; } + case 16: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); + r0 = pxsim_String__concat(s.tmp_1, "`);"); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17764; - s.callLocIdx = 1639; s.pc = 43; return s.tmp_0; - case 43: + s.callLocIdx = 231; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_outputKeyBuffer__P8551.info = {"start":7861,"length":578,"line":217,"column":4,"endLine":230,"endColumn":5,"fileName":"project.ts","functionName":"outputKeyBuffer","argumentNames":["prefix","key","val"]} + +function tileworld_outputKeyBuffer__P8551_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_outputKeyBuffer__P8551, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + chunk___8574: undefined, + str___8575: undefined, + i___8576: undefined, + byte___8582: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tileworld_settingsReadString__P8654(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.val___8658 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + s.tmp_0 = settings_readString__P1829_mk(s); if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 46); + setupResume(s, 4); pxsim_String__stringConv(s.arg0); checkResumeConsumed(); return; } else { s.retval = (s.arg0) + ""; } - case 46: + case 4: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17772; - s.callLocIdx = 1640; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.arg0); + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 5); + pxsim_String__stringConv(s.arg1); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 48: + } else { s.retval = (s.arg1) + ""; } + case 5: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17780; - s.callLocIdx = 1641; s.pc = 47; return s.tmp_0; - case 47: + s.callLocIdx = 234; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 50); - pxsim_String__stringConv(s.arg0); + s.val___8658 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + s.tmp_0 = console_log__P366_mk(s); + if ((s.arg1) && (s.arg1).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.arg1); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 50: + } else { s.retval = (s.arg1) + ""; } + case 7: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17788; - s.callLocIdx = 1642; s.pc = 49; return s.tmp_0; - case 49: + s.tmp_7 = r0; + r0 = pxsim_String__concat("settings.writeString(prefix+\"", s.tmp_7); + s.tmp_6 = r0; + if ((s.tmp_6) && (s.tmp_6).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(s.tmp_6); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_6) + ""; } + case 8: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 52); - pxsim_String__stringConv(s.arg0); + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_5, "\",\""); + s.tmp_4 = r0; + if ((s.tmp_4) && (s.tmp_4).vtable) { + setupResume(s, 9); + pxsim_String__stringConv(s.tmp_4); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 52: + } else { s.retval = (s.tmp_4) + ""; } + case 9: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB8"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17796; - s.callLocIdx = 1643; s.pc = 51; return s.tmp_0; - case 51: + s.tmp_3 = r0; + if ((s.val___8658) && (s.val___8658).vtable) { + setupResume(s, 10); + pxsim_String__stringConv(s.val___8658); + checkResumeConsumed(); + return; + } else { s.retval = (s.val___8658) + ""; } + case 10: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 54); - pxsim_String__stringConv(s.arg0); + s.tmp_8 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_8); + s.tmp_2 = r0; + if ((s.tmp_2) && (s.tmp_2).vtable) { + setupResume(s, 11); + pxsim_String__stringConv(s.tmp_2); checkResumeConsumed(); return; - } else { s.retval = (s.arg0) + ""; } - case 54: + } else { s.retval = (s.tmp_2) + ""; } + case 11: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); + r0 = pxsim_String__concat(s.tmp_1, "\");"); s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17804; - s.callLocIdx = 1644; s.pc = 53; return s.tmp_0; - case 53: + s.callLocIdx = 235; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 56); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 56: + case 1: + case 2: + r0 = s.val___8658; + return leave(s, r0) + default: oops() +} } } +tileworld_settingsReadString__P8654.info = {"start":8700,"length":249,"line":238,"column":4,"endLine":242,"endColumn":5,"fileName":"project.ts","functionName":"settingsReadString","argumentNames":["prefix","key","output"]} + +function tileworld_settingsReadString__P8654_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_settingsReadString__P8654, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + val___8658: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function settings_readString__P1829(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.buf___26970 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._get(s.arg0); + s.buf___26970 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___26970); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = pxsim.BufferMethods.toString(s.buf___26970); + { step = 3; continue; } + case 2: + r0 = undefined; + case 3: + return leave(s, r0) + default: oops() +} } } +settings_readString__P1829.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__P1829_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readString__P1829, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + buf___26970: undefined, + arg0: undefined, +} } + + + + + +function tileworld_RuleVisualsBase_row__P12695(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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + s.tmp_2 = Sprite_y__P2024_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 682; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17812; - s.callLocIdx = 1645; s.pc = 55; return s.tmp_0; - case 55: + r0 = (s.tmp_1 - 6); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 4); + { step = 2; continue; } + case 1: + s.tmp_5 = Sprite_y__P2024_mk(s); + r0 = s.arg0.fields["tileSaved"]; + s.tmp_5.arg0 = r0; + s.callLocIdx = 683; s.pc = 4; return s.tmp_5; + case 4: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 58); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 58: + s.tmp_4 = r0; + r0 = (s.tmp_4 - 6); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 4); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = s.tmp_6; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleVisualsBase_row__P12695.info = {"start":4214,"length":135,"line":108,"column":8,"endLine":110,"endColumn":9,"fileName":"rulesBase.ts","functionName":"row","argumentNames":["this","curr"]} + +function tileworld_RuleVisualsBase_row__P12695_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleVisualsBase_row__P12695, depth: s.depth + 1, + pc: 0, retval: undefined, 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 tileworld_RuleVisualsBase_col__P12694(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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + s.tmp_1 = Sprite_x__P2022_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 680; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1646; s.pc = 57; return s.tmp_0; - case 57: + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 4); + { step = 2; continue; } + case 1: + s.tmp_3 = Sprite_x__P2022_mk(s); + r0 = s.arg0.fields["tileSaved"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 681; s.pc = 4; return s.tmp_3; + case 4: r0 = s.retval; - case 3: - r0 = undefined; + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 4); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -createSpaceInvaders__P16403.info = {"start":24904,"length":3682,"line":581,"column":0,"endLine":667,"endColumn":1,"fileName":"games.ts","functionName":"createSpaceInvaders","argumentNames":["prefix"]} +tileworld_RuleVisualsBase_col__P12694.info = {"start":4087,"length":117,"line":104,"column":8,"endLine":106,"endColumn":9,"fileName":"rulesBase.ts","functionName":"col","argumentNames":["this","curr"]} -function createSpaceInvaders__P16403_mk(s) { +function tileworld_RuleVisualsBase_col__P12694_mk(s) { checkStack(s.depth); return { - parent: s, fn: createSpaceInvaders__P16403, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_col__P12694, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -61111,34 +62323,14 @@ function createSpaceInvaders__P16403_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -const _hex17627 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17120f17120f17120f17120f17120f17190f190f120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0") -const _hex17635 = pxsim.BufferMethods.createBufferFromHex("2018ffaf12ffffff2f12ffffff2f124f10ffffcf12ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffdf") -const _hex17649 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") -const _hex17657 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") -const _hex17665 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") -const _hex17673 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") -const _hex17687 = pxsim.BufferMethods.createBufferFromHex("1010c02cd03cc04cc01f3cb01e1f3ca01c1e1f1e2c802e1c121c3e702e121c121c122e7012241e121e32803e141e32a02e1f32b01e1f2412c01e2214c02e22d03ee02e20") -const _hex17695 = pxsim.BufferMethods.createBufferFromHex("1010f0f0707f801f751f601f951f501f353f351f501f251f301f251f501f251f301f251f501f251f301f251f501f251f301f251f501f353f351f501f951f601f751f807ff0f060") -const _hex17703 = pxsim.BufferMethods.createBufferFromHex("1010f0c01c111b605f101f111b1f402f3d1b1c2f211b301f1b313d1b1f111b1f301f411d1b1c112c111f201f612f111d1b1f301f611d211b1f401f611d311b401f612f111b2f401f411d1b1c111d1c111b301f1b313d1b1f111b1f402f3d1b1c2f211b605f101f111b1fc01f1c111bf030") -const _hex17711 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0b0153015a01514151015141580151410141514101415701430143014f0f0f0f0f0f0a0") -const _hex17732 = pxsim.BufferMethods.createBufferFromHex("202122000116230300060002") -const _hex17740 = pxsim.BufferMethods.createBufferFromHex("10102200012602030001") -const _hex17748 = pxsim.BufferMethods.createBufferFromHex("1110220040110001") -const _hex17756 = pxsim.BufferMethods.createBufferFromHex("122022004011120100060300") -const _hex17764 = pxsim.BufferMethods.createBufferFromHex("4110220010140002") -const _hex17772 = pxsim.BufferMethods.createBufferFromHex("212122001012230100060003") -const _hex17780 = pxsim.BufferMethods.createBufferFromHex("212122001013230100060000") -const _hex17788 = pxsim.BufferMethods.createBufferFromHex("312022001010210400060000") -const _hex17796 = pxsim.BufferMethods.createBufferFromHex("022122001010210001060401") -const _hex17804 = pxsim.BufferMethods.createBufferFromHex("122022004001120010160300") -const _hex17812 = pxsim.BufferMethods.createBufferFromHex("6110220090160300") -function createHelloWorld__P16401(s) { +function controller_Button_onEvent__P1907(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -61150,436 +62342,449 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + s.tmp_0 = control_onEvent__P377_mk(s); + s.tmp_0.arg0 = s.arg1; + r0 = s.arg0.fields["id"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 16; + s.callLocIdx = 152; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "VersionS"); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Button_onEvent__P1907.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__P1907_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_onEvent__P1907, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function controller_setRepeatDefault__P1913(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; + } + globals.defaultRepeatDelay___4108 = (s.arg0); + globals.defaultRepeatInterval___4110 = (s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_setRepeatDefault__P1913.info = {"start":6423,"length":151,"line":200,"column":4,"endLine":203,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"setRepeatDefault","argumentNames":["delay","interval"]} + +function controller_setRepeatDefault__P1913_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_setRepeatDefault__P1913, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function tileworld_RuleVisualsBase_constructor__P3785(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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + r0 = (s.arg0).fields["p"] = (s.arg1); + s.tmp_0 = tileworld_BackgroundBase_constructor__P3783_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 635; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.create(10, 7); s.tmp_1 = r0; - r0 = pxsim.settings._exists(s.tmp_1); + r0 = (s.tmp_0).fields["ruleTypeMap"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.create(10, 7); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["dirMap"] = (s.tmp_1); + r0 = s.arg0.fields["ruleTypeMap"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: + r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); + r0 = s.arg0.fields["dirMap"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.cursorIn___3723; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 636; s.pc = 2; return s.tmp_2; case 2: - s.tmp_3 = settings_writeString__P612_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 6: r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "VersionS"); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = "4.0.0"; - s.callLocIdx = 1672; s.pc = 5; return s.tmp_3; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["cursor"] = (s.tmp_1); + s.tmp_0 = Sprite_x__P2023_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 24; + s.callLocIdx = 637; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 46; + s.callLocIdx = 638; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = tileworld_cursorAnimation__P3538_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.cursorOut___3724; + s.callLocIdx = 639; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 8: + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.cursorIn___3723; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 640; s.pc = 6; return s.tmp_2; + case 6: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WBackM"); + r0 = (s.tmp_0).fields["helpCursor"] = (s.tmp_1); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["helpCursor"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18019; - s.callLocIdx = 1673; s.pc = 7; return s.tmp_0; + s.tmp_0.arg1 = 128; + s.tmp_0.arg2 = true; + s.callLocIdx = 641; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 10: + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = sprites_create__P1971_mk(s); + s.tmp_2.arg0 = globals.cursorOut___3724; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 642; s.pc = 8; return s.tmp_2; + case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); + r0 = (s.tmp_0).fields["tileSaved"] = (s.tmp_1); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["tileSaved"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18027; - s.callLocIdx = 1674; s.pc = 9; return s.tmp_0; + s.tmp_0.arg1 = 128; + s.tmp_0.arg2 = true; + s.callLocIdx = 643; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 12: + r0 = pxsim_pxtcore_mkAction(1, inline__P12766); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 645; s.pc = 10; return s.tmp_1; + case 10: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1675; s.pc = 11; return s.tmp_0; + r0 = pxsim_pxtcore_mkAction(1, inline__P12772); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; + s.tmp_1.arg1 = 2054; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 647; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 14: + r0 = pxsim_pxtcore_mkAction(1, inline__P12778); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; + s.tmp_1.arg1 = 2048; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 648; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18041; - s.callLocIdx = 1676; s.pc = 13; return s.tmp_0; + r0 = pxsim_pxtcore_mkAction(1, inline__P12787); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 650; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 16: + r0 = pxsim_pxtcore_mkAction(1, inline__P12793); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; + s.tmp_1.arg1 = 2054; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 652; s.pc = 14; return s.tmp_1; + case 14: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18049; - s.callLocIdx = 1677; s.pc = 15; return s.tmp_0; + r0 = pxsim_pxtcore_mkAction(1, inline__P12799); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; + s.tmp_1.arg1 = 2048; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 653; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 18: + r0 = pxsim_pxtcore_mkAction(1, inline__P12808); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 655; s.pc = 16; return s.tmp_1; + case 16: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18057; - s.callLocIdx = 1678; s.pc = 17; return s.tmp_0; + r0 = pxsim_pxtcore_mkAction(1, inline__P12813); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; + s.tmp_1.arg1 = 2054; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 657; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 20: + r0 = pxsim_pxtcore_mkAction(1, inline__P12818); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; + s.tmp_1.arg1 = 2048; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 658; s.pc = 18; return s.tmp_1; + case 18: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18065; - s.callLocIdx = 1679; s.pc = 19; return s.tmp_0; + r0 = pxsim_pxtcore_mkAction(1, inline__P12827); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; + s.tmp_1.arg1 = 2049; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 660; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 22: + r0 = pxsim_pxtcore_mkAction(1, inline__P12832); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; + s.tmp_1.arg1 = 2054; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 662; s.pc = 20; return s.tmp_1; + case 20: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1680; s.pc = 21; return s.tmp_0; + r0 = pxsim_pxtcore_mkAction(1, inline__P12837); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; + s.tmp_1.arg1 = 2048; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 663; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18079; - s.callLocIdx = 1681; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 26: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18087; - s.callLocIdx = 1682; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 28: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18095; - s.callLocIdx = 1683; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 30: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18103; - s.callLocIdx = 1684; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 32); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HelpN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 1; - s.callLocIdx = 1685; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 34: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HighN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 10; - s.callLocIdx = 1686; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 36: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18123; - s.callLocIdx = 1687; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 38); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18131; - s.callLocIdx = 1688; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 40: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18139; - s.callLocIdx = 1689; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 42: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18147; - s.callLocIdx = 1690; s.pc = 41; return s.tmp_0; - case 41: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18155; - s.callLocIdx = 1691; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18163; - s.callLocIdx = 1692; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 48: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleVisualsBase_constructor__P3785.info = {"start":650,"length":2272,"line":24,"column":8,"endLine":66,"endColumn":9,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":["this","p"]} + +function tileworld_RuleVisualsBase_constructor__P3785_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleVisualsBase_constructor__P3785, 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 inline__P12766(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 = tileworld_RuleVisualsBase_moveInX__P12687_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = 0; + s.callLocIdx = 644; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex18171; - s.callLocIdx = 1693; s.pc = 47; return s.tmp_0; - case 47: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12766.info = {"start":1393,"length":38,"line":42,"column":67,"endLine":42,"endColumn":105,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12766_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12766, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P12772(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 = tileworld_RuleVisualsBase_moveInX__P12687_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = 0; + s.callLocIdx = 646; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 50); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 50: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12772.info = {"start":1503,"length":38,"line":43,"column":68,"endLine":43,"endColumn":106,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12772_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12772, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P12778(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_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s); + s.tmp_3.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; + s.pc = 4; return s.tmp_3; + case 4: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1694; s.pc = 49; return s.tmp_0; - case 49: + 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_4 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = 0; + s.tmp_4.arg2 = false; + if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove; + s.pc = 5; return s.tmp_4; + case 5: r0 = s.retval; case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -createHelloWorld__P16401.info = {"start":32165,"length":3648,"line":749,"column":0,"endLine":825,"endColumn":1,"fileName":"games.ts","functionName":"createHelloWorld","argumentNames":["prefix"]} +inline__P12778.info = {"start":1612,"length":127,"line":44,"column":68,"endLine":47,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} -function createHelloWorld__P16401_mk(s) { +function inline__P12778_mk(s) { checkStack(s.depth); return { - parent: s, fn: createHelloWorld__P16401, depth: s.depth + 1, + parent: s, fn: inline__P12778, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - arg0: undefined, } } -const _hex18019 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17150f141202110f1412021102150c1207110e1207110e120f17120f171204110f121204110f1212041103110d12011403110d12011106110d1201110f15120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0") -const _hex18027 = pxsim.BufferMethods.createBufferFromHex("2018ffaf10ffdf11ffffffffffff11ff8f123f12ffffffffffffffffffffffffffff4f1112ffffffffffffffffffffffffffffffffffffffffffffffffff3f") -const _hex18041 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") -const _hex18049 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") -const _hex18057 = pxsim.BufferMethods.createBufferFromHex("1010bd21ed217d1bcd21ed21fd6d1bfd5d11fdfd8d2bed2bfdfd8d1b4d1bfded1bfd1d") -const _hex18065 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") -const _hex18079 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") -const _hex18087 = pxsim.BufferMethods.createBufferFromHex("1010506c802c7e12501cae12404e523e12204e821e12203ea21e12104e921e121e4c92141e1c27161c92141e272ea2141e101e121e247214121e101e22251462141e301e121415145214121e301e7224121e502e622e806e50") -const _hex18095 = pxsim.BufferMethods.createBufferFromHex("1010a02c2fb01c16372c801c272c16111c701c1627161c1f2c701c37361f1c701c37361f1c701c37161c1f111c701c372c162c404c16671c302c361c57161c301c27262c16371f1c201c37462c2f161c201c273c761c201c171c201c661c301c161c302c461c302c505c20") -const _hex18103 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") -const _hex18123 = pxsim.BufferMethods.createBufferFromHex("202622000116230400060002") -const _hex18131 = pxsim.BufferMethods.createBufferFromHex("201022000106") -const _hex18139 = pxsim.BufferMethods.createBufferFromHex("201022000106") -const _hex18147 = pxsim.BufferMethods.createBufferFromHex("201022000106") -const _hex18155 = pxsim.BufferMethods.createBufferFromHex("401022000106") -const _hex18163 = pxsim.BufferMethods.createBufferFromHex("2226220001022300042603000402") -const _hex18171 = pxsim.BufferMethods.createBufferFromHex("222022000102230010160401") -function createLeftHandRule__P16399(s) { +function inline__P12787(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -61589,421 +62794,190 @@ 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; - } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } + s.tmp_0 = tileworld_RuleVisualsBase_moveInX__P12687_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = 2; + s.callLocIdx = 649; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12787.info = {"start":1810,"length":39,"line":48,"column":68,"endLine":48,"endColumn":107,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12787_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12787, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P12793(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 = tileworld_RuleVisualsBase_moveInX__P12687_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = 2; + s.callLocIdx = 651; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12793.info = {"start":1921,"length":39,"line":49,"column":69,"endLine":49,"endColumn":108,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12793_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12793, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P12799(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_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s); + s.tmp_3.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; + s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "VersionS"); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim.settings._exists(s.tmp_1); + 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_3 = settings_writeString__P612_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 6: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "VersionS"); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = "4.0.0"; - s.callLocIdx = 1567; s.pc = 5; return s.tmp_3; + s.tmp_4 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = 2; + s.tmp_4.arg2 = false; + if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove; + s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WBackM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17072; - s.callLocIdx = 1568; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17080; - s.callLocIdx = 1569; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1570; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17094; - s.callLocIdx = 1571; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17102; - s.callLocIdx = 1572; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - 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_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17110; - s.callLocIdx = 1573; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 20: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17118; - s.callLocIdx = 1574; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 22: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1575; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17132; - s.callLocIdx = 1576; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 26: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17140; - s.callLocIdx = 1577; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 28: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17148; - s.callLocIdx = 1578; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 30: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17156; - s.callLocIdx = 1579; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 32); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HelpN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1580; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 34: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HighN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 30; - s.callLocIdx = 1581; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 36: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17176; - s.callLocIdx = 1582; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 38); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17184; - s.callLocIdx = 1583; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 40: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17192; - s.callLocIdx = 1584; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 42: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17200; - s.callLocIdx = 1585; s.pc = 41; return s.tmp_0; - case 41: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17208; - s.callLocIdx = 1586; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17216; - s.callLocIdx = 1587; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 48: + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12799.info = {"start":2032,"length":128,"line":50,"column":69,"endLine":53,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12799_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12799, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, +} } + + + + + +function inline__P12808(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 = tileworld_RuleVisualsBase_moveUp__P12688_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 654; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1588; s.pc = 47; return s.tmp_0; - case 47: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12808.info = {"start":2228,"length":19,"line":54,"column":65,"endLine":54,"endColumn":84,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12808_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12808, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P12813(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 = tileworld_RuleVisualsBase_moveUp__P12688_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 656; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -createLeftHandRule__P16399.info = {"start":12762,"length":3714,"line":293,"column":0,"endLine":370,"endColumn":1,"fileName":"games.ts","functionName":"createLeftHandRule","argumentNames":["prefix"]} +inline__P12813.info = {"start":2316,"length":19,"line":55,"column":66,"endLine":55,"endColumn":85,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} -function createLeftHandRule__P16399_mk(s) { +function inline__P12813_mk(s) { checkStack(s.depth); return { - parent: s, fn: createLeftHandRule__P16399, depth: s.depth + 1, + parent: s, fn: inline__P12813, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, } } -const _hex17072 = pxsim.BufferMethods.createBufferFromHex("2018f0a0e1107120116011707120111041101110511071201110112011101150111071201110211011101110113011107120114011104120111071206110112011201110719011201120111071201110711011201110712011401140112011107120411011104120111071201120111011201140111071201120111021101110112011107120112011401110112011107120112041101110411071201120114011401110712011201110911071201120111011701110712011201110211041101110712011201110112011201110111071201170114011107120e11071f020f1f11120f17120f17120f17120f17120f17120f171f0a0") -const _hex17080 = pxsim.BufferMethods.createBufferFromHex("2018ffff8f10ffffffffffaf11ffffffffffffcf11ffff8f21ffffffaf11ff8f11ff4f11ffffffffffffffdf115f11ffffbf11ffffffffffffffffffffffffffffff8f") -const _hex17094 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") -const _hex17102 = pxsim.BufferMethods.createBufferFromHex("101015f7f71715471637155715472516e72516b725f725f71725d7251647158715165725d7151715c725167715571516f7f7f75725") -const _hex17110 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") -const _hex17118 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") -const _hex17132 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") -const _hex17140 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") -const _hex17148 = pxsim.BufferMethods.createBufferFromHex("1010f0c01c111b605f101f111b1f402f3d1b1c2f211b301f1b313d1b1f111b1f301f411d1b1c112c111f201f612f111d1b1f301f611d211b1f401f611d311b401f612f111b2f401f411d1b1c111d1c111b301f1b313d1b1f111b1f402f3d1b1c2f211b605f101f111b1fc01f1c111bf030") -const _hex17156 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0f0b0153015a01514151015141580151410141514101415701430143014f0f0f0f0f0f0a0") -const _hex17176 = pxsim.BufferMethods.createBufferFromHex("412022000114120400060001") -const _hex17184 = pxsim.BufferMethods.createBufferFromHex("41362200011121010006120400060001") -const _hex17192 = pxsim.BufferMethods.createBufferFromHex("11362200011131010006210400060000") -const _hex17200 = pxsim.BufferMethods.createBufferFromHex("1146220001111201000621010006230400060002") -const _hex17208 = pxsim.BufferMethods.createBufferFromHex("1146220001112101000612010006230100060003") -const _hex17216 = pxsim.BufferMethods.createBufferFromHex("3226220001133200041604020300") -function createBoulderDash__P16397(s) { +function inline__P12818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62013,574 +62987,181 @@ 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; - } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } + s.tmp_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s); + s.tmp_3.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; + s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "VersionS"); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim.settings._exists(s.tmp_1); + 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_3 = settings_writeString__P612_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 6: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "VersionS"); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = "4.0.0"; - s.callLocIdx = 1482; s.pc = 5; return s.tmp_3; + s.tmp_4 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = 1; + s.tmp_4.arg2 = false; + if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove; + s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WBackM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16428; - s.callLocIdx = 1483; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16436; - s.callLocIdx = 1484; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1485; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16450; - s.callLocIdx = 1486; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16458; - s.callLocIdx = 1487; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - 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_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16466; - s.callLocIdx = 1488; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 20: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16474; - s.callLocIdx = 1489; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 22: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1490; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16488; - s.callLocIdx = 1491; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 26: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16496; - s.callLocIdx = 1492; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 28: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16504; - s.callLocIdx = 1493; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 30: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16512; - s.callLocIdx = 1494; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 32); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HelpN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1495; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 34: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HighN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = NaN; - s.callLocIdx = 1496; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 36: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16533; - s.callLocIdx = 1497; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 38); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16541; - s.callLocIdx = 1498; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 40: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16549; - s.callLocIdx = 1499; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 42: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16557; - s.callLocIdx = 1500; s.pc = 41; return s.tmp_0; - case 41: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16565; - s.callLocIdx = 1501; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB8"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16573; - s.callLocIdx = 1502; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 48: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16581; - s.callLocIdx = 1503; s.pc = 47; return s.tmp_0; - case 47: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 50); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 50: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16589; - s.callLocIdx = 1504; s.pc = 49; return s.tmp_0; - case 49: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 52); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 52: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16597; - s.callLocIdx = 1505; s.pc = 51; return s.tmp_0; - case 51: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 54); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 54: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16605; - s.callLocIdx = 1506; s.pc = 53; return s.tmp_0; - case 53: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 56); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 56: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB13"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16613; - s.callLocIdx = 1507; s.pc = 55; return s.tmp_0; - case 55: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 58); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 58: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16621; - s.callLocIdx = 1508; s.pc = 57; return s.tmp_0; - case 57: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 60); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 60: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB12"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16629; - s.callLocIdx = 1509; s.pc = 59; return s.tmp_0; - case 59: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 62); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 62: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB11"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16637; - s.callLocIdx = 1510; s.pc = 61; return s.tmp_0; - case 61: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 64); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 64: + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12818.info = {"start":2404,"length":125,"line":56,"column":66,"endLine":59,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12818_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12818, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, +} } + + + + + +function inline__P12827(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 = tileworld_RuleVisualsBase_moveDown__P12689_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 659; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB14"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16645; - s.callLocIdx = 1511; s.pc = 63; return s.tmp_0; - case 63: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12827.info = {"start":2599,"length":21,"line":60,"column":67,"endLine":60,"endColumn":88,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12827_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12827, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P12832(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 = tileworld_RuleVisualsBase_moveDown__P12689_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 661; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 66); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 66: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P12832.info = {"start":2691,"length":21,"line":61,"column":68,"endLine":61,"endColumn":89,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} + +function inline__P12832_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P12832, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function inline__P12837(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_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s); + s.tmp_3.arg0 = s.caps[0]; + if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; + s.pc = 4; return s.tmp_3; + case 4: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1512; s.pc = 65; return s.tmp_0; - case 65: + 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_4 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.tmp_4.arg1 = 3; + s.tmp_4.arg2 = false; + if (!checkSubtype(s.tmp_4.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4.fn = s.tmp_4.arg0.vtable.methods.cursorMove; + s.pc = 5; return s.tmp_4; + case 5: r0 = s.retval; case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -createBoulderDash__P16397.info = {"start":363,"length":4737,"line":15,"column":0,"endLine":119,"endColumn":1,"fileName":"games.ts","functionName":"createBoulderDash","argumentNames":["prefix"]} +inline__P12837.info = {"start":2783,"length":127,"line":62,"column":68,"endLine":65,"endColumn":13,"fileName":"rulesBase.ts","functionName":"inline","argumentNames":[]} -function createBoulderDash__P16397_mk(s) { +function inline__P12837_mk(s) { checkStack(s.depth); return { - parent: s, fn: createBoulderDash__P16397, depth: s.depth + 1, + parent: s, fn: inline__P12837, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - arg0: undefined, } } -const _hex16428 = pxsim.BufferMethods.createBufferFromHex("2018f0a022f1512032f1412032f14120321112f1212032f1412032f14120f171203122f121205132e1201132f13120f171203132f11120f17120f171205132e120322132e1205132e120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f17120f171f0a0") -const _hex16436 = pxsim.BufferMethods.createBufferFromHex("2018ffaf11ff8f11ff8f11ff8f212f10ff4f11ffffffffef21ff9f2112ff2f1221ffffff2f2112ffffffffbf31ff1f21122f111211ff6f31ffffffffffffffffffffffffffffffffffffffffffffff6f") -const _hex16450 = pxsim.BufferMethods.createBufferFromHex("1010fd181d363826181618161816181d2618361816181618161816181d1618163826181618161816181d1816281d28561816181d1816183d1876181d1816281d2876181d1618163886181d2618361866281d26181618164826381d2618161816181628261816181d2618161816182618261816181d2618161816182618261816181d261816181618162826381d48163866f828") -const _hex16458 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") -const _hex16466 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") -const _hex16474 = pxsim.BufferMethods.createBufferFromHex("1010bd21ed217d1bcd21ed21fd6d1bfd5d11fdfd8d2bed2bfdfd8d1b4d1bfded1bfd1d") -const _hex16488 = pxsim.BufferMethods.createBufferFromHex("1010f0802fa05f1e1f101e24403f1e1f3e1f141d14303f1e122f142e3f302f1e122f1b111d1e22144f121e121f1e2f1d1422143f12131e121f1e142d1422151f101f221e121f1e142d1422151f102f121e121f1e2f1d1422142f102f1e122f1b111d1e22142f103f1e122f142e3f402f2e1f3e1f141d14505f1e1f101e24902ff080") -const _hex16496 = pxsim.BufferMethods.createBufferFromHex("1010804ca02c1b1c1b2c901c1d2b1c1b2c603c2d1b1c1b2c303c2b1c1b2d4c201c1b2d3b1c2d1b3c201c5d3b1d1b4c101b5d3b1d1b2c1b1c101b5d3b1d2b1c2b1c1b6d2b1d1b1d1c2b1c101b5d2b1d1b1d1c2b1c201b4d1b1d2b1d1c2b1c201b3d2b1d1b1d3b1c407b1d1c2b1c701b3d2c1b1c902b2c2b30") -const _hex16504 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") -const _hex16512 = pxsim.BufferMethods.createBufferFromHex("10106057a01730373fb0271c111d1f408f1b1c1f302f5d1b1c1f211d1f101f1b513d1f1b1c1f201f611d1b1c1b1c111d2f812f1d3f101f811d111b3f101f811d213f101f812f1b3f201f611d1b1c1d3f201f1b513d3f402f5d1b1c1f807f1cc01f1c1b1f40") -const _hex16533 = pxsim.BufferMethods.createBufferFromHex("20262200011623030c060002") -const _hex16541 = pxsim.BufferMethods.createBufferFromHex("4120220014143210ff060003") -const _hex16549 = pxsim.BufferMethods.createBufferFromHex("41202200141332103c060003") -const _hex16557 = pxsim.BufferMethods.createBufferFromHex("222622000102230010140300") -const _hex16565 = pxsim.BufferMethods.createBufferFromHex("414122001416320014042110ff063110ff060000") -const _hex16573 = pxsim.BufferMethods.createBufferFromHex("322022001403320001160401") -const _hex16581 = pxsim.BufferMethods.createBufferFromHex("6310220010160400") -const _hex16589 = pxsim.BufferMethods.createBufferFromHex("21212200141232103c060003") -const _hex16597 = pxsim.BufferMethods.createBufferFromHex("203122000116230004163305140600020002") -const _hex16605 = pxsim.BufferMethods.createBufferFromHex("2016220001160102") -const _hex16613 = pxsim.BufferMethods.createBufferFromHex("222122001412230554060004") -const _hex16621 = pxsim.BufferMethods.createBufferFromHex("2031220001162300041633103c0600020003") -const _hex16629 = pxsim.BufferMethods.createBufferFromHex("6110220001160102") -const _hex16637 = pxsim.BufferMethods.createBufferFromHex("631022000106") -const _hex16645 = pxsim.BufferMethods.createBufferFromHex("222122000112230004060004") -function createSnake__P16395(s) { +function tileworld_RuleVisualsBase_moveDown__P12689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -62594,446 +63175,231 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeString__P612_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 2); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 2: + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; + s.pc = 6; return s.tmp_3; + case 6: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "VersionS"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = "4.0.0"; - s.callLocIdx = 1513; s.pc = 1; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } case 1: + case 2: + s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = true; + s.callLocIdx = 672; s.pc = 7; return s.tmp_6; + case 7: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: + s.tmp_5 = r0; + r0 = (s.tmp_5 < 6); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + s.tmp_7 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_8 = r0; + s.tmp_7.arg0 = r0; + s.tmp_10 = Sprite_y__P2024_mk(s); + s.tmp_10.arg0 = s.tmp_8; + s.callLocIdx = 673; s.pc = 9; return s.tmp_10; + case 9: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WBackM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16666; - s.callLocIdx = 1514; s.pc = 3; return s.tmp_0; - case 3: + s.tmp_9 = r0; + r0 = (s.tmp_9 + 16); + s.tmp_7.arg1 = r0; + s.callLocIdx = 674; s.pc = 8; return s.tmp_7; + case 8: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 6: + case 3: + case 4: + s.tmp_0 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 3; + s.tmp_0.arg2 = true; + if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove; + s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16674; - s.callLocIdx = 1515; s.pc = 5; return s.tmp_0; case 5: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleVisualsBase_moveDown__P12689.info = {"start":3441,"length":190,"line":83,"column":8,"endLine":88,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveDown","argumentNames":["this"]} + +function tileworld_RuleVisualsBase_moveDown__P12689_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleVisualsBase_moveDown__P12689, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + arg0: undefined, +} } + + + + + +function tileworld_RuleVisualsBase_moveUp__P12688(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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; + s.pc = 6; return s.tmp_3; + case 6: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 8: - r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1516; s.pc = 7; return s.tmp_0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } + case 1: + case 2: + s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = true; + s.callLocIdx = 669; s.pc = 7; return s.tmp_6; case 7: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16688; - s.callLocIdx = 1517; s.pc = 9; return s.tmp_0; + s.tmp_5 = r0; + r0 = (s.tmp_5 > 0); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + s.tmp_7 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_8 = r0; + s.tmp_7.arg0 = r0; + s.tmp_10 = Sprite_y__P2024_mk(s); + s.tmp_10.arg0 = s.tmp_8; + s.callLocIdx = 670; s.pc = 9; return s.tmp_10; case 9: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16696; - s.callLocIdx = 1518; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16704; - s.callLocIdx = 1519; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16712; - s.callLocIdx = 1520; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - 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_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1521; s.pc = 17; return s.tmp_0; - case 17: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 20: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16726; - s.callLocIdx = 1522; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 22: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16734; - s.callLocIdx = 1523; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16742; - s.callLocIdx = 1524; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 26: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16750; - s.callLocIdx = 1525; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 28: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HelpN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1526; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 30: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HighN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 430; - s.callLocIdx = 1527; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 32); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16770; - s.callLocIdx = 1528; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 34: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16778; - s.callLocIdx = 1529; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 36: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16786; - s.callLocIdx = 1530; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 38); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB5"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16794; - s.callLocIdx = 1531; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 40: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16802; - s.callLocIdx = 1532; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 42: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16810; - s.callLocIdx = 1533; s.pc = 41; return s.tmp_0; - case 41: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16818; - s.callLocIdx = 1534; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16826; - s.callLocIdx = 1535; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 48: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16834; - s.callLocIdx = 1536; s.pc = 47; return s.tmp_0; - case 47: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 50); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 50: + s.tmp_9 = r0; + r0 = (s.tmp_9 - 16); + s.tmp_7.arg1 = r0; + s.callLocIdx = 671; s.pc = 8; return s.tmp_7; + case 8: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1537; s.pc = 49; return s.tmp_0; - case 49: + case 3: + case 4: + s.tmp_0 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 1; + s.tmp_0.arg2 = true; + if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove; + s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; + case 5: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleVisualsBase_moveUp__P12688.info = {"start":3245,"length":186,"line":76,"column":8,"endLine":81,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveUp","argumentNames":["this"]} + +function tileworld_RuleVisualsBase_moveUp__P12688_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleVisualsBase_moveUp__P12688, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + arg0: undefined, +} } + + + + + +function tileworld_RuleVisualsBase_cursorMove__P12702(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -createSnake__P16395.info = {"start":5104,"length":3600,"line":121,"column":0,"endLine":200,"endColumn":1,"fileName":"games.ts","functionName":"createSnake","argumentNames":["prefix"]} +tileworld_RuleVisualsBase_cursorMove__P12702.info = {"start":5284,"length":69,"line":139,"column":8,"endLine":139,"endColumn":77,"fileName":"rulesBase.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} -function createSnake__P16395_mk(s) { +function tileworld_RuleVisualsBase_cursorMove__P12702_mk(s) { checkStack(s.depth); return { - parent: s, fn: createSnake__P16395, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_cursorMove__P12702, 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, } } -const _hex16666 = pxsim.BufferMethods.createBufferFromHex("2018f0a0f17120f17120f17120f17120f17120f17120f17120f17120f17120a122a120914291208152912081529120815291209132a120f17120f17120f17120f17120f171204122f111203142f1203142f1203132f111204122f11120f17120f17120f17120f17120f171f0a0") -const _hex16674 = pxsim.BufferMethods.createBufferFromHex("2018ffffffffff1f11ff8f11ff8f116f12ff1f11ff8f11ff8f11ff8f10ffbf12ffffffcf12ff2f12ffffffff3f12ffffffffffffaf12ffbf12ffffffffffffffff4f12ffffffff12ffffffff6f") -const _hex16688 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") -const _hex16696 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") -const _hex16704 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") -const _hex16712 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") -const _hex16726 = pxsim.BufferMethods.createBufferFromHex("1010b01c2f502c2f301c21161f301c16371f101c1731161c101c271c16271f27412c1627161f271c22412c3726271c37312c3726271c2726212c37161f17161c171c1f26112c371c16171c17161f2c16112c16773c361c101c67161f561c201c1637161f27461f302c3f37261c1f801c27161c2fa01c171ce02c50") -const _hex16734 = pxsim.BufferMethods.createBufferFromHex("1010a02c2fb01c16372c801c272c16111c701c1627161c1f2c701c37361f1c701c37361f1c701c37161c1f111c701c372c162c404c16671c302c361c57161c301c27262c16371f1c201c37462c2f161c201c273c761c201c171c201c661c301c161c302c461c302c505c20") -const _hex16742 = pxsim.BufferMethods.createBufferFromHex("1010f0502c6e70ae603e523e403e821e402ea21e303e921e303c92142027161c921420172ea21430121e247214123022251462141e401214151452141260622412701e621ef050") -const _hex16750 = pxsim.BufferMethods.createBufferFromHex("1010f0f0f0f0f0801e8012602e7012602c12601260161c828072901452f0f0f0f0f0a0") -const _hex16770 = pxsim.BufferMethods.createBufferFromHex("212622000412230005020002") -const _hex16778 = pxsim.BufferMethods.createBufferFromHex("212622000412120005010001") -const _hex16786 = pxsim.BufferMethods.createBufferFromHex("212622000412320005030003") -const _hex16794 = pxsim.BufferMethods.createBufferFromHex("2016220001160002") -const _hex16802 = pxsim.BufferMethods.createBufferFromHex("222622000112231104060401") -const _hex16810 = pxsim.BufferMethods.createBufferFromHex("21262200040221004c36030002010002") -const _hex16818 = pxsim.BufferMethods.createBufferFromHex("4110220005140002") -const _hex16826 = pxsim.BufferMethods.createBufferFromHex("4116220001120002") -const _hex16834 = pxsim.BufferMethods.createBufferFromHex("2226220001322300102605010202040203000203") -function createBejeweled__P16393(s) { +function tileworld_RuleVisualsBase_okToMove__P12690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63047,502 +63413,182 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 4); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 4: + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + r0 = true; + return leave(s, r0) + default: oops() +} } } +tileworld_RuleVisualsBase_okToMove__P12690.info = {"start":3641,"length":37,"line":90,"column":8,"endLine":90,"endColumn":45,"fileName":"rulesBase.ts","functionName":"okToMove","argumentNames":["this"]} + +function tileworld_RuleVisualsBase_okToMove__P12690_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tileworld_RuleVisualsBase_okToMove__P12690, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tileworld_RuleVisualsBase_moveInX__P12687(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, tileworld_RuleVisualsBase__C3784_VT)) failedCast(r0); + s.tmp_3 = tileworld_RuleVisualsBase__C3784_v1_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.okToMove; + s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, "-VersionS"); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim.settings._exists(s.tmp_1); + 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; } + { step = 11; continue; } case 1: case 2: - s.tmp_3 = settings_writeString__P612_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 6); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 6: - r0 = s.retval; + r0 = (s.arg1 == 0); s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_4, "VersionS"); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = "4.0.0"; - s.callLocIdx = 1539; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 8: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WBackM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16861; - s.callLocIdx = 1540; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 10); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 10: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "WSpriteM"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16869; - s.callLocIdx = 1541; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 12); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1542; s.pc = 11; return s.tmp_0; - case 11: + r0 = pxsim_numops_toBool(s.tmp_4); + if (r0) { step = 3; continue; } + r0 = s.tmp_4; + { step = 4; continue; } + case 3: + s.tmp_6 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = true; + s.callLocIdx = 664; s.pc = 13; return s.tmp_6; + case 13: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } + s.tmp_5 = r0; + r0 = (s.tmp_5 > 0); + case 4: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBool(s.tmp_7); + if (!r0) { step = 5; continue; } + r0 = s.tmp_7; + { step = 8; continue; } + case 5: + r0 = (s.arg1 == 2); + s.tmp_8 = r0; + r0 = pxsim_numops_toBool(s.tmp_8); + if (r0) { step = 6; continue; } + r0 = s.tmp_8; + { step = 7; continue; } + case 6: + s.tmp_10 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_10.arg0 = s.arg0; + s.tmp_10.arg1 = true; + s.callLocIdx = 665; s.pc = 14; return s.tmp_10; case 14: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16883; - s.callLocIdx = 1543; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } + s.tmp_9 = r0; + r0 = (s.tmp_9 < 9); + case 7: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = s.tmp_11; + case 8: + // jmp value (already in r0) + s.tmp_12 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_12); + if (!r0) { step = 9; continue; } + s.tmp_13 = Sprite_x__P2023_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_14 = r0; + s.tmp_13.arg0 = r0; + s.tmp_16 = Sprite_x__P2022_mk(s); + s.tmp_16.arg0 = s.tmp_14; + s.callLocIdx = 667; s.pc = 16; return s.tmp_16; case 16: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16891; - s.callLocIdx = 1544; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - 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_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16899; - s.callLocIdx = 1545; s.pc = 17; return s.tmp_0; + s.tmp_15 = r0; + s.tmp_19 = tileworld_moveXdelta__P3618_mk(s); + s.tmp_19.arg0 = s.arg1; + s.callLocIdx = 666; s.pc = 17; return s.tmp_19; case 17: r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 20: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "BackI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16907; - s.callLocIdx = 1546; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 22); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 22: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 4; - s.callLocIdx = 1547; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 24); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 24: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16921; - s.callLocIdx = 1548; s.pc = 23; return s.tmp_0; - case 23: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 26); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 26: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16929; - s.callLocIdx = 1549; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 28); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 28: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16937; - s.callLocIdx = 1550; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 30); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 30: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "SpriteI3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16945; - s.callLocIdx = 1551; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 32); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 32: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HelpN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1552; s.pc = 31; return s.tmp_0; - case 31: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 34); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 34: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "HighN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 120; - s.callLocIdx = 1553; s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 36); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 36: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB0"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16965; - s.callLocIdx = 1554; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 38); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 38: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB1"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16973; - s.callLocIdx = 1555; s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 40); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 40: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB2"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16981; - s.callLocIdx = 1556; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 42); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 42: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB3"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16989; - s.callLocIdx = 1557; s.pc = 41; return s.tmp_0; - case 41: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 44); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 44: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB7"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex16997; - s.callLocIdx = 1558; s.pc = 43; return s.tmp_0; - case 43: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 46); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 46: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB8"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17005; - s.callLocIdx = 1559; s.pc = 45; return s.tmp_0; - case 45: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 48); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 48: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB4"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17013; - s.callLocIdx = 1560; s.pc = 47; return s.tmp_0; - case 47: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 50); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 50: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB6"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17021; - s.callLocIdx = 1561; s.pc = 49; return s.tmp_0; - case 49: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 52); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 52: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB9"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17029; - s.callLocIdx = 1562; s.pc = 51; return s.tmp_0; - case 51: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 54); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 54: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB11"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17037; - s.callLocIdx = 1563; s.pc = 53; return s.tmp_0; - case 53: - r0 = s.retval; - s.tmp_0 = settings_writeBuffer__P611_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 56); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 56: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "RuleB10"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = _hex17045; - s.callLocIdx = 1564; s.pc = 55; return s.tmp_0; - case 55: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 58); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 58: + s.tmp_18 = r0; + r0 = (16 * s.tmp_18); + s.tmp_17 = r0; + r0 = (s.tmp_15 + s.tmp_17); + s.tmp_13.arg1 = r0; + s.callLocIdx = 668; s.pc = 15; return s.tmp_13; + case 15: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_String__concat(s.tmp_1, "PlayerN"); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1565; s.pc = 57; return s.tmp_0; - case 57: + case 9: + case 10: + s.tmp_0 = tileworld_RuleVisualsBase__C3784_v2_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = true; + if (!checkSubtype(s.tmp_0.arg0, tileworld_RuleVisualsBase__C3784_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.cursorMove; + s.pc = 18; return s.tmp_0; + case 18: r0 = s.retval; - case 3: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -createBejeweled__P16393.info = {"start":8708,"length":4048,"line":202,"column":0,"endLine":290,"endColumn":1,"fileName":"games.ts","functionName":"createBejeweled","argumentNames":["prefix"]} +tileworld_RuleVisualsBase_moveInX__P12687.info = {"start":2932,"length":303,"line":68,"column":8,"endLine":74,"endColumn":9,"fileName":"rulesBase.ts","functionName":"moveInX","argumentNames":["this","dir"]} -function createBejeweled__P16393_mk(s) { +function tileworld_RuleVisualsBase_moveInX__P12687_mk(s) { checkStack(s.depth); return { - parent: s, fn: createBejeweled__P16393, depth: s.depth + 1, + parent: s, fn: tileworld_RuleVisualsBase_moveInX__P12687, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, arg0: undefined, + arg1: undefined, } } -const _hex16861 = pxsim.BufferMethods.createBufferFromHex("201880f111106110f111106110f111106110f111106110f111106110f111106110f111106110f111106110f11180f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f1f141") -const _hex16869 = pxsim.BufferMethods.createBufferFromHex("2018ffaf1311122312ff3f12132123ff3f1211231112ff3f111311121311ff3f1112132113ff3f131211101311ff3f1311121122ff3f22231113ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffef") -const _hex16883 = pxsim.BufferMethods.createBufferFromHex("10101b6d1c1b6d1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d7b6c1b1a6c1b1a1b6d1c1b6d1b1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d6b1c1d7b1d6b7c1b1a6c1b1a") -const _hex16891 = pxsim.BufferMethods.createBufferFromHex("1010ff3f3ccf5c4f3c4f6c2f5c4f5c1f7c3f5c1f7c4f3c2f7caf5ccf3c8f3c7f1c4f5c5f3c3f5c4f4c3f6c3f4c3f6c4f3c4f3c7f1cff1f") -const _hex16899 = pxsim.BufferMethods.createBufferFromHex("10101f6e3f1e2f2e1f2e342e1f5e1f3e544e341e1f2e642e541e1f2e541e743e541e741e1f2e342e742e1f3e1f1e1f1e541e1f1e4f3e1f1e341e1f2e2f2e345e1f1e142e1f1e541e1f1e1f1e341e1f1e542e1f1e441e1f1e641e1f1e443e641e1f2e342e1f1e347e144e1f4e2f1e1f3e") -const _hex16907 = pxsim.BufferMethods.createBufferFromHex("101017f6f61617461836175617462718e62718b627f627f61627d6271846178617185627d6171617c627187617561718f6f6f65627") -const _hex16921 = pxsim.BufferMethods.createBufferFromHex("1010f0f0707f801f751f601f951f501f353f351f501f251f301f251f501f251f301f251f501f251f301f251f501f251f301f251f501f353f351f501f951f601f751f807ff0f060") -const _hex16929 = pxsim.BufferMethods.createBufferFromHex("1010f0502839a0384980485960586950587940281928893018391899201839111981201829211971301841196140184119517031194180311931a0211921f080") -const _hex16937 = pxsim.BufferMethods.createBufferFromHex("1010804ca02c1b1c1b2c901c1d2b1c1b2c603c2d1b1c1b2c303c2b1c1b2d4c201c1b2d3b1c2d1b3c201c5d3b1d1b4c101b5d3b1d1b2c1b1c101b5d3b1d2b1c2b1c1b6d2b1d1b1d1c2b1c101b5d2b1d1b1d1c2b1c201b4d1b1d2b1d1c2b1c201b3d2b1d1b1d3b1c407b1d1c2b1c701b3d2c1b1c902b2c2b30") -const _hex16945 = pxsim.BufferMethods.createBufferFromHex("1010506c802c7e12501cae12404e523e12204e821e12203ea21e12104e921e121e4c92141e1c27161c92141e272ea2141e101e121e247214121e101e22251462141e301e121415145214121e301e7224121e502e622e806e50") -const _hex16965 = pxsim.BufferMethods.createBufferFromHex("6143220040242100401423004024120000260300010103000300010106000402") -const _hex16973 = pxsim.BufferMethods.createBufferFromHex("61432200102421001024230010241200002603000101030001010300010106000402") -const _hex16981 = pxsim.BufferMethods.createBufferFromHex("6130220054163204fc061200001600030600") -const _hex16989 = pxsim.BufferMethods.createBufferFromHex("61432200042423000424210004241200002603000101030001010300010106000402") -const _hex16997 = pxsim.BufferMethods.createBufferFromHex("202622080116231000060002") -const _hex17005 = pxsim.BufferMethods.createBufferFromHex("205622000116230400061230000621300006323000060002") -const _hex17013 = pxsim.BufferMethods.createBufferFromHex("412322205424212054240000010300020103") -const _hex17021 = pxsim.BufferMethods.createBufferFromHex("4010222001160101") -const _hex17029 = pxsim.BufferMethods.createBufferFromHex("4016220801160102") -const _hex17037 = pxsim.BufferMethods.createBufferFromHex("612322805424218054240000010100020101") -const _hex17045 = pxsim.BufferMethods.createBufferFromHex("61502280541621c0000612c0000623c0000632c000060101") -function game_eventContext__P1290(s) { +function game_eventContext__P2527(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63552,21 +63598,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P1291_mk(s); + s.tmp_0 = game_init__P4282_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 848; s.pc = 1; return s.tmp_0; + s.callLocIdx = 850; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___1280.fields["eventContext"]; + r0 = globals._scene___4274.fields["eventContext"]; return leave(s, r0) default: oops() } } } -game_eventContext__P1290.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} +game_eventContext__P2527.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} -function game_eventContext__P1290_mk(s) { +function game_eventContext__P2527_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_eventContext__P1290, depth: s.depth + 1, + parent: s, fn: game_eventContext__P2527, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -63575,7 +63621,7 @@ function game_eventContext__P1290_mk(s) { -function controller_pauseUntilAnyButtonIsPressed__P745(s) { +function controller_pauseUntilAnyButtonIsPressed__P1950(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63595,12 +63641,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P745.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} +controller_pauseUntilAnyButtonIsPressed__P1950.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__P745_mk(s) { +function controller_pauseUntilAnyButtonIsPressed__P1950_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P745, depth: s.depth + 1, + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P1950, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -63608,7 +63654,7 @@ function controller_pauseUntilAnyButtonIsPressed__P745_mk(s) { -function game_setWaitAnyButton__P1288(s) { +function game_setWaitAnyButton__P2525(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63622,17 +63668,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__waitAnyButton___1284 = (s.arg0); + globals.__waitAnyButton___4278 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_setWaitAnyButton__P1288.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__P2525.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__P1288_mk(s) { +function game_setWaitAnyButton__P2525_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_setWaitAnyButton__P1288, depth: s.depth + 1, + parent: s, fn: game_setWaitAnyButton__P2525, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -63641,7 +63687,7 @@ function game_setWaitAnyButton__P1288_mk(s) { -function Math_abs__P76(s) { +function Math_abs__P120(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63670,12 +63716,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_abs__P76.info = {"start":15106,"length":77,"line":511,"column":4,"endLine":513,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +Math_abs__P120.info = {"start":15106,"length":77,"line":511,"column":4,"endLine":513,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} -function Math_abs__P76_mk(s) { +function Math_abs__P120_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P76, depth: s.depth + 1, + parent: s, fn: Math_abs__P120, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -63686,7 +63732,7 @@ function Math_abs__P76_mk(s) { -function Math_sign__P77(s) { +function Math_sign__P121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63721,12 +63767,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_sign__P77.info = {"start":15341,"length":125,"line":519,"column":4,"endLine":523,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} +Math_sign__P121.info = {"start":15341,"length":125,"line":519,"column":4,"endLine":523,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} -function Math_sign__P77_mk(s) { +function Math_sign__P121_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_sign__P77, depth: s.depth + 1, + parent: s, fn: Math_sign__P121, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -63737,7 +63783,7 @@ function Math_sign__P77_mk(s) { -function texteffects_TextEffect_constructor__P1908(s) { +function texteffects_TextEffect_constructor__P2825(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63753,18 +63799,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, texteffects_TextEffect__C1907_VT)) failedCast(r0); + if (!checkSubtype(r0, texteffects_TextEffect__C2823_VT)) failedCast(r0); r0 = (s.arg0).fields["getState"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -texteffects_TextEffect_constructor__P1908.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__P2825.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__P1908_mk(s) { +function texteffects_TextEffect_constructor__P2825_mk(s) { checkStack(s.depth); return { - parent: s, fn: texteffects_TextEffect_constructor__P1908, depth: s.depth + 1, + parent: s, fn: texteffects_TextEffect_constructor__P2825, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -63774,7 +63820,7 @@ function texteffects_TextEffect_constructor__P1908_mk(s) { -function Math_FastRandom_constructor__P1572(s) { +function Math_FastRandom_constructor__P2580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63790,7 +63836,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C1565_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C2578_VT)) failedCast(r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -63805,12 +63851,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_constructor__P1572.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__P2580.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__P1572_mk(s) { +function Math_FastRandom_constructor__P2580_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P1572, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P2580, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -63821,7 +63867,7 @@ function Math_FastRandom_constructor__P1572_mk(s) { -function control_ramSize__P228(s) { +function control_ramSize__P332(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63846,12 +63892,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_ramSize__P228.info = {"start":5058,"length":100,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} +control_ramSize__P332.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__P228_mk(s) { +function control_ramSize__P332_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_ramSize__P228, depth: s.depth + 1, + parent: s, fn: control_ramSize__P332, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -63861,7 +63907,7 @@ function control_ramSize__P228_mk(s) { -function control__ramSize__P227(s) { +function control__ramSize__P3924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63875,12 +63921,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control__ramSize__P227.info = {"start":4938,"length":60,"line":167,"column":4,"endLine":169,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} +control__ramSize__P3924.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__P227_mk(s) { +function control__ramSize__P3924_mk(s) { checkStack(s.depth); return { - parent: s, fn: control__ramSize__P227, depth: s.depth + 1, + parent: s, fn: control__ramSize__P3924, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -63888,7 +63934,7 @@ function control__ramSize__P227_mk(s) { -function game_consoleOverlay_listener__P1686(s) { +function game_consoleOverlay_listener__P4604(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -63903,7 +63949,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___1650); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -63923,39 +63969,39 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_4 = helpers_arrayForEach__P60_mk(s); - s.tmp_5 = helpers_arrayFilter__P61_mk(s); - s.tmp_6 = helpers_stringSplit__P70_mk(s); + s.tmp_4 = helpers_arrayForEach__P104_mk(s); + s.tmp_5 = helpers_arrayFilter__P105_mk(s); + s.tmp_6 = helpers_stringSplit__P114_mk(s); s.tmp_6.arg0 = s.arg1; s.tmp_6.arg1 = "\n"; s.tmp_6.arg2 = undefined; - s.callLocIdx = 1047; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1049; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = inline__P26104; - s.callLocIdx = 1048; s.pc = 9; return s.tmp_5; + s.tmp_5.arg1 = inline__P27748; + s.callLocIdx = 1050; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = inline__P26109; - s.callLocIdx = 1050; s.pc = 8; return s.tmp_4; + s.tmp_4.arg1 = inline__P27753; + s.callLocIdx = 1052; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___1650); + r0 = pxsim_Array__length(globals.consoleStrings___4569); s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___1663); + r0 = (s.tmp_1 > globals.consoleLines___4582); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P49_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___1650; + s.tmp_2 = helpers_arraySplice__P95_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___4569; s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___1650); + r0 = pxsim_Array__length(globals.consoleStrings___4569); s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___1663); + r0 = (s.tmp_3 - globals.consoleLines___4582); s.tmp_2.arg2 = r0; - s.callLocIdx = 1051; s.pc = 11; return s.tmp_2; + s.callLocIdx = 1053; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; case 5: @@ -63965,12 +64011,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P1686.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__P4604.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__P1686_mk(s) { +function game_consoleOverlay_listener__P4604_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P1686, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P4604, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -63987,7 +64033,7 @@ function game_consoleOverlay_listener__P1686_mk(s) { -function inline__P26104(s) { +function inline__P27748(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64011,12 +64057,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26104.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +inline__P27748.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__P26104_mk(s) { +function inline__P27748_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26104, depth: s.depth + 1, + parent: s, fn: inline__P27748, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64028,7 +64074,7 @@ function inline__P26104_mk(s) { -function inline__P26109(s) { +function inline__P27753(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64038,45 +64084,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___26111 = undefined; + s.j___27755 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.j___26111 = (0); + s.j___27755 = (0); case 1: - s.tmp_1 = r0 = s.j___26111; + s.tmp_1 = r0 = s.j___27755; 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___1650; - s.tmp_5 = helpers_stringSlice__P68_mk(s); + s.tmp_3 = r0 = globals.consoleStrings___4569; + s.tmp_5 = helpers_stringSlice__P112_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___26111; - r0 = (s.j___26111 + globals.consoleColumns___1674); + s.tmp_5.arg1 = s.j___27755; + r0 = (s.j___27755 + globals.consoleColumns___4592); s.tmp_5.arg2 = r0; - s.callLocIdx = 1049; s.pc = 3; return s.tmp_5; + s.callLocIdx = 1051; 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___26111 + globals.consoleColumns___1674); - s.j___26111 = (r0); + r0 = (s.j___27755 + globals.consoleColumns___4592); + s.j___27755 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26109.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +inline__P27753.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__P26109_mk(s) { +function inline__P27753_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26109, depth: s.depth + 1, + parent: s, fn: inline__P27753, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64084,7 +64130,7 @@ function inline__P26109_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - j___26111: undefined, + j___27755: undefined, arg0: undefined, } } @@ -64092,7 +64138,7 @@ function inline__P26109_mk(s) { -function console_addListener__P261(s) { +function console_addListener__P369(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64115,7 +64161,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___253, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals.listeners___3939, s.arg0, undefined); s.tmp_2 = r0; r0 = (s.tmp_2 > -1); case 2: @@ -64126,18 +64172,18 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_Array__push(globals.listeners___253, s.arg0); + r0 = pxsim_Array__push(globals.listeners___3939, s.arg0); case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P261.info = {"start":3510,"length":197,"line":120,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]} +console_addListener__P369.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__P261_mk(s) { +function console_addListener__P369_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P261, depth: s.depth + 1, + parent: s, fn: console_addListener__P369, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64150,7 +64196,7 @@ function console_addListener__P261_mk(s) { -function scene_systemMenu_register__P1606(s) { +function scene_systemMenu_register__P2625(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64160,16 +64206,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___1573); + r0 = pxsim_numops_toBoolDecr(globals.instance___4526); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = controller_Button_onEvent__P699_mk(s); - s.tmp_0.arg0 = globals.menu___677; + s.tmp_0 = controller_Button_onEvent__P1907_mk(s); + s.tmp_0.arg0 = globals.menu___1880; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P1607; - s.callLocIdx = 1037; s.pc = 4; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P2626; + s.callLocIdx = 1039; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -64177,12 +64223,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P1606.info = {"start":12331,"length":193,"line":372,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} +scene_systemMenu_register__P2625.info = {"start":12331,"length":193,"line":372,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} -function scene_systemMenu_register__P1606_mk(s) { +function scene_systemMenu_register__P2625_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P1606, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P2625, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -64191,7 +64237,7 @@ function scene_systemMenu_register__P1606_mk(s) { -function scene_systemMenu_showSystemMenu__P1607(s) { +function scene_systemMenu_showSystemMenu__P2626(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64201,28 +64247,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___1573); + r0 = pxsim_numops_toBoolDecr(globals.instance___4526); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = game_pushScene__P1292_mk(s); - s.callLocIdx = 1038; s.pc = 4; return s.tmp_0; + s.tmp_0 = game_pushScene__P2528_mk(s); + s.callLocIdx = 1040; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C1585_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C2614_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P1592_mk(s); + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P2615_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P1603; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P2622; s.tmp_1.arg2 = undefined; - s.callLocIdx = 1039; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1041; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.instance___1573 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P1586_mk(s); - s.tmp_0.arg0 = globals.instance___1573; - s.callLocIdx = 1040; s.pc = 6; return s.tmp_0; + globals.instance___4526 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P2616_mk(s); + s.tmp_0.arg0 = globals.instance___4526; + s.callLocIdx = 1042; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -64230,12 +64276,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P1607.info = {"start":12530,"length":172,"line":378,"column":4,"endLine":383,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} +scene_systemMenu_showSystemMenu__P2626.info = {"start":12530,"length":172,"line":378,"column":4,"endLine":383,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} -function scene_systemMenu_showSystemMenu__P1607_mk(s) { +function scene_systemMenu_showSystemMenu__P2626_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P1607, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P2626, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64245,7 +64291,7 @@ function scene_systemMenu_showSystemMenu__P1607_mk(s) { -function scene_systemMenu_buildOptionList__P1603(s) { +function scene_systemMenu_buildOptionList__P2622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64255,136 +64301,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___26803 = undefined; + s.options___28431 = undefined; r0 = pxsim_Array__mk(); - s.options___26803 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C1576_VT); + s.options___28431 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P1584_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___1634; - s.tmp_1.arg2 = inline__P26811; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P1595; - s.callLocIdx = 1020; s.pc = 5; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___2636; + s.tmp_1.arg2 = inline__P28439; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P4532; + s.callLocIdx = 1022; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26803, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C1576_VT); + r0 = pxsim_Array__push(s.options___28431, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P1584_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___1625; - s.tmp_1.arg2 = inline__P26825; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P1594; - s.callLocIdx = 1022; s.pc = 6; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___2633; + s.tmp_1.arg2 = inline__P28453; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P4531; + s.callLocIdx = 1024; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26803, s.tmp_0); + r0 = pxsim_Array__push(s.options___28431, 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__C1576_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT); s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P1584_mk(s); + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P2607_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___1628; - s.tmp_2.arg2 = inline__P26840; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P1597; - s.callLocIdx = 1025; s.pc = 7; return s.tmp_2; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___2634; + s.tmp_2.arg2 = inline__P28468; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P4534; + s.callLocIdx = 1027; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26803, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C1576_VT); + r0 = pxsim_Array__push(s.options___28431, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P1584_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___1643; - s.tmp_1.arg2 = inline__P26856; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P1596; - s.callLocIdx = 1027; s.pc = 8; return s.tmp_1; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___2639; + s.tmp_1.arg2 = inline__P28483; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P4533; + s.callLocIdx = 1029; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26803, s.tmp_0); + r0 = pxsim_Array__push(s.options___28431, s.tmp_0); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C1576_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P1584_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___1646; - s.tmp_1.arg2 = inline__P26871; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P1598; - s.callLocIdx = 1028; s.pc = 9; return s.tmp_1; + s.tmp_1.arg1 = globals.STATS_ICON___2640; + s.tmp_1.arg2 = inline__P28498; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P4535; + s.callLocIdx = 1030; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26803, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C1576_VT); + r0 = pxsim_Array__push(s.options___28431, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P1584_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___1640; - s.tmp_1.arg2 = inline__P26880; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P1599; - s.callLocIdx = 1030; s.pc = 10; return s.tmp_1; + s.tmp_1.arg1 = globals.CONSOLE_ICON___2638; + s.tmp_1.arg2 = inline__P28507; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P4536; + s.callLocIdx = 1032; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26803, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C1576_VT); + r0 = pxsim_Array__push(s.options___28431, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P1584_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___1637; - s.tmp_1.arg2 = inline__P26889; - s.tmp_1.arg3 = scene_systemMenu_sleep__P1600; - s.callLocIdx = 1031; s.pc = 11; return s.tmp_1; + s.tmp_1.arg1 = globals.SLEEP_ICON___2637; + s.tmp_1.arg2 = inline__P28516; + s.tmp_1.arg3 = scene_systemMenu_sleep__P4537; + s.callLocIdx = 1033; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26803, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___1574); + r0 = pxsim_Array__push(s.options___28431, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___4527); if (!r0) { step = 3; continue; } - s.tmp_0 = helpers_arrayConcat__P64_mk(s); - s.tmp_0.arg0 = s.options___26803; - s.tmp_0.arg1 = globals.customMenuOptions___1574; - s.callLocIdx = 1032; s.pc = 12; return s.tmp_0; + s.tmp_0 = helpers_arrayConcat__P108_mk(s); + s.tmp_0.arg0 = s.options___28431; + s.tmp_0.arg1 = globals.customMenuOptions___4527; + s.callLocIdx = 1034; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.options___26803 = (r0); + s.options___28431 = (r0); case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C1576_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C2606_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P1584_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P2607_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___1631; - s.tmp_1.arg2 = inline__P26902; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P1601; - s.callLocIdx = 1033; s.pc = 13; return s.tmp_1; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___2635; + s.tmp_1.arg2 = inline__P28529; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P2621; + s.callLocIdx = 1035; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_Array__push(s.options___26803, s.tmp_0); - r0 = s.options___26803; + r0 = pxsim_Array__push(s.options___28431, s.tmp_0); + r0 = s.options___28431; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P1603.info = {"start":10037,"length":1149,"line":324,"column":4,"endLine":344,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} +scene_systemMenu_buildOptionList__P2622.info = {"start":10037,"length":1149,"line":324,"column":4,"endLine":344,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} -function scene_systemMenu_buildOptionList__P1603_mk(s) { +function scene_systemMenu_buildOptionList__P2622_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P1603, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P2622, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___26803: undefined, + options___28431: undefined, } } -function inline__P26811(s) { +function inline__P28439(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64394,8 +64440,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P436_mk(s); - s.callLocIdx = 1019; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P1590_mk(s); + s.callLocIdx = 1021; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -64414,12 +64460,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26811.info = {"start":10182,"length":39,"line":327,"column":54,"endLine":327,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P28439.info = {"start":10182,"length":39,"line":327,"column":54,"endLine":327,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26811_mk(s) { +function inline__P28439_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26811, depth: s.depth + 1, + parent: s, fn: inline__P28439, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64431,7 +64477,7 @@ function inline__P26811_mk(s) { -function inline__P26825(s) { +function inline__P28453(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64441,8 +64487,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P436_mk(s); - s.callLocIdx = 1021; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P1590_mk(s); + s.callLocIdx = 1023; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -64461,12 +64507,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26825.info = {"start":10289,"length":37,"line":328,"column":52,"endLine":328,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P28453.info = {"start":10289,"length":37,"line":328,"column":52,"endLine":328,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26825_mk(s) { +function inline__P28453_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26825, depth: s.depth + 1, + parent: s, fn: inline__P28453, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64478,7 +64524,7 @@ function inline__P26825_mk(s) { -function inline__P26840(s) { +function inline__P28468(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64488,7 +64534,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___507; + r0 = globals.brightness___1721; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -64505,12 +64551,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26840.info = {"start":10448,"length":48,"line":330,"column":62,"endLine":330,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P28468.info = {"start":10448,"length":48,"line":330,"column":62,"endLine":330,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26840_mk(s) { +function inline__P28468_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26840, depth: s.depth + 1, + parent: s, fn: inline__P28468, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64521,7 +64567,7 @@ function inline__P26840_mk(s) { -function inline__P26856(s) { +function inline__P28483(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64531,7 +64577,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___507; + r0 = globals.brightness___1721; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -64548,12 +64594,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26856.info = {"start":10576,"length":46,"line":331,"column":60,"endLine":331,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P28483.info = {"start":10576,"length":46,"line":331,"column":60,"endLine":331,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26856_mk(s) { +function inline__P28483_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26856, depth: s.depth + 1, + parent: s, fn: inline__P28483, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64564,7 +64610,7 @@ function inline__P26856_mk(s) { -function inline__P26871(s) { +function inline__P28498(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64574,7 +64620,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___1271); + r0 = pxsim_numops_toBoolDecr(globals.stats___2521); if (!r0) { step = 1; continue; } r0 = "HIDE STATS"; { step = 2; continue; } @@ -64587,12 +64633,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26871.info = {"start":10698,"length":46,"line":333,"column":48,"endLine":333,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P28498.info = {"start":10698,"length":46,"line":333,"column":48,"endLine":333,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26871_mk(s) { +function inline__P28498_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26871, depth: s.depth + 1, + parent: s, fn: inline__P28498, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -64601,7 +64647,7 @@ function inline__P26871_mk(s) { -function inline__P26880(s) { +function inline__P28507(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64611,7 +64657,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___1650); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -64632,12 +64678,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26880.info = {"start":10811,"length":71,"line":334,"column":50,"endLine":334,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P28507.info = {"start":10811,"length":71,"line":334,"column":50,"endLine":334,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26880_mk(s) { +function inline__P28507_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26880, depth: s.depth + 1, + parent: s, fn: inline__P28507, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -64650,7 +64696,7 @@ function inline__P26880_mk(s) { -function inline__P26889(s) { +function inline__P28516(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64664,39 +64710,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26889.info = {"start":10949,"length":13,"line":335,"column":48,"endLine":335,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} - -function inline__P26889_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P26889, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function inline__P26902(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 = "CLOSE"; - return leave(s, r0) - default: oops() -} } } -inline__P26902.info = {"start":11128,"length":13,"line":341,"column":53,"endLine":341,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P28516.info = {"start":10949,"length":13,"line":335,"column":48,"endLine":335,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26902_mk(s) { +function inline__P28516_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26902, depth: s.depth + 1, + parent: s, fn: inline__P28516, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -64704,7 +64723,7 @@ function inline__P26902_mk(s) { -function game_consoleOverlay_isVisible__P1687(s) { +function inline__P28529(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64714,33 +64733,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___1650); - 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); + r0 = "CLOSE"; return leave(s, r0) default: oops() } } } -game_consoleOverlay_isVisible__P1687.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]} +inline__P28529.info = {"start":11128,"length":13,"line":341,"column":53,"endLine":341,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function game_consoleOverlay_isVisible__P1687_mk(s) { +function inline__P28529_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_isVisible__P1687, depth: s.depth + 1, + parent: s, fn: inline__P28529, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, } } -function scene_systemMenu_setScreenBrightnessSupported__P1602(s) { +function scene_systemMenu_setScreenBrightnessSupported__P4538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -64754,248 +64764,20 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightnessSupported__P1602.info = {"start":9936,"length":95,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} - -function scene_systemMenu_setScreenBrightnessSupported__P1602_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P1602, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function scene_systemMenu_closeMenu__P1601(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___1573); - if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P1590_mk(s); - s.tmp_0.arg0 = globals.instance___1573; - s.callLocIdx = 1016; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - globals.instance___1573 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P746_mk(s); - s.tmp_0.arg0 = true; - s.callLocIdx = 1017; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = game_popScene__P1293_mk(s); - s.callLocIdx = 1018; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_closeMenu__P1601.info = {"start":9667,"length":216,"line":310,"column":4,"endLine":317,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} - -function scene_systemMenu_closeMenu__P1601_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_closeMenu__P1601, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function scene_systemMenu_PauseMenu_dispose__P1590(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_systemMenu_PauseMenu__C1585_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__P60_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = inline__P26660; - s.callLocIdx = 997; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["options"] = (undefined); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_PauseMenu_dispose__P1590.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_setScreenBrightnessSupported__P4538.info = {"start":9936,"length":95,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} -function scene_systemMenu_PauseMenu_dispose__P1590_mk(s) { +function scene_systemMenu_setScreenBrightnessSupported__P4538_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P1590, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P4538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function inline__P26660(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = scene_systemMenu_MenuOption_dispose__P1582_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 996; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P26660.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__P26660_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P26660, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, } } -function scene_systemMenu_MenuOption_dispose__P1582(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_systemMenu_MenuOption__C1576_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__P821_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = undefined; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 916; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_destroy__P821_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 917; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = (s.arg0).fields["card"] = (undefined); - r0 = (s.arg0).fields["icon"] = (undefined); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_MenuOption_dispose__P1582.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__P1582_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P1582, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function controller__setUserEventsEnabled__P746(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - globals._userEventsEnabled___687 = (s.arg0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller__setUserEventsEnabled__P746.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__P746_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller__setUserEventsEnabled__P746, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function scene_systemMenu_sleep__P1600(s) { +function scene_systemMenu_sleep__P4537(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65010,12 +64792,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P1600.info = {"start":9610,"length":51,"line":306,"column":4,"endLine":308,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} +scene_systemMenu_sleep__P4537.info = {"start":9610,"length":51,"line":306,"column":4,"endLine":308,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} -function scene_systemMenu_sleep__P1600_mk(s) { +function scene_systemMenu_sleep__P4537_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P1600, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P4537, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -65023,7 +64805,7 @@ function scene_systemMenu_sleep__P1600_mk(s) { -function scene_systemMenu_toggleConsole__P1599(s) { +function scene_systemMenu_toggleConsole__P4536(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65033,7 +64815,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___1650); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -65043,23 +64825,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__P1689_mk(s); + s.tmp_4 = game_consoleOverlay_setVisible__P2645_mk(s); s.tmp_4.arg0 = false; s.tmp_4.arg1 = undefined; - s.callLocIdx = 1013; s.pc = 3; return s.tmp_4; + s.callLocIdx = 1015; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P1689_mk(s); + s.tmp_0 = game_consoleOverlay_setVisible__P2645_mk(s); s.tmp_0.arg0 = true; s.tmp_0.arg1 = undefined; - s.callLocIdx = 1014; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1016; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = console_log__P258_mk(s); + s.tmp_0 = console_log__P366_mk(s); s.tmp_0.arg0 = "console"; - s.callLocIdx = 1015; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1017; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 2: @@ -65067,12 +64849,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleConsole__P1599.info = {"start":9365,"length":239,"line":297,"column":4,"endLine":304,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} +scene_systemMenu_toggleConsole__P4536.info = {"start":9365,"length":239,"line":297,"column":4,"endLine":304,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} -function scene_systemMenu_toggleConsole__P1599_mk(s) { +function scene_systemMenu_toggleConsole__P4536_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P1599, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P4536, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -65085,7 +64867,7 @@ function scene_systemMenu_toggleConsole__P1599_mk(s) { -function game_consoleOverlay_setVisible__P1689(s) { +function game_consoleOverlay_setVisible__P2645(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65101,7 +64883,7 @@ switch (step) { s.lambdaArgs = null; } s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___1650); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569); s.tmp_5 = r0; r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_4 = r0; @@ -65122,26 +64904,26 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_6 = r0; - globals.consoleStrings___1650 = (s.tmp_6); + globals.consoleStrings___4569 = (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___1649 = (s.arg1); + globals.consoleColor___4568 = (s.arg1); case 5: case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P1689.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__P2645.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__P1689_mk(s) { +function game_consoleOverlay_setVisible__P2645_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P1689, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P2645, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -65158,7 +64940,7 @@ function game_consoleOverlay_setVisible__P1689_mk(s) { -function scene_systemMenu_toggleStats__P1598(s) { +function scene_systemMenu_toggleStats__P4535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65168,20 +64950,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___1271); + r0 = pxsim_numops_toBoolDecr(globals.stats___2521); s.tmp_0 = r0; r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___1271 = (r0); + globals.stats___2521 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleStats__P1598.info = {"start":9295,"length":64,"line":293,"column":4,"endLine":295,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} +scene_systemMenu_toggleStats__P4535.info = {"start":9295,"length":64,"line":293,"column":4,"endLine":295,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} -function scene_systemMenu_toggleStats__P1598_mk(s) { +function scene_systemMenu_toggleStats__P4535_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P1598, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P4535, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -65190,7 +64972,7 @@ function scene_systemMenu_toggleStats__P1598_mk(s) { -function scene_systemMenu_brightnessDown__P1597(s) { +function scene_systemMenu_brightnessDown__P4534(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65200,25 +64982,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_setScreenBrightness__P525_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = globals.brightness___507; + s.tmp_0 = helpers_setScreenBrightness__P1732_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = globals.brightness___1721; s.tmp_1 = r0; r0 = (s.tmp_1 - 10); s.tmp_0.arg1 = r0; - s.callLocIdx = 1011; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1013; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P1597.info = {"start":9200,"length":89,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} +scene_systemMenu_brightnessDown__P4534.info = {"start":9200,"length":89,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} -function scene_systemMenu_brightnessDown__P1597_mk(s) { +function scene_systemMenu_brightnessDown__P4534_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P1597, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P4534, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -65228,7 +65010,7 @@ function scene_systemMenu_brightnessDown__P1597_mk(s) { -function helpers_setScreenBrightness__P525(s) { +function helpers_setScreenBrightness__P1732(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65243,7 +65025,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P75_mk(s); + s.tmp_0 = Math_clamp__P119_mk(s); s.tmp_0.arg0 = 10; s.tmp_0.arg1 = 100; r0 = (s.arg1 | 0); @@ -65252,18 +65034,18 @@ switch (step) { case 1: r0 = s.retval; s.arg1 = (r0); - globals.brightness___507 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___507); + globals.brightness___1721 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___1721); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_setScreenBrightness__P525.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__P1732.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__P525_mk(s) { +function helpers_setScreenBrightness__P1732_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P525, depth: s.depth + 1, + parent: s, fn: helpers_setScreenBrightness__P1732, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -65274,7 +65056,7 @@ function helpers_setScreenBrightness__P525_mk(s) { -function scene_systemMenu_brightnessUp__P1596(s) { +function scene_systemMenu_brightnessUp__P4533(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65284,25 +65066,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_setScreenBrightness__P525_mk(s); - s.tmp_0.arg0 = globals.screen___578; - r0 = globals.brightness___507; + s.tmp_0 = helpers_setScreenBrightness__P1732_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + r0 = globals.brightness___1721; s.tmp_1 = r0; r0 = (s.tmp_1 + 10); s.tmp_0.arg1 = r0; - s.callLocIdx = 1009; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1011; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P1596.info = {"start":9107,"length":87,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} +scene_systemMenu_brightnessUp__P4533.info = {"start":9107,"length":87,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} -function scene_systemMenu_brightnessUp__P1596_mk(s) { +function scene_systemMenu_brightnessUp__P4533_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P1596, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P4533, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -65312,7 +65094,7 @@ function scene_systemMenu_brightnessUp__P1596_mk(s) { -function scene_systemMenu_volumeDown__P1595(s) { +function scene_systemMenu_volumeDown__P4532(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65322,54 +65104,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___27153 = undefined; - s.remainder___27156 = undefined; - s.newVolume___27159 = undefined; - s.tmp_0 = music_volume__P436_mk(s); - s.callLocIdx = 1006; s.pc = 3; return s.tmp_0; + s.v___28779 = undefined; + s.remainder___28782 = undefined; + s.newVolume___28785 = undefined; + s.tmp_0 = music_volume__P1590_mk(s); + s.callLocIdx = 1008; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.v___27153 = (r0); - r0 = (s.v___27153 % 32); - s.remainder___27156 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___27156); + s.v___28779 = (r0); + r0 = (s.v___28779 % 32); + s.remainder___28782 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___28782); if (!r0) { step = 1; continue; } - r0 = s.remainder___27156; + r0 = s.remainder___28782; { step = 2; continue; } case 1: r0 = 32; case 2: // jmp value (already in r0) s.tmp_0 = r0; - r0 = (s.v___27153 - s.tmp_0); - s.newVolume___27159 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P1593_mk(s); - s.tmp_0.arg0 = s.newVolume___27159; - s.callLocIdx = 1007; s.pc = 4; return s.tmp_0; + r0 = (s.v___28779 - s.tmp_0); + s.newVolume___28785 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P4530_mk(s); + s.tmp_0.arg0 = s.newVolume___28785; + s.callLocIdx = 1009; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P1595.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__P4532.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__P1595_mk(s) { +function scene_systemMenu_volumeDown__P4532_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P1595, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P4532, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___27153: undefined, - remainder___27156: undefined, - newVolume___27159: undefined, + v___28779: undefined, + remainder___28782: undefined, + newVolume___28785: undefined, } } -function scene_systemMenu_setVolume__P1593(s) { +function scene_systemMenu_setVolume__P4530(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65383,33 +65165,33 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = music_setVolume__P435_mk(s); + s.tmp_0 = music_setVolume__P1589_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1001; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1003; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = music_playTone__P438_mk(s); + s.tmp_0 = music_playTone__P1591_mk(s); s.tmp_0.arg0 = 440; s.tmp_0.arg1 = 500; - s.callLocIdx = 1002; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1004; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P613_mk(s); + s.tmp_0 = settings_writeNumber__P1826_mk(s); s.tmp_0.arg0 = "#volume"; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1003; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1005; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P1593.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__P4530.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__P1593_mk(s) { +function scene_systemMenu_setVolume__P4530_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P1593, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P4530, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -65419,7 +65201,7 @@ function scene_systemMenu_setVolume__P1593_mk(s) { -function music_playTone__P438(s) { +function music_playTone__P1591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65429,7 +65211,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___26994 = undefined; + s.id___28620 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -65454,7 +65236,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P437_mk(s); + s.tmp_2 = music_playNoteCore__P3997_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.arg1); @@ -65462,7 +65244,7 @@ switch (step) { s.callLocIdx = 77; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_0 = pause__P309_mk(s); + s.tmp_0 = pause__P399_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_0.arg0 = r0; s.callLocIdx = 78; s.pc = 6; return s.tmp_0; @@ -65470,13 +65252,13 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - r0 = (globals.playToneID___440 + 1); + r0 = (globals.playToneID___3999 + 1); s.tmp_0 = r0; - globals.playToneID___440 = (r0); - s.id___26994 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, inline__P27000); + globals.playToneID___3999 = (r0); + s.id___28620 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, inline__P28626); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___26994); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___28620); 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); @@ -65485,17 +65267,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone__P438.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__P1591.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__P438_mk(s) { +function music_playTone__P1591_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P438, depth: s.depth + 1, + parent: s, fn: music_playTone__P1591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___26994: undefined, + id___28620: undefined, arg0: undefined, arg1: undefined, } } @@ -65504,7 +65286,7 @@ function music_playTone__P438_mk(s) { -function inline__P27000(s) { +function inline__P28626(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65514,14 +65296,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___27001 = undefined; - s.now___27011 = undefined; - s.d___27014 = undefined; - s.t___27018 = undefined; + s.pos___28627 = undefined; + s.now___28637 = undefined; + s.d___28640 = undefined; + s.t___28644 = undefined; r0 = pxsim.control.millis(); - s.pos___27001 = (r0); + s.pos___28627 = (r0); case 1: - r0 = (s.caps[0] == globals.playToneID___440); + r0 = (s.caps[0] == globals.playToneID___3999); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -65537,30 +65319,30 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } r0 = pxsim.control.millis(); - s.now___27011 = (r0); - r0 = (s.pos___27001 - s.now___27011); - s.d___27014 = (r0); - s.tmp_0 = Math_min__P79_mk(s); + s.now___28637 = (r0); + r0 = (s.pos___28627 - s.now___28637); + s.d___28640 = (r0); + s.tmp_0 = Math_min__P123_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 500; s.callLocIdx = 79; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.t___27018 = (r0); + s.t___28644 = (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___27018); + r0 = (s.tmp_2 - s.t___28644); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___27001 + s.t___27018); - s.pos___27001 = (r0); - s.tmp_0 = music_playNoteCore__P437_mk(s); - r0 = (s.d___27014 - 1); + r0 = (s.pos___28627 + s.t___28644); + s.pos___28627 = (r0); + s.tmp_0 = music_playNoteCore__P3997_mk(s); + r0 = (s.d___28640 - 1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___27018; + s.tmp_0.arg2 = s.t___28644; s.callLocIdx = 80; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; @@ -65570,16 +65352,16 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P309_mk(s); - r0 = (s.d___27014 + s.t___27018); + s.tmp_2 = pause__P399_mk(s); + r0 = (s.d___28640 + s.t___28644); s.tmp_2.arg0 = r0; s.callLocIdx = 81; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = pause__P309_mk(s); - r0 = (s.d___27014 + s.t___27018); + s.tmp_0 = pause__P399_mk(s); + r0 = (s.d___28640 + s.t___28644); s.tmp_1 = r0; r0 = (s.tmp_1 - 100); s.tmp_0.arg0 = r0; @@ -65593,27 +65375,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P27000.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +inline__P28626.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P27000_mk(s) { +function inline__P28626_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27000, depth: s.depth + 1, + parent: s, fn: inline__P28626, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___27001: undefined, - now___27011: undefined, - d___27014: undefined, - t___27018: undefined, + pos___28627: undefined, + now___28637: undefined, + d___28640: undefined, + t___28644: undefined, } } -function music_playNoteCore__P437(s) { +function music_playNoteCore__P3997(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65623,7 +65405,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___27048 = undefined; + s.buf___28674 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -65631,16 +65413,16 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim.control.createBuffer(12); - s.buf___27048 = (r0); - s.tmp_0 = music_addNote__P457_mk(s); - s.tmp_0.arg0 = s.buf___27048; + s.buf___28674 = (r0); + s.tmp_0 = music_addNote__P4004_mk(s); + s.tmp_0.arg0 = s.buf___28674; 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__P436_mk(s); + s.tmp_1 = music_volume__P1590_mk(s); s.callLocIdx = 75; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; @@ -65649,21 +65431,21 @@ switch (step) { s.callLocIdx = 76; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___27048); + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___28674); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P437.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__P3997.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__P437_mk(s) { +function music_playNoteCore__P3997_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P437, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P3997, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___27048: undefined, + buf___28674: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -65673,7 +65455,7 @@ function music_playNoteCore__P437_mk(s) { -function music_addNote__P457(s) { +function music_addNote__P4004(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65741,12 +65523,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_addNote__P457.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__P4004.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__P457_mk(s) { +function music_addNote__P4004_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P457, depth: s.depth + 1, + parent: s, fn: music_addNote__P4004, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -65767,7 +65549,7 @@ function music_addNote__P457_mk(s) { -function music_setVolume__P435(s) { +function music_setVolume__P1589(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65781,7 +65563,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P75_mk(s); + s.tmp_0 = Math_clamp__P119_mk(s); s.tmp_0.arg0 = 0; s.tmp_0.arg1 = 255; r0 = (s.arg0 | 0); @@ -65789,8 +65571,8 @@ switch (step) { s.callLocIdx = 72; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.globalVolume___430 = (r0); - r0 = (globals.globalVolume___430 > 0); + globals.globalVolume___3992 = (r0); + r0 = (globals.globalVolume___3992 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -65806,12 +65588,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_setVolume__P435.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__P1589.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__P435_mk(s) { +function music_setVolume__P1589_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P435, depth: s.depth + 1, + parent: s, fn: music_setVolume__P1589, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -65822,7 +65604,7 @@ function music_setVolume__P435_mk(s) { -function music_enableAmp__P433(s) { +function music_enableAmp__P3995(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65840,12 +65622,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_enableAmp__P433.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__P3995.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__P433_mk(s) { +function music_enableAmp__P3995_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P433, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P3995, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -65854,7 +65636,7 @@ function music_enableAmp__P433_mk(s) { -function scene_systemMenu_volumeUp__P1594(s) { +function scene_systemMenu_volumeUp__P4531(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65864,47 +65646,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___26962 = undefined; - s.remainder___26965 = undefined; - s.newVolume___26968 = undefined; - s.tmp_0 = music_volume__P436_mk(s); - s.callLocIdx = 1004; s.pc = 1; return s.tmp_0; + s.v___28588 = undefined; + s.remainder___28591 = undefined; + s.newVolume___28594 = undefined; + s.tmp_0 = music_volume__P1590_mk(s); + s.callLocIdx = 1006; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.v___26962 = (r0); - r0 = (s.v___26962 % 32); - s.remainder___26965 = (r0); - r0 = (s.v___26962 + 32); + s.v___28588 = (r0); + r0 = (s.v___28588 % 32); + s.remainder___28591 = (r0); + r0 = (s.v___28588 + 32); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___26965); - s.newVolume___26968 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P1593_mk(s); - s.tmp_0.arg0 = s.newVolume___26968; - s.callLocIdx = 1005; s.pc = 2; return s.tmp_0; + r0 = (s.tmp_0 - s.remainder___28591); + s.newVolume___28594 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P4530_mk(s); + s.tmp_0.arg0 = s.newVolume___28594; + s.callLocIdx = 1007; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P1594.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__P4531.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__P1594_mk(s) { +function scene_systemMenu_volumeUp__P4531_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P1594, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P4531, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___26962: undefined, - remainder___26965: undefined, - newVolume___26968: undefined, + v___28588: undefined, + remainder___28591: undefined, + newVolume___28594: undefined, } } -function scene_systemMenu_MenuOption_constructor__P1584(s) { +function game_consoleOverlay_isVisible__P2643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65914,40 +65696,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.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C1576_VT)) failedCast(r0); - r0 = (s.arg0).fields["iconImage"] = (s.arg1); - r0 = (s.arg0).fields["getText"] = (s.arg2); - r0 = (s.arg0).fields["action"] = (s.arg3); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___4569); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) + default: oops() +} } } +game_consoleOverlay_isVisible__P2643.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__P2643_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_consoleOverlay_isVisible__P2643, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, +} } + + + + + +function scene_systemMenu_closeMenu__P2621(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___4526); + if (!r0) { step = 1; continue; } + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P2620_mk(s); + s.tmp_0.arg0 = globals.instance___4526; + s.callLocIdx = 1018; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + globals.instance___4526 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P1951_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1019; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = game_popScene__P2529_mk(s); + s.callLocIdx = 1020; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_constructor__P1584.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_closeMenu__P2621.info = {"start":9667,"length":216,"line":310,"column":4,"endLine":317,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} -function scene_systemMenu_MenuOption_constructor__P1584_mk(s) { +function scene_systemMenu_closeMenu__P2621_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P1584, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P2621, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, + tmp_0: undefined, } } -function helpers_screenBrightness__P526(s) { +function scene_systemMenu_PauseMenu_dispose__P2620(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65961,17 +65783,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = globals.brightness___507; + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_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__P104_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = inline__P28291; + s.callLocIdx = 999; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.arg0).fields["options"] = (undefined); + case 1: + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_screenBrightness__P526.info = {"start":6459,"length":98,"line":217,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} +scene_systemMenu_PauseMenu_dispose__P2620.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} -function helpers_screenBrightness__P526_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P2620_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P526, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P2620, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -65979,7 +65819,7 @@ function helpers_screenBrightness__P526_mk(s) { -function music_volume__P436(s) { +function inline__P28291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -65989,29 +65829,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P434_mk(s); - s.callLocIdx = 74; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = scene_systemMenu_MenuOption_dispose__P2613_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 998; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals.globalVolume___430; + r0 = undefined; return leave(s, r0) default: oops() } } } -music_volume__P436.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +inline__P28291.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} -function music_volume__P436_mk(s) { +function inline__P28291_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P436, depth: s.depth + 1, + parent: s, fn: inline__P28291, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function music_initVolume__P434(s) { +function scene_systemMenu_MenuOption_dispose__P2613(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66021,38 +65867,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___430 === null); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0); + r0 = s.arg0.fields["card"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.globalVolume___430 = (0); - s.tmp_0 = music_setVolume__P435_mk(s); - r0 = pxsim_pxtcore.getConfig(59, 128); - s.tmp_0.arg0 = r0; - s.callLocIdx = 71; s.pc = 3; return s.tmp_0; + s.tmp_1 = Sprite_destroy__P2084_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = undefined; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 918; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; + s.tmp_0 = Sprite_destroy__P2084_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 919; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = (s.arg0).fields["card"] = (undefined); + r0 = (s.arg0).fields["icon"] = (undefined); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -music_initVolume__P434.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +scene_systemMenu_MenuOption_dispose__P2613.info = {"start":1812,"length":216,"line":77,"column":8,"endLine":84,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} -function music_initVolume__P434_mk(s) { +function scene_systemMenu_MenuOption_dispose__P2613_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P434, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P2613, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, } } -function scene_systemMenu_PauseMenu_constructor__P1592(s) { +function controller__setUserEventsEnabled__P1951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66064,59 +65929,28 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C1585_VT)) failedCast(r0); - r0 = (s.arg0).fields["generator"] = (s.arg1); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P1604_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___1616); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 3; - s.tmp_1.arg2 = undefined; - s.tmp_1.arg3 = undefined; - s.callLocIdx = 928; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = (s.arg0).fields["theme"] = (s.tmp_2); - r0 = (s.arg0).fields["scrollRow"] = (0); - r0 = (s.arg0).fields["scrollOffset"] = (0); - r0 = (s.arg0).fields["scrollTarget"] = (0); + globals._userEventsEnabled___4106 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P1592.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"]} +controller__setUserEventsEnabled__P1951.info = {"start":19246,"length":101,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} -function scene_systemMenu_PauseMenu_constructor__P1592_mk(s) { +function controller__setUserEventsEnabled__P1951_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P1592, depth: s.depth + 1, + parent: s, fn: controller__setUserEventsEnabled__P1951, 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 scene_systemMenu_buildMenuTheme__P1604(s) { +function scene_systemMenu_MenuOption_constructor__P2607(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66126,7 +65960,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___27199 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -66134,131 +65967,22 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___578); - 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___27199 = (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___530; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.arg2 = (s.tmp_1); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - s.tmp_1 = image_doubledFont__P534_mk(s); - s.tmp_1.arg0 = s.arg2; - s.callLocIdx = 1034; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.arg3 = (s.tmp_2); - r0 = pxsim_pxtrt.mkMap(); - s.tmp_0 = r0; - r0 = pxsim_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___27199); - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_3 = r0; - r0 = (s.cardsPerRow___27199 * s.arg0); - s.tmp_5 = r0; - r0 = (s.cardsPerRow___27199 - 1); - s.tmp_7 = r0; - r0 = (s.tmp_7 * s.arg1); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "padding", s.tmp_1); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoFont", s.arg2); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerFont", s.arg3); - s.tmp_11 = if_charHeight_1_mk(s); - s.tmp_11.arg0 = s.arg3; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charHeight"); - } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 1035; s.pc = 6; return s.tmp_11; } - } - case 6: - r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_10 + 2); - s.tmp_9 = r0; - r0 = (s.tmp_9 + s.arg1); - s.tmp_8 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsTop", s.tmp_8); - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_14 = r0; - s.tmp_16 = if_charHeight_1_mk(s); - s.tmp_16.arg0 = s.arg2; - if (!s.tmp_16.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_16.arg0, "charHeight"); - } else { - s.tmp_16.fn = s.tmp_16.arg0.vtable.iface["charHeight"]; - if (s.tmp_16.fn == null) { s.retval = s.tmp_16.arg0.fields["charHeight"]; } - else if (!s.tmp_16.fn.isGetter) { s.retval = bind(s.tmp_16); } - else { s.callLocIdx = 1036; s.pc = 7; return s.tmp_16; } - } - case 7: - r0 = s.retval; - s.tmp_15 = r0; - r0 = (s.tmp_14 - s.tmp_15); - s.tmp_13 = r0; - r0 = (s.tmp_13 - 2); - s.tmp_12 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoTop", s.tmp_12); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerText", "PAUSED"); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___1619); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___1622); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___1616); - r0 = s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0); + r0 = (s.arg0).fields["iconImage"] = (s.arg1); + r0 = (s.arg0).fields["getText"] = (s.arg2); + r0 = (s.arg0).fields["action"] = (s.arg3); + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P1604.info = {"start":11192,"length":906,"line":346,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} +scene_systemMenu_MenuOption_constructor__P2607.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_buildMenuTheme__P1604_mk(s) { +function scene_systemMenu_MenuOption_constructor__P2607_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P1604, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_constructor__P2607, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - cardsPerRow___27199: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -66269,7 +65993,7 @@ function scene_systemMenu_buildMenuTheme__P1604_mk(s) { -function image_doubledFont__P534(s) { +function helpers_screenBrightness__P1733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66283,31 +66007,57 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P535_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 2; - s.callLocIdx = 99; s.pc = 1; return s.tmp_0; + r0 = globals.brightness___1721; + return leave(s, r0) + default: oops() +} } } +helpers_screenBrightness__P1733.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__P1733_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_screenBrightness__P1733, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function music_volume__P1590(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = music_initVolume__P3996_mk(s); + s.callLocIdx = 74; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = globals.globalVolume___3992; return leave(s, r0) default: oops() } } } -image_doubledFont__P534.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} +music_volume__P1590.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} -function image_doubledFont__P534_mk(s) { +function music_volume__P1590_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P534, depth: s.depth + 1, + parent: s, fn: music_volume__P1590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, } } -function image_scaledFont__P535(s) { +function music_initVolume__P3996(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66317,143 +66067,38 @@ 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.arg1 | 0); - s.arg1 = (r0); - r0 = (s.arg1 < 2); + r0 = (globals.globalVolume___3992 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 5; continue; } + globals.globalVolume___3992 = (0); + s.tmp_0 = music_setVolume__P1589_mk(s); + r0 = pxsim_pxtcore.getConfig(59, 128); + s.tmp_0.arg0 = r0; + s.callLocIdx = 71; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; case 1: case 2: - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = s.arg0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 100; s.pc = 6; return s.tmp_4; } - } - case 6: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 * s.arg1); - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charWidth", s.tmp_2); - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.arg0; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); - } else { - s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; - if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } - else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 101; s.pc = 7; return s.tmp_7; } - } - case 7: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 * s.arg1); - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charHeight", s.tmp_5); - s.tmp_9 = if_data_1_mk(s); - s.tmp_9.arg0 = s.arg0; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "data"); - } else { - s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["data"]; - if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["data"]; } - else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 102; s.pc = 8; return s.tmp_9; } - } - case 8: - r0 = s.retval; - s.tmp_8 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "data", s.tmp_8); - s.tmp_11 = if_multiplier_1_mk(s); - s.tmp_11.arg0 = s.arg0; - if (!s.tmp_11.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "multiplier"); - } else { - s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["multiplier"]; - if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["multiplier"]; } - else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 103; s.pc = 9; return s.tmp_11; } - } - case 9: - r0 = s.retval; - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 3; continue; } - s.tmp_12 = r0 = s.arg1; - s.tmp_14 = if_multiplier_1_mk(s); - s.tmp_14.arg0 = s.arg0; - if (!s.tmp_14.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "multiplier"); - } else { - s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["multiplier"]; - if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["multiplier"]; } - else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } - else { s.callLocIdx = 104; s.pc = 10; return s.tmp_14; } - } - case 10: - r0 = s.retval; - s.tmp_13 = r0; - r0 = (s.tmp_12 * s.tmp_13); - { step = 4; continue; } - case 3: - r0 = s.arg1; - case 4: - // jmp value (already in r0) - s.tmp_15 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "multiplier", s.tmp_15); - r0 = s.tmp_1; - case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -image_scaledFont__P535.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} +music_initVolume__P3996.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} -function image_scaledFont__P535_mk(s) { +function music_initVolume__P3996_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P535, depth: s.depth + 1, + parent: s, fn: music_initVolume__P3996, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - arg0: undefined, - arg1: undefined, } } -function scene_systemMenu_PauseMenu_show__P1586(s) { +function scene_systemMenu_PauseMenu_show__P2616(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66463,34 +66108,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___26181 = undefined; - s.i___26182 = undefined; + s.current___27825 = undefined; + s.i___27826 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C1585_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_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 = 929; s.pc = 3; return s.tmp_2; + s.callLocIdx = 931; 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 = 929; s.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 929; s.pc = 3; return s.tmp_2;; } - else { s.callLocIdx = 929; 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 = 931; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 931; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 931; 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___26182 = (0); + s.i___27826 = (0); case 1: - s.tmp_1 = r0 = s.i___26182; + s.tmp_1 = r0 = s.i___27826; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -66501,22 +66146,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___26182); - s.current___26181 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P1577_mk(s); - s.tmp_0.arg0 = s.current___26181; - s.callLocIdx = 930; s.pc = 4; return s.tmp_0; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___27826); + s.current___27825 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P2608_mk(s); + s.tmp_0.arg0 = s.current___27825; + s.callLocIdx = 932; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P1580_mk(s); - s.tmp_0.arg0 = s.current___26181; + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P2611_mk(s); + s.tmp_0.arg0 = s.current___27825; r0 = s.arg0.fields["theme"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 931; s.pc = 5; return s.tmp_0; + s.callLocIdx = 933; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_position__P1578_mk(s); - s.tmp_0.arg0 = s.current___26181; + s.tmp_0 = scene_systemMenu_MenuOption_position__P2609_mk(s); + s.tmp_0.arg0 = s.current___27825; s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; @@ -66526,12 +66171,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 = 932; s.pc = 7; return s.tmp_2; } + else { s.callLocIdx = 934; s.pc = 7; return s.tmp_2; } } case 7: r0 = s.retval; s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___26182; + s.tmp_5 = r0 = s.i___27826; s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_7.arg0 = r0; @@ -66541,7 +66186,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 = 933; s.pc = 8; return s.tmp_7; } + else { s.callLocIdx = 935; s.pc = 8; return s.tmp_7; } } case 8: r0 = s.retval; @@ -66557,7 +66202,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 = 934; s.pc = 9; return s.tmp_10; } + else { s.callLocIdx = 936; s.pc = 9; return s.tmp_10; } } case 9: r0 = s.retval; @@ -66571,7 +66216,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 = 935; s.pc = 10; return s.tmp_12; } + else { s.callLocIdx = 937; s.pc = 10; return s.tmp_12; } } case 10: r0 = s.retval; @@ -66591,12 +66236,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 = 936; s.pc = 11; return s.tmp_14; } + else { s.callLocIdx = 938; s.pc = 11; return s.tmp_14; } } case 11: r0 = s.retval; s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___26182; + s.tmp_17 = r0 = s.i___27826; s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_19.arg0 = r0; @@ -66606,7 +66251,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 = 937; s.pc = 12; return s.tmp_19; } + else { s.callLocIdx = 939; s.pc = 12; return s.tmp_19; } } case 12: r0 = s.retval; @@ -66622,7 +66267,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 = 938; s.pc = 13; return s.tmp_22; } + else { s.callLocIdx = 940; s.pc = 13; return s.tmp_22; } } case 13: r0 = s.retval; @@ -66636,7 +66281,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 = 939; s.pc = 14; return s.tmp_24; } + else { s.callLocIdx = 941; s.pc = 14; return s.tmp_24; } } case 14: r0 = s.retval; @@ -66647,116 +66292,116 @@ switch (step) { s.tmp_15 = r0; r0 = (s.tmp_13 + s.tmp_15); s.tmp_0.arg2 = r0; - s.callLocIdx = 940; s.pc = 6; return s.tmp_0; + s.callLocIdx = 942; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___26182 + 1); - s.i___26182 = (r0); + r0 = (s.i___27826 + 1); + s.i___27826 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = controller__setUserEventsEnabled__P746_mk(s); + s.tmp_0 = controller__setUserEventsEnabled__P1951_mk(s); s.tmp_0.arg0 = false; - s.callLocIdx = 941; s.pc = 15; return s.tmp_0; + s.callLocIdx = 943; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P26250); + r0 = pxsim_pxtcore_mkAction(1, inline__P27889); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 943; s.pc = 16; return s.tmp_1; + s.callLocIdx = 945; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P26271); + r0 = pxsim_pxtcore_mkAction(1, inline__P27909); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.A___665; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.A___1874; s.tmp_1.arg1 = 2052; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 945; s.pc = 17; return s.tmp_1; + s.callLocIdx = 947; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P699_mk(s); - s.tmp_0.arg0 = globals.B___667; + s.tmp_0 = controller_Button_onEvent__P1907_mk(s); + s.tmp_0.arg0 = globals.B___1875; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P26301; - s.callLocIdx = 947; s.pc = 18; return s.tmp_0; + s.tmp_0.arg2 = inline__P27938; + s.callLocIdx = 949; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P699_mk(s); - s.tmp_0.arg0 = globals.menu___677; + s.tmp_0 = controller_Button_onEvent__P1907_mk(s); + s.tmp_0.arg0 = globals.menu___1880; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P26306; - s.callLocIdx = 949; s.pc = 19; return s.tmp_0; + s.tmp_0.arg2 = inline__P27943; + s.callLocIdx = 951; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P26311); + r0 = pxsim_pxtcore_mkAction(1, inline__P27948); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.up___671; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.up___1877; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 953; s.pc = 20; return s.tmp_1; + s.callLocIdx = 955; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P26323); + r0 = pxsim_pxtcore_mkAction(1, inline__P27960); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.left___669; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.left___1876; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 956; s.pc = 21; return s.tmp_1; + s.callLocIdx = 958; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P26332); + r0 = pxsim_pxtcore_mkAction(1, inline__P27969); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.down___675; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.down___1879; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 960; s.pc = 22; return s.tmp_1; + s.callLocIdx = 962; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P26348); + r0 = pxsim_pxtcore_mkAction(1, inline__P27985); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P699_mk(s); - s.tmp_1.arg0 = globals.right___673; + s.tmp_1 = controller_Button_onEvent__P1907_mk(s); + s.tmp_1.arg0 = globals.right___1878; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 963; s.pc = 23; return s.tmp_1; + s.callLocIdx = 965; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P26360); + r0 = pxsim_pxtcore_mkAction(1, inline__P27997); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P1306_mk(s); + s.tmp_1 = game_onShade__P2539_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 966; s.pc = 24; return s.tmp_1; + s.callLocIdx = 968; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P1588_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 967; s.pc = 25; return s.tmp_0; + s.callLocIdx = 969; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P1586.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__P2616.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__P1586_mk(s) { +function scene_systemMenu_PauseMenu_show__P2616_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P1586, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P2616, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -66783,8 +66428,8 @@ function scene_systemMenu_PauseMenu_show__P1586_mk(s) { tmp_22: undefined, tmp_23: undefined, tmp_24: undefined, - current___26181: undefined, - i___26182: undefined, + current___27825: undefined, + i___27826: undefined, arg0: undefined, } } @@ -66792,7 +66437,7 @@ function scene_systemMenu_PauseMenu_show__P1586_mk(s) { -function inline__P26250(s) { +function inline__P27889(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66830,7 +66475,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P1581_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P2612_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -66838,7 +66483,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 = 942; s.pc = 6; return s.tmp_8; + s.callLocIdx = 944; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; case 5: @@ -66846,12 +66491,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26250.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27889.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26250_mk(s) { +function inline__P27889_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26250, depth: s.depth + 1, + parent: s, fn: inline__P27889, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -66870,7 +66515,7 @@ function inline__P26250_mk(s) { -function inline__P26271(s) { +function inline__P27909(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66908,7 +66553,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P1581_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P2612_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -66916,7 +66561,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 = 944; s.pc = 6; return s.tmp_8; + s.callLocIdx = 946; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; r0 = s.caps[0].fields["options"]; @@ -66932,12 +66577,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P26271.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27909.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26271_mk(s) { +function inline__P27909_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26271, depth: s.depth + 1, + parent: s, fn: inline__P27909, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -66956,7 +66601,7 @@ function inline__P26271_mk(s) { -function inline__P26301(s) { +function inline__P27938(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66966,20 +66611,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P1601_mk(s); - s.callLocIdx = 946; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P2621_mk(s); + s.callLocIdx = 948; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26301.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27938.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26301_mk(s) { +function inline__P27938_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26301, depth: s.depth + 1, + parent: s, fn: inline__P27938, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -66988,7 +66633,7 @@ function inline__P26301_mk(s) { -function inline__P26306(s) { +function inline__P27943(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -66998,20 +66643,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P1601_mk(s); - s.callLocIdx = 948; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P2621_mk(s); + s.callLocIdx = 950; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26306.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27943.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26306_mk(s) { +function inline__P27943_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26306, depth: s.depth + 1, + parent: s, fn: inline__P27943, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -67020,7 +66665,7 @@ function inline__P26306_mk(s) { -function inline__P26311(s) { +function inline__P27948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67030,9 +66675,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P1588_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P78_mk(s); + s.tmp_1 = Math_max__P122_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; @@ -67045,30 +66690,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 = 950; s.pc = 3; return s.tmp_4; } + else { s.callLocIdx = 952; 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 = 951; s.pc = 2; return s.tmp_1; + s.callLocIdx = 953; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 952; 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() } } } -inline__P26311.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27948.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26311_mk(s) { +function inline__P27948_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26311, depth: s.depth + 1, + parent: s, fn: inline__P27948, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67081,7 +66726,7 @@ function inline__P26311_mk(s) { -function inline__P26323(s) { +function inline__P27960(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67091,31 +66736,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P1588_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P78_mk(s); + s.tmp_1 = Math_max__P122_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 = 954; s.pc = 2; return s.tmp_1; + s.callLocIdx = 956; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 955; s.pc = 1; return s.tmp_0; + s.callLocIdx = 957; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26323.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27960.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26323_mk(s) { +function inline__P27960_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26323, depth: s.depth + 1, + parent: s, fn: inline__P27960, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67126,7 +66771,7 @@ function inline__P26323_mk(s) { -function inline__P26332(s) { +function inline__P27969(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67136,9 +66781,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P1588_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P79_mk(s); + s.tmp_1 = Math_min__P123_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -67156,30 +66801,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 = 957; s.pc = 3; return s.tmp_6; } + else { s.callLocIdx = 959; 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 = 958; s.pc = 2; return s.tmp_1; + s.callLocIdx = 960; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 959; s.pc = 1; return s.tmp_0; + s.callLocIdx = 961; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26332.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27969.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26332_mk(s) { +function inline__P27969_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26332, depth: s.depth + 1, + parent: s, fn: inline__P27969, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67194,7 +66839,7 @@ function inline__P26332_mk(s) { -function inline__P26348(s) { +function inline__P27985(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67204,9 +66849,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P1588_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P2618_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P79_mk(s); + s.tmp_1 = Math_min__P123_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -67217,23 +66862,23 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 961; s.pc = 2; return s.tmp_1; + s.callLocIdx = 963; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 962; s.pc = 1; return s.tmp_0; + s.callLocIdx = 964; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26348.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27985.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26348_mk(s) { +function inline__P27985_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26348, depth: s.depth + 1, + parent: s, fn: inline__P27985, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67246,7 +66891,7 @@ function inline__P26348_mk(s) { -function inline__P26360(s) { +function inline__P27997(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67256,26 +66901,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P1587_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P2617_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 964; s.pc = 1; return s.tmp_0; + s.callLocIdx = 966; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P1589_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P2619_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 965; s.pc = 2; return s.tmp_0; + s.callLocIdx = 967; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P26360.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P27997.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P26360_mk(s) { +function inline__P27997_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P26360, depth: s.depth + 1, + parent: s, fn: inline__P27997, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -67284,7 +66929,7 @@ function inline__P26360_mk(s) { -function scene_systemMenu_PauseMenu_drawText__P1589(s) { +function scene_systemMenu_PauseMenu_drawText__P2619(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67299,7 +66944,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C1585_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -67311,11 +66956,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_3 = helpers_imageFillRect__P517_mk(s); - s.tmp_3.arg0 = globals.screen___578; + s.tmp_3 = helpers_imageFillRect__P1725_mk(s); + s.tmp_3.arg0 = globals.screen___1799; s.tmp_3.arg1 = 0; s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_3.arg3 = r0; s.tmp_5 = if_cardsTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -67326,7 +66971,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 = 978; s.pc = 5; return s.tmp_5; } + else { s.callLocIdx = 980; s.pc = 5; return s.tmp_5; } } case 5: r0 = s.retval; @@ -67334,11 +66979,11 @@ switch (step) { r0 = (s.tmp_4 - 2); s.tmp_3.arg4 = r0; s.tmp_3.arg5 = 15; - s.callLocIdx = 979; s.pc = 4; return s.tmp_3; + s.callLocIdx = 981; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P540_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrintCenter__P1756_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_1 = if_headerText_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -67348,7 +66993,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 = 980; s.pc = 7; return s.tmp_1; } + else { s.callLocIdx = 982; s.pc = 7; return s.tmp_1; } } case 7: r0 = s.retval; @@ -67364,16 +67009,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 = 981; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 983; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 982; s.pc = 6; return s.tmp_0; + s.callLocIdx = 984; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = 0; s.tmp_2 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -67384,16 +67029,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 = 983; s.pc = 10; return s.tmp_2; } + else { s.callLocIdx = 985; 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___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); + r0 = pxsim_ImageMethods.height(globals.screen___1799); s.tmp_4 = r0; s.tmp_6 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -67404,7 +67049,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 = 984; s.pc = 11; return s.tmp_6; } + else { s.callLocIdx = 986; s.pc = 11; return s.tmp_6; } } case 11: r0 = s.retval; @@ -67414,11 +67059,11 @@ switch (step) { r0 = (s.tmp_3 + 6); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 15; - s.callLocIdx = 985; s.pc = 9; return s.tmp_0; + s.callLocIdx = 987; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P517_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imageFillRect__P1725_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_1 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -67428,7 +67073,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 = 986; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 988; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; @@ -67442,12 +67087,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 = 987; s.pc = 14; return s.tmp_2; } + else { s.callLocIdx = 989; s.pc = 14; return s.tmp_2; } } case 14: r0 = s.retval; s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_3 = r0; s.tmp_6 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -67458,7 +67103,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 = 988; s.pc = 15; return s.tmp_6; } + else { s.callLocIdx = 990; s.pc = 15; return s.tmp_6; } } case 15: r0 = s.retval; @@ -67477,7 +67122,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 = 989; s.pc = 17; return s.tmp_9; } + else { s.callLocIdx = 991; s.pc = 17; return s.tmp_9; } } case 17: r0 = s.retval; @@ -67488,7 +67133,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 = 990; s.pc = 16; return s.tmp_8; } + else { s.callLocIdx = 992; s.pc = 16; return s.tmp_8; } } case 16: r0 = s.retval; @@ -67496,11 +67141,11 @@ switch (step) { r0 = (s.tmp_7 + 1); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 991; s.pc = 12; return s.tmp_0; + s.callLocIdx = 993; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P540_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrintCenter__P1756_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_1 = if_getText_1_mk(s); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; @@ -67510,12 +67155,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 = 992; s.pc = 19; return s.tmp_1; + s.callLocIdx = 994; 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 = 992; s.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 992; s.pc = 19; return s.tmp_1;; } - else { s.callLocIdx = 992; 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 = 994; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 994; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 994; s.pc = 19; return s.tmp_1; } } case 19: r0 = s.retval; @@ -67529,7 +67174,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 = 993; s.pc = 20; return s.tmp_5; } + else { s.callLocIdx = 995; s.pc = 20; return s.tmp_5; } } case 20: r0 = s.retval; @@ -67546,12 +67191,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 = 994; s.pc = 21; return s.tmp_6; } + else { s.callLocIdx = 996; s.pc = 21; return s.tmp_6; } } case 21: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 995; s.pc = 18; return s.tmp_0; + s.callLocIdx = 997; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 3: @@ -67559,12 +67204,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P1589.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__P2619.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__P1589_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P2619_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P1589, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P2619, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67583,7 +67228,7 @@ function scene_systemMenu_PauseMenu_drawText__P1589_mk(s) { -function helpers_imagePrintCenter__P540(s) { +function helpers_imagePrintCenter__P1756(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67593,8 +67238,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___26452 = undefined; - s.x___26458 = undefined; + s.w___28084 = undefined; + s.x___28090 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -67609,7 +67254,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P533_mk(s); + s.tmp_2 = image_getFontForText__P1744_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 105; s.pc = 3; return s.tmp_2; case 3: @@ -67633,17 +67278,17 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 * s.tmp_1); - s.w___26452 = (r0); + s.w___28084 = (r0); r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___26452); + r0 = (s.tmp_1 - s.w___28084); s.tmp_0 = r0; r0 = (s.tmp_0 / 2); - s.x___26458 = (r0); - s.tmp_0 = helpers_imagePrint__P541_mk(s); + s.x___28090 = (r0); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___26458; + s.tmp_0.arg2 = s.x___28090; s.tmp_0.arg3 = s.arg2; s.tmp_0.arg4 = s.arg3; s.tmp_0.arg5 = s.arg4; @@ -67655,18 +67300,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P540.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__P1756.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__P540_mk(s) { +function helpers_imagePrintCenter__P1756_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P540, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P1756, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - w___26452: undefined, - x___26458: undefined, + w___28084: undefined, + x___28090: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -67678,7 +67323,7 @@ function helpers_imagePrintCenter__P540_mk(s) { -function scene_systemMenu_PauseMenu_setSelection__P1588(s) { +function scene_systemMenu_PauseMenu_setSelection__P2618(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67694,7 +67339,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C1585_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -67714,7 +67359,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__P1581_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P2612_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -67722,7 +67367,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 = 975; s.pc = 10; return s.tmp_6; + s.callLocIdx = 977; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; case 3: @@ -67736,9 +67381,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C694_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___665; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C694_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = controller_Button__C1900_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___1874; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C1900_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: @@ -67753,7 +67398,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P1581_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P2612_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -67761,14 +67406,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 = 976; s.pc = 12; return s.tmp_6; + s.callLocIdx = 978; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; case 7: case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P1591_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P4529_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 977; s.pc = 13; return s.tmp_0; + s.callLocIdx = 979; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 9: @@ -67776,12 +67421,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P1588.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__P2618.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__P1588_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P2618_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P1588, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P2618, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67800,7 +67445,7 @@ function scene_systemMenu_PauseMenu_setSelection__P1588_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P1591(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P4529(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67810,13 +67455,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___26606 = undefined; + s.row___28237 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C1585_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0); r0 = s.arg0.fields["selection"]; s.tmp_0 = r0; s.tmp_2 = if_cardsPerRow_1_mk(s); @@ -67828,23 +67473,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 = 998; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1000; 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___26606 = (r0); + s.row___28237 = (r0); r0 = s.arg0.fields["scrollRow"]; s.tmp_1 = r0; - r0 = (s.row___26606 === s.tmp_1); + r0 = (s.row___28237 === 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___26606 - 1); + r0 = (s.row___28237 - 1); s.tmp_2 = r0; r0 = s.arg0.fields["scrollRow"]; s.tmp_3 = r0; @@ -67859,7 +67504,7 @@ switch (step) { case 4: r0 = s.arg0.fields["scrollRow"]; s.tmp_6 = r0; - r0 = (s.row___26606 > s.tmp_6); + r0 = (s.row___28237 > s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } @@ -67890,7 +67535,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 = 999; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 1001; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; @@ -67904,7 +67549,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 = 1000; s.pc = 10; return s.tmp_7; } + else { s.callLocIdx = 1002; s.pc = 10; return s.tmp_7; } } case 10: r0 = s.retval; @@ -67919,12 +67564,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P1591.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__P4529.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__P1591_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P4529_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P1591, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P4529, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -67936,7 +67581,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P1591_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___26606: undefined, + row___28237: undefined, arg0: undefined, } } @@ -67944,7 +67589,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P1591_mk(s) { -function scene_systemMenu_PauseMenu_onUpdate__P1587(s) { +function scene_systemMenu_PauseMenu_onUpdate__P2617(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -67954,22 +67599,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___26474 = undefined; - s.i___26478 = undefined; - s.dt___26507 = undefined; + s.t___28106 = undefined; + s.i___28110 = undefined; + s.dt___28139 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C1585_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0); r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 / 250); - s.t___26474 = (r0); - s.i___26478 = (0); + s.t___28106 = (r0); + s.i___28110 = (0); case 1: - s.tmp_1 = r0 = s.i___26478; + s.tmp_1 = r0 = s.i___28110; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -67978,13 +67623,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__P1579_mk(s); + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P2610_mk(s); r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___26478); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___28110); s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___26474; - s.tmp_11 = r0 = s.i___26478; + s.tmp_8 = r0 = s.t___28106; + s.tmp_11 = r0 = s.i___28110; s.tmp_13 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_13.arg0 = r0; @@ -67994,7 +67639,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 = 968; s.pc = 11; return s.tmp_13; } + else { s.callLocIdx = 970; s.pc = 11; return s.tmp_13; } } case 11: r0 = s.retval; @@ -68009,15 +67654,15 @@ switch (step) { s.tmp_6 = r0; r0 = (2 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 969; s.pc = 10; return s.tmp_4; + s.callLocIdx = 971; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - r0 = (s.i___26478 + 1); - s.i___26478 = (r0); + r0 = (s.i___28110 + 1); + s.i___28110 = (r0); { step = 1; continue; } case 2: - s.tmp_1 = game_currentScene__P961_mk(s); - s.callLocIdx = 970; s.pc = 12; return s.tmp_1; + s.tmp_1 = game_currentScene__P2524_mk(s); + s.callLocIdx = 972; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; r0 = r0.fields["eventContext"]; @@ -68025,7 +67670,7 @@ switch (step) { r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); - s.dt___26507 = (r0); + s.dt___28139 = (r0); r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -68037,7 +67682,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___26507 * 100); + r0 = (s.dt___28139 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; @@ -68055,7 +67700,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___26507 * 100); + r0 = (s.dt___28139 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 - s.tmp_6); s.tmp_4 = r0; @@ -68065,14 +67710,14 @@ switch (step) { { step = 9; continue; } case 5: case 6: - s.tmp_2 = Math_abs__P76_mk(s); + s.tmp_2 = Math_abs__P120_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 = 972; s.pc = 13; return s.tmp_2; + s.callLocIdx = 974; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -68085,16 +67730,16 @@ switch (step) { r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); case 7: case 8: - s.tmp_0 = scene_Camera_offsetY__P1131_mk(s); - s.tmp_1 = game_currentScene__P961_mk(s); - s.callLocIdx = 973; s.pc = 15; return s.tmp_1; + s.tmp_0 = scene_Camera_offsetY__P2360_mk(s); + s.tmp_1 = game_currentScene__P2524_mk(s); + s.callLocIdx = 975; 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 = 974; s.pc = 14; return s.tmp_0; + s.callLocIdx = 976; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 9: @@ -68102,12 +67747,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_onUpdate__P1587.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__P2617.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__P1587_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P2617_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P1587, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P2617, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -68123,9 +67768,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P1587_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - t___26474: undefined, - i___26478: undefined, - dt___26507: undefined, + t___28106: undefined, + i___28110: undefined, + dt___28139: undefined, arg0: undefined, } } @@ -68133,7 +67778,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P1587_mk(s) { -function scene_systemMenu_MenuOption_setOffset__P1579(s) { +function scene_systemMenu_MenuOption_setOffset__P2610(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68149,40 +67794,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C1576_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P801_mk(s); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P2064_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 = 911; s.pc = 1; return s.tmp_0; + s.callLocIdx = 913; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P772_mk(s); + s.tmp_1 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 912; s.pc = 3; return s.tmp_1; + s.callLocIdx = 914; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 913; s.pc = 2; return s.tmp_0; + s.callLocIdx = 915; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P1579.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__P2610.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__P1579_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P2610_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P1579, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P2610, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -68194,7 +67839,7 @@ function scene_systemMenu_MenuOption_setOffset__P1579_mk(s) { -function scene_systemMenu_MenuOption_setState__P1581(s) { +function scene_systemMenu_MenuOption_setState__P2612(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68210,7 +67855,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C1576_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0); r0 = s.arg0.fields["state"]; s.tmp_1 = r0; r0 = (s.tmp_1 === s.arg1); @@ -68221,9 +67866,9 @@ switch (step) { case 1: case 2: r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P1583_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P4528_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 915; s.pc = 4; return s.tmp_0; + s.callLocIdx = 917; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -68231,12 +67876,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setState__P1581.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__P2612.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__P1581_mk(s) { +function scene_systemMenu_MenuOption_setState__P2612_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P1581, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setState__P2612, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -68248,7 +67893,7 @@ function scene_systemMenu_MenuOption_setState__P1581_mk(s) { -function scene_systemMenu_MenuOption_updateCard__P1583(s) { +function scene_systemMenu_MenuOption_updateCard__P4528(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68263,7 +67908,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C1576_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -68286,7 +67931,7 @@ switch (step) { r0 = s.tmp_3; { step = 6; continue; } case 3: - s.tmp_4 = Sprite_setImage__P790_mk(s); + s.tmp_4 = Sprite_setImage__P2053_mk(s); r0 = s.arg0.fields["card"]; s.tmp_4.arg0 = r0; s.tmp_5 = if_basicCard_1_mk(s); @@ -68298,17 +67943,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 = 918; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 920; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; s.tmp_4.arg1 = r0; - s.callLocIdx = 919; s.pc = 8; return s.tmp_4; + s.callLocIdx = 921; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; { step = 6; continue; } case 4: - s.tmp_0 = Sprite_setImage__P790_mk(s); + s.tmp_0 = Sprite_setImage__P2053_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_selectedCard_1_mk(s); @@ -68320,17 +67965,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 = 920; s.pc = 11; return s.tmp_1; } + else { s.callLocIdx = 922; s.pc = 11; return s.tmp_1; } } case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 921; s.pc = 10; return s.tmp_0; + s.callLocIdx = 923; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_0 = Sprite_setImage__P790_mk(s); + s.tmp_0 = Sprite_setImage__P2053_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_activeCard_1_mk(s); @@ -68342,39 +67987,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 = 922; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 924; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 923; s.pc = 12; return s.tmp_0; + s.callLocIdx = 925; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; case 6: - s.tmp_0 = Sprite_x__P771_mk(s); + s.tmp_0 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P770_mk(s); + s.tmp_1 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 924; s.pc = 15; return s.tmp_1; + s.callLocIdx = 926; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 925; s.pc = 14; return s.tmp_0; + s.callLocIdx = 927; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P772_mk(s); + s.tmp_1 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 926; s.pc = 17; return s.tmp_1; + s.callLocIdx = 928; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 927; s.pc = 16; return s.tmp_0; + s.callLocIdx = 929; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; case 7: @@ -68382,247 +68027,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P1583.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__P1583_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P1583, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - arg0: undefined, -} } - - - - - -function scene_systemMenu_MenuOption_setTheme__P1580(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C1576_VT)) failedCast(r0); - r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P1583_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 914; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_MenuOption_setTheme__P1580.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__P1580_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P1580, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function scene_systemMenu_MenuOption_position__P1578(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C1576_VT)) failedCast(r0); - r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P797_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 905; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = Sprite_top__P801_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 906; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_x__P771_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P770_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 907; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 908; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P772_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 909; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 910; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_MenuOption_position__P1578.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__P1578_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_position__P1578, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function scene_systemMenu_MenuOption_show__P1577(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_systemMenu_MenuOption__C1576_VT)) failedCast(r0); - r0 = s.arg0.fields["theme"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = if_basicCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "basicCard"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["basicCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["basicCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 900; s.pc = 3; return s.tmp_1; } - } - case 3: - r0 = s.retval; - { step = 2; continue; } - case 1: - r0 = globals.CARD_NORMAL___1616; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P763_mk(s); - s.tmp_5.arg0 = s.tmp_2; - s.tmp_5.arg1 = undefined; - s.callLocIdx = 901; s.pc = 4; return s.tmp_5; - case 4: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["card"] = (s.tmp_4); - s.tmp_0 = if_z_2_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 1; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 902; s.pc = 5; return s.tmp_0; } - } - case 5: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P763_mk(s); - r0 = s.arg0.fields["iconImage"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 903; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["icon"] = (s.tmp_1); - s.tmp_0 = if_z_2_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 2; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; - if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } - else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 904; s.pc = 7; return s.tmp_0; } - } - case 7: - r0 = s.retval; - r0 = (s.arg0).fields["state"] = (2); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_MenuOption_show__P1577.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_updateCard__P4528.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_show__P1577_mk(s) { +function scene_systemMenu_MenuOption_updateCard__P4528_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P1577, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P4528, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -68637,267 +68047,7 @@ function scene_systemMenu_MenuOption_show__P1577_mk(s) { -function scene_systemMenu_initVolume__P1609(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.vol___27279 = undefined; - s.tmp_0 = settings_readNumber__P617_mk(s); - s.tmp_0.arg0 = "#volume"; - s.callLocIdx = 1041; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.vol___27279 = (r0); - r0 = (s.vol___27279 != null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P435_mk(s); - s.tmp_1.arg0 = s.vol___27279; - s.callLocIdx = 1042; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_initVolume__P1609.info = {"start":12776,"length":138,"line":389,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} - -function scene_systemMenu_initVolume__P1609_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_initVolume__P1609, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - vol___27279: undefined, -} } - - - - - -function game_currentScene__P961(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = game_init__P1291_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 845; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = globals._scene___1280; - return leave(s, r0) - default: oops() -} } } -game_currentScene__P961.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__P961_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_currentScene__P961, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function game_addScenePopHandler__P956(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___1283); - 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___1283 = (r0); - case 1: - case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___1283, 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___1283, s.arg0); - case 3: - case 4: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_addScenePopHandler__P956.info = {"start":11756,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} - -function game_addScenePopHandler__P956_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_addScenePopHandler__P956, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function game_addScenePushHandler__P939(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___1282); - 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___1282 = (r0); - case 1: - case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___1282, 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___1282, s.arg0); - case 3: - case 4: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_addScenePushHandler__P939.info = {"start":10755,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} - -function game_addScenePushHandler__P939_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_addScenePushHandler__P939, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function Fx8__P95(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 * 256); - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - return leave(s, r0) - default: oops() -} } } -Fx8__P95.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__P95_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx8__P95, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function SpriteKind_create__P859(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = (globals.nextKind___858 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - globals.nextKind___858 = (1000); - case 1: - case 2: - s.tmp_0 = r0 = globals.nextKind___858; - r0 = (s.tmp_0 + 1); - globals.nextKind___858 = (r0); - r0 = s.tmp_0; - return leave(s, r0) - default: oops() -} } } -SpriteKind_create__P859.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__P859_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: SpriteKind_create__P859, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function controller_Button_constructor__P705(s) { +function scene_systemMenu_MenuOption_setTheme__P2611(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -68910,99 +68060,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C694_VT)) failedCast(r0); - r0 = (s.arg0).fields["id"] = (s.arg1); - r0 = (s.arg0).fields["_pressed"] = (false); - r0 = (s.arg0).fields["repeatDelay"] = (undefined); - r0 = (s.arg0).fields["repeatInterval"] = (undefined); - r0 = (s.arg0).fields["_repeatCount"] = (0); - r0 = (s.arg1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P27355); - 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__P27362); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = s.arg0.fields["id"]; - s.tmp_1 = r0; - r0 = pxsim.control.internalOnEvent(2051, s.tmp_1, s.tmp_0, 16); - r0 = (s.arg2 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = undefined; - case 1: - case 2: - case 3: - case 4: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -controller_Button_constructor__P705.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__P705_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Button_constructor__P705, 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 inline__P27355(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = controller_Button_setPressed__P703_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = false; - s.callLocIdx = 149; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0); + r0 = (s.arg0).fields["theme"] = (s.arg1); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P4528_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 916; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P27355.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_MenuOption_setTheme__P2611.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 inline__P27355_mk(s) { +function scene_systemMenu_MenuOption_setTheme__P2611_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27355, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P2611, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P27362(s) { +function scene_systemMenu_MenuOption_position__P2609(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69012,31 +68100,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P703_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = true; - s.callLocIdx = 150; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0); + r0 = (s.arg0).fields["top"] = (s.arg2); + s.tmp_0 = Sprite_left__P2060_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 907; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = Sprite_top__P2064_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 908; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_x__P2023_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P2022_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 909; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 910; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P2024_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 911; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 912; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P27362.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_MenuOption_position__P2609.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 inline__P27362_mk(s) { +function scene_systemMenu_MenuOption_position__P2609_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27362, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P2609, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function controller_Button_setPressed__P703(s) { +function scene_systemMenu_MenuOption_show__P2608(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69048,79 +68183,106 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C694_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__P497_mk(s); - s.callLocIdx = 153; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = s.arg0.fields["_owner"]; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C2606_VT)) failedCast(r0); + r0 = s.arg0.fields["theme"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = controller_Controller_connected__P734_mk(s); - r0 = s.arg0.fields["_owner"]; + s.tmp_1 = if_basicCard_1_mk(s); + r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = true; - s.callLocIdx = 154; s.pc = 8; return s.tmp_1; - case 8: + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "basicCard"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["basicCard"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["basicCard"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 902; s.pc = 3; return s.tmp_1; } + } + case 3: r0 = s.retval; + { step = 2; continue; } case 1: + r0 = globals.CARD_NORMAL___2630; case 2: - r0 = (s.arg0).fields["_pressed"] = (s.arg1); - r0 = s.arg0.fields["_pressed"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["_pressedElasped"] = (0); - s.tmp_0 = controller_Button_raiseButtonDown__P697_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 155; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = (s.arg0).fields["_repeatCount"] = (0); - s.tmp_0 = controller_Button_raiseButtonUp__P696_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 156; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_2 = r0; + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = sprites_create__P1971_mk(s); + s.tmp_5.arg0 = s.tmp_2; + s.tmp_5.arg1 = undefined; + s.callLocIdx = 903; s.pc = 4; return s.tmp_5; case 4: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["card"] = (s.tmp_4); + s.tmp_0 = if_z_2_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 1; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 904; s.pc = 5; return s.tmp_0; } + } case 5: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = sprites_create__P1971_mk(s); + r0 = s.arg0.fields["iconImage"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 905; s.pc = 6; return s.tmp_2; case 6: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["icon"] = (s.tmp_1); + s.tmp_0 = if_z_2_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 2; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_0.arg0, "z", s.tmp_0.arg1); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; + if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } + else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } + else { s.callLocIdx = 906; s.pc = 7; return s.tmp_0; } + } + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["state"] = (2); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P703.info = {"start":4600,"length":507,"line":148,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"setPressed","argumentNames":["this","pressed"]} +scene_systemMenu_MenuOption_show__P2608.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} -function controller_Button_setPressed__P703_mk(s) { +function scene_systemMenu_MenuOption_show__P2608_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P703, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_show__P2608, depth: s.depth + 1, pc: 0, retval: undefined, 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 controller_Controller_connected__P734(s) { +function scene_systemMenu_PauseMenu_constructor__P2615(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69133,56 +68295,58 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; - s.tmp_1 = r0; - r0 = (s.arg1 != s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["_connected"] = (s.arg1); - r0 = s.arg0.fields["_connected"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C2614_VT)) failedCast(r0); + r0 = (s.arg0).fields["generator"] = (s.arg1); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 1; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = 2; + s.tmp_1 = scene_systemMenu_buildMenuTheme__P2623_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___2630); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 3; + s.tmp_1.arg2 = undefined; + s.tmp_1.arg3 = undefined; + s.callLocIdx = 930; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; case 2: // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.arg0.fields["_id"]; s.tmp_2 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); - case 3: - case 4: + r0 = (s.arg0).fields["theme"] = (s.tmp_2); + r0 = (s.arg0).fields["scrollRow"] = (0); + r0 = (s.arg0).fields["scrollOffset"] = (0); + r0 = (s.arg0).fields["scrollTarget"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_connected__P734.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} +scene_systemMenu_PauseMenu_constructor__P2615.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 controller_Controller_connected__P734_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P2615_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P734, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P2615, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function controller_Controller_id__P720(s) { +function scene_systemMenu_buildMenuTheme__P2623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69192,32 +68356,150 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.cardsPerRow___28824 = 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__C717_VT)) failedCast(r0); - r0 = s.arg0.fields["_id"]; - return leaveAccessor(s, r0) + r0 = pxsim_ImageMethods.width(globals.screen___1799); + 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___28824 = (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___1742; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + s.arg2 = (s.tmp_1); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_1 = image_doubledFont__P1745_mk(s); + s.tmp_1.arg0 = s.arg2; + s.callLocIdx = 1036; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.arg3 = (s.tmp_2); + r0 = pxsim_pxtrt.mkMap(); + s.tmp_0 = r0; + r0 = pxsim_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___28824); + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_3 = r0; + r0 = (s.cardsPerRow___28824 * s.arg0); + s.tmp_5 = r0; + r0 = (s.cardsPerRow___28824 - 1); + s.tmp_7 = r0; + r0 = (s.tmp_7 * s.arg1); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "padding", s.tmp_1); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoFont", s.arg2); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerFont", s.arg3); + s.tmp_11 = if_charHeight_1_mk(s); + s.tmp_11.arg0 = s.arg3; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "charHeight"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 1037; s.pc = 6; return s.tmp_11; } + } + case 6: + r0 = s.retval; + s.tmp_10 = r0; + r0 = (s.tmp_10 + 2); + s.tmp_9 = r0; + r0 = (s.tmp_9 + s.arg1); + s.tmp_8 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsTop", s.tmp_8); + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.tmp_14 = r0; + s.tmp_16 = if_charHeight_1_mk(s); + s.tmp_16.arg0 = s.arg2; + if (!s.tmp_16.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_16.arg0, "charHeight"); + } else { + s.tmp_16.fn = s.tmp_16.arg0.vtable.iface["charHeight"]; + if (s.tmp_16.fn == null) { s.retval = s.tmp_16.arg0.fields["charHeight"]; } + else if (!s.tmp_16.fn.isGetter) { s.retval = bind(s.tmp_16); } + else { s.callLocIdx = 1038; s.pc = 7; return s.tmp_16; } + } + case 7: + r0 = s.retval; + s.tmp_15 = r0; + r0 = (s.tmp_14 - s.tmp_15); + s.tmp_13 = r0; + r0 = (s.tmp_13 - 2); + s.tmp_12 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoTop", s.tmp_12); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerText", "PAUSED"); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___2631); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___2632); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___2630); + r0 = s.tmp_0; + return leave(s, r0) default: oops() } } } -controller_Controller_id__P720.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__P720.isGetter = true; +scene_systemMenu_buildMenuTheme__P2623.info = {"start":11192,"length":906,"line":346,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} -function controller_Controller_id__P720_mk(s) { +function scene_systemMenu_buildMenuTheme__P2623_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_id__P720, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P2623, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + cardsPerRow___28824: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function controller_Controller_connected__P733(s) { +function image_doubledFont__P1745(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69231,20 +68513,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C717_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; - return leaveAccessor(s, r0) + s.tmp_0 = image_scaledFont__P1746_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 2; + s.callLocIdx = 99; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) default: oops() } } } -controller_Controller_connected__P733.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__P733.isGetter = true; +image_doubledFont__P1745.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} -function controller_Controller_connected__P733_mk(s) { +function image_doubledFont__P1745_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P733, depth: s.depth + 1, + parent: s, fn: image_doubledFont__P1745, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -69252,7 +68537,7 @@ function controller_Controller_connected__P733_mk(s) { -function controller_Button_raiseButtonDown__P697(s) { +function image_scaledFont__P1746(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69264,41 +68549,141 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C694_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___687); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; + r0 = (s.arg1 | 0); + s.arg1 = (r0); + r0 = (s.arg1 < 2); s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2049, s.tmp_0); - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0; + { step = 5; continue; } case 1: - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2053, s.tmp_0); case 2: - r0 = undefined; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = s.arg0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charWidth"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charWidth"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 100; s.pc = 6; return s.tmp_4; } + } + case 6: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 * s.arg1); + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charWidth", s.tmp_2); + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = s.arg0; + if (!s.tmp_7.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); + } else { + s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["charHeight"]; + if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["charHeight"]; } + else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } + else { s.callLocIdx = 101; s.pc = 7; return s.tmp_7; } + } + case 7: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 * s.arg1); + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "charHeight", s.tmp_5); + s.tmp_9 = if_data_1_mk(s); + s.tmp_9.arg0 = s.arg0; + if (!s.tmp_9.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_9.arg0, "data"); + } else { + s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["data"]; + if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["data"]; } + else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } + else { s.callLocIdx = 102; s.pc = 8; return s.tmp_9; } + } + case 8: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "data", s.tmp_8); + s.tmp_11 = if_multiplier_1_mk(s); + s.tmp_11.arg0 = s.arg0; + if (!s.tmp_11.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_11.arg0, "multiplier"); + } else { + s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["multiplier"]; + if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["multiplier"]; } + else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } + else { s.callLocIdx = 103; s.pc = 9; return s.tmp_11; } + } + case 9: + r0 = s.retval; + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 3; continue; } + s.tmp_12 = r0 = s.arg1; + s.tmp_14 = if_multiplier_1_mk(s); + s.tmp_14.arg0 = s.arg0; + if (!s.tmp_14.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_14.arg0, "multiplier"); + } else { + s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["multiplier"]; + if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["multiplier"]; } + else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } + else { s.callLocIdx = 104; s.pc = 10; return s.tmp_14; } + } + case 10: + r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_12 * s.tmp_13); + { step = 4; continue; } + case 3: + r0 = s.arg1; + case 4: + // jmp value (already in r0) + s.tmp_15 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "multiplier", s.tmp_15); + r0 = s.tmp_1; + case 5: return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P697.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]} +image_scaledFont__P1746.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 controller_Button_raiseButtonDown__P697_mk(s) { +function image_scaledFont__P1746_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P697, depth: s.depth + 1, + parent: s, fn: image_scaledFont__P1746, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Button_raiseButtonUp__P696(s) { +function scene_systemMenu_initVolume__P4539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69308,43 +68693,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.arg0; - if (!checkSubtype(r0, controller_Button__C694_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___687); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; + s.vol___28904 = undefined; + s.tmp_0 = settings_readNumber__P1830_mk(s); + s.tmp_0.arg0 = "#volume"; + s.callLocIdx = 1043; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.vol___28904 = (r0); + r0 = (s.vol___28904 != null); s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2048, s.tmp_0); - { step = 2; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_setVolume__P1589_mk(s); + s.tmp_1.arg0 = s.vol___28904; + s.callLocIdx = 1044; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; case 1: - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2052, s.tmp_0); case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P696.info = {"start":2462,"length":200,"line":85,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonUp","argumentNames":["this"]} +scene_systemMenu_initVolume__P4539.info = {"start":12776,"length":138,"line":389,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} -function controller_Button_raiseButtonUp__P696_mk(s) { +function scene_systemMenu_initVolume__P4539_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P696, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initVolume__P4539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + vol___28904: undefined, } } -function controller_setupButton__P693(s) { +function game_currentScene__P2524(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69354,31 +68741,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = undefined; + s.tmp_0 = game_init__P4282_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 847; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = globals._scene___4274; return leave(s, r0) default: oops() } } } -controller_setupButton__P693.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} +game_currentScene__P2524.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} -function controller_setupButton__P693_mk(s) { +function game_currentScene__P2524_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P693, depth: s.depth + 1, + parent: s, fn: game_currentScene__P2524, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, } } -function settings_initScopes__P608(s) { +function game_addScenePopHandler__P2543(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69388,53 +68774,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___27442 = undefined; - s.tmp_1 = settings_runNumber__P606_mk(s); - s.callLocIdx = 128; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___4277); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.rn___27442 = (r0); - s.tmp_0 = settings_writeNumber__P613_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___595; - s.tmp_0.arg1 = s.rn___27442; - s.callLocIdx = 129; s.pc = 2; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals._scenePopHandlers___4277 = (r0); + case 1: case 2: - r0 = s.retval; - r0 = pxsim.control.deviceSerialNumber(); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___4277, s.arg0, undefined); s.tmp_1 = r0; - r0 = (s.tmp_1 & 2147483647); + r0 = (s.tmp_1 < 0); s.tmp_0 = r0; - r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); - r0 = pxsim_pxtcore.seedAddRandom(s.rn___27442); - s.tmp_0 = settings_setScope__P607_mk(s); - r0 = pxsim_pxtcore.programName(); - s.tmp_0.arg0 = r0; - s.callLocIdx = 130; s.pc = 3; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array__push(globals._scenePopHandlers___4277, s.arg0); case 3: - r0 = s.retval; + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -settings_initScopes__P608.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +game_addScenePopHandler__P2543.info = {"start":11756,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} -function settings_initScopes__P608_mk(s) { +function game_addScenePopHandler__P2543_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P608, depth: s.depth + 1, + parent: s, fn: game_addScenePopHandler__P2543, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___27442: undefined, + arg0: undefined, } } -function settings_setScope__P607(s) { +function game_addScenePushHandler__P2541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69444,66 +68827,77 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___27471 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___4276); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_Array__mk(); + globals._scenePushHandlers___4276 = (r0); case 1: - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 > 100); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___4276, 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_pxtrt.panic(922); + r0 = pxsim_Array__push(globals._scenePushHandlers___4276, s.arg0); case 3: case 4: - s.tmp_0 = settings_readString__P616_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___596; - s.callLocIdx = 126; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.currScope___27471 = (r0); - r0 = (s.currScope___27471 != s.arg0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_addScenePushHandler__P2541.info = {"start":10755,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} + +function game_addScenePushHandler__P2541_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_addScenePushHandler__P2541, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function Fx8__P141(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 * 256); 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__P612_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___596; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 127; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - case 5: - case 6: - r0 = undefined; + r0 = (s.tmp_0 | 0); return leave(s, r0) default: oops() } } } -settings_setScope__P607.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} +Fx8__P141.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} -function settings_setScope__P607_mk(s) { +function Fx8__P141_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P607, depth: s.depth + 1, + parent: s, fn: Fx8__P141, depth: s.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___27471: undefined, arg0: undefined, } } @@ -69511,7 +68905,7 @@ function settings_setScope__P607_mk(s) { -function settings_runNumber__P606(s) { +function SpriteKind_create__P2124(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69521,42 +68915,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P617_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___595; - s.callLocIdx = 125; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + r0 = (globals.nextKind___4130 === 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; } + globals.nextKind___4130 = (1000); case 1: - r0 = 0; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.tmp_2; + s.tmp_0 = r0 = globals.nextKind___4130; + r0 = (s.tmp_0 + 1); + globals.nextKind___4130 = (r0); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -settings_runNumber__P606.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} +SpriteKind_create__P2124.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} -function settings_runNumber__P606_mk(s) { +function SpriteKind_create__P2124_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_runNumber__P606, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P2124, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, } } -function control___screen_setupUpdate__P546(s) { +function controller_Button_constructor__P1906(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69568,36 +68955,66 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - globals.__updated___544 = (true); - globals.__update___542 = (s.arg0); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.arg0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 121; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + r0 = (s.arg0).fields["id"] = (s.arg1); + r0 = (s.arg0).fields["_pressed"] = (false); + r0 = (s.arg0).fields["repeatDelay"] = (undefined); + r0 = (s.arg0).fields["repeatInterval"] = (undefined); + r0 = (s.arg0).fields["_repeatCount"] = (0); + r0 = (s.arg1 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkAction(1, inline__P28980); + 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__P28987); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = s.arg0.fields["id"]; + s.tmp_1 = r0; + r0 = pxsim.control.internalOnEvent(2051, s.tmp_1, s.tmp_0, 16); + r0 = (s.arg2 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; case 1: - r0 = s.retval; + case 2: + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P546.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} +controller_Button_constructor__P1906.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 control___screen_setupUpdate__P546_mk(s) { +function controller_Button_constructor__P1906_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P546, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P1906, 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 control___screen_update__P545(s) { +function inline__P28980(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69607,27 +69024,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___542); - if (!r0) { step = 1; continue; } - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___542; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 120; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + s.tmp_0 = controller_Button_setPressed__P1911_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = false; + s.callLocIdx = 149; s.pc = 1; return s.tmp_0; case 1: - case 2: - globals.__updated___544 = (true); + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_update__P545.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} +inline__P28980.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function control___screen_update__P545_mk(s) { +function inline__P28980_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P545, depth: s.depth + 1, + parent: s, fn: inline__P28980, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -69636,7 +69048,7 @@ function control___screen_update__P545_mk(s) { -function pause__P309(s) { +function inline__P28987(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69646,35 +69058,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - setupResume(s, 1); - pxsim.loops.pause(s.arg0); - checkResumeConsumed(); - return; + s.tmp_0 = controller_Button_setPressed__P1911_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = true; + s.callLocIdx = 150; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -pause__P309.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +inline__P28987.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function pause__P309_mk(s) { +function inline__P28987_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P309, depth: s.depth + 1, + parent: s, fn: inline__P28987, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, } } -function tiles_legacy_LegacyTilemap_getTileIndex__P9579(s) { +function controller_setupButton__P4112(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69687,35 +69095,28 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = s.arg0.fields["_mapImage"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.arg1, s.arg2); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_getTileIndex__P9579.info = {"start":9165,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} +controller_setupButton__P4112.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 tiles_legacy_LegacyTilemap_getTileIndex__P9579_mk(s) { +function controller_setupButton__P4112_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_getTileIndex__P9579, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P4112, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tiles_legacy_LegacyTilemap_draw__P9575(s) { +function controller_Button_setPressed__P1911(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -69725,358 +69126,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___18711 = undefined; - s.offsetX___18717 = undefined; - s.offsetY___18722 = undefined; - s.x0___18727 = undefined; - s.xn___18734 = undefined; - s.y0___18751 = undefined; - s.yn___18758 = undefined; - s.x___18775 = undefined; - s.y___18781 = undefined; - s.index___18787 = undefined; - s.tile___18794 = undefined; - s.x___18836 = undefined; - s.xLine___18842 = undefined; - s.y___18868 = undefined; - s.yLine___18874 = 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_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_3 = tiles_legacy_LegacyTilemap__C9551_v6_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled; - s.pc = 26; return s.tmp_3; - case 26: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 != s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 25; continue; } - case 1: - case 2: - r0 = s.arg0.fields["_scale"]; - s.tmp_5 = r0; - r0 = (1 << s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 - 1); - s.bitmask___18711 = (r0); - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___18711); - s.offsetX___18717 = (r0); - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___18711); - s.offsetY___18722 = (r0); - s.tmp_0 = Math_max__P78_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1718; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.x0___18727 = (r0); - s.tmp_0 = Math_min__P79_mk(s); - r0 = s.arg0.fields["_mapImage"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_1); - s.tmp_0.arg0 = r0; - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_4 = r0; - s.tmp_6 = tiles_legacy_LegacyTilemap_myWidth__P9557_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 1719; s.pc = 29; return s.tmp_6; - case 29: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_7 = r0; - r0 = (s.tmp_3 >> s.tmp_7); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1721; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - s.xn___18734 = (r0); - s.tmp_0 = Math_max__P78_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1723; s.pc = 30; return s.tmp_0; - case 30: - r0 = s.retval; - s.y0___18751 = (r0); - s.tmp_0 = Math_min__P79_mk(s); - r0 = s.arg0.fields["_mapImage"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_1); - s.tmp_0.arg0 = r0; - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 >> s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 1725; s.pc = 31; return s.tmp_0; - case 31: + if (!r0) { step = 5; continue; } + s.tmp_2 = power_poke__P1702_mk(s); + s.callLocIdx = 153; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; - s.yn___18758 = (r0); - s.x___18775 = (s.x0___18727); - case 3: - r0 = (s.x___18775 <= s.xn___18734); + r0 = s.arg0.fields["_owner"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.y___18781 = (s.y0___18751); - case 4: - r0 = (s.y___18781 <= s.yn___18758); + if (!r0) { step = 1; continue; } + s.tmp_1 = controller_Controller_connected__P1940_mk(s); + r0 = s.arg0.fields["_owner"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = true; + s.callLocIdx = 154; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + case 1: + case 2: + r0 = (s.arg0).fields["_pressed"] = (s.arg1); + r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.arg0.fields["_mapImage"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.x___18775, s.y___18781); - s.index___18787 = (r0); - r0 = s.arg0.fields["_tileSets"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.index___18787); - 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_2 = tiles_legacy_LegacyTilemap_generateTile__P9572_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.index___18787; - s.callLocIdx = 1726; s.pc = 32; return s.tmp_2; - case 32: - r0 = s.retval; - case 6: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tile___18794 = (s.tmp_3); - r0 = pxsim_numops_toBoolDecr(s.tile___18794); - if (!r0) { step = 7; continue; } - s.tmp_0 = r0 = s.arg1; - s.tmp_2 = tiles_legacy_TileSet_image__P18347_mk(s); - s.tmp_2.arg0 = s.tile___18794; - s.callLocIdx = 1727; s.pc = 33; return s.tmp_2; - case 33: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_6 = tiles_legacy_LegacyTilemap_myLeft__P9556_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 1728; s.pc = 34; return s.tmp_6; - case 34: + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["_pressedElasped"] = (0); + s.tmp_0 = controller_Button_raiseButtonDown__P4114_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 155; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.x___18775 - s.x0___18727); - 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_5 + s.tmp_7); - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.offsetX___18717); - s.tmp_3 = r0; - r0 = (s.y___18781 - s.y0___18751); - s.tmp_12 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_13 = r0; - r0 = (s.tmp_12 << s.tmp_13); - s.tmp_11 = r0; - r0 = (s.tmp_11 - s.offsetY___18722); - s.tmp_10 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_3, s.tmp_10); - case 7: - case 8: - r0 = (s.y___18781 + 1); - s.y___18781 = (r0); { step = 4; continue; } - case 9: - r0 = (s.x___18775 + 1); - s.x___18775 = (r0); - { step = 3; continue; } + case 3: + r0 = (s.arg0).fields["_repeatCount"] = (0); + s.tmp_0 = controller_Button_raiseButtonUp__P4113_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 156; s.pc = 10; return s.tmp_0; case 10: - r0 = pxsim_numops_toBoolDecr(globals.debug___1269); - if (!r0) { step = 23; continue; } - s.x___18836 = (s.x0___18727); - case 11: - r0 = (s.x___18836 <= s.xn___18734); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = (s.x___18836 - s.x0___18727); - 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___18717); - s.xLine___18842 = (r0); - r0 = (s.xLine___18842 >= 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_1 = r0 = s.xLine___18842; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - case 13: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 14; continue; } - s.tmp_4 = helpers_imageDrawLine__P519_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___18842; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___18842; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_4.arg4 = r0; - s.tmp_4.arg5 = 1; - s.callLocIdx = 1732; s.pc = 35; return s.tmp_4; - case 35: - r0 = s.retval; - case 14: - case 15: - r0 = (s.x___18836 + 1); - s.x___18836 = (r0); - { step = 11; continue; } - case 16: - s.y___18868 = (s.y0___18751); - case 17: - r0 = (s.y___18868 <= s.yn___18758); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.y___18868 - s.y0___18751); - 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___18722); - s.yLine___18874 = (r0); - r0 = (s.yLine___18874 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 18; continue; } - r0 = s.tmp_0; - { step = 19; continue; } - case 18: - s.tmp_1 = r0 = s.yLine___18874; - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - case 19: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 20; continue; } - s.tmp_4 = helpers_imageDrawLine__P519_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___18874; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___18874; - s.tmp_4.arg5 = 1; - s.callLocIdx = 1734; s.pc = 36; return s.tmp_4; - case 36: r0 = s.retval; - case 20: - case 21: - r0 = (s.y___18868 + 1); - s.y___18868 = (r0); - { step = 17; continue; } - case 22: - case 23: - case 24: - case 25: + case 4: + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_draw__P9575.info = {"start":5512,"length":2284,"line":173,"column":8,"endLine":228,"endColumn":9,"fileName":"mytilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} +controller_Button_setPressed__P1911.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 tiles_legacy_LegacyTilemap_draw__P9575_mk(s) { +function controller_Button_setPressed__P1911_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_draw__P9575, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P1911, depth: s.depth + 1, pc: 0, retval: undefined, 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, - bitmask___18711: undefined, - offsetX___18717: undefined, - offsetY___18722: undefined, - x0___18727: undefined, - xn___18734: undefined, - y0___18751: undefined, - yn___18758: undefined, - x___18775: undefined, - y___18781: undefined, - index___18787: undefined, - tile___18794: undefined, - x___18836: undefined, - xLine___18842: undefined, - y___18868: undefined, - yLine___18874: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tiles_legacy_LegacyTilemap_myLeft__P9556(s) { +function controller_Button_raiseButtonDown__P4114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70091,24 +69215,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = s.arg0.fields["_screenX"]; + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4106); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 << s.tmp_1); + r0 = pxsim.control.raiseEvent(2049, s.tmp_0); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2053, s.tmp_0); + case 2: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_myLeft__P9556.info = {"start":1975,"length":68,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"mytilemap.ts","functionName":"myLeft","argumentNames":["this"]} +controller_Button_raiseButtonDown__P4114.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]} -function tiles_legacy_LegacyTilemap_myLeft__P9556_mk(s) { +function controller_Button_raiseButtonDown__P4114_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_myLeft__P9556, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P4114, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -70116,7 +69246,7 @@ function tiles_legacy_LegacyTilemap_myLeft__P9556_mk(s) { -function tiles_legacy_TileSet_image__P18347(s) { +function controller_Button_raiseButtonUp__P4113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70126,120 +69256,132 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___18366 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_TileSet__C18346_VT)) failedCast(r0); - r0 = s.arg0.fields["map"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_scale"]; + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___4106); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; s.tmp_0 = r0; - r0 = (1 << s.tmp_0); - s.size___18366 = (r0); - r0 = s.arg0.fields["cachedImage"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim.control.raiseEvent(2048, s.tmp_0); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2052, s.tmp_0); + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Button_raiseButtonUp__P4113.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__P4113_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_raiseButtonUp__P4113, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function controller_Controller_connected__P1940(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg1 != s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["_connected"] = (s.arg1); + r0 = s.arg0.fields["_connected"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = 1; { step = 2; continue; } case 1: - r0 = s.arg0.fields["cachedImage"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 != s.size___18366); + r0 = 2; case 2: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (!r0) { step = 3; continue; } - r0 = s.tmp_5; - { step = 4; continue; } + s.tmp_1 = r0; + r0 = s.arg0.fields["_id"]; + s.tmp_2 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); case 3: - r0 = s.arg0.fields["cachedImage"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 != s.size___18366); case 4: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 9; continue; } - r0 = s.arg0.fields["originalImage"]; - s.tmp_11 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_11); - s.tmp_10 = r0; - r0 = (s.tmp_10 == s.size___18366); - s.tmp_9 = r0; - r0 = pxsim_numops_toBool(s.tmp_9); - if (r0) { step = 5; continue; } - r0 = s.tmp_9; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["originalImage"]; - s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_13); - s.tmp_12 = r0; - r0 = (s.tmp_12 == s.size___18366); - case 6: - // jmp value (already in r0) - s.tmp_14 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_14); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["originalImage"]; - s.tmp_15 = r0; - r0 = (s.arg0).fields["cachedImage"] = (s.tmp_15); - { step = 8; continue; } - case 7: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.image.create(s.size___18366, s.size___18366); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cachedImage"] = (s.tmp_1); - r0 = s.arg0.fields["cachedImage"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["originalImage"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.drawImage(s.tmp_0, s.tmp_1, 0, 0); - case 8: - case 9: - case 10: - r0 = s.arg0.fields["cachedImage"]; - return leaveAccessor(s, r0) + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_legacy_TileSet_image__P18347.info = {"start":834,"length":567,"line":27,"column":8,"endLine":38,"endColumn":9,"fileName":"mytilemap.ts","functionName":"image","argumentNames":["this"]} -tiles_legacy_TileSet_image__P18347.isGetter = true; +controller_Controller_connected__P1940.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 tiles_legacy_TileSet_image__P18347_mk(s) { +function controller_Controller_connected__P1940_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_TileSet_image__P18347, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P1940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - size___18366: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_Controller_id__P1927(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, controller_Controller__C1920_VT)) failedCast(r0); + r0 = s.arg0.fields["_id"]; + return leaveAccessor(s, r0) + default: oops() +} } } +controller_Controller_id__P1927.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__P1927.isGetter = true; + +function controller_Controller_id__P1927_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_id__P1927, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -70247,7 +69389,7 @@ function tiles_legacy_TileSet_image__P18347_mk(s) { -function tiles_legacy_LegacyTilemap_generateTile__P9572(s) { +function controller_Controller_connected__P1939(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70257,60 +69399,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___18656 = undefined; - s.i___18660 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - s.tmp_0 = r0; - r0 = (1 << s.tmp_0); - s.size___18656 = (r0); - r0 = pxsim.image.create(s.size___18656, s.size___18656); - s.i___18660 = (r0); - r0 = pxsim_ImageMethods.fill(s.i___18660, s.arg1); - r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_TileSet__C18346_VT); - s.tmp_0 = r0; - s.tmp_1 = tiles_legacy_TileSet_constructor__P18348_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.i___18660; - s.tmp_1.arg2 = false; - s.tmp_1.arg3 = s.arg0; - s.callLocIdx = 1715; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.arg0.fields["_tileSets"]; - s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.tmp_2, s.arg1, s.tmp_0); - r0 = s.tmp_0; - return leave(s, r0) + if (!checkSubtype(r0, controller_Controller__C1920_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; + return leaveAccessor(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_generateTile__P9572.info = {"start":4880,"length":245,"line":155,"column":8,"endLine":161,"endColumn":9,"fileName":"mytilemap.ts","functionName":"generateTile","argumentNames":["this","index"]} +controller_Controller_connected__P1939.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__P1939.isGetter = true; -function tiles_legacy_LegacyTilemap_generateTile__P9572_mk(s) { +function controller_Controller_connected__P1939_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_generateTile__P9572, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P1939, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - size___18656: undefined, - i___18660: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_legacy_LegacyTilemap_myWidth__P9557(s) { +function settings_initScopes__P4079(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70320,42 +69434,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_0 = r0; - s.tmp_2 = tiles_legacy_LegacyTilemap_myLeft__P9556_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1703; s.pc = 1; return s.tmp_2; + s.rn___29065 = undefined; + s.tmp_1 = settings_runNumber__P1822_mk(s); + s.callLocIdx = 128; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.rn___29065 = (r0); + s.tmp_0 = settings_writeNumber__P1826_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___4067; + s.tmp_0.arg1 = s.rn___29065; + s.callLocIdx = 129; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = pxsim.control.deviceSerialNumber(); s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); + r0 = (s.tmp_1 & 2147483647); + s.tmp_0 = r0; + r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___29065); + s.tmp_0 = settings_setScope__P4078_mk(s); + r0 = pxsim_pxtcore.programName(); + s.tmp_0.arg0 = r0; + s.callLocIdx = 130; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_myWidth__P9557.info = {"start":2053,"length":70,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"mytilemap.ts","functionName":"myWidth","argumentNames":["this"]} +settings_initScopes__P4079.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} -function tiles_legacy_LegacyTilemap_myWidth__P9557_mk(s) { +function settings_initScopes__P4079_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_myWidth__P9557, depth: s.depth + 1, + parent: s, fn: settings_initScopes__P4079, 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, + rn___29065: undefined, } } -function tiles_legacy_LegacyTilemap_setTileAt__P9569(s) { +function settings_setScope__P4078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70365,85 +69490,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.currScope___29094 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_3 = tiles_legacy_LegacyTilemap_isOutsideMap__P9573_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.callLocIdx = 1713; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - 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_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_6 = tiles_legacy_LegacyTilemap__C9551_v10_2_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.arg3; - if (!checkSubtype(s.tmp_6.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_6.arg0); - s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.isInvalidIndex; - s.pc = 6; return s.tmp_6; - case 6: - r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = pxsim_String_.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 > 100); case 2: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - r0 = s.arg0.fields["_mapImage"]; - s.tmp_8 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_8, s.arg1, s.arg2, s.arg3); + r0 = pxsim_pxtrt.panic(922); case 3: case 4: + s.tmp_0 = settings_readString__P1829_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___4068; + s.callLocIdx = 126; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.currScope___29094 = (r0); + r0 = (s.currScope___29094 != 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__P1825_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___4068; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 127; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_setTileAt__P9569.info = {"start":3492,"length":210,"line":120,"column":8,"endLine":123,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} +settings_setScope__P4078.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} -function tiles_legacy_LegacyTilemap_setTileAt__P9569_mk(s) { +function settings_setScope__P4078_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_setTileAt__P9569, depth: s.depth + 1, + parent: s, fn: settings_setScope__P4078, depth: s.depth + 1, pc: 0, retval: undefined, 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, + currScope___29094: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_legacy_LegacyTilemap_isOutsideMap__P9573(s) { +function settings_runNumber__P1822(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70453,107 +69567,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_3 = tiles_legacy_LegacyTilemap__C9551_v6_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled; - s.pc = 9; return s.tmp_3; - case 9: + s.tmp_1 = settings_readNumber__P1830_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___4067; + s.callLocIdx = 125; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = (s.arg1 < 0); + r0 = 0; case 2: // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (!r0) { step = 3; continue; } - r0 = s.tmp_4; - { step = 4; continue; } - case 3: - s.tmp_5 = r0 = s.arg1; - r0 = s.arg0.fields["_mapImage"]; - s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_5 >= s.tmp_6); - case 4: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBool(s.tmp_8); - if (!r0) { step = 5; continue; } - r0 = s.tmp_8; - { step = 6; continue; } - case 5: - r0 = (s.arg2 < 0); - case 6: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = pxsim_numops_toBool(s.tmp_9); - if (!r0) { step = 7; continue; } - r0 = s.tmp_9; - { step = 8; continue; } - case 7: - s.tmp_10 = r0 = s.arg2; - r0 = s.arg0.fields["_mapImage"]; - s.tmp_12 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_12); - s.tmp_11 = r0; - r0 = (s.tmp_10 >= s.tmp_11); - case 8: - // jmp value (already in r0) - s.tmp_13 = r0; - r0 = s.tmp_13; + s.tmp_2 = r0; + r0 = s.tmp_2; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_isOutsideMap__P9573.info = {"start":5135,"length":202,"line":163,"column":8,"endLine":166,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} +settings_runNumber__P1822.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} -function tiles_legacy_LegacyTilemap_isOutsideMap__P9573_mk(s) { +function settings_runNumber__P1822_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_isOutsideMap__P9573, depth: s.depth + 1, + parent: s, fn: settings_runNumber__P1822, depth: s.depth + 1, pc: 0, retval: undefined, 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, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_legacy_LegacyTilemap_enabled__P9564(s) { +function control___screen_setupUpdate__P1761(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70567,32 +69616,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = s.arg0.fields["_mapImage"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + globals.__updated___4036 = (true); + globals.__update___4034 = (s.arg0); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 121; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_enabled__P9564.info = {"start":2895,"length":71,"line":99,"column":8,"endLine":101,"endColumn":9,"fileName":"mytilemap.ts","functionName":"enabled","argumentNames":["this"]} -tiles_legacy_LegacyTilemap_enabled__P9564.isGetter = true; +control___screen_setupUpdate__P1761.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} -function tiles_legacy_LegacyTilemap_enabled__P9564_mk(s) { +function control___screen_setupUpdate__P1761_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_enabled__P9564, depth: s.depth + 1, + parent: s, fn: control___screen_setupUpdate__P1761, depth: s.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, } } @@ -70600,7 +69643,7 @@ function tiles_legacy_LegacyTilemap_enabled__P9564_mk(s) { -function tiles_legacy_LegacyTilemap_areaHeight__P9561(s) { +function control___screen_update__P1760(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70610,53 +69653,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, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = s.arg0.fields["_mapImage"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.__update___4034); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_mapImage"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = globals.__update___4034; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 120; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; case 1: - r0 = 0; case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + globals.__updated___4036 = (true); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_areaHeight__P9561.info = {"start":2572,"length":103,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"mytilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +control___screen_update__P1760.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} -function tiles_legacy_LegacyTilemap_areaHeight__P9561_mk(s) { +function control___screen_update__P1760_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_areaHeight__P9561, depth: s.depth + 1, + parent: s, fn: control___screen_update__P1760, depth: s.depth + 1, pc: 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_legacy_LegacyTilemap_areaWidth__P9560(s) { +function pause__P399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70670,41 +69696,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = s.arg0.fields["_mapImage"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_mapImage"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_2); - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } + setupResume(s, 1); + pxsim.loops.pause(s.arg0); + checkResumeConsumed(); + return; case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_areaWidth__P9560.info = {"start":2461,"length":101,"line":81,"column":8,"endLine":83,"endColumn":9,"fileName":"mytilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +pause__P399.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} -function tiles_legacy_LegacyTilemap_areaWidth__P9560_mk(s) { +function pause__P399_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_areaWidth__P9560, depth: s.depth + 1, + parent: s, fn: pause__P399, depth: s.depth + 1, pc: 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, } } @@ -70712,7 +69720,7 @@ function tiles_legacy_LegacyTilemap_areaWidth__P9560_mk(s) { -function tiles_legacy_LegacyTilemap_offsetY__P9559(s) { +function tiles_legacy_LegacyTilemap_getTileIndex__P3874(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70725,58 +69733,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P75_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P78_mk(s); - s.tmp_3 = tiles_legacy_LegacyTilemap__C9551_v4_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaHeight; - s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 1707; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 1708; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = s.arg0.fields["_mapImage"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.arg1, s.arg2); return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_offsetY__P9559.info = {"start":2328,"length":123,"line":77,"column":8,"endLine":79,"endColumn":9,"fileName":"mytilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +tiles_legacy_LegacyTilemap_getTileIndex__P3874.info = {"start":9165,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} -function tiles_legacy_LegacyTilemap_offsetY__P9559_mk(s) { +function tiles_legacy_LegacyTilemap_getTileIndex__P3874_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_offsetY__P9559, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_getTileIndex__P3874, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_legacy_LegacyTilemap_offsetX__P9558(s) { +function tiles_legacy_LegacyTilemap_draw__P11441(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70786,50 +69771,318 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.bitmask___20504 = undefined; + s.offsetX___20510 = undefined; + s.offsetY___20515 = undefined; + s.x0___20520 = undefined; + s.xn___20527 = undefined; + s.y0___20544 = undefined; + s.yn___20551 = undefined; + s.x___20568 = undefined; + s.y___20574 = undefined; + s.index___20580 = undefined; + s.tile___20587 = undefined; + s.x___20629 = undefined; + s.xLine___20635 = undefined; + s.y___20661 = undefined; + s.yLine___20667 = 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_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P75_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P78_mk(s); - s.tmp_3 = tiles_legacy_LegacyTilemap__C9551_v3_1_mk(s); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s); s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaWidth; - s.pc = 3; return s.tmp_3; - case 3: + if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled; + s.pc = 26; return s.tmp_3; + case 26: r0 = s.retval; s.tmp_2 = r0; - s.tmp_5 = tiles_legacy_LegacyTilemap_myWidth__P9557_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 1704; s.pc = 4; return s.tmp_5; - case 4: + 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 = 25; continue; } + case 1: + case 2: + r0 = s.arg0.fields["_scale"]; + s.tmp_5 = r0; + r0 = (1 << s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); + s.bitmask___20504 = (r0); + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___20504); + s.offsetX___20510 = (r0); + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___20504); + s.offsetY___20515 = (r0); + s.tmp_0 = Math_max__P122_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >> s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1719; s.pc = 27; return s.tmp_0; + case 27: r0 = s.retval; + s.x0___20520 = (r0); + s.tmp_0 = Math_min__P123_mk(s); + r0 = s.arg0.fields["_mapImage"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_1); + s.tmp_0.arg0 = r0; + r0 = s.arg2.fields["drawOffsetX"]; s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 1705; s.pc = 2; return s.tmp_1; - case 2: + s.tmp_6 = tiles_legacy_LegacyTilemap_myWidth__P3856_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 1720; s.pc = 29; return s.tmp_6; + case 29: r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_7 = r0; + r0 = (s.tmp_3 >> s.tmp_7); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 1706; s.pc = 1; return s.tmp_0; - case 1: + s.callLocIdx = 1722; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + s.xn___20527 = (r0); + s.tmp_0 = Math_max__P122_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >> s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1724; s.pc = 30; return s.tmp_0; + case 30: + r0 = s.retval; + s.y0___20544 = (r0); + s.tmp_0 = Math_min__P123_mk(s); + r0 = s.arg0.fields["_mapImage"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_1); + s.tmp_0.arg0 = r0; + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_3 >> s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 1726; s.pc = 31; return s.tmp_0; + case 31: + r0 = s.retval; + s.yn___20551 = (r0); + s.x___20568 = (s.x0___20520); + case 3: + r0 = (s.x___20568 <= s.xn___20527); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.y___20574 = (s.y0___20544); + case 4: + r0 = (s.y___20574 <= s.yn___20551); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.arg0.fields["_mapImage"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.x___20568, s.y___20574); + s.index___20580 = (r0); + r0 = s.arg0.fields["_tileSets"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.index___20580); + 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_2 = tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.index___20580; + s.callLocIdx = 1727; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tile___20587 = (s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.tile___20587); + if (!r0) { step = 7; continue; } + s.tmp_0 = r0 = s.arg1; + s.tmp_2 = tiles_legacy_TileSet_image__P20141_mk(s); + s.tmp_2.arg0 = s.tile___20587; + s.callLocIdx = 1728; s.pc = 33; return s.tmp_2; + case 33: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_6 = tiles_legacy_LegacyTilemap_myLeft__P3855_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 1729; s.pc = 34; return s.tmp_6; + case 34: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.x___20568 - s.x0___20520); + 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_5 + s.tmp_7); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.offsetX___20510); + s.tmp_3 = r0; + r0 = (s.y___20574 - s.y0___20544); + s.tmp_12 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_13 = r0; + r0 = (s.tmp_12 << s.tmp_13); + s.tmp_11 = r0; + r0 = (s.tmp_11 - s.offsetY___20515); + s.tmp_10 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.tmp_3, s.tmp_10); + case 7: + case 8: + r0 = (s.y___20574 + 1); + s.y___20574 = (r0); + { step = 4; continue; } + case 9: + r0 = (s.x___20568 + 1); + s.x___20568 = (r0); + { step = 3; continue; } + case 10: + r0 = pxsim_numops_toBoolDecr(globals.debug___2520); + if (!r0) { step = 23; continue; } + s.x___20629 = (s.x0___20520); + case 11: + r0 = (s.x___20629 <= s.xn___20527); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = (s.x___20629 - s.x0___20520); + 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___20510); + s.xLine___20635 = (r0); + r0 = (s.xLine___20635 >= 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_1 = r0 = s.xLine___20635; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + case 13: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 14; continue; } + s.tmp_4 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = s.xLine___20635; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.xLine___20635; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_4.arg4 = r0; + s.tmp_4.arg5 = 1; + s.callLocIdx = 1733; s.pc = 35; return s.tmp_4; + case 35: + r0 = s.retval; + case 14: + case 15: + r0 = (s.x___20629 + 1); + s.x___20629 = (r0); + { step = 11; continue; } + case 16: + s.y___20661 = (s.y0___20544); + case 17: + r0 = (s.y___20661 <= s.yn___20551); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.y___20661 - s.y0___20544); + 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___20515); + s.yLine___20667 = (r0); + r0 = (s.yLine___20667 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 18; continue; } + r0 = s.tmp_0; + { step = 19; continue; } + case 18: + s.tmp_1 = r0 = s.yLine___20667; + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + case 19: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 20; continue; } + s.tmp_4 = helpers_imageDrawLine__P1727_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = 0; + s.tmp_4.arg2 = s.yLine___20667; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_4.arg3 = r0; + s.tmp_4.arg4 = s.yLine___20667; + s.tmp_4.arg5 = 1; + s.callLocIdx = 1735; s.pc = 36; return s.tmp_4; + case 36: r0 = s.retval; + case 20: + case 21: + r0 = (s.y___20661 + 1); + s.y___20661 = (r0); + { step = 17; continue; } + case 22: + case 23: + case 24: + case 25: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_offsetX__P9558.info = {"start":2133,"length":185,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"mytilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +tiles_legacy_LegacyTilemap_draw__P11441.info = {"start":5512,"length":2284,"line":173,"column":8,"endLine":228,"endColumn":9,"fileName":"mytilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} -function tiles_legacy_LegacyTilemap_offsetX__P9558_mk(s) { +function tiles_legacy_LegacyTilemap_draw__P11441_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_offsetX__P9558, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_draw__P11441, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -70837,15 +70090,39 @@ function tiles_legacy_LegacyTilemap_offsetX__P9558_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + bitmask___20504: undefined, + offsetX___20510: undefined, + offsetY___20515: undefined, + x0___20520: undefined, + xn___20527: undefined, + y0___20544: undefined, + yn___20551: undefined, + x___20568: undefined, + y___20574: undefined, + index___20580: undefined, + tile___20587: undefined, + x___20629: undefined, + xLine___20635: undefined, + y___20661: undefined, + yLine___20667: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_legacy_LegacyTilemap_data__P9554(s) { +function tiles_legacy_LegacyTilemap_myLeft__P3855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70860,19 +70137,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = null; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = s.arg0.fields["_screenX"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 << s.tmp_1); + return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_data__P9554.info = {"start":1830,"length":60,"line":55,"column":8,"endLine":57,"endColumn":9,"fileName":"mytilemap.ts","functionName":"data","argumentNames":["this"]} -tiles_legacy_LegacyTilemap_data__P9554.isGetter = true; +tiles_legacy_LegacyTilemap_myLeft__P3855.info = {"start":1975,"length":68,"line":63,"column":8,"endLine":65,"endColumn":9,"fileName":"mytilemap.ts","functionName":"myLeft","argumentNames":["this"]} -function tiles_legacy_LegacyTilemap_data__P9554_mk(s) { +function tiles_legacy_LegacyTilemap_myLeft__P3855_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_data__P9554, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_myLeft__P3855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -70880,7 +70162,7 @@ function tiles_legacy_LegacyTilemap_data__P9554_mk(s) { -function tileworld_TileSprite_isOutOfScreen__P7464(s) { +function tiles_legacy_TileSet_image__P20141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -70890,142 +70172,102 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___7560 = undefined; - s.oy___7570 = undefined; + s.size___20160 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileSprite__C7459_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; + if (!checkSubtype(r0, tiles_legacy_TileSet__C20140_VT)) failedCast(r0); + r0 = s.arg0.fields["map"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 512); + r0 = s.tmp_1.fields["_scale"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = (1 << s.tmp_0); + s.size___20160 = (r0); + r0 = s.arg0.fields["cachedImage"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 0; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg1.fields["drawOffsetX"]; + r0 = s.arg0.fields["cachedImage"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + r0 = (s.tmp_3 != s.size___20160); case 2: // jmp value (already in r0) - s.tmp_2 = r0; - s.ox___7560 = (s.tmp_2); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 512); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); if (!r0) { step = 3; continue; } - r0 = 0; + r0 = s.tmp_5; { step = 4; continue; } case 3: - r0 = s.arg1.fields["drawOffsetY"]; + r0 = s.arg0.fields["cachedImage"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 != s.size___20160); case 4: // jmp value (already in r0) - s.tmp_2 = r0; - s.oy___7570 = (s.tmp_2); - r0 = s.arg0.fields["debug"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = 32; + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 9; continue; } + r0 = s.arg0.fields["originalImage"]; + s.tmp_11 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_11); + s.tmp_10 = r0; + r0 = (s.tmp_10 == s.size___20160); + s.tmp_9 = r0; + r0 = pxsim_numops_toBool(s.tmp_9); + if (r0) { step = 5; continue; } + r0 = s.tmp_9; { step = 6; continue; } case 5: - r0 = 0; + r0 = s.arg0.fields["originalImage"]; + s.tmp_13 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_13); + s.tmp_12 = r0; + r0 = (s.tmp_12 == s.size___20160); case 6: // jmp value (already in r0) - s.tmp_1 = r0; - s.tmp_5 = Sprite_right__P798_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 292; s.pc = 15; return s.tmp_5; - case 15: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.ox___7560); - s.tmp_3 = r0; - r0 = (s.tmp_3 < s.tmp_1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); + s.tmp_14 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_14); if (!r0) { step = 7; continue; } - r0 = s.tmp_2; + r0 = s.arg0.fields["originalImage"]; + s.tmp_15 = r0; + r0 = (s.arg0).fields["cachedImage"] = (s.tmp_15); { step = 8; continue; } case 7: - s.tmp_8 = Sprite_bottom__P802_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 293; s.pc = 16; return s.tmp_8; - case 16: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_7 - s.oy___7570); - s.tmp_6 = r0; - r0 = (s.tmp_6 < 0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.image.create(s.size___20160, s.size___20160); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["cachedImage"] = (s.tmp_1); + r0 = s.arg0.fields["cachedImage"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["originalImage"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.drawImage(s.tmp_0, s.tmp_1, 0, 0); case 8: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = pxsim_numops_toBool(s.tmp_9); - if (!r0) { step = 9; continue; } - r0 = s.tmp_9; - { step = 12; continue; } case 9: - r0 = s.arg0.fields["debug"]; - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 10; continue; } - r0 = 32; - { step = 11; continue; } case 10: - r0 = 0; - case 11: - // jmp value (already in r0) - s.tmp_11 = r0; - s.tmp_14 = Sprite_left__P796_mk(s); - s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 294; s.pc = 17; return s.tmp_14; - case 17: - r0 = s.retval; - s.tmp_13 = r0; - r0 = (s.tmp_13 - s.ox___7560); - s.tmp_12 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_16 = r0; - r0 = (s.tmp_16 - s.tmp_11); - s.tmp_15 = r0; - r0 = (s.tmp_12 > s.tmp_15); - case 12: - // jmp value (already in r0) - s.tmp_17 = r0; - r0 = pxsim_numops_toBool(s.tmp_17); - if (!r0) { step = 13; continue; } - r0 = s.tmp_17; - { step = 14; continue; } - case 13: - s.tmp_20 = Sprite_top__P800_mk(s); - s.tmp_20.arg0 = s.arg0; - s.callLocIdx = 295; s.pc = 18; return s.tmp_20; - case 18: - r0 = s.retval; - s.tmp_19 = r0; - r0 = (s.tmp_19 - s.oy___7570); - s.tmp_18 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); - s.tmp_21 = r0; - r0 = (s.tmp_18 > s.tmp_21); - case 14: - // jmp value (already in r0) - s.tmp_22 = r0; - r0 = s.tmp_22; - return leave(s, r0) + r0 = s.arg0.fields["cachedImage"]; + return leaveAccessor(s, r0) default: oops() } } } -tileworld_TileSprite_isOutOfScreen__P7464.info = {"start":1700,"length":438,"line":38,"column":8,"endLine":43,"endColumn":9,"fileName":"vm.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} +tiles_legacy_TileSet_image__P20141.info = {"start":834,"length":567,"line":27,"column":8,"endLine":38,"endColumn":9,"fileName":"mytilemap.ts","functionName":"image","argumentNames":["this"]} +tiles_legacy_TileSet_image__P20141.isGetter = true; -function tileworld_TileSprite_isOutOfScreen__P7464_mk(s) { +function tiles_legacy_TileSet_image__P20141_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileSprite_isOutOfScreen__P7464, depth: s.depth + 1, + parent: s, fn: tiles_legacy_TileSet_image__P20141, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -71043,24 +70285,15 @@ function tileworld_TileSprite_isOutOfScreen__P7464_mk(s) { tmp_13: undefined, tmp_14: undefined, tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - tmp_18: undefined, - tmp_19: undefined, - tmp_20: undefined, - tmp_21: undefined, - tmp_22: undefined, - ox___7560: undefined, - oy___7570: undefined, + size___20160: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_toString__P854(s) { +function tiles_legacy_LegacyTilemap_generateTile__P11438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71070,53 +70303,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.size___20449 = undefined; + s.i___20453 = 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__C844_VT)) failedCast(r0); - r0 = pxsim_String_.mkEmpty(); - s.tmp_1 = r0; - r0 = s.arg0.fields["_sprites"]; - s.tmp_4 = r0; - r0 = pxsim_Array__length(s.tmp_4); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.tmp_3); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_3) + ""; } + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + s.tmp_0 = r0; + r0 = (1 << s.tmp_0); + s.size___20449 = (r0); + r0 = pxsim.image.create(s.size___20449, s.size___20449); + s.i___20453 = (r0); + r0 = pxsim_ImageMethods.fill(s.i___20453, s.arg1); + r0 = pxsim_pxtcore_mkClassInstance(tiles_legacy_TileSet__C20140_VT); + s.tmp_0 = r0; + s.tmp_1 = tiles_legacy_TileSet_constructor__P20142_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.i___20453; + s.tmp_1.arg2 = false; + s.tmp_1.arg3 = s.arg0; + s.callLocIdx = 1716; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; + r0 = s.arg0.fields["_tileSets"]; s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, " sprites"); + r0 = pxsim_Array_.setAt(s.tmp_2, s.arg1, s.tmp_0); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_toString__P854.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} +tiles_legacy_LegacyTilemap_generateTile__P11438.info = {"start":4880,"length":245,"line":155,"column":8,"endLine":161,"endColumn":9,"fileName":"mytilemap.ts","functionName":"generateTile","argumentNames":["this","index"]} -function sprites_SpriteSet_toString__P854_mk(s) { +function tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_toString__P854, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_generateTile__P11438, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, + size___20449: undefined, + i___20453: undefined, arg0: undefined, + arg1: undefined, } } -function sprites_SpriteSet_length__P846(s) { +function tiles_legacy_LegacyTilemap_myWidth__P3856(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71131,22 +70371,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C844_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); - return leaveAccessor(s, r0) + s.tmp_2 = tiles_legacy_LegacyTilemap_myLeft__P3855_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1704; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + return leave(s, r0) default: oops() } } } -sprites_SpriteSet_length__P846.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__P846.isGetter = true; +tiles_legacy_LegacyTilemap_myWidth__P3856.info = {"start":2053,"length":70,"line":67,"column":8,"endLine":69,"endColumn":9,"fileName":"mytilemap.ts","functionName":"myWidth","argumentNames":["this"]} -function sprites_SpriteSet_length__P846_mk(s) { +function tiles_legacy_LegacyTilemap_myWidth__P3856_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P846, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_myWidth__P3856, 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, } } @@ -71154,7 +70401,7 @@ function sprites_SpriteSet_length__P846_mk(s) { -function tileworld_ruleediting_RuleViewDisplay_update__P12391(s) { +function tiles_legacy_LegacyTilemap_setTileAt__P3868(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71164,82 +70411,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___12521 = undefined; - s.col___12534 = 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, tileworld_ruleediting_RuleViewDisplay__C12387_VT)) failedCast(r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_update__P11276_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 825; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P12513); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = globals.transformImages___12380; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 827; s.pc = 2; return s.tmp_1; - case 2: + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_3 = tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.callLocIdx = 1714; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; - s.tmp_0 = r0 = globals.transformMap___12377; - r0 = s.arg0.fields["baseRule"]; s.tmp_2 = r0; - r0 = s.tmp_2.fields["r"]; - r0 = r0.fields["transforms"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_0, s.tmp_1, undefined); - s.index___12521 = (r0); - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = (1 + s.index___12521); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.cursorOut___7253; - s.callLocIdx = 829; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = (s.index___12521 + 1); - s.col___12534 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P12541); + r0 = pxsim_Boolean__bang(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.col___12534); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - r0 = s.arg0.fields["ruleViews"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 831; s.pc = 4; return s.tmp_1; - case 4: + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_6 = tiles_legacy_LegacyTilemap__C3850_v10_2_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = s.arg3; + if (!checkSubtype(s.tmp_6.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_6.arg0); + s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.isInvalidIndex; + s.pc = 6; return s.tmp_6; + case 6: r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + case 2: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["_mapImage"]; + s.tmp_8 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_8, s.arg1, s.arg2, s.arg3); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleViewDisplay_update__P12391.info = {"start":1968,"length":555,"line":46,"column":8,"endLine":60,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"update","argumentNames":["this"]} +tiles_legacy_LegacyTilemap_setTileAt__P3868.info = {"start":3492,"length":210,"line":120,"column":8,"endLine":123,"endColumn":9,"fileName":"mytilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} -function tileworld_ruleediting_RuleViewDisplay_update__P12391_mk(s) { +function tiles_legacy_LegacyTilemap_setTileAt__P3868_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleViewDisplay_update__P12391, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_setTileAt__P3868, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - index___12521: undefined, - col___12534: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function inline__P12513(s) { +function tiles_legacy_LegacyTilemap_isOutsideMap__P11439(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71252,38 +70502,104 @@ 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 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.caps[0]; - r0 = (s.arg1 + 1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.arg0; - s.callLocIdx = 826; s.pc = 1; return s.tmp_0; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled; + s.pc = 9; return s.tmp_3; + case 9: r0 = s.retval; - r0 = undefined; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg1 < 0); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = s.tmp_4; + { step = 4; continue; } + case 3: + s.tmp_5 = r0 = s.arg1; + r0 = s.arg0.fields["_mapImage"]; + s.tmp_7 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_5 >= s.tmp_6); + case 4: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBool(s.tmp_8); + if (!r0) { step = 5; continue; } + r0 = s.tmp_8; + { step = 6; continue; } + case 5: + r0 = (s.arg2 < 0); + case 6: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = pxsim_numops_toBool(s.tmp_9); + if (!r0) { step = 7; continue; } + r0 = s.tmp_9; + { step = 8; continue; } + case 7: + s.tmp_10 = r0 = s.arg2; + r0 = s.arg0.fields["_mapImage"]; + s.tmp_12 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_12); + s.tmp_11 = r0; + r0 = (s.tmp_10 >= s.tmp_11); + case 8: + // jmp value (already in r0) + s.tmp_13 = r0; + r0 = s.tmp_13; return leave(s, r0) default: oops() } } } -inline__P12513.info = {"start":2081,"length":72,"line":49,"column":36,"endLine":51,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["img","i"]} +tiles_legacy_LegacyTilemap_isOutsideMap__P11439.info = {"start":5135,"length":202,"line":163,"column":8,"endLine":166,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} -function inline__P12513_mk(s) { +function tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P12513, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_isOutsideMap__P11439, depth: s.depth + 1, pc: 0, retval: undefined, 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, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function inline__P12541(s) { +function tiles_legacy_LegacyTilemap_enabled__P3863(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71295,39 +70611,42 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.caps[0]; - r0 = (s.caps[1] + s.arg1); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 1; - s.tmp_0.arg3 = globals.include2___7268; - s.callLocIdx = 830; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = s.arg0.fields["_mapImage"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -inline__P12541.info = {"start":2425,"length":86,"line":57,"column":35,"endLine":59,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["rv","index"]} +tiles_legacy_LegacyTilemap_enabled__P3863.info = {"start":2895,"length":71,"line":99,"column":8,"endLine":101,"endColumn":9,"fileName":"mytilemap.ts","functionName":"enabled","argumentNames":["this"]} +tiles_legacy_LegacyTilemap_enabled__P3863.isGetter = true; -function inline__P12541_mk(s) { +function tiles_legacy_LegacyTilemap_enabled__P3863_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P12541, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_enabled__P3863, depth: s.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 tileworld_ruleediting_RuleViewDisplay_cursorMove__P12389(s) { +function tiles_legacy_LegacyTilemap_areaHeight__P3860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71339,53 +70658,51 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C12387_VT)) failedCast(r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_cursorMove__P11273_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 817; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = s.arg0.fields["_mapImage"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_mapImage"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_2); + 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 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleViewDisplay_cursorToView__P12390_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 818; s.pc = 2; return s.tmp_0; + r0 = 0; case 2: - r0 = s.retval; - s.tmp_0 = tileworld_ruleediting_RuleViewDisplay__C12387_v0_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleViewDisplay__C12387_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = undefined; + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleViewDisplay_cursorMove__P12389.info = {"start":1196,"length":173,"line":26,"column":8,"endLine":30,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} +tiles_legacy_LegacyTilemap_areaHeight__P3860.info = {"start":2572,"length":103,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"mytilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function tileworld_ruleediting_RuleViewDisplay_cursorMove__P12389_mk(s) { +function tiles_legacy_LegacyTilemap_areaHeight__P3860_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleViewDisplay_cursorMove__P12389, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_areaHeight__P3860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tileworld_ruleediting_RuleViewDisplay_cursorToView__P12390(s) { +function tiles_legacy_LegacyTilemap_areaWidth__P3859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71395,181 +70712,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___12453 = undefined; - s.index___12473 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C12387_VT)) failedCast(r0); - r0 = s.arg0.fields["baseRule"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["r"]; - r0 = r0.fields["transforms"]; - s.t___12453 = (r0); - r0 = s.arg0.fields["baseRule"]; + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = s.arg0.fields["_mapImage"]; s.tmp_0 = r0; - r0 = (s.arg0).fields["rule"] = (s.tmp_0); - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 820; s.pc = 15; return s.tmp_2; - case 15: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_mapImage"]; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 << s.tmp_3); { step = 2; continue; } case 1: - r0 = (s.t___12453 != 0); + r0 = 0; case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["ruleViews"]; - s.tmp_5 = r0; - r0 = pxsim_Array__length(s.tmp_5); s.tmp_4 = r0; - r0 = (s.tmp_4 > 0); - case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 13; continue; } - r0 = pxsim_Array_.indexOf(globals.transformMap___12377, s.t___12453, undefined); - s.index___12473 = (r0); - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 821; s.pc = 16; return s.tmp_2; - case 16: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.index___12473 + 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 == s.tmp_3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_4 = r0 = s.arg0; - r0 = s.arg0.fields["ruleViews"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, 0); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["rule"] = (s.tmp_5); - { step = 12; continue; } - case 5: - r0 = s.arg0.fields["ruleViews"]; - s.tmp_2 = r0; - r0 = pxsim_Array__length(s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = true; - s.callLocIdx = 822; s.pc = 17; return s.tmp_4; - case 17: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 > 6); - case 7: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); - if (r0) { step = 8; continue; } - r0 = s.tmp_5; - { step = 9; continue; } - case 8: - s.tmp_7 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = true; - s.callLocIdx = 823; s.pc = 18; return s.tmp_7; - case 18: + r0 = s.tmp_4; + return leave(s, r0) + default: oops() +} } } +tiles_legacy_LegacyTilemap_areaWidth__P3859.info = {"start":2461,"length":101,"line":81,"column":8,"endLine":83,"endColumn":9,"fileName":"mytilemap.ts","functionName":"areaWidth","argumentNames":["this"]} + +function tiles_legacy_LegacyTilemap_areaWidth__P3859_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_legacy_LegacyTilemap_areaWidth__P3859, depth: s.depth + 1, + pc: 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_legacy_LegacyTilemap_offsetY__P3858(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_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P119_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P122_mk(s); + s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v4_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaHeight; + s.pc = 3; return s.tmp_3; + case 3: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 <= 8); - case 9: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 10; continue; } - s.tmp_9 = r0 = s.arg0; - r0 = s.arg0.fields["ruleViews"]; - s.tmp_11 = r0; - s.tmp_14 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_14.arg0 = s.arg0; - s.tmp_14.arg1 = true; - s.callLocIdx = 824; s.pc = 19; return s.tmp_14; - case 19: + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 1708; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - s.tmp_13 = r0; - r0 = (s.tmp_13 - 6); - s.tmp_12 = r0; - r0 = pxsim_Array__getAt(s.tmp_11, s.tmp_12); - s.tmp_10 = r0; - r0 = (s.tmp_9).fields["rule"] = (s.tmp_10); - case 10: - case 11: - case 12: - case 13: - case 14: - s.tmp_0 = tileworld_ruleediting_RuleViewDisplay__C12387_v0_1_mk(s); - s.tmp_0.arg0 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleViewDisplay__C12387_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; - s.pc = 20; return s.tmp_0; - case 20: + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1709; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleViewDisplay_cursorToView__P12390.info = {"start":1379,"length":579,"line":32,"column":8,"endLine":44,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"cursorToView","argumentNames":["this"]} +tiles_legacy_LegacyTilemap_offsetY__P3858.info = {"start":2328,"length":123,"line":77,"column":8,"endLine":79,"endColumn":9,"fileName":"mytilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} -function tileworld_ruleediting_RuleViewDisplay_cursorToView__P12390_mk(s) { +function tiles_legacy_LegacyTilemap_offsetY__P3858_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleViewDisplay_cursorToView__P12390, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_offsetY__P3858, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - t___12453: undefined, - index___12473: undefined, arg0: undefined, + arg1: undefined, } } -function tileworld_ruleediting_RuleEditor_showAttributes__P12694(s) { +function tiles_legacy_LegacyTilemap_offsetX__P3857(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71582,47 +70835,98 @@ 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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_showAttributes__P11288_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1150; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P119_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P122_mk(s); + s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v3_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.areaWidth; + s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + s.tmp_5 = tiles_legacy_LegacyTilemap_myWidth__P3856_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 1705; s.pc = 4; return s.tmp_5; + case 4: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 1706; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 1707; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_showAttributes__P12694.info = {"start":19007,"length":160,"line":431,"column":8,"endLine":433,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"showAttributes","argumentNames":["this","col","row","show"]} +tiles_legacy_LegacyTilemap_offsetX__P3857.info = {"start":2133,"length":185,"line":71,"column":8,"endLine":75,"endColumn":9,"fileName":"mytilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} -function tileworld_ruleediting_RuleEditor_showAttributes__P12694_mk(s) { +function tiles_legacy_LegacyTilemap_offsetX__P3857_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_showAttributes__P12694, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_offsetX__P3857, depth: s.depth + 1, pc: 0, retval: undefined, 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 tileworld_ruleediting_RuleEditor_cursorMove__P12681(s) { +function tiles_legacy_LegacyTilemap_data__P3853(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_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = null; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_legacy_LegacyTilemap_data__P3853.info = {"start":1830,"length":60,"line":55,"column":8,"endLine":57,"endColumn":9,"fileName":"mytilemap.ts","functionName":"data","argumentNames":["this"]} +tiles_legacy_LegacyTilemap_data__P3853.isGetter = true; + +function tiles_legacy_LegacyTilemap_data__P3853_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_legacy_LegacyTilemap_data__P3853, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tileworld_TileSprite_isOutOfScreen__P9373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -71632,343 +70936,142 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ox___9466 = undefined; + s.oy___9474 = 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, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - r0 = s.arg0.fields["menu"]; - 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; } - s.tmp_2 = tileworld_ruleediting_RuleDisplay_cursorMove__P11273_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.arg1; - s.tmp_2.arg2 = s.arg2; - s.callLocIdx = 1026; s.pc = 29; return s.tmp_2; - case 29: - r0 = s.retval; - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 1027; s.pc = 30; return s.tmp_2; - case 30: - r0 = s.retval; + if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; - r0 = (s.tmp_1 >= 2); + r0 = (s.tmp_1 & 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = tileworld_ruleediting_RuleEditor_restoreCursor__P12676_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1028; s.pc = 31; return s.tmp_3; - case 31: - r0 = s.retval; + r0 = 0; + { step = 2; continue; } case 1: + r0 = s.arg1.fields["drawOffsetX"]; case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.ox___9466 = (s.tmp_2); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 512); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = 0; + { step = 4; continue; } case 3: + r0 = s.arg1.fields["drawOffsetY"]; case 4: - r0 = s.arg0.fields["p"]; - r0 = r0.fields["help"]; + // jmp value (already in r0) + s.tmp_2 = r0; + s.oy___9474 = (s.tmp_2); + r0 = s.arg0.fields["debug"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 27; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = true; - s.callLocIdx = 1029; s.pc = 32; return s.tmp_3; - case 32: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 < 6); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 5; continue; } - s.tmp_5 = Sprite_x__P770_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_5.arg0 = r0; - s.callLocIdx = 1030; s.pc = 33; return s.tmp_5; - case 33: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 + 16); + r0 = 32; { step = 6; continue; } case 5: - s.tmp_7 = Sprite_x__P770_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_7.arg0 = r0; - s.callLocIdx = 1031; s.pc = 34; return s.tmp_7; - case 34: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 - 16); + r0 = 0; case 6: // jmp value (already in r0) - s.tmp_8 = r0; - s.tmp_9 = Sprite_x__P771_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.tmp_8; - s.callLocIdx = 1032; s.pc = 35; return s.tmp_9; - case 35: - r0 = s.retval; - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 1033; s.pc = 36; return s.tmp_2; - case 36: - r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 < 6); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_y__P772_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_4.arg0 = r0; - s.callLocIdx = 1034; s.pc = 37; return s.tmp_4; - case 37: + s.tmp_5 = Sprite_right__P2061_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 292; s.pc = 15; return s.tmp_5; + case 15: r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.ox___9466); s.tmp_3 = r0; - r0 = (s.tmp_3 + 32); + r0 = (s.tmp_3 < s.tmp_1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 7; continue; } + r0 = s.tmp_2; { step = 8; continue; } case 7: - s.tmp_5 = Sprite_y__P772_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_5.arg0 = r0; - s.callLocIdx = 1035; s.pc = 38; return s.tmp_5; - case 38: + s.tmp_8 = Sprite_bottom__P2065_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 293; s.pc = 16; return s.tmp_8; + case 16: r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_7 - s.oy___9474); + s.tmp_6 = r0; + r0 = (s.tmp_6 < 0); case 8: // jmp value (already in r0) - s.tmp_6 = r0; - s.tmp_7 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = s.tmp_6; - s.callLocIdx = 1036; s.pc = 39; return s.tmp_7; - case 39: - r0 = s.retval; - s.tmp_0 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = null; - s.tmp_0.arg2 = undefined; - s.tmp_0.arg3 = 15; - s.tmp_0.arg4 = 1; - s.callLocIdx = 1037; s.pc = 40; return s.tmp_0; - case 40: - r0 = s.retval; - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = true; - s.callLocIdx = 1038; s.pc = 41; return s.tmp_4; - case 41: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); + s.tmp_9 = r0; + r0 = pxsim_numops_toBool(s.tmp_9); if (!r0) { step = 9; continue; } - r0 = s.tmp_2; - { step = 10; continue; } + r0 = s.tmp_9; + { step = 12; continue; } case 9: - s.tmp_6 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = true; - s.callLocIdx = 1039; s.pc = 42; return s.tmp_6; - case 42: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_5 == 6); + r0 = s.arg0.fields["debug"]; + s.tmp_10 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 10; continue; } + r0 = 32; + { step = 11; continue; } case 10: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 11; continue; } - s.tmp_8 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_8.arg0 = r0; - s.tmp_9 = tileworld_getHelp__P3837_mk(s); - s.tmp_9.arg0 = globals.menuHelpString___13299; - s.tmp_10 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_10.arg0 = s.arg0; - s.tmp_10.arg1 = true; - s.callLocIdx = 1040; s.pc = 45; return s.tmp_10; - case 45: - r0 = s.retval; - s.tmp_9.arg1 = r0; - s.tmp_11 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_11.arg0 = s.arg0; - s.tmp_11.arg1 = true; - s.callLocIdx = 1041; s.pc = 46; return s.tmp_11; - case 46: - r0 = s.retval; - s.tmp_9.arg2 = r0; - s.callLocIdx = 1042; s.pc = 44; return s.tmp_9; - case 44: - r0 = s.retval; - s.tmp_8.arg1 = r0; - s.tmp_8.arg2 = undefined; - s.tmp_8.arg3 = 15; - s.tmp_8.arg4 = 1; - s.callLocIdx = 1043; s.pc = 43; return s.tmp_8; - case 43: - r0 = s.retval; - { step = 14; continue; } + r0 = 0; case 11: - s.tmp_1 = tileworld_ruleediting_RuleEditor_inWhenPredicate__P12682_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 1044; s.pc = 47; return s.tmp_1; - case 47: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_2 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = "A: predicate"; - s.tmp_2.arg2 = undefined; - s.tmp_2.arg3 = 15; - s.tmp_2.arg4 = 1; - s.callLocIdx = 1045; s.pc = 48; return s.tmp_2; - case 48: + // jmp value (already in r0) + s.tmp_11 = r0; + s.tmp_14 = Sprite_left__P2059_mk(s); + s.tmp_14.arg0 = s.arg0; + s.callLocIdx = 294; s.pc = 17; return s.tmp_14; + case 17: r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_13 - s.ox___9466); + s.tmp_12 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___1799); + s.tmp_16 = r0; + r0 = (s.tmp_16 - s.tmp_11); + s.tmp_15 = r0; + r0 = (s.tmp_12 > s.tmp_15); case 12: + // jmp value (already in r0) + s.tmp_17 = r0; + r0 = pxsim_numops_toBool(s.tmp_17); + if (!r0) { step = 13; continue; } + r0 = s.tmp_17; + { step = 14; continue; } case 13: - case 14: - { step = 26; continue; } - case 15: - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = true; - s.callLocIdx = 1046; s.pc = 49; return s.tmp_4; - case 49: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 == 0); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 16; continue; } - s.tmp_5 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_5.arg0 = r0; - s.tmp_6 = tileworld_getHelp__P3837_mk(s); - s.tmp_6.arg0 = globals.attrHelpString___13301; - s.tmp_7 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = true; - s.callLocIdx = 1047; s.pc = 52; return s.tmp_7; - case 52: - r0 = s.retval; - s.tmp_6.arg1 = r0; - s.tmp_8 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_8.arg0 = s.arg0; - s.tmp_8.arg1 = true; - s.callLocIdx = 1048; s.pc = 53; return s.tmp_8; - case 53: - r0 = s.retval; - s.tmp_6.arg2 = r0; - s.callLocIdx = 1049; s.pc = 51; return s.tmp_6; - case 51: - r0 = s.retval; - s.tmp_5.arg1 = r0; - s.tmp_5.arg2 = undefined; - s.tmp_5.arg3 = 15; - s.tmp_5.arg4 = 1; - s.callLocIdx = 1050; s.pc = 50; return s.tmp_5; - case 50: - r0 = s.retval; - { step = 21; continue; } - case 16: - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 1051; s.pc = 54; return s.tmp_2; - case 54: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 17; continue; } - r0 = s.tmp_0; - { step = 18; continue; } - case 17: - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = true; - s.callLocIdx = 1052; s.pc = 55; return s.tmp_4; - case 55: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 < 8); + s.tmp_20 = Sprite_top__P2063_mk(s); + s.tmp_20.arg0 = s.arg0; + s.callLocIdx = 295; s.pc = 18; return s.tmp_20; case 18: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 19; continue; } - s.tmp_6 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "A: set flag"; - s.tmp_6.arg2 = undefined; - s.tmp_6.arg3 = 15; - s.tmp_6.arg4 = 1; - s.callLocIdx = 1053; s.pc = 56; return s.tmp_6; - case 56: - r0 = s.retval; - case 19: - case 20: - case 21: - { step = 25; continue; } - case 22: - r0 = s.arg0.fields["menu"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 == 3); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 23; continue; } - s.tmp_2 = tileworld_ruleediting_RuleEditor_commandUpdate__P12692_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 1054; s.pc = 57; return s.tmp_2; - case 57: r0 = s.retval; - case 23: - case 24: - case 25: - case 26: - case 27: - case 28: - r0 = undefined; + s.tmp_19 = r0; + r0 = (s.tmp_19 - s.oy___9474); + s.tmp_18 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.tmp_21 = r0; + r0 = (s.tmp_18 > s.tmp_21); + case 14: + // jmp value (already in r0) + s.tmp_22 = r0; + r0 = s.tmp_22; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_cursorMove__P12681.info = {"start":8798,"length":1412,"line":189,"column":8,"endLine":216,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} +tileworld_TileSprite_isOutOfScreen__P9373.info = {"start":1700,"length":438,"line":38,"column":8,"endLine":43,"endColumn":9,"fileName":"vm.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} -function tileworld_ruleediting_RuleEditor_cursorMove__P12681_mk(s) { +function tileworld_TileSprite_isOutOfScreen__P9373_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_cursorMove__P12681, depth: s.depth + 1, + parent: s, fn: tileworld_TileSprite_isOutOfScreen__P9373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -71982,16 +71085,28 @@ function tileworld_ruleediting_RuleEditor_cursorMove__P12681_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + tmp_22: undefined, + ox___9466: undefined, + oy___9474: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tileworld_getHelp__P3837(s) { +function sprites_SpriteSet_toString__P2119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72000,125 +71115,54 @@ while (true) { if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; switch (step) { case 0: - - s.index___3844 = undefined; - s.curr___3854 = undefined; - s.nextCol___3856 = undefined; - s.nextRow___3867 = undefined; - s.comma___3879 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(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; } - r0 = null; - { step = 11; continue; } - case 1: - case 2: - s.index___3844 = (0); - case 3: - r0 = (s.index___3844 >= 0); - 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_1 = r0 = s.index___3844; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - case 5: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - s.curr___3854 = (s.index___3844); - r0 = pxsim_String_.substr(s.arg0, s.curr___3854, 1); + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0); + r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; - r0 = pxsim_String_.charCodeAt(s.tmp_1, 0); - s.tmp_0 = r0; - r0 = (s.tmp_0 - globals.zeroCode___3834); - s.nextCol___3856 = (r0); - s.tmp_2 = r0 = s.arg0; - r0 = (s.curr___3854 + 1); + r0 = s.arg0.fields["_sprites"]; + s.tmp_4 = r0; + r0 = pxsim_Array__length(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_String_.substr(s.tmp_2, s.tmp_3, 1); - s.tmp_1 = r0; - r0 = pxsim_String_.charCodeAt(s.tmp_1, 0); - s.tmp_0 = r0; - r0 = (s.tmp_0 - globals.zeroCode___3834); - s.nextRow___3867 = (r0); - r0 = pxsim_String_.indexOf(s.arg0, ",", s.index___3844); - s.comma___3879 = (r0); - r0 = (s.nextCol___3856 == s.arg1); + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - r0 = (s.nextRow___3867 == s.arg2); - case 7: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 8; continue; } - s.tmp_2 = r0 = s.arg0; - r0 = (s.curr___3854 + 2); - s.tmp_3 = r0; - r0 = (s.comma___3879 - s.curr___3854); - s.tmp_5 = r0; - r0 = (s.tmp_5 - 2); - s.tmp_4 = r0; - r0 = pxsim_String_.substr(s.tmp_2, s.tmp_3, s.tmp_4); - { step = 11; continue; } - case 8: - case 9: - r0 = (s.comma___3879 + 1); - s.index___3844 = (r0); - { step = 3; continue; } - case 10: - r0 = null; - case 11: + r0 = pxsim_String__concat(s.tmp_0, " sprites"); return leave(s, r0) default: oops() } } } -tileworld_getHelp__P3837.info = {"start":68,"length":596,"line":4,"column":4,"endLine":18,"endColumn":5,"fileName":"utilities.ts","functionName":"getHelp","argumentNames":["help","col","row"]} +sprites_SpriteSet_toString__P2119.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} -function tileworld_getHelp__P3837_mk(s) { +function sprites_SpriteSet_toString__P2119_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_getHelp__P3837, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P2119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - index___3844: undefined, - curr___3854: undefined, - nextCol___3856: undefined, - nextRow___3867: undefined, - comma___3879: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tileworld_ruleediting_RuleEditor_okToMove__P12675(s) { +function sprites_SpriteSet_length__P2111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72133,24 +71177,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C12671_VT)) failedCast(r0); - r0 = s.arg0.fields["askDeleteRule"]; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!checkSubtype(r0, sprites_SpriteSet__C2108_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) + r0 = pxsim_Array__length(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -tileworld_ruleediting_RuleEditor_okToMove__P12675.info = {"start":7949,"length":72,"line":158,"column":8,"endLine":160,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"okToMove","argumentNames":["this"]} +sprites_SpriteSet_length__P2111.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__P2111.isGetter = true; -function tileworld_ruleediting_RuleEditor_okToMove__P12675_mk(s) { +function sprites_SpriteSet_length__P2111_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleEditor_okToMove__P12675, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P2111, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -72158,7 +71200,7 @@ function tileworld_ruleediting_RuleEditor_okToMove__P12675_mk(s) { -function tileworld_ruleediting_RuleRoom_cursorMove__P12557(s) { +function tileworld_ruleediting_RuleViewDisplay_update__P14222(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72168,232 +71210,82 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___12747 = undefined; - s.message___12757 = undefined; + s.index___14351 = undefined; + s.col___14364 = 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, tileworld_ruleediting_RuleRoom__C12555_VT)) failedCast(r0); - r0 = s.arg0.fields["p"]; - r0 = r0.fields["help"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = true; - s.callLocIdx = 859; s.pc = 11; return s.tmp_3; - case 11: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 < 7); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 1; continue; } - s.tmp_5 = Sprite_x__P770_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_5.arg0 = r0; - s.callLocIdx = 860; s.pc = 12; return s.tmp_5; - case 12: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 + 8); - { step = 2; continue; } + if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_update__P13111_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 825; s.pc = 1; return s.tmp_0; case 1: - s.tmp_7 = Sprite_x__P770_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_7.arg0 = r0; - s.callLocIdx = 861; s.pc = 13; return s.tmp_7; - case 13: r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 - 16); + r0 = pxsim_pxtcore_mkAction(1, inline__P14343); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = globals.transformImages___14212; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 827; s.pc = 2; return s.tmp_1; case 2: - // jmp value (already in r0) - s.tmp_8 = r0; - s.tmp_9 = Sprite_x__P771_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.tmp_8; - s.callLocIdx = 862; s.pc = 14; return s.tmp_9; - case 14: - r0 = s.retval; - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 863; s.pc = 15; return s.tmp_2; - case 15: r0 = s.retval; + s.tmp_0 = r0 = globals.transformMap___14209; + r0 = s.arg0.fields["baseRule"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["r"]; + r0 = r0.fields["transforms"]; s.tmp_1 = r0; - r0 = (s.tmp_1 < 6); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_y__P772_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_4.arg0 = r0; - s.callLocIdx = 864; s.pc = 16; return s.tmp_4; - case 16: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 32); - { step = 4; continue; } + r0 = pxsim_Array_.indexOf(s.tmp_0, s.tmp_1, undefined); + s.index___14351 = (r0); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = (1 + s.index___14351); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = globals.cursorOut___3724; + s.callLocIdx = 829; s.pc = 3; return s.tmp_0; case 3: - s.tmp_5 = Sprite_y__P772_mk(s); - r0 = s.arg0.fields["cursor"]; - s.tmp_5.arg0 = r0; - s.callLocIdx = 865; s.pc = 17; return s.tmp_5; - case 17: - r0 = s.retval; - case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - s.tmp_7 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_7.arg0 = r0; - s.tmp_7.arg1 = s.tmp_6; - s.callLocIdx = 866; s.pc = 18; return s.tmp_7; - case 18: - r0 = s.retval; - r0 = s.arg0.fields["dirMap"]; - s.tmp_0 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 867; s.pc = 19; return s.tmp_2; - case 19: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = true; - s.callLocIdx = 868; s.pc = 20; return s.tmp_4; - case 20: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.index___12747 = (r0); - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 869; s.pc = 21; return s.tmp_2; - case 21: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); + r0 = (s.index___14351 + 1); + s.col___14364 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P14371); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_5 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = true; - s.callLocIdx = 870; s.pc = 22; return s.tmp_5; - case 22: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 < 4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 5; continue; } - r0 = globals.helpStringTop___12551; - { step = 6; continue; } - case 5: - r0 = globals.helpStringBot___12553; - case 6: - // jmp value (already in r0) - s.tmp_6 = r0; - s.tmp_7 = tileworld_getHelp__P3837_mk(s); - s.tmp_7.arg0 = s.tmp_6; - s.tmp_8 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_8.arg0 = s.arg0; - s.tmp_8.arg1 = true; - s.callLocIdx = 871; s.pc = 24; return s.tmp_8; - case 24: - r0 = s.retval; - s.tmp_7.arg1 = r0; - s.tmp_9 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_9.arg0 = s.arg0; - s.tmp_9.arg1 = true; - s.callLocIdx = 872; s.pc = 25; return s.tmp_9; - case 25: - r0 = s.retval; - s.tmp_7.arg2 = r0; - s.callLocIdx = 873; s.pc = 23; return s.tmp_7; - case 23: - r0 = s.retval; - s.message___12757 = (r0); - s.tmp_0 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.message___12757; - s.tmp_0.arg2 = undefined; - s.tmp_0.arg3 = 15; - s.tmp_0.arg4 = 1; - s.callLocIdx = 874; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - { step = 8; continue; } - case 7: - s.tmp_0 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["helpCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = null; - s.tmp_0.arg2 = undefined; - s.tmp_0.arg3 = 15; - s.tmp_0.arg4 = 1; - s.callLocIdx = 875; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.tmp_0 = Sprite_say__P808_mk(s); - r0 = s.arg0.fields["moreHelp"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = null; - s.tmp_0.arg2 = undefined; - s.tmp_0.arg3 = 15; - s.tmp_0.arg4 = 1; - s.callLocIdx = 876; s.pc = 28; return s.tmp_0; - case 28: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___14364); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + r0 = s.arg0.fields["ruleViews"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 831; s.pc = 4; return s.tmp_1; + case 4: r0 = s.retval; - case 8: - case 9: - case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleRoom_cursorMove__P12557.info = {"start":2095,"length":728,"line":47,"column":8,"endLine":60,"endColumn":9,"fileName":"spriteRules.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} +tileworld_ruleediting_RuleViewDisplay_update__P14222.info = {"start":1968,"length":555,"line":46,"column":8,"endLine":60,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"update","argumentNames":["this"]} -function tileworld_ruleediting_RuleRoom_cursorMove__P12557_mk(s) { +function tileworld_ruleediting_RuleViewDisplay_update__P14222_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleRoom_cursorMove__P12557, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleViewDisplay_update__P14222, depth: s.depth + 1, pc: 0, retval: undefined, 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, - index___12747: undefined, - message___12757: undefined, + index___14351: undefined, + col___14364: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tileworld_ruleediting_RuleDisplay_cursorMove__P11273(s) { +function inline__P14343(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72406,38 +71298,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_0 = tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 713; s.pc = 1; return s.tmp_0; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.caps[0]; + r0 = (s.arg1 + 1); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = s.arg0; + s.callLocIdx = 826; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_cursorMove__P11273.info = {"start":2884,"length":106,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} +inline__P14343.info = {"start":2081,"length":72,"line":49,"column":36,"endLine":51,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["img","i"]} -function tileworld_ruleediting_RuleDisplay_cursorMove__P11273_mk(s) { +function inline__P14343_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_cursorMove__P11273, depth: s.depth + 1, + parent: s, fn: inline__P14343, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272(s) { +function inline__P14371(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72447,134 +71339,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___11368 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C11265_VT)) failedCast(r0); - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = true; - s.callLocIdx = 704; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 5); - 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_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = true; - s.callLocIdx = 705; s.pc = 6; return s.tmp_4; - case 6: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 >= 2); - case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 3; continue; } - s.tmp_7 = tileworld_RuleVisualsBase_row__P10849_mk(s); - s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = true; - s.callLocIdx = 706; s.pc = 7; return s.tmp_7; - case 7: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 - 2); - s.row___11368 = (r0); - s.tmp_0 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["otherCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 128; - s.tmp_0.arg2 = false; - s.callLocIdx = 707; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.tmp_0 = Sprite_x__P771_mk(s); - r0 = s.arg0.fields["otherCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_3 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.row___11368; - s.callLocIdx = 708; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 16); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 8); - s.tmp_0.arg1 = r0; - s.callLocIdx = 709; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); - r0 = s.arg0.fields["otherCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_5 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280_mk(s); - s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.row___11368; - s.callLocIdx = 710; s.pc = 12; return s.tmp_5; - case 12: - r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 * 16); - s.tmp_3 = r0; - r0 = (s.tmp_3 + 8); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 6); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 32); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.caps[0]; + r0 = (s.caps[1] + s.arg1); s.tmp_0.arg1 = r0; - s.callLocIdx = 711; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - { step = 4; continue; } - case 3: - s.tmp_0 = Sprite_setFlag__P813_mk(s); - r0 = s.arg0.fields["otherCursor"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 128; - s.tmp_0.arg2 = true; - s.callLocIdx = 712; s.pc = 13; return s.tmp_0; - case 13: + s.tmp_0.arg2 = 1; + s.tmp_0.arg3 = globals.include2___3729; + s.callLocIdx = 830; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272.info = {"start":2203,"length":671,"line":58,"column":8,"endLine":70,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"otherCursorMove","argumentNames":["this"]} +inline__P14371.info = {"start":2425,"length":86,"line":57,"column":35,"endLine":59,"endColumn":13,"fileName":"ruleTransform.ts","functionName":"inline","argumentNames":["rv","index"]} -function tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272_mk(s) { +function inline__P14371_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272, depth: s.depth + 1, + parent: s, fn: inline__P14371, depth: s.depth + 1, pc: 0, retval: undefined, 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, - row___11368: undefined, arg0: undefined, + arg1: undefined, } } -function tileworld_Gallery_update__P15346(s) { +function tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72584,88 +71383,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___15452 = undefined; - s.row___15453 = 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, tileworld_Gallery__C15344_VT)) failedCast(r0); - r0 = s.arg0.fields["dirMap"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); - r0 = pxsim_ImageMethods.fill(globals.screen___578, 0); - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_0.arg1 = "Gallery"; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 6; - s.tmp_0.arg4 = undefined; - s.tmp_0.arg5 = undefined; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1309; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_cursorMove__P13108_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.callLocIdx = 817; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 1; - r0 = s.arg0.fields["newImage"]; - s.tmp_0.arg3 = r0; - s.callLocIdx = 1310; s.pc = 2; return s.tmp_0; + s.callLocIdx = 818; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_ruleediting_RuleViewDisplay__C3801_v0_1_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 2; - s.tmp_0.arg2 = 1; - r0 = s.arg0.fields["current"]; - s.tmp_0.arg3 = r0; - s.callLocIdx = 1311; s.pc = 3; return s.tmp_0; + if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 3; return s.tmp_0; case 3: - r0 = s.retval; - r0 = pxsim_pxtrt.mklocRef(); - s.col___15452 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.col___15452, 4); - r0 = pxsim_pxtrt.mklocRef(); - s.row___15453 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.row___15453, 1); - r0 = pxsim_pxtcore_mkAction(3, inline__P15457); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___15452); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.row___15453); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - r0 = s.arg0.fields["gallery"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 1313; s.pc = 4; return s.tmp_1; - case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_Gallery_update__P15346.info = {"start":1283,"length":525,"line":32,"column":8,"endLine":46,"endColumn":9,"fileName":"gallery.ts","functionName":"update","argumentNames":["this"]} +tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220.info = {"start":1196,"length":173,"line":26,"column":8,"endLine":30,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} -function tileworld_Gallery_update__P15346_mk(s) { +function tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_Gallery_update__P15346, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - col___15452: undefined, - row___15453: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P15457(s) { +function tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72675,98 +71441,173 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.t___14283 = undefined; + s.index___14303 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); - s.tmp_0.arg0 = s.caps[0]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_0.arg1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.arg0; - s.callLocIdx = 1312; s.pc = 3; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(r0); + r0 = s.arg0.fields["baseRule"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["r"]; + r0 = r0.fields["transforms"]; + s.t___14283 = (r0); + r0 = s.arg0.fields["baseRule"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["rule"] = (s.tmp_0); + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 820; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.t___14283 != 0); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } case 3: + r0 = s.arg0.fields["ruleViews"]; + s.tmp_5 = r0; + r0 = pxsim_Array__length(s.tmp_5); + s.tmp_4 = r0; + r0 = (s.tmp_4 > 0); + case 4: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 13; continue; } + r0 = pxsim_Array_.indexOf(globals.transformMap___14209, s.t___14283, undefined); + s.index___14303 = (r0); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 821; s.pc = 16; return s.tmp_2; + case 16: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.index___14303 + 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 == s.tmp_3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_4 = r0 = s.arg0; + r0 = s.arg0.fields["ruleViews"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, 0); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["rule"] = (s.tmp_5); + { step = 12; continue; } + case 5: + r0 = s.arg0.fields["ruleViews"]; + s.tmp_2 = r0; + r0 = pxsim_Array__length(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = true; + s.callLocIdx = 822; s.pc = 17; return s.tmp_4; + case 17: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 > 6); + case 7: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBool(s.tmp_5); + if (r0) { step = 8; continue; } + r0 = s.tmp_5; + { step = 9; continue; } + case 8: + s.tmp_7 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = true; + s.callLocIdx = 823; s.pc = 18; return s.tmp_7; + case 18: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 <= 8); + case 9: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 10; continue; } + s.tmp_9 = r0 = s.arg0; + r0 = s.arg0.fields["ruleViews"]; + s.tmp_11 = r0; + s.tmp_14 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_14.arg0 = s.arg0; + s.tmp_14.arg1 = true; + s.callLocIdx = 824; s.pc = 19; return s.tmp_14; + case 19: + r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_13 - 6); + s.tmp_12 = r0; + r0 = pxsim_Array__getAt(s.tmp_11, s.tmp_12); + s.tmp_10 = r0; + r0 = (s.tmp_9).fields["rule"] = (s.tmp_10); + case 10: + case 11: + case 12: + case 13: + case 14: + s.tmp_0 = tileworld_ruleediting_RuleViewDisplay__C3801_v0_1_mk(s); + s.tmp_0.arg0 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, tileworld_ruleediting_RuleViewDisplay__C3801_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.update; + s.pc = 20; return s.tmp_0; + case 20: r0 = s.retval; - r0 = s.caps[0].fields["dirMap"]; - s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.arg1); - s.tmp_0 = r0 = s.caps[1]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 2); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_1 = r0; - r0 = (s.tmp_1 == 10); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[1], 2); - s.tmp_0 = r0 = s.caps[2]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 2); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 1: - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P15457.info = {"start":1593,"length":203,"line":40,"column":33,"endLine":45,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":["img","i"]} +tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221.info = {"start":1379,"length":579,"line":32,"column":8,"endLine":44,"endColumn":9,"fileName":"ruleTransform.ts","functionName":"cursorToView","argumentNames":["this"]} -function inline__P15457_mk(s) { +function tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15457, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221, 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 music_Melody_toString__P454(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, music_Melody__C444_VT)) failedCast(r0); - r0 = s.arg0.fields["_text"]; - return leave(s, r0) - default: oops() -} } } -music_Melody_toString__P454.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__P454_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: music_Melody_toString__P454, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + t___14283: undefined, + index___14303: undefined, arg0: undefined, } } @@ -72774,7 +71615,7 @@ function music_Melody_toString__P454_mk(s) { -function tiles_TileMapData_constructor__P1085(s) { +function tileworld_ruleediting_RuleEditor_showAttributes__P14521(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72789,38 +71630,31 @@ 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, tiles_TileMapData__C1073_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__P1077_mk(s); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_showAttributes__P13123_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg4; - s.callLocIdx = 732; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + r0 = s.arg0.fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1150; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P1085.info = {"start":3227,"length":358,"line":123,"column":8,"endLine":131,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} +tileworld_ruleediting_RuleEditor_showAttributes__P14521.info = {"start":19007,"length":160,"line":431,"column":8,"endLine":433,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"showAttributes","argumentNames":["this","col","row","show"]} -function tiles_TileMapData_constructor__P1085_mk(s) { +function tileworld_ruleediting_RuleEditor_showAttributes__P14521_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P1085, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_showAttributes__P14521, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -72828,14 +71662,13 @@ function tiles_TileMapData_constructor__P1085_mk(s) { arg1: undefined, arg2: undefined, arg3: undefined, - arg4: undefined, } } -function scene_BackgroundLayer_constructor__P1053(s) { +function tileworld_ruleediting_RuleEditor_cursorMove__P14508(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -72849,205 +71682,362 @@ 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, scene_BackgroundLayer__C1051_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P78_mk(s); - s.tmp_2.arg0 = 1; + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + r0 = s.arg0.fields["menu"]; + 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; } + s.tmp_2 = tileworld_ruleediting_RuleDisplay_cursorMove__P13108_mk(s); + s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 725; s.pc = 7; return s.tmp_2; - case 7: + s.tmp_2.arg2 = s.arg2; + s.callLocIdx = 1026; s.pc = 29; return s.tmp_2; + case 29: + r0 = s.retval; + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 1027; s.pc = 30; return s.tmp_2; + case 30: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["distance"] = (s.tmp_1); - r0 = (s.arg0).fields["img"] = (s.arg3); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } + r0 = (s.tmp_1 >= 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = tileworld_ruleediting_RuleEditor_restoreCursor__P14503_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1028; s.pc = 31; return s.tmp_3; + case 31: + r0 = s.retval; case 1: - r0 = (s.arg0).fields["repeatX"] = (true); - r0 = (s.arg0).fields["repeatY"] = (true); - r0 = (s.arg0).fields["alignX"] = (5); - r0 = (s.arg0).fields["alignY"] = (5); - { step = 6; continue; } case 2: case 3: - r0 = (s.arg0).fields["repeatX"] = (false); - r0 = (s.arg0).fields["repeatY"] = (true); - r0 = (s.arg0).fields["alignX"] = (s.arg2); - r0 = (s.arg0).fields["alignY"] = (5); - { step = 6; continue; } case 4: + r0 = s.arg0.fields["p"]; + r0 = r0.fields["help"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 27; continue; } + s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = true; + s.callLocIdx = 1029; s.pc = 32; return s.tmp_3; + case 32: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 < 6); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 5; continue; } + s.tmp_5 = Sprite_x__P2022_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_5.arg0 = r0; + s.callLocIdx = 1030; s.pc = 33; return s.tmp_5; + case 33: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 + 16); + { step = 6; continue; } case 5: - r0 = (s.arg0).fields["repeatX"] = (true); - r0 = (s.arg0).fields["repeatY"] = (false); - r0 = (s.arg0).fields["alignX"] = (5); - r0 = (s.arg0).fields["alignY"] = (s.arg2); + s.tmp_7 = Sprite_x__P2022_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_7.arg0 = r0; + s.callLocIdx = 1031; s.pc = 34; return s.tmp_7; + case 34: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 - 16); case 6: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_BackgroundLayer_constructor__P1053.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__P1053_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_BackgroundLayer_constructor__P1053, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function sprites_SpriteMap_toString__P837(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C827_VT)) failedCast(r0); - r0 = pxsim_String_.mkEmpty(); + // jmp value (already in r0) + s.tmp_8 = r0; + s.tmp_9 = Sprite_x__P2023_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.tmp_8; + s.callLocIdx = 1032; s.pc = 35; return s.tmp_9; + case 35: + r0 = s.retval; + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 1033; s.pc = 36; return s.tmp_2; + case 36: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 6); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_4 = Sprite_y__P2024_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_4.arg0 = r0; + s.callLocIdx = 1034; s.pc = 37; return s.tmp_4; + case 37: + r0 = s.retval; s.tmp_3 = r0; - r0 = s.arg0.fields["buckets"]; + r0 = (s.tmp_3 + 32); + { step = 8; continue; } + case 7: + s.tmp_5 = Sprite_y__P2024_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_5.arg0 = r0; + s.callLocIdx = 1035; s.pc = 38; return s.tmp_5; + case 38: + r0 = s.retval; + case 8: + // jmp value (already in r0) s.tmp_6 = r0; - r0 = pxsim_Array__length(s.tmp_6); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 1); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 1: + s.tmp_7 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = s.tmp_6; + s.callLocIdx = 1036; s.pc = 39; return s.tmp_7; + case 39: r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_2, " buckets, "); + s.tmp_0 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = null; + s.tmp_0.arg2 = undefined; + s.tmp_0.arg3 = 15; + s.tmp_0.arg4 = 1; + s.callLocIdx = 1037; s.pc = 40; return s.tmp_0; + case 40: + r0 = s.retval; + r0 = s.arg0.fields["menu"]; s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P61_mk(s); - r0 = s.arg0.fields["buckets"]; - s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = inline__P27525; - s.callLocIdx = 491; s.pc = 2; return s.tmp_10; - case 2: + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = true; + s.callLocIdx = 1038; s.pc = 41; return s.tmp_4; + case 41: r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_Array__length(s.tmp_9); - s.tmp_8 = r0; - if ((s.tmp_8) && (s.tmp_8).vtable) { - setupResume(s, 3); - pxsim_String__stringConv(s.tmp_8); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_8) + ""; } - case 3: + s.tmp_3 = r0; + r0 = (s.tmp_3 == 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 9; continue; } + r0 = s.tmp_2; + { step = 10; continue; } + case 9: + s.tmp_6 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_6.arg0 = s.arg0; + s.tmp_6.arg1 = true; + s.callLocIdx = 1039; s.pc = 42; return s.tmp_6; + case 42: r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_5 == 6); + case 10: + // jmp value (already in r0) s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 11; continue; } + s.tmp_8 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_8.arg0 = r0; + s.tmp_9 = tileworld_getHelp__P3537_mk(s); + s.tmp_9.arg0 = globals.menuHelpString___15115; + s.tmp_10 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_10.arg0 = s.arg0; + s.tmp_10.arg1 = true; + s.callLocIdx = 1040; s.pc = 45; return s.tmp_10; + case 45: + r0 = s.retval; + s.tmp_9.arg1 = r0; + s.tmp_11 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_11.arg0 = s.arg0; + s.tmp_11.arg1 = true; + s.callLocIdx = 1041; s.pc = 46; return s.tmp_11; + case 46: + r0 = s.retval; + s.tmp_9.arg2 = r0; + s.callLocIdx = 1042; s.pc = 44; return s.tmp_9; + case 44: + r0 = s.retval; + s.tmp_8.arg1 = r0; + s.tmp_8.arg2 = undefined; + s.tmp_8.arg3 = 15; + s.tmp_8.arg4 = 1; + s.callLocIdx = 1043; s.pc = 43; return s.tmp_8; + case 43: + r0 = s.retval; + { step = 14; continue; } + case 11: + s.tmp_1 = tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 1044; s.pc = 47; return s.tmp_1; + case 47: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, " filled"); - return leave(s, r0) - default: oops() -} } } -sprites_SpriteMap_toString__P837.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__P837_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_SpriteMap_toString__P837, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - arg0: undefined, -} } - - - - - -function inline__P27525(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + s.tmp_2 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = "A: predicate"; + s.tmp_2.arg2 = undefined; + s.tmp_2.arg3 = 15; + s.tmp_2.arg4 = 1; + s.callLocIdx = 1045; s.pc = 48; return s.tmp_2; + case 48: + r0 = s.retval; + case 12: + case 13: + case 14: + { step = 26; continue; } + case 15: + r0 = s.arg0.fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = true; + s.callLocIdx = 1046; s.pc = 49; return s.tmp_4; + case 49: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 == 0); s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 16; continue; } + s.tmp_5 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_5.arg0 = r0; + s.tmp_6 = tileworld_getHelp__P3537_mk(s); + s.tmp_6.arg0 = globals.attrHelpString___15117; + s.tmp_7 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = true; + s.callLocIdx = 1047; s.pc = 52; return s.tmp_7; + case 52: + r0 = s.retval; + s.tmp_6.arg1 = r0; + s.tmp_8 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_8.arg0 = s.arg0; + s.tmp_8.arg1 = true; + s.callLocIdx = 1048; s.pc = 53; return s.tmp_8; + case 53: + r0 = s.retval; + s.tmp_6.arg2 = r0; + s.callLocIdx = 1049; s.pc = 51; return s.tmp_6; + case 51: + r0 = s.retval; + s.tmp_5.arg1 = r0; + s.tmp_5.arg2 = undefined; + s.tmp_5.arg3 = 15; + s.tmp_5.arg4 = 1; + s.callLocIdx = 1050; s.pc = 50; return s.tmp_5; + case 50: + r0 = s.retval; + { step = 21; continue; } + case 16: + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 1051; s.pc = 54; return s.tmp_2; + case 54: + r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = (s.tmp_1 == 1); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 17; continue; } + r0 = s.tmp_0; + { step = 18; continue; } + case 17: + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = true; + s.callLocIdx = 1052; s.pc = 55; return s.tmp_4; + case 55: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 < 8); + case 18: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 19; continue; } + s.tmp_6 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "A: set flag"; + s.tmp_6.arg2 = undefined; + s.tmp_6.arg3 = 15; + s.tmp_6.arg4 = 1; + s.callLocIdx = 1053; s.pc = 56; return s.tmp_6; + case 56: + r0 = s.retval; + case 19: + case 20: + case 21: + { step = 25; continue; } + case 22: + r0 = s.arg0.fields["menu"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 == 3); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 23; continue; } + s.tmp_2 = tileworld_ruleediting_RuleEditor_commandUpdate__P14519_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 1054; s.pc = 57; return s.tmp_2; + case 57: + r0 = s.retval; + case 23: + case 24: + case 25: + case 26: + case 27: + case 28: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P27525.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} +tileworld_ruleediting_RuleEditor_cursorMove__P14508.info = {"start":8798,"length":1412,"line":189,"column":8,"endLine":216,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} -function inline__P27525_mk(s) { +function tileworld_ruleediting_RuleEditor_cursorMove__P14508_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P27525, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_cursorMove__P14508, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_Camera_y__P1133(s) { +function tileworld_getHelp__P3537(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73057,41 +72047,124 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.index___5974 = undefined; + s.curr___5983 = undefined; + s.nextCol___5985 = undefined; + s.nextRow___5995 = undefined; + s.comma___6007 = 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_Camera__C1127_VT)) failedCast(r0); - r0 = s.arg0.fields["drawOffsetY"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = null; + { step = 11; continue; } + case 1: + case 2: + s.index___5974 = (0); + case 3: + r0 = (s.index___5974 >= 0); + 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_1 = r0 = s.index___5974; + r0 = pxsim_String_.length(s.arg0); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + r0 = (s.tmp_1 < s.tmp_2); + case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + s.curr___5983 = (s.index___5974); + r0 = pxsim_String_.substr(s.arg0, s.curr___5983, 1); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) + r0 = pxsim_String_.charCodeAt(s.tmp_1, 0); + s.tmp_0 = r0; + r0 = (s.tmp_0 - globals.zeroCode___5966); + s.nextCol___5985 = (r0); + s.tmp_2 = r0 = s.arg0; + r0 = (s.curr___5983 + 1); + s.tmp_3 = r0; + r0 = pxsim_String_.substr(s.tmp_2, s.tmp_3, 1); + s.tmp_1 = r0; + r0 = pxsim_String_.charCodeAt(s.tmp_1, 0); + s.tmp_0 = r0; + r0 = (s.tmp_0 - globals.zeroCode___5966); + s.nextRow___5995 = (r0); + r0 = pxsim_String_.indexOf(s.arg0, ",", s.index___5974); + s.comma___6007 = (r0); + r0 = (s.nextCol___5985 == s.arg1); + 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.nextRow___5995 == s.arg2); + case 7: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 8; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = (s.curr___5983 + 2); + s.tmp_3 = r0; + r0 = (s.comma___6007 - s.curr___5983); + s.tmp_5 = r0; + r0 = (s.tmp_5 - 2); + s.tmp_4 = r0; + r0 = pxsim_String_.substr(s.tmp_2, s.tmp_3, s.tmp_4); + { step = 11; continue; } + case 8: + case 9: + r0 = (s.comma___6007 + 1); + s.index___5974 = (r0); + { step = 3; continue; } + case 10: + r0 = null; + case 11: + return leave(s, r0) default: oops() } } } -scene_Camera_y__P1133.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__P1133.isGetter = true; +tileworld_getHelp__P3537.info = {"start":68,"length":596,"line":4,"column":4,"endLine":18,"endColumn":5,"fileName":"utilities.ts","functionName":"getHelp","argumentNames":["help","col","row"]} -function scene_Camera_y__P1133_mk(s) { +function tileworld_getHelp__P3537_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_y__P1133, depth: s.depth + 1, + parent: s, fn: tileworld_getHelp__P3537, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + index___5974: undefined, + curr___5983: undefined, + nextCol___5985: undefined, + nextRow___5995: undefined, + comma___6007: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_Camera_x__P1132(s) { +function tileworld_ruleediting_RuleEditor_okToMove__P14502(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73106,28 +72179,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C1127_VT)) failedCast(r0); - r0 = s.arg0.fields["drawOffsetX"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + if (!checkSubtype(r0, tileworld_ruleediting_RuleEditor__C3816_VT)) failedCast(r0); + r0 = s.arg0.fields["askDeleteRule"]; s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) default: oops() } } } -scene_Camera_x__P1132.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__P1132.isGetter = true; +tileworld_ruleediting_RuleEditor_okToMove__P14502.info = {"start":7949,"length":72,"line":158,"column":8,"endLine":160,"endColumn":9,"fileName":"ruleeditor.ts","functionName":"okToMove","argumentNames":["this"]} -function scene_Camera_x__P1132_mk(s) { +function tileworld_ruleediting_RuleEditor_okToMove__P14502_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_x__P1132, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleEditor_okToMove__P14502, 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, } } @@ -73135,7 +72204,7 @@ function scene_Camera_x__P1132_mk(s) { -function ArcadePhysicsEngine_moveSprite__P926(s) { +function tileworld_ruleediting_RuleRoom_cursorMove__P14386(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73145,199 +72214,209 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___27563 = undefined; - s.maxDist___27573 = undefined; - s.ms___27593 = undefined; + s.index___14573 = undefined; + s.message___14583 = 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__C908_VT)) failedCast(r0); - r0 = s.arg1.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); - r0 = s.arg1.fields["_y"]; + if (!checkSubtype(r0, tileworld_ruleediting_RuleRoom__C3805_VT)) failedCast(r0); + r0 = s.arg0.fields["p"]; + r0 = r0.fields["help"]; s.tmp_0 = r0; - r0 = (s.arg1).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_x"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.arg1.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 & 515); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = true; + s.callLocIdx = 859; s.pc = 11; return s.tmp_3; + case 11: + r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_2 < 7); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_4 = game_currentScene__P961_mk(s); - s.callLocIdx = 687; s.pc = 16; return s.tmp_4; - case 16: + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + s.tmp_5 = Sprite_x__P2022_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_5.arg0 = r0; + s.callLocIdx = 860; s.pc = 12; return s.tmp_5; + case 12: r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___27563 = (r0); - s.tmp_0 = r0 = s.tm___27563; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + s.tmp_4 = r0; + r0 = (s.tmp_4 + 8); { step = 2; continue; } case 1: - s.tmp_1 = tiles_TileMap__C1086_v6_1_mk(s); - s.tmp_1.arg0 = s.tm___27563; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled; - s.pc = 17; return s.tmp_1; - case 17: + s.tmp_7 = Sprite_x__P2022_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_7.arg0 = r0; + s.callLocIdx = 861; s.pc = 13; return s.tmp_7; + case 13: r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 - 16); case 2: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_8 = r0; + s.tmp_9 = Sprite_x__P2023_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.tmp_8; + s.callLocIdx = 862; s.pc = 14; return s.tmp_9; + case 14: + r0 = s.retval; + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 863; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 6); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - { step = 15; continue; } + s.tmp_4 = Sprite_y__P2024_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_4.arg0 = r0; + s.callLocIdx = 864; s.pc = 16; return s.tmp_4; + case 16: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 32); + { step = 4; continue; } case 3: + s.tmp_5 = Sprite_y__P2024_mk(s); + r0 = s.arg0.fields["cursor"]; + s.tmp_5.arg0 = r0; + s.callLocIdx = 865; s.pc = 17; return s.tmp_5; + case 17: + r0 = s.retval; case 4: - r0 = s.arg0.fields["maxSingleStep"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 + 128); + // jmp value (already in r0) s.tmp_6 = r0; - r0 = (s.tmp_6 >> 8); - s.maxDist___27573 = (r0); - s.tmp_2 = Math_abs__P76_mk(s); - r0 = (s.arg2 + 128); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 8); - s.tmp_2.arg0 = r0; - s.callLocIdx = 690; s.pc = 18; return s.tmp_2; + s.tmp_7 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = s.tmp_6; + s.callLocIdx = 866; s.pc = 18; return s.tmp_7; case 18: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___27573); + r0 = s.arg0.fields["dirMap"]; 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__P76_mk(s); - r0 = (s.arg3 + 128); - s.tmp_6 = r0; - r0 = (s.tmp_6 >> 8); - s.tmp_5.arg0 = r0; - s.callLocIdx = 692; s.pc = 19; return s.tmp_5; + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 867; s.pc = 19; return s.tmp_2; case 19: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___27573); - 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__C906_VT); - s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P907_mk(s); - s.tmp_9.arg0 = s.tmp_8; - s.tmp_9.arg1 = s.arg1; - r0 = s.arg1.fields["_vx"]; - s.tmp_9.arg2 = r0; - r0 = s.arg1.fields["_vy"]; - s.tmp_9.arg3 = r0; - s.tmp_9.arg4 = s.arg2; - s.tmp_9.arg5 = s.arg3; - s.tmp_9.arg6 = s.arg2; - s.tmp_9.arg7 = s.arg3; - s.callLocIdx = 693; s.pc = 20; return s.tmp_9; + s.tmp_1 = r0; + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = true; + s.callLocIdx = 868; s.pc = 20; return s.tmp_4; case 20: r0 = s.retval; - s.ms___27593 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P923_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___27593; - s.tmp_0.arg2 = s.tm___27563; - s.callLocIdx = 694; s.pc = 21; return s.tmp_0; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); + s.index___14573 = (r0); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 869; s.pc = 21; return s.tmp_2; case 21: r0 = s.retval; - { step = 12; continue; } - case 7: - s.tmp_1 = tiles_TileMap__C1086_v14_2_mk(s); - s.tmp_1.arg0 = s.tm___27563; - s.tmp_1.arg1 = s.arg1; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOnWall; - s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 8; continue; } - r0 = s.tmp_0; - { step = 9; continue; } - case 8: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P927_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___27563; - s.callLocIdx = 695; s.pc = 23; return s.tmp_4; - case 23: + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_5 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_5.arg1 = true; + s.callLocIdx = 870; s.pc = 22; return s.tmp_5; + case 22: r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 < 4); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 9: + if (!r0) { step = 5; continue; } + r0 = globals.helpStringTop___14381; + { step = 6; continue; } + case 5: + r0 = globals.helpStringBot___14383; + case 6: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 10; continue; } - s.tmp_6 = r0 = s.arg1; - r0 = s.tmp_6.fields["flags"]; - s.tmp_8 = r0; - r0 = (s.tmp_8 | 256); - s.tmp_7 = r0; - r0 = (s.tmp_6).fields["flags"] = (s.tmp_7); - { step = 11; continue; } + s.tmp_6 = r0; + s.tmp_7 = tileworld_getHelp__P3537_mk(s); + s.tmp_7.arg0 = s.tmp_6; + s.tmp_8 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_8.arg0 = s.arg0; + s.tmp_8.arg1 = true; + s.callLocIdx = 871; s.pc = 24; return s.tmp_8; + case 24: + r0 = s.retval; + s.tmp_7.arg1 = r0; + s.tmp_9 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_9.arg0 = s.arg0; + s.tmp_9.arg1 = true; + s.callLocIdx = 872; s.pc = 25; return s.tmp_9; + case 25: + r0 = s.retval; + s.tmp_7.arg2 = r0; + s.callLocIdx = 873; s.pc = 23; return s.tmp_7; + case 23: + r0 = s.retval; + s.message___14583 = (r0); + s.tmp_0 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.message___14583; + s.tmp_0.arg2 = undefined; + s.tmp_0.arg3 = 15; + s.tmp_0.arg4 = 1; + s.callLocIdx = 874; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + { step = 8; continue; } + case 7: + s.tmp_0 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["helpCursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = null; + s.tmp_0.arg2 = undefined; + s.tmp_0.arg3 = 15; + s.tmp_0.arg4 = 1; + s.callLocIdx = 875; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.tmp_0 = Sprite_say__P2071_mk(s); + r0 = s.arg0.fields["moreHelp"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = null; + s.tmp_0.arg2 = undefined; + s.tmp_0.arg3 = 15; + s.tmp_0.arg4 = 1; + s.callLocIdx = 876; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + case 8: + case 9: case 10: - s.tmp_0 = r0 = s.arg1; - r0 = s.tmp_0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & -257); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 11: - case 12: - case 13: - case 14: - case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P926.info = {"start":21384,"length":1276,"line":623,"column":4,"endLine":656,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} +tileworld_ruleediting_RuleRoom_cursorMove__P14386.info = {"start":2095,"length":728,"line":47,"column":8,"endLine":60,"endColumn":9,"fileName":"spriteRules.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} -function ArcadePhysicsEngine_moveSprite__P926_mk(s) { +function tileworld_ruleediting_RuleRoom_cursorMove__P14386_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P926, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleRoom_cursorMove__P14386, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -73349,20 +72428,18 @@ function ArcadePhysicsEngine_moveSprite__P926_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___27563: undefined, - maxDist___27573: undefined, - ms___27593: undefined, + index___14573: undefined, + message___14583: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function tiles_TileMap_isOnWall__P1108(s) { +function tileworld_ruleediting_RuleDisplay_cursorMove__P13108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73372,138 +72449,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___27799 = undefined; - s.left___27802 = undefined; - s.right___27808 = undefined; - s.top___27814 = undefined; - s.bottom___27820 = undefined; - s.col___27826 = undefined; - s.row___27832 = 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__C1086_VT)) failedCast(r0); - r0 = s.arg1.fields["_hitbox"]; - s.hbox___27799 = (r0); - s.tmp_1 = game_Hitbox_left__P755_mk(s); - s.tmp_1.arg0 = s.hbox___27799; - s.callLocIdx = 782; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.left___27802 = (r0); - s.tmp_1 = game_Hitbox_right__P757_mk(s); - s.tmp_1.arg0 = s.hbox___27799; - s.callLocIdx = 785; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.right___27808 = (r0); - s.tmp_1 = game_Hitbox_top__P756_mk(s); - s.tmp_1.arg0 = s.hbox___27799; - s.callLocIdx = 788; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.top___27814 = (r0); - s.tmp_1 = game_Hitbox_bottom__P758_mk(s); - s.tmp_1.arg0 = s.hbox___27799; - s.callLocIdx = 791; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___27820 = (r0); - s.col___27826 = (s.left___27802); + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_0 = tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 713; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.col___27826 <= s.right___27808); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.row___27832 = (s.top___27814); - case 2: - r0 = (s.row___27832 <= s.bottom___27820); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap__C1086_v12_3_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___27826; - s.tmp_2.arg2 = s.row___27832; - if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_2.arg0); - s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isObstacle; - s.pc = 12; return s.tmp_2; - case 12: r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = true; - { step = 7; continue; } - case 3: - case 4: - r0 = (s.row___27832 + 1); - s.row___27832 = (r0); - { step = 2; continue; } - case 5: - r0 = (s.col___27826 + 1); - s.col___27826 = (r0); - { step = 1; continue; } - case 6: - r0 = false; - case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P1108.info = {"start":11885,"length":627,"line":395,"column":8,"endLine":412,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +tileworld_ruleediting_RuleDisplay_cursorMove__P13108.info = {"start":2884,"length":106,"line":72,"column":8,"endLine":74,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} -function tiles_TileMap_isOnWall__P1108_mk(s) { +function tileworld_ruleediting_RuleDisplay_cursorMove__P13108_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P1108, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_cursorMove__P13108, depth: s.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___27799: undefined, - left___27802: undefined, - right___27808: undefined, - top___27814: undefined, - bottom___27820: undefined, - col___27826: undefined, - row___27832: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_TileMap_isObstacle__P1106(s) { +function tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73513,64 +72493,116 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.row___13202 = 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__C1086_VT)) failedCast(r0); - s.tmp_3 = tiles_TileMap__C1086_v6_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled; - s.pc = 6; return s.tmp_3; - case 6: + if (!checkSubtype(r0, tileworld_ruleediting_RuleDisplay__C3797_VT)) failedCast(r0); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = true; + s.callLocIdx = 704; s.pc = 5; return s.tmp_2; + 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 >= 5); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = true; + s.callLocIdx = 705; s.pc = 6; return s.tmp_4; + case 6: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 >= 2); case 2: - s.tmp_5 = tiles_TileMapData_isOutsideMap__P1084_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg1; - s.tmp_5.arg2 = s.arg2; - s.callLocIdx = 774; s.pc = 7; return s.tmp_5; + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + s.tmp_7 = tileworld_RuleVisualsBase_row__P12695_mk(s); + s.tmp_7.arg0 = s.arg0; + s.tmp_7.arg1 = true; + s.callLocIdx = 706; s.pc = 7; return s.tmp_7; case 7: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_6 - 2); + s.row___13202 = (r0); + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["otherCursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 128; + s.tmp_0.arg2 = false; + s.callLocIdx = 707; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = Sprite_x__P2023_mk(s); + r0 = s.arg0.fields["otherCursor"]; + s.tmp_0.arg0 = r0; + s.tmp_3 = tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.row___13202; + s.callLocIdx = 708; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 16); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 8); + s.tmp_0.arg1 = r0; + s.callLocIdx = 709; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = Sprite_y__P2025_mk(s); + r0 = s.arg0.fields["otherCursor"]; + s.tmp_0.arg0 = r0; + s.tmp_5 = tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_5.arg1 = s.row___13202; + s.callLocIdx = 710; s.pc = 12; return s.tmp_5; + case 12: r0 = s.retval; s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - r0 = true; - { step = 5; continue; } + r0 = (s.tmp_4 * 16); + s.tmp_3 = r0; + r0 = (s.tmp_3 + 8); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 6); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 32); + s.tmp_0.arg1 = r0; + s.callLocIdx = 711; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + { step = 4; continue; } case 3: - case 4: - r0 = s.arg0.fields["_map"]; - s.tmp_6 = r0; - r0 = s.tmp_6.fields["layers"]; - s.tmp_8 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_8, s.arg1, s.arg2); - s.tmp_7 = r0; - r0 = (s.tmp_7 === 2); - case 5: + s.tmp_0 = Sprite_setFlag__P2076_mk(s); + r0 = s.arg0.fields["otherCursor"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 128; + s.tmp_0.arg2 = true; + s.callLocIdx = 712; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_isObstacle__P1106.info = {"start":11244,"length":211,"line":376,"column":8,"endLine":381,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} +tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107.info = {"start":2203,"length":671,"line":58,"column":8,"endLine":70,"endColumn":9,"fileName":"ruledisplay.ts","functionName":"otherCursorMove","argumentNames":["this"]} -function tiles_TileMap_isObstacle__P1106_mk(s) { +function tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P1106, depth: s.depth + 1, + parent: s, fn: tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -73580,17 +72612,15 @@ function tiles_TileMap_isObstacle__P1106_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, + row___13202: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_TileMapData_isWall__P1083(s) { +function tileworld_Gallery_update__P17156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73600,41 +72630,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.col___17260 = undefined; + s.row___17261 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C1073_VT)) failedCast(r0); - r0 = s.arg0.fields["layers"]; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); + if (!checkSubtype(r0, tileworld_Gallery__C3823_VT)) failedCast(r0); + r0 = s.arg0.fields["dirMap"]; s.tmp_0 = r0; - r0 = (s.tmp_0 === 2); + r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); + r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_0.arg1 = "Gallery"; + s.tmp_0.arg2 = 0; + s.tmp_0.arg3 = 6; + s.tmp_0.arg4 = undefined; + s.tmp_0.arg5 = undefined; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1309; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 1; + r0 = s.arg0.fields["newImage"]; + s.tmp_0.arg3 = r0; + s.callLocIdx = 1310; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 2; + s.tmp_0.arg2 = 1; + r0 = s.arg0.fields["current"]; + s.tmp_0.arg3 = r0; + s.callLocIdx = 1311; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = pxsim_pxtrt.mklocRef(); + s.col___17260 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.col___17260, 4); + r0 = pxsim_pxtrt.mklocRef(); + s.row___17261 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.row___17261, 1); + r0 = pxsim_pxtcore_mkAction(3, inline__P17265); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.col___17260); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.row___17261); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + r0 = s.arg0.fields["gallery"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1313; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P1083.info = {"start":5397,"length":107,"line":193,"column":8,"endLine":195,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} +tileworld_Gallery_update__P17156.info = {"start":1283,"length":525,"line":32,"column":8,"endLine":46,"endColumn":9,"fileName":"gallery.ts","functionName":"update","argumentNames":["this"]} -function tiles_TileMapData_isWall__P1083_mk(s) { +function tileworld_Gallery_update__P17156_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P1083, depth: s.depth + 1, + parent: s, fn: tileworld_Gallery_update__P17156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + col___17260: undefined, + row___17261: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function game_Hitbox_bottom__P758(s) { +function inline__P17265(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73646,44 +72723,70 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C754_VT)) failedCast(r0); - r0 = s.arg0.fields["height"]; - s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P756_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 214; s.pc = 1; return s.tmp_3; - case 1: + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); + s.tmp_0.arg0 = s.caps[0]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0.arg1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.arg0; + s.callLocIdx = 1312; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; + r0 = s.caps[0].fields["dirMap"]; + s.tmp_0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.arg1); + s.tmp_0 = r0 = s.caps[1]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 2); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 10); s.tmp_0 = r0; - r0 = (s.tmp_0 - 256); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[1], 2); + s.tmp_0 = r0 = s.caps[2]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 2); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_Hitbox_bottom__P758.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__P758.isGetter = true; +inline__P17265.info = {"start":1593,"length":203,"line":40,"column":33,"endLine":45,"endColumn":13,"fileName":"gallery.ts","functionName":"inline","argumentNames":["img","i"]} -function game_Hitbox_bottom__P758_mk(s) { +function inline__P17265_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P758, depth: s.depth + 1, + parent: s, fn: inline__P17265, depth: s.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_Hitbox_right__P757(s) { +function music_Melody_toString__P1604(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73698,33 +72801,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C754_VT)) failedCast(r0); - r0 = s.arg0.fields["width"]; - s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P755_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 211; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, music_Melody__C1595_VT)) failedCast(r0); + r0 = s.arg0.fields["_text"]; + return leave(s, r0) default: oops() } } } -game_Hitbox_right__P757.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__P757.isGetter = true; +music_Melody_toString__P1604.info = {"start":9640,"length":53,"line":303,"column":8,"endLine":305,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} -function game_Hitbox_right__P757_mk(s) { +function music_Melody_toString__P1604_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P757, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P1604, depth: s.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, } } @@ -73732,7 +72820,7 @@ function game_Hitbox_right__P757_mk(s) { -function game_Hitbox_top__P756(s) { +function sprites_SpriteMap_toString__P2099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73747,26 +72835,69 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C754_VT)) failedCast(r0); - r0 = s.arg0.fields["oy"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["parent"]; - r0 = r0.fields["_y"]; + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + r0 = pxsim_String_.mkEmpty(); + s.tmp_3 = r0; + r0 = s.arg0.fields["buckets"]; + s.tmp_6 = r0; + r0 = pxsim_Array__length(s.tmp_6); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 1); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 1: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_2, " buckets, "); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) + s.tmp_10 = helpers_arrayFilter__P105_mk(s); + r0 = s.arg0.fields["buckets"]; + s.tmp_10.arg0 = r0; + s.tmp_10.arg1 = inline__P29148; + s.callLocIdx = 491; s.pc = 2; return s.tmp_10; + case 2: + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim_Array__length(s.tmp_9); + s.tmp_8 = r0; + if ((s.tmp_8) && (s.tmp_8).vtable) { + setupResume(s, 3); + pxsim_String__stringConv(s.tmp_8); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_8) + ""; } + case 3: + r0 = s.retval; + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, " filled"); + return leave(s, r0) default: oops() } } } -game_Hitbox_top__P756.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__P756.isGetter = true; +sprites_SpriteMap_toString__P2099.info = {"start":4109,"length":123,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"toString","argumentNames":["this"]} -function game_Hitbox_top__P756_mk(s) { +function sprites_SpriteMap_toString__P2099_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P756, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P2099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, arg0: undefined, } } @@ -73774,7 +72905,7 @@ function game_Hitbox_top__P756_mk(s) { -function game_Hitbox_left__P755(s) { +function inline__P29148(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73788,27 +72919,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C754_VT)) failedCast(r0); - r0 = s.arg0.fields["ox"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["parent"]; - r0 = r0.fields["_x"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) default: oops() } } } -game_Hitbox_left__P755.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__P755.isGetter = true; +inline__P29148.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} -function game_Hitbox_left__P755_mk(s) { +function inline__P29148_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P755, depth: s.depth + 1, + parent: s, fn: inline__P29148, 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, } } @@ -73816,7 +72946,7 @@ function game_Hitbox_left__P755_mk(s) { -function Fx_toIntShifted__P113(s) { +function ArcadePhysicsEngine_moveSprite__P2184(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73826,36 +72956,224 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tm___29186 = undefined; + s.maxDist___29196 = undefined; + s.ms___29216 = 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 = r0 = s.arg0; - r0 = (s.arg1 + 8); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + r0 = s.arg1.fields["_x"]; + s.tmp_0 = r0; + r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); + r0 = s.arg1.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.arg1).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.arg2); s.tmp_1 = r0; - r0 = (s.tmp_0 >> s.tmp_1); + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.arg3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = s.arg1.fields["flags"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 & 515); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_4 = game_currentScene__P2524_mk(s); + s.callLocIdx = 687; s.pc = 16; return s.tmp_4; + case 16: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___29186 = (r0); + s.tmp_0 = r0 = s.tm___29186; + 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__C2314_v6_1_mk(s); + s.tmp_1.arg0 = s.tm___29186; + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled; + s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + 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 = 3; continue; } + { step = 15; continue; } + case 3: + case 4: + r0 = s.arg0.fields["maxSingleStep"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 + 128); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 8); + s.maxDist___29196 = (r0); + s.tmp_2 = Math_abs__P120_mk(s); + r0 = (s.arg2 + 128); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 8); + s.tmp_2.arg0 = r0; + s.callLocIdx = 690; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= s.maxDist___29196); + 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__P120_mk(s); + r0 = (s.arg3 + 128); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 8); + s.tmp_5.arg0 = r0; + s.callLocIdx = 692; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 <= s.maxDist___29196); + 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__C2168_VT); + s.tmp_8 = r0; + s.tmp_9 = MovingSprite_constructor__P2169_mk(s); + s.tmp_9.arg0 = s.tmp_8; + s.tmp_9.arg1 = s.arg1; + r0 = s.arg1.fields["_vx"]; + s.tmp_9.arg2 = r0; + r0 = s.arg1.fields["_vy"]; + s.tmp_9.arg3 = r0; + s.tmp_9.arg4 = s.arg2; + s.tmp_9.arg5 = s.arg3; + s.tmp_9.arg6 = s.arg2; + s.tmp_9.arg7 = s.arg3; + s.callLocIdx = 693; s.pc = 20; return s.tmp_9; + case 20: + r0 = s.retval; + s.ms___29216 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P4152_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ms___29216; + s.tmp_0.arg2 = s.tm___29186; + s.callLocIdx = 694; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + { step = 12; continue; } + case 7: + s.tmp_1 = tiles_TileMap__C2314_v14_2_mk(s); + s.tmp_1.arg0 = s.tm___29186; + s.tmp_1.arg1 = s.arg1; + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOnWall; + s.pc = 22; return s.tmp_1; + case 22: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 8; continue; } + r0 = s.tmp_0; + { step = 9; continue; } + case 8: + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P4154_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.arg1; + s.tmp_4.arg2 = s.tm___29186; + s.callLocIdx = 695; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 9: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 10; continue; } + s.tmp_6 = r0 = s.arg1; + r0 = s.tmp_6.fields["flags"]; + s.tmp_8 = r0; + r0 = (s.tmp_8 | 256); + s.tmp_7 = r0; + r0 = (s.tmp_6).fields["flags"] = (s.tmp_7); + { step = 11; continue; } + case 10: + s.tmp_0 = r0 = s.arg1; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -257); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 11: + case 12: + case 13: + case 14: + case 15: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_toIntShifted__P113.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +ArcadePhysicsEngine_moveSprite__P2184.info = {"start":21343,"length":1276,"line":622,"column":4,"endLine":655,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} -function Fx_toIntShifted__P113_mk(s) { +function ArcadePhysicsEngine_moveSprite__P2184_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P113, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P2184, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tm___29186: undefined, + maxDist___29196: undefined, + ms___29216: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function ArcadePhysicsEngine_canResolveClipping__P927(s) { +function ArcadePhysicsEngine_canResolveClipping__P4154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -73865,19 +73183,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___27639 = undefined; - s.sz___27642 = undefined; - s.maxMove___27647 = undefined; - s.origY___27649 = undefined; - s.origX___27652 = undefined; - s.l___27655 = undefined; - s.r___27660 = undefined; - s.t___27665 = undefined; - s.b___27670 = undefined; - s.offset___27675 = undefined; - s.offset___27700 = undefined; - s.offset___27731 = undefined; - s.offset___27756 = undefined; + s.hbox___29261 = undefined; + s.sz___29264 = undefined; + s.maxMove___29269 = undefined; + s.origY___29271 = undefined; + s.origX___29274 = undefined; + s.l___29277 = undefined; + s.r___29282 = undefined; + s.t___29287 = undefined; + s.b___29292 = undefined; + s.offset___29297 = undefined; + s.offset___29322 = undefined; + s.offset___29353 = undefined; + s.offset___29378 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -73885,7 +73203,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); @@ -73896,7 +73214,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite_setHitbox__P791_mk(s); + s.tmp_4 = Sprite_setHitbox__P2054_mk(s); s.tmp_4.arg0 = s.arg1; s.callLocIdx = 697; s.pc = 20; return s.tmp_4; case 20: @@ -73904,23 +73222,23 @@ switch (step) { case 1: case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___27639 = (r0); + s.hbox___29261 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___27642 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P914_mk(s); + s.sz___29264 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P2176_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 699; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.maxMove___27647 = (r0); + s.maxMove___29269 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___27649 = (r0); + s.origY___29271 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___27652 = (r0); - s.tmp_1 = game_Hitbox_left__P755_mk(s); - s.tmp_1.arg0 = s.hbox___27639; + s.origX___29274 = (r0); + s.tmp_1 = game_Hitbox_left__P1963_mk(s); + s.tmp_1.arg0 = s.hbox___29261; s.callLocIdx = 700; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; @@ -73928,9 +73246,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.l___27655 = (r0); - s.tmp_1 = game_Hitbox_right__P757_mk(s); - s.tmp_1.arg0 = s.hbox___27639; + s.l___29277 = (r0); + s.tmp_1 = game_Hitbox_right__P1965_mk(s); + s.tmp_1.arg0 = s.hbox___29261; s.callLocIdx = 702; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; @@ -73938,9 +73256,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.r___27660 = (r0); - s.tmp_1 = game_Hitbox_top__P756_mk(s); - s.tmp_1.arg0 = s.hbox___27639; + s.r___29282 = (r0); + s.tmp_1 = game_Hitbox_top__P1964_mk(s); + s.tmp_1.arg0 = s.hbox___29261; s.callLocIdx = 704; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; @@ -73948,9 +73266,9 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.t___27665 = (r0); - s.tmp_1 = game_Hitbox_bottom__P758_mk(s); - s.tmp_1.arg0 = s.hbox___27639; + s.t___29287 = (r0); + s.tmp_1 = game_Hitbox_bottom__P1966_mk(s); + s.tmp_1.arg0 = s.hbox___29261; s.callLocIdx = 706; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; @@ -73958,29 +73276,29 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.b___27670 = (r0); - r0 = (s.b___27670 + 1); + s.b___29292 = (r0); + r0 = (s.b___29292 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___27642); - s.offset___27675 = (r0); - r0 = (s.offset___27675 <= s.maxMove___27647); + r0 = (s.tmp_0 % s.sz___29264); + s.offset___29297 = (r0); + r0 = (s.offset___29297 <= s.maxMove___29269); 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___27675 * 256); + r0 = (s.offset___29297 * 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__C1086_v14_2_mk(s); + s.tmp_3 = tiles_TileMap__C2314_v14_2_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall; s.pc = 26; return s.tmp_3; case 26: @@ -73996,38 +73314,38 @@ switch (step) { { step = 19; continue; } { step = 4; continue; } case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___27649); + r0 = (s.arg1).fields["_y"] = (s.origY___29271); case 4: case 5: case 6: - r0 = (s.t___27665 / s.sz___27642); + r0 = (s.t___29287 / s.sz___29264); 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___27642); + r0 = (s.tmp_1 * s.sz___29264); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___27665); - s.offset___27700 = (r0); - r0 = (s.offset___27700 <= s.maxMove___27647); + r0 = (s.tmp_0 - s.t___29287); + s.offset___29322 = (r0); + r0 = (s.offset___29322 <= s.maxMove___29269); 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___27700 * 256); + r0 = (s.offset___29322 * 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__C1086_v14_2_mk(s); + s.tmp_3 = tiles_TileMap__C2314_v14_2_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall; s.pc = 27; return s.tmp_3; case 27: @@ -74043,32 +73361,32 @@ switch (step) { { step = 19; continue; } { step = 8; continue; } case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___27649); + r0 = (s.arg1).fields["_y"] = (s.origY___29271); case 8: case 9: case 10: - r0 = (s.r___27660 + 1); + r0 = (s.r___29282 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___27642); - s.offset___27731 = (r0); - r0 = (s.offset___27731 <= s.maxMove___27647); + r0 = (s.tmp_0 % s.sz___29264); + s.offset___29353 = (r0); + r0 = (s.offset___29353 <= s.maxMove___29269); 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___27731 * 256); + r0 = (s.offset___29353 * 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__C1086_v14_2_mk(s); + s.tmp_3 = tiles_TileMap__C2314_v14_2_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall; s.pc = 28; return s.tmp_3; case 28: @@ -74084,38 +73402,38 @@ switch (step) { { step = 19; continue; } { step = 12; continue; } case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___27652); + r0 = (s.arg1).fields["_x"] = (s.origX___29274); case 12: case 13: case 14: - r0 = (s.l___27655 / s.sz___27642); + r0 = (s.l___29277 / s.sz___29264); 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___27642); + r0 = (s.tmp_1 * s.sz___29264); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___27655); - s.offset___27756 = (r0); - r0 = (s.offset___27756 <= s.maxMove___27647); + r0 = (s.tmp_0 - s.l___29277); + s.offset___29378 = (r0); + r0 = (s.offset___29378 <= s.maxMove___29269); 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___27756 * 256); + r0 = (s.offset___29378 * 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__C1086_v14_2_mk(s); + s.tmp_3 = tiles_TileMap__C2314_v14_2_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall; s.pc = 29; return s.tmp_3; case 29: @@ -74131,7 +73449,7 @@ switch (step) { { step = 19; continue; } { step = 16; continue; } case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___27652); + r0 = (s.arg1).fields["_x"] = (s.origX___29274); case 16: case 17: case 18: @@ -74140,12 +73458,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P927.info = {"start":22756,"length":2135,"line":659,"column":4,"endLine":730,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} +ArcadePhysicsEngine_canResolveClipping__P4154.info = {"start":22715,"length":2135,"line":658,"column":4,"endLine":729,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} -function ArcadePhysicsEngine_canResolveClipping__P927_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P4154_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P927, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P4154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -74153,19 +73471,19 @@ function ArcadePhysicsEngine_canResolveClipping__P927_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___27639: undefined, - sz___27642: undefined, - maxMove___27647: undefined, - origY___27649: undefined, - origX___27652: undefined, - l___27655: undefined, - r___27660: undefined, - t___27665: undefined, - b___27670: undefined, - offset___27675: undefined, - offset___27700: undefined, - offset___27731: undefined, - offset___27756: undefined, + hbox___29261: undefined, + sz___29264: undefined, + maxMove___29269: undefined, + origY___29271: undefined, + origX___29274: undefined, + l___29277: undefined, + r___29282: undefined, + t___29287: undefined, + b___29292: undefined, + offset___29297: undefined, + offset___29322: undefined, + offset___29353: undefined, + offset___29378: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -74175,7 +73493,7 @@ function ArcadePhysicsEngine_canResolveClipping__P927_mk(s) { -function Sprite_isStatic__P792(s) { +function Sprite_isStatic__P2055(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -74190,21 +73508,206 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_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__P792.info = {"start":8295,"length":57,"line":299,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} +Sprite_isStatic__P2055.info = {"start":8293,"length":57,"line":299,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} + +function Sprite_isStatic__P2055_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_isStatic__P2055, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_setHitbox__P2054(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__C2013_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = game_calculateHitBox__P1967_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 275; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_hitbox"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_setHitbox__P2054.info = {"start":8217,"length":70,"line":295,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} + +function Sprite_setHitbox__P2054_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_setHitbox__P2054, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, +} } + + + + + +function game_Hitbox_bottom__P1966(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0); + r0 = s.arg0.fields["height"]; + s.tmp_1 = r0; + s.tmp_3 = game_Hitbox_top__P1964_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 214; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 256); + return leaveAccessor(s, r0) + default: oops() +} } } +game_Hitbox_bottom__P1966.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__P1966.isGetter = true; + +function game_Hitbox_bottom__P1966_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Hitbox_bottom__P1966, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function game_Hitbox_right__P1965(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0); + r0 = s.arg0.fields["width"]; + s.tmp_1 = r0; + s.tmp_3 = game_Hitbox_left__P1963_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 211; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 256); + return leaveAccessor(s, r0) + default: oops() +} } } +game_Hitbox_right__P1965.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__P1965.isGetter = true; + +function game_Hitbox_right__P1965_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Hitbox_right__P1965, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function game_Hitbox_top__P1964(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0); + r0 = s.arg0.fields["oy"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["parent"]; + r0 = r0.fields["_y"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +game_Hitbox_top__P1964.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__P1964.isGetter = true; -function Sprite_isStatic__P792_mk(s) { +function game_Hitbox_top__P1964_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isStatic__P792, depth: s.depth + 1, + parent: s, fn: game_Hitbox_top__P1964, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -74212,7 +73715,7 @@ function Sprite_isStatic__P792_mk(s) { -function Sprite_setHitbox__P791(s) { +function game_Hitbox_left__P1963(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -74227,29 +73730,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = game_calculateHitBox__P760_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 275; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, game_Hitbox__C1956_VT)) failedCast(r0); + r0 = s.arg0.fields["ox"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["parent"]; + r0 = r0.fields["_x"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_hitbox"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -Sprite_setHitbox__P791.info = {"start":8219,"length":70,"line":295,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} +game_Hitbox_left__P1963.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__P1963.isGetter = true; -function Sprite_setHitbox__P791_mk(s) { +function game_Hitbox_left__P1963_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setHitbox__P791, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P1963, 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, } } @@ -74257,7 +73757,7 @@ function Sprite_setHitbox__P791_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P923(s) { +function ArcadePhysicsEngine_tilemapCollisions__P4152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -74267,38 +73767,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___27850 = undefined; - s.hbox___27873 = undefined; - s.tileScale___27876 = undefined; - s.tileSize___27879 = undefined; - s.xDiff___27883 = undefined; - s.yDiff___27890 = undefined; - s.overlappedTiles___27897 = undefined; - s.right___27902 = undefined; - s.x0___27906 = undefined; - s.collidedTiles___27921 = undefined; - s.y___27923 = undefined; - s.y0___27937 = undefined; - s.obstacle___27953 = undefined; - s.collisionDirection___27988 = undefined; - s.tile___28016 = undefined; + s.s___29471 = undefined; + s.hbox___29494 = undefined; + s.tileScale___29497 = undefined; + s.tileSize___29500 = undefined; + s.xDiff___29504 = undefined; + s.yDiff___29511 = undefined; + s.overlappedTiles___29518 = undefined; + s.right___29523 = undefined; + s.x0___29527 = undefined; + s.collidedTiles___29542 = undefined; + s.y___29544 = undefined; + s.y0___29558 = undefined; + s.obstacle___29574 = undefined; + s.collisionDirection___29608 = undefined; + s.tile___29634 = undefined; s.unnamed68___U15 = undefined; s.unnamed69___U16 = undefined; - s.down___28096 = undefined; - s.y0___28100 = undefined; - s.collidedTiles___28115 = undefined; - s.overlappedTiles___28117 = undefined; - s.x___28119 = undefined; - s.x0___28129 = undefined; - s.obstacle___28143 = undefined; - s.collisionDirection___28177 = undefined; - s.tile___28205 = undefined; + s.down___29712 = undefined; + s.y0___29716 = undefined; + s.collidedTiles___29731 = undefined; + s.overlappedTiles___29733 = undefined; + s.x___29735 = undefined; + s.x0___29745 = undefined; + s.obstacle___29759 = undefined; + s.collisionDirection___29793 = undefined; + s.tile___29819 = undefined; s.unnamed70___U26 = undefined; s.unnamed71___U27 = undefined; - s.x___28280 = undefined; - s.x0___28290 = undefined; - s.y___28300 = undefined; - s.y0___28310 = undefined; + s.x___29894 = undefined; + s.x0___29904 = undefined; + s.y___29914 = undefined; + s.y0___29924 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -74306,19 +73806,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___27850 = (r0); - r0 = s.s___27850.fields["flags"]; + s.s___29471 = (r0); + r0 = s.s___29471.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__C1086_v14_2_mk(s); + s.tmp_3 = tiles_TileMap__C2314_v14_2_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.s___27850; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.arg1 = s.s___29471; + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isOnWall; s.pc = 84; return s.tmp_3; case 84: @@ -74329,7 +73829,7 @@ switch (step) { { step = 83; continue; } { step = 2; continue; } case 1: - s.tmp_4 = r0 = s.s___27850; + s.tmp_4 = r0 = s.s___29471; r0 = s.tmp_4.fields["flags"]; s.tmp_6 = r0; r0 = (s.tmp_6 & -257); @@ -74338,7 +73838,7 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___27850.fields["_image"]; + r0 = s.s___29471.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -74348,43 +73848,43 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_4 = Sprite_setHitbox__P791_mk(s); - s.tmp_4.arg0 = s.s___27850; + s.tmp_4 = Sprite_setHitbox__P2054_mk(s); + s.tmp_4.arg0 = s.s___29471; s.callLocIdx = 590; s.pc = 85; return s.tmp_4; case 85: r0 = s.retval; case 5: case 6: - r0 = s.s___27850.fields["_hitbox"]; - s.hbox___27873 = (r0); + r0 = s.s___29471.fields["_hitbox"]; + s.hbox___29494 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___27876 = (r0); - r0 = (1 << s.tileScale___27876); - s.tileSize___27879 = (r0); - r0 = s.s___27850.fields["_x"]; + s.tileScale___29497 = (r0); + r0 = (1 << s.tileScale___29497); + s.tileSize___29500 = (r0); + r0 = s.s___29471.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___27850.fields["_lastX"]; + r0 = s.s___29471.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___27883 = (r0); - r0 = s.s___27850.fields["_y"]; + s.xDiff___29504 = (r0); + r0 = s.s___29471.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___27850.fields["_lastY"]; + r0 = s.s___29471.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___27890 = (r0); + s.yDiff___29511 = (r0); r0 = pxsim_Array__mk(); - s.overlappedTiles___27897 = (r0); - r0 = (s.xDiff___27883 !== 0); + s.overlappedTiles___29518 = (r0); + r0 = (s.xDiff___29504 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 39; continue; } - r0 = (s.xDiff___27883 > 0); - s.right___27902 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___27902); + r0 = (s.xDiff___29504 > 0); + s.right___29523 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___29523); if (!r0) { step = 7; continue; } - s.tmp_1 = game_Hitbox_right__P757_mk(s); - s.tmp_1.arg0 = s.hbox___27873; + s.tmp_1 = game_Hitbox_right__P1965_mk(s); + s.tmp_1.arg0 = s.hbox___29494; s.callLocIdx = 594; s.pc = 86; return s.tmp_1; case 86: r0 = s.retval; @@ -74392,8 +73892,8 @@ switch (step) { r0 = (s.tmp_0 + 256); { step = 8; continue; } case 7: - s.tmp_3 = game_Hitbox_left__P755_mk(s); - s.tmp_3.arg0 = s.hbox___27873; + s.tmp_3 = game_Hitbox_left__P1963_mk(s); + s.tmp_3.arg0 = s.hbox___29494; s.callLocIdx = 596; s.pc = 87; return s.tmp_3; case 87: r0 = s.retval; @@ -74404,30 +73904,30 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___27876 + 8); + r0 = (s.tileScale___29497 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___27906 = (r0); + s.x0___29527 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___27921 = (r0); - s.tmp_1 = game_Hitbox_top__P756_mk(s); - s.tmp_1.arg0 = s.hbox___27873; + s.collidedTiles___29542 = (r0); + s.tmp_1 = game_Hitbox_top__P1964_mk(s); + s.tmp_1.arg0 = s.hbox___29494; s.callLocIdx = 600; s.pc = 88; return s.tmp_1; case 88: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___27890); - s.y___27923 = (r0); + r0 = (s.tmp_0 - s.yDiff___29511); + s.y___29544 = (r0); case 9: - s.tmp_1 = r0 = s.y___27923; - s.tmp_3 = r0 = s.tileSize___27879; - s.tmp_6 = game_Hitbox_bottom__P758_mk(s); - s.tmp_6.arg0 = s.hbox___27873; + s.tmp_1 = r0 = s.y___29544; + s.tmp_3 = r0 = s.tileSize___29500; + s.tmp_6 = game_Hitbox_bottom__P1966_mk(s); + s.tmp_6.arg0 = s.hbox___29494; s.callLocIdx = 602; s.pc = 89; return s.tmp_6; case 89: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___27890); + r0 = (s.tmp_5 - s.yDiff___29511); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -74437,15 +73937,15 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_10 = Fx_min__P123_mk(s); - s.tmp_10.arg0 = s.y___27923; - s.tmp_12 = game_Hitbox_bottom__P758_mk(s); - s.tmp_12.arg0 = s.hbox___27873; + s.tmp_10 = Fx_min__P158_mk(s); + s.tmp_10.arg0 = s.y___29544; + s.tmp_12 = game_Hitbox_bottom__P1966_mk(s); + s.tmp_12.arg0 = s.hbox___29494; s.callLocIdx = 605; s.pc = 91; return s.tmp_12; case 91: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___27890); + r0 = (s.tmp_11 - s.yDiff___29511); s.tmp_10.arg1 = r0; s.callLocIdx = 607; s.pc = 90; return s.tmp_10; case 90: @@ -74453,15 +73953,15 @@ switch (step) { s.tmp_9 = r0; r0 = (s.tmp_9 + 128); s.tmp_8 = r0; - r0 = (s.tileScale___27876 + 8); + r0 = (s.tileScale___29497 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___27937 = (r0); - s.tmp_1 = tiles_TileMap__C1086_v12_3_mk(s); + s.y0___29558 = (r0); + s.tmp_1 = tiles_TileMap__C2314_v12_3_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___27906; - s.tmp_1.arg2 = s.y0___27937; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.arg1 = s.x0___29527; + s.tmp_1.arg2 = s.y0___29558; + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isObstacle; s.pc = 92; return s.tmp_1; case 92: @@ -74469,21 +73969,21 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - s.tmp_2 = tiles_TileMap__C1086_v13_3_mk(s); + s.tmp_2 = tiles_TileMap__C2314_v13_3_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___27906; - s.tmp_2.arg2 = s.y0___27937; - if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_2.arg0); + s.tmp_2.arg1 = s.x0___29527; + s.tmp_2.arg2 = s.y0___29558; + if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.getObstacle; s.pc = 93; return s.tmp_2; case 93: r0 = s.retval; - s.obstacle___27953 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P27961); + s.obstacle___29574 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P29582); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___27953); - s.tmp_4 = helpers_arraySome__P58_mk(s); - s.tmp_4.arg0 = s.collidedTiles___27921; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___29574); + s.tmp_4 = helpers_arraySome__P102_mk(s); + s.tmp_4.arg0 = s.collidedTiles___29542; s.tmp_4.arg1 = s.tmp_0; s.callLocIdx = 610; s.pc = 94; return s.tmp_4; case 94: @@ -74495,17 +73995,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__push(s.collidedTiles___27921, s.obstacle___27953); + r0 = pxsim_Array__push(s.collidedTiles___29542, s.obstacle___29574); case 10: case 11: { step = 13; continue; } case 12: - s.tmp_0 = r0 = s.overlappedTiles___27897; - s.tmp_2 = tiles_TileMap__C1086_v7_3_mk(s); + s.tmp_0 = r0 = s.overlappedTiles___29518; + s.tmp_2 = tiles_TileMap__C2314_v7_3_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___27906; - s.tmp_2.arg2 = s.y0___27937; - if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_2.arg0); + s.tmp_2.arg1 = s.x0___29527; + s.tmp_2.arg2 = s.y0___29558; + if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.getTile; s.pc = 95; return s.tmp_2; case 95: @@ -74513,17 +74013,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); case 13: - r0 = (s.tileSize___27879 << 8); + r0 = (s.tileSize___29500 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___27923); - s.y___27923 = (r0); + r0 = (s.tmp_0 + s.y___29544); + s.y___29544 = (r0); { step = 9; continue; } case 14: - r0 = pxsim_Array__length(s.collidedTiles___27921); + r0 = pxsim_Array__length(s.collidedTiles___29542); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 37; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___27902); + r0 = pxsim_numops_toBoolDecr(s.right___29523); if (!r0) { step = 15; continue; } r0 = 2; { step = 16; continue; } @@ -74532,23 +74032,23 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___27988 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___27902); + s.collisionDirection___29608 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___29523); if (!r0) { step = 17; continue; } - r0 = (s.x0___27906 << s.tileScale___27876); + r0 = (s.x0___29527 << s.tileScale___29497); 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___27873.fields["width"]; + r0 = s.hbox___29494.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 18; continue; } case 17: - r0 = (s.x0___27906 + 1); + r0 = (s.x0___29527 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___27876); + r0 = (s.tmp_5 << s.tileScale___29497); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -74556,14 +74056,14 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___27850; - r0 = s.hbox___27873.fields["ox"]; + s.tmp_8 = r0 = s.s___29471; + r0 = s.hbox___29494.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___28016 = (undefined); - s.unnamed68___U15 = (s.collidedTiles___27921); + s.tile___29634 = (undefined); + s.unnamed68___U15 = (s.collidedTiles___29542); s.unnamed69___U16 = (0); case 19: s.tmp_0 = r0 = s.unnamed69___U16; @@ -74572,11 +74072,11 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } r0 = pxsim_Array__getAt(s.unnamed68___U15, s.unnamed69___U16); - s.tile___28016 = (r0); - s.tmp_2 = Sprite_registerObstacle__P819_mk(s); - s.tmp_2.arg0 = s.s___27850; - s.tmp_2.arg1 = s.collisionDirection___27988; - s.tmp_2.arg2 = s.tile___28016; + s.tile___29634 = (r0); + s.tmp_2 = Sprite_registerObstacle__P2082_mk(s); + s.tmp_2.arg0 = s.s___29471; + s.tmp_2.arg1 = s.collisionDirection___29608; + s.tmp_2.arg2 = s.tile___29634; s.tmp_2.arg3 = s.arg2; s.callLocIdx = 616; s.pc = 96; return s.tmp_2; case 96: @@ -74586,14 +74086,14 @@ switch (step) { { step = 19; continue; } case 20: s.unnamed68___U15 = (undefined); - r0 = s.s___27850.fields["flags"]; + r0 = s.s___29471.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__P821_mk(s); - s.tmp_2.arg0 = s.s___27850; + s.tmp_2 = Sprite_destroy__P2084_mk(s); + s.tmp_2.arg0 = s.s___29471; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; s.callLocIdx = 617; s.pc = 97; return s.tmp_2; @@ -74601,7 +74101,7 @@ switch (step) { r0 = s.retval; { step = 36; continue; } case 21: - r0 = s.s___27850.fields["_vx"]; + r0 = s.s___29471.fields["_vx"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVx"]; s.tmp_2 = r0; @@ -74609,13 +74109,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 32; continue; } - r0 = s.s___27850.fields["flags"]; + r0 = s.s___29471.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___27902); + r0 = pxsim_numops_toBoolDecr(s.right___29523); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -74624,8 +74124,8 @@ switch (step) { r0 = s.tmp_5; { step = 23; continue; } case 22: - s.tmp_8 = Sprite_vx__P774_mk(s); - s.tmp_8.arg0 = s.s___27850; + s.tmp_8 = Sprite_vx__P2026_mk(s); + s.tmp_8.arg0 = s.s___29471; s.callLocIdx = 618; s.pc = 98; return s.tmp_8; case 98: r0 = s.retval; @@ -74639,14 +74139,14 @@ switch (step) { r0 = s.tmp_9; { step = 27; continue; } case 24: - s.tmp_10 = r0 = s.right___27902; + s.tmp_10 = r0 = s.right___29523; 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__P774_mk(s); - s.tmp_12.arg0 = s.s___27850; + s.tmp_12 = Sprite_vx__P2026_mk(s); + s.tmp_12.arg0 = s.s___29471; s.callLocIdx = 619; s.pc = 99; return s.tmp_12; case 99: r0 = s.retval; @@ -74661,8 +74161,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___27850; - r0 = s.s___27850.fields["_vx"]; + s.tmp_15 = r0 = s.s___29471; + r0 = s.s___29471.fields["_vx"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -74684,12 +74184,12 @@ switch (step) { { step = 31; continue; } case 30: r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___27850).fields["_vx"] = (0); + r0 = (s.s___29471).fields["_vx"] = (0); case 31: { step = 35; continue; } case 32: - s.tmp_2 = Math_sign__P77_mk(s); - r0 = s.s___27850.fields["_vx"]; + s.tmp_2 = Math_sign__P121_mk(s); + r0 = s.s___29471.fields["_vx"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; @@ -74699,7 +74199,7 @@ switch (step) { case 100: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P77_mk(s); + s.tmp_6 = Math_sign__P121_mk(s); r0 = s.arg1.fields["cachedVx"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); @@ -74723,16 +74223,16 @@ switch (step) { case 38: case 39: case 40: - r0 = (s.yDiff___27890 !== 0); + r0 = (s.yDiff___29511 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 73; continue; } - r0 = (s.yDiff___27890 > 0); - s.down___28096 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___28096); + r0 = (s.yDiff___29511 > 0); + s.down___29712 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___29712); if (!r0) { step = 41; continue; } - s.tmp_1 = game_Hitbox_bottom__P758_mk(s); - s.tmp_1.arg0 = s.hbox___27873; + s.tmp_1 = game_Hitbox_bottom__P1966_mk(s); + s.tmp_1.arg0 = s.hbox___29494; s.callLocIdx = 627; s.pc = 102; return s.tmp_1; case 102: r0 = s.retval; @@ -74740,8 +74240,8 @@ switch (step) { r0 = (s.tmp_0 + 256); { step = 42; continue; } case 41: - s.tmp_3 = game_Hitbox_top__P756_mk(s); - s.tmp_3.arg0 = s.hbox___27873; + s.tmp_3 = game_Hitbox_top__P1964_mk(s); + s.tmp_3.arg0 = s.hbox___29494; s.callLocIdx = 629; s.pc = 103; return s.tmp_3; case 103: r0 = s.retval; @@ -74752,25 +74252,25 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___27876 + 8); + r0 = (s.tileScale___29497 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___28100 = (r0); + s.y0___29716 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___28115 = (r0); + s.collidedTiles___29731 = (r0); r0 = pxsim_Array__mk(); - s.overlappedTiles___28117 = (r0); - s.tmp_0 = game_Hitbox_left__P755_mk(s); - s.tmp_0.arg0 = s.hbox___27873; + s.overlappedTiles___29733 = (r0); + s.tmp_0 = game_Hitbox_left__P1963_mk(s); + s.tmp_0.arg0 = s.hbox___29494; s.callLocIdx = 633; s.pc = 104; return s.tmp_0; case 104: r0 = s.retval; - s.x___28119 = (r0); + s.x___29735 = (r0); case 43: - s.tmp_1 = r0 = s.x___28119; - s.tmp_3 = r0 = s.tileSize___27879; - s.tmp_5 = game_Hitbox_right__P757_mk(s); - s.tmp_5.arg0 = s.hbox___27873; + s.tmp_1 = r0 = s.x___29735; + s.tmp_3 = r0 = s.tileSize___29500; + s.tmp_5 = game_Hitbox_right__P1965_mk(s); + s.tmp_5.arg0 = s.hbox___29494; s.callLocIdx = 634; s.pc = 105; return s.tmp_5; case 105: r0 = s.retval; @@ -74783,10 +74283,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 48; continue; } - s.tmp_9 = Fx_min__P123_mk(s); - s.tmp_9.arg0 = s.x___28119; - s.tmp_10 = game_Hitbox_right__P757_mk(s); - s.tmp_10.arg0 = s.hbox___27873; + s.tmp_9 = Fx_min__P158_mk(s); + s.tmp_9.arg0 = s.x___29735; + s.tmp_10 = game_Hitbox_right__P1965_mk(s); + s.tmp_10.arg0 = s.hbox___29494; s.callLocIdx = 636; s.pc = 107; return s.tmp_10; case 107: r0 = s.retval; @@ -74797,15 +74297,15 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___27876 + 8); + r0 = (s.tileScale___29497 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___28129 = (r0); - s.tmp_1 = tiles_TileMap__C1086_v12_3_mk(s); + s.x0___29745 = (r0); + s.tmp_1 = tiles_TileMap__C2314_v12_3_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___28129; - s.tmp_1.arg2 = s.y0___28100; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.arg1 = s.x0___29745; + s.tmp_1.arg2 = s.y0___29716; + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isObstacle; s.pc = 108; return s.tmp_1; case 108: @@ -74813,21 +74313,21 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 46; continue; } - s.tmp_2 = tiles_TileMap__C1086_v13_3_mk(s); + s.tmp_2 = tiles_TileMap__C2314_v13_3_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___28129; - s.tmp_2.arg2 = s.y0___28100; - if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_2.arg0); + s.tmp_2.arg1 = s.x0___29745; + s.tmp_2.arg2 = s.y0___29716; + if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.getObstacle; s.pc = 109; return s.tmp_2; case 109: r0 = s.retval; - s.obstacle___28143 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P28151); + s.obstacle___29759 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P29767); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___28143); - s.tmp_4 = helpers_arraySome__P58_mk(s); - s.tmp_4.arg0 = s.collidedTiles___28115; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___29759); + s.tmp_4 = helpers_arraySome__P102_mk(s); + s.tmp_4.arg0 = s.collidedTiles___29731; s.tmp_4.arg1 = s.tmp_0; s.callLocIdx = 640; s.pc = 110; return s.tmp_4; case 110: @@ -74839,17 +74339,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 44; continue; } - r0 = pxsim_Array__push(s.collidedTiles___28115, s.obstacle___28143); + r0 = pxsim_Array__push(s.collidedTiles___29731, s.obstacle___29759); case 44: case 45: { step = 47; continue; } case 46: - s.tmp_0 = r0 = s.overlappedTiles___28117; - s.tmp_2 = tiles_TileMap__C1086_v7_3_mk(s); + s.tmp_0 = r0 = s.overlappedTiles___29733; + s.tmp_2 = tiles_TileMap__C2314_v7_3_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___28129; - s.tmp_2.arg2 = s.y0___28100; - if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_2.arg0); + s.tmp_2.arg1 = s.x0___29745; + s.tmp_2.arg2 = s.y0___29716; + if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.getTile; s.pc = 111; return s.tmp_2; case 111: @@ -74857,17 +74357,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); case 47: - r0 = (s.tileSize___27879 << 8); + r0 = (s.tileSize___29500 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___28119); - s.x___28119 = (r0); + r0 = (s.tmp_0 + s.x___29735); + s.x___29735 = (r0); { step = 43; continue; } case 48: - r0 = pxsim_Array__length(s.collidedTiles___28115); + r0 = pxsim_Array__length(s.collidedTiles___29731); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 71; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___28096); + r0 = pxsim_numops_toBoolDecr(s.down___29712); if (!r0) { step = 49; continue; } r0 = 3; { step = 50; continue; } @@ -74876,23 +74376,23 @@ switch (step) { case 50: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___28177 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___28096); + s.collisionDirection___29793 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___29712); if (!r0) { step = 51; continue; } - r0 = (s.y0___28100 << s.tileScale___27876); + r0 = (s.y0___29716 << s.tileScale___29497); 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___27873.fields["height"]; + r0 = s.hbox___29494.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 52; continue; } case 51: - r0 = (s.y0___28100 + 1); + r0 = (s.y0___29716 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___27876); + r0 = (s.tmp_5 << s.tileScale___29497); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -74900,14 +74400,14 @@ switch (step) { case 52: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___27850; - r0 = s.hbox___27873.fields["oy"]; + s.tmp_8 = r0 = s.s___29471; + r0 = s.hbox___29494.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___28205 = (undefined); - s.unnamed70___U26 = (s.collidedTiles___28115); + s.tile___29819 = (undefined); + s.unnamed70___U26 = (s.collidedTiles___29731); s.unnamed71___U27 = (0); case 53: s.tmp_0 = r0 = s.unnamed71___U27; @@ -74916,11 +74416,11 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 54; continue; } r0 = pxsim_Array__getAt(s.unnamed70___U26, s.unnamed71___U27); - s.tile___28205 = (r0); - s.tmp_2 = Sprite_registerObstacle__P819_mk(s); - s.tmp_2.arg0 = s.s___27850; - s.tmp_2.arg1 = s.collisionDirection___28177; - s.tmp_2.arg2 = s.tile___28205; + s.tile___29819 = (r0); + s.tmp_2 = Sprite_registerObstacle__P2082_mk(s); + s.tmp_2.arg0 = s.s___29471; + s.tmp_2.arg1 = s.collisionDirection___29793; + s.tmp_2.arg2 = s.tile___29819; s.tmp_2.arg3 = s.arg2; s.callLocIdx = 646; s.pc = 112; return s.tmp_2; case 112: @@ -74930,14 +74430,14 @@ switch (step) { { step = 53; continue; } case 54: s.unnamed70___U26 = (undefined); - r0 = s.s___27850.fields["flags"]; + r0 = s.s___29471.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__P821_mk(s); - s.tmp_2.arg0 = s.s___27850; + s.tmp_2 = Sprite_destroy__P2084_mk(s); + s.tmp_2.arg0 = s.s___29471; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; s.callLocIdx = 647; s.pc = 113; return s.tmp_2; @@ -74945,7 +74445,7 @@ switch (step) { r0 = s.retval; { step = 70; continue; } case 55: - r0 = s.s___27850.fields["_vy"]; + r0 = s.s___29471.fields["_vy"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVy"]; s.tmp_2 = r0; @@ -74953,13 +74453,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 66; continue; } - r0 = s.s___27850.fields["flags"]; + r0 = s.s___29471.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___28096); + r0 = pxsim_numops_toBoolDecr(s.down___29712); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -74968,8 +74468,8 @@ switch (step) { r0 = s.tmp_5; { step = 57; continue; } case 56: - s.tmp_8 = Sprite_vy__P776_mk(s); - s.tmp_8.arg0 = s.s___27850; + s.tmp_8 = Sprite_vy__P2028_mk(s); + s.tmp_8.arg0 = s.s___29471; s.callLocIdx = 648; s.pc = 114; return s.tmp_8; case 114: r0 = s.retval; @@ -74983,14 +74483,14 @@ switch (step) { r0 = s.tmp_9; { step = 61; continue; } case 58: - s.tmp_10 = r0 = s.down___28096; + s.tmp_10 = r0 = s.down___29712; 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__P776_mk(s); - s.tmp_12.arg0 = s.s___27850; + s.tmp_12 = Sprite_vy__P2028_mk(s); + s.tmp_12.arg0 = s.s___29471; s.callLocIdx = 649; s.pc = 115; return s.tmp_12; case 115: r0 = s.retval; @@ -75005,8 +74505,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___27850; - r0 = s.s___27850.fields["_vy"]; + s.tmp_15 = r0 = s.s___29471; + r0 = s.s___29471.fields["_vy"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -75028,12 +74528,12 @@ switch (step) { { step = 65; continue; } case 64: r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___27850).fields["_vy"] = (0); + r0 = (s.s___29471).fields["_vy"] = (0); case 65: { step = 69; continue; } case 66: - s.tmp_2 = Math_sign__P77_mk(s); - r0 = s.s___27850.fields["_vy"]; + s.tmp_2 = Math_sign__P121_mk(s); + r0 = s.s___29471.fields["_vy"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; @@ -75043,7 +74543,7 @@ switch (step) { case 116: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P77_mk(s); + s.tmp_6 = Math_sign__P121_mk(s); r0 = s.arg1.fields["cachedVy"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); @@ -75067,17 +74567,17 @@ switch (step) { case 72: case 73: case 74: - s.tmp_0 = game_Hitbox_left__P755_mk(s); - s.tmp_0.arg0 = s.hbox___27873; + s.tmp_0 = game_Hitbox_left__P1963_mk(s); + s.tmp_0.arg0 = s.hbox___29494; s.callLocIdx = 657; s.pc = 118; return s.tmp_0; case 118: r0 = s.retval; - s.x___28280 = (r0); + s.x___29894 = (r0); case 75: - s.tmp_1 = r0 = s.x___28280; - s.tmp_3 = r0 = s.tileSize___27879; - s.tmp_5 = game_Hitbox_right__P757_mk(s); - s.tmp_5.arg0 = s.hbox___27873; + s.tmp_1 = r0 = s.x___29894; + s.tmp_3 = r0 = s.tileSize___29500; + s.tmp_5 = game_Hitbox_right__P1965_mk(s); + s.tmp_5.arg0 = s.hbox___29494; s.callLocIdx = 658; s.pc = 119; return s.tmp_5; case 119: r0 = s.retval; @@ -75090,10 +74590,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 80; continue; } - s.tmp_9 = Fx_min__P123_mk(s); - s.tmp_9.arg0 = s.x___28280; - s.tmp_10 = game_Hitbox_right__P757_mk(s); - s.tmp_10.arg0 = s.hbox___27873; + s.tmp_9 = Fx_min__P158_mk(s); + s.tmp_9.arg0 = s.x___29894; + s.tmp_10 = game_Hitbox_right__P1965_mk(s); + s.tmp_10.arg0 = s.hbox___29494; s.callLocIdx = 660; s.pc = 121; return s.tmp_10; case 121: r0 = s.retval; @@ -75104,21 +74604,21 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___27876 + 8); + r0 = (s.tileScale___29497 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___28290 = (r0); - s.tmp_0 = game_Hitbox_top__P756_mk(s); - s.tmp_0.arg0 = s.hbox___27873; + s.x0___29904 = (r0); + s.tmp_0 = game_Hitbox_top__P1964_mk(s); + s.tmp_0.arg0 = s.hbox___29494; s.callLocIdx = 664; s.pc = 122; return s.tmp_0; case 122: r0 = s.retval; - s.y___28300 = (r0); + s.y___29914 = (r0); case 76: - s.tmp_1 = r0 = s.y___28300; - s.tmp_3 = r0 = s.tileSize___27879; - s.tmp_5 = game_Hitbox_bottom__P758_mk(s); - s.tmp_5.arg0 = s.hbox___27873; + s.tmp_1 = r0 = s.y___29914; + s.tmp_3 = r0 = s.tileSize___29500; + s.tmp_5 = game_Hitbox_bottom__P1966_mk(s); + s.tmp_5.arg0 = s.hbox___29494; s.callLocIdx = 665; s.pc = 123; return s.tmp_5; case 123: r0 = s.retval; @@ -75131,10 +74631,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 79; continue; } - s.tmp_9 = Fx_min__P123_mk(s); - s.tmp_9.arg0 = s.y___28300; - s.tmp_10 = game_Hitbox_bottom__P758_mk(s); - s.tmp_10.arg0 = s.hbox___27873; + s.tmp_9 = Fx_min__P158_mk(s); + s.tmp_9.arg0 = s.y___29914; + s.tmp_10 = game_Hitbox_bottom__P1966_mk(s); + s.tmp_10.arg0 = s.hbox___29494; s.callLocIdx = 667; s.pc = 125; return s.tmp_10; case 125: r0 = s.retval; @@ -75145,15 +74645,15 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___27876 + 8); + r0 = (s.tileScale___29497 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.y0___28310 = (r0); - s.tmp_3 = tiles_TileMap__C1086_v12_3_mk(s); + s.y0___29924 = (r0); + s.tmp_3 = tiles_TileMap__C2314_v12_3_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___28290; - s.tmp_3.arg2 = s.y0___28310; - if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.arg1 = s.x0___29904; + s.tmp_3.arg2 = s.y0___29924; + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isObstacle; s.pc = 126; return s.tmp_3; case 126: @@ -75165,12 +74665,12 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 77; continue; } - s.tmp_4 = r0 = s.overlappedTiles___27897; - s.tmp_6 = tiles_TileMap__C1086_v7_3_mk(s); + s.tmp_4 = r0 = s.overlappedTiles___29518; + s.tmp_6 = tiles_TileMap__C2314_v7_3_mk(s); s.tmp_6.arg0 = s.arg2; - s.tmp_6.arg1 = s.x0___28290; - s.tmp_6.arg2 = s.y0___28310; - if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_6.arg0); + s.tmp_6.arg1 = s.x0___29904; + s.tmp_6.arg2 = s.y0___29924; + if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0); s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.getTile; s.pc = 127; return s.tmp_6; case 127: @@ -75179,373 +74679,103 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_4, s.tmp_5); case 77: case 78: - r0 = (s.tileSize___27879 << 8); + r0 = (s.tileSize___29500 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___28300); - s.y___28300 = (r0); + r0 = (s.tmp_0 + s.y___29914); + s.y___29914 = (r0); { step = 76; continue; } case 79: - r0 = (s.tileSize___27879 << 8); + r0 = (s.tileSize___29500 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___28280); - s.x___28280 = (r0); + r0 = (s.tmp_0 + s.x___29894); + s.x___29894 = (r0); { step = 75; continue; } case 80: - r0 = pxsim_Array__length(s.overlappedTiles___27897); + r0 = pxsim_Array__length(s.overlappedTiles___29518); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 81; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P924_mk(s); + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P4153_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___27850; - s.tmp_1.arg2 = s.overlappedTiles___27897; + s.tmp_1.arg1 = s.s___29471; + s.tmp_1.arg2 = s.overlappedTiles___29518; s.callLocIdx = 673; s.pc = 128; return s.tmp_1; case 128: r0 = s.retval; case 81: case 82: - case 83: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -ArcadePhysicsEngine_tilemapCollisions__P923.info = {"start":11458,"length":8619,"line":351,"column":4,"endLine":587,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} - -function ArcadePhysicsEngine_tilemapCollisions__P923_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P923, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - tmp_14: undefined, - tmp_15: undefined, - tmp_16: undefined, - tmp_17: undefined, - s___27850: undefined, - hbox___27873: undefined, - tileScale___27876: undefined, - tileSize___27879: undefined, - xDiff___27883: undefined, - yDiff___27890: undefined, - overlappedTiles___27897: undefined, - right___27902: undefined, - x0___27906: undefined, - collidedTiles___27921: undefined, - y___27923: undefined, - y0___27937: undefined, - obstacle___27953: undefined, - collisionDirection___27988: undefined, - tile___28016: undefined, - unnamed68___U15: undefined, - unnamed69___U16: undefined, - down___28096: undefined, - y0___28100: undefined, - collidedTiles___28115: undefined, - overlappedTiles___28117: undefined, - x___28119: undefined, - x0___28129: undefined, - obstacle___28143: undefined, - collisionDirection___28177: undefined, - tile___28205: undefined, - unnamed70___U26: undefined, - unnamed71___U27: undefined, - x___28280: undefined, - x0___28290: undefined, - y___28300: undefined, - y0___28310: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function inline__P27961(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["tileIndex"]; - s.tmp_0 = r0; - r0 = s.caps[0].fields["tileIndex"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 === s.tmp_1); - return leave(s, r0) - default: oops() -} } } -inline__P27961.info = {"start":13579,"length":39,"line":415,"column":44,"endLine":415,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} - -function inline__P27961_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P27961, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function inline__P28151(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["tileIndex"]; - s.tmp_0 = r0; - r0 = s.caps[0].fields["tileIndex"]; - s.tmp_1 = r0; - r0 = (s.tmp_0 === s.tmp_1); - return leave(s, r0) - default: oops() -} } } -inline__P28151.info = {"start":16814,"length":39,"line":497,"column":44,"endLine":497,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} - -function inline__P28151_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P28151, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function tiles_TileMap_getObstacle__P1107(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.index___28547 = undefined; - s.tile___28559 = 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__C1086_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P1084_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 776; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 0; - { step = 2; continue; } - case 1: - s.tmp_2 = tiles_TileMapData_getTile__P1078_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.arg1; - s.tmp_2.arg2 = s.arg2; - s.callLocIdx = 777; s.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - s.index___28547 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P1081_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___28547; - s.callLocIdx = 778; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tile___28559 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C872_VT); - s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P879_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___28559; - s.tmp_2 = r0 = s.arg2; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 << s.tmp_3); - s.tmp_1.arg2 = r0; - s.tmp_4 = r0 = s.arg1; - r0 = s.arg0.fields["_scale"]; - s.tmp_5 = r0; - r0 = (s.tmp_4 << s.tmp_5); - s.tmp_1.arg3 = r0; - s.tmp_6 = tiles_TileMap__C1086_v5_1_mk(s); - s.tmp_6.arg0 = s.arg0; - if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_6.arg0); - s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.layer; - s.pc = 7; return s.tmp_6; - case 7: - r0 = s.retval; - s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___28547; - s.callLocIdx = 781; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = s.tmp_0; - return leave(s, r0) - default: oops() -} } } -tiles_TileMap_getObstacle__P1107.info = {"start":11465,"length":410,"line":383,"column":8,"endLine":393,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} - -function tiles_TileMap_getObstacle__P1107_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_getObstacle__P1107, depth: s.depth + 1, - pc: 0, retval: undefined, 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, - index___28547: undefined, - tile___28559: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function tiles_TileMap_layer__P1094(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__C1086_VT)) failedCast(r0); - r0 = s.arg0.fields["_layer"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMap_layer__P1094.info = {"start":6831,"length":63,"line":249,"column":8,"endLine":251,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} -tiles_TileMap_layer__P1094.isGetter = true; - -function tiles_TileMap_layer__P1094_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_layer__P1094, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function sprites_StaticObstacle_constructor__P879(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C872_VT)) failedCast(r0); - r0 = (s.arg0).fields["image"] = (s.arg1); - r0 = (s.arg0).fields["layer"] = (s.arg4); - r0 = (s.arg0).fields["top"] = (s.arg2); - r0 = (s.arg0).fields["left"] = (s.arg3); - r0 = (s.arg0).fields["tileIndex"] = (s.arg5); + case 83: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_constructor__P879.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"]} +ArcadePhysicsEngine_tilemapCollisions__P4152.info = {"start":11417,"length":8619,"line":350,"column":4,"endLine":586,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} -function sprites_StaticObstacle_constructor__P879_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P4152_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_constructor__P879, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P4152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + s___29471: undefined, + hbox___29494: undefined, + tileScale___29497: undefined, + tileSize___29500: undefined, + xDiff___29504: undefined, + yDiff___29511: undefined, + overlappedTiles___29518: undefined, + right___29523: undefined, + x0___29527: undefined, + collidedTiles___29542: undefined, + y___29544: undefined, + y0___29558: undefined, + obstacle___29574: undefined, + collisionDirection___29608: undefined, + tile___29634: undefined, + unnamed68___U15: undefined, + unnamed69___U16: undefined, + down___29712: undefined, + y0___29716: undefined, + collidedTiles___29731: undefined, + overlappedTiles___29733: undefined, + x___29735: undefined, + x0___29745: undefined, + obstacle___29759: undefined, + collisionDirection___29793: undefined, + tile___29819: undefined, + unnamed70___U26: undefined, + unnamed71___U27: undefined, + x___29894: undefined, + x0___29904: undefined, + y___29914: undefined, + y0___29924: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function tiles_TileMap_getTile__P1098(s) { +function inline__P29582(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75557,45 +74787,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C1054_VT); + r0 = s.arg0.fields["tileIndex"]; s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P1062_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.arg0; - s.callLocIdx = 751; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.tmp_0; + r0 = s.caps[0].fields["tileIndex"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 === s.tmp_1); return leave(s, r0) default: oops() } } } -tiles_TileMap_getTile__P1098.info = {"start":7193,"length":111,"line":267,"column":8,"endLine":269,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +inline__P29582.info = {"start":13538,"length":39,"line":414,"column":44,"endLine":414,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function tiles_TileMap_getTile__P1098_mk(s) { +function inline__P29582_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P1098, depth: s.depth + 1, + parent: s, fn: inline__P29582, 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 tiles_Location_constructor__P1062(s) { +function inline__P29767(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75607,38 +74825,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C1054_VT)) failedCast(r0); - r0 = (s.arg0).fields["_col"] = (s.arg1); - r0 = (s.arg0).fields["_row"] = (s.arg2); - r0 = (s.arg0).fields["tileMap"] = (s.arg3); - r0 = undefined; + r0 = s.arg0.fields["tileIndex"]; + s.tmp_0 = r0; + r0 = s.caps[0].fields["tileIndex"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 === s.tmp_1); return leave(s, r0) default: oops() } } } -tiles_Location_constructor__P1062.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"]} +inline__P29767.info = {"start":16773,"length":39,"line":496,"column":44,"endLine":496,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function tiles_Location_constructor__P1062_mk(s) { +function inline__P29767_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P1062, depth: s.depth + 1, + parent: s, fn: inline__P29767, 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_tilemapOverlaps__P924(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P4153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75648,11 +74861,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___28349 = undefined; - s.tile___28352 = undefined; + s.alreadyHandled___29963 = undefined; + s.tile___29966 = undefined; s.unnamed72___U2 = undefined; s.unnamed73___U3 = undefined; - s.tileOverlapHandlers___28373 = undefined; + s.tileOverlapHandlers___29987 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -75660,10 +74873,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.alreadyHandled___28349 = (r0); - s.tile___28352 = (undefined); + s.alreadyHandled___29963 = (r0); + s.tile___29966 = (undefined); s.unnamed72___U2 = (s.arg2); s.unnamed73___U3 = (0); case 1: @@ -75673,12 +74886,12 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 7; continue; } r0 = pxsim_Array__getAt(s.unnamed72___U2, s.unnamed73___U3); - s.tile___28352 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P28356); + s.tile___29966 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P29970); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___28352); - s.tmp_4 = helpers_arraySome__P58_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___28349; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___29966); + s.tmp_4 = helpers_arraySome__P102_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___29963; s.tmp_4.arg1 = s.tmp_2; s.callLocIdx = 678; s.pc = 8; return s.tmp_4; case 8: @@ -75689,26 +74902,26 @@ switch (step) { { step = 6; continue; } case 2: case 3: - r0 = pxsim_Array__push(s.alreadyHandled___28349, s.tile___28352); - s.tmp_0 = game_currentScene__P961_mk(s); + r0 = pxsim_Array__push(s.alreadyHandled___29963, s.tile___29966); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 679; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___28373 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___28373); + s.tileOverlapHandlers___29987 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___29987); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P28381); + r0 = pxsim_pxtcore_mkAction(2, inline__P29995); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___28352); - r0 = pxsim_pxtcore_mkAction(2, inline__P28398); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___29966); + r0 = pxsim_pxtcore_mkAction(2, inline__P30011); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___28352); - s.tmp_2 = helpers_arrayForEach__P60_mk(s); - s.tmp_3 = helpers_arrayFilter__P61_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___28373; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___29966); + s.tmp_2 = helpers_arrayForEach__P104_mk(s); + s.tmp_3 = helpers_arrayFilter__P105_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___29987; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 682; s.pc = 11; return s.tmp_3; case 11: @@ -75730,23 +74943,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P924.info = {"start":20354,"length":699,"line":595,"column":4,"endLine":611,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} +ArcadePhysicsEngine_tilemapOverlaps__P4153.info = {"start":20313,"length":699,"line":594,"column":4,"endLine":610,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} -function ArcadePhysicsEngine_tilemapOverlaps__P924_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P4153_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P924, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P4153, depth: s.depth + 1, pc: 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___28349: undefined, - tile___28352: undefined, + alreadyHandled___29963: undefined, + tile___29966: undefined, unnamed72___U2: undefined, unnamed73___U3: undefined, - tileOverlapHandlers___28373: undefined, + tileOverlapHandlers___29987: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -75756,7 +74969,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P924_mk(s) { -function inline__P28356(s) { +function inline__P29970(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75793,12 +75006,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28356.info = {"start":20567,"length":45,"line":599,"column":36,"endLine":599,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} +inline__P29970.info = {"start":20526,"length":45,"line":598,"column":36,"endLine":598,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} -function inline__P28356_mk(s) { +function inline__P29970_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28356, depth: s.depth + 1, + parent: s, fn: inline__P29970, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75813,7 +75026,7 @@ function inline__P28356_mk(s) { -function inline__P28381(s) { +function inline__P29995(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75840,7 +75053,7 @@ switch (step) { case 1: r0 = s.arg0.fields["tileKind"]; s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P1117_mk(s); + s.tmp_5 = tiles_getTileImage__P2341_mk(s); s.tmp_5.arg0 = s.caps[1]; s.callLocIdx = 681; s.pc = 3; return s.tmp_5; case 3: @@ -75854,12 +75067,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28381.info = {"start":20881,"length":81,"line":607,"column":28,"endLine":607,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P29995.info = {"start":20840,"length":81,"line":606,"column":28,"endLine":606,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P28381_mk(s) { +function inline__P29995_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28381, depth: s.depth + 1, + parent: s, fn: inline__P29995, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75875,7 +75088,7 @@ function inline__P28381_mk(s) { -function inline__P28398(s) { +function inline__P30011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75908,12 +75121,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28398.info = {"start":20993,"length":28,"line":608,"column":29,"endLine":608,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P30011.info = {"start":20952,"length":28,"line":607,"column":29,"endLine":607,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P28398_mk(s) { +function inline__P30011_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28398, depth: s.depth + 1, + parent: s, fn: inline__P30011, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -75923,7 +75136,7 @@ function inline__P28398_mk(s) { -function tiles_getTileImage__P1117(s) { +function tiles_getTileImage__P2341(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -75933,16 +75146,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___28406 = undefined; + s.scene___30019 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P961_mk(s); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 795; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___28406 = (r0); + s.scene___30019 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -75952,7 +75165,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___28406.fields["tileMap"]; + r0 = s.scene___30019.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -75962,20 +75175,20 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex28416); + r0 = pxsim.image.ofBuffer(_hex30029); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap__C1086_v15_2_mk(s); - r0 = s.scene___28406.fields["tileMap"]; + s.tmp_5 = tiles_TileMap__C2314_v15_2_mk(s); + r0 = s.scene___30019.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P1059_mk(s); + s.tmp_6 = tiles_Location_tileSet__P2292_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 796; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5.arg1 = r0; - if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_5.arg0); + if (!checkSubtype(s.tmp_5.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_5.arg0); s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.getTileImage; s.pc = 7; return s.tmp_5; case 7: @@ -75984,12 +75197,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_getTileImage__P1117.info = {"start":15366,"length":207,"line":495,"column":4,"endLine":499,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} +tiles_getTileImage__P2341.info = {"start":15432,"length":207,"line":497,"column":4,"endLine":501,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} -function tiles_getTileImage__P1117_mk(s) { +function tiles_getTileImage__P2341_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P1117, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P2341, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -75998,16 +75211,16 @@ function tiles_getTileImage__P1117_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___28406: undefined, + scene___30019: undefined, arg0: undefined, } } -const _hex28416 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex30029 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_TileMap_getTileImage__P1109(s) { +function tiles_TileMap_getTileImage__P2335(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76023,11 +75236,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C1086_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P1081_mk(s); - s.tmp_1 = tiles_TileMap__C1086_v0_1_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P2310_mk(s); + s.tmp_1 = tiles_TileMap__C2314_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.data; s.pc = 2; return s.tmp_1; case 2: @@ -76040,12 +75253,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P1109.info = {"start":12522,"length":96,"line":414,"column":8,"endLine":416,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMap_getTileImage__P2335.info = {"start":12588,"length":96,"line":416,"column":8,"endLine":418,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function tiles_TileMap_getTileImage__P1109_mk(s) { +function tiles_TileMap_getTileImage__P2335_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P1109, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P2335, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -76057,7 +75270,7 @@ function tiles_TileMap_getTileImage__P1109_mk(s) { -function tiles_Location_tileSet__P1059(s) { +function tiles_Location_tileSet__P2292(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76072,15 +75285,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C1054_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap__C1086_v8_3_mk(s); + if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap__C2314_v8_3_mk(s); r0 = s.arg0.fields["tileMap"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["_col"]; s.tmp_0.arg1 = r0; r0 = s.arg0.fields["_row"]; s.tmp_0.arg2 = r0; - if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.getTileIndex; s.pc = 1; return s.tmp_0; case 1: @@ -76088,13 +75301,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P1059.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__P1059.isGetter = true; +tiles_Location_tileSet__P2292.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__P2292.isGetter = true; -function tiles_Location_tileSet__P1059_mk(s) { +function tiles_Location_tileSet__P2292_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P1059, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileSet__P2292, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -76104,7 +75317,7 @@ function tiles_Location_tileSet__P1059_mk(s) { -function tiles_Location_row__P1056(s) { +function tiles_Location_row__P2288(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76119,18 +75332,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C1054_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_row__P1056.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__P1056.isGetter = true; +tiles_Location_row__P2288.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__P2288.isGetter = true; -function tiles_Location_row__P1056_mk(s) { +function tiles_Location_row__P2288_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_row__P1056, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P2288, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -76139,7 +75352,7 @@ function tiles_Location_row__P1056_mk(s) { -function tiles_Location_col__P1055(s) { +function tiles_Location_col__P2287(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76154,27 +75367,445 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C1054_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_col__P1055.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__P1055.isGetter = true; +tiles_Location_col__P2287.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__P2287.isGetter = true; + +function tiles_Location_col__P2287_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_col__P2287, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tiles_TileMap_getObstacle__P2333(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.index___30157 = undefined; + s.tile___30169 = 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__C2314_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P2313_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 776; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 2; continue; } + case 1: + s.tmp_2 = tiles_TileMapData_getTile__P2307_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.arg1; + s.tmp_2.arg2 = s.arg2; + s.callLocIdx = 777; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + s.index___30157 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P2310_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___30157; + s.callLocIdx = 778; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tile___30169 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C2143_VT); + s.tmp_0 = r0; + s.tmp_1 = sprites_StaticObstacle_constructor__P2149_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.tile___30169; + s.tmp_2 = r0 = s.arg2; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 << s.tmp_3); + s.tmp_1.arg2 = r0; + s.tmp_4 = r0 = s.arg1; + r0 = s.arg0.fields["_scale"]; + s.tmp_5 = r0; + r0 = (s.tmp_4 << s.tmp_5); + s.tmp_1.arg3 = r0; + s.tmp_6 = tiles_TileMap__C2314_v5_1_mk(s); + s.tmp_6.arg0 = s.arg0; + if (!checkSubtype(s.tmp_6.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_6.arg0); + s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.layer; + s.pc = 7; return s.tmp_6; + case 7: + r0 = s.retval; + s.tmp_1.arg4 = r0; + s.tmp_1.arg5 = s.index___30157; + s.callLocIdx = 781; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + r0 = s.tmp_0; + return leave(s, r0) + default: oops() +} } } +tiles_TileMap_getObstacle__P2333.info = {"start":11531,"length":410,"line":385,"column":8,"endLine":395,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} + +function tiles_TileMap_getObstacle__P2333_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_getObstacle__P2333, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + index___30157: undefined, + tile___30169: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tiles_TileMap_layer__P2322(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__C2314_VT)) failedCast(r0); + r0 = s.arg0.fields["_layer"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMap_layer__P2322.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__P2322.isGetter = true; + +function tiles_TileMap_layer__P2322_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_layer__P2322, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function sprites_StaticObstacle_constructor__P2149(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_StaticObstacle__C2143_VT)) failedCast(r0); + r0 = (s.arg0).fields["image"] = (s.arg1); + r0 = (s.arg0).fields["layer"] = (s.arg4); + r0 = (s.arg0).fields["top"] = (s.arg2); + r0 = (s.arg0).fields["left"] = (s.arg3); + r0 = (s.arg0).fields["tileIndex"] = (s.arg5); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_StaticObstacle_constructor__P2149.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__P2149_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_StaticObstacle_constructor__P2149, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, +} } + + + + + +function tiles_TileMap_isObstacle__P2332(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + s.tmp_3 = tiles_TileMap__C2314_v6_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled; + s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 5; continue; } + case 1: + case 2: + s.tmp_5 = tiles_TileMapData_isOutsideMap__P2313_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg1; + s.tmp_5.arg2 = s.arg2; + s.callLocIdx = 774; s.pc = 7; return s.tmp_5; + case 7: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = true; + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_map"]; + s.tmp_6 = r0; + r0 = s.tmp_6.fields["layers"]; + s.tmp_8 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_8, s.arg1, s.arg2); + s.tmp_7 = r0; + r0 = (s.tmp_7 === 2); + case 5: + return leave(s, r0) + default: oops() +} } } +tiles_TileMap_isObstacle__P2332.info = {"start":11310,"length":211,"line":378,"column":8,"endLine":383,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} + +function tiles_TileMap_isObstacle__P2332_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_isObstacle__P2332, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function tiles_TileMapData_isWall__P2312(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C2301_VT)) failedCast(r0); + r0 = s.arg0.fields["layers"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); + s.tmp_0 = r0; + r0 = (s.tmp_0 === 2); + return leave(s, r0) + default: oops() +} } } +tiles_TileMapData_isWall__P2312.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__P2312_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMapData_isWall__P2312, 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 tiles_TileMap_getTile__P2326(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2286_VT); + s.tmp_0 = r0; + s.tmp_1 = tiles_Location_constructor__P2289_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.arg0; + s.callLocIdx = 751; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; + return leave(s, r0) + default: oops() +} } } +tiles_TileMap_getTile__P2326.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__P2326_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_getTile__P2326, 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 tiles_Location_constructor__P2289(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0); + r0 = (s.arg0).fields["_col"] = (s.arg1); + r0 = (s.arg0).fields["_row"] = (s.arg2); + r0 = (s.arg0).fields["tileMap"] = (s.arg3); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +tiles_Location_constructor__P2289.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_col__P1055_mk(s) { +function tiles_Location_constructor__P2289_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_col__P1055, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P2289, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Sprite_registerObstacle__P819(s) { +function Sprite_registerObstacle__P2082(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76184,10 +75815,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___28450 = undefined; - s.wallCollisionHandlers___28458 = undefined; - s.wallHandlersToRun___28483 = undefined; - s.asTileLocation___28496 = undefined; + s.collisionHandlers___30063 = undefined; + s.wallCollisionHandlers___30070 = undefined; + s.wallHandlersToRun___30095 = undefined; + s.asTileLocation___30108 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -76196,11 +75827,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_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__P961_mk(s); + s.tmp_1 = game_currentScene__P2524_mk(s); s.callLocIdx = 421; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; @@ -76220,24 +75851,24 @@ switch (step) { r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - s.collisionHandlers___28450 = (r0); - s.tmp_0 = game_currentScene__P961_mk(s); + s.collisionHandlers___30063 = (r0); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 423; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___28458 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___28450); + s.wallCollisionHandlers___30070 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___30063); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P28466); + r0 = pxsim_pxtcore_mkAction(1, inline__P30078); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P28472); + r0 = pxsim_pxtcore_mkAction(1, inline__P30084); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P60_mk(s); - s.tmp_3 = helpers_arrayFilter__P61_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___28450; + s.tmp_2 = helpers_arrayForEach__P104_mk(s); + s.tmp_3 = helpers_arrayFilter__P105_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___30063; s.tmp_3.arg1 = s.tmp_0; s.callLocIdx = 425; s.pc = 13; return s.tmp_3; case 13: @@ -76249,7 +75880,7 @@ switch (step) { r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___28458); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___30070); if (!r0) { step = 7; continue; } s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); @@ -76257,7 +75888,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = game_currentScene__P961_mk(s); + s.tmp_1 = game_currentScene__P2524_mk(s); s.callLocIdx = 428; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; @@ -76266,21 +75897,21 @@ switch (step) { // jmp value (already in r0) s.tmp_2 = r0; s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, inline__P28485); + r0 = pxsim_pxtcore_mkAction(1, inline__P30097); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFilter__P61_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___28458; + s.tmp_1 = helpers_arrayFilter__P105_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___30070; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 430; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.wallHandlersToRun___28483 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___28483); + s.wallHandlersToRun___30095 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___30095); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = tiles_TileMap__C1086_v7_3_mk(s); + s.tmp_1 = tiles_TileMap__C2314_v7_3_mk(s); s.tmp_1.arg0 = s.arg3; s.tmp_3 = if_left_1_mk(s); s.tmp_3.arg0 = s.arg2; @@ -76316,18 +75947,18 @@ switch (step) { s.tmp_7 = r0; r0 = (s.tmp_5 >> s.tmp_7); s.tmp_1.arg2 = r0; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.getTile; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.asTileLocation___28496 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P28514); + s.asTileLocation___30108 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P30124); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___28496); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___28483; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___30108); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___30095; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 436; s.pc = 19; return s.tmp_1; case 19: @@ -76340,12 +75971,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P819.info = {"start":26872,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} +Sprite_registerObstacle__P2082.info = {"start":26870,"length":965,"line":817,"column":4,"endLine":837,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} -function Sprite_registerObstacle__P819_mk(s) { +function Sprite_registerObstacle__P2082_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P819, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P2082, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -76355,10 +75986,10 @@ function Sprite_registerObstacle__P819_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - collisionHandlers___28450: undefined, - wallCollisionHandlers___28458: undefined, - wallHandlersToRun___28483: undefined, - asTileLocation___28496: undefined, + collisionHandlers___30063: undefined, + wallCollisionHandlers___30070: undefined, + wallHandlersToRun___30095: undefined, + asTileLocation___30108: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -76369,7 +76000,7 @@ function Sprite_registerObstacle__P819_mk(s) { -function inline__P28466(s) { +function inline__P30078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76391,12 +76022,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28466.info = {"start":27270,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P30078.info = {"start":27268,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P28466_mk(s) { +function inline__P30078_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28466, depth: s.depth + 1, + parent: s, fn: inline__P30078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -76407,7 +76038,7 @@ function inline__P28466_mk(s) { -function inline__P28472(s) { +function inline__P30084(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76439,12 +76070,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28472.info = {"start":27323,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P30084.info = {"start":27321,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P28472_mk(s) { +function inline__P30084_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28472, depth: s.depth + 1, + parent: s, fn: inline__P30084, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -76454,7 +76085,7 @@ function inline__P28472_mk(s) { -function inline__P28485(s) { +function inline__P30097(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76476,12 +76107,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28485.info = {"start":27529,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P30097.info = {"start":27527,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P28485_mk(s) { +function inline__P30097_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28485, depth: s.depth + 1, + parent: s, fn: inline__P30097, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -76492,7 +76123,7 @@ function inline__P28485_mk(s) { -function inline__P28514(s) { +function inline__P30124(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76525,12 +76156,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28514.info = {"start":27769,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P30124.info = {"start":27767,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P28514_mk(s) { +function inline__P30124_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28514, depth: s.depth + 1, + parent: s, fn: inline__P30124, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -76540,7 +76171,7 @@ function inline__P28514_mk(s) { -function Fx_min__P123(s) { +function Fx_min__P158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76571,12 +76202,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_min__P123.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__P158.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__P123_mk(s) { +function Fx_min__P158_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P123, depth: s.depth + 1, + parent: s, fn: Fx_min__P158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -76587,7 +76218,7 @@ function Fx_min__P123_mk(s) { -function Fx_iadd__P115(s) { +function Fx_iadd__P150(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76608,14 +76239,123 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_iadd__P115.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__P150.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__P150_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_iadd__P150, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_toIntShifted__P148(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 = s.arg0; + r0 = (s.arg1 + 8); + s.tmp_1 = r0; + r0 = (s.tmp_0 >> s.tmp_1); + return leave(s, r0) + default: oops() +} } } +Fx_toIntShifted__P148.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__P148_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_toIntShifted__P148, 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 helpers_arraySome__P102(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.len___30139 = undefined; + s.i___30142 = 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___30139 = (r0); + s.i___30142 = (0); + case 1: + r0 = (s.i___30142 < s.len___30139); + 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___30142); + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.i___30142; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 5; s.pc = 6; return s.tmp_2; + case 6: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = true; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___30142 + 1); + s.i___30142 = (r0); + { step = 1; continue; } + case 4: + r0 = false; + case 5: + return leave(s, r0) + default: oops() +} } } +helpers_arraySome__P102.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 Fx_iadd__P115_mk(s) { +function helpers_arraySome__P102_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P115, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P102, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + len___30139: undefined, + i___30142: undefined, arg0: undefined, arg1: undefined, } } @@ -76624,7 +76364,7 @@ function Fx_iadd__P115_mk(s) { -function helpers_arraySome__P58(s) { +function tiles_TileMap_isOnWall__P2334(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76634,58 +76374,129 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___28529 = undefined; - s.i___28532 = undefined; + s.hbox___29420 = undefined; + s.left___29423 = undefined; + s.right___29429 = undefined; + s.top___29435 = undefined; + s.bottom___29441 = undefined; + s.col___29447 = undefined; + s.row___29453 = 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___28529 = (r0); - s.i___28532 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C2314_VT)) failedCast(r0); + r0 = s.arg1.fields["_hitbox"]; + s.hbox___29420 = (r0); + s.tmp_1 = game_Hitbox_left__P1963_mk(s); + s.tmp_1.arg0 = s.hbox___29420; + s.callLocIdx = 782; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.left___29423 = (r0); + s.tmp_1 = game_Hitbox_right__P1965_mk(s); + s.tmp_1.arg0 = s.hbox___29420; + s.callLocIdx = 785; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.right___29429 = (r0); + s.tmp_1 = game_Hitbox_top__P1964_mk(s); + s.tmp_1.arg0 = s.hbox___29420; + s.callLocIdx = 788; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.top___29435 = (r0); + s.tmp_1 = game_Hitbox_bottom__P1966_mk(s); + s.tmp_1.arg0 = s.hbox___29420; + s.callLocIdx = 791; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.bottom___29441 = (r0); + s.col___29447 = (s.left___29423); case 1: - r0 = (s.i___28532 < s.len___28529); + r0 = (s.col___29447 <= s.right___29429); 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___28532); - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___28532; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 5; s.pc = 6; return s.tmp_2; - case 6: + if (!r0) { step = 6; continue; } + s.row___29453 = (s.top___29435); + case 2: + r0 = (s.row___29453 <= s.bottom___29441); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = tiles_TileMap__C2314_v12_3_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.col___29447; + s.tmp_2.arg2 = s.row___29453; + if (!checkSubtype(s.tmp_2.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_2.arg0); + s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isObstacle; + s.pc = 12; return s.tmp_2; + case 12: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } + if (!r0) { step = 3; continue; } r0 = true; - { step = 5; continue; } - case 2: + { step = 7; continue; } case 3: - r0 = (s.i___28532 + 1); - s.i___28532 = (r0); - { step = 1; continue; } case 4: - r0 = false; + r0 = (s.row___29453 + 1); + s.row___29453 = (r0); + { step = 2; continue; } case 5: + r0 = (s.col___29447 + 1); + s.col___29447 = (r0); + { step = 1; continue; } + case 6: + r0 = false; + case 7: return leave(s, r0) default: oops() } } } -helpers_arraySome__P58.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"]} +tiles_TileMap_isOnWall__P2334.info = {"start":11951,"length":627,"line":397,"column":8,"endLine":414,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} -function helpers_arraySome__P58_mk(s) { +function tiles_TileMap_isOnWall__P2334_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P58, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P2334, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___28529: undefined, - i___28532: undefined, + tmp_3: undefined, + hbox___29420: undefined, + left___29423: undefined, + right___29429: undefined, + top___29435: undefined, + bottom___29441: undefined, + col___29447: undefined, + row___29453: undefined, arg0: undefined, arg1: undefined, } } @@ -76694,7 +76505,7 @@ function helpers_arraySome__P58_mk(s) { -function MovingSprite_constructor__P907(s) { +function MovingSprite_constructor__P2169(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76716,7 +76527,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C906_VT)) failedCast(r0); + if (!checkSubtype(r0, MovingSprite__C2168_VT)) failedCast(r0); r0 = (s.arg0).fields["sprite"] = (s.arg1); r0 = (s.arg0).fields["cachedVx"] = (s.arg2); r0 = (s.arg0).fields["cachedVy"] = (s.arg3); @@ -76728,12 +76539,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -MovingSprite_constructor__P907.info = {"start":678,"length":313,"line":30,"column":4,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} +MovingSprite_constructor__P2169.info = {"start":678,"length":313,"line":30,"column":4,"endLine":41,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} -function MovingSprite_constructor__P907_mk(s) { +function MovingSprite_constructor__P2169_mk(s) { checkStack(s.depth); return { - parent: s, fn: MovingSprite_constructor__P907, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P2169, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -76749,7 +76560,7 @@ function MovingSprite_constructor__P907_mk(s) { -function ArcadePhysicsEngine_move__P920(s) { +function ArcadePhysicsEngine_move__P2182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -76759,34 +76570,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtf___28594 = undefined; - s.dtSec___28601 = undefined; - s.dt2___28605 = undefined; - s.scene___28609 = undefined; - s.tileMap___28612 = undefined; - s.movingSprites___28615 = undefined; - s.MAX_STEP_COUNT___28646 = undefined; - s.overlapHandlers___28657 = undefined; - s.selected___28664 = undefined; - s.buffers___28665 = undefined; - s.count___28669 = undefined; - s.currMovers___28679 = undefined; - s.remainingMovers___28686 = undefined; - s.ms___28691 = undefined; + s.dtf___30204 = undefined; + s.dtSec___30211 = undefined; + s.dt2___30215 = undefined; + s.scene___30219 = undefined; + s.tileMap___30222 = undefined; + s.movingSprites___30225 = undefined; + s.MAX_STEP_COUNT___30256 = undefined; + s.overlapHandlers___30267 = undefined; + s.selected___30274 = undefined; + s.buffers___30275 = undefined; + s.count___30279 = undefined; + s.currMovers___30289 = undefined; + s.remainingMovers___30296 = undefined; + s.ms___30301 = undefined; s.unnamed62___U14 = undefined; s.unnamed63___U15 = undefined; - s.s___28693 = undefined; - s.stepX___28786 = undefined; - s.stepY___28800 = undefined; + s.s___30303 = undefined; + s.stepX___30396 = undefined; + s.stepY___30410 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - s.tmp_0 = Fx_min__P123_mk(s); - s.tmp_0.arg0 = globals.MAX_TIME_STEP___891; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + s.tmp_0 = Fx_min__P158_mk(s); + s.tmp_0.arg0 = globals.MAX_TIME_STEP___2165; r0 = (s.arg1 * 1000); s.tmp_1 = r0; r0 = (s.tmp_1 * 256); @@ -76796,45 +76607,45 @@ switch (step) { s.callLocIdx = 517; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - s.dtf___28594 = (r0); - r0 = pxsim.Math_.idiv(s.dtf___28594, 1000); - s.dtSec___28601 = (r0); - r0 = pxsim.Math_.idiv(s.dtf___28594, 2); - s.dt2___28605 = (r0); - s.tmp_0 = game_currentScene__P961_mk(s); + s.dtf___30204 = (r0); + r0 = pxsim.Math_.idiv(s.dtf___30204, 1000); + s.dtSec___30211 = (r0); + r0 = pxsim.Math_.idiv(s.dtf___30204, 2); + s.dt2___30215 = (r0); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 520; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - s.scene___28609 = (r0); - r0 = s.scene___28609.fields["tileMap"]; - s.tileMap___28612 = (r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P28617); + s.scene___30219 = (r0); + r0 = s.scene___30219.fields["tileMap"]; + s.tileMap___30222 = (r0); + r0 = pxsim_pxtcore_mkAction(3, inline__P30227); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtSec___28601); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___28605); - s.tmp_1 = helpers_arrayMap__P57_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtSec___30211); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___30215); + s.tmp_1 = helpers_arrayMap__P101_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 522; s.pc = 49; return s.tmp_1; case 49: r0 = s.retval; - s.movingSprites___28615 = (r0); - s.tmp_0 = helpers_arrayForEach__P60_mk(s); + s.movingSprites___30225 = (r0); + s.tmp_0 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P28629; + s.tmp_0.arg1 = inline__P30239; s.callLocIdx = 526; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P832_mk(s); + s.tmp_0 = sprites_SpriteMap_clear__P2097_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; s.callLocIdx = 527; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P831_mk(s); + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P2096_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; @@ -76850,41 +76661,41 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim.Math_.idiv(s.tmp_4, s.tmp_3); s.tmp_1 = r0; - r0 = pxsim.Math_.imul(s.tmp_1, s.dtSec___28601); + r0 = pxsim.Math_.imul(s.tmp_1, s.dtSec___30211); s.tmp_5 = r0; r0 = (s.tmp_5 >> 8); s.tmp_0 = r0; r0 = (s.tmp_0 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); - s.MAX_STEP_COUNT___28646 = (r0); - s.tmp_0 = helpers_arraySlice__P65_mk(s); - r0 = s.scene___28609.fields["overlapHandlers"]; + s.MAX_STEP_COUNT___30256 = (r0); + s.tmp_0 = helpers_arraySlice__P109_mk(s); + r0 = s.scene___30219.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; s.callLocIdx = 532; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.overlapHandlers___28657 = (r0); - s.selected___28664 = (0); + s.overlapHandlers___30267 = (r0); + s.selected___30274 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___28615); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___30225); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___28665 = (s.tmp_0); - s.count___28669 = (0); + s.buffers___30275 = (s.tmp_0); + s.count___30279 = (0); case 1: - r0 = (s.count___28669 < s.MAX_STEP_COUNT___28646); + r0 = (s.count___30279 < s.MAX_STEP_COUNT___30256); 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___28665, s.selected___28664); + r0 = pxsim_Array__getAt(s.buffers___30275, s.selected___30274); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -76894,14 +76705,14 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 46; continue; } - r0 = pxsim_Array__getAt(s.buffers___28665, s.selected___28664); - s.currMovers___28679 = (r0); - r0 = (s.selected___28664 ^ 1); - s.selected___28664 = (r0); - r0 = pxsim_Array__getAt(s.buffers___28665, s.selected___28664); - s.remainingMovers___28686 = (r0); - s.ms___28691 = (undefined); - s.unnamed62___U14 = (s.currMovers___28679); + r0 = pxsim_Array__getAt(s.buffers___30275, s.selected___30274); + s.currMovers___30289 = (r0); + r0 = (s.selected___30274 ^ 1); + s.selected___30274 = (r0); + r0 = pxsim_Array__getAt(s.buffers___30275, s.selected___30274); + s.remainingMovers___30296 = (r0); + s.ms___30301 = (undefined); + s.unnamed62___U14 = (s.currMovers___30289); s.unnamed63___U15 = (0); case 4: s.tmp_0 = r0 = s.unnamed63___U15; @@ -76910,27 +76721,27 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 43; continue; } r0 = pxsim_Array__getAt(s.unnamed62___U14, s.unnamed63___U15); - s.ms___28691 = (r0); - r0 = s.ms___28691.fields["sprite"]; - s.s___28693 = (r0); - r0 = s.ms___28691.fields["cachedVx"]; + s.ms___30301 = (r0); + r0 = s.ms___30301.fields["sprite"]; + s.s___30303 = (r0); + r0 = s.ms___30301.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___28693.fields["_vx"]; + r0 = s.s___30303.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___28693.fields["_vx"]; + r0 = s.s___30303.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___28691).fields["dx"] = (0); + r0 = (s.ms___30301).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___28693.fields["_vx"]; + r0 = s.s___30303.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -76939,7 +76750,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___28691.fields["cachedVx"]; + r0 = s.ms___30301.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -76950,7 +76761,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___28693.fields["_vx"]; + r0 = s.s___30303.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -76959,7 +76770,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___28691.fields["cachedVx"]; + r0 = s.ms___30301.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -76971,14 +76782,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___28691; - r0 = s.ms___28691.fields["dx"]; + s.tmp_9 = r0 = s.ms___30301; + r0 = s.ms___30301.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___28691; - r0 = s.ms___28691.fields["xStep"]; + s.tmp_0 = r0 = s.ms___30301; + r0 = s.ms___30301.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -76986,29 +76797,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___28693.fields["_vx"]; + r0 = s.s___30303.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___28691).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___30301).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___28691.fields["cachedVy"]; + r0 = s.ms___30301.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___28693.fields["_vy"]; + r0 = s.s___30303.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___28693.fields["_vy"]; + r0 = s.s___30303.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___28691).fields["dy"] = (0); + r0 = (s.ms___30301).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___28693.fields["_vy"]; + r0 = s.s___30303.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -77017,7 +76828,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___28691.fields["cachedVy"]; + r0 = s.ms___30301.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -77028,7 +76839,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___28693.fields["_vy"]; + r0 = s.s___30303.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -77037,7 +76848,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___28691.fields["cachedVy"]; + r0 = s.ms___30301.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -77049,14 +76860,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___28691; - r0 = s.ms___28691.fields["dy"]; + s.tmp_9 = r0 = s.ms___30301; + r0 = s.ms___30301.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___28691; - r0 = s.ms___28691.fields["yStep"]; + s.tmp_0 = r0 = s.ms___30301; + r0 = s.ms___30301.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -77064,20 +76875,20 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___28693.fields["_vy"]; + r0 = s.s___30303.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___28691).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___30301).fields["cachedVy"] = (s.tmp_0); case 27: case 28: - s.tmp_2 = Fx_abs__P122_mk(s); - r0 = s.ms___28691.fields["xStep"]; + s.tmp_2 = Fx_abs__P157_mk(s); + r0 = s.ms___30301.fields["xStep"]; s.tmp_2.arg0 = r0; s.callLocIdx = 537; s.pc = 54; return s.tmp_2; case 54: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P122_mk(s); - r0 = s.ms___28691.fields["dx"]; + s.tmp_4 = Fx_abs__P157_mk(s); + r0 = s.ms___30301.fields["dx"]; s.tmp_4.arg0 = r0; s.callLocIdx = 538; s.pc = 55; return s.tmp_4; case 55: @@ -77087,23 +76898,23 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___28691.fields["dx"]; + r0 = s.ms___30301.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___28691.fields["xStep"]; + r0 = s.ms___30301.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___28786 = (s.tmp_5); - s.tmp_2 = Fx_abs__P122_mk(s); - r0 = s.ms___28691.fields["yStep"]; + s.stepX___30396 = (s.tmp_5); + s.tmp_2 = Fx_abs__P157_mk(s); + r0 = s.ms___30301.fields["yStep"]; s.tmp_2.arg0 = r0; s.callLocIdx = 539; s.pc = 56; return s.tmp_2; case 56: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P122_mk(s); - r0 = s.ms___28691.fields["dy"]; + s.tmp_4 = Fx_abs__P157_mk(s); + r0 = s.ms___30301.fields["dy"]; s.tmp_4.arg0 = r0; s.callLocIdx = 540; s.pc = 57; return s.tmp_4; case 57: @@ -77113,45 +76924,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___28691.fields["dy"]; + r0 = s.ms___30301.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___28691.fields["yStep"]; + r0 = s.ms___30301.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___28800 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___28691; - r0 = s.ms___28691.fields["dx"]; + s.stepY___30410 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___30301; + r0 = s.ms___30301.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___28786); + r0 = (s.tmp_2 - s.stepX___30396); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___28691; - r0 = s.ms___28691.fields["dy"]; + s.tmp_0 = r0 = s.ms___30301; + r0 = s.ms___30301.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___28800); + r0 = (s.tmp_2 - s.stepY___30410); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___28693.fields["_x"]; + r0 = s.s___30303.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___28693).fields["_lastX"] = (s.tmp_0); - r0 = s.s___28693.fields["_y"]; + r0 = (s.s___30303).fields["_lastX"] = (s.tmp_0); + r0 = s.s___30303.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___28693).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___28693; - r0 = s.s___28693.fields["_x"]; + r0 = (s.s___30303).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___30303; + r0 = s.s___30303.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___28786); + r0 = (s.tmp_2 + s.stepX___30396); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___28693; - r0 = s.s___28693.fields["_y"]; + s.tmp_0 = r0 = s.s___30303; + r0 = s.s___30303.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___28800); + r0 = (s.tmp_2 + s.stepY___30410); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___28693.fields["flags"]; + r0 = s.s___30303.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 515); s.tmp_2 = r0; @@ -77161,22 +76972,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 37; continue; } - s.tmp_4 = sprites_SpriteMap_insertAABB__P835_mk(s); + s.tmp_4 = sprites_SpriteMap_insertAABB__P2098_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___28693; + s.tmp_4.arg1 = s.s___30303; s.callLocIdx = 545; s.pc = 58; return s.tmp_4; case 58: r0 = s.retval; - s.tmp_0 = r0 = s.tileMap___28612; + s.tmp_0 = r0 = s.tileMap___30222; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 33; continue; } r0 = s.tmp_0; { step = 34; continue; } case 33: - s.tmp_1 = tiles_TileMap__C1086_v6_1_mk(s); - s.tmp_1.arg0 = s.tileMap___28612; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1 = tiles_TileMap__C2314_v6_1_mk(s); + s.tmp_1.arg0 = s.tileMap___30222; + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.enabled; s.pc = 59; return s.tmp_1; case 59: @@ -77186,10 +76997,10 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 35; continue; } - s.tmp_3 = ArcadePhysicsEngine_tilemapCollisions__P923_mk(s); + s.tmp_3 = ArcadePhysicsEngine_tilemapCollisions__P4152_mk(s); s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.ms___28691; - s.tmp_3.arg2 = s.tileMap___28612; + s.tmp_3.arg1 = s.ms___30301; + s.tmp_3.arg2 = s.tileMap___30222; s.callLocIdx = 546; s.pc = 60; return s.tmp_3; case 60: r0 = s.retval; @@ -77197,34 +77008,34 @@ switch (step) { case 36: case 37: case 38: - s.tmp_2 = Fx_abs__P122_mk(s); - r0 = s.ms___28691.fields["dx"]; + s.tmp_2 = Fx_abs__P157_mk(s); + r0 = s.ms___30301.fields["dx"]; s.tmp_2.arg0 = r0; s.callLocIdx = 547; s.pc = 61; return s.tmp_2; case 61: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___904); + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___2167); 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__P122_mk(s); - r0 = s.ms___28691.fields["dy"]; + s.tmp_4 = Fx_abs__P157_mk(s); + r0 = s.ms___30301.fields["dy"]; s.tmp_4.arg0 = r0; s.callLocIdx = 548; s.pc = 62; return s.tmp_4; case 62: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___904); + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___2167); 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___28686, s.ms___28691); + r0 = pxsim_Array__push(s.remainingMovers___30296, s.ms___30301); case 41: case 42: r0 = (s.unnamed63___U15 + 1); @@ -77232,35 +77043,35 @@ switch (step) { { step = 4; continue; } case 43: s.unnamed62___U14 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P922_mk(s); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P4151_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___28679; - s.tmp_0.arg2 = s.overlapHandlers___28657; + s.tmp_0.arg1 = s.currMovers___30289; + s.tmp_0.arg2 = s.overlapHandlers___30267; s.callLocIdx = 549; s.pc = 63; return s.tmp_0; case 63: r0 = s.retval; case 44: - r0 = pxsim_Array__length(s.currMovers___28679); + r0 = pxsim_Array__length(s.currMovers___30289); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 45; continue; } - r0 = pxsim_Array_.pop(s.currMovers___28679); + r0 = pxsim_Array_.pop(s.currMovers___30289); { step = 44; continue; } case 45: - r0 = (s.count___28669 + 1); - s.count___28669 = (r0); + r0 = (s.count___30279 + 1); + s.count___30279 = (r0); { step = 1; continue; } case 46: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P920.info = {"start":2551,"length":3932,"line":109,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +ArcadePhysicsEngine_move__P2182.info = {"start":2551,"length":3932,"line":109,"column":4,"endLine":209,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function ArcadePhysicsEngine_move__P920_mk(s) { +function ArcadePhysicsEngine_move__P2182_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P920, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P2182, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -77274,25 +77085,25 @@ function ArcadePhysicsEngine_move__P920_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtf___28594: undefined, - dtSec___28601: undefined, - dt2___28605: undefined, - scene___28609: undefined, - tileMap___28612: undefined, - movingSprites___28615: undefined, - MAX_STEP_COUNT___28646: undefined, - overlapHandlers___28657: undefined, - selected___28664: undefined, - buffers___28665: undefined, - count___28669: undefined, - currMovers___28679: undefined, - remainingMovers___28686: undefined, - ms___28691: undefined, + dtf___30204: undefined, + dtSec___30211: undefined, + dt2___30215: undefined, + scene___30219: undefined, + tileMap___30222: undefined, + movingSprites___30225: undefined, + MAX_STEP_COUNT___30256: undefined, + overlapHandlers___30267: undefined, + selected___30274: undefined, + buffers___30275: undefined, + count___30279: undefined, + currMovers___30289: undefined, + remainingMovers___30296: undefined, + ms___30301: undefined, unnamed62___U14: undefined, unnamed63___U15: undefined, - s___28693: undefined, - stepX___28786: undefined, - stepY___28800: undefined, + s___30303: undefined, + stepX___30396: undefined, + stepY___30410: undefined, arg0: undefined, arg1: undefined, } } @@ -77301,7 +77112,7 @@ function ArcadePhysicsEngine_move__P920_mk(s) { -function inline__P28617(s) { +function inline__P30227(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77315,7 +77126,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P921_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P4150_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.caps[1]; @@ -77326,12 +77137,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28617.info = {"start":2985,"length":53,"line":122,"column":17,"endLine":122,"endColumn":70,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} +inline__P30227.info = {"start":2985,"length":53,"line":122,"column":17,"endLine":122,"endColumn":70,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} -function inline__P28617_mk(s) { +function inline__P30227_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28617, depth: s.depth + 1, + parent: s, fn: inline__P30227, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -77341,7 +77152,7 @@ function inline__P28617_mk(s) { -function inline__P28629(s) { +function inline__P30239(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77355,7 +77166,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P774_mk(s); + s.tmp_1 = Sprite_vx__P2026_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 523; s.pc = 5; return s.tmp_1; case 5: @@ -77366,7 +77177,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P776_mk(s); + s.tmp_2 = Sprite_vy__P2028_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 524; s.pc = 6; return s.tmp_2; case 6: @@ -77376,7 +77187,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P818_mk(s); + s.tmp_4 = Sprite_clearObstacles__P2081_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 525; s.pc = 7; return s.tmp_4; case 7: @@ -77387,12 +77198,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28629.info = {"start":3121,"length":66,"line":125,"column":29,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} +inline__P30239.info = {"start":3121,"length":66,"line":125,"column":29,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} -function inline__P28629_mk(s) { +function inline__P30239_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28629, depth: s.depth + 1, + parent: s, fn: inline__P30239, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -77406,7 +77217,7 @@ function inline__P28629_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P922(s) { +function ArcadePhysicsEngine_spriteCollisions__P4151(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77416,18 +77227,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___28901 = undefined; + s.ms___30511 = undefined; s.unnamed64___U1 = undefined; s.unnamed65___U2 = undefined; - s.sprite___28903 = undefined; - s.overSprites___28910 = undefined; - s.overlapper___28918 = undefined; + s.sprite___30513 = undefined; + s.overSprites___30520 = undefined; + s.overlapper___30528 = undefined; s.unnamed66___U6 = undefined; s.unnamed67___U7 = undefined; - s.thisKind___28924 = undefined; - s.otherKind___28928 = undefined; - s.higher___28941 = undefined; - s.lower___28950 = undefined; + s.thisKind___30534 = undefined; + s.otherKind___30538 = undefined; + s.higher___30551 = undefined; + s.lower___30560 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -77435,7 +77246,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -77447,7 +77258,7 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___28901 = (undefined); + s.ms___30511 = (undefined); s.unnamed64___U1 = (s.arg1); s.unnamed65___U2 = (0); case 3: @@ -77457,10 +77268,10 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } r0 = pxsim_Array__getAt(s.unnamed64___U1, s.unnamed65___U2); - s.ms___28901 = (r0); - r0 = s.ms___28901.fields["sprite"]; - s.sprite___28903 = (r0); - r0 = s.sprite___28903.fields["flags"]; + s.ms___30511 = (r0); + r0 = s.ms___30511.fields["sprite"]; + s.sprite___30513 = (r0); + r0 = s.sprite___30513.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 515); s.tmp_0 = r0; @@ -77469,17 +77280,17 @@ switch (step) { { step = 19; continue; } case 4: case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P829_mk(s); + s.tmp_2 = sprites_SpriteMap_overlaps__P2094_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___28901.fields["sprite"]; + r0 = s.ms___30511.fields["sprite"]; s.tmp_2.arg1 = r0; s.callLocIdx = 583; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___28910 = (r0); - s.overlapper___28918 = (undefined); - s.unnamed66___U6 = (s.overSprites___28910); + s.overSprites___30520 = (r0); + s.overlapper___30528 = (undefined); + s.unnamed66___U6 = (s.overSprites___30520); s.unnamed67___U7 = (0); case 6: s.tmp_0 = r0 = s.unnamed67___U7; @@ -77488,8 +77299,8 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } r0 = pxsim_Array__getAt(s.unnamed66___U6, s.unnamed67___U7); - s.overlapper___28918 = (r0); - r0 = s.overlapper___28918.fields["flags"]; + s.overlapper___30528 = (r0); + r0 = s.overlapper___30528.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 515); s.tmp_2 = r0; @@ -77498,13 +77309,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___28903.fields["_kind"]; - s.thisKind___28924 = (r0); - r0 = s.overlapper___28918.fields["_kind"]; - s.otherKind___28928 = (r0); - r0 = s.sprite___28903.fields["_kindsOverlappedWith"]; + r0 = s.sprite___30513.fields["_kind"]; + s.thisKind___30534 = (r0); + r0 = s.overlapper___30528.fields["_kind"]; + s.otherKind___30538 = (r0); + r0 = s.sprite___30513.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___28928, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___30538, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -77513,37 +77324,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___28903.fields["id"]; + r0 = s.sprite___30513.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___28918.fields["id"]; + r0 = s.overlapper___30528.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___28903; + r0 = s.sprite___30513; { step = 12; continue; } case 11: - r0 = s.overlapper___28918; + r0 = s.overlapper___30528; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___28941 = (s.tmp_6); - r0 = (s.higher___28941 === s.sprite___28903); + s.higher___30551 = (s.tmp_6); + r0 = (s.higher___30551 === s.sprite___30513); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___28918; + r0 = s.overlapper___30528; { step = 14; continue; } case 13: - r0 = s.sprite___28903; + r0 = s.sprite___30513; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___28950 = (s.tmp_1); - r0 = s.higher___28941.fields["_overlappers"]; + s.lower___30560 = (s.tmp_1); + r0 = s.higher___30551.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___28950.fields["id"]; + r0 = s.lower___30560.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -77551,19 +77362,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__P28970); + r0 = pxsim_pxtcore_mkAction(2, inline__P30580); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___28924); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___28928); - r0 = pxsim_pxtcore_mkAction(5, inline__P28994); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___30534); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___30538); + r0 = pxsim_pxtcore_mkAction(5, inline__P30604); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___28941); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___28950); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___28903); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___28918); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___28924); - s.tmp_6 = helpers_arrayForEach__P60_mk(s); - s.tmp_7 = helpers_arrayFilter__P61_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___30551); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___30560); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___30513); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___30528); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___30534); + s.tmp_6 = helpers_arrayForEach__P104_mk(s); + s.tmp_7 = helpers_arrayFilter__P105_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; s.callLocIdx = 586; s.pc = 24; return s.tmp_7; @@ -77593,12 +77404,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P922.info = {"start":9198,"length":2254,"line":305,"column":4,"endLine":349,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} +ArcadePhysicsEngine_spriteCollisions__P4151.info = {"start":9157,"length":2254,"line":304,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} -function ArcadePhysicsEngine_spriteCollisions__P922_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P4151_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P922, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P4151, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -77608,18 +77419,18 @@ function ArcadePhysicsEngine_spriteCollisions__P922_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___28901: undefined, + ms___30511: undefined, unnamed64___U1: undefined, unnamed65___U2: undefined, - sprite___28903: undefined, - overSprites___28910: undefined, - overlapper___28918: undefined, + sprite___30513: undefined, + overSprites___30520: undefined, + overlapper___30528: undefined, unnamed66___U6: undefined, unnamed67___U7: undefined, - thisKind___28924: undefined, - otherKind___28928: undefined, - higher___28941: undefined, - lower___28950: undefined, + thisKind___30534: undefined, + otherKind___30538: undefined, + higher___30551: undefined, + lower___30560: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -77629,7 +77440,7 @@ function ArcadePhysicsEngine_spriteCollisions__P922_mk(s) { -function inline__P28970(s) { +function inline__P30580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77686,12 +77497,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28970.info = {"start":10557,"length":137,"line":331,"column":32,"endLine":332,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P30580.info = {"start":10516,"length":137,"line":330,"column":32,"endLine":331,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P28970_mk(s) { +function inline__P30580_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28970, depth: s.depth + 1, + parent: s, fn: inline__P30580, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -77709,7 +77520,7 @@ function inline__P28970_mk(s) { -function inline__P28994(s) { +function inline__P30604(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77728,7 +77539,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__P29004); + r0 = pxsim_pxtcore_mkAction(6, inline__P30614); 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]); @@ -77741,12 +77552,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P28994.info = {"start":10754,"length":648,"line":334,"column":33,"endLine":345,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P30604.info = {"start":10713,"length":648,"line":333,"column":33,"endLine":344,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P28994_mk(s) { +function inline__P30604_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P28994, depth: s.depth + 1, + parent: s, fn: inline__P30604, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -77757,7 +77568,7 @@ function inline__P28994_mk(s) { -function inline__P29004(s) { +function inline__P30614(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77833,12 +77644,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29004.info = {"start":10875,"length":499,"line":336,"column":50,"endLine":344,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +inline__P30614.info = {"start":10834,"length":499,"line":335,"column":50,"endLine":343,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function inline__P29004_mk(s) { +function inline__P30614_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29004, depth: s.depth + 1, + parent: s, fn: inline__P30614, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -77859,7 +77670,7 @@ function inline__P29004_mk(s) { -function sprites_SpriteMap_overlaps__P829(s) { +function sprites_SpriteMap_overlaps__P2094(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77869,47 +77680,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___29038 = undefined; - s.o___29042 = undefined; + s.n___30648 = undefined; + s.o___30652 = 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__C827_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P828_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P2093_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 466; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___29038 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P29044); + s.n___30648 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P30654); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P61_mk(s); - s.tmp_1.arg0 = s.n___29038; + s.tmp_1 = helpers_arrayFilter__P105_mk(s); + s.tmp_1.arg0 = s.n___30648; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 468; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___29042 = (r0); - r0 = s.o___29042; + s.o___30652 = (r0); + r0 = s.o___30652; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P829.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__P2094.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__P829_mk(s) { +function sprites_SpriteMap_overlaps__P2094_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P829, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_overlaps__P2094, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___29038: undefined, - o___29042: undefined, + n___30648: undefined, + o___30652: undefined, arg0: undefined, arg1: undefined, } } @@ -77918,7 +77729,7 @@ function sprites_SpriteMap_overlaps__P829_mk(s) { -function inline__P29044(s) { +function inline__P30654(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77932,7 +77743,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P814_mk(s); + s.tmp_0 = Sprite_overlapsWith__P2077_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 467; s.pc = 1; return s.tmp_0; @@ -77941,12 +77752,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P29044.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} +inline__P30654.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__P29044_mk(s) { +function inline__P30654_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P29044, depth: s.depth + 1, + parent: s, fn: inline__P30654, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -77956,7 +77767,7 @@ function inline__P29044_mk(s) { -function sprites_SpriteMap_neighbors__P828(s) { +function sprites_SpriteMap_neighbors__P2093(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -77966,112 +77777,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___29087 = undefined; - s.layer___29089 = undefined; + s.n___30696 = undefined; + s.layer___30698 = 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__C827_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___29087 = (r0); + s.n___30696 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___29089 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P836_mk(s); + s.layer___30698 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4129_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P796_mk(s); + s.tmp_1 = Sprite_left__P2059_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 454; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P800_mk(s); + s.tmp_2 = Sprite_top__P2063_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 455; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___29089; - s.tmp_0.arg4 = s.n___29087; + s.tmp_0.arg3 = s.layer___30698; + s.tmp_0.arg4 = s.n___30696; s.callLocIdx = 456; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P836_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4129_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P796_mk(s); + s.tmp_1 = Sprite_left__P2059_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 457; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P802_mk(s); + s.tmp_2 = Sprite_bottom__P2065_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 458; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___29089; - s.tmp_0.arg4 = s.n___29087; + s.tmp_0.arg3 = s.layer___30698; + s.tmp_0.arg4 = s.n___30696; s.callLocIdx = 459; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P836_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4129_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P798_mk(s); + s.tmp_1 = Sprite_right__P2061_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 460; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P800_mk(s); + s.tmp_2 = Sprite_top__P2063_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 461; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___29089; - s.tmp_0.arg4 = s.n___29087; + s.tmp_0.arg3 = s.layer___30698; + s.tmp_0.arg4 = s.n___30696; s.callLocIdx = 462; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P836_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P4129_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P798_mk(s); + s.tmp_1 = Sprite_right__P2061_mk(s); s.tmp_1.arg0 = s.arg1; s.callLocIdx = 463; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P802_mk(s); + s.tmp_2 = Sprite_bottom__P2065_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 464; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___29089; - s.tmp_0.arg4 = s.n___29087; + s.tmp_0.arg3 = s.layer___30698; + s.tmp_0.arg4 = s.n___30696; s.callLocIdx = 465; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___29087, s.arg1); - r0 = s.n___29087; + r0 = pxsim_Array_.removeElement(s.n___30696, s.arg1); + r0 = s.n___30696; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P828.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__P2093.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__P828_mk(s) { +function sprites_SpriteMap_neighbors__P2093_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P828, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P2093, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___29087: undefined, - layer___29089: undefined, + n___30696: undefined, + layer___30698: undefined, arg0: undefined, arg1: undefined, } } @@ -78080,7 +77891,7 @@ function sprites_SpriteMap_neighbors__P828_mk(s) { -function sprites_SpriteMap_mergeAtKey__P836(s) { +function sprites_SpriteMap_mergeAtKey__P4129(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -78090,9 +77901,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___29130 = undefined; - s.bucket___29135 = undefined; - s.sprite___29142 = undefined; + s.k___30739 = undefined; + s.bucket___30744 = undefined; + s.sprite___30751 = undefined; s.unnamed60___U3 = undefined; s.unnamed61___U4 = undefined; if (s.lambdaArgs) { @@ -78104,23 +77915,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C827_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P833_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P4127_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; s.callLocIdx = 490; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___29130 = (r0); + s.k___30739 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___29130); - s.bucket___29135 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___29135); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___30739); + s.bucket___30744 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___30744); if (!r0) { step = 7; continue; } - s.sprite___29142 = (undefined); - s.unnamed60___U3 = (s.bucket___29135); + s.sprite___30751 = (undefined); + s.unnamed60___U3 = (s.bucket___30744); s.unnamed61___U4 = (0); case 1: s.tmp_0 = r0 = s.unnamed61___U4; @@ -78129,8 +77940,8 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } r0 = pxsim_Array__getAt(s.unnamed60___U3, s.unnamed61___U4); - s.sprite___29142 = (r0); - r0 = s.sprite___29142.fields["layer"]; + s.sprite___30751 = (r0); + r0 = s.sprite___30751.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -78139,7 +77950,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___29142, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___30751, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -78147,7 +77958,7 @@ 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___29142); + r0 = pxsim_Array__push(s.arg4, s.sprite___30751); case 4: case 5: r0 = (s.unnamed61___U4 + 1); @@ -78161,12 +77972,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P836.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__P4129.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__P836_mk(s) { +function sprites_SpriteMap_mergeAtKey__P4129_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P836, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P4129, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -78174,9 +77985,9 @@ function sprites_SpriteMap_mergeAtKey__P836_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___29130: undefined, - bucket___29135: undefined, - sprite___29142: undefined, + k___30739: undefined, + bucket___30744: undefined, + sprite___30751: undefined, unnamed60___U3: undefined, unnamed61___U4: undefined, arg0: undefined, @@ -78190,7 +78001,7 @@ function sprites_SpriteMap_mergeAtKey__P836_mk(s) { -function sprites_SpriteMap_key__P833(s) { +function sprites_SpriteMap_key__P4127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -78200,8 +78011,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___29163 = undefined; - s.yi___29175 = undefined; + s.xi___30772 = undefined; + s.yi___30784 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -78209,8 +78020,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C827_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P75_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P119_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["columnCount"]; s.tmp_0.arg1 = r0; @@ -78221,8 +78032,8 @@ switch (step) { s.callLocIdx = 478; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___29163 = (r0); - s.tmp_0 = Math_clamp__P75_mk(s); + s.xi___30772 = (r0); + s.tmp_0 = Math_clamp__P119_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; s.tmp_0.arg1 = r0; @@ -78233,28 +78044,28 @@ switch (step) { s.callLocIdx = 479; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___29175 = (r0); - s.tmp_0 = r0 = s.xi___29163; + s.yi___30784 = (r0); + s.tmp_0 = r0 = s.xi___30772; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___29175 * s.tmp_2); + r0 = (s.yi___30784 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P833.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__P4127.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__P833_mk(s) { +function sprites_SpriteMap_key__P4127_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P833, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P4127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___29163: undefined, - yi___29175: undefined, + xi___30772: undefined, + yi___30784: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -78264,7 +78075,7 @@ function sprites_SpriteMap_key__P833_mk(s) { -function Sprite_overlapsWith__P814(s) { +function Sprite_overlapsWith__P2077(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -78280,7 +78091,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = (s.arg1 == s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -78313,13 +78124,13 @@ switch (step) { s.tmp_5 = r0; r0 = s.arg0.fields["_image"]; s.tmp_6 = r0; - s.tmp_9 = Sprite_left__P796_mk(s); + s.tmp_9 = Sprite_left__P2059_mk(s); s.tmp_9.arg0 = s.arg0; s.callLocIdx = 417; s.pc = 8; return s.tmp_9; case 8: r0 = s.retval; s.tmp_8 = r0; - s.tmp_11 = Sprite_left__P796_mk(s); + s.tmp_11 = Sprite_left__P2059_mk(s); s.tmp_11.arg0 = s.arg1; s.callLocIdx = 418; s.pc = 9; return s.tmp_11; case 9: @@ -78327,13 +78138,13 @@ switch (step) { s.tmp_10 = r0; r0 = (s.tmp_8 - s.tmp_10); s.tmp_7 = r0; - s.tmp_14 = Sprite_top__P800_mk(s); + s.tmp_14 = Sprite_top__P2063_mk(s); s.tmp_14.arg0 = s.arg0; s.callLocIdx = 419; s.pc = 10; return s.tmp_14; case 10: r0 = s.retval; s.tmp_13 = r0; - s.tmp_16 = Sprite_top__P800_mk(s); + s.tmp_16 = Sprite_top__P2063_mk(s); s.tmp_16.arg0 = s.arg1; s.callLocIdx = 420; s.pc = 11; return s.tmp_16; case 11: @@ -78346,12 +78157,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_overlapsWith__P814.info = {"start":24416,"length":434,"line":748,"column":4,"endLine":756,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +Sprite_overlapsWith__P2077.info = {"start":24414,"length":434,"line":748,"column":4,"endLine":756,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function Sprite_overlapsWith__P814_mk(s) { +function Sprite_overlapsWith__P2077_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_overlapsWith__P814, depth: s.depth + 1, + parent: s, fn: Sprite_overlapsWith__P2077, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -78378,7 +78189,7 @@ function Sprite_overlapsWith__P814_mk(s) { -function ArcadePhysicsEngine_createMovingSprite__P921(s) { +function ArcadePhysicsEngine_createMovingSprite__P4150(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -78388,16 +78199,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___29377 = undefined; - s.ovy___29382 = undefined; - s.fx___29409 = undefined; - s.c___29415 = undefined; - s.fy___29458 = undefined; - s.c___29464 = undefined; - s.dx___29493 = undefined; - s.dy___29502 = undefined; - s.xStep___29511 = undefined; - s.yStep___29513 = undefined; + s.ovx___30986 = undefined; + s.ovy___30991 = undefined; + s.fx___31017 = undefined; + s.c___31023 = undefined; + s.fy___31065 = undefined; + s.c___31071 = undefined; + s.dx___31110 = undefined; + s.dy___31119 = undefined; + s.xStep___31128 = undefined; + s.yStep___31130 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -78406,23 +78217,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P928_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P4155_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; s.callLocIdx = 550; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___29377 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P928_mk(s); + s.ovx___30986 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P4155_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; s.callLocIdx = 551; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___29382 = (r0); + s.ovy___30991 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -78434,21 +78245,15 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } s.tmp_1 = r0 = s.arg1; - s.tmp_3 = ArcadePhysicsEngine_constrain__P928_mk(s); - s.tmp_3.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; - s.tmp_4 = r0; + s.tmp_3 = r0; r0 = s.arg1.fields["_ax"]; - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.arg2); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> 8); s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3.arg1 = r0; - s.callLocIdx = 554; s.pc = 27; return s.tmp_3; - case 27: - r0 = s.retval; + r0 = pxsim.Math_.imul(s.tmp_5, s.arg2); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 8); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); { step = 8; continue; } @@ -78462,42 +78267,42 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_1, s.arg2); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.fx___29409 = (r0); + s.fx___31017 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___29409); - s.c___29415 = (r0); - r0 = (s.c___29415 < 0); + r0 = (s.tmp_0 - s.fx___31017); + s.c___31023 = (r0); + r0 = (s.c___31023 < 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__P123_mk(s); + s.tmp_3 = Fx_min__P158_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___29409); + r0 = (s.tmp_4 + s.fx___31017); s.tmp_3.arg1 = r0; - s.callLocIdx = 558; s.pc = 28; return s.tmp_3; - case 28: + s.callLocIdx = 557; s.pc = 27; return s.tmp_3; + case 27: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); { step = 5; continue; } case 2: - r0 = (s.c___29415 > 0); + r0 = (s.c___31023 > 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__P124_mk(s); + s.tmp_3 = Fx_max__P159_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___29409); + r0 = (s.tmp_4 - s.fx___31017); s.tmp_3.arg1 = r0; - s.callLocIdx = 560; s.pc = 29; return s.tmp_3; - case 29: + s.callLocIdx = 559; s.pc = 28; return s.tmp_3; + case 28: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); @@ -78514,21 +78319,15 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } s.tmp_1 = r0 = s.arg1; - s.tmp_3 = ArcadePhysicsEngine_constrain__P928_mk(s); - s.tmp_3.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; - s.tmp_4 = r0; + s.tmp_3 = r0; r0 = s.arg1.fields["_ay"]; - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.arg2); - s.tmp_7 = r0; - r0 = (s.tmp_7 >> 8); s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3.arg1 = r0; - s.callLocIdx = 563; s.pc = 30; return s.tmp_3; - case 30: - r0 = s.retval; + r0 = pxsim.Math_.imul(s.tmp_5, s.arg2); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 8); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); { step = 16; continue; } @@ -78542,42 +78341,42 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_1, s.arg2); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.fy___29458 = (r0); + s.fy___31065 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___29458); - s.c___29464 = (r0); - r0 = (s.c___29464 < 0); + r0 = (s.tmp_0 - s.fy___31065); + s.c___31071 = (r0); + r0 = (s.c___31071 < 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__P123_mk(s); + s.tmp_3 = Fx_min__P158_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___29458); + r0 = (s.tmp_4 + s.fy___31065); s.tmp_3.arg1 = r0; - s.callLocIdx = 567; s.pc = 31; return s.tmp_3; - case 31: + s.callLocIdx = 565; s.pc = 29; return s.tmp_3; + case 29: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); { step = 13; continue; } case 10: - r0 = (s.c___29464 > 0); + r0 = (s.c___31071 > 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__P123_mk(s); + s.tmp_3 = Fx_min__P158_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___29458); + r0 = (s.tmp_4 - s.fy___31065); s.tmp_3.arg1 = r0; - s.callLocIdx = 569; s.pc = 32; return s.tmp_3; - case 32: + s.callLocIdx = 567; s.pc = 30; return s.tmp_3; + case 30: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); @@ -78589,31 +78388,51 @@ switch (step) { case 14: case 15: case 16: + s.tmp_0 = r0 = s.arg1; + s.tmp_2 = ArcadePhysicsEngine_constrain__P4155_mk(s); + s.tmp_2.arg0 = s.arg0; + r0 = s.arg1.fields["_vx"]; + s.tmp_2.arg1 = r0; + s.callLocIdx = 568; s.pc = 31; return s.tmp_2; + case 31: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + s.tmp_2 = ArcadePhysicsEngine_constrain__P4155_mk(s); + s.tmp_2.arg0 = s.arg0; + r0 = s.arg1.fields["_vy"]; + s.tmp_2.arg1 = r0; + s.callLocIdx = 569; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = s.arg1.fields["_vx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.ovx___29377); + r0 = (s.tmp_2 + s.ovx___30986); 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___29493 = (r0); + s.dx___31110 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.ovy___29382); + r0 = (s.tmp_2 + s.ovy___30991); 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___29502 = (r0); - s.xStep___29511 = (s.dx___29493); - s.yStep___29513 = (s.dy___29502); + s.dy___31119 = (r0); + s.xStep___31128 = (s.dx___31110); + s.yStep___31130 = (s.dy___31119); case 17: - s.tmp_2 = Fx_abs__P122_mk(s); - s.tmp_2.arg0 = s.xStep___29511; + s.tmp_2 = Fx_abs__P157_mk(s); + s.tmp_2.arg0 = s.xStep___31128; s.callLocIdx = 576; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; @@ -78627,8 +78446,8 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - s.tmp_5 = Fx_abs__P122_mk(s); - s.tmp_5.arg0 = s.yStep___29513; + s.tmp_5 = Fx_abs__P157_mk(s); + s.tmp_5.arg0 = s.yStep___31130; s.callLocIdx = 577; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; @@ -78641,8 +78460,8 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P122_mk(s); - s.tmp_10.arg0 = s.xStep___29511; + s.tmp_10 = Fx_abs__P157_mk(s); + s.tmp_10.arg0 = s.xStep___31128; s.callLocIdx = 578; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; @@ -78653,12 +78472,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___29511, 2); - s.xStep___29511 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___31128, 2); + s.xStep___31128 = (r0); case 20: case 21: - s.tmp_2 = Fx_abs__P122_mk(s); - s.tmp_2.arg0 = s.yStep___29513; + s.tmp_2 = Fx_abs__P157_mk(s); + s.tmp_2.arg0 = s.yStep___31130; s.callLocIdx = 580; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; @@ -78669,25 +78488,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___29513, 2); - s.yStep___29513 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___31130, 2); + s.yStep___31130 = (r0); case 22: case 23: { step = 17; continue; } case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C906_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C2168_VT); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P907_mk(s); + s.tmp_1 = MovingSprite_constructor__P2169_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___29493; - s.tmp_1.arg5 = s.dy___29502; - s.tmp_1.arg6 = s.xStep___29511; - s.tmp_1.arg7 = s.yStep___29513; + s.tmp_1.arg4 = s.dx___31110; + s.tmp_1.arg5 = s.dy___31119; + s.tmp_1.arg6 = s.xStep___31128; + s.tmp_1.arg7 = s.yStep___31130; s.callLocIdx = 582; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; @@ -78695,12 +78514,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P921.info = {"start":6489,"length":2703,"line":211,"column":4,"endLine":303,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtSec","dt2"]} +ArcadePhysicsEngine_createMovingSprite__P4150.info = {"start":6489,"length":2662,"line":211,"column":4,"endLine":302,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtSec","dt2"]} -function ArcadePhysicsEngine_createMovingSprite__P921_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P4150_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P921, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P4150, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -78714,16 +78533,16 @@ function ArcadePhysicsEngine_createMovingSprite__P921_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___29377: undefined, - ovy___29382: undefined, - fx___29409: undefined, - c___29415: undefined, - fy___29458: undefined, - c___29464: undefined, - dx___29493: undefined, - dy___29502: undefined, - xStep___29511: undefined, - yStep___29513: undefined, + ovx___30986: undefined, + ovy___30991: undefined, + fx___31017: undefined, + c___31023: undefined, + fy___31065: undefined, + c___31071: undefined, + dx___31110: undefined, + dy___31119: undefined, + xStep___31128: undefined, + yStep___31130: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -78734,7 +78553,7 @@ function ArcadePhysicsEngine_createMovingSprite__P921_mk(s) { -function ArcadePhysicsEngine_constrain__P928(s) { +function ArcadePhysicsEngine_constrain__P4155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -78750,9 +78569,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P124_mk(s); - s.tmp_1 = Fx_min__P123_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P159_mk(s); + s.tmp_1 = Fx_min__P158_mk(s); r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; @@ -78768,12 +78587,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P928.info = {"start":24897,"length":191,"line":732,"column":4,"endLine":740,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} +ArcadePhysicsEngine_constrain__P4155.info = {"start":24856,"length":191,"line":731,"column":4,"endLine":739,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} -function ArcadePhysicsEngine_constrain__P928_mk(s) { +function ArcadePhysicsEngine_constrain__P4155_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P928, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P4155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -78785,7 +78604,7 @@ function ArcadePhysicsEngine_constrain__P928_mk(s) { -function Fx_max__P124(s) { +function Fx_max__P159(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -78816,12 +78635,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_max__P124.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__P159.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__P124_mk(s) { +function Fx_max__P159_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_max__P124, depth: s.depth + 1, + parent: s, fn: Fx_max__P159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -78832,7 +78651,7 @@ function Fx_max__P124_mk(s) { -function Fx_compare__P121(s) { +function Fx_compare__P156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -78851,12 +78670,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_compare__P121.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__P156.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__P121_mk(s) { +function Fx_compare__P156_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_compare__P121, depth: s.depth + 1, + parent: s, fn: Fx_compare__P156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -78866,7 +78685,7 @@ function Fx_compare__P121_mk(s) { -function sprites_SpriteMap_insertAABB__P835(s) { +function sprites_SpriteMap_insertAABB__P2098(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -78876,31 +78695,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___29195 = undefined; - s.top___29198 = undefined; - s.xn___29201 = undefined; - s.yn___29212 = undefined; - s.x___29223 = undefined; - s.y___29228 = undefined; + s.left___30804 = undefined; + s.top___30807 = undefined; + s.xn___30810 = undefined; + s.yn___30821 = undefined; + s.x___30832 = undefined; + s.y___30837 = 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__C827_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P796_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P2059_mk(s); s.tmp_0.arg0 = s.arg1; s.callLocIdx = 481; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___29195 = (r0); - s.tmp_0 = Sprite_top__P800_mk(s); + s.left___30804 = (r0); + s.tmp_0 = Sprite_top__P2063_mk(s); s.tmp_0.arg0 = s.arg1; s.callLocIdx = 482; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___29198 = (r0); + s.top___30807 = (r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.width(s.tmp_3); @@ -78914,7 +78733,7 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___29201 = (r0); + s.xn___30810 = (r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -78928,30 +78747,30 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___29212 = (r0); - s.x___29223 = (0); + s.yn___30821 = (r0); + s.x___30832 = (0); case 1: - r0 = (s.x___29223 <= s.xn___29201); + r0 = (s.x___30832 <= s.xn___30810); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___29228 = (0); + s.y___30837 = (0); case 2: - r0 = (s.y___29228 <= s.yn___29212); + r0 = (s.y___30837 <= s.yn___30821); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P834_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P4128_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___29195; - s.tmp_4 = Math_min__P79_mk(s); + s.tmp_2 = r0 = s.left___30804; + s.tmp_4 = Math_min__P123_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___29223 * s.tmp_6); + r0 = (s.x___30832 * s.tmp_6); s.tmp_4.arg1 = r0; s.callLocIdx = 486; s.pc = 8; return s.tmp_4; case 8: @@ -78959,15 +78778,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___29198; - s.tmp_9 = Math_min__P79_mk(s); + s.tmp_7 = r0 = s.top___30807; + s.tmp_9 = Math_min__P123_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___29228 * s.tmp_11); + r0 = (s.y___30837 * s.tmp_11); s.tmp_9.arg1 = r0; s.callLocIdx = 488; s.pc = 9; return s.tmp_9; case 9: @@ -78979,24 +78798,24 @@ switch (step) { s.callLocIdx = 489; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - r0 = (s.y___29228 + 1); - s.y___29228 = (r0); + r0 = (s.y___30837 + 1); + s.y___30837 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___29223 + 1); - s.x___29223 = (r0); + r0 = (s.x___30832 + 1); + s.x___30832 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P835.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__P2098.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__P835_mk(s) { +function sprites_SpriteMap_insertAABB__P2098_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P835, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P2098, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -79010,12 +78829,12 @@ function sprites_SpriteMap_insertAABB__P835_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___29195: undefined, - top___29198: undefined, - xn___29201: undefined, - yn___29212: undefined, - x___29223: undefined, - y___29228: undefined, + left___30804: undefined, + top___30807: undefined, + xn___30810: undefined, + yn___30821: undefined, + x___30832: undefined, + y___30837: undefined, arg0: undefined, arg1: undefined, } } @@ -79024,7 +78843,7 @@ function sprites_SpriteMap_insertAABB__P835_mk(s) { -function sprites_SpriteMap_insertAtKey__P834(s) { +function sprites_SpriteMap_insertAtKey__P4128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79034,8 +78853,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___29263 = undefined; - s.bucket___29268 = undefined; + s.k___30872 = undefined; + s.bucket___30877 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -79044,20 +78863,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C827_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P833_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P4127_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; s.callLocIdx = 480; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___29263 = (r0); + s.k___30872 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___29263); - s.bucket___29268 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___29268); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___30872); + s.bucket___30877 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___30877); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -79065,40 +78884,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___29263; + s.tmp_3 = r0 = s.k___30872; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___29268 = (s.tmp_4); + s.bucket___30877 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___29268, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___30877, 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___29268, s.arg3); + r0 = pxsim_Array__push(s.bucket___30877, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P834.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__P4128.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__P834_mk(s) { +function sprites_SpriteMap_insertAtKey__P4128_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P834, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P4128, depth: s.depth + 1, pc: 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___29263: undefined, - bucket___29268: undefined, + k___30872: undefined, + bucket___30877: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -79109,7 +78928,7 @@ function sprites_SpriteMap_insertAtKey__P834_mk(s) { -function sprites_SpriteMap_clear__P832(s) { +function sprites_SpriteMap_clear__P2097(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79124,7 +78943,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C827_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -79133,12 +78952,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P832.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__P2097.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__P832_mk(s) { +function sprites_SpriteMap_clear__P2097_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P832, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P2097, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -79149,7 +78968,7 @@ function sprites_SpriteMap_clear__P832_mk(s) { -function sprites_SpriteMap_resizeBuckets__P831(s) { +function sprites_SpriteMap_resizeBuckets__P2096(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79159,24 +78978,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___29300 = undefined; - s.maxHeight___29301 = undefined; - s.sprite___29303 = undefined; + s.maxWidth___30909 = undefined; + s.maxHeight___30910 = undefined; + s.sprite___30912 = undefined; s.unnamed58___U3 = undefined; s.unnamed59___U4 = undefined; - s.tMap___29319 = undefined; - s.areaWidth___29323 = undefined; - s.areaHeight___29330 = undefined; + s.tMap___30928 = undefined; + s.areaWidth___30932 = undefined; + s.areaHeight___30939 = 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__C827_VT)) failedCast(r0); - s.maxWidth___29300 = (0); - s.maxHeight___29301 = (0); - s.sprite___29303 = (undefined); + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + s.maxWidth___30909 = (0); + s.maxHeight___30910 = (0); + s.sprite___30912 = (undefined); s.unnamed58___U3 = (s.arg1); s.unnamed59___U4 = (0); case 1: @@ -79186,33 +79005,33 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } r0 = pxsim_Array__getAt(s.unnamed58___U3, s.unnamed59___U4); - s.sprite___29303 = (r0); - r0 = s.sprite___29303.fields["_image"]; + s.sprite___30912 = (r0); + r0 = s.sprite___30912.fields["_image"]; s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___29300); + r0 = (s.tmp_3 > s.maxWidth___30909); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.sprite___29303.fields["_image"]; + r0 = s.sprite___30912.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.width(s.tmp_5); - s.maxWidth___29300 = (r0); + s.maxWidth___30909 = (r0); case 2: case 3: - r0 = s.sprite___29303.fields["_image"]; + r0 = s.sprite___30912.fields["_image"]; s.tmp_2 = r0; r0 = pxsim_ImageMethods.height(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___29301); + r0 = (s.tmp_1 > s.maxHeight___30910); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = s.sprite___29303.fields["_image"]; + r0 = s.sprite___30912.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); - s.maxHeight___29301 = (r0); + s.maxHeight___30910 = (r0); case 4: case 5: r0 = (s.unnamed59___U4 + 1); @@ -79220,50 +79039,50 @@ switch (step) { { step = 1; continue; } case 6: s.unnamed58___U3 = (undefined); - s.tmp_0 = game_currentScene__P961_mk(s); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 475; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___29319 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___29319); + s.tMap___30928 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___30928); if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap__C1086_v3_1_mk(s); - s.tmp_0.arg0 = s.tMap___29319; - if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0 = tiles_TileMap__C2314_v3_1_mk(s); + s.tmp_0.arg0 = s.tMap___30928; + if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.areaWidth; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; { step = 8; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___29323 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___29319); + s.areaWidth___30932 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___30928); if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap__C1086_v4_1_mk(s); - s.tmp_0.arg0 = s.tMap___29319; - if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0 = tiles_TileMap__C2314_v4_1_mk(s); + s.tmp_0.arg0 = s.tMap___30928; + if (!checkSubtype(s.tmp_0.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.areaHeight; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; { step = 10; continue; } case 9: - r0 = pxsim_ImageMethods.height(globals.screen___578); + r0 = pxsim_ImageMethods.height(globals.screen___1799); case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___29330 = (s.tmp_1); + s.areaHeight___30939 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P75_mk(s); + s.tmp_2 = Math_clamp__P119_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___29323 >> 2); + r0 = (s.areaWidth___30932 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___29300 * 2); + r0 = (s.maxWidth___30909 * 2); s.tmp_2.arg2 = r0; s.callLocIdx = 476; s.pc = 14; return s.tmp_2; case 14: @@ -79271,11 +79090,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__P75_mk(s); + s.tmp_2 = Math_clamp__P119_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___29330 >> 2); + r0 = (s.areaHeight___30939 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___29301 * 2); + r0 = (s.maxHeight___30910 * 2); s.tmp_2.arg2 = r0; s.callLocIdx = 477; s.pc = 15; return s.tmp_2; case 15: @@ -79285,25 +79104,25 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___29330, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___30939, 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___29323, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___30932, 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__P831.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__P2096.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__P831_mk(s) { +function sprites_SpriteMap_resizeBuckets__P2096_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P831, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P2096, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -79311,14 +79130,14 @@ function sprites_SpriteMap_resizeBuckets__P831_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___29300: undefined, - maxHeight___29301: undefined, - sprite___29303: undefined, + maxWidth___30909: undefined, + maxHeight___30910: undefined, + sprite___30912: undefined, unnamed58___U3: undefined, unnamed59___U4: undefined, - tMap___29319: undefined, - areaWidth___29323: undefined, - areaHeight___29330: undefined, + tMap___30928: undefined, + areaWidth___30932: undefined, + areaHeight___30939: undefined, arg0: undefined, arg1: undefined, } } @@ -79327,7 +79146,7 @@ function sprites_SpriteMap_resizeBuckets__P831_mk(s) { -function Sprite_clearObstacles__P818(s) { +function Sprite_clearObstacles__P2081(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79342,7 +79161,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -79351,12 +79170,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P818.info = {"start":26812,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} +Sprite_clearObstacles__P2081.info = {"start":26810,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} -function Sprite_clearObstacles__P818_mk(s) { +function Sprite_clearObstacles__P2081_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P818, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P2081, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -79367,7 +79186,7 @@ function Sprite_clearObstacles__P818_mk(s) { -function Fx_idiv__P120(s) { +function Fx_idiv__P155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79386,13 +79205,250 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_idiv__P120.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__P155.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__P155_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_idiv__P155, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_div__P154(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 << 8); + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_div__P154.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_idiv__P120_mk(s) { +function Fx_div__P154_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_idiv__P120, depth: s.depth + 1, + parent: s, fn: Fx_div__P154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function ArcadePhysicsEngine_draw__P2181(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P2095_mk(s); + r0 = s.arg0.fields["map"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 515; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_draw__P2181.info = {"start":2506,"length":39,"line":105,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} + +function ArcadePhysicsEngine_draw__P2181_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_draw__P2181, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function sprites_SpriteMap_draw__P2095(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.x___31208 = undefined; + s.y___31214 = undefined; + s.left___31220 = undefined; + s.top___31225 = undefined; + s.k___31230 = undefined; + s.b___31235 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteMap__C2091_VT)) failedCast(r0); + s.x___31208 = (0); + case 1: + r0 = s.arg0.fields["columnCount"]; + s.tmp_1 = r0; + r0 = (s.x___31208 < s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.y___31214 = (0); + case 2: + r0 = s.arg0.fields["rowCount"]; + s.tmp_1 = r0; + r0 = (s.y___31214 < 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___31208 * s.tmp_2); + s.left___31220 = (r0); + r0 = s.arg0.fields["cellHeight"]; + s.tmp_0 = r0; + r0 = (s.y___31214 * s.tmp_0); + s.top___31225 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P4127_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.left___31220; + s.tmp_0.arg2 = s.top___31225; + s.callLocIdx = 469; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.k___31230 = (r0); + r0 = s.arg0.fields["buckets"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___31230); + s.b___31235 = (r0); + s.tmp_0 = r0 = s.b___31235; + 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___31235); + 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__P1728_mk(s); + s.tmp_2.arg0 = globals.screen___1799; + s.tmp_2.arg1 = s.left___31220; + s.tmp_2.arg2 = s.top___31225; + r0 = s.arg0.fields["cellWidth"]; + s.tmp_2.arg3 = r0; + r0 = s.arg0.fields["cellHeight"]; + s.tmp_2.arg4 = r0; + s.tmp_2.arg5 = 5; + s.callLocIdx = 470; s.pc = 10; return s.tmp_2; + case 10: + r0 = s.retval; + case 5: + case 6: + r0 = (s.y___31214 + 1); + s.y___31214 = (r0); + { step = 2; continue; } + case 7: + r0 = (s.x___31208 + 1); + s.x___31208 = (r0); + { step = 1; continue; } + case 8: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_SpriteMap_draw__P2095.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__P2095_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteMap_draw__P2095, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + x___31208: undefined, + y___31214: undefined, + left___31220: undefined, + top___31225: undefined, + k___31230: undefined, + b___31235: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_removeSprite__P2180(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__C2170_VT)) failedCast(r0); + r0 = s.arg0.fields["sprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_removeSprite__P2180.info = {"start":2420,"length":80,"line":101,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} + +function ArcadePhysicsEngine_removeSprite__P2180_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_removeSprite__P2180, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -79401,7 +79457,7 @@ function Fx_idiv__P120_mk(s) { -function Fx_div__P119(s) { +function ArcadePhysicsEngine_addSprite__P2179(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79411,25 +79467,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tm___31272 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 << 8); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C2170_VT)) failedCast(r0); + r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = game_currentScene__P2524_mk(s); + s.callLocIdx = 514; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___31272 = (r0); + s.tmp_0 = r0 = s.tm___31272; + 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__C2314_v14_2_mk(s); + s.tmp_1.arg0 = s.tm___31272; + s.tmp_1.arg1 = s.arg1; + if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C2314_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOnWall; + s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_3 = r0 = s.arg1; + r0 = s.tmp_3.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 | 256); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["flags"] = (s.tmp_4); + case 3: + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_div__P119.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} +ArcadePhysicsEngine_addSprite__P2179.info = {"start":2194,"length":220,"line":93,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function Fx_div__P119_mk(s) { +function ArcadePhysicsEngine_addSprite__P2179_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_div__P119, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_addSprite__P2179, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tm___31272: undefined, arg0: undefined, arg1: undefined, } } @@ -79438,7 +79537,7 @@ function Fx_div__P119_mk(s) { -function ArcadePhysicsEngine_draw__P919(s) { +function tiles_TileMapData_constructor__P2302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79450,36 +79549,56 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P830_mk(s); - r0 = s.arg0.fields["map"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 515; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, tiles_TileMapData__C2301_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__P2306_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg4; + s.callLocIdx = 732; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P919.info = {"start":2506,"length":39,"line":105,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +tiles_TileMapData_constructor__P2302.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 ArcadePhysicsEngine_draw__P919_mk(s) { +function tiles_TileMapData_constructor__P2302_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P919, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P2302, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function sprites_SpriteMap_draw__P830(s) { +function scene_BackgroundLayer_constructor__P2279(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79489,116 +79608,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___29591 = undefined; - s.y___29597 = undefined; - s.left___29603 = undefined; - s.top___29608 = undefined; - s.k___29613 = undefined; - s.b___29618 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C827_VT)) failedCast(r0); - s.x___29591 = (0); - case 1: - r0 = s.arg0.fields["columnCount"]; - s.tmp_1 = r0; - r0 = (s.x___29591 < s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.y___29597 = (0); - case 2: - r0 = s.arg0.fields["rowCount"]; - s.tmp_1 = r0; - r0 = (s.y___29597 < 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___29591 * s.tmp_2); - s.left___29603 = (r0); - r0 = s.arg0.fields["cellHeight"]; - s.tmp_0 = r0; - r0 = (s.y___29597 * s.tmp_0); - s.top___29608 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P833_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___29603; - s.tmp_0.arg2 = s.top___29608; - s.callLocIdx = 469; s.pc = 9; return s.tmp_0; - case 9: + if (!checkSubtype(r0, scene_BackgroundLayer__C2272_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Math_max__P122_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 725; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; - s.k___29613 = (r0); - r0 = s.arg0.fields["buckets"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___29613); - s.b___29618 = (r0); - s.tmp_0 = r0 = s.b___29618; - r0 = pxsim_numops_toBool(s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["distance"] = (s.tmp_1); + r0 = (s.arg0).fields["img"] = (s.arg3); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 5; continue; } r0 = s.tmp_0; - { step = 4; continue; } + { step = 6; continue; } + case 1: + r0 = (s.arg0).fields["repeatX"] = (true); + r0 = (s.arg0).fields["repeatY"] = (true); + r0 = (s.arg0).fields["alignX"] = (5); + r0 = (s.arg0).fields["alignY"] = (5); + { step = 6; continue; } + case 2: case 3: - r0 = pxsim_Array__length(s.b___29618); + r0 = (s.arg0).fields["repeatX"] = (false); + r0 = (s.arg0).fields["repeatY"] = (true); + r0 = (s.arg0).fields["alignX"] = (s.arg2); + r0 = (s.arg0).fields["alignY"] = (5); + { step = 6; continue; } case 4: - // 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__P520_mk(s); - s.tmp_2.arg0 = globals.screen___578; - s.tmp_2.arg1 = s.left___29603; - s.tmp_2.arg2 = s.top___29608; - r0 = s.arg0.fields["cellWidth"]; - s.tmp_2.arg3 = r0; - r0 = s.arg0.fields["cellHeight"]; - s.tmp_2.arg4 = r0; - s.tmp_2.arg5 = 5; - s.callLocIdx = 470; s.pc = 10; return s.tmp_2; - case 10: - r0 = s.retval; case 5: + r0 = (s.arg0).fields["repeatX"] = (true); + r0 = (s.arg0).fields["repeatY"] = (false); + r0 = (s.arg0).fields["alignX"] = (5); + r0 = (s.arg0).fields["alignY"] = (s.arg2); case 6: - r0 = (s.y___29597 + 1); - s.y___29597 = (r0); - { step = 2; continue; } - case 7: - r0 = (s.x___29591 + 1); - s.x___29591 = (r0); - { step = 1; continue; } - case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P830.info = {"start":1122,"length":496,"line":36,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"draw","argumentNames":["this"]} +scene_BackgroundLayer_constructor__P2279.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 sprites_SpriteMap_draw__P830_mk(s) { +function scene_BackgroundLayer_constructor__P2279_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P830, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_constructor__P2279, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___29591: undefined, - y___29597: undefined, - left___29603: undefined, - top___29608: undefined, - k___29613: undefined, - b___29618: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function ArcadePhysicsEngine_removeSprite__P918(s) { +function scene_Camera_y__P2362(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79610,35 +79696,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - r0 = s.arg0.fields["sprites"]; + if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0); + r0 = s.arg0.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); - r0 = undefined; - return leave(s, r0) + r0 = pxsim_ImageMethods.height(globals.screen___1799); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_removeSprite__P918.info = {"start":2420,"length":80,"line":101,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +scene_Camera_y__P2362.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__P2362.isGetter = true; -function ArcadePhysicsEngine_removeSprite__P918_mk(s) { +function scene_Camera_y__P2362_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P918, depth: s.depth + 1, + parent: s, fn: scene_Camera_y__P2362, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_addSprite__P917(s) { +function scene_Camera_x__P2361(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79648,77 +79738,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___29655 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C908_VT)) failedCast(r0); - r0 = s.arg0.fields["sprites"]; + if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0); + r0 = s.arg0.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = game_currentScene__P961_mk(s); - s.callLocIdx = 514; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___29655 = (r0); - s.tmp_0 = r0 = s.tm___29655; - 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__C1086_v14_2_mk(s); - s.tmp_1.arg0 = s.tm___29655; - s.tmp_1.arg1 = s.arg1; - if (!checkSubtype(s.tmp_1.arg0, tiles_TileMap__C1086_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOnWall; - s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - case 2: - // jmp value (already in r0) + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_3 = r0 = s.arg1; - r0 = s.tmp_3.fields["flags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 | 256); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["flags"] = (s.tmp_4); - case 3: - case 4: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P917.info = {"start":2194,"length":220,"line":93,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +scene_Camera_x__P2361.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__P2361.isGetter = true; -function ArcadePhysicsEngine_addSprite__P917_mk(s) { +function scene_Camera_x__P2361_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P917, depth: s.depth + 1, + parent: s, fn: scene_Camera_x__P2361, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tm___29655: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource___draw__P1717(s) { +function particles_ParticleSource___draw__P2676(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79728,18 +79782,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___29721 = undefined; - s.left___29724 = undefined; - s.top___29734 = undefined; + s.current___31336 = undefined; + s.left___31339 = undefined; + s.top___31349 = 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__C1715_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___29721 = (r0); + s.current___31336 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -79757,7 +79811,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___29724 = (s.tmp_4); + s.left___31339 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -79775,49 +79829,49 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___29734 = (s.tmp_4); + s.top___31349 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___29721); + r0 = pxsim_numops_toBoolDecr(s.current___31336); if (!r0) { step = 8; continue; } - r0 = s.current___29721.fields["lifespan"]; + r0 = s.current___31336.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__P1732_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P4627_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___29721; - s.tmp_2.arg2 = s.left___29724; - s.tmp_2.arg3 = s.top___29734; - s.callLocIdx = 1074; s.pc = 9; return s.tmp_2; + s.tmp_2.arg1 = s.current___31336; + s.tmp_2.arg2 = s.left___31339; + s.tmp_2.arg3 = s.top___31349; + s.callLocIdx = 1076; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___29721.fields["next"]; - s.current___29721 = (r0); + r0 = s.current___31336.fields["next"]; + s.current___31336 = (r0); { step = 5; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource___draw__P1717.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__P2676.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__P1717_mk(s) { +function particles_ParticleSource___draw__P2676_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource___draw__P1717, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P2676, depth: s.depth + 1, pc: 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___29721: undefined, - left___29724: undefined, - top___29734: undefined, + current___31336: undefined, + left___31339: undefined, + top___31349: undefined, arg0: undefined, arg1: undefined, } } @@ -79826,7 +79880,7 @@ function particles_ParticleSource___draw__P1717_mk(s) { -function particles_ParticleSource_drawParticle__P1732(s) { +function particles_ParticleSource_drawParticle__P4627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79844,8 +79898,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C1715_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C1775_v1_4_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C2670_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C2706_v1_4_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -79857,7 +79911,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__C1775_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C2706_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: @@ -79866,12 +79920,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P1732.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__P4627.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__P1732_mk(s) { +function particles_ParticleSource_drawParticle__P4627_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P1732, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P4627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -79886,7 +79940,7 @@ function particles_ParticleSource_drawParticle__P1732_mk(s) { -function particles_ParticleFactory_drawParticle__P1777(s) { +function particles_ParticleFactory_drawParticle__P2709(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79904,8 +79958,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C1775_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___578; + if (!checkSubtype(r0, particles_ParticleFactory__C2706_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___1799; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -79919,12 +79973,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P1777.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__P2709.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__P1777_mk(s) { +function particles_ParticleFactory_drawParticle__P2709_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P1777, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P2709, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -79941,7 +79995,7 @@ function particles_ParticleFactory_drawParticle__P1777_mk(s) { -function particles_ShapeFactory_createParticle__P1800(s) { +function particles_ShapeFactory_createParticle__P2736(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -79951,47 +80005,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___29785 = undefined; + s.p___31400 = 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__C1796_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P1788_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C2732_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P2722_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1168; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1170; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___29785 = (r0); - s.tmp_0 = r0 = s.p___29785; - s.tmp_2 = Math_FastRandom_randomRange__P1567_mk(s); + s.p___31400 = (r0); + s.tmp_0 = r0 = s.p___31400; + s.tmp_2 = Math_FastRandom_randomRange__P2582_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = 14; - s.callLocIdx = 1169; s.pc = 2; return s.tmp_2; + s.callLocIdx = 1171; 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___29785; + r0 = s.p___31400; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_createParticle__P1800.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__P2736.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__P1800_mk(s) { +function particles_ShapeFactory_createParticle__P2736_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P1800, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P2736, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___29785: undefined, + p___31400: undefined, arg0: undefined, arg1: undefined, } } @@ -80000,7 +80054,7 @@ function particles_ShapeFactory_createParticle__P1800_mk(s) { -function particles_AreaFactory_createParticle__P1788(s) { +function particles_AreaFactory_createParticle__P2722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80010,42 +80064,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___29798 = undefined; + s.p___31412 = 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__C1786_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P1781_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C2716_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P2712_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1150; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1152; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.p___29798 = (r0); - s.tmp_0 = r0 = s.p___29798; - s.tmp_2 = Math_FastRandom_randomRange__P1567_mk(s); + s.p___31412 = (r0); + s.tmp_0 = r0 = s.p___31412; + s.tmp_2 = Math_FastRandom_randomRange__P2582_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 = 1151; s.pc = 4; return s.tmp_2; + s.callLocIdx = 1153; 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___29798; - s.tmp_4 = Math_FastRandom_randomRange__P1567_mk(s); + s.tmp_0 = r0 = s.p___31412; + s.tmp_4 = Math_FastRandom_randomRange__P2582_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 = 1152; s.pc = 5; return s.tmp_4; + s.callLocIdx = 1154; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; s.tmp_3 = r0; @@ -80055,7 +80109,7 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = s.p___29798.fields["_x"]; + r0 = s.p___31412.fields["_x"]; s.tmp_7 = r0; r0 = (s.tmp_2 << 8); s.tmp_8 = r0; @@ -80070,7 +80124,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 = 1155; s.pc = 6; return s.tmp_1; } + else { s.callLocIdx = 1157; s.pc = 6; return s.tmp_1; } } case 6: r0 = s.retval; @@ -80085,7 +80139,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 = 1156; s.pc = 7; return s.tmp_3; } + else { s.callLocIdx = 1158; s.pc = 7; return s.tmp_3; } } case 7: r0 = s.retval; @@ -80097,36 +80151,36 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___29798; - s.tmp_9 = Math_FastRandom_randomRange__P1567_mk(s); + s.tmp_5 = r0 = s.p___31412; + s.tmp_9 = Math_FastRandom_randomRange__P2582_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 = 1154; s.pc = 8; return s.tmp_9; + s.callLocIdx = 1156; 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___29798.fields["_y"]; + r0 = s.p___31412.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___29798; + r0 = s.p___31412; return leave(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P1788.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__P2722.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__P1788_mk(s) { +function particles_AreaFactory_createParticle__P2722_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P1788, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_createParticle__P2722, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -80140,7 +80194,7 @@ function particles_AreaFactory_createParticle__P1788_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - p___29798: undefined, + p___31412: undefined, arg0: undefined, arg1: undefined, } } @@ -80149,7 +80203,7 @@ function particles_AreaFactory_createParticle__P1788_mk(s) { -function particles_SprayFactory_createParticle__P1781(s) { +function particles_SprayFactory_createParticle__P2712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80159,39 +80213,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___29847 = undefined; - s.angle___29851 = undefined; + s.p___31460 = undefined; + s.angle___31464 = 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__C1779_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P1776_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P2708_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1139; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1141; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___29847 = (r0); + s.p___31460 = (r0); r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P1567_mk(s); - s.tmp_3.arg0 = globals.galois___1758; + s.tmp_3 = Math_FastRandom_randomRange__P2582_mk(s); + s.tmp_3.arg0 = globals.galois___4641; s.tmp_3.arg1 = 0; r0 = s.arg0.fields["spread"]; s.tmp_3.arg2 = r0; - s.callLocIdx = 1140; s.pc = 2; return s.tmp_3; + s.callLocIdx = 1142; 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___29851 = (r0); - s.tmp_0 = r0 = s.p___29847; - r0 = pxsim_Array__getAt(globals.cachedSin___1753, s.angle___29851); + s.angle___31464 = (r0); + s.tmp_0 = r0 = s.p___31460; + r0 = pxsim_Array__getAt(globals.cachedSin___4636, s.angle___31464); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -80200,8 +80254,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___29847; - r0 = pxsim_Array__getAt(globals.cachedCos___1754, s.angle___29851); + s.tmp_0 = r0 = s.p___31460; + r0 = pxsim_Array__getAt(globals.cachedCos___4637, s.angle___31464); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -80210,24 +80264,24 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___29847; + r0 = s.p___31460; return leave(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P1781.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__P2712.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__P1781_mk(s) { +function particles_SprayFactory_createParticle__P2712_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P1781, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P2712, depth: s.depth + 1, pc: 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___29847: undefined, - angle___29851: undefined, + p___31460: undefined, + angle___31464: undefined, arg0: undefined, arg1: undefined, } } @@ -80236,7 +80290,7 @@ function particles_SprayFactory_createParticle__P1781_mk(s) { -function scene_Scene_data__P1197(s) { +function scene_Scene_data__P2434(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80251,18 +80305,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C1195_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C2411_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_data__P1197.info = {"start":6405,"length":53,"line":176,"column":8,"endLine":178,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} -scene_Scene_data__P1197.isGetter = true; +scene_Scene_data__P2434.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__P2434.isGetter = true; -function scene_Scene_data__P1197_mk(s) { +function scene_Scene_data__P2434_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_data__P1197, depth: s.depth + 1, + parent: s, fn: scene_Scene_data__P2434, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -80271,7 +80325,7 @@ function scene_Scene_data__P1197_mk(s) { -function Sprite_toString__P824(s) { +function Sprite_toString__P2087(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80286,7 +80340,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -80304,7 +80358,7 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P770_mk(s); + s.tmp_14 = Sprite_x__P2022_mk(s); s.tmp_14.arg0 = s.arg0; s.callLocIdx = 450; s.pc = 2; return s.tmp_14; case 2: @@ -80323,7 +80377,7 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P772_mk(s); + s.tmp_17 = Sprite_y__P2024_mk(s); s.tmp_17.arg0 = s.arg0; s.callLocIdx = 451; s.pc = 4; return s.tmp_17; case 4: @@ -80342,7 +80396,7 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P774_mk(s); + s.tmp_20 = Sprite_vx__P2026_mk(s); s.tmp_20.arg0 = s.arg0; s.callLocIdx = 452; s.pc = 6; return s.tmp_20; case 6: @@ -80361,7 +80415,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P776_mk(s); + s.tmp_23 = Sprite_vy__P2028_mk(s); s.tmp_23.arg0 = s.arg0; s.callLocIdx = 453; s.pc = 8; return s.tmp_23; case 8: @@ -80382,12 +80436,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P824.info = {"start":33135,"length":93,"line":980,"column":4,"endLine":982,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} +Sprite_toString__P2087.info = {"start":33133,"length":93,"line":980,"column":4,"endLine":982,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} -function Sprite_toString__P824_mk(s) { +function Sprite_toString__P2087_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P824, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P2087, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -80420,7 +80474,7 @@ function Sprite_toString__P824_mk(s) { -function Sprite___update__P812(s) { +function Sprite___update__P2075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80430,8 +80484,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bounce___30108 = undefined; - s.tm___30113 = undefined; + s.bounce___31720 = undefined; + s.tm___31725 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -80439,7 +80493,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -80461,7 +80515,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__P822_mk(s); + s.tmp_0 = Sprite__destroyCore__P2085_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 388; s.pc = 33; return s.tmp_0; case 33: @@ -80479,10 +80533,10 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite__C768_v4_2_mk(s); + s.tmp_2 = Sprite__C2013_v4_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, Sprite__C768_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, Sprite__C2013_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isOutOfScreen; s.pc = 34; return s.tmp_2; case 34: @@ -80492,7 +80546,7 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P821_mk(s); + s.tmp_4 = Sprite_destroy__P2084_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; @@ -80504,13 +80558,13 @@ switch (step) { r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___30108 = (r0); - s.tmp_0 = game_currentScene__P961_mk(s); + s.bounce___31720 = (r0); + s.tmp_0 = game_currentScene__P2524_mk(s); s.callLocIdx = 390; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___30113 = (r0); + s.tm___31725 = (r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); @@ -80520,13 +80574,13 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 9: - s.tmp_2 = r0 = s.bounce___30108; + s.tmp_2 = r0 = s.bounce___31720; 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___30113); + r0 = pxsim_numops_toBoolDecr(s.tm___31725); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 11: @@ -80538,7 +80592,7 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 29; continue; } - s.tmp_8 = Sprite_left__P796_mk(s); + s.tmp_8 = Sprite_left__P2059_mk(s); s.tmp_8.arg0 = s.arg0; s.callLocIdx = 391; s.pc = 37; return s.tmp_8; case 37: @@ -80550,18 +80604,18 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 15; continue; } - s.tmp_10 = Sprite_left__P797_mk(s); + s.tmp_10 = Sprite_left__P2060_mk(s); s.tmp_10.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_10.arg1 = r0; s.callLocIdx = 394; s.pc = 38; return s.tmp_10; case 38: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___30108); + r0 = pxsim_numops_toBoolDecr(s.bounce___31720); if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_vx__P775_mk(s); + s.tmp_0 = Sprite_vx__P2027_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P774_mk(s); + s.tmp_2 = Sprite_vx__P2026_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 395; s.pc = 40; return s.tmp_2; case 40: @@ -80576,7 +80630,7 @@ switch (step) { case 14: { step = 20; continue; } case 15: - s.tmp_2 = Sprite_right__P798_mk(s); + s.tmp_2 = Sprite_right__P2061_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 397; s.pc = 41; return s.tmp_2; case 41: @@ -80584,7 +80638,7 @@ switch (step) { s.tmp_1 = r0; r0 = s.arg1.fields["_offsetX"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -80592,22 +80646,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.tmp_6 = Sprite_right__P799_mk(s); + s.tmp_6 = Sprite_right__P2062_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___578); + r0 = pxsim_ImageMethods.width(globals.screen___1799); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; s.callLocIdx = 400; s.pc = 42; return s.tmp_6; case 42: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___30108); + r0 = pxsim_numops_toBoolDecr(s.bounce___31720); if (!r0) { step = 16; continue; } - s.tmp_0 = Sprite_vx__P775_mk(s); + s.tmp_0 = Sprite_vx__P2027_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P774_mk(s); + s.tmp_2 = Sprite_vx__P2026_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 401; s.pc = 44; return s.tmp_2; case 44: @@ -80623,7 +80677,7 @@ switch (step) { case 18: case 19: case 20: - s.tmp_2 = Sprite_top__P800_mk(s); + s.tmp_2 = Sprite_top__P2063_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 403; s.pc = 45; return s.tmp_2; case 45: @@ -80635,18 +80689,18 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 23; continue; } - s.tmp_4 = Sprite_top__P801_mk(s); + s.tmp_4 = Sprite_top__P2064_mk(s); s.tmp_4.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4.arg1 = r0; s.callLocIdx = 406; s.pc = 46; return s.tmp_4; case 46: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___30108); + r0 = pxsim_numops_toBoolDecr(s.bounce___31720); if (!r0) { step = 21; continue; } - s.tmp_0 = Sprite_vy__P777_mk(s); + s.tmp_0 = Sprite_vy__P2029_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P776_mk(s); + s.tmp_2 = Sprite_vy__P2028_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 407; s.pc = 48; return s.tmp_2; case 48: @@ -80661,7 +80715,7 @@ switch (step) { case 22: { step = 28; continue; } case 23: - s.tmp_2 = Sprite_bottom__P802_mk(s); + s.tmp_2 = Sprite_bottom__P2065_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 409; s.pc = 49; return s.tmp_2; case 49: @@ -80669,7 +80723,7 @@ switch (step) { s.tmp_1 = r0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); + r0 = pxsim_ImageMethods.height(globals.screen___1799); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -80677,22 +80731,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_6 = Sprite_bottom__P803_mk(s); + s.tmp_6 = Sprite_bottom__P2066_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___578); + r0 = pxsim_ImageMethods.height(globals.screen___1799); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; s.callLocIdx = 412; s.pc = 50; return s.tmp_6; case 50: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___30108); + r0 = pxsim_numops_toBoolDecr(s.bounce___31720); if (!r0) { step = 24; continue; } - s.tmp_0 = Sprite_vy__P777_mk(s); + s.tmp_0 = Sprite_vy__P2029_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P776_mk(s); + s.tmp_2 = Sprite_vy__P2028_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 413; s.pc = 52; return s.tmp_2; case 52: @@ -80735,12 +80789,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P812.info = {"start":22193,"length":1390,"line":682,"column":4,"endLine":721,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +Sprite___update__P2075.info = {"start":22191,"length":1390,"line":682,"column":4,"endLine":721,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} -function Sprite___update__P812_mk(s) { +function Sprite___update__P2075_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P812, depth: s.depth + 1, + parent: s, fn: Sprite___update__P2075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -80753,8 +80807,8 @@ function Sprite___update__P812_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - bounce___30108: undefined, - tm___30113: undefined, + bounce___31720: undefined, + tm___31725: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -80764,7 +80818,7 @@ function Sprite___update__P812_mk(s) { -function Sprite_bottom__P803(s) { +function Sprite_bottom__P2066(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80780,8 +80834,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P801_mk(s); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P2064_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -80797,12 +80851,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_bottom__P803.info = {"start":10264,"length":73,"line":374,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +Sprite_bottom__P2066.info = {"start":10262,"length":73,"line":374,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} -function Sprite_bottom__P803_mk(s) { +function Sprite_bottom__P2066_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P803, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P2066, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -80816,7 +80870,7 @@ function Sprite_bottom__P803_mk(s) { -function Sprite_data__P787(s) { +function Sprite_data__P2039(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80832,18 +80886,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P787.info = {"start":4294,"length":56,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} +Sprite_data__P2039.info = {"start":4292,"length":56,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} -function Sprite_data__P787_mk(s) { +function Sprite_data__P2039_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P787, depth: s.depth + 1, + parent: s, fn: Sprite_data__P2039, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -80853,7 +80907,7 @@ function Sprite_data__P787_mk(s) { -function sprites_BaseSprite___update__P645(s) { +function sprites_BaseSprite___update__P1863(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80870,17 +80924,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C639_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P645.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__P1863.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__P645_mk(s) { +function sprites_BaseSprite___update__P1863_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P645, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P1863, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -80891,7 +80945,7 @@ function sprites_BaseSprite___update__P645_mk(s) { -function sprites_BaseSprite___draw__P643(s) { +function sprites_BaseSprite___draw__P1861(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80907,10 +80961,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C639_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C639_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C1855_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C639_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C1855_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: @@ -80918,10 +80972,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C639_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C1855_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C639_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C1855_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: @@ -80932,12 +80986,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P643.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__P1861.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__P643_mk(s) { +function sprites_BaseSprite___draw__P1861_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P643, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P1861, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -80950,7 +81004,7 @@ function sprites_BaseSprite___draw__P643_mk(s) { -function sprites_BaseSprite___drawCore__P644(s) { +function sprites_BaseSprite___drawCore__P1862(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -80966,17 +81020,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C639_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P644.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__P1862.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__P644_mk(s) { +function sprites_BaseSprite___drawCore__P1862_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P644, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P1862, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -80986,7 +81040,7 @@ function sprites_BaseSprite___drawCore__P644_mk(s) { -function sprites_BaseSprite___visible__P640(s) { +function sprites_BaseSprite___visible__P1858(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81001,17 +81055,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C639_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C1855_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P640.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__P1858.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__P640_mk(s) { +function sprites_BaseSprite___visible__P1858_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P640, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P1858, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -81020,7 +81074,7 @@ function sprites_BaseSprite___visible__P640_mk(s) { -function tileworld_GameHome_update__P15721(s) { +function tileworld_GameHome_update__P17526(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81035,7 +81089,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_GameHome__C15718_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_GameHome__C3829_VT)) failedCast(r0); r0 = s.arg0.fields["p"]; r0 = r0.fields["help"]; s.tmp_2 = r0; @@ -81045,7 +81099,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Sprite_say__P808_mk(s); + s.tmp_3 = Sprite_say__P2071_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = null; @@ -81057,29 +81111,29 @@ switch (step) { r0 = s.retval; case 1: case 2: - r0 = pxsim_ImageMethods.fill(globals.screen___578, 0); + r0 = pxsim_ImageMethods.fill(globals.screen___1799, 0); r0 = s.arg0.fields["dirMap"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.fill(s.tmp_0, 15); - r0 = pxsim_pxtcore_mkAction(1, inline__P15916); + r0 = pxsim_pxtcore_mkAction(1, inline__P17720); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); - s.tmp_1.arg0 = globals.commandImages___15713; + s.tmp_1 = helpers_arrayForEach__P104_mk(s); + s.tmp_1.arg0 = globals.commandImages___17519; s.tmp_1.arg1 = s.tmp_0; s.callLocIdx = 1409; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 9; s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = globals.settingsIcon___7238; + s.tmp_0.arg3 = globals.settingsIcon___3719; s.callLocIdx = 1410; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = "Backgrounds"; s.tmp_0.arg2 = 16; s.tmp_0.arg3 = 44; @@ -81089,10 +81143,10 @@ switch (step) { s.callLocIdx = 1411; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P15951); + r0 = pxsim_pxtcore_mkAction(1, inline__P17755); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["_backgroundsI"]; @@ -81101,8 +81155,8 @@ switch (step) { s.callLocIdx = 1414; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; s.tmp_0.arg1 = "Sprites"; s.tmp_0.arg2 = 16; s.tmp_0.arg3 = 76; @@ -81112,10 +81166,10 @@ switch (step) { s.callLocIdx = 1415; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P15985); + r0 = pxsim_pxtcore_mkAction(1, inline__P17789); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P60_mk(s); + s.tmp_1 = helpers_arrayForEach__P104_mk(s); r0 = s.arg0.fields["p"]; s.tmp_2 = r0; r0 = s.tmp_2.fields["_spritesI"]; @@ -81128,12 +81182,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_GameHome_update__P15721.info = {"start":3011,"length":917,"line":74,"column":8,"endLine":96,"endColumn":9,"fileName":"home.ts","functionName":"update","argumentNames":["this"]} +tileworld_GameHome_update__P17526.info = {"start":3011,"length":917,"line":74,"column":8,"endLine":96,"endColumn":9,"fileName":"home.ts","functionName":"update","argumentNames":["this"]} -function tileworld_GameHome_update__P15721_mk(s) { +function tileworld_GameHome_update__P17526_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_GameHome_update__P15721, depth: s.depth + 1, + parent: s, fn: tileworld_GameHome_update__P17526, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -81146,7 +81200,7 @@ function tileworld_GameHome_update__P15721_mk(s) { -function inline__P15916(s) { +function inline__P17720(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81156,13 +81210,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.img2___15919 = undefined; + s.img2___17723 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 == globals.play___7220); + r0 = (s.arg0 == globals.play___3713); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } @@ -81179,7 +81233,7 @@ switch (step) { r0 = s.arg0; { step = 2; continue; } case 1: - s.tmp_5 = tileworld_greyImage__P3924_mk(s); + s.tmp_5 = tileworld_greyImage__P3539_mk(s); s.tmp_5.arg0 = s.arg0; s.callLocIdx = 1407; s.pc = 5; return s.tmp_5; case 5: @@ -81194,12 +81248,12 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_7 = r0; - s.img2___15919 = (s.tmp_7); - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.img2___17723 = (s.tmp_7); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = s.img2___15919; + s.tmp_0.arg3 = s.img2___17723; s.callLocIdx = 1408; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; @@ -81207,12 +81261,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P15916.info = {"start":3218,"length":172,"line":80,"column":34,"endLine":83,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]} +inline__P17720.info = {"start":3218,"length":172,"line":80,"column":34,"endLine":83,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]} -function inline__P15916_mk(s) { +function inline__P17720_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15916, depth: s.depth + 1, + parent: s, fn: inline__P17720, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -81222,7 +81276,7 @@ function inline__P15916_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - img2___15919: undefined, + img2___17723: undefined, arg0: undefined, arg1: undefined, } } @@ -81231,7 +81285,7 @@ function inline__P15916_mk(s) { -function inline__P15951(s) { +function inline__P17755(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81246,7 +81300,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.caps[0]; r0 = (s.arg1 << 1); s.tmp_1 = r0; @@ -81268,12 +81322,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P15951.info = {"start":3548,"length":129,"line":87,"column":46,"endLine":90,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]} +inline__P17755.info = {"start":3548,"length":129,"line":87,"column":46,"endLine":90,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]} -function inline__P15951_mk(s) { +function inline__P17755_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15951, depth: s.depth + 1, + parent: s, fn: inline__P17755, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -81286,7 +81340,7 @@ function inline__P15951_mk(s) { -function inline__P15985(s) { +function inline__P17789(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81301,7 +81355,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P10850_mk(s); + s.tmp_0 = tileworld_RuleVisualsBase_drawImage__P12696_mk(s); s.tmp_0.arg0 = s.caps[0]; r0 = (s.arg1 << 1); s.tmp_1 = r0; @@ -81323,12 +81377,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P15985.info = {"start":3778,"length":138,"line":92,"column":42,"endLine":95,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]} +inline__P17789.info = {"start":3778,"length":138,"line":92,"column":42,"endLine":95,"endColumn":13,"fileName":"home.ts","functionName":"inline","argumentNames":["img","i"]} -function inline__P15985_mk(s) { +function inline__P17789_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P15985, depth: s.depth + 1, + parent: s, fn: inline__P17789, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -81341,7 +81395,7 @@ function inline__P15985_mk(s) { -function tileworld_GameHome_cursorMove__P15720(s) { +function tileworld_GameHome_cursorMove__P17525(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81351,8 +81405,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___15866 = undefined; - s.message___15876 = undefined; + s.index___17670 = undefined; + s.message___17680 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -81360,13 +81414,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_GameHome__C15718_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_GameHome__C3829_VT)) failedCast(r0); r0 = s.arg0.fields["p"]; r0 = r0.fields["help"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_3 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_3 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_3.arg0 = s.arg0; s.tmp_3.arg1 = true; s.callLocIdx = 1390; s.pc = 9; return s.tmp_3; @@ -81377,7 +81431,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 1; continue; } - s.tmp_5 = Sprite_x__P770_mk(s); + s.tmp_5 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_5.arg0 = r0; s.callLocIdx = 1391; s.pc = 10; return s.tmp_5; @@ -81387,7 +81441,7 @@ switch (step) { r0 = (s.tmp_4 + 8); { step = 2; continue; } case 1: - s.tmp_7 = Sprite_x__P770_mk(s); + s.tmp_7 = Sprite_x__P2022_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_7.arg0 = r0; s.callLocIdx = 1392; s.pc = 11; return s.tmp_7; @@ -81398,17 +81452,17 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_8 = r0; - s.tmp_9 = Sprite_x__P771_mk(s); + s.tmp_9 = Sprite_x__P2023_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = s.tmp_8; s.callLocIdx = 1393; s.pc = 12; return s.tmp_9; case 12: r0 = s.retval; - s.tmp_0 = Sprite_y__P773_mk(s); + s.tmp_0 = Sprite_y__P2025_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_0.arg0 = r0; - s.tmp_2 = Sprite_y__P772_mk(s); + s.tmp_2 = Sprite_y__P2024_mk(s); r0 = s.arg0.fields["cursor"]; s.tmp_2.arg0 = r0; s.callLocIdx = 1394; s.pc = 14; return s.tmp_2; @@ -81422,14 +81476,14 @@ switch (step) { r0 = s.retval; r0 = s.arg0.fields["dirMap"]; s.tmp_0 = r0; - s.tmp_2 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_2 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1396; s.pc = 15; return s.tmp_2; case 15: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_4 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1397; s.pc = 16; return s.tmp_4; @@ -81437,8 +81491,8 @@ switch (step) { r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_0, s.tmp_1, s.tmp_3); - s.index___15866 = (r0); - s.tmp_2 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.index___17670 = (r0); + s.tmp_2 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = true; s.callLocIdx = 1398; s.pc = 17; return s.tmp_2; @@ -81449,16 +81503,16 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = tileworld_getHelp__P3837_mk(s); - s.tmp_3.arg0 = globals.helpString___15710; - s.tmp_4 = tileworld_RuleVisualsBase_col__P10848_mk(s); + s.tmp_3 = tileworld_getHelp__P3537_mk(s); + s.tmp_3.arg0 = globals.helpString___17516; + s.tmp_4 = tileworld_RuleVisualsBase_col__P12694_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = true; s.callLocIdx = 1399; s.pc = 19; return s.tmp_4; case 19: r0 = s.retval; s.tmp_3.arg1 = r0; - s.tmp_5 = tileworld_RuleVisualsBase_row__P10849_mk(s); + s.tmp_5 = tileworld_RuleVisualsBase_row__P12695_mk(s); s.tmp_5.arg0 = s.arg0; s.tmp_5.arg1 = true; s.callLocIdx = 1400; s.pc = 20; return s.tmp_5; @@ -81468,11 +81522,11 @@ switch (step) { s.callLocIdx = 1401; s.pc = 18; return s.tmp_3; case 18: r0 = s.retval; - s.message___15876 = (r0); - s.tmp_0 = Sprite_say__P808_mk(s); + s.message___17680 = (r0); + s.tmp_0 = Sprite_say__P2071_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.message___15876; + s.tmp_0.arg1 = s.message___17680; s.tmp_0.arg2 = undefined; s.tmp_0.arg3 = 15; s.tmp_0.arg4 = 1; @@ -81481,11 +81535,11 @@ switch (step) { r0 = s.retval; { step = 6; continue; } case 3: - r0 = (s.index___15866 != 15); + r0 = (s.index___17670 != 15); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = Sprite_say__P808_mk(s); + s.tmp_1 = Sprite_say__P2071_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = "A: gallery"; @@ -81497,7 +81551,7 @@ switch (step) { r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = Sprite_say__P808_mk(s); + s.tmp_0 = Sprite_say__P2071_mk(s); r0 = s.arg0.fields["helpCursor"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = null; @@ -81515,12 +81569,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_GameHome_cursorMove__P15720.info = {"start":2295,"length":698,"line":58,"column":8,"endLine":72,"endColumn":9,"fileName":"home.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} +tileworld_GameHome_cursorMove__P17525.info = {"start":2295,"length":698,"line":58,"column":8,"endLine":72,"endColumn":9,"fileName":"home.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} -function tileworld_GameHome_cursorMove__P15720_mk(s) { +function tileworld_GameHome_cursorMove__P17525_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_GameHome_cursorMove__P15720, depth: s.depth + 1, + parent: s, fn: tileworld_GameHome_cursorMove__P17525, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -81532,8 +81586,8 @@ function tileworld_GameHome_cursorMove__P15720_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - index___15866: undefined, - message___15876: undefined, + index___17670: undefined, + message___17680: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -81543,7 +81597,7 @@ function tileworld_GameHome_cursorMove__P15720_mk(s) { -function tileworld_LoadScreen_cursorMove__P16013(s) { +function tileworld_LoadScreen_cursorMove__P17816(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81560,7 +81614,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_LoadScreen__C16011_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_LoadScreen__C3832_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } r0 = s.arg1; @@ -81575,12 +81629,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tileworld_LoadScreen_cursorMove__P16013.info = {"start":1440,"length":119,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"loadScreen.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} +tileworld_LoadScreen_cursorMove__P17816.info = {"start":1440,"length":119,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"loadScreen.ts","functionName":"cursorMove","argumentNames":["this","dir","pressed"]} -function tileworld_LoadScreen_cursorMove__P16013_mk(s) { +function tileworld_LoadScreen_cursorMove__P17816_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_LoadScreen_cursorMove__P16013, depth: s.depth + 1, + parent: s, fn: tileworld_LoadScreen_cursorMove__P17816, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -81592,7 +81646,7 @@ function tileworld_LoadScreen_cursorMove__P16013_mk(s) { -function tileworld_BackgroundBase_update__P9494(s) { +function tileworld_BackgroundBase_update__P11383(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81607,17 +81661,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_BackgroundBase__C9493_VT)) failedCast(r0); + if (!checkSubtype(r0, tileworld_BackgroundBase__C3782_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_BackgroundBase_update__P9494.info = {"start":212,"length":31,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"rulesBase.ts","functionName":"update","argumentNames":["this"]} +tileworld_BackgroundBase_update__P11383.info = {"start":212,"length":31,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"rulesBase.ts","functionName":"update","argumentNames":["this"]} -function tileworld_BackgroundBase_update__P9494_mk(s) { +function tileworld_BackgroundBase_update__P11383_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_BackgroundBase_update__P9494, depth: s.depth + 1, + parent: s, fn: tileworld_BackgroundBase_update__P11383, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -81626,7 +81680,7 @@ function tileworld_BackgroundBase_update__P9494_mk(s) { -function controller_AnyButton_isPressed__P708(s) { +function controller_AnyButton_isPressed__P4118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81636,8 +81690,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___30211 = undefined; - s.b___30215 = undefined; + s.ctrl___31822 = undefined; + s.b___31826 = undefined; s.unnamed56___U2 = undefined; s.unnamed57___U3 = undefined; if (s.lambdaArgs) { @@ -81645,14 +81699,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C706_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P712_mk(s); + if (!checkSubtype(r0, controller_AnyButton__C4116_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P1914_mk(s); s.callLocIdx = 158; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___30211 = (r0); - s.b___30215 = (undefined); - r0 = s.ctrl___30211.fields["buttons"]; + s.ctrl___31822 = (r0); + s.b___31826 = (undefined); + r0 = s.ctrl___31822.fields["buttons"]; s.unnamed56___U2 = (r0); s.unnamed57___U3 = (0); case 1: @@ -81662,10 +81716,10 @@ switch (step) { r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } r0 = pxsim_Array__getAt(s.unnamed56___U2, s.unnamed57___U3); - s.b___30215 = (r0); - s.tmp_3 = controller_Button__C694_v0_1_mk(s); - s.tmp_3.arg0 = s.b___30215; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C694_VT)) failedCast(s.tmp_3.arg0); + s.b___31826 = (r0); + s.tmp_3 = controller_Button__C1900_v0_1_mk(s); + s.tmp_3.arg0 = s.b___31826; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C1900_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: @@ -81687,19 +81741,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P708.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__P4118.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__P708_mk(s) { +function controller_AnyButton_isPressed__P4118_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P708, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P4118, depth: s.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___30211: undefined, - b___30215: undefined, + ctrl___31822: undefined, + b___31826: undefined, unnamed56___U2: undefined, unnamed57___U3: undefined, arg0: undefined, @@ -81709,7 +81763,7 @@ function controller_AnyButton_isPressed__P708_mk(s) { -function controller_Button_toString__P695(s) { +function controller_Button_toString__P1905(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81724,7 +81778,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C694_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C1900_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -81764,12 +81818,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P695.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__P1905.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__P695_mk(s) { +function controller_Button_toString__P1905_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P695, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P1905, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -81785,113 +81839,7 @@ function controller_Button_toString__P695_mk(s) { -function tiles_Location_y__P1058(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.scale___29952 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C1054_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___29952 = (r0); - r0 = s.arg0.fields["_row"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___29952); - s.tmp_0 = r0; - r0 = (s.scale___29952 - 1); - s.tmp_3 = r0; - r0 = (1 << s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_Location_y__P1058.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__P1058.isGetter = true; - -function tiles_Location_y__P1058_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_Location_y__P1058, depth: s.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___29952: undefined, - arg0: undefined, -} } - - - - - -function tiles_Location_x__P1057(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.scale___29969 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C1054_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___29969 = (r0); - r0 = s.arg0.fields["_col"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___29969); - s.tmp_0 = r0; - r0 = (s.scale___29969 - 1); - s.tmp_3 = r0; - r0 = (1 << s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_Location_x__P1057.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__P1057.isGetter = true; - -function tiles_Location_x__P1057_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_Location_x__P1057, depth: s.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___29969: undefined, - arg0: undefined, -} } - - - - - -function sprites_StaticObstacle_width__P876(s) { +function sprites_StaticObstacle_width__P2153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81906,20 +81854,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C872_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C2143_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__P876.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__P876.isGetter = true; +sprites_StaticObstacle_width__P2153.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__P2153.isGetter = true; -function sprites_StaticObstacle_width__P876_mk(s) { +function sprites_StaticObstacle_width__P2153_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_width__P876, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_width__P2153, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -81929,7 +81877,7 @@ function sprites_StaticObstacle_width__P876_mk(s) { -function sprites_StaticObstacle_height__P875(s) { +function sprites_StaticObstacle_height__P2152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81944,20 +81892,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C872_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C2143_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__P875.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__P875.isGetter = true; +sprites_StaticObstacle_height__P2152.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__P2152.isGetter = true; -function sprites_StaticObstacle_height__P875_mk(s) { +function sprites_StaticObstacle_height__P2152_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_height__P875, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_height__P2152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -81967,7 +81915,7 @@ function sprites_StaticObstacle_height__P875_mk(s) { -function sprites_StaticObstacle_y__P874(s) { +function sprites_StaticObstacle_y__P2151(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -81982,7 +81930,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C872_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C2143_VT)) failedCast(r0); r0 = s.arg0.fields["top"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -81995,13 +81943,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_y__P874.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__P874.isGetter = true; +sprites_StaticObstacle_y__P2151.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__P2151.isGetter = true; -function sprites_StaticObstacle_y__P874_mk(s) { +function sprites_StaticObstacle_y__P2151_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_y__P874, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_y__P2151, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -82014,7 +81962,7 @@ function sprites_StaticObstacle_y__P874_mk(s) { -function sprites_StaticObstacle_x__P873(s) { +function sprites_StaticObstacle_x__P2150(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82029,7 +81977,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C872_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C2143_VT)) failedCast(r0); r0 = s.arg0.fields["left"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -82042,13 +81990,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_x__P873.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__P873.isGetter = true; +sprites_StaticObstacle_x__P2150.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__P2150.isGetter = true; -function sprites_StaticObstacle_x__P873_mk(s) { +function sprites_StaticObstacle_x__P2150_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_x__P873, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_x__P2150, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -82061,7 +82009,113 @@ function sprites_StaticObstacle_x__P873_mk(s) { -function tiles_legacy_LegacyTilemap_getTileImage__P9580(s) { +function tiles_Location_y__P2291(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.scale___31565 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0); + r0 = s.arg0.fields["tileMap"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_scale"]; + s.scale___31565 = (r0); + r0 = s.arg0.fields["_row"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 << s.scale___31565); + s.tmp_0 = r0; + r0 = (s.scale___31565 - 1); + s.tmp_3 = r0; + r0 = (1 << s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_Location_y__P2291.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__P2291.isGetter = true; + +function tiles_Location_y__P2291_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_y__P2291, depth: s.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___31565: undefined, + arg0: undefined, +} } + + + + + +function tiles_Location_x__P2290(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.scale___31582 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C2286_VT)) failedCast(r0); + r0 = s.arg0.fields["tileMap"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_scale"]; + s.scale___31582 = (r0); + r0 = s.arg0.fields["_col"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 << s.scale___31582); + s.tmp_0 = r0; + r0 = (s.scale___31582 - 1); + s.tmp_3 = r0; + r0 = (1 << s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_Location_x__P2290.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__P2290.isGetter = true; + +function tiles_Location_x__P2290_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_x__P2290, depth: s.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___31582: undefined, + arg0: undefined, +} } + + + + + +function tiles_legacy_LegacyTilemap_getTileImage__P3875(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82077,7 +82131,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); r0 = s.arg0.fields["_tileSets"]; s.tmp_3 = r0; r0 = pxsim_Array__getAt(s.tmp_3, s.arg1); @@ -82088,31 +82142,31 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = tiles_legacy_LegacyTilemap_generateTile__P9572_mk(s); + s.tmp_4 = tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.callLocIdx = 1754; s.pc = 3; return s.tmp_4; + s.callLocIdx = 1755; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; case 1: case 2: - s.tmp_0 = tiles_legacy_TileSet_image__P18347_mk(s); + s.tmp_0 = tiles_legacy_TileSet_image__P20141_mk(s); r0 = s.arg0.fields["_tileSets"]; s.tmp_1 = r0; r0 = pxsim_Array__getAt(s.tmp_1, s.arg1); s.tmp_0.arg0 = r0; - s.callLocIdx = 1755; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1756; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_getTileImage__P9580.info = {"start":9286,"length":160,"line":273,"column":8,"endLine":276,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_legacy_LegacyTilemap_getTileImage__P3875.info = {"start":9286,"length":160,"line":273,"column":8,"endLine":276,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function tiles_legacy_LegacyTilemap_getTileImage__P9580_mk(s) { +function tiles_legacy_LegacyTilemap_getTileImage__P3875_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_getTileImage__P9580, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_getTileImage__P3875, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -82127,7 +82181,7 @@ function tiles_legacy_LegacyTilemap_getTileImage__P9580_mk(s) { -function tiles_legacy_LegacyTilemap_isOnWall__P9578(s) { +function tiles_legacy_LegacyTilemap_isOnWall__P3873(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82137,25 +82191,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___18957 = undefined; - s.left___18961 = undefined; - s.right___18967 = undefined; - s.top___18973 = undefined; - s.bottom___18979 = undefined; - s.col___18985 = undefined; - s.row___18991 = undefined; + s.hbox___20750 = undefined; + s.left___20753 = undefined; + s.right___20759 = undefined; + s.top___20765 = undefined; + s.bottom___20771 = undefined; + s.col___20777 = undefined; + s.row___20783 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); r0 = s.arg1.fields["_hitbox"]; - s.hbox___18957 = (r0); - s.tmp_1 = game_Hitbox_left__P755_mk(s); - s.tmp_1.arg0 = s.hbox___18957; - s.callLocIdx = 1742; s.pc = 8; return s.tmp_1; + s.hbox___20750 = (r0); + s.tmp_1 = game_Hitbox_left__P1963_mk(s); + s.tmp_1.arg0 = s.hbox___20750; + s.callLocIdx = 1743; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0 = r0; @@ -82164,10 +82218,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.left___18961 = (r0); - s.tmp_1 = game_Hitbox_right__P757_mk(s); - s.tmp_1.arg0 = s.hbox___18957; - s.callLocIdx = 1745; s.pc = 9; return s.tmp_1; + s.left___20753 = (r0); + s.tmp_1 = game_Hitbox_right__P1965_mk(s); + s.tmp_1.arg0 = s.hbox___20750; + s.callLocIdx = 1746; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; @@ -82176,10 +82230,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.right___18967 = (r0); - s.tmp_1 = game_Hitbox_top__P756_mk(s); - s.tmp_1.arg0 = s.hbox___18957; - s.callLocIdx = 1748; s.pc = 10; return s.tmp_1; + s.right___20759 = (r0); + s.tmp_1 = game_Hitbox_top__P1964_mk(s); + s.tmp_1.arg0 = s.hbox___20750; + s.callLocIdx = 1749; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; s.tmp_0 = r0; @@ -82188,10 +82242,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.top___18973 = (r0); - s.tmp_1 = game_Hitbox_bottom__P758_mk(s); - s.tmp_1.arg0 = s.hbox___18957; - s.callLocIdx = 1751; s.pc = 11; return s.tmp_1; + s.top___20765 = (r0); + s.tmp_1 = game_Hitbox_bottom__P1966_mk(s); + s.tmp_1.arg0 = s.hbox___20750; + s.callLocIdx = 1752; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0 = r0; @@ -82200,24 +82254,24 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___18979 = (r0); - s.col___18985 = (s.left___18961); + s.bottom___20771 = (r0); + s.col___20777 = (s.left___20753); case 1: - r0 = (s.col___18985 <= s.right___18967); + r0 = (s.col___20777 <= s.right___20759); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.row___18991 = (s.top___18973); + s.row___20783 = (s.top___20765); case 2: - r0 = (s.row___18991 <= s.bottom___18979); + r0 = (s.row___20783 <= s.bottom___20771); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_legacy_LegacyTilemap__C9551_v12_3_mk(s); + s.tmp_2 = tiles_legacy_LegacyTilemap__C3850_v12_3_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___18985; - s.tmp_2.arg2 = s.row___18991; - if (!checkSubtype(s.tmp_2.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_2.arg0); + s.tmp_2.arg1 = s.col___20777; + s.tmp_2.arg2 = s.row___20783; + if (!checkSubtype(s.tmp_2.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_2.arg0); s.tmp_2.fn = s.tmp_2.arg0.vtable.methods.isObstacle; s.pc = 12; return s.tmp_2; case 12: @@ -82229,12 +82283,12 @@ switch (step) { { step = 7; continue; } case 3: case 4: - r0 = (s.row___18991 + 1); - s.row___18991 = (r0); + r0 = (s.row___20783 + 1); + s.row___20783 = (r0); { step = 2; continue; } case 5: - r0 = (s.col___18985 + 1); - s.col___18985 = (r0); + r0 = (s.col___20777 + 1); + s.col___20777 = (r0); { step = 1; continue; } case 6: r0 = false; @@ -82242,24 +82296,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_isOnWall__P9578.info = {"start":8529,"length":626,"line":250,"column":8,"endLine":267,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +tiles_legacy_LegacyTilemap_isOnWall__P3873.info = {"start":8529,"length":626,"line":250,"column":8,"endLine":267,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} -function tiles_legacy_LegacyTilemap_isOnWall__P9578_mk(s) { +function tiles_legacy_LegacyTilemap_isOnWall__P3873_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_isOnWall__P9578, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_isOnWall__P3873, depth: s.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___18957: undefined, - left___18961: undefined, - right___18967: undefined, - top___18973: undefined, - bottom___18979: undefined, - col___18985: undefined, - row___18991: undefined, + hbox___20750: undefined, + left___20753: undefined, + right___20759: undefined, + top___20765: undefined, + bottom___20771: undefined, + col___20777: undefined, + row___20783: undefined, arg0: undefined, arg1: undefined, } } @@ -82268,7 +82322,7 @@ function tiles_legacy_LegacyTilemap_isOnWall__P9578_mk(s) { -function tiles_legacy_LegacyTilemap_getObstacle__P9577(s) { +function tiles_legacy_LegacyTilemap_getObstacle__P3872(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82278,8 +82332,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___18924 = undefined; - s.tile___18935 = undefined; + s.index___20717 = undefined; + s.tile___20728 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -82287,12 +82341,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_1 = tiles_legacy_LegacyTilemap_isOutsideMap__P9573_mk(s); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_1 = tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 1736; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1737; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; @@ -82307,33 +82361,33 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_3 = r0; - s.index___18924 = (s.tmp_3); + s.index___20717 = (s.tmp_3); r0 = s.arg0.fields["_tileSets"]; s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.index___18924); + r0 = pxsim_Array__getAt(s.tmp_1, s.index___20717); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_2 = tiles_legacy_LegacyTilemap_generateTile__P9572_mk(s); + s.tmp_2 = tiles_legacy_LegacyTilemap_generateTile__P11438_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.index___18924; - s.callLocIdx = 1737; s.pc = 6; return s.tmp_2; + s.tmp_2.arg1 = s.index___20717; + s.callLocIdx = 1738; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; case 4: // jmp value (already in r0) s.tmp_3 = r0; - s.tile___18935 = (s.tmp_3); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C872_VT); + s.tile___20728 = (s.tmp_3); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C2143_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P879_mk(s); + s.tmp_1 = sprites_StaticObstacle_constructor__P2149_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_2 = tiles_legacy_TileSet_image__P18347_mk(s); - s.tmp_2.arg0 = s.tile___18935; - s.callLocIdx = 1738; s.pc = 8; return s.tmp_2; + s.tmp_2 = tiles_legacy_TileSet_image__P20141_mk(s); + s.tmp_2.arg0 = s.tile___20728; + s.callLocIdx = 1739; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; s.tmp_1.arg1 = r0; @@ -82347,28 +82401,28 @@ switch (step) { s.tmp_6 = r0; r0 = (s.tmp_5 << s.tmp_6); s.tmp_1.arg3 = r0; - s.tmp_7 = tiles_legacy_LegacyTilemap__C9551_v5_1_mk(s); + s.tmp_7 = tiles_legacy_LegacyTilemap__C3850_v5_1_mk(s); s.tmp_7.arg0 = s.arg0; - if (!checkSubtype(s.tmp_7.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_7.arg0); + if (!checkSubtype(s.tmp_7.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_7.arg0); s.tmp_7.fn = s.tmp_7.arg0.vtable.methods.layer; s.pc = 9; return s.tmp_7; case 9: r0 = s.retval; s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___18924; - s.callLocIdx = 1741; s.pc = 7; return s.tmp_1; + s.tmp_1.arg5 = s.index___20717; + s.callLocIdx = 1742; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_getObstacle__P9577.info = {"start":8082,"length":437,"line":238,"column":8,"endLine":248,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} +tiles_legacy_LegacyTilemap_getObstacle__P3872.info = {"start":8082,"length":437,"line":238,"column":8,"endLine":248,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} -function tiles_legacy_LegacyTilemap_getObstacle__P9577_mk(s) { +function tiles_legacy_LegacyTilemap_getObstacle__P3872_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_getObstacle__P9577, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_getObstacle__P3872, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -82378,8 +82432,8 @@ function tiles_legacy_LegacyTilemap_getObstacle__P9577_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - index___18924: undefined, - tile___18935: undefined, + index___20717: undefined, + tile___20728: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -82389,7 +82443,7 @@ function tiles_legacy_LegacyTilemap_getObstacle__P9577_mk(s) { -function tiles_legacy_LegacyTilemap_isObstacle__P9576(s) { +function tiles_legacy_LegacyTilemap_isObstacle__P3871(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82399,7 +82453,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___18908 = undefined; + s.t___20701 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -82407,10 +82461,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - s.tmp_3 = tiles_legacy_LegacyTilemap__C9551_v6_1_mk(s); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + s.tmp_3 = tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s); s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(s.tmp_3.arg0); + if (!checkSubtype(s.tmp_3.arg0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(s.tmp_3.arg0); s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.enabled; s.pc = 8; return s.tmp_3; case 8: @@ -82426,11 +82480,11 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.tmp_5 = tiles_legacy_LegacyTilemap_isOutsideMap__P9573_mk(s); + s.tmp_5 = tiles_legacy_LegacyTilemap_isOutsideMap__P11439_mk(s); s.tmp_5.arg0 = s.arg0; s.tmp_5.arg1 = s.arg1; s.tmp_5.arg2 = s.arg2; - s.callLocIdx = 1735; s.pc = 9; return s.tmp_5; + s.callLocIdx = 1736; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; s.tmp_4 = r0; @@ -82447,14 +82501,14 @@ switch (step) { r0 = pxsim_ImageMethods.getPixel(s.tmp_8, s.arg1, s.arg2); s.tmp_7 = r0; r0 = pxsim_Array__getAt(s.tmp_6, s.tmp_7); - s.t___18908 = (r0); - s.tmp_0 = r0 = s.t___18908; + s.t___20701 = (r0); + s.tmp_0 = r0 = s.t___20701; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 5; continue; } r0 = s.tmp_0; { step = 6; continue; } case 5: - r0 = s.t___18908.fields["obstacle"]; + r0 = s.t___20701.fields["obstacle"]; case 6: // jmp value (already in r0) s.tmp_1 = r0; @@ -82463,12 +82517,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_isObstacle__P9576.info = {"start":7806,"length":266,"line":230,"column":8,"endLine":236,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} +tiles_legacy_LegacyTilemap_isObstacle__P3871.info = {"start":7806,"length":266,"line":230,"column":8,"endLine":236,"endColumn":9,"fileName":"mytilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} -function tiles_legacy_LegacyTilemap_isObstacle__P9576_mk(s) { +function tiles_legacy_LegacyTilemap_isObstacle__P3871_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_isObstacle__P9576, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_isObstacle__P3871, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -82479,7 +82533,7 @@ function tiles_legacy_LegacyTilemap_isObstacle__P9576_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - t___18908: undefined, + t___20701: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -82489,7 +82543,7 @@ function tiles_legacy_LegacyTilemap_isObstacle__P9576_mk(s) { -function tiles_legacy_LegacyTilemap_getTile__P9568(s) { +function tiles_legacy_LegacyTilemap_getTile__P3867(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82506,27 +82560,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C1054_VT); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C2286_VT); s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P1062_mk(s); + s.tmp_1 = tiles_Location_constructor__P2289_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.arg0; - s.callLocIdx = 1712; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1713; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_getTile__P9568.info = {"start":3371,"length":111,"line":116,"column":8,"endLine":118,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +tiles_legacy_LegacyTilemap_getTile__P3867.info = {"start":3371,"length":111,"line":116,"column":8,"endLine":118,"endColumn":9,"fileName":"mytilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function tiles_legacy_LegacyTilemap_getTile__P9568_mk(s) { +function tiles_legacy_LegacyTilemap_getTile__P3867_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_getTile__P9568, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_getTile__P3867, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -82539,7 +82593,7 @@ function tiles_legacy_LegacyTilemap_getTile__P9568_mk(s) { -function tiles_legacy_LegacyTilemap_layer__P9562(s) { +function tiles_legacy_LegacyTilemap_layer__P3861(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82554,18 +82608,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C9551_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_legacy_LegacyTilemap__C3850_VT)) failedCast(r0); r0 = s.arg0.fields["_layer"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_legacy_LegacyTilemap_layer__P9562.info = {"start":2685,"length":63,"line":89,"column":8,"endLine":91,"endColumn":9,"fileName":"mytilemap.ts","functionName":"layer","argumentNames":["this"]} -tiles_legacy_LegacyTilemap_layer__P9562.isGetter = true; +tiles_legacy_LegacyTilemap_layer__P3861.info = {"start":2685,"length":63,"line":89,"column":8,"endLine":91,"endColumn":9,"fileName":"mytilemap.ts","functionName":"layer","argumentNames":["this"]} +tiles_legacy_LegacyTilemap_layer__P3861.isGetter = true; -function tiles_legacy_LegacyTilemap_layer__P9562_mk(s) { +function tiles_legacy_LegacyTilemap_layer__P3861_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_legacy_LegacyTilemap_layer__P9562, depth: s.depth + 1, + parent: s, fn: tiles_legacy_LegacyTilemap_layer__P3861, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -82574,7 +82628,7 @@ function tiles_legacy_LegacyTilemap_layer__P9562_mk(s) { -function tileworld_TileSprite___drawCore__P7465(s) { +function tileworld_TileSprite___drawCore__P9374(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82584,21 +82638,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___7611 = undefined; - s.oy___7619 = undefined; - s.l___7627 = undefined; - s.t___7635 = undefined; + s.ox___9514 = undefined; + s.oy___9522 = undefined; + s.l___9530 = undefined; + s.t___9538 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tileworld_TileSprite__C7459_VT)) failedCast(r0); - s.tmp_1 = tileworld_TileSprite__C7459_v4_2_mk(s); + if (!checkSubtype(r0, tileworld_TileSprite__C9368_VT)) failedCast(r0); + s.tmp_1 = tileworld_TileSprite__C9368_v4_2_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - if (!checkSubtype(s.tmp_1.arg0, tileworld_TileSprite__C7459_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, tileworld_TileSprite__C9368_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOutOfScreen; s.pc = 10; return s.tmp_1; case 10: @@ -82622,7 +82676,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___7611 = (s.tmp_4); + s.ox___9514 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -82636,7 +82690,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___7619 = (s.tmp_2); + s.oy___9522 = (s.tmp_2); r0 = s.arg0.fields["debug"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -82648,49 +82702,49 @@ switch (step) { case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_4 = Sprite_left__P796_mk(s); + s.tmp_4 = Sprite_left__P2059_mk(s); s.tmp_4.arg0 = s.arg0; s.callLocIdx = 296; s.pc = 11; return s.tmp_4; case 11: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 - s.ox___7611); + r0 = (s.tmp_3 - s.ox___9514); s.tmp_2 = r0; r0 = (s.tmp_2 + s.tmp_1); - s.l___7627 = (r0); - s.tmp_1 = Sprite_top__P800_mk(s); + s.l___9530 = (r0); + s.tmp_1 = Sprite_top__P2063_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 297; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.oy___7619); - s.t___7635 = (r0); - s.tmp_0 = r0 = globals.screen___578; + r0 = (s.tmp_0 - s.oy___9522); + s.t___9538 = (r0); + s.tmp_0 = r0 = globals.screen___1799; r0 = s.arg0.fields["_image"]; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.l___7627, s.t___7635); + r0 = pxsim_ImageMethods.drawTransparentImage(s.tmp_0, s.tmp_1, s.l___9530, s.t___9538); case 9: r0 = undefined; return leave(s, r0) default: oops() } } } -tileworld_TileSprite___drawCore__P7465.info = {"start":2191,"length":627,"line":45,"column":8,"endLine":58,"endColumn":9,"fileName":"vm.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +tileworld_TileSprite___drawCore__P9374.info = {"start":2191,"length":627,"line":45,"column":8,"endLine":58,"endColumn":9,"fileName":"vm.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function tileworld_TileSprite___drawCore__P7465_mk(s) { +function tileworld_TileSprite___drawCore__P9374_mk(s) { checkStack(s.depth); return { - parent: s, fn: tileworld_TileSprite___drawCore__P7465, depth: s.depth + 1, + parent: s, fn: tileworld_TileSprite___drawCore__P9374, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - ox___7611: undefined, - oy___7619: undefined, - l___7627: undefined, - t___7635: undefined, + ox___9514: undefined, + oy___9522: undefined, + l___9530: undefined, + t___9538: undefined, arg0: undefined, arg1: undefined, } } @@ -82699,7 +82753,7 @@ function tileworld_TileSprite___drawCore__P7465_mk(s) { -function scene_Renderable___drawCore__P1144(s) { +function scene_Renderable___drawCore__P2373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82715,10 +82769,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C1141_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C2370_VT)) failedCast(r0); s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___578; + s.tmp_0.arg1 = globals.screen___1799; 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); @@ -82735,12 +82789,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___drawCore__P1144.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__P2373.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__P1144_mk(s) { +function scene_Renderable___drawCore__P2373_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___drawCore__P1144, depth: s.depth + 1, + parent: s, fn: scene_Renderable___drawCore__P2373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -82751,7 +82805,7 @@ function scene_Renderable___drawCore__P1144_mk(s) { -function scene_Renderable___visible__P1143(s) { +function scene_Renderable___visible__P2372(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82766,7 +82820,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C1141_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C2370_VT)) failedCast(r0); s.tmp_0 = if_shouldBeVisible_1_mk(s); s.tmp_0.arg0 = s.arg0; if (!s.tmp_0.arg0.vtable.iface) { @@ -82783,12 +82837,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___visible__P1143.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__P2372.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__P1143_mk(s) { +function scene_Renderable___visible__P2372_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P1143, depth: s.depth + 1, + parent: s, fn: scene_Renderable___visible__P2372, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -82798,7 +82852,7 @@ function scene_Renderable___visible__P1143_mk(s) { -function scene_Camera_top__P1136(s) { +function scene_Camera_top__P2365(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82813,18 +82867,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C1127_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_top__P1136.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__P1136.isGetter = true; +scene_Camera_top__P2365.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__P2365.isGetter = true; -function scene_Camera_top__P1136_mk(s) { +function scene_Camera_top__P2365_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_top__P1136, depth: s.depth + 1, + parent: s, fn: scene_Camera_top__P2365, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -82833,7 +82887,7 @@ function scene_Camera_top__P1136_mk(s) { -function scene_Camera_left__P1134(s) { +function scene_Camera_left__P2363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82848,18 +82902,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C1127_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C2352_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_left__P1134.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__P1134.isGetter = true; +scene_Camera_left__P2363.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__P2363.isGetter = true; -function scene_Camera_left__P1134_mk(s) { +function scene_Camera_left__P2363_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_left__P1134, depth: s.depth + 1, + parent: s, fn: scene_Camera_left__P2363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -82868,7 +82922,7 @@ function scene_Camera_left__P1134_mk(s) { -function particles_ShapeFactory_drawParticle__P1799(s) { +function particles_ShapeFactory_drawParticle__P2735(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82878,7 +82932,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___30236 = undefined; + s.pImage___31847 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -82887,23 +82941,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C1796_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P1568_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C2732_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P2583_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 1163; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1165; 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___30236 = (r0); + s.pImage___31847 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___30236, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___578; - s.tmp_1 = r0 = s.pImage___30236; + r0 = pxsim_ImageMethods.replace(s.pImage___31847, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___1799; + s.tmp_1 = r0 = s.pImage___31847; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -82925,12 +82979,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P1799.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__P2735.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__P1799_mk(s) { +function particles_ShapeFactory_drawParticle__P2735_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P1799, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P2735, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -82942,7 +82996,7 @@ function particles_ShapeFactory_drawParticle__P1799_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___30236: undefined, + pImage___31847: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -82953,7 +83007,7 @@ function particles_ShapeFactory_drawParticle__P1799_mk(s) { -function Math_FastRandom_pickRandom__P1568(s) { +function Math_FastRandom_pickRandom__P2583(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -82969,7 +83023,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C1565_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C2578_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -82992,14 +83046,14 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P1567_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P2582_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 = 899; s.pc = 6; return s.tmp_6; + s.callLocIdx = 901; s.pc = 6; return s.tmp_6; case 6: r0 = s.retval; s.tmp_5 = r0; @@ -83008,12 +83062,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P1568.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__P2583.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__P1568_mk(s) { +function Math_FastRandom_pickRandom__P2583_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P1568, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P2583, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -83031,7 +83085,7 @@ function Math_FastRandom_pickRandom__P1568_mk(s) { -function particles_AreaFactory_drawParticle__P1789(s) { +function particles_AreaFactory_drawParticle__P2723(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -83041,7 +83095,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___30283 = undefined; + s.col___31893 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -83050,7 +83104,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C1786_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AreaFactory__C2716_VT)) failedCast(r0); r0 = s.arg1.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 500); @@ -83077,8 +83131,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___30283 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___578; + s.col___31893 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___1799; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -83087,17 +83141,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___30283); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___31893); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_drawParticle__P1789.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__P2723.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__P1789_mk(s) { +function particles_AreaFactory_drawParticle__P2723_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_drawParticle__P1789, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P2723, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -83105,7 +83159,7 @@ function particles_AreaFactory_drawParticle__P1789_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___30283: undefined, + col___31893: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -83116,7 +83170,7 @@ function particles_AreaFactory_drawParticle__P1789_mk(s) { -function particles_SprayFactory_drawParticle__P1782(s) { +function particles_SprayFactory_drawParticle__P2713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -83134,8 +83188,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C1779_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___578; + if (!checkSubtype(r0, particles_SprayFactory__C2710_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___1799; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -83149,12 +83203,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P1782.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__P2713.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__P1782_mk(s) { +function particles_SprayFactory_drawParticle__P2713_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P1782, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P2713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -83171,7 +83225,7 @@ function particles_SprayFactory_drawParticle__P1782_mk(s) { -function Sprite___drawCore__P811(s) { +function Sprite___drawCore__P2074(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -83181,24 +83235,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___30327 = undefined; - s.oy___30335 = undefined; - s.l___30343 = undefined; - s.t___30347 = undefined; - s.font___30363 = undefined; - s.tx___30367 = undefined; - s.ty___30369 = undefined; + s.ox___31937 = undefined; + s.oy___31945 = undefined; + s.l___31953 = undefined; + s.t___31957 = undefined; + s.font___31972 = undefined; + s.tx___31976 = undefined; + s.ty___31978 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); - s.tmp_1 = Sprite__C768_v4_2_mk(s); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); + s.tmp_1 = Sprite__C2013_v4_2_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - if (!checkSubtype(s.tmp_1.arg0, Sprite__C768_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, Sprite__C2013_VT)) failedCast(s.tmp_1.arg0); s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isOutOfScreen; s.pc = 20; return s.tmp_1; case 20: @@ -83222,7 +83276,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___30327 = (s.tmp_4); + s.ox___31937 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -83236,35 +83290,35 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___30335 = (s.tmp_2); - s.tmp_1 = Sprite_left__P796_mk(s); + s.oy___31945 = (s.tmp_2); + s.tmp_1 = Sprite_left__P2059_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 362; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.ox___30327); - s.l___30343 = (r0); - s.tmp_1 = Sprite_top__P800_mk(s); + r0 = (s.tmp_0 - s.ox___31937); + s.l___31953 = (r0); + s.tmp_1 = Sprite_top__P2063_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 363; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.oy___30335); - s.t___30347 = (r0); + r0 = (s.tmp_0 - s.oy___31945); + s.t___31957 = (r0); r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___578, s.tmp_0, s.l___30343, s.t___30347); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___1799, s.tmp_0, s.l___31953, s.t___31957); 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___30363 = (globals.font5___537); - s.tx___30367 = (s.l___30343); - s.tmp_1 = r0 = s.t___30347; + s.font___31972 = (globals.font5___1747); + s.tx___31976 = (s.l___31953); + s.tmp_1 = r0 = s.t___31957; r0 = s.arg0.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -83272,12 +83326,12 @@ switch (step) { r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 + 2); - s.ty___30369 = (r0); - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; + s.ty___31978 = (r0); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P770_mk(s); + s.tmp_7 = Sprite_x__P2022_mk(s); s.tmp_7.arg0 = s.arg0; s.callLocIdx = 365; s.pc = 24; return s.tmp_7; case 24: @@ -83298,7 +83352,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_11 = Sprite_y__P772_mk(s); + s.tmp_11 = Sprite_y__P2024_mk(s); s.tmp_11.arg0 = s.arg0; s.callLocIdx = 366; s.pc = 26; return s.tmp_11; case 26: @@ -83317,17 +83371,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___30367; - s.tmp_0.arg3 = s.ty___30369; + s.tmp_0.arg2 = s.tx___31976; + s.tmp_0.arg3 = s.ty___31978; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___30363; + s.tmp_0.arg5 = s.font___31972; s.tmp_0.arg6 = undefined; s.callLocIdx = 367; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - s.tmp_0 = r0 = s.tx___30367; + s.tmp_0 = r0 = s.tx___31976; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___30363; + s.tmp_2.arg0 = s.font___31972; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); } else { @@ -83340,8 +83394,8 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.tx___30367 = (r0); - s.tmp_1 = Sprite_vx__P774_mk(s); + s.tx___31976 = (r0); + s.tmp_1 = Sprite_vx__P2026_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 369; s.pc = 29; return s.tmp_1; case 29: @@ -83352,7 +83406,7 @@ switch (step) { r0 = s.tmp_0; { step = 8; continue; } case 7: - s.tmp_2 = Sprite_vy__P776_mk(s); + s.tmp_2 = Sprite_vy__P2028_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 370; s.pc = 30; return s.tmp_2; case 30: @@ -83362,9 +83416,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___30369; + s.tmp_4 = r0 = s.ty___31978; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___30363; + s.tmp_7.arg0 = s.font___31972; if (!s.tmp_7.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); } else { @@ -83379,10 +83433,10 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___30369 = (r0); - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_6 = Sprite_vx__P774_mk(s); + s.ty___31978 = (r0); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_6 = Sprite_vx__P2026_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 372; s.pc = 33; return s.tmp_6; case 33: @@ -83403,7 +83457,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_vy__P776_mk(s); + s.tmp_10 = Sprite_vy__P2028_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 373; s.pc = 35; return s.tmp_10; case 35: @@ -83422,17 +83476,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___30367; - s.tmp_0.arg3 = s.ty___30369; + s.tmp_0.arg2 = s.tx___31976; + s.tmp_0.arg3 = s.ty___31978; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___30363; + s.tmp_0.arg5 = s.font___31972; s.tmp_0.arg6 = undefined; s.callLocIdx = 374; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; case 9: case 10: - s.tmp_1 = Sprite_ax__P778_mk(s); + s.tmp_1 = Sprite_ax__P2030_mk(s); s.tmp_1.arg0 = s.arg0; s.callLocIdx = 375; s.pc = 37; return s.tmp_1; case 37: @@ -83443,7 +83497,7 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 11: - s.tmp_2 = Sprite_ay__P780_mk(s); + s.tmp_2 = Sprite_ay__P2032_mk(s); s.tmp_2.arg0 = s.arg0; s.callLocIdx = 376; s.pc = 38; return s.tmp_2; case 38: @@ -83453,9 +83507,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___30369; + s.tmp_4 = r0 = s.ty___31978; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___30363; + s.tmp_7.arg0 = s.font___31972; if (!s.tmp_7.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "charHeight"); } else { @@ -83470,10 +83524,10 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___30369 = (r0); - s.tmp_0 = helpers_imagePrint__P541_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_6 = Sprite_ax__P778_mk(s); + s.ty___31978 = (r0); + s.tmp_0 = helpers_imagePrint__P1757_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_6 = Sprite_ax__P2030_mk(s); s.tmp_6.arg0 = s.arg0; s.callLocIdx = 378; s.pc = 41; return s.tmp_6; case 41: @@ -83494,7 +83548,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_ay__P780_mk(s); + s.tmp_10 = Sprite_ay__P2032_mk(s); s.tmp_10.arg0 = s.arg0; s.callLocIdx = 379; s.pc = 43; return s.tmp_10; case 43: @@ -83513,10 +83567,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___30367; - s.tmp_0.arg3 = s.ty___30369; + s.tmp_0.arg2 = s.tx___31976; + s.tmp_0.arg3 = s.ty___31978; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___30363; + s.tmp_0.arg5 = s.font___31972; s.tmp_0.arg6 = undefined; s.callLocIdx = 380; s.pc = 40; return s.tmp_0; case 40: @@ -83525,11 +83579,11 @@ switch (step) { case 14: case 15: case 16: - r0 = pxsim_numops_toBoolDecr(globals.debug___1269); + r0 = pxsim_numops_toBoolDecr(globals.debug___2520); if (!r0) { step = 17; continue; } - s.tmp_0 = helpers_imageDrawRect__P520_mk(s); - s.tmp_0.arg0 = globals.screen___578; - s.tmp_3 = game_Hitbox_left__P755_mk(s); + s.tmp_0 = helpers_imageDrawRect__P1728_mk(s); + s.tmp_0.arg0 = globals.screen___1799; + s.tmp_3 = game_Hitbox_left__P1963_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; s.callLocIdx = 381; s.pc = 46; return s.tmp_3; @@ -83540,9 +83594,9 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___30327); + r0 = (s.tmp_1 - s.ox___31937); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P756_mk(s); + s.tmp_7 = game_Hitbox_top__P1964_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; s.callLocIdx = 383; s.pc = 47; return s.tmp_7; @@ -83553,7 +83607,7 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___30335); + r0 = (s.tmp_5 - s.oy___31945); s.tmp_0.arg2 = r0; r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; @@ -83580,12 +83634,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___drawCore__P811.info = {"start":20804,"length":1383,"line":642,"column":4,"endLine":680,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +Sprite___drawCore__P2074.info = {"start":20802,"length":1383,"line":642,"column":4,"endLine":680,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function Sprite___drawCore__P811_mk(s) { +function Sprite___drawCore__P2074_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P811, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P2074, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -83600,13 +83654,13 @@ function Sprite___drawCore__P811_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - ox___30327: undefined, - oy___30335: undefined, - l___30343: undefined, - t___30347: undefined, - font___30363: undefined, - tx___30367: undefined, - ty___30369: undefined, + ox___31937: undefined, + oy___31945: undefined, + l___31953: undefined, + t___31957: undefined, + font___31972: undefined, + tx___31976: undefined, + ty___31978: undefined, arg0: undefined, arg1: undefined, } } @@ -83615,7 +83669,7 @@ function Sprite___drawCore__P811_mk(s) { -function Sprite___visible__P793(s) { +function Sprite___visible__P2056(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -83630,7 +83684,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C768_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C2013_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -83641,12 +83695,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P793.info = {"start":8358,"length":72,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} +Sprite___visible__P2056.info = {"start":8356,"length":72,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} -function Sprite___visible__P793_mk(s) { +function Sprite___visible__P2056_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P793, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P2056, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -83715,7 +83769,7 @@ function if_flags_1_mk(s) { } } -function particles_ParticleFactory__C1775_v0_2_mk(s) { +function particles_ParticleFactory__C2706_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -83730,7 +83784,7 @@ function particles_ParticleFactory__C1775_v0_2_mk(s) { } } -function particles_ParticleSource__C1715_v4_3_mk(s) { +function particles_ParticleSource__C2670_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -83831,7 +83885,7 @@ function if_id_2_mk(s) { } } -function PhysicsEngine__C880_v4_2_mk(s) { +function PhysicsEngine__C2156_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -83877,7 +83931,7 @@ function lambda_2_mk(s) { } } -function PhysicsEngine__C880_v3_1_mk(s) { +function PhysicsEngine__C2156_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -83934,7 +83988,7 @@ function if_id_1_mk(s) { } } -function tiles_TileMap__C1086_v6_1_mk(s) { +function tiles_TileMap__C2314_v6_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -83948,7 +84002,7 @@ function tiles_TileMap__C1086_v6_1_mk(s) { } } -function tiles_TileMap__C1086_v2_2_mk(s) { +function tiles_TileMap__C2314_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -83963,7 +84017,7 @@ function tiles_TileMap__C1086_v2_2_mk(s) { } } -function tiles_TileMap__C1086_v4_1_mk(s) { +function tiles_TileMap__C2314_v4_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -83977,7 +84031,7 @@ function tiles_TileMap__C1086_v4_1_mk(s) { } } -function tiles_TileMap__C1086_v1_2_mk(s) { +function tiles_TileMap__C2314_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -83992,7 +84046,7 @@ function tiles_TileMap__C1086_v1_2_mk(s) { } } -function tiles_TileMap__C1086_v3_1_mk(s) { +function tiles_TileMap__C2314_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84006,7 +84060,7 @@ function tiles_TileMap__C1086_v3_1_mk(s) { } } -function controller_Button__C694_v0_1_mk(s) { +function controller_Button__C1900_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84118,7 +84172,7 @@ function if_yOffset_1_mk(s) { } } -function PhysicsEngine__C880_v2_4_mk(s) { +function PhysicsEngine__C2156_v2_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84183,7 +84237,7 @@ function if_z_2_mk(s) { } } -function Sprite__C768_v4_2_mk(s) { +function Sprite__C2013_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84230,7 +84284,7 @@ function if_sourceFactory_3_mk(s) { } } -function PhysicsEngine__C880_v1_2_mk(s) { +function PhysicsEngine__C2156_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84274,7 +84328,7 @@ function if_handler_2_mk(s) { } } -function PhysicsEngine__C880_v0_2_mk(s) { +function PhysicsEngine__C2156_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84289,7 +84343,7 @@ function PhysicsEngine__C880_v0_2_mk(s) { } } -function tiles_TileMap__C1086_v0_1_mk(s) { +function tiles_TileMap__C2314_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84303,7 +84357,7 @@ function tiles_TileMap__C1086_v0_1_mk(s) { } } -function tiles_TileMap__C1086_v10_2_mk(s) { +function tiles_TileMap__C2314_v10_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84318,7 +84372,7 @@ function tiles_TileMap__C1086_v10_2_mk(s) { } } -function tiles_TileMap__C1086_v11_3_mk(s) { +function tiles_TileMap__C2314_v11_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84530,7 +84584,7 @@ function if_activeCard_1_mk(s) { } } -function tiles_TileMap__C1086_v14_2_mk(s) { +function tiles_TileMap__C2314_v14_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84545,7 +84599,7 @@ function tiles_TileMap__C1086_v14_2_mk(s) { } } -function tiles_TileMap__C1086_v12_3_mk(s) { +function tiles_TileMap__C2314_v12_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84561,7 +84615,7 @@ function tiles_TileMap__C1086_v12_3_mk(s) { } } -function tiles_TileMap__C1086_v13_3_mk(s) { +function tiles_TileMap__C2314_v13_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84577,7 +84631,7 @@ function tiles_TileMap__C1086_v13_3_mk(s) { } } -function tiles_TileMap__C1086_v7_3_mk(s) { +function tiles_TileMap__C2314_v7_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84593,7 +84647,7 @@ function tiles_TileMap__C1086_v7_3_mk(s) { } } -function tiles_TileMap__C1086_v5_1_mk(s) { +function if_handler_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84604,10 +84658,12 @@ function tiles_TileMap__C1086_v5_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_handler_3_mk(s) { +function tiles_TileMap__C2314_v15_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84619,11 +84675,10 @@ function if_handler_3_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tiles_TileMap__C1086_v15_2_mk(s) { +function tiles_TileMap__C2314_v8_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84635,10 +84690,11 @@ function tiles_TileMap__C1086_v15_2_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_TileMap__C1086_v8_3_mk(s) { +function tiles_TileMap__C2314_v5_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84649,8 +84705,6 @@ function tiles_TileMap__C1086_v8_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } @@ -84696,7 +84750,7 @@ function if_top_1_mk(s) { } } -function particles_ParticleFactory__C1775_v1_4_mk(s) { +function particles_ParticleFactory__C2706_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84727,7 +84781,7 @@ function if_height_1_mk(s) { } } -function sprites_BaseSprite__C639_v0_1_mk(s) { +function sprites_BaseSprite__C1855_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84741,7 +84795,7 @@ function sprites_BaseSprite__C639_v0_1_mk(s) { } } -function sprites_BaseSprite__C639_v2_2_mk(s) { +function sprites_BaseSprite__C1855_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84842,7 +84896,7 @@ function if_up_2_mk(s) { } } -function tileworld_LoadScreen__C16011_v0_1_mk(s) { +function tileworld_LoadScreen__C3832_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84856,7 +84910,7 @@ function tileworld_LoadScreen__C16011_v0_1_mk(s) { } } -function tileworld_ProjectSettings__C15482_v0_1_mk(s) { +function tileworld_ProjectSettings__C3826_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84884,7 +84938,7 @@ function if_width_1_mk(s) { } } -function tileworld_ruleediting_RuleRoom__C12555_v0_1_mk(s) { +function tileworld_ruleediting_RuleRoom__C3805_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84898,7 +84952,7 @@ function tileworld_ruleediting_RuleRoom__C12555_v0_1_mk(s) { } } -function tileworld_ruleediting_RuleEditor__C12671_v0_1_mk(s) { +function tileworld_ruleediting_RuleEditor__C3816_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84912,7 +84966,7 @@ function tileworld_ruleediting_RuleEditor__C12671_v0_1_mk(s) { } } -function tileworld_ruleediting_RuleDisplay__C11265_v4_4_mk(s) { +function tileworld_ruleediting_RuleDisplay__C3797_v4_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84929,7 +84983,7 @@ function tileworld_ruleediting_RuleDisplay__C11265_v4_4_mk(s) { } } -function tileworld_ruleediting_RuleDisplay__C11265_v3_1_mk(s) { +function tileworld_ruleediting_RuleDisplay__C3797_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84943,7 +84997,7 @@ function tileworld_ruleediting_RuleDisplay__C11265_v3_1_mk(s) { } } -function tileworld_ruleediting_RuleRoom__C12555_v3_1_mk(s) { +function tileworld_ruleediting_RuleRoom__C3805_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84957,7 +85011,7 @@ function tileworld_ruleediting_RuleRoom__C12555_v3_1_mk(s) { } } -function tileworld_ImageEditor__C10052_v0_1_mk(s) { +function tileworld_ImageEditor__C3778_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84985,7 +85039,7 @@ function if_update_1_mk(s) { } } -function tileworld_MapEditor__C13477_v0_1_mk(s) { +function tileworld_MapEditor__C3819_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -84999,7 +85053,7 @@ function tileworld_MapEditor__C13477_v0_1_mk(s) { } } -function tiles_TileMap__C1086_v9_4_mk(s) { +function tiles_TileMap__C2314_v9_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85016,7 +85070,7 @@ function tiles_TileMap__C1086_v9_4_mk(s) { } } -function tiles_legacy_LegacyTilemap__C9551_v10_2_mk(s) { +function tiles_legacy_LegacyTilemap__C3850_v10_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85031,7 +85085,7 @@ function tiles_legacy_LegacyTilemap__C9551_v10_2_mk(s) { } } -function tileworld_RuleVisualsBase__C10839_v1_1_mk(s) { +function tileworld_RuleVisualsBase__C3784_v1_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85045,7 +85099,7 @@ function tileworld_RuleVisualsBase__C10839_v1_1_mk(s) { } } -function tileworld_RuleVisualsBase__C10839_v2_3_mk(s) { +function tileworld_RuleVisualsBase__C3784_v2_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85061,7 +85115,7 @@ function tileworld_RuleVisualsBase__C10839_v2_3_mk(s) { } } -function tiles_legacy_LegacyTilemap__C9551_v6_1_mk(s) { +function tiles_legacy_LegacyTilemap__C3850_v6_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85075,7 +85129,7 @@ function tiles_legacy_LegacyTilemap__C9551_v6_1_mk(s) { } } -function tiles_legacy_LegacyTilemap__C9551_v4_1_mk(s) { +function tiles_legacy_LegacyTilemap__C3850_v4_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85089,7 +85143,7 @@ function tiles_legacy_LegacyTilemap__C9551_v4_1_mk(s) { } } -function tiles_legacy_LegacyTilemap__C9551_v3_1_mk(s) { +function tiles_legacy_LegacyTilemap__C3850_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85103,7 +85157,7 @@ function tiles_legacy_LegacyTilemap__C9551_v3_1_mk(s) { } } -function tileworld_ruleediting_RuleViewDisplay__C12387_v0_1_mk(s) { +function tileworld_ruleediting_RuleViewDisplay__C3801_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85117,7 +85171,7 @@ function tileworld_ruleediting_RuleViewDisplay__C12387_v0_1_mk(s) { } } -function tiles_legacy_LegacyTilemap__C9551_v12_3_mk(s) { +function tiles_legacy_LegacyTilemap__C3850_v12_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85133,7 +85187,7 @@ function tiles_legacy_LegacyTilemap__C9551_v12_3_mk(s) { } } -function tiles_legacy_LegacyTilemap__C9551_v5_1_mk(s) { +function tiles_legacy_LegacyTilemap__C3850_v5_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85147,7 +85201,7 @@ function tiles_legacy_LegacyTilemap__C9551_v5_1_mk(s) { } } -function tileworld_TileSprite__C7459_v4_2_mk(s) { +function tileworld_TileSprite__C9368_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -85161,14 +85215,14 @@ function tileworld_TileSprite__C7459_v4_2_mk(s) { arg1: undefined, } } -const controller_Button__C694_VT = mkVTable({ +const controller_Button__C1900_VT = mkVTable({ name: "Button", numFields: 7, classNo: 16, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P701, + "isPressed": controller_Button_isPressed__P1909, }, iface: { "_owner": null, @@ -85185,26 +85239,26 @@ const controller_Button__C694_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "toString": controller_Button_toString__P695, - "raiseButtonUp": controller_Button_raiseButtonUp__P696, - "raiseButtonDown": controller_Button_raiseButtonDown__P697, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P698, - "onEvent": controller_Button_onEvent__P699, - "isPressed": controller_Button_isPressed__P701, - "pressureLevel": controller_Button_pressureLevel__P702, - "setPressed": controller_Button_setPressed__P703, - "__update": controller_Button___update__P704, + "toString": controller_Button_toString__P1905, + "raiseButtonUp": controller_Button_raiseButtonUp__P4113, + "raiseButtonDown": controller_Button_raiseButtonDown__P4114, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4115, + "onEvent": controller_Button_onEvent__P1907, + "isPressed": controller_Button_isPressed__P1909, + "pressureLevel": controller_Button_pressureLevel__P1910, + "setPressed": controller_Button_setPressed__P1911, + "__update": controller_Button___update__P1912, }, - toStringMethod: controller_Button_toString__P695, + toStringMethod: controller_Button_toString__P1905, }); -const controller_AnyButton__C706_VT = mkVTable({ +const controller_AnyButton__C4116_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 17, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P708, + "isPressed": controller_AnyButton_isPressed__P4118, }, iface: { "_owner": null, @@ -85221,18 +85275,18 @@ const controller_AnyButton__C706_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P708, - "toString": controller_Button_toString__P695, - "raiseButtonUp": controller_Button_raiseButtonUp__P696, - "raiseButtonDown": controller_Button_raiseButtonDown__P697, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P698, - "onEvent": controller_Button_onEvent__P699, - "pressureLevel": controller_Button_pressureLevel__P702, - "setPressed": controller_Button_setPressed__P703, - "__update": controller_Button___update__P704, + "isPressed": controller_AnyButton_isPressed__P4118, + "toString": controller_Button_toString__P1905, + "raiseButtonUp": controller_Button_raiseButtonUp__P4113, + "raiseButtonDown": controller_Button_raiseButtonDown__P4114, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P4115, + "onEvent": controller_Button_onEvent__P1907, + "pressureLevel": controller_Button_pressureLevel__P1910, + "setPressed": controller_Button_setPressed__P1911, + "__update": controller_Button___update__P1912, }, }); -const Math_FastRandom__C1565_VT = mkVTable({ +const Math_FastRandom__C2578_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 18, @@ -85245,12 +85299,12 @@ const Math_FastRandom__C1565_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P1566, - "randomRange": Math_FastRandom_randomRange__P1567, - "pickRandom": Math_FastRandom_pickRandom__P1568, + "next": Math_FastRandom_next__P2581, + "randomRange": Math_FastRandom_randomRange__P2582, + "pickRandom": Math_FastRandom_pickRandom__P2583, }, }); -const texteffects_TextEffect__C1907_VT = mkVTable({ +const texteffects_TextEffect__C2823_VT = mkVTable({ name: "TextEffect", numFields: 1, classNo: 19, @@ -85263,29 +85317,29 @@ const texteffects_TextEffect__C1907_VT = mkVTable({ "set/getState": null, }, }); -const tileworld_BackgroundBase__C9493_VT = mkVTable({ +const tileworld_BackgroundBase__C3782_VT = mkVTable({ name: "BackgroundBase", numFields: 0, classNo: 20, lastSubtypeNo: 32, maxBgInstances: null, methods: { - "update": tileworld_BackgroundBase_update__P9494, + "update": tileworld_BackgroundBase_update__P11383, }, iface: { - "update": tileworld_BackgroundBase_update__P9494, + "update": tileworld_BackgroundBase_update__P11383, }, }); -const tileworld_RuleVisualsBase__C10839_VT = mkVTable({ +const tileworld_RuleVisualsBase__C3784_VT = mkVTable({ name: "RuleVisualsBase", numFields: 6, classNo: 21, lastSubtypeNo: 29, maxBgInstances: null, methods: { - "update": tileworld_BackgroundBase_update__P9494, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "cursorMove": tileworld_RuleVisualsBase_cursorMove__P10856, + "update": tileworld_BackgroundBase_update__P11383, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702, }, iface: { "cursor": null, @@ -85300,35 +85354,35 @@ const tileworld_RuleVisualsBase__C10839_VT = mkVTable({ "set/dirMap": null, "p": null, "set/p": null, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, - "cursorMove": tileworld_RuleVisualsBase_cursorMove__P10856, - "update": tileworld_BackgroundBase_update__P9494, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, + "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702, + "update": tileworld_BackgroundBase_update__P11383, }, }); -const tileworld_LoadScreen__C16011_VT = mkVTable({ +const tileworld_LoadScreen__C3832_VT = mkVTable({ name: "LoadScreen", numFields: 7, classNo: 22, lastSubtypeNo: 22, maxBgInstances: null, methods: { - "update": tileworld_LoadScreen_update__P16015, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "cursorMove": tileworld_LoadScreen_cursorMove__P16013, + "update": tileworld_LoadScreen_update__P17818, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "cursorMove": tileworld_LoadScreen_cursorMove__P17816, }, iface: { "cursor": null, @@ -85345,27 +85399,27 @@ const tileworld_LoadScreen__C16011_VT = mkVTable({ "set/p": null, "lastDir": null, "set/lastDir": null, - "cursorMove": tileworld_LoadScreen_cursorMove__P16013, - "makeIt": tileworld_LoadScreen_makeIt__P16014, - "update": tileworld_LoadScreen_update__P16015, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, + "cursorMove": tileworld_LoadScreen_cursorMove__P17816, + "makeIt": tileworld_LoadScreen_makeIt__P17817, + "update": tileworld_LoadScreen_update__P17818, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, }, }); -const tileworld_Project__C6110_VT = mkVTable({ +const tileworld_Project__C3677_VT = mkVTable({ name: "Project", numFields: 12, classNo: 33, @@ -85398,45 +85452,45 @@ const tileworld_Project__C6110_VT = mkVTable({ "set/_backgroundsI": null, "_spritesI": null, "set/_spritesI": null, - "setRules": tileworld_Project_setRules__P6111, - "getRules": tileworld_Project_getRules__P6112, - "setPlayer": tileworld_Project_setPlayer__P6113, - "getPlayer": tileworld_Project_getPlayer__P6114, - "setWorldBackgrounds": tileworld_Project_setWorldBackgrounds__P6115, - "getWorldBackgrounds": tileworld_Project_getWorldBackgrounds__P6116, - "setWorldSprites": tileworld_Project_setWorldSprites__P6117, - "getWorldSprites": tileworld_Project_getWorldSprites__P6118, - "backCnt": tileworld_Project_backCnt__P5248, - "spriteCnt": tileworld_Project_spriteCnt__P5256, - "allCnt": tileworld_Project_allCnt__P6119, - "backgroundImages": tileworld_Project_backgroundImages__P5990, - "spriteImages": tileworld_Project_spriteImages__P5994, - "getBackgroundImage": tileworld_Project_getBackgroundImage__P6002, - "getSpriteImage": tileworld_Project_getSpriteImage__P6007, - "saveBackgroundImage": tileworld_Project_saveBackgroundImage__P6016, - "saveSpriteImage": tileworld_Project_saveSpriteImage__P6021, - "saveRule": tileworld_Project_saveRule__P6120, - "makeRule": tileworld_Project_makeRule__P6121, - "removeRule": tileworld_Project_removeRule__P6122, - "saveWorld": tileworld_Project_saveWorld__P6123, - "saveHelp": tileworld_Project_saveHelp__P6124, - "newHighScore": tileworld_Project_newHighScore__P6125, - "storeRule": tileworld_Project_storeRule__P6126, - "saveProject": tileworld_Project_saveProject__P6127, - "wrapRule": tileworld_Project_wrapRule__P6129, - "getRulesForSpriteKind": tileworld_Project_getRulesForSpriteKind__P6130, + "setRules": tileworld_Project_setRules__P3683, + "getRules": tileworld_Project_getRules__P3684, + "setPlayer": tileworld_Project_setPlayer__P3685, + "getPlayer": tileworld_Project_getPlayer__P3686, + "setWorldBackgrounds": tileworld_Project_setWorldBackgrounds__P3687, + "getWorldBackgrounds": tileworld_Project_getWorldBackgrounds__P3688, + "setWorldSprites": tileworld_Project_setWorldSprites__P3689, + "getWorldSprites": tileworld_Project_getWorldSprites__P3690, + "backCnt": tileworld_Project_backCnt__P3691, + "spriteCnt": tileworld_Project_spriteCnt__P3692, + "allCnt": tileworld_Project_allCnt__P3693, + "backgroundImages": tileworld_Project_backgroundImages__P3694, + "spriteImages": tileworld_Project_spriteImages__P3695, + "getBackgroundImage": tileworld_Project_getBackgroundImage__P3696, + "getSpriteImage": tileworld_Project_getSpriteImage__P3697, + "saveBackgroundImage": tileworld_Project_saveBackgroundImage__P3698, + "saveSpriteImage": tileworld_Project_saveSpriteImage__P3699, + "saveRule": tileworld_Project_saveRule__P3700, + "makeRule": tileworld_Project_makeRule__P3701, + "removeRule": tileworld_Project_removeRule__P3702, + "saveWorld": tileworld_Project_saveWorld__P3703, + "saveHelp": tileworld_Project_saveHelp__P3704, + "newHighScore": tileworld_Project_newHighScore__P3705, + "storeRule": tileworld_Project_storeRule__P8110, + "saveProject": tileworld_Project_saveProject__P3706, + "wrapRule": tileworld_Project_wrapRule__P8111, + "getRulesForSpriteKind": tileworld_Project_getRulesForSpriteKind__P3708, }, }); -const tileworld_GameHome__C15718_VT = mkVTable({ +const tileworld_GameHome__C3829_VT = mkVTable({ name: "GameHome", numFields: 6, classNo: 23, lastSubtypeNo: 23, maxBgInstances: null, methods: { - "update": tileworld_GameHome_update__P15721, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "cursorMove": tileworld_GameHome_cursorMove__P15720, + "update": tileworld_GameHome_update__P17526, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "cursorMove": tileworld_GameHome_cursorMove__P17525, }, iface: { "cursor": null, @@ -85451,35 +85505,35 @@ const tileworld_GameHome__C15718_VT = mkVTable({ "set/dirMap": null, "p": null, "set/p": null, - "cursorMove": tileworld_GameHome_cursorMove__P15720, - "update": tileworld_GameHome_update__P15721, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, + "cursorMove": tileworld_GameHome_cursorMove__P17525, + "update": tileworld_GameHome_update__P17526, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, }, }); -const tileworld_ProjectSettings__C15482_VT = mkVTable({ +const tileworld_ProjectSettings__C3826_VT = mkVTable({ name: "ProjectSettings", numFields: 7, classNo: 24, lastSubtypeNo: 24, maxBgInstances: null, methods: { - "update": tileworld_ProjectSettings_update__P15484, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "cursorMove": tileworld_RuleVisualsBase_cursorMove__P10856, + "update": tileworld_ProjectSettings_update__P17291, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702, }, iface: { "cursor": null, @@ -85496,62 +85550,62 @@ const tileworld_ProjectSettings__C15482_VT = mkVTable({ "set/p": null, "askDeleteRule": null, "set/askDeleteRule": null, - "update": tileworld_ProjectSettings_update__P15484, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, - "cursorMove": tileworld_RuleVisualsBase_cursorMove__P10856, + "update": tileworld_ProjectSettings_update__P17291, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, + "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702, }, }); -const sprites_BaseSprite__C639_VT = mkVTable({ +const sprites_BaseSprite__C1855_VT = mkVTable({ name: "BaseSprite", numFields: 2, classNo: 34, lastSubtypeNo: 38, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P640, - "__draw": sprites_BaseSprite___draw__P643, - "__drawCore": sprites_BaseSprite___drawCore__P644, - "__update": sprites_BaseSprite___update__P645, + "__visible": sprites_BaseSprite___visible__P1858, + "__draw": sprites_BaseSprite___draw__P1861, + "__drawCore": sprites_BaseSprite___drawCore__P1862, + "__update": sprites_BaseSprite___update__P1863, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "__visible": sprites_BaseSprite___visible__P640, - "z": sprites_BaseSprite_z__P641, - "set/z": sprites_BaseSprite_z__P642, - "__draw": sprites_BaseSprite___draw__P643, - "__drawCore": sprites_BaseSprite___drawCore__P644, - "__update": sprites_BaseSprite___update__P645, + "__visible": sprites_BaseSprite___visible__P1858, + "z": sprites_BaseSprite_z__P1859, + "set/z": sprites_BaseSprite_z__P1860, + "__draw": sprites_BaseSprite___draw__P1861, + "__drawCore": sprites_BaseSprite___drawCore__P1862, + "__update": sprites_BaseSprite___update__P1863, }, }); -const Sprite__C768_VT = mkVTable({ +const Sprite__C2013_VT = mkVTable({ name: "Sprite", numFields: 26, classNo: 35, lastSubtypeNo: 36, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P793, - "__draw": sprites_BaseSprite___draw__P643, - "__drawCore": Sprite___drawCore__P811, - "__update": Sprite___update__P812, - "isOutOfScreen": Sprite_isOutOfScreen__P810, + "__visible": Sprite___visible__P2056, + "__draw": sprites_BaseSprite___draw__P1861, + "__drawCore": Sprite___drawCore__P2074, + "__update": Sprite___update__P2075, + "isOutOfScreen": Sprite_isOutOfScreen__P2073, }, iface: { "_z": null, @@ -85606,59 +85660,59 @@ const Sprite__C768_VT = mkVTable({ "set/flags": null, "destroyHandler": null, "set/destroyHandler": null, - "x": Sprite_x__P770, - "set/x": Sprite_x__P771, - "y": Sprite_y__P772, - "set/y": Sprite_y__P773, - "vx": Sprite_vx__P774, - "set/vx": Sprite_vx__P775, - "vy": Sprite_vy__P776, - "set/vy": Sprite_vy__P777, - "ax": Sprite_ax__P778, - "set/ax": Sprite_ax__P779, - "ay": Sprite_ay__P780, - "set/ay": Sprite_ay__P781, - "fx": Sprite_fx__P782, - "set/fx": Sprite_fx__P783, - "fy": Sprite_fy__P784, - "set/fy": Sprite_fy__P785, - "data": Sprite_data__P786, - "set/data": Sprite_data__P787, - "image": Sprite_image__P789, - "setImage": Sprite_setImage__P790, - "setHitbox": Sprite_setHitbox__P791, - "isStatic": Sprite_isStatic__P792, - "__visible": Sprite___visible__P793, - "width": Sprite_width__P794, - "height": Sprite_height__P795, - "left": Sprite_left__P796, - "set/left": Sprite_left__P797, - "right": Sprite_right__P798, - "set/right": Sprite_right__P799, - "top": Sprite_top__P800, - "set/top": Sprite_top__P801, - "bottom": Sprite_bottom__P802, - "set/bottom": Sprite_bottom__P803, - "kind": Sprite_kind__P804, - "setKind": Sprite_setKind__P805, - "say": Sprite_say__P808, - "isOutOfScreen": Sprite_isOutOfScreen__P810, - "__drawCore": Sprite___drawCore__P811, - "__update": Sprite___update__P812, - "setFlag": Sprite_setFlag__P813, - "overlapsWith": Sprite_overlapsWith__P814, - "clearObstacles": Sprite_clearObstacles__P818, - "registerObstacle": Sprite_registerObstacle__P819, - "destroy": Sprite_destroy__P821, - "_destroyCore": Sprite__destroyCore__P822, - "toString": Sprite_toString__P824, - "z": sprites_BaseSprite_z__P641, - "set/z": sprites_BaseSprite_z__P642, - "__draw": sprites_BaseSprite___draw__P643, + "x": Sprite_x__P2022, + "set/x": Sprite_x__P2023, + "y": Sprite_y__P2024, + "set/y": Sprite_y__P2025, + "vx": Sprite_vx__P2026, + "set/vx": Sprite_vx__P2027, + "vy": Sprite_vy__P2028, + "set/vy": Sprite_vy__P2029, + "ax": Sprite_ax__P2030, + "set/ax": Sprite_ax__P2031, + "ay": Sprite_ay__P2032, + "set/ay": Sprite_ay__P2033, + "fx": Sprite_fx__P2034, + "set/fx": Sprite_fx__P2035, + "fy": Sprite_fy__P2036, + "set/fy": Sprite_fy__P2037, + "data": Sprite_data__P2038, + "set/data": Sprite_data__P2039, + "image": Sprite_image__P2052, + "setImage": Sprite_setImage__P2053, + "setHitbox": Sprite_setHitbox__P2054, + "isStatic": Sprite_isStatic__P2055, + "__visible": Sprite___visible__P2056, + "width": Sprite_width__P2057, + "height": Sprite_height__P2058, + "left": Sprite_left__P2059, + "set/left": Sprite_left__P2060, + "right": Sprite_right__P2061, + "set/right": Sprite_right__P2062, + "top": Sprite_top__P2063, + "set/top": Sprite_top__P2064, + "bottom": Sprite_bottom__P2065, + "set/bottom": Sprite_bottom__P2066, + "kind": Sprite_kind__P2067, + "setKind": Sprite_setKind__P2068, + "say": Sprite_say__P2071, + "isOutOfScreen": Sprite_isOutOfScreen__P2073, + "__drawCore": Sprite___drawCore__P2074, + "__update": Sprite___update__P2075, + "setFlag": Sprite_setFlag__P2076, + "overlapsWith": Sprite_overlapsWith__P2077, + "clearObstacles": Sprite_clearObstacles__P2081, + "registerObstacle": Sprite_registerObstacle__P2082, + "destroy": Sprite_destroy__P2084, + "_destroyCore": Sprite__destroyCore__P2085, + "toString": Sprite_toString__P2087, + "z": sprites_BaseSprite_z__P1859, + "set/z": sprites_BaseSprite_z__P1860, + "__draw": sprites_BaseSprite___draw__P1861, }, - toStringMethod: Sprite_toString__P824, + toStringMethod: Sprite_toString__P2087, }); -const scene_Scene__C1195_VT = mkVTable({ +const scene_Scene__C2411_VT = mkVTable({ name: "Scene", numFields: 23, classNo: 39, @@ -85713,14 +85767,14 @@ const scene_Scene__C1195_VT = mkVTable({ "set/_data": null, "previousScene": null, "set/previousScene": null, - "init": scene_Scene_init__P1196, - "data": scene_Scene_data__P1197, - "millis": scene_Scene_millis__P1198, - "addSprite": scene_Scene_addSprite__P1199, - "render": scene_Scene_render__P1201, + "init": scene_Scene_init__P2433, + "data": scene_Scene_data__P2434, + "millis": scene_Scene_millis__P2435, + "addSprite": scene_Scene_addSprite__P2436, + "render": scene_Scene_render__P2438, }, }); -const effects_ImageEffect__C1893_VT = mkVTable({ +const effects_ImageEffect__C2808_VT = mkVTable({ name: "ImageEffect", numFields: 4, classNo: 40, @@ -85737,11 +85791,11 @@ const effects_ImageEffect__C1893_VT = mkVTable({ "set/fastRandom": null, "times": null, "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P1894, - "change": effects_ImageEffect_change__P1895, + "applyTo": effects_ImageEffect_applyTo__P2810, + "change": effects_ImageEffect_change__P2811, }, }); -const effects_ParticleEffect__C1842_VT = mkVTable({ +const effects_ParticleEffect__C2781_VT = mkVTable({ name: "ParticleEffect", numFields: 3, classNo: 41, @@ -85756,11 +85810,11 @@ const effects_ParticleEffect__C1842_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P1843, - "destroy": effects_ParticleEffect_destroy__P1844, + "start": effects_ParticleEffect_start__P2783, + "destroy": effects_ParticleEffect_destroy__P2784, }, }); -const effects_ScreenEffect__C1852_VT = mkVTable({ +const effects_ScreenEffect__C2785_VT = mkVTable({ name: "ScreenEffect", numFields: 5, classNo: 42, @@ -85779,34 +85833,34 @@ const effects_ScreenEffect__C1852_VT = mkVTable({ "set/source": null, "sceneDefaultRate": null, "set/sceneDefaultRate": null, - "start": effects_ParticleEffect_start__P1843, - "destroy": effects_ParticleEffect_destroy__P1844, + "start": effects_ParticleEffect_start__P2783, + "destroy": effects_ParticleEffect_destroy__P2784, }, }); -const particles_ParticleFactory__C1775_VT = mkVTable({ +const particles_ParticleFactory__C2706_VT = mkVTable({ name: "ParticleFactory", numFields: 0, classNo: 43, lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P1776, - "drawParticle": particles_ParticleFactory_drawParticle__P1777, + "createParticle": particles_ParticleFactory_createParticle__P2708, + "drawParticle": particles_ParticleFactory_drawParticle__P2709, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P1776, - "drawParticle": particles_ParticleFactory_drawParticle__P1777, + "createParticle": particles_ParticleFactory_createParticle__P2708, + "drawParticle": particles_ParticleFactory_drawParticle__P2709, }, }); -const particles_SprayFactory__C1779_VT = mkVTable({ +const particles_SprayFactory__C2710_VT = mkVTable({ name: "SprayFactory", numFields: 3, classNo: 44, lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P1781, - "drawParticle": particles_SprayFactory_drawParticle__P1782, + "createParticle": particles_SprayFactory_createParticle__P2712, + "drawParticle": particles_SprayFactory_drawParticle__P2713, }, iface: { "speed": null, @@ -85815,21 +85869,21 @@ const particles_SprayFactory__C1779_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P1781, - "drawParticle": particles_SprayFactory_drawParticle__P1782, - "setSpeed": particles_SprayFactory_setSpeed__P1783, - "setDirection": particles_SprayFactory_setDirection__P1784, + "createParticle": particles_SprayFactory_createParticle__P2712, + "drawParticle": particles_SprayFactory_drawParticle__P2713, + "setSpeed": particles_SprayFactory_setSpeed__P2714, + "setDirection": particles_SprayFactory_setDirection__P2715, }, }); -const particles_AreaFactory__C1786_VT = mkVTable({ +const particles_AreaFactory__C2716_VT = mkVTable({ name: "AreaFactory", numFields: 8, classNo: 45, lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P1788, - "drawParticle": particles_AreaFactory_drawParticle__P1789, + "createParticle": particles_AreaFactory_createParticle__P2722, + "drawParticle": particles_AreaFactory_drawParticle__P2723, }, iface: { "speed": null, @@ -85848,21 +85902,21 @@ const particles_AreaFactory__C1786_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P1788, - "drawParticle": particles_AreaFactory_drawParticle__P1789, - "setSpeed": particles_SprayFactory_setSpeed__P1783, - "setDirection": particles_SprayFactory_setDirection__P1784, + "createParticle": particles_AreaFactory_createParticle__P2722, + "drawParticle": particles_AreaFactory_drawParticle__P2723, + "setSpeed": particles_SprayFactory_setSpeed__P2714, + "setDirection": particles_SprayFactory_setDirection__P2715, }, }); -const particles_ShapeFactory__C1796_VT = mkVTable({ +const particles_ShapeFactory__C2732_VT = mkVTable({ name: "ShapeFactory", numFields: 11, classNo: 46, lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P1800, - "drawParticle": particles_ShapeFactory_drawParticle__P1799, + "createParticle": particles_ShapeFactory_createParticle__P2736, + "drawParticle": particles_ShapeFactory_drawParticle__P2735, }, iface: { "speed": null, @@ -85887,22 +85941,22 @@ const particles_ShapeFactory__C1796_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P1798, - "drawParticle": particles_ShapeFactory_drawParticle__P1799, - "createParticle": particles_ShapeFactory_createParticle__P1800, - "setSpeed": particles_SprayFactory_setSpeed__P1783, - "setDirection": particles_SprayFactory_setDirection__P1784, + "addShape": particles_ShapeFactory_addShape__P2734, + "drawParticle": particles_ShapeFactory_drawParticle__P2735, + "createParticle": particles_ShapeFactory_createParticle__P2736, + "setSpeed": particles_SprayFactory_setSpeed__P2714, + "setDirection": particles_SprayFactory_setDirection__P2715, }, }); -const particles_ConfettiFactory__C1802_VT = mkVTable({ +const particles_ConfettiFactory__C2737_VT = mkVTable({ name: "ConfettiFactory", numFields: 11, classNo: 47, lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P1800, - "drawParticle": particles_ShapeFactory_drawParticle__P1799, + "createParticle": particles_ShapeFactory_createParticle__P2736, + "drawParticle": particles_ShapeFactory_drawParticle__P2735, }, iface: { "speed": null, @@ -85927,25 +85981,25 @@ const particles_ConfettiFactory__C1802_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P1798, - "drawParticle": particles_ShapeFactory_drawParticle__P1799, - "createParticle": particles_ShapeFactory_createParticle__P1800, - "setSpeed": particles_SprayFactory_setSpeed__P1783, - "setDirection": particles_SprayFactory_setDirection__P1784, + "addShape": particles_ShapeFactory_addShape__P2734, + "drawParticle": particles_ShapeFactory_drawParticle__P2735, + "createParticle": particles_ShapeFactory_createParticle__P2736, + "setSpeed": particles_SprayFactory_setSpeed__P2714, + "setDirection": particles_SprayFactory_setDirection__P2715, }, }); -const particles_ParticleSource__C1715_VT = mkVTable({ +const particles_ParticleSource__C2670_VT = mkVTable({ name: "ParticleSource", numFields: 13, classNo: 37, lastSubtypeNo: 37, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P640, - "__draw": particles_ParticleSource___draw__P1717, - "__drawCore": sprites_BaseSprite___drawCore__P644, - "__update": sprites_BaseSprite___update__P645, - "updateParticle": particles_ParticleSource_updateParticle__P1731, + "__visible": sprites_BaseSprite___visible__P1858, + "__draw": particles_ParticleSource___draw__P2676, + "__drawCore": sprites_BaseSprite___drawCore__P1862, + "__update": sprites_BaseSprite___update__P1863, + "updateParticle": particles_ParticleSource_updateParticle__P4626, }, iface: { "_z": null, @@ -85974,28 +86028,28 @@ const particles_ParticleSource__C1715_VT = mkVTable({ "set/ax": null, "ay": null, "set/ay": null, - "__draw": particles_ParticleSource___draw__P1717, - "_update": particles_ParticleSource__update__P1718, - "_prune": particles_ParticleSource__prune__P1719, - "setAcceleration": particles_ParticleSource_setAcceleration__P1720, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P1722, - "enabled": particles_ParticleSource_enabled__P1723, - "set/enabled": particles_ParticleSource_enabled__P1724, - "destroy": particles_ParticleSource_destroy__P1725, - "clear": particles_ParticleSource_clear__P1726, - "setAnchor": particles_ParticleSource_setAnchor__P1727, - "setRate": particles_ParticleSource_setRate__P1728, - "setFactory": particles_ParticleSource_setFactory__P1730, - "updateParticle": particles_ParticleSource_updateParticle__P1731, - "drawParticle": particles_ParticleSource_drawParticle__P1732, - "__visible": sprites_BaseSprite___visible__P640, - "z": sprites_BaseSprite_z__P641, - "set/z": sprites_BaseSprite_z__P642, - "__drawCore": sprites_BaseSprite___drawCore__P644, - "__update": sprites_BaseSprite___update__P645, + "__draw": particles_ParticleSource___draw__P2676, + "_update": particles_ParticleSource__update__P2677, + "_prune": particles_ParticleSource__prune__P2678, + "setAcceleration": particles_ParticleSource_setAcceleration__P2679, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P2681, + "enabled": particles_ParticleSource_enabled__P2682, + "set/enabled": particles_ParticleSource_enabled__P2683, + "destroy": particles_ParticleSource_destroy__P2684, + "clear": particles_ParticleSource_clear__P2685, + "setAnchor": particles_ParticleSource_setAnchor__P2686, + "setRate": particles_ParticleSource_setRate__P2687, + "setFactory": particles_ParticleSource_setFactory__P2689, + "updateParticle": particles_ParticleSource_updateParticle__P4626, + "drawParticle": particles_ParticleSource_drawParticle__P4627, + "__visible": sprites_BaseSprite___visible__P1858, + "z": sprites_BaseSprite_z__P1859, + "set/z": sprites_BaseSprite_z__P1860, + "__drawCore": sprites_BaseSprite___drawCore__P1862, + "__update": sprites_BaseSprite___update__P1863, }, }); -const particles_Particle__C1713_VT = mkVTable({ +const particles_Particle__C2651_VT = mkVTable({ name: "Particle", numFields: 8, classNo: 48, @@ -86022,7 +86076,7 @@ const particles_Particle__C1713_VT = mkVTable({ "set/color": null, }, }); -const control_EventContext__C287_VT = mkVTable({ +const control_EventContext__C381_VT = mkVTable({ name: "EventContext", numFields: 9, classNo: 49, @@ -86049,16 +86103,16 @@ const control_EventContext__C287_VT = mkVTable({ "set/idleCallbacks": null, "runningCallbacks": null, "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P288, - "runCallbacks": control_EventContext_runCallbacks__P289, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P290, - "register": control_EventContext_register__P291, - "unregister": control_EventContext_unregister__P292, - "registerFrameHandler": control_EventContext_registerFrameHandler__P293, - "registerHandler": control_EventContext_registerHandler__P295, + "deltaTime": control_EventContext_deltaTime__P386, + "runCallbacks": control_EventContext_runCallbacks__P3958, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P3959, + "register": control_EventContext_register__P387, + "unregister": control_EventContext_unregister__P388, + "registerFrameHandler": control_EventContext_registerFrameHandler__P389, + "registerHandler": control_EventContext_registerHandler__P391, }, }); -const control_FrameCallback__C281_VT = mkVTable({ +const control_FrameCallback__C378_VT = mkVTable({ name: "FrameCallback", numFields: 2, classNo: 50, @@ -86073,7 +86127,7 @@ const control_FrameCallback__C281_VT = mkVTable({ "set/handler": null, }, }); -const control_PollEvent__C242_VT = mkVTable({ +const control_PollEvent__C3932_VT = mkVTable({ name: "PollEvent", numFields: 6, classNo: 51, @@ -86096,7 +86150,7 @@ const control_PollEvent__C242_VT = mkVTable({ "set/once": null, }, }); -const control_EventHandler__C282_VT = mkVTable({ +const control_EventHandler__C3953_VT = mkVTable({ name: "EventHandler", numFields: 4, classNo: 52, @@ -86113,101 +86167,36 @@ const control_EventHandler__C282_VT = mkVTable({ "set/handler": null, "flags": null, "set/flags": null, - "register": control_EventHandler_register__P283, - "unregister": control_EventHandler_unregister__P284, + "register": control_EventHandler_register__P3954, + "unregister": control_EventHandler_unregister__P3955, }, }); -const PhysicsEngine__C880_VT = mkVTable({ +const PhysicsEngine__C2156_VT = mkVTable({ name: "PhysicsEngine", numFields: 0, classNo: 53, lastSubtypeNo: 54, maxBgInstances: null, methods: { - "addSprite": PhysicsEngine_addSprite__P881, - "removeSprite": PhysicsEngine_removeSprite__P882, - "moveSprite": PhysicsEngine_moveSprite__P883, - "draw": PhysicsEngine_draw__P884, - "move": PhysicsEngine_move__P885, - }, - iface: { - "addSprite": PhysicsEngine_addSprite__P881, - "removeSprite": PhysicsEngine_removeSprite__P882, - "moveSprite": PhysicsEngine_moveSprite__P883, - "draw": PhysicsEngine_draw__P884, - "move": PhysicsEngine_move__P885, - }, -}); -const ArcadePhysicsEngine__C908_VT = mkVTable({ - name: "ArcadePhysicsEngine", - numFields: 6, - classNo: 54, - lastSubtypeNo: 54, - maxBgInstances: null, - methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P917, - "removeSprite": ArcadePhysicsEngine_removeSprite__P918, - "moveSprite": ArcadePhysicsEngine_moveSprite__P926, - "draw": ArcadePhysicsEngine_draw__P919, - "move": ArcadePhysicsEngine_move__P920, + "addSprite": PhysicsEngine_addSprite__P2158, + "removeSprite": PhysicsEngine_removeSprite__P2159, + "moveSprite": PhysicsEngine_moveSprite__P2160, + "draw": PhysicsEngine_draw__P2161, + "move": PhysicsEngine_move__P2162, }, iface: { - "sprites": null, - "set/sprites": null, - "map": null, - "set/map": null, - "maxVelocity": null, - "set/maxVelocity": null, - "maxNegativeVelocity": null, - "set/maxNegativeVelocity": null, - "minSingleStep": null, - "set/minSingleStep": null, - "maxSingleStep": null, - "set/maxSingleStep": null, - "maxSpeed": ArcadePhysicsEngine_maxSpeed__P910, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P911, - "minStep": ArcadePhysicsEngine_minStep__P912, - "set/minStep": ArcadePhysicsEngine_minStep__P913, - "maxStep": ArcadePhysicsEngine_maxStep__P914, - "set/maxStep": ArcadePhysicsEngine_maxStep__P915, - "addSprite": ArcadePhysicsEngine_addSprite__P917, - "removeSprite": ArcadePhysicsEngine_removeSprite__P918, - "draw": ArcadePhysicsEngine_draw__P919, - "move": ArcadePhysicsEngine_move__P920, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P921, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P922, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P923, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P924, - "moveSprite": ArcadePhysicsEngine_moveSprite__P926, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P927, - "constrain": ArcadePhysicsEngine_constrain__P928, + "addSprite": PhysicsEngine_addSprite__P2158, + "removeSprite": PhysicsEngine_removeSprite__P2159, + "moveSprite": PhysicsEngine_moveSprite__P2160, + "draw": PhysicsEngine_draw__P2161, + "move": PhysicsEngine_move__P2162, }, }); -const scene_Background__C1044_VT = mkVTable({ - name: "Background", - numFields: 4, - classNo: 55, - lastSubtypeNo: 55, - 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__P1049, - }, -}); -const scene_Camera__C1127_VT = mkVTable({ +const scene_Camera__C2352_VT = mkVTable({ name: "Camera", numFields: 8, - classNo: 56, - lastSubtypeNo: 56, + classNo: 55, + lastSubtypeNo: 55, maxBgInstances: null, methods: { }, @@ -86228,54 +86217,42 @@ const scene_Camera__C1127_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P1128, - "set/offsetX": scene_Camera_offsetX__P1129, - "offsetY": scene_Camera_offsetY__P1130, - "set/offsetY": scene_Camera_offsetY__P1131, - "x": scene_Camera_x__P1132, - "y": scene_Camera_y__P1133, - "left": scene_Camera_left__P1134, - "top": scene_Camera_top__P1136, - "update": scene_Camera_update__P1139, + "offsetX": scene_Camera_offsetX__P2357, + "set/offsetX": scene_Camera_offsetX__P2358, + "offsetY": scene_Camera_offsetY__P2359, + "set/offsetY": scene_Camera_offsetY__P2360, + "x": scene_Camera_x__P2361, + "y": scene_Camera_y__P2362, + "left": scene_Camera_left__P2363, + "top": scene_Camera_top__P2365, + "update": scene_Camera_update__P2368, }, }); -const sprites_SpriteMap__C827_VT = mkVTable({ - name: "SpriteMap", - numFields: 5, - classNo: 57, - lastSubtypeNo: 57, +const scene_Background__C2262_VT = mkVTable({ + name: "Background", + numFields: 4, + classNo: 56, + lastSubtypeNo: 56, maxBgInstances: null, methods: { }, iface: { - "cellWidth": null, - "set/cellWidth": null, - "cellHeight": null, - "set/cellHeight": null, - "rowCount": null, - "set/rowCount": null, - "columnCount": null, - "set/columnCount": null, - "buckets": null, - "set/buckets": null, - "neighbors": sprites_SpriteMap_neighbors__P828, - "overlaps": sprites_SpriteMap_overlaps__P829, - "draw": sprites_SpriteMap_draw__P830, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P831, - "clear": sprites_SpriteMap_clear__P832, - "key": sprites_SpriteMap_key__P833, - "insertAtKey": sprites_SpriteMap_insertAtKey__P834, - "insertAABB": sprites_SpriteMap_insertAABB__P835, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P836, - "toString": sprites_SpriteMap_toString__P837, + "color": null, + "set/color": null, + "_image": null, + "set/_image": null, + "camera": null, + "set/camera": null, + "_layers": null, + "set/_layers": null, + "draw": scene_Background_draw__P2271, }, - toStringMethod: sprites_SpriteMap_toString__P837, }); -const scene_BackgroundLayer__C1051_VT = mkVTable({ +const scene_BackgroundLayer__C2272_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, - classNo: 58, - lastSubtypeNo: 58, + classNo: 57, + lastSubtypeNo: 57, maxBgInstances: null, methods: { }, @@ -86292,32 +86269,32 @@ const scene_BackgroundLayer__C1051_VT = mkVTable({ "set/alignX": null, "alignY": null, "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P1052, + "draw": scene_BackgroundLayer_draw__P2280, }, }); -const tiles_TileMap__C1086_VT = mkVTable({ +const tiles_TileMap__C2314_VT = mkVTable({ name: "TileMap", numFields: 3, - classNo: 59, - lastSubtypeNo: 60, + classNo: 58, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "data": tiles_TileMap_data__P1089, - "offsetX": tiles_TileMap_offsetX__P1090, - "offsetY": tiles_TileMap_offsetY__P1091, - "areaWidth": tiles_TileMap_areaWidth__P1092, - "areaHeight": tiles_TileMap_areaHeight__P1093, - "layer": tiles_TileMap_layer__P1094, - "enabled": tiles_TileMap_enabled__P1096, - "getTile": tiles_TileMap_getTile__P1098, - "getTileIndex": tiles_TileMap_getTileIndex__P1099, - "setTileAt": tiles_TileMap_setTileAt__P1100, - "isInvalidIndex": tiles_TileMap_isInvalidIndex__P1104, - "draw": tiles_TileMap_draw__P1105, - "isObstacle": tiles_TileMap_isObstacle__P1106, - "getObstacle": tiles_TileMap_getObstacle__P1107, - "isOnWall": tiles_TileMap_isOnWall__P1108, - "getTileImage": tiles_TileMap_getTileImage__P1109, + "data": tiles_TileMap_data__P4221, + "offsetX": tiles_TileMap_offsetX__P2318, + "offsetY": tiles_TileMap_offsetY__P2319, + "areaWidth": tiles_TileMap_areaWidth__P2320, + "areaHeight": tiles_TileMap_areaHeight__P2321, + "layer": tiles_TileMap_layer__P2322, + "enabled": tiles_TileMap_enabled__P2324, + "getTile": tiles_TileMap_getTile__P2326, + "getTileIndex": tiles_TileMap_getTileIndex__P2327, + "setTileAt": tiles_TileMap_setTileAt__P2328, + "isInvalidIndex": tiles_TileMap_isInvalidIndex__P4222, + "draw": tiles_TileMap_draw__P4223, + "isObstacle": tiles_TileMap_isObstacle__P2332, + "getObstacle": tiles_TileMap_getObstacle__P2333, + "isOnWall": tiles_TileMap_isOnWall__P2334, + "getTileImage": tiles_TileMap_getTileImage__P2335, }, iface: { "_scale": null, @@ -86326,31 +86303,31 @@ const tiles_TileMap__C1086_VT = mkVTable({ "set/_layer": null, "_map": null, "set/_map": null, - "scale": tiles_TileMap_scale__P1087, - "set/scale": tiles_TileMap_scale__P1088, - "data": tiles_TileMap_data__P1089, - "offsetX": tiles_TileMap_offsetX__P1090, - "offsetY": tiles_TileMap_offsetY__P1091, - "areaWidth": tiles_TileMap_areaWidth__P1092, - "areaHeight": tiles_TileMap_areaHeight__P1093, - "layer": tiles_TileMap_layer__P1094, - "enabled": tiles_TileMap_enabled__P1096, - "getTile": tiles_TileMap_getTile__P1098, - "getTileIndex": tiles_TileMap_getTileIndex__P1099, - "setTileAt": tiles_TileMap_setTileAt__P1100, - "isInvalidIndex": tiles_TileMap_isInvalidIndex__P1104, - "draw": tiles_TileMap_draw__P1105, - "isObstacle": tiles_TileMap_isObstacle__P1106, - "getObstacle": tiles_TileMap_getObstacle__P1107, - "isOnWall": tiles_TileMap_isOnWall__P1108, - "getTileImage": tiles_TileMap_getTileImage__P1109, + "scale": tiles_TileMap_scale__P2316, + "set/scale": tiles_TileMap_scale__P2317, + "data": tiles_TileMap_data__P4221, + "offsetX": tiles_TileMap_offsetX__P2318, + "offsetY": tiles_TileMap_offsetY__P2319, + "areaWidth": tiles_TileMap_areaWidth__P2320, + "areaHeight": tiles_TileMap_areaHeight__P2321, + "layer": tiles_TileMap_layer__P2322, + "enabled": tiles_TileMap_enabled__P2324, + "getTile": tiles_TileMap_getTile__P2326, + "getTileIndex": tiles_TileMap_getTileIndex__P2327, + "setTileAt": tiles_TileMap_setTileAt__P2328, + "isInvalidIndex": tiles_TileMap_isInvalidIndex__P4222, + "draw": tiles_TileMap_draw__P4223, + "isObstacle": tiles_TileMap_isObstacle__P2332, + "getObstacle": tiles_TileMap_getObstacle__P2333, + "isOnWall": tiles_TileMap_isOnWall__P2334, + "getTileImage": tiles_TileMap_getTileImage__P2335, }, }); -const tiles_TileMapData__C1073_VT = mkVTable({ +const tiles_TileMapData__C2301_VT = mkVTable({ name: "TileMapData", numFields: 7, - classNo: 61, - lastSubtypeNo: 61, + classNo: 60, + lastSubtypeNo: 60, maxBgInstances: null, methods: { }, @@ -86369,22 +86346,22 @@ const tiles_TileMapData__C1073_VT = mkVTable({ "set/_width": null, "_height": null, "set/_height": null, - "width": tiles_TileMapData_width__P1074, - "height": tiles_TileMapData_height__P1075, - "scale": tiles_TileMapData_scale__P1076, - "set/scale": tiles_TileMapData_scale__P1077, - "getTile": tiles_TileMapData_getTile__P1078, - "setTile": tiles_TileMapData_setTile__P1079, - "getTileImage": tiles_TileMapData_getTileImage__P1081, - "isWall": tiles_TileMapData_isWall__P1083, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P1084, + "width": tiles_TileMapData_width__P2303, + "height": tiles_TileMapData_height__P2304, + "scale": tiles_TileMapData_scale__P2305, + "set/scale": tiles_TileMapData_scale__P2306, + "getTile": tiles_TileMapData_getTile__P2307, + "setTile": tiles_TileMapData_setTile__P2308, + "getTileImage": tiles_TileMapData_getTileImage__P2310, + "isWall": tiles_TileMapData_isWall__P2312, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P2313, }, }); -const controller_Controller__C717_VT = mkVTable({ +const controller_Controller__C1920_VT = mkVTable({ name: "Controller", numFields: 5, - classNo: 62, - lastSubtypeNo: 62, + classNo: 61, + lastSubtypeNo: 61, maxBgInstances: null, methods: { }, @@ -86399,21 +86376,98 @@ const controller_Controller__C717_VT = mkVTable({ "set/_id": null, "_connected": null, "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P718, - "set/_controlledSprites": controller_Controller__controlledSprites__P719, - "id": controller_Controller_id__P720, - "left": controller_Controller_left__P722, - "right": controller_Controller_right__P723, - "up": controller_Controller_up__P724, - "down": controller_Controller_down__P725, - "button": controller_Controller_button__P730, - "connected": controller_Controller_connected__P733, - "set/connected": controller_Controller_connected__P734, - "__preUpdate": controller_Controller___preUpdate__P738, - "__update": controller_Controller___update__P739, + "_controlledSprites": controller_Controller__controlledSprites__P1925, + "set/_controlledSprites": controller_Controller__controlledSprites__P1926, + "id": controller_Controller_id__P1927, + "left": controller_Controller_left__P1929, + "right": controller_Controller_right__P1930, + "up": controller_Controller_up__P1931, + "down": controller_Controller_down__P1932, + "button": controller_Controller_button__P4121, + "connected": controller_Controller_connected__P1939, + "set/connected": controller_Controller_connected__P1940, + "__preUpdate": controller_Controller___preUpdate__P1944, + "__update": controller_Controller___update__P1945, + }, +}); +const ArcadePhysicsEngine__C2170_VT = mkVTable({ + name: "ArcadePhysicsEngine", + numFields: 6, + classNo: 54, + lastSubtypeNo: 54, + maxBgInstances: null, + methods: { + "addSprite": ArcadePhysicsEngine_addSprite__P2179, + "removeSprite": ArcadePhysicsEngine_removeSprite__P2180, + "moveSprite": ArcadePhysicsEngine_moveSprite__P2184, + "draw": ArcadePhysicsEngine_draw__P2181, + "move": ArcadePhysicsEngine_move__P2182, + }, + iface: { + "sprites": null, + "set/sprites": null, + "map": null, + "set/map": null, + "maxVelocity": null, + "set/maxVelocity": null, + "maxNegativeVelocity": null, + "set/maxNegativeVelocity": null, + "minSingleStep": null, + "set/minSingleStep": null, + "maxSingleStep": null, + "set/maxSingleStep": null, + "maxSpeed": ArcadePhysicsEngine_maxSpeed__P2172, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P2173, + "minStep": ArcadePhysicsEngine_minStep__P2174, + "set/minStep": ArcadePhysicsEngine_minStep__P2175, + "maxStep": ArcadePhysicsEngine_maxStep__P2176, + "set/maxStep": ArcadePhysicsEngine_maxStep__P2177, + "addSprite": ArcadePhysicsEngine_addSprite__P2179, + "removeSprite": ArcadePhysicsEngine_removeSprite__P2180, + "draw": ArcadePhysicsEngine_draw__P2181, + "move": ArcadePhysicsEngine_move__P2182, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P4150, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P4151, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P4152, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P4153, + "moveSprite": ArcadePhysicsEngine_moveSprite__P2184, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P4154, + "constrain": ArcadePhysicsEngine_constrain__P4155, + }, +}); +const sprites_SpriteMap__C2091_VT = mkVTable({ + name: "SpriteMap", + numFields: 5, + classNo: 62, + lastSubtypeNo: 62, + maxBgInstances: null, + methods: { + }, + iface: { + "cellWidth": null, + "set/cellWidth": null, + "cellHeight": null, + "set/cellHeight": null, + "rowCount": null, + "set/rowCount": null, + "columnCount": null, + "set/columnCount": null, + "buckets": null, + "set/buckets": null, + "neighbors": sprites_SpriteMap_neighbors__P2093, + "overlaps": sprites_SpriteMap_overlaps__P2094, + "draw": sprites_SpriteMap_draw__P2095, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P2096, + "clear": sprites_SpriteMap_clear__P2097, + "key": sprites_SpriteMap_key__P4127, + "insertAtKey": sprites_SpriteMap_insertAtKey__P4128, + "insertAABB": sprites_SpriteMap_insertAABB__P2098, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P4129, + "toString": sprites_SpriteMap_toString__P2099, }, + toStringMethod: sprites_SpriteMap_toString__P2099, }); -const music_Melody__C444_VT = mkVTable({ +const music_Melody__C1595_VT = mkVTable({ name: "Melody", numFields: 2, classNo: 63, @@ -86426,20 +86480,20 @@ const music_Melody__C444_VT = mkVTable({ "set/_text": null, "_player": null, "set/_player": null, - "toString": music_Melody_toString__P454, + "toString": music_Melody_toString__P1604, }, - toStringMethod: music_Melody_toString__P454, + toStringMethod: music_Melody_toString__P1604, }); -const tileworld_Gallery__C15344_VT = mkVTable({ +const tileworld_Gallery__C3823_VT = mkVTable({ name: "Gallery", numFields: 11, classNo: 25, lastSubtypeNo: 25, maxBgInstances: null, methods: { - "update": tileworld_Gallery_update__P15346, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "cursorMove": tileworld_RuleVisualsBase_cursorMove__P10856, + "update": tileworld_Gallery_update__P17156, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702, }, iface: { "cursor": null, @@ -86464,26 +86518,26 @@ const tileworld_Gallery__C15344_VT = mkVTable({ "set/wrapper": null, "gallery": null, "set/gallery": null, - "update": tileworld_Gallery_update__P15346, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, - "cursorMove": tileworld_RuleVisualsBase_cursorMove__P10856, + "update": tileworld_Gallery_update__P17156, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, + "cursorMove": tileworld_RuleVisualsBase_cursorMove__P12702, }, }); -const tileworld_SwitchExport__C5978_VT = mkVTable({ +const tileworld_SwitchExport__C3666_VT = mkVTable({ name: "SwitchExport", numFields: 2, classNo: 64, @@ -86496,18 +86550,18 @@ const tileworld_SwitchExport__C5978_VT = mkVTable({ "set/p": null, "backgrounds": null, "set/backgrounds": null, - "getImage": tileworld_SwitchExport_getImage__P5980, - "saveImage": tileworld_SwitchExport_saveImage__P5981, + "getImage": tileworld_SwitchExport_getImage__P3669, + "saveImage": tileworld_SwitchExport_saveImage__P3670, }, }); -const tileworld_RunGame__C9491_VT = mkVTable({ +const tileworld_RunGame__C3773_VT = mkVTable({ name: "RunGame", numFields: 7, classNo: 30, lastSubtypeNo: 30, maxBgInstances: null, methods: { - "update": tileworld_BackgroundBase_update__P9494, + "update": tileworld_BackgroundBase_update__P11383, }, iface: { "running": null, @@ -86524,22 +86578,22 @@ const tileworld_RunGame__C9491_VT = mkVTable({ "set/debug": null, "currentDirection": null, "set/currentDirection": null, - "setWorld": tileworld_RunGame_setWorld__P9495, - "roundToCompletion": tileworld_RunGame_roundToCompletion__P9496, - "start": tileworld_RunGame_start__P9497, - "registerController": tileworld_RunGame_registerController__P9499, - "requestMove": tileworld_RunGame_requestMove__P9500, - "update": tileworld_BackgroundBase_update__P9494, + "setWorld": tileworld_RunGame_setWorld__P3775, + "roundToCompletion": tileworld_RunGame_roundToCompletion__P11384, + "start": tileworld_RunGame_start__P3776, + "registerController": tileworld_RunGame_registerController__P11386, + "requestMove": tileworld_RunGame_requestMove__P11387, + "update": tileworld_BackgroundBase_update__P11383, }, }); -const tileworld_MapEditor__C13477_VT = mkVTable({ +const tileworld_MapEditor__C3819_VT = mkVTable({ name: "MapEditor", numFields: 9, classNo: 31, lastSubtypeNo: 31, maxBgInstances: null, methods: { - "update": tileworld_MapEditor_update__P13491, + "update": tileworld_MapEditor_update__P3821, }, iface: { "offsetX": null, @@ -86560,28 +86614,28 @@ const tileworld_MapEditor__C13477_VT = mkVTable({ "set/aDown": null, "p": null, "set/p": null, - "paintHome": tileworld_MapEditor_paintHome__P13480, - "setCursor": tileworld_MapEditor_setCursor__P13481, - "moveLeft": tileworld_MapEditor_moveLeft__P13482, - "moveRight": tileworld_MapEditor_moveRight__P13483, - "moveUp": tileworld_MapEditor_moveUp__P13484, - "moveDown": tileworld_MapEditor_moveDown__P13485, - "updateSelection": tileworld_MapEditor_updateSelection__P13486, - "cursorAction": tileworld_MapEditor_cursorAction__P13487, - "col": tileworld_MapEditor_col__P13488, - "row": tileworld_MapEditor_row__P13489, - "drawImage": tileworld_MapEditor_drawImage__P13490, - "update": tileworld_MapEditor_update__P13491, + "paintHome": tileworld_MapEditor_paintHome__P15295, + "setCursor": tileworld_MapEditor_setCursor__P15296, + "moveLeft": tileworld_MapEditor_moveLeft__P15297, + "moveRight": tileworld_MapEditor_moveRight__P15298, + "moveUp": tileworld_MapEditor_moveUp__P15299, + "moveDown": tileworld_MapEditor_moveDown__P15300, + "updateSelection": tileworld_MapEditor_updateSelection__P15301, + "cursorAction": tileworld_MapEditor_cursorAction__P15302, + "col": tileworld_MapEditor_col__P15303, + "row": tileworld_MapEditor_row__P15304, + "drawImage": tileworld_MapEditor_drawImage__P15305, + "update": tileworld_MapEditor_update__P3821, }, }); -const tileworld_ImageEditor__C10052_VT = mkVTable({ +const tileworld_ImageEditor__C3778_VT = mkVTable({ name: "ImageEditor", numFields: 10, classNo: 32, lastSubtypeNo: 32, maxBgInstances: null, methods: { - "update": tileworld_ImageEditor_update__P10061, + "update": tileworld_ImageEditor_update__P11913, }, iface: { "cursorType": null, @@ -86604,17 +86658,17 @@ const tileworld_ImageEditor__C10052_VT = mkVTable({ "set/dirty": null, "p": null, "set/p": null, - "paintPixel": tileworld_ImageEditor_paintPixel__P10054, - "moveLeft": tileworld_ImageEditor_moveLeft__P10055, - "moveRight": tileworld_ImageEditor_moveRight__P10056, - "moveUp": tileworld_ImageEditor_moveUp__P10057, - "moveDown": tileworld_ImageEditor_moveDown__P10058, - "saveAndPop": tileworld_ImageEditor_saveAndPop__P10059, - "setCursor": tileworld_ImageEditor_setCursor__P10060, - "update": tileworld_ImageEditor_update__P10061, + "paintPixel": tileworld_ImageEditor_paintPixel__P11906, + "moveLeft": tileworld_ImageEditor_moveLeft__P11907, + "moveRight": tileworld_ImageEditor_moveRight__P11908, + "moveUp": tileworld_ImageEditor_moveUp__P11909, + "moveDown": tileworld_ImageEditor_moveDown__P11910, + "saveAndPop": tileworld_ImageEditor_saveAndPop__P11911, + "setCursor": tileworld_ImageEditor_setCursor__P11912, + "update": tileworld_ImageEditor_update__P11913, }, }); -const tileworld_AllExport__C6025_VT = mkVTable({ +const tileworld_AllExport__C3671_VT = mkVTable({ name: "AllExport", numFields: 2, classNo: 65, @@ -86627,24 +86681,24 @@ const tileworld_AllExport__C6025_VT = mkVTable({ "set/allImages": null, "p": null, "set/p": null, - "getImages": tileworld_AllExport_getImages__P6026, - "getImage": tileworld_AllExport_getImage__P6027, - "saveImage": tileworld_AllExport_saveImage__P6028, - "getSetAttr": tileworld_AllExport_getSetAttr__P6029, + "getImages": tileworld_AllExport_getImages__P3673, + "getImage": tileworld_AllExport_getImage__P3674, + "saveImage": tileworld_AllExport_saveImage__P3675, + "getSetAttr": tileworld_AllExport_getSetAttr__P3676, }, }); -const tileworld_ruleediting_RuleDisplay__C11265_VT = mkVTable({ +const tileworld_ruleediting_RuleDisplay__C3797_VT = mkVTable({ name: "RuleDisplay", numFields: 13, classNo: 26, lastSubtypeNo: 29, maxBgInstances: null, methods: { - "update": tileworld_ruleediting_RuleDisplay_update__P11276, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "cursorMove": tileworld_ruleediting_RuleDisplay_cursorMove__P11273, - "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P11270, - "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P11288, + "update": tileworld_ruleediting_RuleDisplay_update__P13111, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "cursorMove": tileworld_ruleediting_RuleDisplay_cursorMove__P13108, + "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105, + "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123, }, iface: { "cursor": null, @@ -86673,59 +86727,59 @@ const tileworld_ruleediting_RuleDisplay__C11265_VT = mkVTable({ "set/commandLengths": null, "tokens": null, "set/tokens": null, - "getDir": tileworld_ruleediting_RuleDisplay_getDir__P11267, - "getType": tileworld_ruleediting_RuleDisplay_getType__P11268, - "getKind": tileworld_ruleediting_RuleDisplay_getKind__P11269, - "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P11270, - "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271, - "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272, - "cursorMove": tileworld_ruleediting_RuleDisplay_cursorMove__P11273, - "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P11274, - "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P11275, - "update": tileworld_ruleediting_RuleDisplay_update__P11276, - "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P11277, - "active": tileworld_ruleediting_RuleDisplay_active__P11278, - "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279, - "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280, - "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P11281, - "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P11282, - "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283, - "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P11284, - "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P11285, - "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P11286, - "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287, - "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P11288, - "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P11289, - "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P11290, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, + "getDir": tileworld_ruleediting_RuleDisplay_getDir__P13102, + "getType": tileworld_ruleediting_RuleDisplay_getType__P13103, + "getKind": tileworld_ruleediting_RuleDisplay_getKind__P13104, + "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105, + "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106, + "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107, + "cursorMove": tileworld_ruleediting_RuleDisplay_cursorMove__P13108, + "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P13109, + "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P13110, + "update": tileworld_ruleediting_RuleDisplay_update__P13111, + "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P13112, + "active": tileworld_ruleediting_RuleDisplay_active__P13113, + "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114, + "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115, + "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P13116, + "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P13117, + "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118, + "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P13119, + "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P13120, + "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P13121, + "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122, + "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123, + "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P13124, + "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P13125, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, }, }); -const tileworld_ruleediting_RuleRoom__C12555_VT = mkVTable({ +const tileworld_ruleediting_RuleRoom__C3805_VT = mkVTable({ name: "RuleRoom", numFields: 16, classNo: 27, lastSubtypeNo: 27, maxBgInstances: null, methods: { - "update": tileworld_ruleediting_RuleRoom_update__P12558, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "cursorMove": tileworld_ruleediting_RuleRoom_cursorMove__P12557, - "centerImage": tileworld_ruleediting_RuleRoom_centerImage__P12559, - "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P11288, + "update": tileworld_ruleediting_RuleRoom_update__P14387, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "cursorMove": tileworld_ruleediting_RuleRoom_cursorMove__P14386, + "centerImage": tileworld_ruleediting_RuleRoom_centerImage__P14388, + "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123, }, iface: { "cursor": null, @@ -86760,64 +86814,64 @@ const tileworld_ruleediting_RuleRoom__C12555_VT = mkVTable({ "set/moreHelp": null, "rules": null, "set/rules": null, - "cursorMove": tileworld_ruleediting_RuleRoom_cursorMove__P12557, - "update": tileworld_ruleediting_RuleRoom_update__P12558, - "centerImage": tileworld_ruleediting_RuleRoom_centerImage__P12559, - "make3by3": tileworld_ruleediting_RuleRoom_make3by3__P12560, - "setRuleType": tileworld_ruleediting_RuleRoom_setRuleType__P12561, - "doBoth": tileworld_ruleediting_RuleRoom_doBoth__P12562, - "stringColumn": tileworld_ruleediting_RuleRoom_stringColumn__P12563, - "showRuleMenu": tileworld_ruleediting_RuleRoom_showRuleMenu__P12564, - "getDir": tileworld_ruleediting_RuleDisplay_getDir__P11267, - "getType": tileworld_ruleediting_RuleDisplay_getType__P11268, - "getKind": tileworld_ruleediting_RuleDisplay_getKind__P11269, - "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271, - "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272, - "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P11274, - "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P11275, - "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P11277, - "active": tileworld_ruleediting_RuleDisplay_active__P11278, - "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279, - "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280, - "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P11281, - "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P11282, - "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283, - "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P11284, - "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P11285, - "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P11286, - "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287, - "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P11288, - "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P11289, - "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P11290, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, + "cursorMove": tileworld_ruleediting_RuleRoom_cursorMove__P14386, + "update": tileworld_ruleediting_RuleRoom_update__P14387, + "centerImage": tileworld_ruleediting_RuleRoom_centerImage__P14388, + "make3by3": tileworld_ruleediting_RuleRoom_make3by3__P14389, + "setRuleType": tileworld_ruleediting_RuleRoom_setRuleType__P14390, + "doBoth": tileworld_ruleediting_RuleRoom_doBoth__P14391, + "stringColumn": tileworld_ruleediting_RuleRoom_stringColumn__P14392, + "showRuleMenu": tileworld_ruleediting_RuleRoom_showRuleMenu__P14393, + "getDir": tileworld_ruleediting_RuleDisplay_getDir__P13102, + "getType": tileworld_ruleediting_RuleDisplay_getType__P13103, + "getKind": tileworld_ruleediting_RuleDisplay_getKind__P13104, + "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106, + "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107, + "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P13109, + "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P13110, + "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P13112, + "active": tileworld_ruleediting_RuleDisplay_active__P13113, + "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114, + "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115, + "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P13116, + "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P13117, + "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118, + "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P13119, + "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P13120, + "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P13121, + "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122, + "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123, + "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P13124, + "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P13125, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, }, }); -const tileworld_ruleediting_RuleEditor__C12671_VT = mkVTable({ +const tileworld_ruleediting_RuleEditor__C3816_VT = mkVTable({ name: "RuleEditor", numFields: 19, classNo: 28, lastSubtypeNo: 28, maxBgInstances: null, methods: { - "update": tileworld_ruleediting_RuleEditor_update__P12683, - "okToMove": tileworld_ruleediting_RuleEditor_okToMove__P12675, - "cursorMove": tileworld_ruleediting_RuleEditor_cursorMove__P12681, - "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P11270, - "showAttributes": tileworld_ruleediting_RuleEditor_showAttributes__P12694, + "update": tileworld_ruleediting_RuleEditor_update__P14510, + "okToMove": tileworld_ruleediting_RuleEditor_okToMove__P14502, + "cursorMove": tileworld_ruleediting_RuleEditor_cursorMove__P14508, + "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105, + "showAttributes": tileworld_ruleediting_RuleEditor_showAttributes__P14521, }, iface: { "cursor": null, @@ -86858,71 +86912,71 @@ const tileworld_ruleediting_RuleEditor__C12671_VT = mkVTable({ "set/askDeleteRule": null, "kind": null, "set/kind": null, - "mainMenu": tileworld_ruleediting_RuleEditor_mainMenu__P12674, - "okToMove": tileworld_ruleediting_RuleEditor_okToMove__P12675, - "restoreCursor": tileworld_ruleediting_RuleEditor_restoreCursor__P12676, - "changeRule": tileworld_ruleediting_RuleEditor_changeRule__P12677, - "resetRule": tileworld_ruleediting_RuleEditor_resetRule__P12678, - "saveAndPop": tileworld_ruleediting_RuleEditor_saveAndPop__P12679, - "currentRules": tileworld_ruleediting_RuleEditor_currentRules__P12680, - "cursorMove": tileworld_ruleediting_RuleEditor_cursorMove__P12681, - "inWhenPredicate": tileworld_ruleediting_RuleEditor_inWhenPredicate__P12682, - "update": tileworld_ruleediting_RuleEditor_update__P12683, - "showMainMenu": tileworld_ruleediting_RuleEditor_showMainMenu__P12684, - "tryEditCommand": tileworld_ruleediting_RuleEditor_tryEditCommand__P12685, - "makeCommandMenu": tileworld_ruleediting_RuleEditor_makeCommandMenu__P12686, - "modifyCommandMenu": tileworld_ruleediting_RuleEditor_modifyCommandMenu__P12687, - "instToStartArg": tileworld_ruleediting_RuleEditor_instToStartArg__P12688, - "instToArgText": tileworld_ruleediting_RuleEditor_instToArgText__P12689, - "instToNumArgs": tileworld_ruleediting_RuleEditor_instToNumArgs__P12690, - "makeArgMenu": tileworld_ruleediting_RuleEditor_makeArgMenu__P12691, - "commandUpdate": tileworld_ruleediting_RuleEditor_commandUpdate__P12692, - "setCommand": tileworld_ruleediting_RuleEditor_setCommand__P12693, - "showAttributes": tileworld_ruleediting_RuleEditor_showAttributes__P12694, - "attrMenu": tileworld_ruleediting_RuleEditor_attrMenu__P12695, - "selectAttr": tileworld_ruleediting_RuleEditor_selectAttr__P12696, - "attrUpdate": tileworld_ruleediting_RuleEditor_attrUpdate__P12697, - "setAttr": tileworld_ruleediting_RuleEditor_setAttr__P12698, - "dirExprMenu": tileworld_ruleediting_RuleEditor_dirExprMenu__P12699, - "dirExprUpdate": tileworld_ruleediting_RuleEditor_dirExprUpdate__P12700, - "getDir": tileworld_ruleediting_RuleDisplay_getDir__P11267, - "getType": tileworld_ruleediting_RuleDisplay_getType__P11268, - "getKind": tileworld_ruleediting_RuleDisplay_getKind__P11269, - "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P11270, - "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271, - "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272, - "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P11274, - "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P11275, - "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P11277, - "active": tileworld_ruleediting_RuleDisplay_active__P11278, - "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279, - "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280, - "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P11281, - "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P11282, - "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283, - "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P11284, - "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P11285, - "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P11286, - "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287, - "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P11289, - "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P11290, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, + "mainMenu": tileworld_ruleediting_RuleEditor_mainMenu__P14501, + "okToMove": tileworld_ruleediting_RuleEditor_okToMove__P14502, + "restoreCursor": tileworld_ruleediting_RuleEditor_restoreCursor__P14503, + "changeRule": tileworld_ruleediting_RuleEditor_changeRule__P14504, + "resetRule": tileworld_ruleediting_RuleEditor_resetRule__P14505, + "saveAndPop": tileworld_ruleediting_RuleEditor_saveAndPop__P14506, + "currentRules": tileworld_ruleediting_RuleEditor_currentRules__P14507, + "cursorMove": tileworld_ruleediting_RuleEditor_cursorMove__P14508, + "inWhenPredicate": tileworld_ruleediting_RuleEditor_inWhenPredicate__P14509, + "update": tileworld_ruleediting_RuleEditor_update__P14510, + "showMainMenu": tileworld_ruleediting_RuleEditor_showMainMenu__P14511, + "tryEditCommand": tileworld_ruleediting_RuleEditor_tryEditCommand__P14512, + "makeCommandMenu": tileworld_ruleediting_RuleEditor_makeCommandMenu__P14513, + "modifyCommandMenu": tileworld_ruleediting_RuleEditor_modifyCommandMenu__P14514, + "instToStartArg": tileworld_ruleediting_RuleEditor_instToStartArg__P14515, + "instToArgText": tileworld_ruleediting_RuleEditor_instToArgText__P14516, + "instToNumArgs": tileworld_ruleediting_RuleEditor_instToNumArgs__P14517, + "makeArgMenu": tileworld_ruleediting_RuleEditor_makeArgMenu__P14518, + "commandUpdate": tileworld_ruleediting_RuleEditor_commandUpdate__P14519, + "setCommand": tileworld_ruleediting_RuleEditor_setCommand__P14520, + "showAttributes": tileworld_ruleediting_RuleEditor_showAttributes__P14521, + "attrMenu": tileworld_ruleediting_RuleEditor_attrMenu__P14522, + "selectAttr": tileworld_ruleediting_RuleEditor_selectAttr__P14523, + "attrUpdate": tileworld_ruleediting_RuleEditor_attrUpdate__P14524, + "setAttr": tileworld_ruleediting_RuleEditor_setAttr__P14525, + "dirExprMenu": tileworld_ruleediting_RuleEditor_dirExprMenu__P14526, + "dirExprUpdate": tileworld_ruleediting_RuleEditor_dirExprUpdate__P14527, + "getDir": tileworld_ruleediting_RuleDisplay_getDir__P13102, + "getType": tileworld_ruleediting_RuleDisplay_getType__P13103, + "getKind": tileworld_ruleediting_RuleDisplay_getKind__P13104, + "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105, + "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106, + "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107, + "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P13109, + "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P13110, + "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P13112, + "active": tileworld_ruleediting_RuleDisplay_active__P13113, + "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114, + "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115, + "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P13116, + "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P13117, + "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118, + "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P13119, + "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P13120, + "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P13121, + "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122, + "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P13124, + "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P13125, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, }, }); -const tileworld_RuleView__C4976_VT = mkVTable({ +const tileworld_RuleView__C3630_VT = mkVTable({ name: "RuleView", numFields: 4, classNo: 66, @@ -86939,51 +86993,51 @@ const tileworld_RuleView__C4976_VT = mkVTable({ "set/rid": null, "r": null, "set/r": null, - "getBaseRule": tileworld_RuleView_getBaseRule__P4977, - "getDerivedRules": tileworld_RuleView_getDerivedRules__P4978, - "getTransforms": tileworld_RuleView_getTransforms__P4980, - "setTransforms": tileworld_RuleView_setTransforms__P4981, - "getRuleId": tileworld_RuleView_getRuleId__P4982, - "getRuleType": tileworld_RuleView_getRuleType__P4983, - "getRuleArg": tileworld_RuleView_getRuleArg__P4985, - "getDirFromRule": tileworld_RuleView_getDirFromRule__P4987, - "rawView": tileworld_RuleView_rawView__P4988, - "getWhenDo": tileworld_RuleView_getWhenDo__P4608, - "makeWhenDo": tileworld_RuleView_makeWhenDo__P4989, - "getWhenDoCol": tileworld_RuleView_getWhenDoCol__P4990, - "getWhenDoRow": tileworld_RuleView_getWhenDoRow__P4991, - "getSetBuffAttr": tileworld_RuleView_getSetBuffAttr__P4992, - "getSetBgAttr": tileworld_RuleView_getSetBgAttr__P4993, - "getSetSpAttr": tileworld_RuleView_getSetSpAttr__P4994, - "attrCnt": tileworld_RuleView_attrCnt__P4630, - "attrBgIndex": tileworld_RuleView_attrBgIndex__P4995, - "attrSpIndex": tileworld_RuleView_attrSpIndex__P4996, - "findWitnessColRow": tileworld_RuleView_findWitnessColRow__P4997, - "getWitnessDirection": tileworld_RuleView_getWitnessDirection__P4998, - "setWitnessDirection": tileworld_RuleView_setWitnessDirection__P4999, - "getCmdsLen": tileworld_RuleView_getCmdsLen__P4622, - "getCmdInst": tileworld_RuleView_getCmdInst__P5000, - "getCmdArg": tileworld_RuleView_getCmdArg__P5001, - "setCmdInst": tileworld_RuleView_setCmdInst__P5002, - "setCmdArg": tileworld_RuleView_setCmdArg__P5003, - "removeCommand": tileworld_RuleView_removeCommand__P5004, - "getSpriteKinds": tileworld_RuleView_getSpriteKinds__P5005, - "hasSpriteKind": tileworld_RuleView_hasSpriteKind__P5006, - "whendoTrue": tileworld_RuleView_whendoTrue__P5007, + "getBaseRule": tileworld_RuleView_getBaseRule__P3632, + "getDerivedRules": tileworld_RuleView_getDerivedRules__P3633, + "getTransforms": tileworld_RuleView_getTransforms__P3635, + "setTransforms": tileworld_RuleView_setTransforms__P3636, + "getRuleId": tileworld_RuleView_getRuleId__P3637, + "getRuleType": tileworld_RuleView_getRuleType__P3638, + "getRuleArg": tileworld_RuleView_getRuleArg__P3640, + "getDirFromRule": tileworld_RuleView_getDirFromRule__P3642, + "rawView": tileworld_RuleView_rawView__P7044, + "getWhenDo": tileworld_RuleView_getWhenDo__P3643, + "makeWhenDo": tileworld_RuleView_makeWhenDo__P3644, + "getWhenDoCol": tileworld_RuleView_getWhenDoCol__P3645, + "getWhenDoRow": tileworld_RuleView_getWhenDoRow__P3646, + "getSetBuffAttr": tileworld_RuleView_getSetBuffAttr__P7045, + "getSetBgAttr": tileworld_RuleView_getSetBgAttr__P3647, + "getSetSpAttr": tileworld_RuleView_getSetSpAttr__P3648, + "attrCnt": tileworld_RuleView_attrCnt__P3649, + "attrBgIndex": tileworld_RuleView_attrBgIndex__P7046, + "attrSpIndex": tileworld_RuleView_attrSpIndex__P7047, + "findWitnessColRow": tileworld_RuleView_findWitnessColRow__P3650, + "getWitnessDirection": tileworld_RuleView_getWitnessDirection__P3651, + "setWitnessDirection": tileworld_RuleView_setWitnessDirection__P3652, + "getCmdsLen": tileworld_RuleView_getCmdsLen__P3653, + "getCmdInst": tileworld_RuleView_getCmdInst__P3654, + "getCmdArg": tileworld_RuleView_getCmdArg__P3655, + "setCmdInst": tileworld_RuleView_setCmdInst__P3656, + "setCmdArg": tileworld_RuleView_setCmdArg__P3657, + "removeCommand": tileworld_RuleView_removeCommand__P3658, + "getSpriteKinds": tileworld_RuleView_getSpriteKinds__P3659, + "hasSpriteKind": tileworld_RuleView_hasSpriteKind__P3660, + "whendoTrue": tileworld_RuleView_whendoTrue__P3661, }, }); -const tileworld_ruleediting_RuleViewDisplay__C12387_VT = mkVTable({ +const tileworld_ruleediting_RuleViewDisplay__C3801_VT = mkVTable({ name: "RuleViewDisplay", numFields: 15, classNo: 29, lastSubtypeNo: 29, maxBgInstances: null, methods: { - "update": tileworld_ruleediting_RuleViewDisplay_update__P12391, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "cursorMove": tileworld_ruleediting_RuleViewDisplay_cursorMove__P12389, - "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P11270, - "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P11288, + "update": tileworld_ruleediting_RuleViewDisplay_update__P14222, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "cursorMove": tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220, + "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105, + "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123, }, iface: { "cursor": null, @@ -87016,49 +87070,49 @@ const tileworld_ruleediting_RuleViewDisplay__C12387_VT = mkVTable({ "set/ruleViews": null, "baseRule": null, "set/baseRule": null, - "cursorMove": tileworld_ruleediting_RuleViewDisplay_cursorMove__P12389, - "cursorToView": tileworld_ruleediting_RuleViewDisplay_cursorToView__P12390, - "update": tileworld_ruleediting_RuleViewDisplay_update__P12391, - "getDir": tileworld_ruleediting_RuleDisplay_getDir__P11267, - "getType": tileworld_ruleediting_RuleDisplay_getType__P11268, - "getKind": tileworld_ruleediting_RuleDisplay_getKind__P11269, - "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P11270, - "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P11271, - "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P11272, - "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P11274, - "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P11275, - "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P11277, - "active": tileworld_ruleediting_RuleDisplay_active__P11278, - "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P11279, - "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P11280, - "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P11281, - "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P11282, - "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P11283, - "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P11284, - "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P11285, - "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P11286, - "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P11287, - "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P11288, - "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P11289, - "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P11290, - "moveInX": tileworld_RuleVisualsBase_moveInX__P10841, - "moveUp": tileworld_RuleVisualsBase_moveUp__P10842, - "moveDown": tileworld_RuleVisualsBase_moveDown__P10843, - "okToMove": tileworld_RuleVisualsBase_okToMove__P10844, - "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P10845, - "setCol": tileworld_RuleVisualsBase_setCol__P10846, - "setRow": tileworld_RuleVisualsBase_setRow__P10847, - "col": tileworld_RuleVisualsBase_col__P10848, - "row": tileworld_RuleVisualsBase_row__P10849, - "drawImage": tileworld_RuleVisualsBase_drawImage__P10850, - "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P10851, - "drawOutline": tileworld_RuleVisualsBase_drawOutline__P10852, - "fillTile": tileworld_RuleVisualsBase_fillTile__P10853, - "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P10854, - "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P10855, + "cursorMove": tileworld_ruleediting_RuleViewDisplay_cursorMove__P14220, + "cursorToView": tileworld_ruleediting_RuleViewDisplay_cursorToView__P14221, + "update": tileworld_ruleediting_RuleViewDisplay_update__P14222, + "getDir": tileworld_ruleediting_RuleDisplay_getDir__P13102, + "getType": tileworld_ruleediting_RuleDisplay_getType__P13103, + "getKind": tileworld_ruleediting_RuleDisplay_getKind__P13104, + "centerImage": tileworld_ruleediting_RuleDisplay_centerImage__P13105, + "getDirectionImage": tileworld_ruleediting_RuleDisplay_getDirectionImage__P13106, + "otherCursorMove": tileworld_ruleediting_RuleDisplay_otherCursorMove__P13107, + "showCollision": tileworld_ruleediting_RuleDisplay_showCollision__P13109, + "showRuleType": tileworld_ruleediting_RuleDisplay_showRuleType__P13110, + "makeContext": tileworld_ruleediting_RuleDisplay_makeContext__P13112, + "active": tileworld_ruleediting_RuleDisplay_active__P13113, + "rowToColCoord": tileworld_ruleediting_RuleDisplay_rowToColCoord__P13114, + "rowToRowCoord": tileworld_ruleediting_RuleDisplay_rowToRowCoord__P13115, + "showCommands": tileworld_ruleediting_RuleDisplay_showCommands__P13116, + "instToImage": tileworld_ruleediting_RuleDisplay_instToImage__P13117, + "showCommandsAt": tileworld_ruleediting_RuleDisplay_showCommandsAt__P13118, + "showCommand": tileworld_ruleediting_RuleDisplay_showCommand__P13119, + "startTokens": tileworld_ruleediting_RuleDisplay_startTokens__P13120, + "updateTokens": tileworld_ruleediting_RuleDisplay_updateTokens__P13121, + "getWhenDoImage": tileworld_ruleediting_RuleDisplay_getWhenDoImage__P13122, + "showAttributes": tileworld_ruleediting_RuleDisplay_showAttributes__P13123, + "projectAttrs": tileworld_ruleediting_RuleDisplay_projectAttrs__P13124, + "attrIndex": tileworld_ruleediting_RuleDisplay_attrIndex__P13125, + "moveInX": tileworld_RuleVisualsBase_moveInX__P12687, + "moveUp": tileworld_RuleVisualsBase_moveUp__P12688, + "moveDown": tileworld_RuleVisualsBase_moveDown__P12689, + "okToMove": tileworld_RuleVisualsBase_okToMove__P12690, + "getRulesForTypeDir": tileworld_RuleVisualsBase_getRulesForTypeDir__P12691, + "setCol": tileworld_RuleVisualsBase_setCol__P12692, + "setRow": tileworld_RuleVisualsBase_setRow__P12693, + "col": tileworld_RuleVisualsBase_col__P12694, + "row": tileworld_RuleVisualsBase_row__P12695, + "drawImage": tileworld_RuleVisualsBase_drawImage__P12696, + "drawImageAbs": tileworld_RuleVisualsBase_drawImageAbs__P12697, + "drawOutline": tileworld_RuleVisualsBase_drawOutline__P12698, + "fillTile": tileworld_RuleVisualsBase_fillTile__P12699, + "setTileSaved": tileworld_RuleVisualsBase_setTileSaved__P12700, + "isTileSaved": tileworld_RuleVisualsBase_isTileSaved__P12701, }, }); -const tileworld_WhenDo__C4302_VT = mkVTable({ +const tileworld_WhenDo__C3603_VT = mkVTable({ name: "WhenDo", numFields: 7, classNo: 67, @@ -87083,7 +87137,7 @@ const tileworld_WhenDo__C4302_VT = mkVTable({ "set/commandsLen": null, }, }); -const sprites_SpriteSet__C844_VT = mkVTable({ +const sprites_SpriteSet__C2108_VT = mkVTable({ name: "SpriteSet", numFields: 1, classNo: 68, @@ -87094,15 +87148,15 @@ const sprites_SpriteSet__C844_VT = mkVTable({ iface: { "_sprites": null, "set/_sprites": null, - "length": sprites_SpriteSet_length__P846, - "add": sprites_SpriteSet_add__P848, - "remove": sprites_SpriteSet_remove__P850, - "contains": sprites_SpriteSet_contains__P851, - "toString": sprites_SpriteSet_toString__P854, + "length": sprites_SpriteSet_length__P2111, + "add": sprites_SpriteSet_add__P2113, + "remove": sprites_SpriteSet_remove__P2115, + "contains": sprites_SpriteSet_contains__P2116, + "toString": sprites_SpriteSet_toString__P2119, }, - toStringMethod: sprites_SpriteSet_toString__P854, + toStringMethod: sprites_SpriteSet_toString__P2119, }); -const game_Hitbox__C754_VT = mkVTable({ +const game_Hitbox__C1956_VT = mkVTable({ name: "Hitbox", numFields: 5, classNo: 69, @@ -87121,13 +87175,13 @@ const game_Hitbox__C754_VT = mkVTable({ "set/width": null, "height": null, "set/height": null, - "left": game_Hitbox_left__P755, - "top": game_Hitbox_top__P756, - "right": game_Hitbox_right__P757, - "bottom": game_Hitbox_bottom__P758, + "left": game_Hitbox_left__P1963, + "top": game_Hitbox_top__P1964, + "right": game_Hitbox_right__P1965, + "bottom": game_Hitbox_bottom__P1966, }, }); -const JSON_Stringifier__C274_VT = mkVTable({ +const JSON_Stringifier__C3950_VT = mkVTable({ name: "Stringifier", numFields: 3, classNo: 70, @@ -87142,11 +87196,11 @@ const JSON_Stringifier__C274_VT = mkVTable({ "set/indentStep": null, "indent": null, "set/indent": null, - "doString": JSON_Stringifier_doString__P275, - "go": JSON_Stringifier_go__P276, + "doString": JSON_Stringifier_doString__P3951, + "go": JSON_Stringifier_go__P3952, }, }); -const tileworld_Rule__C4315_VT = mkVTable({ +const tileworld_Rule__C3615_VT = mkVTable({ name: "Rule", numFields: 4, classNo: 71, @@ -87165,7 +87219,7 @@ const tileworld_Rule__C4315_VT = mkVTable({ "set/transforms": null, }, }); -const animation_Animation__C2106_VT = mkVTable({ +const animation_Animation__C2911_VT = mkVTable({ name: "Animation", numFields: 6, classNo: 72, @@ -87186,24 +87240,24 @@ const animation_Animation__C2106_VT = mkVTable({ "set/action": null, "lastTime": null, "set/lastTime": null, - "_init": animation_Animation__init__P2107, - "update": animation_Animation_update__P2108, - "getImage": animation_Animation_getImage__P2109, - "addAnimationFrame": animation_Animation_addAnimationFrame__P2113, - "registerSprite": animation_Animation_registerSprite__P2114, + "_init": animation_Animation__init__P2919, + "update": animation_Animation_update__P2920, + "getImage": animation_Animation_getImage__P2921, + "addAnimationFrame": animation_Animation_addAnimationFrame__P2925, + "registerSprite": animation_Animation_registerSprite__P2926, }, }); -const scene_Renderable__C1141_VT = mkVTable({ +const scene_Renderable__C2370_VT = mkVTable({ name: "Renderable", numFields: 4, classNo: 38, lastSubtypeNo: 38, maxBgInstances: null, methods: { - "__visible": scene_Renderable___visible__P1143, - "__draw": sprites_BaseSprite___draw__P643, - "__drawCore": scene_Renderable___drawCore__P1144, - "__update": sprites_BaseSprite___update__P645, + "__visible": scene_Renderable___visible__P2372, + "__draw": sprites_BaseSprite___draw__P1861, + "__drawCore": scene_Renderable___drawCore__P2373, + "__update": sprites_BaseSprite___update__P1863, }, iface: { "_z": null, @@ -87214,26 +87268,26 @@ const scene_Renderable__C1141_VT = mkVTable({ "set/handler": null, "shouldBeVisible": null, "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P1143, - "__drawCore": scene_Renderable___drawCore__P1144, - "z": sprites_BaseSprite_z__P641, - "set/z": sprites_BaseSprite_z__P642, - "__draw": sprites_BaseSprite___draw__P643, - "__update": sprites_BaseSprite___update__P645, + "__visible": scene_Renderable___visible__P2372, + "__drawCore": scene_Renderable___drawCore__P2373, + "z": sprites_BaseSprite_z__P1859, + "set/z": sprites_BaseSprite_z__P1860, + "__draw": sprites_BaseSprite___draw__P1861, + "__update": sprites_BaseSprite___update__P1863, }, }); -const tileworld_TileSprite__C7459_VT = mkVTable({ +const tileworld_TileSprite__C9368_VT = mkVTable({ name: "TileSprite", numFields: 33, classNo: 36, lastSubtypeNo: 36, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P793, - "__draw": sprites_BaseSprite___draw__P643, - "__drawCore": tileworld_TileSprite___drawCore__P7465, - "__update": Sprite___update__P812, - "isOutOfScreen": tileworld_TileSprite_isOutOfScreen__P7464, + "__visible": Sprite___visible__P2056, + "__draw": sprites_BaseSprite___draw__P1861, + "__drawCore": tileworld_TileSprite___drawCore__P9374, + "__update": Sprite___update__P2075, + "isOutOfScreen": tileworld_TileSprite_isOutOfScreen__P9373, }, iface: { "_z": null, @@ -87302,61 +87356,61 @@ const tileworld_TileSprite__C7459_VT = mkVTable({ "set/arg": null, "movedToStopped": null, "set/movedToStopped": null, - "col": tileworld_TileSprite_col__P7461, - "row": tileworld_TileSprite_row__P7462, - "update": tileworld_TileSprite_update__P7463, - "isOutOfScreen": tileworld_TileSprite_isOutOfScreen__P7464, - "__drawCore": tileworld_TileSprite___drawCore__P7465, - "x": Sprite_x__P770, - "set/x": Sprite_x__P771, - "y": Sprite_y__P772, - "set/y": Sprite_y__P773, - "vx": Sprite_vx__P774, - "set/vx": Sprite_vx__P775, - "vy": Sprite_vy__P776, - "set/vy": Sprite_vy__P777, - "ax": Sprite_ax__P778, - "set/ax": Sprite_ax__P779, - "ay": Sprite_ay__P780, - "set/ay": Sprite_ay__P781, - "fx": Sprite_fx__P782, - "set/fx": Sprite_fx__P783, - "fy": Sprite_fy__P784, - "set/fy": Sprite_fy__P785, - "data": Sprite_data__P786, - "set/data": Sprite_data__P787, - "image": Sprite_image__P789, - "setImage": Sprite_setImage__P790, - "setHitbox": Sprite_setHitbox__P791, - "isStatic": Sprite_isStatic__P792, - "__visible": Sprite___visible__P793, - "width": Sprite_width__P794, - "height": Sprite_height__P795, - "left": Sprite_left__P796, - "set/left": Sprite_left__P797, - "right": Sprite_right__P798, - "set/right": Sprite_right__P799, - "top": Sprite_top__P800, - "set/top": Sprite_top__P801, - "bottom": Sprite_bottom__P802, - "set/bottom": Sprite_bottom__P803, - "kind": Sprite_kind__P804, - "setKind": Sprite_setKind__P805, - "say": Sprite_say__P808, - "__update": Sprite___update__P812, - "setFlag": Sprite_setFlag__P813, - "overlapsWith": Sprite_overlapsWith__P814, - "clearObstacles": Sprite_clearObstacles__P818, - "registerObstacle": Sprite_registerObstacle__P819, - "destroy": Sprite_destroy__P821, - "_destroyCore": Sprite__destroyCore__P822, - "toString": Sprite_toString__P824, - "z": sprites_BaseSprite_z__P641, - "set/z": sprites_BaseSprite_z__P642, - "__draw": sprites_BaseSprite___draw__P643, + "col": tileworld_TileSprite_col__P9370, + "row": tileworld_TileSprite_row__P9371, + "update": tileworld_TileSprite_update__P9372, + "isOutOfScreen": tileworld_TileSprite_isOutOfScreen__P9373, + "__drawCore": tileworld_TileSprite___drawCore__P9374, + "x": Sprite_x__P2022, + "set/x": Sprite_x__P2023, + "y": Sprite_y__P2024, + "set/y": Sprite_y__P2025, + "vx": Sprite_vx__P2026, + "set/vx": Sprite_vx__P2027, + "vy": Sprite_vy__P2028, + "set/vy": Sprite_vy__P2029, + "ax": Sprite_ax__P2030, + "set/ax": Sprite_ax__P2031, + "ay": Sprite_ay__P2032, + "set/ay": Sprite_ay__P2033, + "fx": Sprite_fx__P2034, + "set/fx": Sprite_fx__P2035, + "fy": Sprite_fy__P2036, + "set/fy": Sprite_fy__P2037, + "data": Sprite_data__P2038, + "set/data": Sprite_data__P2039, + "image": Sprite_image__P2052, + "setImage": Sprite_setImage__P2053, + "setHitbox": Sprite_setHitbox__P2054, + "isStatic": Sprite_isStatic__P2055, + "__visible": Sprite___visible__P2056, + "width": Sprite_width__P2057, + "height": Sprite_height__P2058, + "left": Sprite_left__P2059, + "set/left": Sprite_left__P2060, + "right": Sprite_right__P2061, + "set/right": Sprite_right__P2062, + "top": Sprite_top__P2063, + "set/top": Sprite_top__P2064, + "bottom": Sprite_bottom__P2065, + "set/bottom": Sprite_bottom__P2066, + "kind": Sprite_kind__P2067, + "setKind": Sprite_setKind__P2068, + "say": Sprite_say__P2071, + "__update": Sprite___update__P2075, + "setFlag": Sprite_setFlag__P2076, + "overlapsWith": Sprite_overlapsWith__P2077, + "clearObstacles": Sprite_clearObstacles__P2081, + "registerObstacle": Sprite_registerObstacle__P2082, + "destroy": Sprite_destroy__P2084, + "_destroyCore": Sprite__destroyCore__P2085, + "toString": Sprite_toString__P2087, + "z": sprites_BaseSprite_z__P1859, + "set/z": sprites_BaseSprite_z__P1860, + "__draw": sprites_BaseSprite___draw__P1861, }, }); -const tileworld_TileWorldVM__C7665_VT = mkVTable({ +const tileworld_TileWorldVM__C9567_VT = mkVTable({ name: "TileWorldVM", numFields: 7, classNo: 73, @@ -87379,31 +87433,31 @@ const tileworld_TileWorldVM__C7665_VT = mkVTable({ "set/p": null, "rules": null, "set/rules": null, - "setState": tileworld_TileWorldVM_setState__P7666, - "startRound": tileworld_TileWorldVM_startRound__P7667, - "processClosure": tileworld_TileWorldVM_processClosure__P7668, - "continueRound": tileworld_TileWorldVM_continueRound__P7669, - "allSprites": tileworld_TileWorldVM_allSprites__P7670, - "contextChanged": tileworld_TileWorldVM_contextChanged__P7671, - "ruleMatchesSprite": tileworld_TileWorldVM_ruleMatchesSprite__P7672, - "exprMatchesDirection": tileworld_TileWorldVM_exprMatchesDirection__P7673, - "ruleMatchesDirection": tileworld_TileWorldVM_ruleMatchesDirection__P7674, - "applyRules": tileworld_TileWorldVM_applyRules__P7675, - "collidingRules": tileworld_TileWorldVM_collidingRules__P7676, - "moving": tileworld_TileWorldVM_moving__P7677, - "collisionDetection": tileworld_TileWorldVM_collisionDetection__P7678, - "collide": tileworld_TileWorldVM_collide__P7680, - "updateWorld": tileworld_TileWorldVM_updateWorld__P7681, - "evaluateRule": tileworld_TileWorldVM_evaluateRule__P7682, - "getWitness": tileworld_TileWorldVM_getWitness__P7683, - "inBounds": tileworld_TileWorldVM_inBounds__P7684, - "evaluateWhenDo": tileworld_TileWorldVM_evaluateWhenDo__P7685, - "manhattan": tileworld_TileWorldVM_manhattan__P7686, - "evaluateRuleClosure": tileworld_TileWorldVM_evaluateRuleClosure__P7687, - "evaluateWhenDoCommands": tileworld_TileWorldVM_evaluateWhenDoCommands__P7688, + "setState": tileworld_TileWorldVM_setState__P9568, + "startRound": tileworld_TileWorldVM_startRound__P9569, + "processClosure": tileworld_TileWorldVM_processClosure__P9570, + "continueRound": tileworld_TileWorldVM_continueRound__P9571, + "allSprites": tileworld_TileWorldVM_allSprites__P9572, + "contextChanged": tileworld_TileWorldVM_contextChanged__P9573, + "ruleMatchesSprite": tileworld_TileWorldVM_ruleMatchesSprite__P9574, + "exprMatchesDirection": tileworld_TileWorldVM_exprMatchesDirection__P9575, + "ruleMatchesDirection": tileworld_TileWorldVM_ruleMatchesDirection__P9576, + "applyRules": tileworld_TileWorldVM_applyRules__P9577, + "collidingRules": tileworld_TileWorldVM_collidingRules__P9578, + "moving": tileworld_TileWorldVM_moving__P9579, + "collisionDetection": tileworld_TileWorldVM_collisionDetection__P9580, + "collide": tileworld_TileWorldVM_collide__P9582, + "updateWorld": tileworld_TileWorldVM_updateWorld__P9583, + "evaluateRule": tileworld_TileWorldVM_evaluateRule__P9584, + "getWitness": tileworld_TileWorldVM_getWitness__P9585, + "inBounds": tileworld_TileWorldVM_inBounds__P9586, + "evaluateWhenDo": tileworld_TileWorldVM_evaluateWhenDo__P9587, + "manhattan": tileworld_TileWorldVM_manhattan__P9588, + "evaluateRuleClosure": tileworld_TileWorldVM_evaluateRuleClosure__P9589, + "evaluateWhenDoCommands": tileworld_TileWorldVM_evaluateWhenDoCommands__P9590, }, }); -const tileworld_Tile__C7646_VT = mkVTable({ +const tileworld_Tile__C9548_VT = mkVTable({ name: "Tile", numFields: 3, classNo: 74, @@ -87420,7 +87474,7 @@ const tileworld_Tile__C7646_VT = mkVTable({ "set/kind": null, }, }); -const tileworld_RuleClosure__C7659_VT = mkVTable({ +const tileworld_RuleClosure__C9561_VT = mkVTable({ name: "RuleClosure", numFields: 3, classNo: 75, @@ -87437,7 +87491,7 @@ const tileworld_RuleClosure__C7659_VT = mkVTable({ "set/witnesses": null, }, }); -const tileworld_VMState__C7652_VT = mkVTable({ +const tileworld_VMState__C9554_VT = mkVTable({ name: "VMState", numFields: 14, classNo: 76, @@ -87476,29 +87530,29 @@ const tileworld_VMState__C7652_VT = mkVTable({ "set/changed": null, }, }); -const tiles_legacy_LegacyTilemap__C9551_VT = mkVTable({ +const tiles_legacy_LegacyTilemap__C3850_VT = mkVTable({ name: "LegacyTilemap", numFields: 7, - classNo: 60, - lastSubtypeNo: 60, + classNo: 59, + lastSubtypeNo: 59, maxBgInstances: null, methods: { - "data": tiles_legacy_LegacyTilemap_data__P9554, - "offsetX": tiles_legacy_LegacyTilemap_offsetX__P9558, - "offsetY": tiles_legacy_LegacyTilemap_offsetY__P9559, - "areaWidth": tiles_legacy_LegacyTilemap_areaWidth__P9560, - "areaHeight": tiles_legacy_LegacyTilemap_areaHeight__P9561, - "layer": tiles_legacy_LegacyTilemap_layer__P9562, - "enabled": tiles_legacy_LegacyTilemap_enabled__P9564, - "getTile": tiles_legacy_LegacyTilemap_getTile__P9568, - "getTileIndex": tiles_legacy_LegacyTilemap_getTileIndex__P9579, - "setTileAt": tiles_legacy_LegacyTilemap_setTileAt__P9569, - "isInvalidIndex": tiles_legacy_LegacyTilemap_isInvalidIndex__P9574, - "draw": tiles_legacy_LegacyTilemap_draw__P9575, - "isObstacle": tiles_legacy_LegacyTilemap_isObstacle__P9576, - "getObstacle": tiles_legacy_LegacyTilemap_getObstacle__P9577, - "isOnWall": tiles_legacy_LegacyTilemap_isOnWall__P9578, - "getTileImage": tiles_legacy_LegacyTilemap_getTileImage__P9580, + "data": tiles_legacy_LegacyTilemap_data__P3853, + "offsetX": tiles_legacy_LegacyTilemap_offsetX__P3857, + "offsetY": tiles_legacy_LegacyTilemap_offsetY__P3858, + "areaWidth": tiles_legacy_LegacyTilemap_areaWidth__P3859, + "areaHeight": tiles_legacy_LegacyTilemap_areaHeight__P3860, + "layer": tiles_legacy_LegacyTilemap_layer__P3861, + "enabled": tiles_legacy_LegacyTilemap_enabled__P3863, + "getTile": tiles_legacy_LegacyTilemap_getTile__P3867, + "getTileIndex": tiles_legacy_LegacyTilemap_getTileIndex__P3874, + "setTileAt": tiles_legacy_LegacyTilemap_setTileAt__P3868, + "isInvalidIndex": tiles_legacy_LegacyTilemap_isInvalidIndex__P11440, + "draw": tiles_legacy_LegacyTilemap_draw__P11441, + "isObstacle": tiles_legacy_LegacyTilemap_isObstacle__P3871, + "getObstacle": tiles_legacy_LegacyTilemap_getObstacle__P3872, + "isOnWall": tiles_legacy_LegacyTilemap_isOnWall__P3873, + "getTileImage": tiles_legacy_LegacyTilemap_getTileImage__P3875, }, iface: { "_scale": null, @@ -87515,33 +87569,33 @@ const tiles_legacy_LegacyTilemap__C9551_VT = mkVTable({ "set/_screenX": null, "isLegacy": null, "set/isLegacy": null, - "data": tiles_legacy_LegacyTilemap_data__P9554, - "myLeft": tiles_legacy_LegacyTilemap_myLeft__P9556, - "myWidth": tiles_legacy_LegacyTilemap_myWidth__P9557, - "offsetX": tiles_legacy_LegacyTilemap_offsetX__P9558, - "offsetY": tiles_legacy_LegacyTilemap_offsetY__P9559, - "areaWidth": tiles_legacy_LegacyTilemap_areaWidth__P9560, - "areaHeight": tiles_legacy_LegacyTilemap_areaHeight__P9561, - "layer": tiles_legacy_LegacyTilemap_layer__P9562, - "enabled": tiles_legacy_LegacyTilemap_enabled__P9564, - "setTile": tiles_legacy_LegacyTilemap_setTile__P9565, - "setMap": tiles_legacy_LegacyTilemap_setMap__P9566, - "getTile": tiles_legacy_LegacyTilemap_getTile__P9568, - "setTileAt": tiles_legacy_LegacyTilemap_setTileAt__P9569, - "generateTile": tiles_legacy_LegacyTilemap_generateTile__P9572, - "isOutsideMap": tiles_legacy_LegacyTilemap_isOutsideMap__P9573, - "isInvalidIndex": tiles_legacy_LegacyTilemap_isInvalidIndex__P9574, - "draw": tiles_legacy_LegacyTilemap_draw__P9575, - "isObstacle": tiles_legacy_LegacyTilemap_isObstacle__P9576, - "getObstacle": tiles_legacy_LegacyTilemap_getObstacle__P9577, - "isOnWall": tiles_legacy_LegacyTilemap_isOnWall__P9578, - "getTileIndex": tiles_legacy_LegacyTilemap_getTileIndex__P9579, - "getTileImage": tiles_legacy_LegacyTilemap_getTileImage__P9580, - "scale": tiles_TileMap_scale__P1087, - "set/scale": tiles_TileMap_scale__P1088, + "data": tiles_legacy_LegacyTilemap_data__P3853, + "myLeft": tiles_legacy_LegacyTilemap_myLeft__P3855, + "myWidth": tiles_legacy_LegacyTilemap_myWidth__P3856, + "offsetX": tiles_legacy_LegacyTilemap_offsetX__P3857, + "offsetY": tiles_legacy_LegacyTilemap_offsetY__P3858, + "areaWidth": tiles_legacy_LegacyTilemap_areaWidth__P3859, + "areaHeight": tiles_legacy_LegacyTilemap_areaHeight__P3860, + "layer": tiles_legacy_LegacyTilemap_layer__P3861, + "enabled": tiles_legacy_LegacyTilemap_enabled__P3863, + "setTile": tiles_legacy_LegacyTilemap_setTile__P3864, + "setMap": tiles_legacy_LegacyTilemap_setMap__P3865, + "getTile": tiles_legacy_LegacyTilemap_getTile__P3867, + "setTileAt": tiles_legacy_LegacyTilemap_setTileAt__P3868, + "generateTile": tiles_legacy_LegacyTilemap_generateTile__P11438, + "isOutsideMap": tiles_legacy_LegacyTilemap_isOutsideMap__P11439, + "isInvalidIndex": tiles_legacy_LegacyTilemap_isInvalidIndex__P11440, + "draw": tiles_legacy_LegacyTilemap_draw__P11441, + "isObstacle": tiles_legacy_LegacyTilemap_isObstacle__P3871, + "getObstacle": tiles_legacy_LegacyTilemap_getObstacle__P3872, + "isOnWall": tiles_legacy_LegacyTilemap_isOnWall__P3873, + "getTileIndex": tiles_legacy_LegacyTilemap_getTileIndex__P3874, + "getTileImage": tiles_legacy_LegacyTilemap_getTileImage__P3875, + "scale": tiles_TileMap_scale__P2316, + "set/scale": tiles_TileMap_scale__P2317, }, }); -const tiles_legacy_TileSet__C18346_VT = mkVTable({ +const tiles_legacy_TileSet__C20140_VT = mkVTable({ name: "TileSet", numFields: 4, classNo: 77, @@ -87558,10 +87612,10 @@ const tiles_legacy_TileSet__C18346_VT = mkVTable({ "set/originalImage": null, "cachedImage": null, "set/cachedImage": null, - "image": tiles_legacy_TileSet_image__P18347, + "image": tiles_legacy_TileSet_image__P20141, }, }); -const scene_systemMenu_PauseMenu__C1585_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C2614_VT = mkVTable({ name: "PauseMenu", numFields: 7, classNo: 78, @@ -87584,15 +87638,15 @@ const scene_systemMenu_PauseMenu__C1585_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P1586, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P1587, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P1588, - "drawText": scene_systemMenu_PauseMenu_drawText__P1589, - "dispose": scene_systemMenu_PauseMenu_dispose__P1590, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P1591, + "show": scene_systemMenu_PauseMenu_show__P2616, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P2617, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P2618, + "drawText": scene_systemMenu_PauseMenu_drawText__P2619, + "dispose": scene_systemMenu_PauseMenu_dispose__P2620, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P4529, }, }); -const scene_systemMenu_MenuOption__C1576_VT = mkVTable({ +const scene_systemMenu_MenuOption__C2606_VT = mkVTable({ name: "MenuOption", numFields: 8, classNo: 79, @@ -87617,16 +87671,16 @@ const scene_systemMenu_MenuOption__C1576_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P1577, - "position": scene_systemMenu_MenuOption_position__P1578, - "setOffset": scene_systemMenu_MenuOption_setOffset__P1579, - "setTheme": scene_systemMenu_MenuOption_setTheme__P1580, - "setState": scene_systemMenu_MenuOption_setState__P1581, - "dispose": scene_systemMenu_MenuOption_dispose__P1582, - "updateCard": scene_systemMenu_MenuOption_updateCard__P1583, + "show": scene_systemMenu_MenuOption_show__P2608, + "position": scene_systemMenu_MenuOption_position__P2609, + "setOffset": scene_systemMenu_MenuOption_setOffset__P2610, + "setTheme": scene_systemMenu_MenuOption_setTheme__P2611, + "setState": scene_systemMenu_MenuOption_setState__P2612, + "dispose": scene_systemMenu_MenuOption_dispose__P2613, + "updateCard": scene_systemMenu_MenuOption_updateCard__P4528, }, }); -const MovingSprite__C906_VT = mkVTable({ +const MovingSprite__C2168_VT = mkVTable({ name: "MovingSprite", numFields: 7, classNo: 80, @@ -87651,14 +87705,36 @@ const MovingSprite__C906_VT = mkVTable({ "set/yStep": null, }, }); -const sprites_StaticObstacle__C872_VT = mkVTable({ - name: "StaticObstacle", - numFields: 5, +const tiles_Location__C2286_VT = mkVTable({ + name: "Location", + numFields: 3, classNo: 81, lastSubtypeNo: 81, maxBgInstances: null, methods: { }, + iface: { + "_row": null, + "set/_row": null, + "_col": null, + "set/_col": null, + "tileMap": null, + "set/tileMap": null, + "col": tiles_Location_col__P2287, + "row": tiles_Location_row__P2288, + "x": tiles_Location_x__P2290, + "y": tiles_Location_y__P2291, + "tileSet": tiles_Location_tileSet__P2292, + }, +}); +const sprites_StaticObstacle__C2143_VT = mkVTable({ + name: "StaticObstacle", + numFields: 5, + classNo: 82, + lastSubtypeNo: 82, + maxBgInstances: null, + methods: { + }, iface: { "layer": null, "set/layer": null, @@ -87670,36 +87746,14 @@ const sprites_StaticObstacle__C872_VT = mkVTable({ "set/top": null, "left": null, "set/left": null, - "x": sprites_StaticObstacle_x__P873, - "y": sprites_StaticObstacle_y__P874, - "height": sprites_StaticObstacle_height__P875, - "width": sprites_StaticObstacle_width__P876, - }, -}); -const tiles_Location__C1054_VT = mkVTable({ - name: "Location", - numFields: 3, - classNo: 82, - lastSubtypeNo: 82, - maxBgInstances: null, - methods: { - }, - iface: { - "_row": null, - "set/_row": null, - "_col": null, - "set/_col": null, - "tileMap": null, - "set/tileMap": null, - "col": tiles_Location_col__P1055, - "row": tiles_Location_row__P1056, - "x": tiles_Location_x__P1057, - "y": tiles_Location_y__P1058, - "tileSet": tiles_Location_tileSet__P1059, + "x": sprites_StaticObstacle_x__P2150, + "y": sprites_StaticObstacle_y__P2151, + "height": sprites_StaticObstacle_height__P2152, + "width": sprites_StaticObstacle_width__P2153, }, }); -const breakpoints = setupDebugger(1, ["zeroCode___3834","map___7217","play___7220","debug___7223","code___7226","paint___7229","music___7232","garbageCan___7235","settingsIcon___7238","addRule___7241","emptyTile___7244","emptyDiagTile___7247","cursorIn___7250","cursorOut___7253","collisionSprite___7256","genericSprite___7259","exclude___7262","include___7265","include2___7268","ok___7271","anyOutline___7274","allFourOutline___7277","restingOutline___7280","downArrowOutline___7283","upArrowOutline___7286","rightArrowOutline___7289","leftArrowOutline___7292","leftButton___7295","rightButton___7298","downButton___7301","upButton___7304","AButton___7307","flipHoriz___7310","flipVert___7313","rotate3way___7316","leftRotate___7319","rightRotate___7322","allFour___7325","downArrow___7328","upArrow___7331","rightArrow___7334","leftArrow___7337","eat___7340","stopSign___7343","uTurn___7346","spawn___7349","smallPaint___7352","portal___7355","gameIcon___7358","trophyUp___7361","trophyDown___7364","scoreUp10___7367","diskIcon___7370","reset___7373","negate___7376","twCursor___7379","apple___7382","snakeHead___7385","snakeBody___7388","ship___7391","alien___7394","missile___7397","cat___7400","fish___7403","dog___7406","chimp___7409","player___7180","diamond___7413","boulder___7416","enemy___7419","brick___7162","grass___7423","water___7426","dirt2___7429","wall___7432","wall2___7435","dirt___7438","space___7441","gallerySprites___7178","galleryTiles___7160","colorOut___10041","colorIn___10044","paintOut___10047","paintIn___10050","moveImages___11219","movedImages___11227","buttonImages___11238","attrImages___11251","gameImages___11257","transformImages___12380","categoryImages___13289","paintOut___14745","paintIn___14748","commandImages___15713","TileWorld___19032","TileWorldVersion___5977","HelpKey___6366","attrValues___11248","transformMap___12377","RuleKey___6323","bitIndex___4645","ruleBuf___4643","categoryText___13297","moveText___11235","gameText___11261","BackImageKey___6729","SpriteImageKey___6731","WorldBackgroundsKey___6341","WorldSpritesKey___6355","HighScoreKey___6382","VersionKey___6418","BackImgCntKey___6437","SpriteImgCntKey___6446","PlayerIndexKey___6455","toHex___6576","menuHelpString___13299","attrHelpString___13301","helpStringTop___12551","helpStringBot___12553","helpString___15710"]) +const breakpoints = setupDebugger(1, ["zeroCode___5966","map___3712","play___3713","debug___3714","code___3715","paint___3716","music___3717","garbageCan___3718","settingsIcon___3719","addRule___3720","emptyTile___3721","emptyDiagTile___3722","cursorIn___3723","cursorOut___3724","collisionSprite___3725","genericSprite___3726","exclude___3727","include___3728","include2___3729","ok___3730","anyOutline___3731","allFourOutline___3732","restingOutline___3733","downArrowOutline___3734","upArrowOutline___3735","rightArrowOutline___3736","leftArrowOutline___3737","leftButton___3738","rightButton___3739","downButton___3740","upButton___3741","AButton___3742","flipHoriz___3743","flipVert___3744","rotate3way___3745","leftRotate___3746","rightRotate___3747","allFour___3748","downArrow___3749","upArrow___3750","rightArrow___3751","leftArrow___3752","eat___3753","stopSign___3754","uTurn___3755","spawn___3756","smallPaint___3757","portal___3758","gameIcon___3759","trophyUp___3760","trophyDown___3761","scoreUp10___3762","diskIcon___3763","reset___3764","negate___3765","twCursor___9291","apple___9294","snakeHead___3766","snakeBody___9299","ship___9302","alien___9305","missile___9308","cat___9311","fish___9314","dog___3767","chimp___9319","player___3768","diamond___9323","boulder___9326","enemy___3769","brick___9130","grass___9332","water___9335","dirt2___9338","wall___9341","wall2___9344","dirt___9347","space___9350","gallerySprites___3770","galleryTiles___3771","colorOut___11894","colorIn___11897","paintOut___11900","paintIn___11903","moveImages___3788","movedImages___3789","buttonImages___3791","attrImages___3793","gameImages___3794","transformImages___14212","categoryImages___15105","paintOut___16557","paintIn___16560","commandImages___17519","TileWorld___3834","TileWorldVersion___3665","HelpKey___8342","attrValues___3792","transformMap___14209","RuleKey___8299","bitIndex___6717","ruleBuf___6715","categoryText___15113","moveText___3790","gameText___3795","BackImageKey___8702","SpriteImageKey___8704","WorldBackgroundsKey___8317","WorldSpritesKey___8331","HighScoreKey___8358","VersionKey___8394","BackImgCntKey___8412","SpriteImgCntKey___8421","PlayerIndexKey___8430","toHex___8549","menuHelpString___15115","attrHelpString___15117","helpStringTop___14381","helpStringBot___14383","helpString___17516"]) -return _main___P41706 +return _main___P35666 }) diff --git a/assets/version.txt b/assets/version.txt index d87edbf..078bf8b 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -4.2.1 \ No newline at end of file +4.2.2 \ No newline at end of file diff --git a/pxt.json b/pxt.json index 3b8b37a..8632c7b 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "tileworld", - "version": "4.2.1", + "version": "4.2.2", "description": "", "dependencies": { "device": "*",