diff --git a/assets/js/binary.js b/assets/js/binary.js index 557b0db..917122a 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v0.17.10/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.2.2","target":"arcade","targetVersion":"0.17.10","repo":"jwunderl/arcade-tilemap-a-star"} -// total=1349294 new=13.59% cached=81.16% other=5.25% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.2.6/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.3.0","target":"arcade","targetVersion":"1.2.6","repo":"jwunderl/arcade-tilemap-a-star"} +// total=1398868 new=13.60% cached=81.29% other=5.12% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -58,6 +58,7 @@ pxtrt.mapKeyNames = [ "_hitbox", "_id", "_image", + "_inputLastFrame", "_kind", "_kindsOverlappedWith", "_lastX", @@ -125,6 +126,7 @@ pxtrt.mapKeyNames = [ "charWidth", "clear", "clearObstacles", + "col", "collisionHandlers", "color", "colors", @@ -176,14 +178,12 @@ pxtrt.mapKeyNames = [ "galois", "gameForeverHandlers", "generator", - "getImageType", "getObstacle", "getState", "getText", "getTile", "getTileImage", "getTileIndex", - "getTileset", "go", "handler", "handlers", @@ -205,12 +205,12 @@ pxtrt.mapKeyNames = [ "init", "insertAABB", "insertAtKey", - "isInvalidIndex", "isObstacle", "isOnWall", "isOutOfScreen", "isOutsideMap", "isPressed", + "isStatic", "isWall", "key", "kind", @@ -296,6 +296,7 @@ pxtrt.mapKeyNames = [ "resizeBuckets", "right", "rightChild", + "row", "rowCount", "runCallbacks", "runningCallbacks", @@ -317,6 +318,7 @@ pxtrt.mapKeyNames = [ "setDirection", "setFactory", "setFlag", + "setHitbox", "setImage", "setKind", "setOffset", @@ -328,8 +330,6 @@ pxtrt.mapKeyNames = [ "setSpeed", "setState", "setTheme", - "setTile", - "setTileAt", "setVelocity", "shakeAmplitude", "shakeDuration", @@ -413,7 +413,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P189258(s) { +function _main___P37117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -423,237 +423,241 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___144358 = (undefined); - globals._pollEventQueue___144371 = (undefined); - globals.minPriority___144377 = (1); + globals._intervals___22089 = (undefined); + globals._pollEventQueue___22098 = (undefined); + globals.minPriority___18928 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, inline__P144378); - globals.listeners___144379 = (s.tmp_0); - globals.globalVolume___144546 = (null); - globals.playToneID___144556 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C144560_VT); + r0 = pxsim_Array__push(s.tmp_0, inline__P22101); + globals.listeners___22102 = (s.tmp_0); + globals.globalVolume___22155 = (null); + globals.playToneID___22162 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C20162_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P144572_mk(s); + s.tmp_1 = music_Melody_constructor__P20165_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.pc = 1; return s.tmp_1; + s.callLocIdx = 0; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - globals.wawawawaa___144581 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C144560_VT); + globals.wawawawaa___20179 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C20162_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P144572_mk(s); + s.tmp_1 = music_Melody_constructor__P20165_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "g4:1 c5 e g:2 e:1 g:3"; - s.pc = 2; return s.tmp_1; + s.callLocIdx = 1; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - globals.powerUp___144587 = (s.tmp_0); - globals.brightness___144622 = (100); + globals.powerUp___20182 = (s.tmp_0); + globals.brightness___20288 = (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", _hex150194); - globals.font8___144645 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex26463); + globals.font8___20309 = (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", _hex150196); - globals.font12___144647 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex26465); + globals.font12___20310 = (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", _hex156352); - globals.font5___144652 = (s.tmp_0); - globals.__updated___144659 = (false); - r0 = pxsim.control.runInParallel(inline__P144664); - r0 = pxsim_pxtcore.setPalette(_hex144690); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex32027); + globals.font5___20314 = (s.tmp_0); + globals.__updated___22199 = (false); + r0 = pxsim.control.runInParallel(inline__P22202); + r0 = pxsim_pxtcore.setPalette(_hex22213); r0 = pxsim.image.create(160, 120); - globals.screen___144693 = (r0); - s.tmp_0 = control___screen_setupUpdate__P144661_mk(s); - s.tmp_0.arg0 = inline__P144698; - s.pc = 3; return s.tmp_0; + globals.screen___20366 = (r0); + s.tmp_0 = control___screen_setupUpdate__P20328_mk(s); + s.tmp_0.arg0 = inline__P22220; + s.callLocIdx = 4; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.control_EventContext_onStats___144426 = (inline__P144703); - globals.RUN_KEY___144710 = ("#run"); - globals.SCOPE_KEY___144711 = ("#scope"); - s.tmp_0 = settings_initScopes__P144723_mk(s); - s.pc = 4; return s.tmp_0; + globals.control_EventContext_onStats___18951 = (inline__P22225); + globals.RUN_KEY___22230 = ("#run"); + globals.SCOPE_KEY___22231 = ("#scope"); + s.tmp_0 = settings_initScopes__P22242_mk(s); + s.callLocIdx = 5; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C144809_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20467_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P144820_mk(s); + s.tmp_1 = controller_Button_constructor__P20473_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 5; s.tmp_1.arg2 = 4; - s.pc = 5; return s.tmp_1; + s.callLocIdx = 6; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.A___144780 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C144809_VT); + globals.A___20441 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20467_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P144820_mk(s); + s.tmp_1 = controller_Button_constructor__P20473_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 6; s.tmp_1.arg2 = 5; - s.pc = 6; return s.tmp_1; + s.callLocIdx = 7; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - globals.B___144782 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C144809_VT); + globals.B___20442 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20467_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P144820_mk(s); + s.tmp_1 = controller_Button_constructor__P20473_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; s.tmp_1.arg2 = 47; - s.pc = 7; return s.tmp_1; + s.callLocIdx = 8; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - globals.left___144784 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C144809_VT); + globals.left___20443 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20467_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P144820_mk(s); + s.tmp_1 = controller_Button_constructor__P20473_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = 49; - s.pc = 8; return s.tmp_1; + s.callLocIdx = 9; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - globals.up___144786 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C144809_VT); + globals.up___20444 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20467_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P144820_mk(s); + s.tmp_1 = controller_Button_constructor__P20473_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = 48; - s.pc = 9; return s.tmp_1; + s.callLocIdx = 10; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - globals.right___144788 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C144809_VT); + globals.right___20445 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20467_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P144820_mk(s); + s.tmp_1 = controller_Button_constructor__P20473_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = 50; - s.pc = 10; return s.tmp_1; + s.callLocIdx = 11; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - globals.down___144790 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C144809_VT); + globals.down___20446 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20467_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P144820_mk(s); + s.tmp_1 = controller_Button_constructor__P20473_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 7; s.tmp_1.arg2 = 51; - s.pc = 11; return s.tmp_1; + s.callLocIdx = 12; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - globals.menu___144792 = (s.tmp_0); - globals._userEventsEnabled___144802 = (true); - globals.defaultRepeatDelay___144804 = (500); - globals.defaultRepeatInterval___144806 = (30); - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C144821_VT); + globals.menu___20447 = (s.tmp_0); + globals._userEventsEnabled___22269 = (true); + globals.defaultRepeatDelay___22271 = (500); + globals.defaultRepeatInterval___22273 = (30); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C22279_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P144820_mk(s); + s.tmp_1 = controller_Button_constructor__P20473_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = -1; - s.pc = 12; return s.tmp_1; + s.callLocIdx = 13; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; - globals.anyButton___144865 = (s.tmp_0); - s.tmp_0 = SpriteKind_create__P144972_mk(s); - s.pc = 13; return s.tmp_0; + globals.anyButton___20521 = (s.tmp_0); + s.tmp_0 = SpriteKind_create__P20691_mk(s); + s.callLocIdx = 14; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - globals.Player___144974 = (r0); - s.tmp_0 = SpriteKind_create__P144972_mk(s); - s.pc = 14; return s.tmp_0; + globals.Player___20692 = (r0); + s.tmp_0 = SpriteKind_create__P20691_mk(s); + s.callLocIdx = 15; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - globals.Food___144979 = (r0); - s.tmp_0 = SpriteKind_create__P144972_mk(s); - s.pc = 15; return s.tmp_0; + globals.Food___20694 = (r0); + s.tmp_0 = SpriteKind_create__P20691_mk(s); + s.callLocIdx = 16; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - globals.Enemy___144982 = (r0); + globals.Enemy___20695 = (r0); r0 = (100 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MAX_TIME_STEP___145004 = (r0); + globals.MAX_TIME_STEP___20732 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___145017 = (r0); - globals.infoState___145048 = (undefined); - s.tmp_0 = game_addScenePushHandler__P145052_mk(s); - s.tmp_0.arg0 = inline__P145053; - s.pc = 16; return s.tmp_0; + globals.MIN_MOVE_GAP___20734 = (r0); + globals.infoState___22322 = (undefined); + s.tmp_0 = game_addScenePushHandler__P21113_mk(s); + s.tmp_0.arg0 = inline__P22326; + s.callLocIdx = 19; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P145069_mk(s); - s.tmp_0.arg0 = inline__P145070; - s.pc = 17; return s.tmp_0; + s.tmp_0 = game_addScenePopHandler__P21115_mk(s); + s.tmp_0.arg0 = inline__P22341; + s.callLocIdx = 23; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___145300 = (r0); - globals.debug___145366 = (false); - globals.stats___145368 = (false); - globals.winEffect___145370 = (undefined); - globals.loseEffect___145372 = (undefined); - globals.loseSound___145374 = (undefined); - globals.winSound___145376 = (undefined); - s.tmp_0 = scene_systemMenu_initVolume__P145706_mk(s); - s.pc = 18; return s.tmp_0; + globals.scene_Scene_initializers___21003 = (r0); + globals.debug___21092 = (false); + globals.stats___21093 = (false); + globals.winEffect___21094 = (undefined); + globals.loseEffect___21095 = (undefined); + globals.loseSound___22437 = (undefined); + globals.winSound___22439 = (undefined); + s.tmp_0 = scene_systemMenu_initVolume__P22706_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___145300, scene_systemMenu_register__P145703); - r0 = pxsim.image.ofBuffer(_hex145712); - globals.CARD_NORMAL___145713 = (r0); - r0 = pxsim.image.ofBuffer(_hex145715); - globals.CARD_SELECTED___145716 = (r0); - r0 = pxsim.image.ofBuffer(_hex145718); - globals.CARD_ACTIVE___145719 = (r0); - r0 = pxsim.image.ofBuffer(_hex145721); - globals.VOLUME_UP_ICON___145722 = (r0); - r0 = pxsim.image.ofBuffer(_hex145724); - globals.BRIGHTNESS_DOWN_ICON___145725 = (r0); - r0 = pxsim.image.ofBuffer(_hex145727); - globals.CLOSE_MENU_ICON___145728 = (r0); - r0 = pxsim.image.ofBuffer(_hex145730); - globals.VOLUME_DOWN_ICON___145731 = (r0); - r0 = pxsim.image.ofBuffer(_hex145733); - globals.SLEEP_ICON___145734 = (r0); - r0 = pxsim.image.ofBuffer(_hex145736); - globals.CONSOLE_ICON___145737 = (r0); - r0 = pxsim.image.ofBuffer(_hex145739); - globals.BRIGHTNESS_UP_ICON___145740 = (r0); - r0 = pxsim.image.ofBuffer(_hex145742); - globals.STATS_ICON___145743 = (r0); - globals.consoleColor___145746 = (1); - globals.tabSize___145749 = (8); - globals.consoleFont___145755 = (globals.font5___144652); - r0 = pxsim_ImageMethods.height(globals.screen___144693); + s.tmp_0 = scene_systemMenu_initScreen__P22707_mk(s); + s.callLocIdx = 25; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + r0 = pxsim_Array__push(globals.scene_Scene_initializers___21003, scene_systemMenu_register__P21197); + r0 = pxsim.image.ofBuffer(_hex22714); + globals.CARD_NORMAL___21202 = (r0); + r0 = pxsim.image.ofBuffer(_hex22716); + globals.CARD_SELECTED___21203 = (r0); + r0 = pxsim.image.ofBuffer(_hex22718); + globals.CARD_ACTIVE___21204 = (r0); + r0 = pxsim.image.ofBuffer(_hex22720); + globals.VOLUME_UP_ICON___21205 = (r0); + r0 = pxsim.image.ofBuffer(_hex22722); + globals.BRIGHTNESS_DOWN_ICON___21206 = (r0); + r0 = pxsim.image.ofBuffer(_hex22724); + globals.CLOSE_MENU_ICON___21207 = (r0); + r0 = pxsim.image.ofBuffer(_hex22726); + globals.VOLUME_DOWN_ICON___21208 = (r0); + r0 = pxsim.image.ofBuffer(_hex22728); + globals.SLEEP_ICON___21209 = (r0); + r0 = pxsim.image.ofBuffer(_hex22730); + globals.CONSOLE_ICON___21210 = (r0); + r0 = pxsim.image.ofBuffer(_hex22732); + globals.BRIGHTNESS_UP_ICON___21211 = (r0); + r0 = pxsim.image.ofBuffer(_hex22734); + globals.STATS_ICON___21212 = (r0); + globals.consoleColor___22737 = (1); + globals.tabSize___22740 = (8); + globals.consoleFont___22746 = (globals.font5___20314); + r0 = pxsim_ImageMethods.height(globals.screen___20366); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___145755; + s.tmp_5.arg0 = globals.consoleFont___22746; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.pc = 19; return s.tmp_5; } + else { s.callLocIdx = 26; s.pc = 20; return s.tmp_5; } } - case 19: + case 20: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_4 + 2); @@ -663,204 +667,223 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___145760 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___144693); + globals.consoleLines___22751 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___20366); 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___145755; + s.tmp_4.arg0 = globals.consoleFont___22746; 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.pc = 20; return s.tmp_4; } + else { s.callLocIdx = 27; s.pc = 21; return s.tmp_4; } } - case 20: + case 21: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___145771 = (r0); - s.tmp_0 = console_addListener__P144387_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P145783; - s.pc = 21; return s.tmp_0; - case 21: + globals.consoleColumns___22761 = (r0); + s.tmp_0 = console_addListener__P18936_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P22773; + s.callLocIdx = 28; s.pc = 22; return s.tmp_0; + case 22: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = inline__P145793; + s.tmp_0.argL = inline__P22777; setupLambda(s.tmp_0, s.tmp_0.argL); - s.pc = 22; return s.tmp_0; - case 22: + s.callLocIdx = 30; s.pc = 23; return s.tmp_0; + case 23: r0 = s.retval; - globals.MAX_SOURCES___145791 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C145876_VT); + globals.MAX_SOURCES___22775 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C21282_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P145882_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P21283_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; s.tmp_1.arg3 = 60; - s.pc = 23; return s.tmp_1; - case 23: + s.callLocIdx = 31; s.pc = 24; return s.tmp_1; + case 24: r0 = s.retval; - globals.defaultFactory___145832 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C145662_VT); + globals.defaultFactory___21262 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C21150_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P145669_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P21152_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.pc = 24; return s.tmp_1; - case 24: + s.callLocIdx = 32; s.pc = 25; return s.tmp_1; + case 25: r0 = s.retval; - globals.galois___145855 = (s.tmp_0); - globals.angleSlice___145863 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C145949_VT); + globals.galois___22810 = (s.tmp_0); + globals.angleSlice___22818 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C21357_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P145953_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P21358_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__P152766; - s.pc = 25; return s.tmp_1; - case 25: + s.tmp_1.arg4 = inline__P28318; + s.callLocIdx = 38; s.pc = 26; return s.tmp_1; + case 26: r0 = s.retval; - globals.confetti___145963 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C145939_VT); + globals.confetti___21365 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ParticleEffect__C21353_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ParticleEffect_constructor__P145942_mk(s); + s.tmp_1 = effects_ParticleEffect_constructor__P21354_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 60; s.tmp_1.arg2 = 2000; - s.tmp_1.arg3 = inline__P185355; - s.pc = 26; return s.tmp_1; - case 26: - r0 = s.retval; - globals.ashes___145979 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C145990_VT); - s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P145994_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = inline__P151056; - s.pc = 27; return s.tmp_1; + s.tmp_1.arg3 = inline__P27206; + s.callLocIdx = 42; s.pc = 27; return s.tmp_1; case 27: r0 = s.retval; - globals.dissolve___145996 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C145990_VT); + globals.ashes___21373 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C21380_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P145994_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P21381_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = inline__P152712; - s.pc = 28; return s.tmp_1; + s.tmp_1.arg1 = 100; + s.tmp_1.arg2 = inline__P30302; + s.callLocIdx = 48; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - globals.melt___145998 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C146004_VT); + globals.dissolve___21385 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C21380_VT); s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P146005_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P21381_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P146009; - s.pc = 29; return s.tmp_1; + s.tmp_1.arg1 = 125; + s.tmp_1.arg2 = inline__P28210; + s.callLocIdx = 51; s.pc = 29; return s.tmp_1; case 29: r0 = s.retval; - globals.shake___146007 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C146004_VT); + globals.melt___21386 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C21395_VT); s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P146005_mk(s); + s.tmp_1 = texteffects_TextEffect_constructor__P21397_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P146023; - s.pc = 30; return s.tmp_1; + s.tmp_1.arg1 = inline__P22869; + s.callLocIdx = 52; s.pc = 30; return s.tmp_1; case 30: r0 = s.retval; - globals.wave___146021 = (s.tmp_0); - r0 = pxsim.image.ofBuffer(_hex146454); - globals.tileGrass2___146455 = (r0); - r0 = pxsim.image.ofBuffer(_hex146469); - globals.tilePath4___146470 = (r0); - r0 = pxsim.image.ofBuffer(_hex146481); - globals.tilePath7___146482 = (r0); - s.tmp_0 = game_setWaitAnyButton__P145385_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P144860; - s.pc = 31; return s.tmp_0; + globals.shake___21398 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C21395_VT); + s.tmp_0 = r0; + s.tmp_1 = texteffects_TextEffect_constructor__P21397_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = inline__P22882; + s.callLocIdx = 62; s.pc = 31; return s.tmp_1; case 31: r0 = s.retval; - s.tmp_0 = game_eventContext__P145387_mk(s); - s.pc = 32; return s.tmp_0; + globals.wave___21399 = (s.tmp_0); + r0 = pxsim.image.ofBuffer(_hex23185); + globals.tileGrass1___21568 = (r0); + r0 = pxsim.image.ofBuffer(_hex23189); + globals.tilePath5___21570 = (r0); + s.tmp_0 = game_setWaitAnyButton__P21097_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P20517; + s.callLocIdx = 63; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - globals.PATH_FOLLOW_KEY___182779 = ("A_STAR_PATH_FOLLOW"); - globals.PATH_COMPLETION_KEY___182781 = ("A_STAR_PATH_COMPLETION_HANDLER"); - r0 = pxsim.image.ofBuffer(_hex188977); - globals.tile0___188978 = (r0); - s.tmp_0 = game_consoleOverlay_setVisible__P145786_mk(s); - s.tmp_0.arg0 = true; - s.tmp_0.arg1 = 2; - s.pc = 33; return s.tmp_0; + s.tmp_0 = game_eventContext__P21099_mk(s); + s.callLocIdx = 64; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, globals.tile0___188978); - r0 = pxsim_Array__push(s.tmp_0, globals.tilePath7___146482); - r0 = pxsim_Array__push(s.tmp_0, globals.tilePath4___146470); - r0 = pxsim_Array__push(s.tmp_0, globals.tileGrass2___146455); - s.tmp_1 = tiles_setTilemap__P145224_mk(s); - s.tmp_2 = tiles_createTilemap__P145223_mk(s); - s.tmp_2.arg0 = _hex188984; - r0 = pxsim.image.ofBuffer(_hex188986); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.tmp_0; - s.tmp_2.arg3 = 4; - s.pc = 35; return s.tmp_2; - case 35: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.pc = 34; return s.tmp_1; + globals.PATH_FOLLOW_KEY___24588 = ("A_STAR_PATH_FOLLOW"); + globals.PATH_COMPLETION_KEY___24590 = ("A_STAR_PATH_COMPLETION_HANDLER"); + r0 = pxsim.image.ofBuffer(_hex25177); + globals.transparency16___22037 = (r0); + s.tmp_0 = helpers_registerTilemapFactory__P20921_mk(s); + s.tmp_0.arg0 = inline__P25185; + s.callLocIdx = 209; s.pc = 34; return s.tmp_0; case 34: r0 = s.retval; - globals.flag___188994 = (false); - s.tmp_0 = controller_Button_onEvent__P144814_mk(s); - s.tmp_0.arg0 = globals.A___144780; - s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P188998; - s.pc = 36; return s.tmp_0; - case 36: + s.tmp_0 = game_consoleOverlay_setVisible__P21217_mk(s); + s.tmp_0.arg0 = true; + s.tmp_0.arg1 = 2; + s.callLocIdx = 210; s.pc = 35; return s.tmp_0; + case 35: r0 = s.retval; - s.tmp_0 = scene_onPathCompletion__P183169_mk(s); - s.tmp_0.arg0 = globals.Enemy___144982; - s.tmp_0.arg1 = inline__P189028; - s.pc = 37; return s.tmp_0; + s.tmp_0 = tiles_setTilemap__P20905_mk(s); + s.tmp_1 = helpers_getTilemapByName__P20922_mk(s); + s.tmp_1.arg0 = "level"; + s.callLocIdx = 211; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P144814_mk(s); - s.tmp_0.arg0 = globals.B___144782; - s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = inline__P189050; - s.pc = 38; return s.tmp_0; + s.tmp_0.arg0 = r0; + s.callLocIdx = 212; s.pc = 36; return s.tmp_0; + case 36: + r0 = s.retval; + s.tmp_0 = sprites_create__P20538_mk(s); + r0 = pxsim.image.ofBuffer(_hex25206); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.callLocIdx = 213; s.pc = 38; return s.tmp_0; case 38: r0 = s.retval; - s.tmp_0 = game_onUpdate__P145397_mk(s); - s.tmp_0.arg0 = inline__P189069; - s.pc = 39; return s.tmp_0; + globals.mySprite___22039 = (r0); + s.tmp_0 = controller_moveSprite__P20516_mk(s); + s.tmp_0.arg0 = globals.mySprite___22039; + s.tmp_0.arg1 = 100; + s.tmp_0.arg2 = 100; + s.callLocIdx = 214; s.pc = 39; return s.tmp_0; case 39: + r0 = s.retval; + s.tmp_0 = scene_cameraFollowSprite__P21028_mk(s); + s.tmp_0.arg0 = globals.mySprite___22039; + s.callLocIdx = 215; s.pc = 40; return s.tmp_0; + case 40: + r0 = s.retval; + s.tmp_0 = controller_Button_onEvent__P20474_mk(s); + s.tmp_0.arg0 = globals.A___20441; + s.tmp_0.arg1 = 2049; + s.tmp_0.arg2 = inline__P25219; + s.callLocIdx = 224; s.pc = 41; return s.tmp_0; + case 41: + r0 = s.retval; + s.tmp_0 = Sprite_setFlag__P20643_mk(s); + s.tmp_0.arg0 = globals.mySprite___22039; + s.tmp_0.arg1 = 32; + s.tmp_0.arg2 = false; + s.callLocIdx = 225; s.pc = 42; return s.tmp_0; + case 42: + r0 = s.retval; + s.tmp_0 = scene_onPathCompletion__P22032_mk(s); + s.tmp_0.arg0 = globals.Enemy___20695; + s.tmp_0.arg1 = inline__P25246; + s.callLocIdx = 227; s.pc = 43; return s.tmp_0; + case 43: + r0 = s.retval; + s.tmp_0 = controller_Button_onEvent__P20474_mk(s); + s.tmp_0.arg0 = globals.B___20442; + s.tmp_0.arg1 = 2049; + s.tmp_0.arg2 = inline__P25256; + s.callLocIdx = 233; s.pc = 44; return s.tmp_0; + case 44: + r0 = s.retval; + s.tmp_0 = game_onUpdate__P21107_mk(s); + s.tmp_0.arg0 = inline__P25274; + s.callLocIdx = 238; s.pc = 45; return s.tmp_0; + case 45: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P189258.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/pxt-heap/main.ts","functionName":"
","argumentNames":[]} -_main___P189258.continuations = [ ] +_main___P37117.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/pxt-heap/main.ts","functionName":"
","argumentNames":[]} +_main___P37117.continuations = [ ] -function _main___P189258_mk(s) { +function _main___P37117_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P189258, depth: s.depth + 1, + parent: s, fn: _main___P37117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -870,32 +893,30 @@ function _main___P189258_mk(s) { tmp_5: undefined, } } -const _hex150194 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex150196 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex156352 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex144690 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex145712 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex145715 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex145718 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex145721 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex145724 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex145727 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex145730 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex145733 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex145736 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex145739 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex145742 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex146454 = pxsim.BufferMethods.createBufferFromHex("870410001000000075777777777777777777d176771776777537116377717157771176d177177677771176d17777777777371163777777777777d176177677777777777771717777777777771776777777576577777777777777775775176d777777775576133176776177671761177d171777771761177d77617777771331767777777777176d77") -const _hex146469 = pxsim.BufferMethods.createBufferFromHex("870410001000000077777777777777776767776776d67676666766dd6ddd6dd6ddd6d6ddddbdddd6dddddddddddddddddddddddddddddddd11dddddddddddddd11ddbddddddddddddddddddddd1ddddbdddddddddd11d1ddddd1dddddd1dddddddddddddddddddddddddddddbbddddddddddddddbbddddddddddddddddddddddddddddd1dddddd1d") -const _hex146481 = pxsim.BufferMethods.createBufferFromHex("87041000100000007777777777777777d676667766677677dd66dd76ddd66d77dddddd6ddddddd76ddddddddbddb6d77ddddddddbddbdd76dd1ddddddddddd7ddddddddddddd6d76dddddddddddd6d77dddddddddddd6d77dd11dddddddddd77dd11dddddbdddd76dddddddddddd6d76dddddddddd116d77dddddddddd11dd76dddddddbdddddd7d") -const _hex188977 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex188984 = pxsim.BufferMethods.createBufferFromHex("0a0008000300000000000000030303030003000000000300030303030300000003000003030003030000030300000303030003000003000000030303030003030000030303030303030300030300000303030303") -const _hex188986 = pxsim.BufferMethods.createBufferFromHex("87040a000800000000202222020022022200200002200020220000202202020022220000222222000000020020020000") +const _hex26463 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex26465 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex32027 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex22213 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex22714 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex22716 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex22718 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex22720 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex22722 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex22724 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex22726 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex22728 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex22730 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex22732 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex22734 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex23185 = pxsim.BufferMethods.createBufferFromHex("87041000100000007777777777777777777677777777777757657777777777777755767777557677557777777777777757757777777777777757757777777777775576777777777777657777777777777777777777777777777777777777777777777777777777777777576577777777777777777777577777777777777777777777777777777777") +const _hex23189 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddd1dd1dddddddddddd1dd1dddddddbdddddddddd1dd1dddddddddddd1dd1dddddddddddddddddddddbdddddddddddddddddd1dddddddddddddddddddddddddddddddddddddddbbddddddddddddddbbdddddddddddddddddddddddddddddddddddddddbddbdddddddddddddddddddddddddddddbddddddddddddddddd") +const _hex25177 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex25206 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000f00f00000000f0fffffb000000f03fb3bbebee0000bf33b3bbeff40ff03ee3fffeffbc0f5fe4b3bf41bfddf14f4533fe4fdebdfd5445e3ee44deddb15445e3ee44debdbd4f4533fe4fdeddf15fe4b3bf41bfbdfdf03ee3fffeffbc0f00bf33b3bbeff40f00f03fb3bbebee000000f0fffffb000000000000f00f0000") -function inline__P144664(s) { +function inline__P22202(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -908,23 +929,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___144659 = (false); - s.tmp_0 = pause__P144435_mk(s); + globals.__updated___22199 = (false); + s.tmp_0 = pause__P18966_mk(s); s.tmp_0.arg0 = 200; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 2; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.__updated___144659); + r0 = pxsim_numops_toBoolDecr(globals.__updated___22199); 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__P144660_mk(s); - s.pc = 6; return s.tmp_2; + s.tmp_2 = control___screen_update__P20327_mk(s); + s.callLocIdx = 3; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___144659 = (true); + globals.__updated___22199 = (true); case 2: case 3: { step = 1; continue; } @@ -933,12 +954,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P144664.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} +inline__P22202.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} -function inline__P144664_mk(s) { +function inline__P22202_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P144664, depth: s.depth + 1, + parent: s, fn: inline__P22202, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -949,7 +970,7 @@ function inline__P144664_mk(s) { -function inline__P144698(s) { +function inline__P22220(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -959,17 +980,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___144693); + r0 = pxsim_pxtcore.updateScreen(globals.screen___20366); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P144698.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} +inline__P22220.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} -function inline__P144698_mk(s) { +function inline__P22220_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P144698, depth: s.depth + 1, + parent: s, fn: inline__P22220, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -977,7 +998,7 @@ function inline__P144698_mk(s) { -function inline__P144703(s) { +function inline__P22225(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -996,12 +1017,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P144703.info = {"start":816,"length":56,"line":23,"column":35,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} +inline__P22225.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__P144703_mk(s) { +function inline__P22225_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P144703, depth: s.depth + 1, + parent: s, fn: inline__P22225, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -1010,7 +1031,7 @@ function inline__P144703_mk(s) { -function inline__P145053(s) { +function inline__P22326(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1024,36 +1045,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___145048); + r0 = pxsim_numops_toBoolDecr(globals.infoState___22322); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___145050); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___22324); 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___145050 = (r0); + globals.infoStateStack___22324 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___145048); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___22322); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___145050, s.tmp_0); - globals.infoState___145048 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___22324, s.tmp_0); + globals.infoState___22322 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P145053.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} +inline__P22326.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__P145053_mk(s) { +function inline__P22326_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P145053, depth: s.depth + 1, + parent: s, fn: inline__P22326, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1064,7 +1085,7 @@ function inline__P145053_mk(s) { -function inline__P145070(s) { +function inline__P22341(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1074,61 +1095,61 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___145071 = undefined; - s.nextState___145082 = undefined; - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 7; return s.tmp_0; + s.scene___22342 = undefined; + s.nextState___22351 = undefined; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 20; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___145071 = (r0); - globals.infoState___145048 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___145050; + s.scene___22342 = (r0); + globals.infoState___22322 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___22324; 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___145050); + r0 = pxsim_Array__length(globals.infoStateStack___22324); 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___145050); - s.nextState___145082 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___22324); + s.nextState___22351 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___145082; + s.tmp_2.arg0 = s.nextState___22351; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["scene"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["scene"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 21; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___145071); + r0 = (s.tmp_1 == s.scene___22342); 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___145082; + s.tmp_3.arg0 = s.nextState___22351; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["state"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["state"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.pc = 9; return s.tmp_3; } + else { s.callLocIdx = 22; s.pc = 9; return s.tmp_3; } } case 9: r0 = s.retval; - globals.infoState___145048 = (r0); + globals.infoState___22322 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___145050, s.nextState___145082); + r0 = pxsim_Array__push(globals.infoStateStack___22324, s.nextState___22351); case 4: case 5: case 6: @@ -1136,26 +1157,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P145070.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +inline__P22341.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function inline__P145070_mk(s) { +function inline__P22341_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P145070, depth: s.depth + 1, + parent: s, fn: inline__P22341, depth: s.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___145071: undefined, - nextState___145082: undefined, + scene___22342: undefined, + nextState___22351: undefined, } } -function inline__P145793(s) { +function inline__P22777(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1165,13 +1186,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sz___145794 = undefined; - s.tmp_0 = control_ramSize__P144354_mk(s); - s.pc = 6; return s.tmp_0; + s.sz___22778 = undefined; + s.tmp_0 = control_ramSize__P18899_mk(s); + s.callLocIdx = 29; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sz___145794 = (r0); - r0 = (s.sz___145794 <= 102400); + s.sz___22778 = (r0); + r0 = (s.sz___22778 <= 102400); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -1179,7 +1200,7 @@ switch (step) { { step = 5; continue; } { step = 4; continue; } case 1: - r0 = (s.sz___145794 <= 204800); + r0 = (s.sz___22778 <= 204800); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 2; continue; } @@ -1196,23 +1217,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P145793.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +inline__P22777.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} -function inline__P145793_mk(s) { +function inline__P22777_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P145793, depth: s.depth + 1, + parent: s, fn: inline__P22777, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sz___145794: undefined, + sz___22778: undefined, } } -function inline__P146009(s) { +function inline__P22869(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1242,12 +1263,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P146009.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} +inline__P22869.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} -function inline__P146009_mk(s) { +function inline__P22869_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P146009, depth: s.depth + 1, + parent: s, fn: inline__P22869, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1262,7 +1283,7 @@ function inline__P146009_mk(s) { -function inline__P146023(s) { +function inline__P22882(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1291,10 +1312,10 @@ 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__P144203_mk(s); + s.tmp_7 = Math_sign__P18688_mk(s); r0 = pxsim.Math_.sin(s.arg0); s.tmp_7.arg0 = r0; - s.pc = 7; return s.tmp_7; + s.callLocIdx = 53; s.pc = 7; return s.tmp_7; case 7: r0 = s.retval; s.tmp_6 = r0; @@ -1312,7 +1333,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["up"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["up"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.pc = 8; return s.tmp_1; } + else { s.callLocIdx = 54; s.pc = 8; return s.tmp_1; } } case 8: r0 = s.retval; @@ -1337,7 +1358,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["yOffset"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["yOffset"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.pc = 10; return s.tmp_6; } + else { s.callLocIdx = 55; s.pc = 10; return s.tmp_6; } } case 10: r0 = s.retval; @@ -1352,11 +1373,11 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/yOffset"]; if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["yOffset"] = s.tmp_3.arg1; } else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.pc = 9; return s.tmp_3; } + else { s.callLocIdx = 56; s.pc = 9; return s.tmp_3; } } case 9: r0 = s.retval; - s.tmp_2 = Math_abs__P144202_mk(s); + s.tmp_2 = Math_abs__P18687_mk(s); s.tmp_3 = if_yOffset_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -1365,12 +1386,12 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["yOffset"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["yOffset"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.pc = 12; return s.tmp_3; } + else { s.callLocIdx = 57; s.pc = 12; return s.tmp_3; } } case 12: r0 = s.retval; s.tmp_2.arg0 = r0; - s.pc = 11; return s.tmp_2; + s.callLocIdx = 58; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; s.tmp_1 = r0; @@ -1386,7 +1407,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["up"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["up"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.pc = 13; return s.tmp_6; } + else { s.callLocIdx = 59; s.pc = 13; return s.tmp_6; } } case 13: r0 = s.retval; @@ -1404,7 +1425,7 @@ switch (step) { s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["up"]; if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["up"]; } else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.pc = 14; return s.tmp_7; } + else { s.callLocIdx = 60; s.pc = 14; return s.tmp_7; } } case 14: r0 = s.retval; @@ -1420,7 +1441,7 @@ switch (step) { s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["set/up"]; if (s.tmp_9.fn === null) { s.tmp_9.arg0.fields["up"] = s.tmp_9.arg1; } else if (s.tmp_9.fn === undefined) { failedCast(s.tmp_9.arg0) } - else { s.pc = 15; return s.tmp_9; } + else { s.callLocIdx = 61; s.pc = 15; return s.tmp_9; } } case 15: r0 = s.retval; @@ -1428,12 +1449,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P146023.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__P22882.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__P146023_mk(s) { +function inline__P22882_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P146023, depth: s.depth + 1, + parent: s, fn: inline__P22882, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1453,7 +1474,7 @@ function inline__P146023_mk(s) { -function inline__P188998(s) { +function inline__P25185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1463,70 +1484,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___188999 = undefined; - s.mySprite___189004 = undefined; - s.tmp_0 = scene_aStar__P147810_mk(s); - s.tmp_1 = tiles_getTileLocation__P145227_mk(s); - s.tmp_1.arg0 = 0; - s.tmp_1.arg1 = 0; - s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_2 = tiles_getTileLocation__P145227_mk(s); - s.tmp_2.arg0 = 9; - s.tmp_2.arg1 = 0; - s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.res___188999 = (r0); - s.tmp_0 = sprites_create__P144878_mk(s); - r0 = pxsim.image.ofBuffer(_hex189008); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.Enemy___144982; - s.pc = 4; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_1 = helpers_stringTrim__P18682_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 207; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; - s.mySprite___189004 = (r0); - s.tmp_0 = scene_followPath__P182981_mk(s); - s.tmp_0.arg0 = s.mySprite___189004; - s.tmp_0.arg1 = s.res___188999; - s.tmp_0.arg2 = 50; - s.pc = 5; return s.tmp_0; + s.tmp_0 = r0; + r0 = pxsim_pxtcore.switch_eq("level", s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, globals.transparency16___22037); + r0 = pxsim_Array__push(s.tmp_2, globals.tilePath5___21570); + r0 = pxsim_Array__push(s.tmp_2, globals.tileGrass1___21568); + s.tmp_3 = tiles_createTilemap__P20904_mk(s); + s.tmp_3.arg0 = _hex25192; + r0 = pxsim.image.ofBuffer(_hex25194); + s.tmp_3.arg1 = r0; + s.tmp_3.arg2 = s.tmp_2; + s.tmp_3.arg3 = 4; + s.callLocIdx = 208; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P189015); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.res___188999); - r0 = pxsim.control.runInParallel(s.tmp_0); - r0 = undefined; + { step = 3; continue; } + case 2: + r0 = null; + case 3: return leave(s, r0) default: oops() } } } -inline__P188998.info = {"start":1426,"length":702,"line":39,"column":52,"endLine":63,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":[]} +inline__P25185.info = {"start":306,"length":1316,"line":7,"column":35,"endLine":29,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} -function inline__P188998_mk(s) { +function inline__P25185_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P188998, depth: s.depth + 1, + parent: s, fn: inline__P25185, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - res___188999: undefined, - mySprite___189004: undefined, + tmp_3: undefined, + arg0: undefined, } } -const _hex189008 = pxsim.BufferMethods.createBufferFromHex("87040800080000008888888888888888888888888888888888888888888888888888888888888888") +const _hex25192 = pxsim.BufferMethods.createBufferFromHex("1000100002020202020202020202020202020202020202020202020202020202020202020202020201020202020202020202020201010101010101010101010202020202020202020202020202020101020202020202020202020201020202010102020202020202020202010202020201020202020202020202020102020202010202020202020101010101020202010102020202020202020102020202010102020202020202020201020202010102020202020101010101010101010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202") +const _hex25194 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function inline__P189015(s) { +function inline__P25219(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1536,69 +1550,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.l___189020 = undefined; - s.unnamed7258___U1 = undefined; - s.unnamed7259___U2 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.flag___188994); - 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; } - globals.flag___188994 = (true); - s.l___189020 = (undefined); - s.unnamed7258___U1 = (s.caps[0]); - s.unnamed7259___U2 = (0); + s.res___25220 = undefined; + s.enemy___25226 = undefined; + s.tmp_0 = scene_aStar__P22025_mk(s); + s.tmp_1 = tiles_getTileLocation__P20908_mk(s); + s.tmp_1.arg0 = 0; + s.tmp_1.arg1 = 11; + s.callLocIdx = 216; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_2 = tiles_getTileLocation__P20908_mk(s); + s.tmp_2.arg0 = 0; + s.tmp_2.arg1 = 3; + s.callLocIdx = 217; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = globals.tilePath5___21570; + s.callLocIdx = 218; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = r0 = s.unnamed7259___U2; - r0 = pxsim_Array__length(s.unnamed7258___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed7258___U1, s.unnamed7259___U2); - s.l___189020 = (r0); - s.tmp_2 = tiles_setTileAt__P145225_mk(s); - s.tmp_2.arg0 = s.l___189020; - s.tmp_2.arg1 = globals.tilePath4___146470; - s.pc = 5; return s.tmp_2; - case 5: r0 = s.retval; - s.tmp_0 = pause__P144435_mk(s); - s.tmp_0.arg0 = 100; - s.pc = 6; return s.tmp_0; + s.res___25220 = (r0); + s.tmp_0 = sprites_create__P20538_mk(s); + r0 = pxsim.image.ofBuffer(_hex25230); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.Enemy___20695; + s.callLocIdx = 219; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.enemy___25226 = (r0); + s.tmp_0 = Sprite_setPosition__P20636_mk(s); + s.tmp_0.arg0 = s.enemy___25226; + s.tmp_1 = Sprite_x__P20589_mk(s); + s.tmp_1.arg0 = globals.mySprite___22039; + s.callLocIdx = 220; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = (s.unnamed7259___U2 + 1); - s.unnamed7259___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed7258___U1 = (undefined); - case 3: - case 4: + s.tmp_0.arg1 = r0; + s.tmp_2 = Sprite_y__P20591_mk(s); + s.tmp_2.arg0 = globals.mySprite___22039; + s.callLocIdx = 221; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_0.arg2 = r0; + s.callLocIdx = 222; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = scene_followPath__P22029_mk(s); + s.tmp_0.arg0 = s.enemy___25226; + s.tmp_0.arg1 = s.res___25220; + s.tmp_0.arg2 = 50; + s.callLocIdx = 223; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P189015.info = {"start":1913,"length":212,"line":54,"column":26,"endLine":62,"endColumn":5,"fileName":"test.ts","functionName":"inline","argumentNames":[]} +inline__P25219.info = {"start":835,"length":905,"line":26,"column":52,"endLine":48,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":[]} -function inline__P189015_mk(s) { +function inline__P25219_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189015, depth: s.depth + 1, + parent: s, fn: inline__P25219, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - l___189020: undefined, - unnamed7258___U1: undefined, - unnamed7259___U2: undefined, + res___25220: undefined, + enemy___25226: undefined, } } +const _hex25230 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000666600000000007677866600000070777777880600007677777787680000767787887768006076778888888806606588886686880660658868666688066066886866668806006611686666680000661165668668000060565566680600000066666666000000000066660000000000000000000000") -function inline__P189028(s) { +function inline__P25246(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1613,76 +1642,25 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = console_log__P144384_mk(s); - r0 = pxsim_String_.mkEmpty(); - s.tmp_3 = r0; - s.tmp_6 = tiles_Location_x__P145168_mk(s); - s.tmp_6.arg0 = s.arg1; - s.pc = 2; return s.tmp_6; - case 2: - r0 = s.retval; - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 3); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } - case 3: - 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, " "); - s.tmp_1 = r0; - s.tmp_9 = tiles_Location_y__P145169_mk(s); - s.tmp_9.arg0 = s.arg1; - s.pc = 4; return s.tmp_9; - case 4: - r0 = s.retval; - s.tmp_8 = r0; - if ((s.tmp_8) && (s.tmp_8).vtable) { - setupResume(s, 5); - pxsim_String__stringConv(s.tmp_8); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_8) + ""; } - case 5: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_7); - s.tmp_0.arg0 = r0; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = Sprite_destroy__P144934_mk(s); + s.tmp_0 = Sprite_destroy__P20651_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.ashes___145979; + s.tmp_0.arg1 = globals.ashes___21373; s.tmp_0.arg2 = undefined; - s.pc = 6; return s.tmp_0; - case 6: + s.callLocIdx = 226; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P189028.info = {"start":2173,"length":137,"line":65,"column":41,"endLine":68,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":["sprite","location"]} +inline__P25246.info = {"start":1833,"length":90,"line":50,"column":41,"endLine":52,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":["sprite","location"]} -function inline__P189028_mk(s) { +function inline__P25246_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189028, depth: s.depth + 1, + parent: s, fn: inline__P25246, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, } } @@ -1691,7 +1669,7 @@ function inline__P189028_mk(s) { -function inline__P189050(s) { +function inline__P25256(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1701,39 +1679,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pfs___189051 = undefined; - s.tmp_0 = sprites_allOfKind__P144879_mk(s); - s.tmp_0.arg0 = globals.Enemy___144982; - s.pc = 1; return s.tmp_0; + s.pfs___25257 = undefined; + s.tmp_0 = sprites_allOfKind__P20539_mk(s); + s.tmp_0.arg0 = globals.Enemy___20695; + s.callLocIdx = 228; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.pfs___189051 = (r0); - s.tmp_0 = helpers_arrayForEach__P144186_mk(s); - s.tmp_0.arg0 = s.pfs___189051; - s.tmp_0.arg1 = inline__P189057; - s.pc = 2; return s.tmp_0; + s.pfs___25257 = (r0); + s.tmp_0 = helpers_arrayForEach__P18671_mk(s); + s.tmp_0.arg0 = s.pfs___25257; + s.tmp_0.arg1 = inline__P25263; + s.callLocIdx = 232; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P189050.info = {"start":2366,"length":164,"line":70,"column":52,"endLine":77,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":[]} +inline__P25256.info = {"start":1979,"length":164,"line":54,"column":52,"endLine":61,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":[]} -function inline__P189050_mk(s) { +function inline__P25256_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189050, depth: s.depth + 1, + parent: s, fn: inline__P25256, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - pfs___189051: undefined, + pfs___25257: undefined, } } -function inline__P189057(s) { +function inline__P25263(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1747,35 +1725,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_followPath__P182981_mk(s); + s.tmp_0 = scene_followPath__P22029_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = null; s.tmp_0.arg2 = 50; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 229; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_vx__P144890_mk(s); + s.tmp_0 = Sprite_vx__P20594_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.pc = 2; return s.tmp_0; + s.callLocIdx = 230; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_vy__P144892_mk(s); + s.tmp_0 = Sprite_vy__P20596_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.pc = 3; return s.tmp_0; + s.callLocIdx = 231; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P189057.info = {"start":2443,"length":83,"line":72,"column":16,"endLine":76,"endColumn":5,"fileName":"test.ts","functionName":"inline","argumentNames":["s"]} +inline__P25263.info = {"start":2056,"length":83,"line":56,"column":16,"endLine":60,"endColumn":5,"fileName":"test.ts","functionName":"inline","argumentNames":["s"]} -function inline__P189057_mk(s) { +function inline__P25263_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189057, depth: s.depth + 1, + parent: s, fn: inline__P25263, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -1785,7 +1763,7 @@ function inline__P189057_mk(s) { -function inline__P189069(s) { +function inline__P25274(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1797,15 +1775,15 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P144186_mk(s); - s.tmp_1 = sprites_allOfKind__P144879_mk(s); - s.tmp_1.arg0 = globals.Enemy___144982; - s.pc = 4; return s.tmp_1; + s.tmp_0 = helpers_arrayForEach__P18671_mk(s); + s.tmp_1 = sprites_allOfKind__P20539_mk(s); + s.tmp_1.arg0 = globals.Enemy___20695; + s.callLocIdx = 234; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P189074; - s.pc = 3; return s.tmp_0; + s.tmp_0.arg1 = inline__P25279; + s.callLocIdx = 237; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: @@ -1814,12 +1792,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P189069.info = {"start":2566,"length":145,"line":80,"column":14,"endLine":85,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":[]} +inline__P25274.info = {"start":2179,"length":168,"line":64,"column":14,"endLine":69,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":[]} -function inline__P189069_mk(s) { +function inline__P25274_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189069, depth: s.depth + 1, + parent: s, fn: inline__P25274, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1829,7 +1807,7 @@ function inline__P189069_mk(s) { -function inline__P189074(s) { +function inline__P25279(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1843,33 +1821,39 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_say__P144921_mk(s); + s.tmp_0 = Sprite_say__P20638_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = scene_spritePercentPathCompleted__P183138_mk(s); - s.tmp_1.arg0 = s.arg0; - s.pc = 2; return s.tmp_1; + s.tmp_3 = scene_spritePercentPathCompleted__P22031_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 235; s.pc = 2; return s.tmp_3; case 2: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim.Math_.round(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops.toString(s.tmp_1); s.tmp_0.arg1 = r0; s.tmp_0.arg2 = undefined; s.tmp_0.arg3 = 15; s.tmp_0.arg4 = 1; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 236; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P189074.info = {"start":2654,"length":47,"line":83,"column":21,"endLine":83,"endColumn":68,"fileName":"test.ts","functionName":"inline","argumentNames":["s"]} +inline__P25279.info = {"start":2267,"length":70,"line":67,"column":21,"endLine":67,"endColumn":91,"fileName":"test.ts","functionName":"inline","argumentNames":["s"]} -function inline__P189074_mk(s) { +function inline__P25279_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P189074, depth: s.depth + 1, + parent: s, fn: inline__P25279, depth: s.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, } } @@ -1877,7 +1861,7 @@ function inline__P189074_mk(s) { -function scene_spritePercentPathCompleted__P183138(s) { +function scene_spritePercentPathCompleted__P22031(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1887,30 +1871,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pfs___183141 = undefined; + s.pfs___24947 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_init__P182797_mk(s); - s.pc = 4; return s.tmp_0; + s.tmp_0 = scene_init__P24606_mk(s); + s.callLocIdx = 179; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P183143); + r0 = pxsim_pxtcore_mkAction(1, inline__P24949); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFind__P144188_mk(s); - s.tmp_2 = scene_getPathFollowingSprites__P182818_mk(s); - s.pc = 6; return s.tmp_2; + s.tmp_1 = helpers_arrayFind__P18673_mk(s); + s.tmp_2 = scene_getPathFollowingSprites__P24627_mk(s); + s.callLocIdx = 180; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.pc = 5; return s.tmp_1; + s.callLocIdx = 181; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - s.pfs___183141 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pfs___183141); + s.pfs___24947 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pfs___24947); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -1920,17 +1904,17 @@ switch (step) { { step = 3; continue; } case 1: case 2: - r0 = s.pfs___183141.fields["path"]; + r0 = s.pfs___24947.fields["path"]; s.tmp_6 = r0; r0 = pxsim_Array__length(s.tmp_6); s.tmp_5 = r0; - r0 = s.pfs___183141.fields["index"]; + r0 = s.pfs___24947.fields["index"]; s.tmp_7 = r0; r0 = (s.tmp_5 - s.tmp_7); s.tmp_4 = r0; r0 = (100 * s.tmp_4); s.tmp_3 = r0; - r0 = s.pfs___183141.fields["path"]; + r0 = s.pfs___24947.fields["path"]; s.tmp_9 = r0; r0 = pxsim_Array__length(s.tmp_9); s.tmp_8 = r0; @@ -1941,12 +1925,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_spritePercentPathCompleted__P183138.info = {"start":7111,"length":372,"line":184,"column":4,"endLine":191,"endColumn":5,"fileName":"path-following.ts","functionName":"spritePercentPathCompleted","argumentNames":["sprite"]} +scene_spritePercentPathCompleted__P22031.info = {"start":7133,"length":372,"line":184,"column":4,"endLine":191,"endColumn":5,"fileName":"path-following.ts","functionName":"spritePercentPathCompleted","argumentNames":["sprite"]} -function scene_spritePercentPathCompleted__P183138_mk(s) { +function scene_spritePercentPathCompleted__P22031_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_spritePercentPathCompleted__P183138, depth: s.depth + 1, + parent: s, fn: scene_spritePercentPathCompleted__P22031, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1958,7 +1942,7 @@ function scene_spritePercentPathCompleted__P183138_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pfs___183141: undefined, + pfs___24947: undefined, arg0: undefined, } } @@ -1966,7 +1950,7 @@ function scene_spritePercentPathCompleted__P183138_mk(s) { -function inline__P183143(s) { +function inline__P24949(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1986,12 +1970,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P183143.info = {"start":7247,"length":28,"line":186,"column":51,"endLine":186,"endColumn":79,"fileName":"path-following.ts","functionName":"inline","argumentNames":["pfs"]} +inline__P24949.info = {"start":7269,"length":28,"line":186,"column":51,"endLine":186,"endColumn":79,"fileName":"path-following.ts","functionName":"inline","argumentNames":["pfs"]} -function inline__P183143_mk(s) { +function inline__P24949_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P183143, depth: s.depth + 1, + parent: s, fn: inline__P24949, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2001,7 +1985,7 @@ function inline__P183143_mk(s) { -function scene_getPathFollowingSprites__P182818(s) { +function scene_getPathFollowingSprites__P24627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2011,23 +1995,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_2 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_2; + s.tmp_2 = game_currentScene__P21096_mk(s); + s.callLocIdx = 190; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; r0 = s.tmp_1.fields["_data"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_0, globals.PATH_FOLLOW_KEY___182779); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_0, globals.PATH_FOLLOW_KEY___24588); return leave(s, r0) default: oops() } } } -scene_getPathFollowingSprites__P182818.info = {"start":9827,"length":148,"line":272,"column":4,"endLine":274,"endColumn":5,"fileName":"path-following.ts","functionName":"getPathFollowingSprites","argumentNames":[]} +scene_getPathFollowingSprites__P24627.info = {"start":9849,"length":148,"line":272,"column":4,"endLine":274,"endColumn":5,"fileName":"path-following.ts","functionName":"getPathFollowingSprites","argumentNames":[]} -function scene_getPathFollowingSprites__P182818_mk(s) { +function scene_getPathFollowingSprites__P24627_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_getPathFollowingSprites__P182818, depth: s.depth + 1, + parent: s, fn: scene_getPathFollowingSprites__P24627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2038,7 +2022,7 @@ function scene_getPathFollowingSprites__P182818_mk(s) { -function scene_Scene_data__P145295(s) { +function scene_Scene_data__P21006(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2053,18 +2037,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C145293_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C20983_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_data__P145295.info = {"start":6208,"length":53,"line":169,"column":8,"endLine":171,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} -scene_Scene_data__P145295.isGetter = true; +scene_Scene_data__P21006.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__P21006.isGetter = true; -function scene_Scene_data__P145295_mk(s) { +function scene_Scene_data__P21006_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_data__P145295, depth: s.depth + 1, + parent: s, fn: scene_Scene_data__P21006, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -2073,7 +2057,7 @@ function scene_Scene_data__P145295_mk(s) { -function helpers_arrayFind__P144188(s) { +function helpers_arrayFind__P18673(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2083,41 +2067,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___155672 = undefined; - s.i___155675 = undefined; - s.v___155680 = undefined; + s.len___31350 = undefined; + s.i___31353 = undefined; + s.v___31358 = 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___155672 = (r0); - s.i___155675 = (0); + s.len___31350 = (r0); + s.i___31353 = (0); case 1: - r0 = (s.i___155675 < s.len___155672); + r0 = (s.i___31353 < s.len___31350); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___155675); - s.v___155680 = (r0); + r0 = pxsim_Array__getAt(s.arg0, s.i___31353); + s.v___31358 = (r0); s.tmp_1 = lambda_3_mk(s); s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___155680; - s.tmp_1.arg1 = s.i___155675; + s.tmp_1.arg0 = s.v___31358; + s.tmp_1.arg1 = s.i___31353; setupLambda(s.tmp_1, s.tmp_1.argL); - s.pc = 6; return s.tmp_1; + s.callLocIdx = 7; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = s.v___155680; + r0 = s.v___31358; { step = 5; continue; } case 2: case 3: - r0 = (s.i___155675 + 1); - s.i___155675 = (r0); + r0 = (s.i___31353 + 1); + s.i___31353 = (r0); { step = 1; continue; } case 4: r0 = undefined; @@ -2125,18 +2109,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arrayFind__P144188.info = {"start":8018,"length":292,"line":271,"column":4,"endLine":278,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFind","argumentNames":["arr","callbackfn"]} +helpers_arrayFind__P18673.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 helpers_arrayFind__P144188_mk(s) { +function helpers_arrayFind__P18673_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFind__P144188, depth: s.depth + 1, + parent: s, fn: helpers_arrayFind__P18673, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___155672: undefined, - i___155675: undefined, - v___155680: undefined, + len___31350: undefined, + i___31353: undefined, + v___31358: undefined, arg0: undefined, arg1: undefined, } } @@ -2145,7 +2129,7 @@ function helpers_arrayFind__P144188_mk(s) { -function scene_init__P182797(s) { +function scene_init__P24606(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2155,14 +2139,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_5 = game_currentScene__P145074_mk(s); - s.pc = 3; return s.tmp_5; + s.tmp_5 = game_currentScene__P21096_mk(s); + s.callLocIdx = 123; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; r0 = s.tmp_4.fields["_data"]; s.tmp_3 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_3, globals.PATH_FOLLOW_KEY___182779); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_3, globals.PATH_FOLLOW_KEY___24588); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -2170,31 +2154,31 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_8 = game_currentScene__P145074_mk(s); - s.pc = 4; return s.tmp_8; + s.tmp_8 = game_currentScene__P21096_mk(s); + s.callLocIdx = 125; s.pc = 4; return s.tmp_8; case 4: r0 = s.retval; s.tmp_7 = r0; r0 = s.tmp_7.fields["_data"]; s.tmp_6 = r0; - s.tmp_9 = r0 = globals.PATH_FOLLOW_KEY___182779; + s.tmp_9 = r0 = globals.PATH_FOLLOW_KEY___24588; r0 = pxsim_Array__mk(); s.tmp_10 = r0; r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_6, s.tmp_9, s.tmp_10); - s.tmp_2 = game_currentScene__P145074_mk(s); - s.pc = 5; return s.tmp_2; + s.tmp_2 = game_currentScene__P21096_mk(s); + s.callLocIdx = 127; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; s.tmp_1 = r0; r0 = s.tmp_1.fields["_data"]; s.tmp_0 = r0; - s.tmp_3 = r0 = globals.PATH_COMPLETION_KEY___182781; + s.tmp_3 = r0 = globals.PATH_COMPLETION_KEY___24590; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, s.tmp_3, s.tmp_4); - s.tmp_0 = game_onUpdate__P145397_mk(s); - s.tmp_0.arg0 = inline__P182814; - s.pc = 6; return s.tmp_0; + s.tmp_0 = game_onUpdate__P21107_mk(s); + s.tmp_0.arg0 = inline__P24623; + s.callLocIdx = 151; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 1: @@ -2203,12 +2187,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_init__P182797.info = {"start":619,"length":2301,"line":24,"column":4,"endLine":72,"endColumn":5,"fileName":"path-following.ts","functionName":"init","argumentNames":[]} +scene_init__P24606.info = {"start":619,"length":2301,"line":24,"column":4,"endLine":72,"endColumn":5,"fileName":"path-following.ts","functionName":"init","argumentNames":[]} -function scene_init__P182797_mk(s) { +function scene_init__P24606_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_init__P182797, depth: s.depth + 1, + parent: s, fn: scene_init__P24606, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2227,7 +2211,7 @@ function scene_init__P182797_mk(s) { -function inline__P182814(s) { +function inline__P24623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2237,45 +2221,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.store___182815 = undefined; - s.handlers___182819 = undefined; - s.i___182823 = undefined; - s.pfs___182830 = undefined; - s.sprite___182835 = undefined; - s.index___182836 = undefined; - s.path___182837 = undefined; - s.speed___182838 = undefined; - s.target___182839 = undefined; - s.x___182844 = undefined; - s.y___182845 = undefined; - s.vx___182846 = undefined; - s.vy___182847 = undefined; - s.pastTargetHorizontally___182848 = undefined; - s.pastTargetVertically___182867 = undefined; - s.newTarget___182892 = undefined; - s.tmp_0 = scene_getPathFollowingSprites__P182818_mk(s); - s.pc = 27; return s.tmp_0; + s.store___24624 = undefined; + s.handlers___24628 = undefined; + s.i___24632 = undefined; + s.pfs___24639 = undefined; + s.sprite___24644 = undefined; + s.index___24645 = undefined; + s.path___24646 = undefined; + s.speed___24647 = undefined; + s.target___24648 = undefined; + s.x___24653 = undefined; + s.y___24654 = undefined; + s.vx___24655 = undefined; + s.vy___24656 = undefined; + s.pastTargetHorizontally___24657 = undefined; + s.pastTargetVertically___24676 = undefined; + s.newTarget___24701 = undefined; + s.tmp_0 = scene_getPathFollowingSprites__P24627_mk(s); + s.callLocIdx = 129; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.store___182815 = (r0); - s.tmp_0 = scene_getPathCompletionEvents__P182822_mk(s); - s.pc = 28; return s.tmp_0; + s.store___24624 = (r0); + s.tmp_0 = scene_getPathCompletionEvents__P24631_mk(s); + s.callLocIdx = 130; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; - s.handlers___182819 = (r0); - r0 = pxsim_Array__length(s.store___182815); + s.handlers___24628 = (r0); + r0 = pxsim_Array__length(s.store___24624); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - s.i___182823 = (r0); + s.i___24632 = (r0); case 1: - r0 = (s.i___182823 >= 0); + r0 = (s.i___24632 >= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - r0 = pxsim_Array__getAt(s.store___182815, s.i___182823); - s.pfs___182830 = (r0); + r0 = pxsim_Array__getAt(s.store___24624, s.i___24632); + s.pfs___24639 = (r0); s.tmp_0 = if_sprite_1_mk(s); - s.tmp_1 = r0 = s.pfs___182830; + s.tmp_1 = r0 = s.pfs___24639; s.tmp_0.arg0 = r0; if (!s.tmp_0.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "sprite"); @@ -2283,11 +2267,11 @@ switch (step) { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["sprite"]; if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["sprite"]; } else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.pc = 29; return s.tmp_0; } + else { s.callLocIdx = 131; s.pc = 29; return s.tmp_0; } } case 29: r0 = s.retval; - s.sprite___182835 = (r0); + s.sprite___24644 = (r0); s.tmp_2 = if_index_1_mk(s); s.tmp_2.arg0 = s.tmp_1; if (!s.tmp_2.arg0.vtable.iface) { @@ -2296,11 +2280,11 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["index"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["index"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.pc = 30; return s.tmp_2; } + else { s.callLocIdx = 132; s.pc = 30; return s.tmp_2; } } case 30: r0 = s.retval; - s.index___182836 = (r0); + s.index___24645 = (r0); s.tmp_3 = if_path_1_mk(s); s.tmp_3.arg0 = s.tmp_1; if (!s.tmp_3.arg0.vtable.iface) { @@ -2309,11 +2293,11 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["path"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["path"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.pc = 31; return s.tmp_3; } + else { s.callLocIdx = 133; s.pc = 31; return s.tmp_3; } } case 31: r0 = s.retval; - s.path___182837 = (r0); + s.path___24646 = (r0); s.tmp_4 = if_speed_1_mk(s); s.tmp_4.arg0 = s.tmp_1; if (!s.tmp_4.arg0.vtable.iface) { @@ -2322,15 +2306,15 @@ switch (step) { s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["speed"]; if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["speed"]; } else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.pc = 32; return s.tmp_4; } + else { s.callLocIdx = 134; s.pc = 32; return s.tmp_4; } } case 32: r0 = s.retval; - s.speed___182838 = (r0); - r0 = pxsim_Array__getAt(s.path___182837, s.index___182836); - s.target___182839 = (r0); + s.speed___24647 = (r0); + r0 = pxsim_Array__getAt(s.path___24646, s.index___24645); + s.target___24648 = (r0); s.tmp_0 = if_x_1_mk(s); - s.tmp_1 = r0 = s.sprite___182835; + s.tmp_1 = r0 = s.sprite___24644; s.tmp_0.arg0 = r0; if (!s.tmp_0.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "x"); @@ -2338,11 +2322,11 @@ switch (step) { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["x"]; if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["x"]; } else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.pc = 33; return s.tmp_0; } + else { s.callLocIdx = 135; s.pc = 33; return s.tmp_0; } } case 33: r0 = s.retval; - s.x___182844 = (r0); + s.x___24653 = (r0); s.tmp_2 = if_y_1_mk(s); s.tmp_2.arg0 = s.tmp_1; if (!s.tmp_2.arg0.vtable.iface) { @@ -2351,11 +2335,11 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["y"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["y"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.pc = 34; return s.tmp_2; } + else { s.callLocIdx = 136; s.pc = 34; return s.tmp_2; } } case 34: r0 = s.retval; - s.y___182845 = (r0); + s.y___24654 = (r0); s.tmp_3 = if_vx_1_mk(s); s.tmp_3.arg0 = s.tmp_1; if (!s.tmp_3.arg0.vtable.iface) { @@ -2364,11 +2348,11 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["vx"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["vx"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.pc = 35; return s.tmp_3; } + else { s.callLocIdx = 137; s.pc = 35; return s.tmp_3; } } case 35: r0 = s.retval; - s.vx___182846 = (r0); + s.vx___24655 = (r0); s.tmp_4 = if_vy_1_mk(s); s.tmp_4.arg0 = s.tmp_1; if (!s.tmp_4.arg0.vtable.iface) { @@ -2377,12 +2361,12 @@ switch (step) { s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["vy"]; if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["vy"]; } else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.pc = 36; return s.tmp_4; } + else { s.callLocIdx = 138; s.pc = 36; return s.tmp_4; } } case 36: r0 = s.retval; - s.vy___182847 = (r0); - r0 = pxsim_numops_toBoolDecr(s.vx___182846); + s.vy___24656 = (r0); + r0 = pxsim_numops_toBoolDecr(s.vx___24655); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -2391,17 +2375,17 @@ switch (step) { r0 = s.tmp_0; { step = 5; continue; } case 2: - r0 = (s.vx___182846 < 0); + r0 = (s.vx___24655 < 0); 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_3 = r0 = s.x___182844; - s.tmp_5 = tiles_Location_x__P145168_mk(s); - s.tmp_5.arg0 = s.target___182839; - s.pc = 37; return s.tmp_5; + s.tmp_3 = r0 = s.x___24653; + s.tmp_5 = tiles_Location_x__P20857_mk(s); + s.tmp_5.arg0 = s.target___24648; + s.callLocIdx = 139; s.pc = 37; return s.tmp_5; case 37: r0 = s.retval; s.tmp_4 = r0; @@ -2418,17 +2402,17 @@ switch (step) { r0 = s.tmp_7; { step = 9; continue; } case 6: - r0 = (s.vx___182846 > 0); + r0 = (s.vx___24655 > 0); s.tmp_8 = r0; r0 = pxsim_numops_toBool(s.tmp_8); if (r0) { step = 7; continue; } r0 = s.tmp_8; { step = 8; continue; } case 7: - s.tmp_9 = r0 = s.x___182844; - s.tmp_11 = tiles_Location_x__P145168_mk(s); - s.tmp_11.arg0 = s.target___182839; - s.pc = 38; return s.tmp_11; + s.tmp_9 = r0 = s.x___24653; + s.tmp_11 = tiles_Location_x__P20857_mk(s); + s.tmp_11.arg0 = s.target___24648; + s.callLocIdx = 140; s.pc = 38; return s.tmp_11; case 38: r0 = s.retval; s.tmp_10 = r0; @@ -2440,8 +2424,8 @@ switch (step) { case 9: // jmp value (already in r0) s.tmp_13 = r0; - s.pastTargetHorizontally___182848 = (s.tmp_13); - r0 = pxsim_numops_toBoolDecr(s.vy___182847); + s.pastTargetHorizontally___24657 = (s.tmp_13); + r0 = pxsim_numops_toBoolDecr(s.vy___24656); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -2450,17 +2434,17 @@ switch (step) { r0 = s.tmp_0; { step = 13; continue; } case 10: - r0 = (s.vy___182847 < 0); + r0 = (s.vy___24656 < 0); s.tmp_2 = r0; r0 = pxsim_numops_toBool(s.tmp_2); if (r0) { step = 11; continue; } r0 = s.tmp_2; { step = 12; continue; } case 11: - s.tmp_3 = r0 = s.y___182845; - s.tmp_5 = tiles_Location_y__P145169_mk(s); - s.tmp_5.arg0 = s.target___182839; - s.pc = 39; return s.tmp_5; + s.tmp_3 = r0 = s.y___24654; + s.tmp_5 = tiles_Location_y__P20858_mk(s); + s.tmp_5.arg0 = s.target___24648; + s.callLocIdx = 141; s.pc = 39; return s.tmp_5; case 39: r0 = s.retval; s.tmp_4 = r0; @@ -2477,17 +2461,17 @@ switch (step) { r0 = s.tmp_7; { step = 17; continue; } case 14: - r0 = (s.vy___182847 > 0); + r0 = (s.vy___24656 > 0); s.tmp_8 = r0; r0 = pxsim_numops_toBool(s.tmp_8); if (r0) { step = 15; continue; } r0 = s.tmp_8; { step = 16; continue; } case 15: - s.tmp_9 = r0 = s.y___182845; - s.tmp_11 = tiles_Location_y__P145169_mk(s); - s.tmp_11.arg0 = s.target___182839; - s.pc = 40; return s.tmp_11; + s.tmp_9 = r0 = s.y___24654; + s.tmp_11 = tiles_Location_y__P20858_mk(s); + s.tmp_11.arg0 = s.target___24648; + s.callLocIdx = 142; s.pc = 40; return s.tmp_11; case 40: r0 = s.retval; s.tmp_10 = r0; @@ -2499,112 +2483,112 @@ switch (step) { case 17: // jmp value (already in r0) s.tmp_13 = r0; - s.pastTargetVertically___182867 = (s.tmp_13); - s.tmp_0 = r0 = s.pastTargetHorizontally___182848; + s.pastTargetVertically___24676 = (s.tmp_13); + s.tmp_0 = r0 = s.pastTargetHorizontally___24657; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 18; continue; } r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.pastTargetVertically___182867; + r0 = s.pastTargetVertically___24676; case 19: // jmp value (already in r0) s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 24; continue; } - s.tmp_2 = r0 = s.pfs___182830; + s.tmp_2 = r0 = s.pfs___24639; r0 = s.tmp_2.fields["index"]; s.tmp_4 = r0; r0 = (s.tmp_4 + 1); s.tmp_3 = r0; r0 = (s.tmp_2).fields["index"] = (s.tmp_3); - r0 = s.pfs___182830.fields["index"]; + r0 = s.pfs___24639.fields["index"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.path___182837, s.tmp_0); - s.newTarget___182892 = (r0); - r0 = pxsim_numops_toBoolDecr(s.newTarget___182892); + r0 = pxsim_Array__getAt(s.path___24646, s.tmp_0); + s.newTarget___24701 = (r0); + r0 = pxsim_numops_toBoolDecr(s.newTarget___24701); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - s.tmp_2 = Sprite_setVelocity__P144920_mk(s); - s.tmp_2.arg0 = s.sprite___182835; + s.tmp_2 = Sprite_setVelocity__P20637_mk(s); + s.tmp_2.arg0 = s.sprite___24644; s.tmp_2.arg1 = 0; s.tmp_2.arg2 = 0; - s.pc = 41; return s.tmp_2; + s.callLocIdx = 143; s.pc = 41; return s.tmp_2; case 41: r0 = s.retval; - s.tmp_0 = tiles_Location_place__P145171_mk(s); - s.tmp_0.arg0 = s.target___182839; - s.tmp_0.arg1 = s.sprite___182835; - s.pc = 42; return s.tmp_0; + s.tmp_0 = tiles_Location_place__P20860_mk(s); + s.tmp_0.arg0 = s.target___24648; + s.tmp_0.arg1 = s.sprite___24644; + s.callLocIdx = 144; s.pc = 42; return s.tmp_0; case 42: r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.store___182815, s.i___182823); - r0 = s.pfs___182830.fields["onEndHandler"]; + r0 = pxsim_Array_.removeAt(s.store___24624, s.i___24632); + r0 = s.pfs___24639.fields["onEndHandler"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } s.tmp_1 = if_onEndHandler_1_mk(s); - s.tmp_1.arg0 = s.pfs___182830; + s.tmp_1.arg0 = s.pfs___24639; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "onEndHandler"), 1); - s.pc = 43; return s.tmp_1; + s.callLocIdx = 145; s.pc = 43; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["onEndHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["onEndHandler"], 1); s.pc = 43; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.pc = 43; return s.tmp_1;; } - else { s.pc = 43; return s.tmp_1; } + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["onEndHandler"], 1); s.callLocIdx = 145; s.pc = 43; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 145; s.pc = 43; return s.tmp_1;; } + else { s.callLocIdx = 145; s.pc = 43; return s.tmp_1; } } case 43: r0 = s.retval; { step = 21; continue; } case 20: - r0 = pxsim_pxtcore_mkAction(3, inline__P182915); + r0 = pxsim_pxtcore_mkAction(3, inline__P24724); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.sprite___182835); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.path___182837); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.pfs___182830); - s.tmp_1 = helpers_arrayForEach__P144186_mk(s); - s.tmp_1.arg0 = s.handlers___182819; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.sprite___24644); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.path___24646); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.pfs___24639); + s.tmp_1 = helpers_arrayForEach__P18671_mk(s); + s.tmp_1.arg0 = s.handlers___24628; s.tmp_1.arg1 = s.tmp_0; - s.pc = 44; return s.tmp_1; + s.callLocIdx = 148; s.pc = 44; return s.tmp_1; case 44: r0 = s.retval; case 21: { step = 23; continue; } case 22: - s.tmp_0 = tiles_Location_place__P145171_mk(s); - s.tmp_0.arg0 = s.target___182839; - s.tmp_0.arg1 = s.sprite___182835; - s.pc = 45; return s.tmp_0; + s.tmp_0 = tiles_Location_place__P20860_mk(s); + s.tmp_0.arg0 = s.target___24648; + s.tmp_0.arg1 = s.sprite___24644; + s.callLocIdx = 149; s.pc = 45; return s.tmp_0; case 45: r0 = s.retval; - s.tmp_0 = scene_setVelocityTowards__P182933_mk(s); - s.tmp_0.arg0 = s.sprite___182835; - s.tmp_0.arg1 = s.newTarget___182892; - s.tmp_0.arg2 = s.speed___182838; - s.pc = 46; return s.tmp_0; + s.tmp_0 = scene_setVelocityTowards__P24742_mk(s); + s.tmp_0.arg0 = s.sprite___24644; + s.tmp_0.arg1 = s.newTarget___24701; + s.tmp_0.arg2 = s.speed___24647; + s.callLocIdx = 150; s.pc = 46; return s.tmp_0; case 46: r0 = s.retval; case 23: case 24: case 25: - r0 = (s.i___182823 - 1); - s.i___182823 = (r0); + r0 = (s.i___24632 - 1); + s.i___24632 = (r0); { step = 1; continue; } case 26: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P182814.info = {"start":896,"length":2006,"line":29,"column":26,"endLine":70,"endColumn":13,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} +inline__P24623.info = {"start":896,"length":2006,"line":29,"column":26,"endLine":70,"endColumn":13,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} -function inline__P182814_mk(s) { +function inline__P24623_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P182814, depth: s.depth + 1, + parent: s, fn: inline__P24623, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2620,29 +2604,29 @@ function inline__P182814_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - store___182815: undefined, - handlers___182819: undefined, - i___182823: undefined, - pfs___182830: undefined, - sprite___182835: undefined, - index___182836: undefined, - path___182837: undefined, - speed___182838: undefined, - target___182839: undefined, - x___182844: undefined, - y___182845: undefined, - vx___182846: undefined, - vy___182847: undefined, - pastTargetHorizontally___182848: undefined, - pastTargetVertically___182867: undefined, - newTarget___182892: undefined, + store___24624: undefined, + handlers___24628: undefined, + i___24632: undefined, + pfs___24639: undefined, + sprite___24644: undefined, + index___24645: undefined, + path___24646: undefined, + speed___24647: undefined, + target___24648: undefined, + x___24653: undefined, + y___24654: undefined, + vx___24655: undefined, + vy___24656: undefined, + pastTargetHorizontally___24657: undefined, + pastTargetVertically___24676: undefined, + newTarget___24701: undefined, } } -function inline__P182915(s) { +function inline__P24724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2676,12 +2660,12 @@ switch (step) { s.tmp_3.arg2 = r0; if (!s.tmp_3.arg0.vtable.iface) { setupLambda(s.tmp_3, pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "handler"), 3); - s.pc = 3; return s.tmp_3; + s.callLocIdx = 147; s.pc = 3; return s.tmp_3; } else { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["handler"]; - if (s.tmp_3.fn == null) { setupLambda(s.tmp_3, s.tmp_3.arg0.fields["handler"], 3); s.pc = 3; return s.tmp_3; } - else if (s.tmp_3.fn.isGetter) { s.tmp_3.stage2Call = true; s.pc = 3; return s.tmp_3;; } - else { s.pc = 3; return s.tmp_3; } + if (s.tmp_3.fn == null) { setupLambda(s.tmp_3, s.tmp_3.arg0.fields["handler"], 3); s.callLocIdx = 147; s.pc = 3; return s.tmp_3; } + else if (s.tmp_3.fn.isGetter) { s.tmp_3.stage2Call = true; s.callLocIdx = 147; s.pc = 3; return s.tmp_3;; } + else { s.callLocIdx = 147; s.pc = 3; return s.tmp_3; } } case 3: r0 = s.retval; @@ -2691,12 +2675,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P182915.info = {"start":2359,"length":274,"line":58,"column":49,"endLine":62,"endColumn":33,"fileName":"path-following.ts","functionName":"inline","argumentNames":["completionHandler"]} +inline__P24724.info = {"start":2359,"length":274,"line":58,"column":49,"endLine":62,"endColumn":33,"fileName":"path-following.ts","functionName":"inline","argumentNames":["completionHandler"]} -function inline__P182915_mk(s) { +function inline__P24724_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P182915, depth: s.depth + 1, + parent: s, fn: inline__P24724, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2712,7 +2696,7 @@ function inline__P182915_mk(s) { -function scene_setVelocityTowards__P182933(s) { +function scene_setVelocityTowards__P24742(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2722,46 +2706,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dx___182942 = undefined; - s.dy___182948 = undefined; - s.dist___182954 = undefined; + s.dx___24751 = undefined; + s.dy___24757 = undefined; + s.dist___24763 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_1 = tiles_Location_x__P145168_mk(s); + s.tmp_1 = tiles_Location_x__P20857_mk(s); s.tmp_1.arg0 = s.arg1; - s.pc = 3; return s.tmp_1; + s.callLocIdx = 152; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Sprite_x__P144885_mk(s); + s.tmp_3 = Sprite_x__P20589_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 4; return s.tmp_3; + s.callLocIdx = 153; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 - s.tmp_2); - s.dx___182942 = (r0); - s.tmp_1 = tiles_Location_y__P145169_mk(s); + s.dx___24751 = (r0); + s.tmp_1 = tiles_Location_y__P20858_mk(s); s.tmp_1.arg0 = s.arg1; - s.pc = 5; return s.tmp_1; + s.callLocIdx = 154; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Sprite_y__P144887_mk(s); + s.tmp_3 = Sprite_y__P20591_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 6; return s.tmp_3; + s.callLocIdx = 155; s.pc = 6; return s.tmp_3; case 6: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 - s.tmp_2); - s.dy___182948 = (r0); - r0 = (s.dx___182942 * s.dx___182942); + s.dy___24757 = (r0); + r0 = (s.dx___24751 * s.dx___24751); s.tmp_2 = r0; - r0 = (s.dy___182948 * s.dy___182948); + r0 = (s.dy___24757 * s.dy___24757); s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; @@ -2776,44 +2760,44 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.dist___182954 = (s.tmp_4); - s.tmp_0 = Sprite_vx__P144890_mk(s); + s.dist___24763 = (s.tmp_4); + s.tmp_0 = Sprite_vx__P20594_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = (s.dx___182942 / s.dist___182954); + r0 = (s.dx___24751 / s.dist___24763); s.tmp_1 = r0; r0 = (s.tmp_1 * s.arg2); s.tmp_0.arg1 = r0; - s.pc = 7; return s.tmp_0; + s.callLocIdx = 156; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = Sprite_vy__P144892_mk(s); + s.tmp_0 = Sprite_vy__P20596_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = (s.dy___182948 / s.dist___182954); + r0 = (s.dy___24757 / s.dist___24763); s.tmp_1 = r0; r0 = (s.tmp_1 * s.arg2); s.tmp_0.arg1 = r0; - s.pc = 8; return s.tmp_0; + s.callLocIdx = 157; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setVelocityTowards__P182933.info = {"start":2926,"length":304,"line":74,"column":4,"endLine":80,"endColumn":5,"fileName":"path-following.ts","functionName":"setVelocityTowards","argumentNames":["sprite","target","speed"]} +scene_setVelocityTowards__P24742.info = {"start":2926,"length":304,"line":74,"column":4,"endLine":80,"endColumn":5,"fileName":"path-following.ts","functionName":"setVelocityTowards","argumentNames":["sprite","target","speed"]} -function scene_setVelocityTowards__P182933_mk(s) { +function scene_setVelocityTowards__P24742_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setVelocityTowards__P182933, depth: s.depth + 1, + parent: s, fn: scene_setVelocityTowards__P24742, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - dx___182942: undefined, - dy___182948: undefined, - dist___182954: undefined, + dx___24751: undefined, + dy___24757: undefined, + dist___24763: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -2823,95 +2807,7 @@ function scene_setVelocityTowards__P182933_mk(s) { -function Sprite_y__P144887(s) { -let r0 = s.r0, 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__C144883_VT)) failedCast(r0); - r0 = s.arg0.fields["_y"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 128); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_y__P144887.info = {"start":1849,"length":84,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} -Sprite_y__P144887.isGetter = true; - -function Sprite_y__P144887_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_y__P144887, depth: s.depth + 1, - pc: 0, retval: undefined, 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 Fx_toInt__P144253(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 + 128); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); - return leave(s, r0) - default: oops() -} } } -Fx_toInt__P144253.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} - -function Fx_toInt__P144253_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_toInt__P144253, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function Sprite_x__P144885(s) { +function Sprite_kind__P20634(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2926,70 +2822,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 128); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_x__P144885.info = {"start":1501,"length":83,"line":70,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} -Sprite_x__P144885.isGetter = true; - -function Sprite_x__P144885_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_x__P144885, depth: s.depth + 1, - pc: 0, retval: undefined, 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 Sprite_kind__P144917(s) { -let r0 = s.r0, 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__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["_kind"]; return leave(s, r0) default: oops() } } } -Sprite_kind__P144917.info = {"start":10488,"length":41,"line":379,"column":4,"endLine":381,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} +Sprite_kind__P20634.info = {"start":10604,"length":41,"line":387,"column":4,"endLine":389,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} -function Sprite_kind__P144917_mk(s) { +function Sprite_kind__P20634_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P144917, depth: s.depth + 1, + parent: s, fn: Sprite_kind__P20634, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -2998,7 +2841,7 @@ function Sprite_kind__P144917_mk(s) { -function tiles_Location_place__P145171(s) { +function tiles_Location_place__P20860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3014,7 +2857,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C145167_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C20853_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -3024,21 +2867,21 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = Sprite_setPosition__P144919_mk(s); + s.tmp_2 = Sprite_setPosition__P20636_mk(s); s.tmp_2.arg0 = s.arg1; - s.tmp_3 = tiles_Location_x__P145168_mk(s); + s.tmp_3 = tiles_Location_x__P20857_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 5; return s.tmp_3; + s.callLocIdx = 777; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; s.tmp_2.arg1 = r0; - s.tmp_4 = tiles_Location_y__P145169_mk(s); + s.tmp_4 = tiles_Location_y__P20858_mk(s); s.tmp_4.arg0 = s.arg0; - s.pc = 6; return s.tmp_4; + s.callLocIdx = 778; s.pc = 6; return s.tmp_4; case 6: r0 = s.retval; s.tmp_2.arg2 = r0; - s.pc = 4; return s.tmp_2; + s.callLocIdx = 779; s.pc = 4; return s.tmp_2; case 4: r0 = s.retval; case 3: @@ -3046,12 +2889,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_Location_place__P145171.info = {"start":1067,"length":126,"line":43,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"place","argumentNames":["this","mySprite"]} +tiles_Location_place__P20860.info = {"start":1189,"length":126,"line":51,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"place","argumentNames":["this","mySprite"]} -function tiles_Location_place__P145171_mk(s) { +function tiles_Location_place__P20860_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_place__P145171, depth: s.depth + 1, + parent: s, fn: tiles_Location_place__P20860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3066,7 +2909,7 @@ function tiles_Location_place__P145171_mk(s) { -function Sprite_setPosition__P144919(s) { +function Sprite_setVelocity__P20637(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3076,7 +2919,6 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___155867 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3084,80 +2926,94 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = Sprite_vx__P20594_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 313; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___155867 = (r0); - s.tmp_0 = PhysicsEngine__C144993_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___155867; - s.tmp_0.arg1 = s.arg0; - s.tmp_2 = r0 = s.arg1; - s.tmp_4 = Sprite_x__P144885_mk(s); - s.tmp_4.arg0 = s.arg0; - s.pc = 3; return s.tmp_4; - case 3: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 256); - s.tmp_5 = r0; - r0 = (s.tmp_5 | 0); - s.tmp_0.arg2 = r0; - s.tmp_7 = r0 = s.arg2; - s.tmp_9 = Sprite_y__P144887_mk(s); - s.tmp_9.arg0 = s.arg0; - s.pc = 4; return s.tmp_9; - case 4: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7 - s.tmp_8); - s.tmp_6 = r0; - r0 = (s.tmp_6 * 256); - s.tmp_10 = r0; - r0 = (s.tmp_10 | 0); - s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C144993_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.tmp_0 = Sprite_vy__P20596_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 314; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setPosition__P144919.info = {"start":11846,"length":220,"line":422,"column":4,"endLine":429,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} +Sprite_setVelocity__P20637.info = {"start":12526,"length":93,"line":450,"column":4,"endLine":453,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setVelocity","argumentNames":["this","vx","vy"]} + +function Sprite_setVelocity__P20637_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_setVelocity__P20637, 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_Location_y__P20858(s) { +let r0 = s.r0, 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___31870 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C20853_VT)) failedCast(r0); + r0 = s.arg0.fields["tileMap"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_scale"]; + s.scale___31870 = (r0); + r0 = s.arg0.fields["_row"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 << s.scale___31870); + s.tmp_0 = r0; + r0 = (s.scale___31870 - 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__P20858.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__P20858.isGetter = true; -function Sprite_setPosition__P144919_mk(s) { +function tiles_Location_y__P20858_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setPosition__P144919, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P20858, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - physics___155867: undefined, + scale___31870: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function PhysicsEngine_moveSprite__P144996(s) { +function tiles_TileMap_scale__P20883(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3169,35 +3025,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C144993_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P144996.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"]} +tiles_TileMap_scale__P20883.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__P20883.isGetter = true; -function PhysicsEngine_moveSprite__P144996_mk(s) { +function tiles_TileMap_scale__P20883_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P144996, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P20883, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function Sprite_setVelocity__P144920(s) { +function tiles_Location_x__P20857(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3207,48 +3058,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scale___31887 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = Sprite_vx__P144890_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P144892_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, tiles_Location__C20853_VT)) failedCast(r0); + r0 = s.arg0.fields["tileMap"]; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_scale"]; + s.scale___31887 = (r0); + r0 = s.arg0.fields["_col"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 << s.scale___31887); + s.tmp_0 = r0; + r0 = (s.scale___31887 - 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() } } } -Sprite_setVelocity__P144920.info = {"start":12409,"length":93,"line":442,"column":4,"endLine":445,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setVelocity","argumentNames":["this","vx","vy"]} +tiles_Location_x__P20857.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__P20857.isGetter = true; -function Sprite_setVelocity__P144920_mk(s) { +function tiles_Location_x__P20857_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setVelocity__P144920, depth: s.depth + 1, + parent: s, fn: tiles_Location_x__P20857, depth: s.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___31887: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_getPathCompletionEvents__P182822(s) { +function scene_getPathCompletionEvents__P24631(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3258,23 +3111,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_2 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_2; + s.tmp_2 = game_currentScene__P21096_mk(s); + s.callLocIdx = 192; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; r0 = s.tmp_1.fields["_data"]; s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_0, globals.PATH_COMPLETION_KEY___182781); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_0, globals.PATH_COMPLETION_KEY___24590); return leave(s, r0) default: oops() } } } -scene_getPathCompletionEvents__P182822.info = {"start":9981,"length":152,"line":276,"column":4,"endLine":278,"endColumn":5,"fileName":"path-following.ts","functionName":"getPathCompletionEvents","argumentNames":[]} +scene_getPathCompletionEvents__P24631.info = {"start":10003,"length":152,"line":276,"column":4,"endLine":278,"endColumn":5,"fileName":"path-following.ts","functionName":"getPathCompletionEvents","argumentNames":[]} -function scene_getPathCompletionEvents__P182822_mk(s) { +function scene_getPathCompletionEvents__P24631_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_getPathCompletionEvents__P182822, depth: s.depth + 1, + parent: s, fn: scene_getPathCompletionEvents__P24631, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3285,7 +3138,7 @@ function scene_getPathCompletionEvents__P182822_mk(s) { -function Sprite_say__P144921(s) { +function Sprite_say__P20638(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3295,24 +3148,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.textToDisplay___148998 = undefined; - s.SAYKEY___149008 = undefined; - s.key___149010 = undefined; - s.pixelsOffset___149032 = undefined; - s.holdTextSeconds___149033 = undefined; - s.bubblePadding___149034 = undefined; - s.maxTextWidth___149035 = undefined; - s.font___149036 = undefined; - s.startX___149039 = undefined; - s.startY___149040 = undefined; - s.bubbleWidth___149041 = undefined; - s.maxOffset___149050 = undefined; - s.bubbleOffset___149058 = undefined; - s.needsRedraw___149065 = undefined; - s.speed___149066 = undefined; - s.currentScene___149067 = undefined; - s.imgh___149114 = undefined; - s.sayImg___149136 = undefined; + s.textToDisplay___25320 = undefined; + s.SAYKEY___25328 = undefined; + s.key___25330 = undefined; + s.pixelsOffset___25352 = undefined; + s.holdTextSeconds___25353 = undefined; + s.bubblePadding___25354 = undefined; + s.maxTextWidth___25355 = undefined; + s.font___25356 = undefined; + s.startX___25359 = undefined; + s.startY___25360 = undefined; + s.bubbleWidth___25361 = undefined; + s.maxOffset___25369 = undefined; + s.bubbleOffset___25377 = undefined; + s.needsRedraw___25382 = undefined; + s.speed___25383 = undefined; + s.currentScene___25384 = undefined; + s.imgh___25431 = undefined; + s.sayImg___25453 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3322,166 +3175,185 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg2); s.arg2 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.arg1 === null); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = s.tmp_1; + { step = 2; continue; } + case 1: + r0 = (s.arg1 === undefined); + 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_3 = r0 = s.arg1; + r0 = pxsim_String_.mkEmpty(); + s.tmp_4 = r0; + r0 = (s.tmp_3 === s.tmp_4); + case 4: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 7; continue; } r0 = (s.arg0).fields["updateSay"] = (undefined); 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__P144934_mk(s); + if (!r0) { step = 5; continue; } + s.tmp_1 = Sprite_destroy__P20651_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; s.tmp_1.arg2 = undefined; - s.pc = 28; return s.tmp_1; - case 28: + s.callLocIdx = 315; s.pc = 32; return s.tmp_1; + case 32: r0 = s.retval; r0 = (s.arg0).fields["sayBubbleSprite"] = (undefined); - case 1: - case 2: - { step = 27; continue; } - case 3: - case 4: - s.tmp_0 = helpers_arrayJoin__P144178_mk(s); - s.tmp_1 = helpers_stringSplit__P144196_mk(s); - s.tmp_2 = console_inspect__P144386_mk(s); + case 5: + case 6: + { step = 31; continue; } + case 7: + case 8: + s.tmp_0 = helpers_arrayJoin__P18665_mk(s); + s.tmp_1 = helpers_stringSplit__P18681_mk(s); + s.tmp_2 = console_inspect__P18935_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = 20; - s.pc = 31; return s.tmp_2; - case 31: + s.callLocIdx = 316; s.pc = 35; return s.tmp_2; + case 35: r0 = s.retval; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = "\n"; s.tmp_1.arg2 = undefined; - s.pc = 30; return s.tmp_1; - case 30: + s.callLocIdx = 317; s.pc = 34; return s.tmp_1; + case 34: r0 = s.retval; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = " "; - s.pc = 29; return s.tmp_0; - case 29: + s.callLocIdx = 318; s.pc = 33; return s.tmp_0; + case 33: r0 = s.retval; - s.textToDisplay___148998 = (r0); - s.SAYKEY___149008 = ("__saykey"); + s.textToDisplay___25320 = (r0); + s.SAYKEY___25328 = ("__saykey"); r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "text", s.textToDisplay___148998); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "text", s.textToDisplay___25320); 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__P144403_mk(s); + s.tmp_1 = JSON_stringify__P18940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = null; s.tmp_1.arg2 = 0; - s.pc = 32; return s.tmp_1; - case 32: + s.callLocIdx = 319; s.pc = 36; return s.tmp_1; + case 36: r0 = s.retval; - s.key___149010 = (r0); + s.key___25330 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.arg2); s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } + if (r0) { step = 9; continue; } r0 = s.tmp_0; - { step = 6; continue; } - case 5: + { step = 10; continue; } + case 9: r0 = s.arg0.fields["sayBubbleSprite"]; - case 6: + case 10: // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 7; continue; } + if (r0) { step = 11; continue; } r0 = s.tmp_2; - { step = 8; continue; } - case 7: - s.tmp_5 = Sprite_data__P144901_mk(s); + { step = 12; continue; } + case 11: + s.tmp_5 = Sprite_data__P20605_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_5.arg0 = r0; - s.pc = 33; return s.tmp_5; - case 33: + s.callLocIdx = 320; s.pc = 37; return s.tmp_5; + case 37: r0 = s.retval; s.tmp_4 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_4, s.SAYKEY___149008); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_4, s.SAYKEY___25328); s.tmp_3 = r0; - r0 = (s.tmp_3 == s.key___149010); - case 8: + r0 = (s.tmp_3 == s.key___25330); + case 12: // jmp value (already in r0) s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 9; continue; } - { step = 27; continue; } - case 9: - case 10: + if (!r0) { step = 13; continue; } + { step = 31; continue; } + case 13: + case 14: r0 = pxsim_pxtrt.mklocRef(); - s.pixelsOffset___149032 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.pixelsOffset___149032, 0); + s.pixelsOffset___25352 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.pixelsOffset___25352, 0); r0 = pxsim_pxtrt.mklocRef(); - s.holdTextSeconds___149033 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.holdTextSeconds___149033, 1.5); - s.bubblePadding___149034 = (4); - s.maxTextWidth___149035 = (100); - s.tmp_0 = image_getFontForText__P144648_mk(s); - s.tmp_0.arg0 = s.textToDisplay___148998; - s.pc = 34; return s.tmp_0; - case 34: + s.holdTextSeconds___25353 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.holdTextSeconds___25353, 1.5); + s.bubblePadding___25354 = (4); + s.maxTextWidth___25355 = (100); + s.tmp_0 = image_getFontForText__P20311_mk(s); + s.tmp_0.arg0 = s.textToDisplay___25320; + s.callLocIdx = 321; s.pc = 38; return s.tmp_0; + case 38: r0 = s.retval; - s.font___149036 = (r0); - s.startX___149039 = (2); - s.startY___149040 = (2); + s.font___25356 = (r0); + s.startX___25359 = (2); + s.startY___25360 = (2); r0 = pxsim_pxtrt.mklocRef(); - s.bubbleWidth___149041 = (r0); - s.tmp_0 = r0 = s.bubbleWidth___149041; - r0 = pxsim_String_.length(s.textToDisplay___148998); + s.bubbleWidth___25361 = (r0); + s.tmp_0 = r0 = s.bubbleWidth___25361; + r0 = pxsim_String_.length(s.textToDisplay___25320); s.tmp_3 = r0; s.tmp_5 = if_charWidth_1_mk(s); - s.tmp_5.arg0 = s.font___149036; + s.tmp_5.arg0 = s.font___25356; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth"); } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charWidth"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charWidth"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.pc = 35; return s.tmp_5; } + else { s.callLocIdx = 322; s.pc = 39; return s.tmp_5; } } - case 35: + case 39: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_2 + s.bubblePadding___149034); + r0 = (s.tmp_2 + s.bubblePadding___25354); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = pxsim_pxtrt.mklocRef(); - s.maxOffset___149050 = (r0); - s.tmp_0 = r0 = s.maxOffset___149050; - r0 = pxsim_String_.length(s.textToDisplay___148998); + s.maxOffset___25369 = (r0); + s.tmp_0 = r0 = s.maxOffset___25369; + r0 = pxsim_String_.length(s.textToDisplay___25320); s.tmp_3 = r0; s.tmp_5 = if_charWidth_1_mk(s); - s.tmp_5.arg0 = s.font___149036; + s.tmp_5.arg0 = s.font___25356; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charWidth"); } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charWidth"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charWidth"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.pc = 36; return s.tmp_5; } + else { s.callLocIdx = 323; s.pc = 40; return s.tmp_5; } } - case 36: + case 40: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; - r0 = (s.tmp_2 - s.maxTextWidth___149035); + r0 = (s.tmp_2 - s.maxTextWidth___25355); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = s.arg0.fields["_hitbox"]; @@ -3490,37 +3362,37 @@ switch (step) { r0 = (s.tmp_0 + 128); s.tmp_1 = r0; r0 = (s.tmp_1 >> 8); - s.bubbleOffset___149058 = (r0); + s.bubbleOffset___25377 = (r0); r0 = pxsim_pxtrt.mklocRef(); - s.needsRedraw___149065 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.needsRedraw___149065, true); + s.needsRedraw___25382 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.needsRedraw___25382, true); r0 = pxsim_pxtrt.mklocRef(); - s.speed___149066 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.speed___149066, 45); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 37; return s.tmp_0; - case 37: + s.speed___25383 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.speed___25383, 45); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 325; s.pc = 41; return s.tmp_0; + case 41: r0 = s.retval; - s.currentScene___149067 = (r0); + s.currentScene___25384 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 11; continue; } + if (r0) { step = 15; continue; } r0 = s.tmp_0; - { step = 12; continue; } - case 11: - r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___149050); + { step = 16; continue; } + case 15: + r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___25369); s.tmp_1 = r0; r0 = (s.tmp_1 > 0); - case 12: + case 16: // jmp value (already in r0) s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.speed___149066; - r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___149050); + if (!r0) { step = 17; continue; } + s.tmp_3 = r0 = s.speed___25383; + r0 = pxsim_pxtrt_ldlocRef(s.maxOffset___25369); s.tmp_6 = r0; - r0 = (2 * s.maxTextWidth___149035); + r0 = (2 * s.maxTextWidth___25355); s.tmp_7 = r0; r0 = (s.tmp_6 + s.tmp_7); s.tmp_5 = r0; @@ -3531,80 +3403,80 @@ 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___149066; - s.tmp_2 = Math_max__P144204_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.speed___149066); + s.tmp_0 = r0 = s.speed___25383; + s.tmp_2 = Math_max__P18689_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.speed___25383); s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 45; - s.pc = 38; return s.tmp_2; - case 38: + s.callLocIdx = 326; s.pc = 42; return s.tmp_2; + case 42: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - s.tmp_0 = r0 = s.holdTextSeconds___149033; - s.tmp_2 = r0 = s.maxTextWidth___149035; - r0 = pxsim_pxtrt_ldlocRef(s.speed___149066); + s.tmp_0 = r0 = s.holdTextSeconds___25353; + s.tmp_2 = r0 = s.maxTextWidth___25355; + r0 = pxsim_pxtrt_ldlocRef(s.speed___25383); 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___149033; - s.tmp_2 = Math_min__P144205_mk(s); - r0 = pxsim_pxtrt_ldlocRef(s.holdTextSeconds___149033); + s.tmp_0 = r0 = s.holdTextSeconds___25353; + s.tmp_2 = Math_min__P18690_mk(s); + r0 = pxsim_pxtrt_ldlocRef(s.holdTextSeconds___25353); s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1.5; - s.pc = 39; return s.tmp_2; - case 39: + s.callLocIdx = 327; s.pc = 43; return s.tmp_2; + case 43: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 13: - case 14: + case 17: + case 18: r0 = pxsim_pxtrt_ldlocRef(s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } + if (!r0) { step = 19; continue; } s.tmp_1 = r0 = s.arg2; r0 = pxsim_pxtrt_ldlocRef(s.arg2); s.tmp_3 = r0; - r0 = s.currentScene___149067.fields["_millis"]; + r0 = s.currentScene___25384.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___149041); + case 19: + case 20: + r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___25361); s.tmp_1 = r0; - r0 = (s.maxTextWidth___149035 + s.bubblePadding___149034); + r0 = (s.maxTextWidth___25355 + s.bubblePadding___25354); 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___149041; - r0 = (s.maxTextWidth___149035 + s.bubblePadding___149034); + if (!r0) { step = 21; continue; } + s.tmp_3 = r0 = s.bubbleWidth___25361; + r0 = (s.maxTextWidth___25355 + s.bubblePadding___25354); 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___149050, -1); - case 18: + { step = 22; continue; } + case 21: + r0 = pxsim_pxtrt_stlocRef(s.maxOffset___25369, -1); + case 22: s.tmp_1 = if_charHeight_1_mk(s); - s.tmp_1.arg0 = s.font___149036; + s.tmp_1.arg0 = s.font___25356; 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.pc = 40; return s.tmp_1; } + else { s.callLocIdx = 329; s.pc = 44; return s.tmp_1; } } - case 40: + case 44: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 + s.bubblePadding___149034); - s.imgh___149114 = (r0); + r0 = (s.tmp_0 + s.bubblePadding___25354); + s.imgh___25431 = (r0); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -3612,74 +3484,74 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 19; continue; } + if (!r0) { step = 23; continue; } r0 = s.tmp_0; - { step = 20; continue; } - case 19: + { step = 24; continue; } + case 23: r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_5 = r0; r0 = s.tmp_5.fields["_image"]; s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___149041); + r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___25361); s.tmp_6 = r0; r0 = (s.tmp_3 != s.tmp_6); - case 20: + case 24: // jmp value (already in r0) s.tmp_7 = r0; r0 = pxsim_numops_toBool(s.tmp_7); - if (!r0) { step = 21; continue; } + if (!r0) { step = 25; continue; } r0 = s.tmp_7; - { step = 22; continue; } - case 21: + { step = 26; continue; } + case 25: r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_10 = r0; r0 = s.tmp_10.fields["_image"]; s.tmp_9 = r0; r0 = pxsim_ImageMethods.height(s.tmp_9); s.tmp_8 = r0; - r0 = (s.tmp_8 != s.imgh___149114); - case 22: + r0 = (s.tmp_8 != s.imgh___25431); + case 26: // 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___149041); + if (!r0) { step = 29; continue; } + r0 = pxsim_pxtrt_ldlocRef(s.bubbleWidth___25361); s.tmp_12 = r0; - r0 = pxsim.image.create(s.tmp_12, s.imgh___149114); - s.sayImg___149136 = (r0); + r0 = pxsim.image.create(s.tmp_12, s.imgh___25431); + s.sayImg___25453 = (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__P144905_mk(s); + if (!r0) { step = 27; continue; } + s.tmp_1 = Sprite_setImage__P20620_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.sayImg___149136; - s.pc = 41; return s.tmp_1; - case 41: + s.tmp_1.arg1 = s.sayImg___25453; + s.callLocIdx = 332; s.pc = 45; return s.tmp_1; + case 45: r0 = s.retval; - { step = 24; continue; } - case 23: + { step = 28; continue; } + case 27: s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P144878_mk(s); - s.tmp_2.arg0 = s.sayImg___149136; + s.tmp_2 = sprites_create__P20538_mk(s); + s.tmp_2.arg0 = s.sayImg___25453; s.tmp_2.arg1 = -1; - s.pc = 42; return s.tmp_2; - case 42: + s.callLocIdx = 333; s.pc = 46; return s.tmp_2; + case 46: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["sayBubbleSprite"] = (s.tmp_1); - s.tmp_0 = Sprite_setFlag__P144926_mk(s); + s.tmp_0 = Sprite_setFlag__P20643_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = true; - s.pc = 43; return s.tmp_0; - case 43: + s.callLocIdx = 334; s.pc = 47; return s.tmp_0; + case 47: r0 = s.retval; - s.tmp_0 = Sprite_setFlag__P144926_mk(s); + s.tmp_0 = Sprite_setFlag__P20643_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 512; @@ -3695,68 +3567,68 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg2 = r0; - s.pc = 44; return s.tmp_0; - case 44: + s.callLocIdx = 335; s.pc = 48; return s.tmp_0; + case 48: r0 = s.retval; - case 24: - case 25: - case 26: - s.tmp_1 = Sprite_data__P144901_mk(s); + case 28: + case 29: + case 30: + s.tmp_1 = Sprite_data__P20605_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; - s.pc = 45; return s.tmp_1; - case 45: + s.callLocIdx = 336; s.pc = 49; return s.tmp_1; + case 49: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, s.SAYKEY___149008, s.key___149010); - r0 = pxsim_pxtcore_mkAction(18, inline__P149179); + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, s.SAYKEY___25328, s.key___25330); + r0 = pxsim_pxtcore_mkAction(18, inline__P25493); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg2); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.currentScene___149067); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.holdTextSeconds___149033); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.pixelsOffset___149032); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.maxTextWidth___149035); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.speed___149066); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.needsRedraw___149065); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.maxOffset___149050); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.bubbleOffset___149058); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.font___149036); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.bubblePadding___149034); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.bubbleOffset___25377); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.font___25356); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.bubblePadding___25354); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.arg2); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.currentScene___25384); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 6, s.holdTextSeconds___25353); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 7, s.pixelsOffset___25352); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 8, s.maxTextWidth___25355); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 9, s.speed___25383); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 10, s.needsRedraw___25382); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 11, s.maxOffset___25369); r0 = pxsim_pxtrt_stclo(s.tmp_0, 12, s.arg4); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 13, s.textToDisplay___148998); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 14, s.startX___149039); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 15, s.startY___149040); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 13, s.textToDisplay___25320); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 14, s.startX___25359); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 15, s.startY___25360); r0 = pxsim_pxtrt_stclo(s.tmp_0, 16, s.arg3); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 17, s.bubbleWidth___149041); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 17, s.bubbleWidth___25361); 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___149067.fields["camera"]; + r0 = s.currentScene___25384.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); - s.pc = 46; return s.tmp_0; + s.callLocIdx = 376; s.pc = 50; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["updateSay"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["updateSay"], 3); s.pc = 46; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 46; return s.tmp_0;; } - else { s.pc = 46; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["updateSay"], 3); s.callLocIdx = 376; s.pc = 50; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 376; s.pc = 50; return s.tmp_0;; } + else { s.callLocIdx = 376; s.pc = 50; return s.tmp_0; } } - case 46: + case 50: r0 = s.retval; - case 27: + case 31: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_say__P144921.info = {"start":12915,"length":6791,"line":459,"column":4,"endLine":609,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"say","argumentNames":["this","text","timeOnScreen","textColor","textBoxColor"]} +Sprite_say__P20638.info = {"start":13032,"length":6916,"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__P144921_mk(s) { +function Sprite_say__P20638_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_say__P144921, depth: s.depth + 1, + parent: s, fn: Sprite_say__P20638, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3771,24 +3643,24 @@ function Sprite_say__P144921_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - textToDisplay___148998: undefined, - SAYKEY___149008: undefined, - key___149010: undefined, - pixelsOffset___149032: undefined, - holdTextSeconds___149033: undefined, - bubblePadding___149034: undefined, - maxTextWidth___149035: undefined, - font___149036: undefined, - startX___149039: undefined, - startY___149040: undefined, - bubbleWidth___149041: undefined, - maxOffset___149050: undefined, - bubbleOffset___149058: undefined, - needsRedraw___149065: undefined, - speed___149066: undefined, - currentScene___149067: undefined, - imgh___149114: undefined, - sayImg___149136: undefined, + textToDisplay___25320: undefined, + SAYKEY___25328: undefined, + key___25330: undefined, + pixelsOffset___25352: undefined, + holdTextSeconds___25353: undefined, + bubblePadding___25354: undefined, + maxTextWidth___25355: undefined, + font___25356: undefined, + startX___25359: undefined, + startY___25360: undefined, + bubbleWidth___25361: undefined, + maxOffset___25369: undefined, + bubbleOffset___25377: undefined, + needsRedraw___25382: undefined, + speed___25383: undefined, + currentScene___25384: undefined, + imgh___25431: undefined, + sayImg___25453: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3800,7 +3672,7 @@ function Sprite_say__P144921_mk(s) { -function inline__P149179(s) { +function inline__P25493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3810,14 +3682,89 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___149193 = undefined; - s.oy___149196 = undefined; + s.ox___25531 = undefined; + s.oy___25534 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0 = Sprite_y__P20592_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; + s.tmp_0.arg0 = r0; + s.tmp_4 = Sprite_top__P20630_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.callLocIdx = 337; s.pc = 26; return s.tmp_4; + case 26: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + s.caps[1]); + s.tmp_2 = r0; + s.tmp_8 = if_charHeight_1_mk(s); + s.tmp_8.arg0 = s.caps[2]; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 338; s.pc = 27; return s.tmp_8; } + } + case 27: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_7 + s.caps[3]); + s.tmp_6 = r0; + r0 = (s.tmp_6 >> 1); + s.tmp_5 = r0; + r0 = (s.tmp_2 - s.tmp_5); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 339; s.pc = 25; return s.tmp_0; + case 25: + r0 = s.retval; + s.tmp_0 = Sprite_x__P20590_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P20589_mk(s); + s.tmp_1.arg0 = s.caps[0]; + s.callLocIdx = 340; s.pc = 29; return s.tmp_1; + case 29: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 341; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + s.tmp_0 = if_z_2_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; + s.tmp_0.arg0 = r0; + s.tmp_2 = if_z_1_mk(s); + s.tmp_2.arg0 = s.caps[0]; + 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 = 342; s.pc = 31; return s.tmp_2; } + } + case 31: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + s.tmp_0.arg1 = r0; + 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 = 343; s.pc = 30; return s.tmp_0; } + } + case 30: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -3828,9 +3775,9 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); s.tmp_3 = r0; - r0 = s.caps[1].fields["_millis"]; + r0 = s.caps[5].fields["_millis"]; s.tmp_4 = r0; r0 = (s.tmp_3 > s.tmp_4); case 2: @@ -3838,11 +3785,11 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 23; continue; } - s.tmp_9 = Sprite_isOutOfScreen__P144923_mk(s); - s.tmp_9.arg0 = s.caps[2]; + s.tmp_9 = Sprite_isOutOfScreen__P20640_mk(s); + s.tmp_9.arg0 = s.caps[0]; s.tmp_9.arg1 = s.arg1; - s.pc = 25; return s.tmp_9; - case 25: + s.callLocIdx = 345; s.pc = 32; return s.tmp_9; + case 32: r0 = s.retval; s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); @@ -3852,83 +3799,83 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 9; continue; } r0 = s.arg1.fields["_offsetX"]; - s.ox___149193 = (r0); + s.ox___25531 = (r0); r0 = s.arg1.fields["_offsetY"]; - s.oy___149196 = (r0); - s.tmp_3 = Sprite_left__P144909_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.oy___25534 = (r0); + s.tmp_3 = Sprite_left__P20626_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_3.arg0 = r0; - s.pc = 26; return s.tmp_3; - case 26: + s.callLocIdx = 348; s.pc = 33; return s.tmp_3; + case 33: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___149193); + r0 = (s.tmp_2 - s.ox___25531); 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__P144910_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_4 = Sprite_left__P20627_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_4.arg0 = r0; s.tmp_4.arg1 = 0; - s.pc = 27; return s.tmp_4; - case 27: + s.callLocIdx = 349; s.pc = 34; return s.tmp_4; + case 34: r0 = s.retval; case 3: case 4: - s.tmp_3 = Sprite_right__P144911_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_3 = Sprite_right__P20628_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_3.arg0 = r0; - s.pc = 28; return s.tmp_3; - case 28: + s.callLocIdx = 350; s.pc = 35; return s.tmp_3; + case 35: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___149193); + r0 = (s.tmp_2 - s.ox___25531); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); 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__P144912_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_5 = Sprite_right__P20629_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_5.arg0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_5.arg1 = r0; - s.pc = 29; return s.tmp_5; - case 29: + s.callLocIdx = 351; s.pc = 36; return s.tmp_5; + case 36: r0 = s.retval; case 5: case 6: - s.tmp_3 = Sprite_top__P144913_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_3 = Sprite_top__P20630_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_3.arg0 = r0; - s.pc = 30; return s.tmp_3; - case 30: + s.callLocIdx = 352; s.pc = 37; return s.tmp_3; + case 37: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.oy___149196); + r0 = (s.tmp_2 - s.oy___25534); 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__P144888_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_4 = Sprite_y__P20592_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_4.arg0 = r0; - s.tmp_7 = Sprite_y__P144887_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_7 = Sprite_y__P20591_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_7.arg0 = r0; - s.pc = 32; return s.tmp_7; - case 32: + s.callLocIdx = 353; s.pc = 39; return s.tmp_7; + case 39: r0 = s.retval; s.tmp_6 = r0; - s.tmp_10 = Sprite_y__P144887_mk(s); - s.tmp_10.arg0 = s.caps[2]; - s.pc = 33; return s.tmp_10; - case 33: + s.tmp_10 = Sprite_y__P20591_mk(s); + s.tmp_10.arg0 = s.caps[0]; + s.callLocIdx = 354; s.pc = 40; return s.tmp_10; + case 40: r0 = s.retval; s.tmp_9 = r0; r0 = (2 * s.tmp_9); @@ -3937,25 +3884,25 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_5 * -1); s.tmp_4.arg1 = r0; - s.pc = 31; return s.tmp_4; - case 31: + s.callLocIdx = 355; s.pc = 38; return s.tmp_4; + case 38: r0 = s.retval; case 7: case 8: case 9: case 10: - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); 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 = r0 = s.caps[3]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_2 = r0 = s.caps[6]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); s.tmp_4 = r0; - s.tmp_7 = game_eventContext__P145387_mk(s); - s.pc = 34; return s.tmp_7; - case 34: + s.tmp_7 = game_eventContext__P21099_mk(s); + s.callLocIdx = 356; s.pc = 41; return s.tmp_7; + case 41: r0 = s.retval; s.tmp_6 = r0; r0 = s.tmp_6.fields["deltaTimeMillis"]; @@ -3965,7 +3912,7 @@ switch (step) { r0 = (s.tmp_4 - s.tmp_5); s.tmp_3 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); s.tmp_1 = r0; r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; @@ -3974,7 +3921,7 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 11: - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[7]); s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 12: @@ -3982,46 +3929,46 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 13; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[4], 0); - s.tmp_0 = r0 = s.caps[3]; - s.tmp_2 = r0 = s.caps[5]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); + r0 = pxsim_pxtrt_stlocRef(s.caps[7], 0); + s.tmp_0 = r0 = s.caps[6]; + s.tmp_2 = r0 = s.caps[8]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); 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); - r0 = pxsim_pxtrt_stlocRef(s.caps[7], true); + r0 = pxsim_pxtrt_stlocRef(s.caps[10], true); case 13: case 14: { step = 18; continue; } case 15: - s.tmp_0 = r0 = s.caps[4]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_0 = r0 = s.caps[7]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[7]); s.tmp_2 = r0; s.tmp_4 = r0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); 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 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_stlocRef(s.caps[7], true); - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + r0 = pxsim_pxtrt_stlocRef(s.caps[10], true); + r0 = pxsim_pxtrt_ldlocRef(s.caps[7]); s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[11]); s.tmp_2 = r0; r0 = (s.tmp_1 >= s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - s.tmp_3 = r0 = s.caps[4]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); + s.tmp_3 = r0 = s.caps[7]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[11]); s.tmp_4 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_3, s.tmp_4); - s.tmp_0 = r0 = s.caps[3]; - s.tmp_2 = r0 = s.caps[5]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[6]); + s.tmp_0 = r0 = s.caps[6]; + s.tmp_2 = r0 = s.caps[8]; + r0 = pxsim_pxtrt_ldlocRef(s.caps[9]); s.tmp_3 = r0; r0 = (s.tmp_2 / s.tmp_3); s.tmp_1 = r0; @@ -4029,71 +3976,24 @@ switch (step) { case 16: case 17: case 18: - s.tmp_0 = Sprite_y__P144888_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; - s.tmp_0.arg0 = r0; - s.tmp_4 = Sprite_top__P144913_mk(s); - s.tmp_4.arg0 = s.caps[2]; - s.pc = 36; return s.tmp_4; - case 36: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + s.caps[9]); - s.tmp_2 = r0; - s.tmp_8 = if_charHeight_1_mk(s); - s.tmp_8.arg0 = s.caps[10]; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "charHeight"); - } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.pc = 37; return s.tmp_8; } - } - case 37: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_7 + s.caps[11]); - s.tmp_6 = r0; - r0 = (s.tmp_6 >> 1); - s.tmp_5 = r0; - r0 = (s.tmp_2 - s.tmp_5); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 2); - s.tmp_0.arg1 = r0; - s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = Sprite_x__P144886_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P144885_mk(s); - s.tmp_1.arg0 = s.caps[2]; - s.pc = 39; return s.tmp_1; - case 39: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.pc = 38; return s.tmp_0; - case 38: - r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.caps[7]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[10]); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 21; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[7], false); - r0 = s.caps[2].fields["sayBubbleSprite"]; + r0 = pxsim_pxtrt_stlocRef(s.caps[10], false); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.fill(s.tmp_0, s.caps[12]); - r0 = pxsim_pxtrt_ldlocRef(s.caps[8]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[11]); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - s.tmp_2 = helpers_imagePrint__P144656_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_2 = helpers_imagePrint__P20324_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_3 = r0; r0 = s.tmp_3.fields["_image"]; s.tmp_2.arg0 = r0; @@ -4101,99 +4001,99 @@ switch (step) { s.tmp_2.arg2 = s.caps[14]; s.tmp_2.arg3 = s.caps[15]; s.tmp_2.arg4 = s.caps[16]; - s.tmp_2.arg5 = s.caps[10]; + s.tmp_2.arg5 = s.caps[2]; s.tmp_2.arg6 = undefined; - s.pc = 40; return s.tmp_2; - case 40: + s.callLocIdx = 360; s.pc = 42; return s.tmp_2; + case 42: r0 = s.retval; { step = 20; continue; } case 19: - s.tmp_0 = helpers_imagePrint__P144656_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_0 = helpers_imagePrint__P20324_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[13]; s.tmp_2 = r0 = s.caps[14]; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + r0 = pxsim_pxtrt_ldlocRef(s.caps[7]); s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = s.caps[15]; s.tmp_0.arg4 = s.caps[16]; - s.tmp_0.arg5 = s.caps[10]; + s.tmp_0.arg5 = s.caps[2]; s.tmp_0.arg6 = undefined; - s.pc = 41; return s.tmp_0; - case 41: + s.callLocIdx = 362; s.pc = 43; return s.tmp_0; + case 43: r0 = s.retval; case 20: - s.tmp_0 = helpers_imageFillRect__P144632_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_0 = helpers_imageFillRect__P20292_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; - r0 = (s.caps[11] >> 1); + r0 = (s.caps[3] >> 1); s.tmp_0.arg3 = r0; s.tmp_3 = if_charHeight_1_mk(s); - s.tmp_3.arg0 = s.caps[10]; + s.tmp_3.arg0 = s.caps[2]; 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.pc = 43; return s.tmp_3; } + else { s.callLocIdx = 364; s.pc = 45; return s.tmp_3; } } - case 43: + case 45: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.caps[11]); + r0 = (s.tmp_2 + s.caps[3]); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.caps[12]; - s.pc = 42; return s.tmp_0; - case 42: + s.callLocIdx = 365; s.pc = 44; return s.tmp_0; + case 44: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P144632_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + s.tmp_0 = helpers_imageFillRect__P20292_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; s.tmp_0.arg0 = r0; r0 = pxsim_pxtrt_ldlocRef(s.caps[17]); s.tmp_2 = r0; - r0 = (s.caps[11] >> 1); + r0 = (s.caps[3] >> 1); s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); s.tmp_0.arg1 = r0; s.tmp_0.arg2 = 0; - r0 = (s.caps[11] >> 1); + r0 = (s.caps[3] >> 1); s.tmp_0.arg3 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = s.caps[10]; + s.tmp_5.arg0 = s.caps[2]; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.pc = 45; return s.tmp_5; } + else { s.callLocIdx = 367; s.pc = 47; return s.tmp_5; } } - case 45: + case 47: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.caps[11]); + r0 = (s.tmp_4 + s.caps[3]); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.caps[12]; - s.pc = 44; return s.tmp_0; - case 44: + s.callLocIdx = 368; s.pc = 46; return s.tmp_0; + case 46: r0 = s.retval; - r0 = s.caps[2].fields["sayBubbleSprite"]; + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_0, 0, 0, 0); - r0 = s.caps[2].fields["sayBubbleSprite"]; + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; s.tmp_0 = r0; @@ -4202,29 +4102,29 @@ switch (step) { r0 = (s.tmp_3 - 1); s.tmp_2 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_2, 0, 0); - r0 = s.caps[2].fields["sayBubbleSprite"]; + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; s.tmp_0 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = s.caps[10]; + s.tmp_5.arg0 = s.caps[2]; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["charHeight"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["charHeight"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.pc = 46; return s.tmp_5; } + else { s.callLocIdx = 372; s.pc = 48; return s.tmp_5; } } - case 46: + case 48: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.caps[11]); + r0 = (s.tmp_4 + s.caps[3]); s.tmp_3 = r0; r0 = (s.tmp_3 - 1); s.tmp_2 = r0; r0 = pxsim_ImageMethods.setPixel(s.tmp_0, 0, s.tmp_2, 0); - r0 = s.caps[2].fields["sayBubbleSprite"]; + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_image"]; s.tmp_0 = r0; @@ -4233,19 +4133,19 @@ switch (step) { r0 = (s.tmp_3 - 1); s.tmp_2 = r0; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.caps[10]; + s.tmp_7.arg0 = s.caps[2]; 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.pc = 47; return s.tmp_7; } + else { s.callLocIdx = 374; s.pc = 49; return s.tmp_7; } } - case 47: + case 49: r0 = s.retval; s.tmp_6 = r0; - r0 = (s.tmp_6 + s.caps[11]); + r0 = (s.tmp_6 + s.caps[3]); s.tmp_5 = r0; r0 = (s.tmp_5 - 1); s.tmp_4 = r0; @@ -4254,27 +4154,27 @@ switch (step) { case 22: { step = 24; continue; } case 23: - r0 = (s.caps[2]).fields["updateSay"] = (undefined); - s.tmp_0 = Sprite_destroy__P144934_mk(s); - r0 = s.caps[2].fields["sayBubbleSprite"]; + r0 = (s.caps[0]).fields["updateSay"] = (undefined); + s.tmp_0 = Sprite_destroy__P20651_mk(s); + r0 = s.caps[0].fields["sayBubbleSprite"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.pc = 48; return s.tmp_0; - case 48: + s.callLocIdx = 375; s.pc = 50; return s.tmp_0; + case 50: r0 = s.retval; - r0 = (s.caps[2]).fields["sayBubbleSprite"] = (undefined); + r0 = (s.caps[0]).fields["sayBubbleSprite"] = (undefined); case 24: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P149179.info = {"start":15885,"length":3767,"line":534,"column":25,"endLine":607,"endColumn":9,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["dt","camera"]} +inline__P25493.info = {"start":16090,"length":3804,"line":542,"column":25,"endLine":616,"endColumn":9,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["dt","camera"]} -function inline__P149179_mk(s) { +function inline__P25493_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P149179, depth: s.depth + 1, + parent: s, fn: inline__P25493, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4287,8 +4187,8 @@ function inline__P149179_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - ox___149193: undefined, - oy___149196: undefined, + ox___25531: undefined, + oy___25534: undefined, arg0: undefined, arg1: undefined, } } @@ -4297,7 +4197,7 @@ function inline__P149179_mk(s) { -function scene_Scene_millis__P145296(s) { +function scene_Scene_millis__P21007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4312,17 +4212,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C145293_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C20983_VT)) failedCast(r0); r0 = s.arg0.fields["_millis"]; return leave(s, r0) default: oops() } } } -scene_Scene_millis__P145296.info = {"start":6341,"length":61,"line":176,"column":8,"endLine":178,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} +scene_Scene_millis__P21007.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} -function scene_Scene_millis__P145296_mk(s) { +function scene_Scene_millis__P21007_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_millis__P145296, depth: s.depth + 1, + parent: s, fn: scene_Scene_millis__P21007, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4331,7 +4231,7 @@ function scene_Scene_millis__P145296_mk(s) { -function scene_Camera_offsetY__P145236(s) { +function scene_Camera_offsetY__P20931(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4346,18 +4246,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C145233_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C20924_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_offsetY__P145236.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__P145236.isGetter = true; +scene_Camera_offsetY__P20931.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__P20931.isGetter = true; -function scene_Camera_offsetY__P145236_mk(s) { +function scene_Camera_offsetY__P20931_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P145236, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P20931, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4366,7 +4266,7 @@ function scene_Camera_offsetY__P145236_mk(s) { -function scene_Camera_offsetX__P145234(s) { +function scene_Camera_offsetX__P20929(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4381,114 +4281,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C145233_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C20924_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_offsetX__P145234.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__P145234.isGetter = true; - -function scene_Camera_offsetX__P145234_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_offsetX__P145234, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function Sprite_setFlag__P144926(s) { -let r0 = s.r0, 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, Sprite__C144883_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); - 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__P144926_mk(s); - r0 = s.arg0.fields["sayBubbleSprite"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = 512; - s.tmp_2.arg2 = s.arg2; - 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_setFlag__P144926.info = {"start":23654,"length":292,"line":722,"column":4,"endLine":729,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} +scene_Camera_offsetX__P20929.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__P20929.isGetter = true; -function Sprite_setFlag__P144926_mk(s) { +function scene_Camera_offsetX__P20929_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P144926, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P20929, depth: s.depth + 1, pc: 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 Sprite_isOutOfScreen__P144923(s) { +function Sprite_isOutOfScreen__P20640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4498,15 +4311,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___149849 = undefined; - s.oy___149858 = undefined; + s.ox___26118 = undefined; + s.oy___26126 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -4520,7 +4333,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___149849 = (s.tmp_2); + s.ox___26118 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -4534,14 +4347,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___149858 = (s.tmp_2); - s.tmp_3 = Sprite_right__P144911_mk(s); + s.oy___26126 = (s.tmp_2); + s.tmp_3 = Sprite_right__P20628_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 11; return s.tmp_3; + s.callLocIdx = 377; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___149849); + r0 = (s.tmp_2 - s.ox___26118); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -4550,13 +4363,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P144915_mk(s); + s.tmp_6 = Sprite_bottom__P20632_mk(s); s.tmp_6.arg0 = s.arg0; - s.pc = 12; return s.tmp_6; + s.callLocIdx = 378; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___149858); + r0 = (s.tmp_5 - s.oy___26126); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -4567,15 +4380,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P144909_mk(s); + s.tmp_10 = Sprite_left__P20626_mk(s); s.tmp_10.arg0 = s.arg0; - s.pc = 13; return s.tmp_10; + s.callLocIdx = 379; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___149849); + r0 = (s.tmp_9 - s.ox___26118); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -4586,15 +4399,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P144913_mk(s); + s.tmp_15 = Sprite_top__P20630_mk(s); s.tmp_15.arg0 = s.arg0; - s.pc = 14; return s.tmp_15; + s.callLocIdx = 380; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___149858); + r0 = (s.tmp_14 - s.oy___26126); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___144693); + r0 = pxsim_ImageMethods.height(globals.screen___20366); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -4604,12 +4417,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P144923.info = {"start":20258,"length":358,"line":627,"column":4,"endLine":631,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} +Sprite_isOutOfScreen__P20640.info = {"start":20500,"length":358,"line":636,"column":4,"endLine":640,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} -function Sprite_isOutOfScreen__P144923_mk(s) { +function Sprite_isOutOfScreen__P20640_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P144923, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P20640, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4629,8 +4442,8 @@ function Sprite_isOutOfScreen__P144923_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___149849: undefined, - oy___149858: undefined, + ox___26118: undefined, + oy___26126: undefined, arg0: undefined, arg1: undefined, } } @@ -4639,7 +4452,7 @@ function Sprite_isOutOfScreen__P144923_mk(s) { -function Sprite_bottom__P144915(s) { +function Sprite_bottom__P20632(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4654,10 +4467,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P144913_mk(s); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P20630_mk(s); s.tmp_1.arg0 = s.arg0; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 299; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; @@ -4669,13 +4482,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_bottom__P144915.info = {"start":9967,"length":59,"line":361,"column":4,"endLine":363,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} -Sprite_bottom__P144915.isGetter = true; +Sprite_bottom__P20632.info = {"start":10083,"length":59,"line":369,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} +Sprite_bottom__P20632.isGetter = true; -function Sprite_bottom__P144915_mk(s) { +function Sprite_bottom__P20632_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P144915, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P20632, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4688,7 +4501,7 @@ function Sprite_bottom__P144915_mk(s) { -function Sprite_height__P144908(s) { +function Sprite_height__P20625(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4703,20 +4516,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_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__P144908.info = {"start":8527,"length":54,"line":306,"column":4,"endLine":308,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} -Sprite_height__P144908.isGetter = true; +Sprite_height__P20625.info = {"start":8639,"length":54,"line":314,"column":4,"endLine":316,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} +Sprite_height__P20625.isGetter = true; -function Sprite_height__P144908_mk(s) { +function Sprite_height__P20625_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P144908, depth: s.depth + 1, + parent: s, fn: Sprite_height__P20625, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4726,7 +4539,7 @@ function Sprite_height__P144908_mk(s) { -function Sprite_top__P144913(s) { +function Sprite_top__P20630(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4741,25 +4554,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["_y"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); + r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_top__P144913.info = {"start":9476,"length":51,"line":342,"column":4,"endLine":344,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} -Sprite_top__P144913.isGetter = true; +Sprite_top__P20630.info = {"start":9590,"length":53,"line":350,"column":4,"endLine":352,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} +Sprite_top__P20630.isGetter = true; -function Sprite_top__P144913_mk(s) { +function Sprite_top__P20630_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P144913, depth: s.depth + 1, + parent: s, fn: Sprite_top__P20630, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -4767,7 +4577,39 @@ function Sprite_top__P144913_mk(s) { -function Sprite_right__P144912(s) { +function Fx_toFloat__P18730(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 / 256); + return leave(s, r0) + default: oops() +} } } +Fx_toFloat__P18730.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} + +function Fx_toFloat__P18730_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_toFloat__P18730, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function Sprite_right__P20629(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4783,8 +4625,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P144910_mk(s); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P20627_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -4793,19 +4635,19 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 294; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_right__P144912.info = {"start":9314,"length":71,"line":336,"column":4,"endLine":338,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +Sprite_right__P20629.info = {"start":9428,"length":71,"line":344,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} -function Sprite_right__P144912_mk(s) { +function Sprite_right__P20629_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P144912, depth: s.depth + 1, + parent: s, fn: Sprite_right__P20629, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4819,7 +4661,7 @@ function Sprite_right__P144912_mk(s) { -function Sprite_width__P144907(s) { +function Sprite_width__P20624(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4834,20 +4676,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_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__P144907.info = {"start":8382,"length":52,"line":301,"column":4,"endLine":303,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} -Sprite_width__P144907.isGetter = true; +Sprite_width__P20624.info = {"start":8494,"length":52,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} +Sprite_width__P20624.isGetter = true; -function Sprite_width__P144907_mk(s) { +function Sprite_width__P20624_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P144907, depth: s.depth + 1, + parent: s, fn: Sprite_width__P20624, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4857,7 +4699,7 @@ function Sprite_width__P144907_mk(s) { -function Sprite_right__P144911(s) { +function Sprite_right__P20628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4872,10 +4714,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P144909_mk(s); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P20626_mk(s); s.tmp_1.arg0 = s.arg0; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 291; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; @@ -4887,13 +4729,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_right__P144911.info = {"start":9165,"length":57,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} -Sprite_right__P144911.isGetter = true; +Sprite_right__P20628.info = {"start":9279,"length":57,"line":339,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} +Sprite_right__P20628.isGetter = true; -function Sprite_right__P144911_mk(s) { +function Sprite_right__P20628_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P144911, depth: s.depth + 1, + parent: s, fn: Sprite_right__P20628, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4906,7 +4748,7 @@ function Sprite_right__P144911_mk(s) { -function Sprite_left__P144910(s) { +function Sprite_left__P20627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4916,22 +4758,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___149822 = undefined; + s.physics___26078 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 288; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___149822 = (r0); - s.tmp_0 = PhysicsEngine__C144993_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___149822; + s.physics___26078 = (r0); + s.tmp_0 = PhysicsEngine__C20723_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___26078; s.tmp_0.arg1 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -4942,7 +4784,7 @@ switch (step) { r0 = (s.tmp_1 - s.tmp_3); s.tmp_0.arg2 = r0; s.tmp_0.arg3 = 0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C144993_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20723_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: @@ -4951,27 +4793,67 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_left__P144910.info = {"start":8815,"length":257,"line":317,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +Sprite_left__P20627.info = {"start":8929,"length":257,"line":325,"column":4,"endLine":335,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} -function Sprite_left__P144910_mk(s) { +function Sprite_left__P20627_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P144910, depth: s.depth + 1, + parent: s, fn: Sprite_left__P20627, depth: s.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___149822: undefined, + physics___26078: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function PhysicsEngine_moveSprite__P20727(s) { +let r0 = s.r0, 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__C20723_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +PhysicsEngine_moveSprite__P20727.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__P20727_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: PhysicsEngine_moveSprite__P20727, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Fx_sub__P144242(s) { +function Fx_sub__P18718(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4990,12 +4872,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_sub__P144242.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +Fx_sub__P18718.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__P144242_mk(s) { +function Fx_sub__P18718_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P144242, depth: s.depth + 1, + parent: s, fn: Fx_sub__P18718, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -5005,7 +4887,7 @@ function Fx_sub__P144242_mk(s) { -function Sprite_left__P144909(s) { +function Sprite_left__P20626(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5020,25 +4902,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["_x"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); + r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_left__P144909.info = {"start":8673,"length":51,"line":312,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} -Sprite_left__P144909.isGetter = true; +Sprite_left__P20626.info = {"start":8785,"length":53,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} +Sprite_left__P20626.isGetter = true; -function Sprite_left__P144909_mk(s) { +function Sprite_left__P20626_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P144909, depth: s.depth + 1, + parent: s, fn: Sprite_left__P20626, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -5046,7 +4925,7 @@ function Sprite_left__P144909_mk(s) { -function Sprite_setImage__P144905(s) { +function Sprite_setImage__P20620(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5056,40 +4935,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___149934 = undefined; - s.oMinX___149944 = undefined; - s.oMinY___149949 = undefined; - s.oMaxX___149953 = undefined; - s.oMaxY___149961 = undefined; - s.nMinX___149969 = undefined; - s.nMinY___149972 = undefined; - s.nMaxX___149975 = undefined; - s.nMaxY___149981 = undefined; - s.xDiff___149987 = undefined; - s.yDiff___149998 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 9; continue; } + { step = 3; continue; } case 1: case 2: r0 = (s.arg0).fields["_image"] = (s.arg1); - s.tmp_0 = game_calculateHitBox__P144875_mk(s); + s.tmp_0 = Sprite_setHitbox__P20621_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 10; return s.tmp_0; - case 10: + s.callLocIdx = 269; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_setImage__P20620.info = {"start":6825,"length":133,"line":252,"column":4,"endLine":256,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} + +function Sprite_setImage__P20620_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_setImage__P20620, 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_setHitbox__P20621(s) { +let r0 = s.r0, 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.newHitBox___26210 = undefined; + s.oMinX___26218 = undefined; + s.oMinY___26222 = undefined; + s.oMaxX___26226 = undefined; + s.oMaxY___26233 = undefined; + s.nMinX___26240 = undefined; + s.nMinY___26243 = undefined; + s.nMaxX___26246 = undefined; + s.nMaxY___26252 = undefined; + s.xDiff___26258 = undefined; + s.yDiff___26269 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = game_calculateHitBox__P20534_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 270; s.pc = 8; return s.tmp_0; + case 8: r0 = s.retval; - s.newHitBox___149934 = (r0); + s.newHitBox___26210 = (r0); r0 = s.arg0.fields["_hitbox"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -5097,136 +5019,135 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___149934); - { step = 9; continue; } - case 3: - case 4: + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___26210); + { step = 7; continue; } + case 1: + case 2: r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["ox"]; - s.oMinX___149944 = (r0); + s.oMinX___26218 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["oy"]; - s.oMinY___149949 = (r0); + s.oMinY___26222 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; s.tmp_0 = r0; - r0 = (s.oMinX___149944 + s.tmp_0); - s.oMaxX___149953 = (r0); + r0 = (s.oMinX___26218 + s.tmp_0); + s.oMaxX___26226 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["height"]; s.tmp_0 = r0; - r0 = (s.oMinY___149949 + s.tmp_0); - s.oMaxY___149961 = (r0); - r0 = s.newHitBox___149934.fields["ox"]; - s.nMinX___149969 = (r0); - r0 = s.newHitBox___149934.fields["oy"]; - s.nMinY___149972 = (r0); - r0 = s.newHitBox___149934.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___149969 + s.tmp_0); - s.nMaxX___149975 = (r0); - r0 = s.newHitBox___149934.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___149972 + s.tmp_0); - s.nMaxY___149981 = (r0); - s.tmp_1 = Fx_abs__P144248_mk(s); - r0 = (s.oMinX___149944 - s.nMinX___149969); + r0 = (s.oMinY___26222 + s.tmp_0); + s.oMaxY___26233 = (r0); + r0 = s.newHitBox___26210.fields["ox"]; + s.nMinX___26240 = (r0); + r0 = s.newHitBox___26210.fields["oy"]; + s.nMinY___26243 = (r0); + r0 = s.newHitBox___26210.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___26240 + s.tmp_0); + s.nMaxX___26246 = (r0); + r0 = s.newHitBox___26210.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___26243 + s.tmp_0); + s.nMaxY___26252 = (r0); + s.tmp_1 = Fx_abs__P18724_mk(s); + r0 = (s.oMinX___26218 - s.nMinX___26240); s.tmp_1.arg0 = r0; - s.pc = 11; return s.tmp_1; - case 11: + s.callLocIdx = 276; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P144248_mk(s); - r0 = (s.oMaxX___149953 - s.nMaxX___149975); + s.tmp_3 = Fx_abs__P18724_mk(s); + r0 = (s.oMaxX___26226 - s.nMaxX___26246); s.tmp_3.arg0 = r0; - s.pc = 12; return s.tmp_3; - case 12: + s.callLocIdx = 278; s.pc = 10; return s.tmp_3; + case 10: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___149987 = (r0); - s.tmp_1 = Fx_abs__P144248_mk(s); - r0 = (s.oMinY___149949 - s.nMinY___149972); + s.xDiff___26258 = (r0); + s.tmp_1 = Fx_abs__P18724_mk(s); + r0 = (s.oMinY___26222 - s.nMinY___26243); s.tmp_1.arg0 = r0; - s.pc = 13; return s.tmp_1; - case 13: + s.callLocIdx = 281; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P144248_mk(s); - r0 = (s.oMaxY___149961 - s.nMaxY___149981); + s.tmp_3 = Fx_abs__P18724_mk(s); + r0 = (s.oMaxY___26233 - s.nMaxY___26252); s.tmp_3.arg0 = r0; - s.pc = 14; return s.tmp_3; - case 14: + s.callLocIdx = 283; s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.yDiff___149998 = (r0); - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___149934); - r0 = (s.xDiff___149987 <= 512); + s.yDiff___26269 = (r0); + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___26210); + r0 = (s.xDiff___26258 <= 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } + if (!r0) { step = 3; continue; } r0 = s.arg0.fields["_hitbox"]; s.tmp_1 = r0; - r0 = (s.tmp_1).fields["ox"] = (s.oMinX___149944); + r0 = (s.tmp_1).fields["ox"] = (s.oMinX___26218); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxX___149953 - s.oMinX___149944); + r0 = (s.oMaxX___26226 - s.oMinX___26218); s.tmp_1 = r0; r0 = (s.tmp_0).fields["width"] = (s.tmp_1); - case 5: - case 6: - r0 = (s.yDiff___149998 <= 512); + case 3: + case 4: + r0 = (s.yDiff___26269 <= 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } + if (!r0) { step = 5; continue; } r0 = s.arg0.fields["_hitbox"]; s.tmp_1 = r0; - r0 = (s.tmp_1).fields["oy"] = (s.oMinY___149949); + r0 = (s.tmp_1).fields["oy"] = (s.oMinY___26222); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxY___149961 - s.oMinY___149949); + r0 = (s.oMaxY___26233 - s.oMinY___26222); s.tmp_1 = r0; r0 = (s.tmp_0).fields["height"] = (s.tmp_1); + case 5: + case 6: case 7: - case 8: - case 9: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setImage__P144905.info = {"start":6825,"length":1386,"line":252,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +Sprite_setHitbox__P20621.info = {"start":6964,"length":1296,"line":258,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} -function Sprite_setImage__P144905_mk(s) { +function Sprite_setHitbox__P20621_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P144905, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P20621, depth: s.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___149934: undefined, - oMinX___149944: undefined, - oMinY___149949: undefined, - oMaxX___149953: undefined, - oMaxY___149961: undefined, - nMinX___149969: undefined, - nMinY___149972: undefined, - nMaxX___149975: undefined, - nMaxY___149981: undefined, - xDiff___149987: undefined, - yDiff___149998: undefined, + newHitBox___26210: undefined, + oMinX___26218: undefined, + oMinY___26222: undefined, + oMaxX___26226: undefined, + oMaxY___26233: undefined, + nMinX___26240: undefined, + nMinY___26243: undefined, + nMaxX___26246: undefined, + nMaxY___26252: undefined, + xDiff___26258: undefined, + yDiff___26269: undefined, arg0: undefined, - arg1: undefined, } } -function game_calculateHitBox__P144875(s) { +function game_calculateHitBox__P20534(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5236,132 +5157,132 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___150054 = undefined; - s.minX___150057 = undefined; - s.minY___150060 = undefined; - s.maxX___150063 = undefined; - s.maxY___150064 = undefined; - s.c___150065 = undefined; - s.r___150071 = undefined; - s.width___150103 = undefined; - s.height___150109 = undefined; + s.i___26325 = undefined; + s.minX___26328 = undefined; + s.minY___26331 = undefined; + s.maxX___26334 = undefined; + s.maxY___26335 = undefined; + s.c___26336 = undefined; + s.r___26342 = undefined; + s.width___26373 = undefined; + s.height___26379 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0.fields["_image"]; - s.i___150054 = (r0); - r0 = pxsim_ImageMethods.width(s.i___150054); - s.minX___150057 = (r0); - r0 = pxsim_ImageMethods.height(s.i___150054); - s.minY___150060 = (r0); - s.maxX___150063 = (0); - s.maxY___150064 = (0); - s.c___150065 = (0); - case 1: - s.tmp_1 = r0 = s.c___150065; - r0 = pxsim_ImageMethods.width(s.i___150054); + s.i___26325 = (r0); + r0 = pxsim_ImageMethods.width(s.i___26325); + s.minX___26328 = (r0); + r0 = pxsim_ImageMethods.height(s.i___26325); + s.minY___26331 = (r0); + s.maxX___26334 = (0); + s.maxY___26335 = (0); + s.c___26336 = (0); + case 1: + s.tmp_1 = r0 = s.c___26336; + r0 = pxsim_ImageMethods.width(s.i___26325); 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___150071 = (0); + s.r___26342 = (0); case 2: - s.tmp_1 = r0 = s.r___150071; - r0 = pxsim_ImageMethods.height(s.i___150054); + s.tmp_1 = r0 = s.r___26342; + r0 = pxsim_ImageMethods.height(s.i___26325); 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___150054, s.c___150065, s.r___150071); + r0 = pxsim_ImageMethods.getPixel(s.i___26325, s.c___26336, s.r___26342); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Math_min__P144205_mk(s); - s.tmp_4.arg0 = s.minX___150057; - s.tmp_4.arg1 = s.c___150065; - s.pc = 7; return s.tmp_4; + s.tmp_4 = Math_min__P18690_mk(s); + s.tmp_4.arg0 = s.minX___26328; + s.tmp_4.arg1 = s.c___26336; + s.callLocIdx = 227; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; - s.minX___150057 = (r0); - s.tmp_0 = Math_min__P144205_mk(s); - s.tmp_0.arg0 = s.minY___150060; - s.tmp_0.arg1 = s.r___150071; - s.pc = 8; return s.tmp_0; + s.minX___26328 = (r0); + s.tmp_0 = Math_min__P18690_mk(s); + s.tmp_0.arg0 = s.minY___26331; + s.tmp_0.arg1 = s.r___26342; + s.callLocIdx = 228; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.minY___150060 = (r0); - s.tmp_0 = Math_max__P144204_mk(s); - s.tmp_0.arg0 = s.maxX___150063; - s.tmp_0.arg1 = s.c___150065; - s.pc = 9; return s.tmp_0; + s.minY___26331 = (r0); + s.tmp_0 = Math_max__P18689_mk(s); + s.tmp_0.arg0 = s.maxX___26334; + s.tmp_0.arg1 = s.c___26336; + s.callLocIdx = 229; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.maxX___150063 = (r0); - s.tmp_0 = Math_max__P144204_mk(s); - s.tmp_0.arg0 = s.maxY___150064; - s.tmp_0.arg1 = s.r___150071; - s.pc = 10; return s.tmp_0; + s.maxX___26334 = (r0); + s.tmp_0 = Math_max__P18689_mk(s); + s.tmp_0.arg0 = s.maxY___26335; + s.tmp_0.arg1 = s.r___26342; + s.callLocIdx = 230; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.maxY___150064 = (r0); + s.maxY___26335 = (r0); case 3: case 4: - r0 = (s.r___150071 + 1); - s.r___150071 = (r0); + r0 = (s.r___26342 + 1); + s.r___26342 = (r0); { step = 2; continue; } case 5: - r0 = (s.c___150065 + 1); - s.c___150065 = (r0); + r0 = (s.c___26336 + 1); + s.c___26336 = (r0); { step = 1; continue; } case 6: - r0 = (s.maxX___150063 - s.minX___150057); + r0 = (s.maxX___26334 - s.minX___26328); s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.width___150103 = (r0); - r0 = (s.maxY___150064 - s.minY___150060); + s.width___26373 = (r0); + r0 = (s.maxY___26335 - s.minY___26331); s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.height___150109 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C144869_VT); + s.height___26379 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C20523_VT); s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P144874_mk(s); + s.tmp_1 = game_Hitbox_constructor__P20529_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___150103; - s.tmp_1.arg3 = s.height___150109; - s.tmp_1.arg4 = s.minX___150057; - s.tmp_1.arg5 = s.minY___150060; - s.pc = 11; return s.tmp_1; + s.tmp_1.arg2 = s.width___26373; + s.tmp_1.arg3 = s.height___26379; + s.tmp_1.arg4 = s.minX___26328; + s.tmp_1.arg5 = s.minY___26331; + s.callLocIdx = 231; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -game_calculateHitBox__P144875.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__P20534.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__P144875_mk(s) { +function game_calculateHitBox__P20534_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P144875, depth: s.depth + 1, + parent: s, fn: game_calculateHitBox__P20534, depth: s.depth + 1, pc: 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___150054: undefined, - minX___150057: undefined, - minY___150060: undefined, - maxX___150063: undefined, - maxY___150064: undefined, - c___150065: undefined, - r___150071: undefined, - width___150103: undefined, - height___150109: undefined, + i___26325: undefined, + minX___26328: undefined, + minY___26331: undefined, + maxX___26334: undefined, + maxY___26335: undefined, + c___26336: undefined, + r___26342: undefined, + width___26373: undefined, + height___26379: undefined, arg0: undefined, } } @@ -5369,7 +5290,7 @@ function game_calculateHitBox__P144875_mk(s) { -function game_Hitbox_constructor__P144874(s) { +function game_Hitbox_constructor__P20529(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5389,7 +5310,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C144869_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C20523_VT)) failedCast(r0); r0 = (s.arg0).fields["parent"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = (s.arg2 * 256); @@ -5419,12 +5340,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_Hitbox_constructor__P144874.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__P20529.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__P144874_mk(s) { +function game_Hitbox_constructor__P20529_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P144874, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P20529, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5441,7 +5362,7 @@ function game_Hitbox_constructor__P144874_mk(s) { -function Fx_abs__P144248(s) { +function Fx_abs__P18724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5471,12 +5392,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_abs__P144248.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__P18724.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__P144248_mk(s) { +function Fx_abs__P18724_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P144248, depth: s.depth + 1, + parent: s, fn: Fx_abs__P18724, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -5486,7 +5407,7 @@ function Fx_abs__P144248_mk(s) { -function Fx_add__P144240(s) { +function Fx_add__P18716(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5505,12 +5426,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_add__P144240.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +Fx_add__P18716.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} -function Fx_add__P144240_mk(s) { +function Fx_add__P18716_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P144240, depth: s.depth + 1, + parent: s, fn: Fx_add__P18716, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -5520,7 +5441,7 @@ function Fx_add__P144240_mk(s) { -function Sprite_image__P144904(s) { +function Sprite_image__P20619(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5535,18 +5456,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_image__P144904.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__P144904.isGetter = true; +Sprite_image__P20619.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__P20619.isGetter = true; -function Sprite_image__P144904_mk(s) { +function Sprite_image__P20619_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P144904, depth: s.depth + 1, + parent: s, fn: Sprite_image__P20619, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -5555,7 +5476,7 @@ function Sprite_image__P144904_mk(s) { -function Sprite_data__P144901(s) { +function Sprite_data__P20605(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5570,7 +5491,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -5589,13 +5510,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_data__P144901.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__P144901.isGetter = true; +Sprite_data__P20605.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__P20605.isGetter = true; -function Sprite_data__P144901_mk(s) { +function Sprite_data__P20605_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P144901, depth: s.depth + 1, + parent: s, fn: Sprite_data__P20605, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5609,7 +5530,7 @@ function Sprite_data__P144901_mk(s) { -function Sprite_y__P144888(s) { +function Sprite_y__P20592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5625,31 +5546,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P144914_mk(s); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P20631_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); + r0 = (s.tmp_3 / 2); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 243; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_y__P144888.info = {"start":2021,"length":73,"line":86,"column":4,"endLine":88,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +Sprite_y__P20592.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 Sprite_y__P144888_mk(s) { +function Sprite_y__P20592_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P144888, depth: s.depth + 1, + parent: s, fn: Sprite_y__P20592, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5664,7 +5585,7 @@ function Sprite_y__P144888_mk(s) { -function Sprite_top__P144914(s) { +function Sprite_top__P20631(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5674,22 +5595,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___149778 = undefined; + s.physics___26189 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 296; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___149778 = (r0); - s.tmp_0 = PhysicsEngine__C144993_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___149778; + s.physics___26189 = (r0); + s.tmp_0 = PhysicsEngine__C20723_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___26189; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = 0; r0 = (s.arg1 * 256); @@ -5700,7 +5621,7 @@ switch (step) { s.tmp_3 = r0; r0 = (s.tmp_1 - s.tmp_3); s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C144993_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20723_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: @@ -5709,18 +5630,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_top__P144914.info = {"start":9617,"length":256,"line":347,"column":4,"endLine":357,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} +Sprite_top__P20631.info = {"start":9733,"length":256,"line":355,"column":4,"endLine":365,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} -function Sprite_top__P144914_mk(s) { +function Sprite_top__P20631_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P144914, depth: s.depth + 1, + parent: s, fn: Sprite_top__P20631, depth: s.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___149778: undefined, + physics___26189: undefined, arg0: undefined, arg1: undefined, } } @@ -5729,7 +5650,7 @@ function Sprite_top__P144914_mk(s) { -function Sprite_x__P144886(s) { +function Sprite_x__P20590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5745,31 +5666,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P144910_mk(s); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P20627_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 >> 1); + r0 = (s.tmp_3 / 2); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 241; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_x__P144886.info = {"start":1672,"length":73,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} +Sprite_x__P20590.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__P144886_mk(s) { +function Sprite_x__P20590_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P144886, depth: s.depth + 1, + parent: s, fn: Sprite_x__P20590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5784,7 +5705,7 @@ function Sprite_x__P144886_mk(s) { -function helpers_imagePrint__P144656(s) { +function helpers_imagePrint__P20324(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5794,31 +5715,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___149467 = undefined; - s.cp___149469 = undefined; - s.mult___149470 = undefined; - s.dataW___149476 = undefined; - s.dataH___149482 = undefined; - s.byteHeight___149488 = undefined; - s.charSize___149494 = undefined; - s.dataSize___149498 = undefined; - s.fontdata___149502 = undefined; - s.lastchar___149506 = undefined; - s.imgBuf___149514 = undefined; - s.xOffset___149538 = undefined; - s.yOffset___149539 = undefined; - s.ch___149555 = undefined; - s.l___149575 = undefined; - s.r___149576 = undefined; - s.off___149578 = undefined; - s.guess___149579 = undefined; - s.m___149600 = undefined; - s.v___149609 = undefined; - s.i___149668 = undefined; - s.j___149673 = undefined; - s.mask___149674 = undefined; - s.c___149675 = undefined; - s.n___149692 = undefined; + s.x0___25782 = undefined; + s.cp___25784 = undefined; + s.mult___25785 = undefined; + s.dataW___25790 = undefined; + s.dataH___25796 = undefined; + s.byteHeight___25802 = undefined; + s.charSize___25808 = undefined; + s.dataSize___25812 = undefined; + s.fontdata___25816 = undefined; + s.lastchar___25819 = undefined; + s.imgBuf___25826 = undefined; + s.xOffset___25850 = undefined; + s.yOffset___25851 = undefined; + s.ch___25866 = undefined; + s.l___25885 = undefined; + s.r___25886 = undefined; + s.off___25888 = undefined; + s.guess___25889 = undefined; + s.m___25908 = undefined; + s.v___25917 = undefined; + s.i___25973 = undefined; + s.j___25978 = undefined; + s.mask___25979 = undefined; + s.c___25980 = undefined; + s.n___25997 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -5839,9 +5760,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P144648_mk(s); + s.tmp_2 = image_getFontForText__P20311_mk(s); s.tmp_2.arg0 = s.arg1; - s.pc = 39; return s.tmp_2; + s.callLocIdx = 107; s.pc = 39; return s.tmp_2; case 39: r0 = s.retval; s.arg5 = (r0); @@ -5856,8 +5777,8 @@ switch (step) { s.arg4 = (1); case 3: case 4: - s.x0___149467 = (s.arg2); - s.cp___149469 = (0); + s.x0___25782 = (s.arg2); + s.cp___25784 = (0); s.tmp_1 = if_multiplier_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -5866,7 +5787,7 @@ switch (step) { 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.pc = 40; return s.tmp_1; } + else { s.callLocIdx = 108; s.pc = 40; return s.tmp_1; } } case 40: r0 = s.retval; @@ -5881,7 +5802,7 @@ switch (step) { 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.pc = 41; return s.tmp_2; } + else { s.callLocIdx = 109; s.pc = 41; return s.tmp_2; } } case 41: r0 = s.retval; @@ -5891,7 +5812,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_3 = r0; - s.mult___149470 = (s.tmp_3); + s.mult___25785 = (s.tmp_3); s.tmp_1 = if_charWidth_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -5900,13 +5821,13 @@ switch (step) { 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.pc = 42; return s.tmp_1; } + else { s.callLocIdx = 110; 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___149470); - s.dataW___149476 = (r0); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___25785); + s.dataW___25790 = (r0); s.tmp_1 = if_charHeight_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -5915,21 +5836,21 @@ switch (step) { 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.pc = 43; return s.tmp_1; } + else { s.callLocIdx = 111; 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___149470); - s.dataH___149482 = (r0); - r0 = (s.dataH___149482 + 7); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___25785); + s.dataH___25796 = (r0); + r0 = (s.dataH___25796 + 7); s.tmp_0 = r0; r0 = (s.tmp_0 >> 3); - s.byteHeight___149488 = (r0); - r0 = (s.byteHeight___149488 * s.dataW___149476); - s.charSize___149494 = (r0); - r0 = (2 + s.charSize___149494); - s.dataSize___149498 = (r0); + s.byteHeight___25802 = (r0); + r0 = (s.byteHeight___25802 * s.dataW___25790); + s.charSize___25808 = (r0); + r0 = (2 + s.charSize___25808); + s.dataSize___25812 = (r0); s.tmp_0 = if_data_1_mk(s); s.tmp_0.arg0 = s.arg5; if (!s.tmp_0.arg0.vtable.iface) { @@ -5938,48 +5859,48 @@ switch (step) { 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.pc = 44; return s.tmp_0; } + else { s.callLocIdx = 112; s.pc = 44; return s.tmp_0; } } case 44: r0 = s.retval; - s.fontdata___149502 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___149502); + s.fontdata___25816 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___25816); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___149498); + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___25812); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - s.lastchar___149506 = (r0); - r0 = (s.mult___149470 == 1); + s.lastchar___25819 = (r0); + r0 = (s.mult___25785 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = (8 + s.charSize___149494); + r0 = (8 + s.charSize___25808); s.tmp_1 = r0; r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___149514 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___149514, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___149514, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___149514, 2, s.dataW___149476); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___149514, 4, s.dataH___149482); + s.imgBuf___25826 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___25826, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___25826, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___25826, 2, s.dataW___25790); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___25826, 4, s.dataH___25796); case 7: case 8: case 9: - s.tmp_1 = r0 = s.cp___149469; + s.tmp_1 = r0 = s.cp___25784; 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___149538 = (0); - s.yOffset___149539 = (0); + s.xOffset___25850 = (0); + s.yOffset___25851 = (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___149469; + s.tmp_1 = r0 = s.cp___25784; r0 = pxsim_Array__length(s.arg6); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); @@ -5989,7 +5910,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } s.tmp_4 = if_xOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___149469); + r0 = pxsim_Array__getAt(s.arg6, s.cp___25784); s.tmp_4.arg0 = r0; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); @@ -5997,13 +5918,13 @@ switch (step) { 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.pc = 45; return s.tmp_4; } + else { s.callLocIdx = 113; s.pc = 45; return s.tmp_4; } } case 45: r0 = s.retval; - s.xOffset___149538 = (r0); + s.xOffset___25850 = (r0); s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___149469); + r0 = pxsim_Array__getAt(s.arg6, s.cp___25784); s.tmp_0.arg0 = r0; if (!s.tmp_0.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); @@ -6011,19 +5932,19 @@ switch (step) { 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.pc = 46; return s.tmp_0; } + else { s.callLocIdx = 114; s.pc = 46; return s.tmp_0; } } case 46: r0 = s.retval; - s.yOffset___149539 = (r0); + s.yOffset___25851 = (r0); case 12: case 13: - s.tmp_0 = r0 = s.cp___149469; + s.tmp_0 = r0 = s.cp___25784; r0 = (s.tmp_0 + 1); - s.cp___149469 = (r0); + s.cp___25784 = (r0); r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___149555 = (r0); - r0 = (s.ch___149555 == 10); + s.ch___25866 = (r0); + r0 = (s.ch___25866 == 10); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } @@ -6036,7 +5957,7 @@ switch (step) { 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.pc = 47; return s.tmp_4; } + else { s.callLocIdx = 115; s.pc = 47; return s.tmp_4; } } case 47: r0 = s.retval; @@ -6045,92 +5966,92 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.arg3 = (r0); - s.arg2 = (s.x0___149467); + s.arg2 = (s.x0___25782); case 14: case 15: - r0 = (s.ch___149555 < 32); + r0 = (s.ch___25866 < 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___149575 = (0); - s.r___149576 = (s.lastchar___149506); - s.off___149578 = (0); - r0 = (s.ch___149555 - 32); + s.l___25885 = (0); + s.r___25886 = (s.lastchar___25819); + s.off___25888 = (0); + r0 = (s.ch___25866 - 32); s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___149498); - s.guess___149579 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___149502, 4, s.guess___149579); + r0 = (s.tmp_0 * s.dataSize___25812); + s.guess___25889 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___25816, 4, s.guess___25889); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___149555); + r0 = (s.tmp_1 == s.ch___25866); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.off___149578 = (s.guess___149579); + s.off___25888 = (s.guess___25889); { step = 25; continue; } case 18: case 19: - r0 = (s.l___149575 <= s.r___149576); + r0 = (s.l___25885 <= s.r___25886); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___149575; - r0 = (s.r___149576 - s.l___149575); + s.tmp_1 = r0 = s.l___25885; + r0 = (s.r___25886 - s.l___25885); s.tmp_3 = r0; r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); - s.m___149600 = (r0); - s.tmp_0 = r0 = s.fontdata___149502; - r0 = (s.m___149600 * s.dataSize___149498); + s.m___25908 = (r0); + s.tmp_0 = r0 = s.fontdata___25816; + r0 = (s.m___25908 * s.dataSize___25812); s.tmp_1 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___149609 = (r0); - r0 = (s.v___149609 == s.ch___149555); + s.v___25917 = (r0); + r0 = (s.v___25917 == s.ch___25866); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.m___149600 * s.dataSize___149498); - s.off___149578 = (r0); + r0 = (s.m___25908 * s.dataSize___25812); + s.off___25888 = (r0); { step = 24; continue; } case 20: case 21: - r0 = (s.v___149609 < s.ch___149555); + r0 = (s.v___25917 < s.ch___25866); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = (s.m___149600 + 1); - s.l___149575 = (r0); + r0 = (s.m___25908 + 1); + s.l___25885 = (r0); { step = 23; continue; } case 22: - r0 = (s.m___149600 - 1); - s.r___149576 = (r0); + r0 = (s.m___25908 - 1); + s.r___25886 = (r0); case 23: { step = 19; continue; } case 24: case 25: - r0 = (s.mult___149470 == 1); + r0 = (s.mult___25785 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___149514; - s.tmp_3 = r0 = s.fontdata___149502; - r0 = (s.off___149578 + 2); + s.tmp_1 = r0 = s.imgBuf___25826; + s.tmp_3 = r0 = s.fontdata___25816; + r0 = (s.off___25888 + 2); s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___149494); + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___25808); s.tmp_2 = r0; r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P144631_mk(s); + s.tmp_0 = helpers_imageDrawIcon__P20291_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___149514; - r0 = (s.arg2 + s.xOffset___149538); + s.tmp_0.arg1 = s.imgBuf___25826; + r0 = (s.arg2 + s.xOffset___25850); s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___149539); + r0 = (s.arg3 + s.yOffset___25851); s.tmp_0.arg3 = r0; s.tmp_0.arg4 = s.arg4; - s.pc = 48; return s.tmp_0; + s.callLocIdx = 116; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; s.tmp_0 = r0 = s.arg2; @@ -6142,7 +6063,7 @@ switch (step) { 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.pc = 49; return s.tmp_2; } + else { s.callLocIdx = 117; s.pc = 49; return s.tmp_2; } } case 49: r0 = s.retval; @@ -6151,88 +6072,88 @@ switch (step) { s.arg2 = (r0); { step = 37; continue; } case 26: - r0 = (s.off___149578 + 2); - s.off___149578 = (r0); - s.i___149668 = (0); + r0 = (s.off___25888 + 2); + s.off___25888 = (r0); + s.i___25973 = (0); case 27: - r0 = (s.i___149668 < s.dataW___149476); + r0 = (s.i___25973 < s.dataW___25790); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 36; continue; } - s.j___149673 = (0); - s.mask___149674 = (1); - s.tmp_0 = r0 = s.off___149578; + s.j___25978 = (0); + s.mask___25979 = (1); + s.tmp_0 = r0 = s.off___25888; r0 = (s.tmp_0 + 1); - s.off___149578 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___149502, s.tmp_0); - s.c___149675 = (r0); + s.off___25888 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___25816, s.tmp_0); + s.c___25980 = (r0); case 28: - r0 = (s.j___149673 < s.dataH___149482); + r0 = (s.j___25978 < s.dataH___25796); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 35; continue; } - r0 = (s.mask___149674 == 256); + r0 = (s.mask___25979 == 256); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___149578; + s.tmp_2 = r0 = s.off___25888; r0 = (s.tmp_2 + 1); - s.off___149578 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___149502, s.tmp_2); - s.c___149675 = (r0); - s.mask___149674 = (1); + s.off___25888 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___25816, s.tmp_2); + s.c___25980 = (r0); + s.mask___25979 = (1); case 29: case 30: - s.n___149692 = (0); + s.n___25997 = (0); case 31: - r0 = (s.c___149675 & s.mask___149674); + r0 = (s.c___25980 & s.mask___25979); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 32; continue; } - r0 = (s.n___149692 + 1); - s.n___149692 = (r0); - r0 = (s.mask___149674 << 1); - s.mask___149674 = (r0); + r0 = (s.n___25997 + 1); + s.n___25997 = (r0); + r0 = (s.mask___25979 << 1); + s.mask___25979 = (r0); { step = 31; continue; } case 32: - r0 = pxsim_numops_toBoolDecr(s.n___149692); + r0 = pxsim_numops_toBoolDecr(s.n___25997); if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P144632_mk(s); + s.tmp_0 = helpers_imageFillRect__P20292_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___149538 * s.mult___149470); + r0 = (s.xOffset___25850 * s.mult___25785); 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___149673 + s.yOffset___149539); + r0 = (s.j___25978 + s.yOffset___25851); s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___149470); + r0 = (s.tmp_5 * s.mult___25785); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___149470; - r0 = (s.mult___149470 * s.n___149692); + s.tmp_0.arg3 = s.mult___25785; + r0 = (s.mult___25785 * s.n___25997); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.arg4; - s.pc = 50; return s.tmp_0; + s.callLocIdx = 118; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - r0 = (s.j___149673 + s.n___149692); - s.j___149673 = (r0); + r0 = (s.j___25978 + s.n___25997); + s.j___25978 = (r0); { step = 34; continue; } case 33: - r0 = (s.mask___149674 << 1); - s.mask___149674 = (r0); - r0 = (s.j___149673 + 1); - s.j___149673 = (r0); + r0 = (s.mask___25979 << 1); + s.mask___25979 = (r0); + r0 = (s.j___25978 + 1); + s.j___25978 = (r0); case 34: { step = 28; continue; } case 35: - r0 = (s.arg2 + s.mult___149470); + r0 = (s.arg2 + s.mult___25785); s.arg2 = (r0); - r0 = (s.i___149668 + 1); - s.i___149668 = (r0); + r0 = (s.i___25973 + 1); + s.i___25973 = (r0); { step = 27; continue; } case 36: case 37: @@ -6242,12 +6163,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imagePrint__P144656.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} +helpers_imagePrint__P20324.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} -function helpers_imagePrint__P144656_mk(s) { +function helpers_imagePrint__P20324_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P144656, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P20324, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6255,31 +6176,31 @@ function helpers_imagePrint__P144656_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - x0___149467: undefined, - cp___149469: undefined, - mult___149470: undefined, - dataW___149476: undefined, - dataH___149482: undefined, - byteHeight___149488: undefined, - charSize___149494: undefined, - dataSize___149498: undefined, - fontdata___149502: undefined, - lastchar___149506: undefined, - imgBuf___149514: undefined, - xOffset___149538: undefined, - yOffset___149539: undefined, - ch___149555: undefined, - l___149575: undefined, - r___149576: undefined, - off___149578: undefined, - guess___149579: undefined, - m___149600: undefined, - v___149609: undefined, - i___149668: undefined, - j___149673: undefined, - mask___149674: undefined, - c___149675: undefined, - n___149692: undefined, + x0___25782: undefined, + cp___25784: undefined, + mult___25785: undefined, + dataW___25790: undefined, + dataH___25796: undefined, + byteHeight___25802: undefined, + charSize___25808: undefined, + dataSize___25812: undefined, + fontdata___25816: undefined, + lastchar___25819: undefined, + imgBuf___25826: undefined, + xOffset___25850: undefined, + yOffset___25851: undefined, + ch___25866: undefined, + l___25885: undefined, + r___25886: undefined, + off___25888: undefined, + guess___25889: undefined, + m___25908: undefined, + v___25917: undefined, + i___25973: undefined, + j___25978: undefined, + mask___25979: undefined, + c___25980: undefined, + n___25997: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6293,7 +6214,7 @@ function helpers_imagePrint__P144656_mk(s) { -function helpers_imageDrawIcon__P144631(s) { +function helpers_imageDrawIcon__P20291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6313,10 +6234,10 @@ switch (step) { } s.tmp_0 = r0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P144629_mk(s); + s.tmp_3 = helpers_pack__P22192_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg3; - s.pc = 1; return s.tmp_3; + s.callLocIdx = 88; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -6325,12 +6246,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawIcon__P144631.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"]} +helpers_imageDrawIcon__P20291.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 helpers_imageDrawIcon__P144631_mk(s) { +function helpers_imageDrawIcon__P20291_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P144631, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P20291, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6347,7 +6268,7 @@ function helpers_imageDrawIcon__P144631_mk(s) { -function helpers_pack__P144629(s) { +function helpers_pack__P22192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6362,23 +6283,23 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P144201_mk(s); + s.tmp_2 = Math_clamp__P18686_mk(s); s.tmp_2.arg0 = -30000; s.tmp_2.arg1 = 30000; r0 = (s.arg0 | 0); s.tmp_2.arg2 = r0; - s.pc = 1; return s.tmp_2; + s.callLocIdx = 86; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_1 & 65535); s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P144201_mk(s); + s.tmp_5 = Math_clamp__P18686_mk(s); s.tmp_5.arg0 = -30000; s.tmp_5.arg1 = 30000; r0 = (s.arg1 | 0); s.tmp_5.arg2 = r0; - s.pc = 2; return s.tmp_5; + s.callLocIdx = 87; s.pc = 2; return s.tmp_5; case 2: r0 = s.retval; s.tmp_4 = r0; @@ -6388,12 +6309,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_pack__P144629.info = {"start":3152,"length":145,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} +helpers_pack__P22192.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 helpers_pack__P144629_mk(s) { +function helpers_pack__P22192_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P144629, depth: s.depth + 1, + parent: s, fn: helpers_pack__P22192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6409,7 +6330,7 @@ function helpers_pack__P144629_mk(s) { -function Math_clamp__P144201(s) { +function Math_clamp__P18686(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6425,27 +6346,27 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = Math_min__P144205_mk(s); + s.tmp_0 = Math_min__P18690_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P144204_mk(s); + s.tmp_1 = Math_max__P18689_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg2; - s.pc = 2; return s.tmp_1; + s.callLocIdx = 18; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 19; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -Math_clamp__P144201.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"]} +Math_clamp__P18686.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 Math_clamp__P144201_mk(s) { +function Math_clamp__P18686_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P144201, depth: s.depth + 1, + parent: s, fn: Math_clamp__P18686, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6458,7 +6379,7 @@ function Math_clamp__P144201_mk(s) { -function image_getFontForText__P144648(s) { +function image_getFontForText__P20311(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6468,52 +6389,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___150177 = undefined; + s.i___26446 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.i___150177 = (0); + s.i___26446 = (0); case 1: - s.tmp_1 = r0 = s.i___150177; + s.tmp_1 = r0 = s.i___26446; 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___150177); + r0 = pxsim_String_.charCodeAt(s.arg0, s.i___26446); 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___144647; + r0 = globals.font12___20310; { step = 5; continue; } case 2: case 3: - r0 = (s.i___150177 + 1); - s.i___150177 = (r0); + r0 = (s.i___26446 + 1); + s.i___26446 = (r0); { step = 1; continue; } case 4: - r0 = globals.font8___144645; + r0 = globals.font8___20309; case 5: return leave(s, r0) default: oops() } } } -image_getFontForText__P144648.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +image_getFontForText__P20311.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} -function image_getFontForText__P144648_mk(s) { +function image_getFontForText__P20311_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P144648, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P20311, depth: s.depth + 1, pc: 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___150177: undefined, + i___26446: undefined, arg0: undefined, } } @@ -6521,7 +6442,7 @@ function image_getFontForText__P144648_mk(s) { -function helpers_imageFillRect__P144632(s) { +function helpers_imageFillRect__P20292(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6541,17 +6462,17 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P144629_mk(s); + s.tmp_2 = helpers_pack__P22192_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = s.arg2; - s.pc = 1; return s.tmp_2; + s.callLocIdx = 89; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P144629_mk(s); + s.tmp_4 = helpers_pack__P22192_mk(s); s.tmp_4.arg0 = s.arg3; s.tmp_4.arg1 = s.arg4; - s.pc = 2; return s.tmp_4; + s.callLocIdx = 90; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; s.tmp_3 = r0; @@ -6560,12 +6481,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P144632.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"]} +helpers_imageFillRect__P20292.info = {"start":3650,"length":159,"line":131,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageFillRect__P144632_mk(s) { +function helpers_imageFillRect__P20292_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P144632, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P20292, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6584,7 +6505,7 @@ function helpers_imageFillRect__P144632_mk(s) { -function control_EventContext_deltaTime__P144414(s) { +function control_EventContext_deltaTime__P18953(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6599,20 +6520,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C144413_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C18948_VT)) failedCast(r0); r0 = s.arg0.fields["deltaTimeMillis"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 1000); return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_deltaTime__P144414.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__P144414.isGetter = true; +control_EventContext_deltaTime__P18953.info = {"start":2097,"length":75,"line":70,"column":8,"endLine":72,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"deltaTime","argumentNames":["this"]} +control_EventContext_deltaTime__P18953.isGetter = true; -function control_EventContext_deltaTime__P144414_mk(s) { +function control_EventContext_deltaTime__P18953_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P144414, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P18953, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -6622,7 +6543,7 @@ function control_EventContext_deltaTime__P144414_mk(s) { -function JSON_stringify__P144403(s) { +function JSON_stringify__P18940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6632,16 +6553,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ss___150209 = undefined; + s.ss___26478 = 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__C144400_VT); - s.ss___150209 = (r0); - s.tmp_0 = r0 = s.ss___150209; + r0 = pxsim_pxtcore_mkClassInstance(JSON_Stringifier__C22113_VT); + s.ss___26478 = (r0); + s.tmp_0 = r0 = s.ss___26478; r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); @@ -6661,15 +6582,15 @@ switch (step) { s.arg2 = (10); case 3: case 4: - s.tmp_0 = r0 = s.ss___150209; + s.tmp_0 = r0 = s.ss___26478; r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["indentStep"] = (s.tmp_1); - s.tmp_0 = r0 = s.ss___150209; + s.tmp_0 = r0 = s.ss___26478; r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = (s.tmp_0).fields["currIndent"] = (s.tmp_1); - r0 = (s.ss___150209).fields["indent"] = (s.arg2); + r0 = (s.ss___26478).fields["indent"] = (s.arg2); case 5: s.tmp_0 = r0 = s.arg2; r0 = (s.tmp_0 - 1); @@ -6678,7 +6599,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___150209; + s.tmp_2 = r0 = s.ss___26478; r0 = s.tmp_2.fields["indentStep"]; s.tmp_5 = r0; if ((s.tmp_5) && (s.tmp_5).vtable) { @@ -6695,21 +6616,21 @@ switch (step) { r0 = (s.tmp_2).fields["indentStep"] = (s.tmp_3); { step = 5; continue; } case 6: - s.tmp_0 = JSON_Stringifier_go__P144402_mk(s); - s.tmp_0.arg0 = s.ss___150209; + s.tmp_0 = JSON_Stringifier_go__P22115_mk(s); + s.tmp_0.arg0 = s.ss___26478; s.tmp_0.arg1 = s.arg0; - s.pc = 8; return s.tmp_0; + s.callLocIdx = 49; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; return leave(s, r0) default: oops() } } } -JSON_stringify__P144403.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__P18940.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__P144403_mk(s) { +function JSON_stringify__P18940_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_stringify__P144403, depth: s.depth + 1, + parent: s, fn: JSON_stringify__P18940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6717,7 +6638,7 @@ function JSON_stringify__P144403_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - ss___150209: undefined, + ss___26478: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6727,7 +6648,7 @@ function JSON_stringify__P144403_mk(s) { -function JSON_Stringifier_go__P144402(s) { +function JSON_Stringifier_go__P22115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6737,44 +6658,44 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___150250 = undefined; - s.arr___150274 = undefined; - s.r___150280 = undefined; - s.i___150297 = undefined; - s.keys___150362 = undefined; - s.r___150369 = undefined; - s.i___150386 = undefined; - s.k___150392 = undefined; + s.t___26519 = undefined; + s.arr___26543 = undefined; + s.r___26549 = undefined; + s.i___26566 = undefined; + s.keys___26630 = undefined; + s.r___26637 = undefined; + s.i___26654 = undefined; + s.k___26660 = 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__C144400_VT)) failedCast(r0); + if (!checkSubtype(r0, JSON_Stringifier__C22113_VT)) failedCast(r0); r0 = pxsim_pxtcore.typeOf(s.arg1); - s.t___150250 = (r0); - r0 = (s.t___150250 == "string"); + s.t___26519 = (r0); + r0 = (s.t___26519 == "string"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = JSON_Stringifier_doString__P144401_mk(s); + s.tmp_1 = JSON_Stringifier_doString__P22114_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - s.pc = 38; return s.tmp_1; + s.callLocIdx = 43; s.pc = 38; return s.tmp_1; case 38: r0 = s.retval; { step = 37; continue; } { step = 36; continue; } case 1: - r0 = (s.t___150250 == "boolean"); + r0 = (s.t___26519 == "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___150250 == "number"); + r0 = (s.t___26519 == "number"); case 3: // jmp value (already in r0) s.tmp_3 = r0; @@ -6808,8 +6729,8 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 19; continue; } - s.arr___150274 = (s.arg1); - r0 = pxsim_Array__length(s.arr___150274); + s.arr___26543 = (s.arg1); + r0 = pxsim_Array__length(s.arr___26543); s.tmp_1 = r0; r0 = (s.tmp_1 == 0); s.tmp_0 = r0; @@ -6819,7 +6740,7 @@ switch (step) { { step = 37; continue; } { step = 18; continue; } case 7: - s.r___150280 = ("["); + s.r___26549 = ("["); r0 = s.arg0.fields["indent"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -6850,34 +6771,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___150280) && (s.r___150280).vtable) { + if ((s.r___26549) && (s.r___26549).vtable) { setupResume(s, 42); - pxsim_String__stringConv(s.r___150280); + pxsim_String__stringConv(s.r___26549); checkResumeConsumed(); return; - } else { s.retval = (s.r___150280) + ""; } + } else { s.retval = (s.r___26549) + ""; } case 42: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.r___150280 = (r0); + s.r___26549 = (r0); case 8: case 9: - s.i___150297 = (0); + s.i___26566 = (0); case 10: - s.tmp_1 = r0 = s.i___150297; - r0 = pxsim_Array__length(s.arr___150274); + s.tmp_1 = r0 = s.i___26566; + r0 = pxsim_Array__length(s.arr___26543); 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___150280) && (s.r___150280).vtable) { + if ((s.r___26549) && (s.r___26549).vtable) { setupResume(s, 43); - pxsim_String__stringConv(s.r___150280); + pxsim_String__stringConv(s.r___26549); checkResumeConsumed(); return; - } else { s.retval = (s.r___150280) + ""; } + } else { s.retval = (s.r___26549) + ""; } case 43: r0 = s.retval; s.tmp_3 = r0; @@ -6892,11 +6813,11 @@ switch (step) { case 44: r0 = s.retval; s.tmp_6 = r0; - s.tmp_10 = JSON_Stringifier_go__P144402_mk(s); + s.tmp_10 = JSON_Stringifier_go__P22115_mk(s); s.tmp_10.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.arr___150274, s.i___150297); + r0 = pxsim_Array__getAt(s.arr___26543, s.i___26566); s.tmp_10.arg1 = r0; - s.pc = 45; return s.tmp_10; + s.callLocIdx = 44; s.pc = 45; return s.tmp_10; case 45: r0 = s.retval; s.tmp_9 = r0; @@ -6921,9 +6842,9 @@ switch (step) { r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___150280 = (r0); - s.tmp_1 = r0 = s.i___150297; - r0 = pxsim_Array__length(s.arr___150274); + s.r___26549 = (r0); + s.tmp_1 = r0 = s.i___26566; + r0 = pxsim_Array__length(s.arr___26543); s.tmp_3 = r0; r0 = (s.tmp_3 - 1); s.tmp_2 = r0; @@ -6931,38 +6852,38 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - if ((s.r___150280) && (s.r___150280).vtable) { + if ((s.r___26549) && (s.r___26549).vtable) { setupResume(s, 48); - pxsim_String__stringConv(s.r___150280); + pxsim_String__stringConv(s.r___26549); checkResumeConsumed(); return; - } else { s.retval = (s.r___150280) + ""; } + } else { s.retval = (s.r___26549) + ""; } case 48: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ","); - s.r___150280 = (r0); + s.r___26549 = (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___150280) && (s.r___150280).vtable) { + if ((s.r___26549) && (s.r___26549).vtable) { setupResume(s, 49); - pxsim_String__stringConv(s.r___150280); + pxsim_String__stringConv(s.r___26549); checkResumeConsumed(); return; - } else { s.retval = (s.r___150280) + ""; } + } else { s.retval = (s.r___26549) + ""; } case 49: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_1, "\n"); - s.r___150280 = (r0); + s.r___26549 = (r0); case 13: case 14: - r0 = (s.i___150297 + 1); - s.i___150297 = (r0); + r0 = (s.i___26566 + 1); + s.i___26566 = (r0); { step = 10; continue; } case 15: r0 = s.arg0.fields["indent"]; @@ -6970,25 +6891,25 @@ 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__P144194_mk(s); + s.tmp_3 = helpers_stringSlice__P18679_mk(s); r0 = s.arg0.fields["currIndent"]; s.tmp_3.arg0 = r0; r0 = s.arg0.fields["indent"]; s.tmp_3.arg1 = r0; s.tmp_3.arg2 = undefined; - s.pc = 50; return s.tmp_3; + s.callLocIdx = 45; s.pc = 50; return s.tmp_3; case 50: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); case 16: case 17: - if ((s.r___150280) && (s.r___150280).vtable) { + if ((s.r___26549) && (s.r___26549).vtable) { setupResume(s, 51); - pxsim_String__stringConv(s.r___150280); + pxsim_String__stringConv(s.r___26549); checkResumeConsumed(); return; - } else { s.retval = (s.r___150280) + ""; } + } else { s.retval = (s.r___26549) + ""; } case 51: r0 = s.retval; s.tmp_0 = r0; @@ -7015,15 +6936,15 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___150280 = (r0); - r0 = s.r___150280; + s.r___26549 = (r0); + r0 = s.r___26549; { step = 37; continue; } case 18: { step = 34; continue; } case 19: r0 = pxsim_pxtrt.keysOf(s.arg1); - s.keys___150362 = (r0); - r0 = pxsim_Array__length(s.keys___150362); + s.keys___26630 = (r0); + r0 = pxsim_Array__length(s.keys___26630); s.tmp_1 = r0; r0 = (s.tmp_1 == 0); s.tmp_0 = r0; @@ -7033,7 +6954,7 @@ switch (step) { { step = 37; continue; } case 20: case 21: - s.r___150369 = ("{"); + s.r___26637 = ("{"); r0 = s.arg0.fields["indent"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -7064,36 +6985,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___150369) && (s.r___150369).vtable) { + if ((s.r___26637) && (s.r___26637).vtable) { setupResume(s, 56); - pxsim_String__stringConv(s.r___150369); + pxsim_String__stringConv(s.r___26637); checkResumeConsumed(); return; - } else { s.retval = (s.r___150369) + ""; } + } else { s.retval = (s.r___26637) + ""; } case 56: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.r___150369 = (r0); + s.r___26637 = (r0); case 22: case 23: - s.i___150386 = (0); + s.i___26654 = (0); case 24: - s.tmp_1 = r0 = s.i___150386; - r0 = pxsim_Array__length(s.keys___150362); + s.tmp_1 = r0 = s.i___26654; + r0 = pxsim_Array__length(s.keys___26630); 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___150362, s.i___150386); - s.k___150392 = (r0); - if ((s.r___150369) && (s.r___150369).vtable) { + r0 = pxsim_Array__getAt(s.keys___26630, s.i___26654); + s.k___26660 = (r0); + if ((s.r___26637) && (s.r___26637).vtable) { setupResume(s, 57); - pxsim_String__stringConv(s.r___150369); + pxsim_String__stringConv(s.r___26637); checkResumeConsumed(); return; - } else { s.retval = (s.r___150369) + ""; } + } else { s.retval = (s.r___26637) + ""; } case 57: r0 = s.retval; s.tmp_0 = r0; @@ -7108,10 +7029,10 @@ switch (step) { case 58: r0 = s.retval; s.tmp_3 = r0; - s.tmp_7 = JSON_Stringifier_doString__P144401_mk(s); + s.tmp_7 = JSON_Stringifier_doString__P22114_mk(s); s.tmp_7.arg0 = s.arg0; - s.tmp_7.arg1 = s.k___150392; - s.pc = 59; return s.tmp_7; + s.tmp_7.arg1 = s.k___26660; + s.callLocIdx = 46; s.pc = 59; return s.tmp_7; case 59: r0 = s.retval; s.tmp_6 = r0; @@ -7136,50 +7057,50 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___150369 = (r0); + s.r___26637 = (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___150369) && (s.r___150369).vtable) { + if ((s.r___26637) && (s.r___26637).vtable) { setupResume(s, 62); - pxsim_String__stringConv(s.r___150369); + pxsim_String__stringConv(s.r___26637); checkResumeConsumed(); return; - } else { s.retval = (s.r___150369) + ""; } + } else { s.retval = (s.r___26637) + ""; } case 62: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_1, ": "); - s.r___150369 = (r0); + s.r___26637 = (r0); { step = 26; continue; } case 25: - if ((s.r___150369) && (s.r___150369).vtable) { + if ((s.r___26637) && (s.r___26637).vtable) { setupResume(s, 63); - pxsim_String__stringConv(s.r___150369); + pxsim_String__stringConv(s.r___26637); checkResumeConsumed(); return; - } else { s.retval = (s.r___150369) + ""; } + } else { s.retval = (s.r___26637) + ""; } case 63: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, ":"); - s.r___150369 = (r0); + s.r___26637 = (r0); case 26: - if ((s.r___150369) && (s.r___150369).vtable) { + if ((s.r___26637) && (s.r___26637).vtable) { setupResume(s, 64); - pxsim_String__stringConv(s.r___150369); + pxsim_String__stringConv(s.r___26637); checkResumeConsumed(); return; - } else { s.retval = (s.r___150369) + ""; } + } else { s.retval = (s.r___26637) + ""; } case 64: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = JSON_Stringifier_go__P144402_mk(s); + s.tmp_3 = JSON_Stringifier_go__P22115_mk(s); s.tmp_3.arg0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___150392); + r0 = pxsim_pxtrt.mapGetGeneric(s.arg1, s.k___26660); s.tmp_3.arg1 = r0; - s.pc = 65; return s.tmp_3; + s.callLocIdx = 47; s.pc = 65; return s.tmp_3; case 65: r0 = s.retval; s.tmp_2 = r0; @@ -7193,9 +7114,9 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___150369 = (r0); - s.tmp_1 = r0 = s.i___150386; - r0 = pxsim_Array__length(s.keys___150362); + s.r___26637 = (r0); + s.tmp_1 = r0 = s.i___26654; + r0 = pxsim_Array__length(s.keys___26630); s.tmp_3 = r0; r0 = (s.tmp_3 - 1); s.tmp_2 = r0; @@ -7203,38 +7124,38 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 27; continue; } - if ((s.r___150369) && (s.r___150369).vtable) { + if ((s.r___26637) && (s.r___26637).vtable) { setupResume(s, 67); - pxsim_String__stringConv(s.r___150369); + pxsim_String__stringConv(s.r___26637); checkResumeConsumed(); return; - } else { s.retval = (s.r___150369) + ""; } + } else { s.retval = (s.r___26637) + ""; } case 67: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ","); - s.r___150369 = (r0); + s.r___26637 = (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___150369) && (s.r___150369).vtable) { + if ((s.r___26637) && (s.r___26637).vtable) { setupResume(s, 68); - pxsim_String__stringConv(s.r___150369); + pxsim_String__stringConv(s.r___26637); checkResumeConsumed(); return; - } else { s.retval = (s.r___150369) + ""; } + } else { s.retval = (s.r___26637) + ""; } case 68: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_1, "\n"); - s.r___150369 = (r0); + s.r___26637 = (r0); case 29: case 30: - r0 = (s.i___150386 + 1); - s.i___150386 = (r0); + r0 = (s.i___26654 + 1); + s.i___26654 = (r0); { step = 24; continue; } case 31: r0 = s.arg0.fields["indent"]; @@ -7242,25 +7163,25 @@ 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__P144194_mk(s); + s.tmp_3 = helpers_stringSlice__P18679_mk(s); r0 = s.arg0.fields["currIndent"]; s.tmp_3.arg0 = r0; r0 = s.arg0.fields["indent"]; s.tmp_3.arg1 = r0; s.tmp_3.arg2 = undefined; - s.pc = 69; return s.tmp_3; + s.callLocIdx = 48; s.pc = 69; return s.tmp_3; case 69: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1).fields["currIndent"] = (s.tmp_2); case 32: case 33: - if ((s.r___150369) && (s.r___150369).vtable) { + if ((s.r___26637) && (s.r___26637).vtable) { setupResume(s, 70); - pxsim_String__stringConv(s.r___150369); + pxsim_String__stringConv(s.r___26637); checkResumeConsumed(); return; - } else { s.retval = (s.r___150369) + ""; } + } else { s.retval = (s.r___26637) + ""; } case 70: r0 = s.retval; s.tmp_0 = r0; @@ -7287,8 +7208,8 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___150369 = (r0); - r0 = s.r___150369; + s.r___26637 = (r0); + r0 = s.r___26637; { step = 37; continue; } case 34: case 35: @@ -7298,12 +7219,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -JSON_Stringifier_go__P144402.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__P22115.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__P144402_mk(s) { +function JSON_Stringifier_go__P22115_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_Stringifier_go__P144402, depth: s.depth + 1, + parent: s, fn: JSON_Stringifier_go__P22115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7316,14 +7237,14 @@ function JSON_Stringifier_go__P144402_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - t___150250: undefined, - arr___150274: undefined, - r___150280: undefined, - i___150297: undefined, - keys___150362: undefined, - r___150369: undefined, - i___150386: undefined, - k___150392: undefined, + t___26519: undefined, + arr___26543: undefined, + r___26549: undefined, + i___26566: undefined, + keys___26630: undefined, + r___26637: undefined, + i___26654: undefined, + k___26660: undefined, arg0: undefined, arg1: undefined, } } @@ -7332,7 +7253,7 @@ function JSON_Stringifier_go__P144402_mk(s) { -function JSON_Stringifier_doString__P144401(s) { +function JSON_Stringifier_doString__P22114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7342,68 +7263,68 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___150510 = undefined; - s.i___150511 = undefined; - s.c___150517 = undefined; + s.r___26777 = undefined; + s.i___26778 = undefined; + s.c___26784 = 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__C144400_VT)) failedCast(r0); - s.r___150510 = ("\""); - s.i___150511 = (0); + if (!checkSubtype(r0, JSON_Stringifier__C22113_VT)) failedCast(r0); + s.r___26777 = ("\""); + s.i___26778 = (0); case 1: - s.tmp_1 = r0 = s.i___150511; + s.tmp_1 = r0 = s.i___26778; 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___150511); - s.c___150517 = (r0); - r0 = (s.c___150517 == "\n"); + r0 = pxsim_String_.charAt(s.arg1, s.i___26778); + s.c___26784 = (r0); + r0 = (s.c___26784 == "\n"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.c___150517 = ("\\n"); + s.c___26784 = ("\\n"); { step = 13; continue; } case 2: - r0 = (s.c___150517 == "\r"); + r0 = (s.c___26784 == "\r"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.c___150517 = ("\\r"); + s.c___26784 = ("\\r"); { step = 12; continue; } case 3: - r0 = (s.c___150517 == "\t"); + r0 = (s.c___26784 == "\t"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.c___150517 = ("\\t"); + s.c___26784 = ("\\t"); { step = 11; continue; } case 4: - r0 = (s.c___150517 == "\b"); + r0 = (s.c___26784 == "\b"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.c___150517 = ("\\b"); + s.c___26784 = ("\\b"); { step = 10; continue; } case 5: - r0 = (s.c___150517 == "\\"); + r0 = (s.c___26784 == "\\"); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.c___150517 = ("\\\\"); + s.c___26784 = ("\\\\"); { step = 9; continue; } case 6: - r0 = (s.c___150517 == "\""); + r0 = (s.c___26784 == "\""); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.c___150517 = ("\\\""); + s.c___26784 = ("\\\""); case 7: case 8: case 9: @@ -7411,36 +7332,36 @@ switch (step) { case 11: case 12: case 13: - if ((s.r___150510) && (s.r___150510).vtable) { + if ((s.r___26777) && (s.r___26777).vtable) { setupResume(s, 15); - pxsim_String__stringConv(s.r___150510); + pxsim_String__stringConv(s.r___26777); checkResumeConsumed(); return; - } else { s.retval = (s.r___150510) + ""; } + } else { s.retval = (s.r___26777) + ""; } case 15: r0 = s.retval; s.tmp_0 = r0; - if ((s.c___150517) && (s.c___150517).vtable) { + if ((s.c___26784) && (s.c___26784).vtable) { setupResume(s, 16); - pxsim_String__stringConv(s.c___150517); + pxsim_String__stringConv(s.c___26784); checkResumeConsumed(); return; - } else { s.retval = (s.c___150517) + ""; } + } else { s.retval = (s.c___26784) + ""; } case 16: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_String__concat(s.tmp_0, s.tmp_1); - s.r___150510 = (r0); - r0 = (s.i___150511 + 1); - s.i___150511 = (r0); + s.r___26777 = (r0); + r0 = (s.i___26778 + 1); + s.i___26778 = (r0); { step = 1; continue; } case 14: - if ((s.r___150510) && (s.r___150510).vtable) { + if ((s.r___26777) && (s.r___26777).vtable) { setupResume(s, 17); - pxsim_String__stringConv(s.r___150510); + pxsim_String__stringConv(s.r___26777); checkResumeConsumed(); return; - } else { s.retval = (s.r___150510) + ""; } + } else { s.retval = (s.r___26777) + ""; } case 17: r0 = s.retval; s.tmp_0 = r0; @@ -7448,19 +7369,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -JSON_Stringifier_doString__P144401.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__P22114.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__P144401_mk(s) { +function JSON_Stringifier_doString__P22114_mk(s) { checkStack(s.depth); return { - parent: s, fn: JSON_Stringifier_doString__P144401, depth: s.depth + 1, + parent: s, fn: JSON_Stringifier_doString__P22114, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - r___150510: undefined, - i___150511: undefined, - c___150517: undefined, + r___26777: undefined, + i___26778: undefined, + c___26784: undefined, arg0: undefined, arg1: undefined, } } @@ -7469,7 +7390,7 @@ function JSON_Stringifier_doString__P144401_mk(s) { -function helpers_stringSlice__P144194(s) { +function helpers_stringSlice__P18679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7479,7 +7400,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___150479 = undefined; + s.len___26747 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7487,16 +7408,16 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_String_.length(s.arg0); - s.len___150479 = (r0); + s.len___26747 = (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__P144204_mk(s); - r0 = (s.len___150479 + s.arg1); + s.tmp_1 = Math_max__P18689_mk(s); + r0 = (s.len___26747 + s.arg1); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.pc = 7; return s.tmp_1; + s.callLocIdx = 10; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; s.arg1 = (r0); @@ -7506,14 +7427,14 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.arg2 = (s.len___150479); + s.arg2 = (s.len___26747); 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___150479 + s.arg2); + r0 = (s.len___26747 + s.arg2); s.arg2 = (r0); case 5: case 6: @@ -7525,17 +7446,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_stringSlice__P144194.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_stringSlice__P18679.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 helpers_stringSlice__P144194_mk(s) { +function helpers_stringSlice__P18679_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P144194, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P18679, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___150479: undefined, + len___26747: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -7545,7 +7466,7 @@ function helpers_stringSlice__P144194_mk(s) { -function console_inspect__P144386(s) { +function console_inspect__P18935(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7555,10 +7476,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___150569 = undefined; - s.asString___150588 = undefined; - s.keys___150600 = undefined; - s.snipped___150604 = undefined; + s.asArr___26836 = undefined; + s.asString___26854 = undefined; + s.keys___26866 = undefined; + s.snipped___26870 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7599,17 +7520,17 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 5; continue; } - s.asArr___150569 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___150569); + s.asArr___26836 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___26836); 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__P144178_mk(s); - s.tmp_2.arg0 = s.asArr___150569; + s.tmp_2 = helpers_arrayJoin__P18665_mk(s); + s.tmp_2.arg0 = s.asArr___26836; s.tmp_2.arg1 = ","; - s.pc = 19; return s.tmp_2; + s.callLocIdx = 38; s.pc = 19; return s.tmp_2; case 19: r0 = s.retval; { step = 17; continue; } @@ -7617,17 +7538,17 @@ switch (step) { case 3: r0 = pxsim_String_.mkEmpty(); s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P144178_mk(s); - s.tmp_8 = helpers_arraySlice__P144191_mk(s); - s.tmp_8.arg0 = s.asArr___150569; + s.tmp_7 = helpers_arrayJoin__P18665_mk(s); + s.tmp_8 = helpers_arraySlice__P18676_mk(s); + s.tmp_8.arg0 = s.asArr___26836; s.tmp_8.arg1 = 0; s.tmp_8.arg2 = s.arg1; - s.pc = 21; return s.tmp_8; + s.callLocIdx = 39; s.pc = 21; return s.tmp_8; case 21: r0 = s.retval; s.tmp_7.arg0 = r0; s.tmp_7.arg1 = ","; - s.pc = 20; return s.tmp_7; + s.callLocIdx = 40; s.pc = 20; return s.tmp_7; case 20: r0 = s.retval; s.tmp_6 = r0; @@ -7659,46 +7580,46 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); s.tmp_10 = r0; r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.asString___150588 = (r0); - r0 = (s.asString___150588 != "[object Object]"); + s.asString___26854 = (r0); + r0 = (s.asString___26854 != "[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___150588 != "[Object]"); + r0 = (s.asString___26854 != "[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___150588; + r0 = s.asString___26854; { step = 17; continue; } case 8: case 9: r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___150600 = (r0); - r0 = pxsim_Array__length(s.keys___150600); + s.keys___26866 = (r0); + r0 = pxsim_Array__length(s.keys___26866); s.tmp_0 = r0; r0 = (s.tmp_0 > s.arg1); - s.snipped___150604 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___150604); + s.snipped___26870 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___26870); if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P144191_mk(s); - s.tmp_0.arg0 = s.keys___150600; + s.tmp_0 = helpers_arraySlice__P18676_mk(s); + s.tmp_0.arg0 = s.keys___26866; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = s.arg1; - s.pc = 24; return s.tmp_0; + s.callLocIdx = 41; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.keys___150600 = (r0); + s.keys___26866 = (r0); case 10: case 11: - r0 = pxsim_pxtcore_mkAction(1, inline__P150622); + r0 = pxsim_pxtcore_mkAction(1, inline__P26887); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___150604); + r0 = pxsim_numops_toBoolDecr(s.snipped___26870); if (!r0) { step = 12; continue; } r0 = "\n ..."; { step = 13; continue; } @@ -7707,12 +7628,12 @@ switch (step) { case 13: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P144189_mk(s); - s.tmp_7.arg0 = s.keys___150600; + s.tmp_7 = helpers_arrayReduce__P18674_mk(s); + s.tmp_7.arg0 = s.keys___26866; s.tmp_7.arg1 = s.tmp_0; r0 = pxsim_String_.mkEmpty(); s.tmp_7.arg2 = r0; - s.pc = 25; return s.tmp_7; + s.callLocIdx = 42; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_6 = r0; @@ -7757,12 +7678,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_inspect__P144386.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__P18935.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__P144386_mk(s) { +function console_inspect__P18935_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P144386, depth: s.depth + 1, + parent: s, fn: console_inspect__P18935, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7775,10 +7696,10 @@ function console_inspect__P144386_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - asArr___150569: undefined, - asString___150588: undefined, - keys___150600: undefined, - snipped___150604: undefined, + asArr___26836: undefined, + asString___26854: undefined, + keys___26866: undefined, + snipped___26870: undefined, arg0: undefined, arg1: undefined, } } @@ -7787,7 +7708,7 @@ function console_inspect__P144386_mk(s) { -function inline__P150622(s) { +function inline__P26887(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7850,12 +7771,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P150622.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__P26887.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__P150622_mk(s) { +function inline__P26887_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P150622, depth: s.depth + 1, + parent: s, fn: inline__P26887, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7873,7 +7794,7 @@ function inline__P150622_mk(s) { -function helpers_arraySlice__P144191(s) { +function helpers_arraySlice__P18676(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7883,9 +7804,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___150670 = undefined; - s.len___150672 = undefined; - s.i___150706 = undefined; + s.res___26935 = undefined; + s.len___26937 = undefined; + s.i___26971 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7893,9 +7814,9 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___150670 = (r0); + s.res___26935 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___150672 = (r0); + s.len___26937 = (r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -7907,22 +7828,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_max__P144204_mk(s); - r0 = (s.len___150672 + s.arg1); + s.tmp_1 = Math_max__P18689_mk(s); + r0 = (s.len___26937 + s.arg1); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.pc = 16; return s.tmp_1; + s.callLocIdx = 9; 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___150672); + r0 = (s.arg1 > s.len___26937); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.res___150670; + r0 = s.res___26935; { step = 15; continue; } case 5: case 6: @@ -7930,57 +7851,57 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - s.arg2 = (s.len___150672); + s.arg2 = (s.len___26937); { 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___150672 + s.arg2); + r0 = (s.len___26937 + s.arg2); s.arg2 = (r0); case 8: case 9: case 10: - r0 = (s.arg2 > s.len___150672); + r0 = (s.arg2 > s.len___26937); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.arg2 = (s.len___150672); + s.arg2 = (s.len___26937); case 11: case 12: - s.i___150706 = (s.arg1); + s.i___26971 = (s.arg1); case 13: - r0 = (s.i___150706 < s.arg2); + r0 = (s.i___26971 < s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___150670; - r0 = pxsim_Array__getAt(s.arg0, s.i___150706); + s.tmp_1 = r0 = s.res___26935; + r0 = pxsim_Array__getAt(s.arg0, s.i___26971); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___150706 + 1); - s.i___150706 = (r0); + r0 = (s.i___26971 + 1); + s.i___26971 = (r0); { step = 13; continue; } case 14: - r0 = s.res___150670; + r0 = s.res___26935; case 15: return leave(s, r0) default: oops() } } } -helpers_arraySlice__P144191.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"]} +helpers_arraySlice__P18676.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__P144191_mk(s) { +function helpers_arraySlice__P18676_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySlice__P144191, depth: s.depth + 1, + parent: s, fn: helpers_arraySlice__P18676, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - res___150670: undefined, - len___150672: undefined, - i___150706: undefined, + res___26935: undefined, + len___26937: undefined, + i___26971: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -7990,7 +7911,7 @@ function helpers_arraySlice__P144191_mk(s) { -function helpers_arrayReduce__P144189(s) { +function helpers_arrayReduce__P18674(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8000,8 +7921,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___150649 = undefined; - s.i___150652 = undefined; + s.len___26914 = undefined; + s.i___26917 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8009,43 +7930,43 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__length(s.arg0); - s.len___150649 = (r0); - s.i___150652 = (0); + s.len___26914 = (r0); + s.i___26917 = (0); case 1: - r0 = (s.i___150652 < s.len___150649); + r0 = (s.i___26917 < s.len___26914); 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___150652); + r0 = pxsim_Array__getAt(s.arg0, s.i___26917); s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___150652; + s.tmp_1.arg2 = s.i___26917; setupLambda(s.tmp_1, s.tmp_1.argL); - s.pc = 3; return s.tmp_1; + s.callLocIdx = 8; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.arg2 = (r0); - r0 = (s.i___150652 + 1); - s.i___150652 = (r0); + r0 = (s.i___26917 + 1); + s.i___26917 = (r0); { step = 1; continue; } case 2: r0 = s.arg2; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P144189.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__P18674.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__P144189_mk(s) { +function helpers_arrayReduce__P18674_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P144189, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P18674, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___150649: undefined, - i___150652: undefined, + len___26914: undefined, + i___26917: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -8055,7 +7976,42 @@ function helpers_arrayReduce__P144189_mk(s) { -function Math_min__P144205(s) { +function Fx_toInt__P18729(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 + 128); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 8); + return leave(s, r0) + default: oops() +} } } +Fx_toInt__P18729.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} + +function Fx_toInt__P18729_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_toInt__P18729, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Math_min__P18690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8083,12 +8039,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_min__P144205.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"]} +Math_min__P18690.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 Math_min__P144205_mk(s) { +function Math_min__P18690_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_min__P144205, depth: s.depth + 1, + parent: s, fn: Math_min__P18690, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -8099,7 +8055,7 @@ function Math_min__P144205_mk(s) { -function Math_max__P144204(s) { +function Math_max__P18689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8127,12 +8083,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_max__P144204.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"]} +Math_max__P18689.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__P144204_mk(s) { +function Math_max__P18689_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P144204, depth: s.depth + 1, + parent: s, fn: Math_max__P18689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -8143,7 +8099,7 @@ function Math_max__P144204_mk(s) { -function helpers_stringSplit__P144196(s) { +function helpers_stringSplit__P18681(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8153,15 +8109,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___150724 = undefined; - s.lim___150726 = undefined; - s.s___150742 = undefined; - s.p___150745 = undefined; - s.R___150746 = undefined; - s.z___150760 = undefined; - s.T___150773 = undefined; - s.q___150774 = undefined; - s.e___150780 = undefined; + s.A___26989 = undefined; + s.lim___26991 = undefined; + s.s___27007 = undefined; + s.p___27010 = undefined; + s.R___27011 = undefined; + s.z___27025 = undefined; + s.T___27038 = undefined; + s.q___27039 = undefined; + s.e___27045 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8169,36 +8125,36 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.A___150724 = (r0); - s.lim___150726 = (0); + s.A___26989 = (r0); + s.lim___26991 = (0); r0 = (s.arg2 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (536870912 - 1); - s.lim___150726 = (r0); + s.lim___26991 = (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___150726 = (0); + s.lim___26991 = (0); { step = 3; continue; } case 2: r0 = (s.arg2 | 0); - s.lim___150726 = (r0); + s.lim___26991 = (r0); case 3: case 4: r0 = pxsim_String_.length(s.arg0); - s.s___150742 = (r0); - s.p___150745 = (0); - s.R___150746 = (s.arg1); - r0 = (s.lim___150726 == 0); + s.s___27007 = (r0); + s.p___27010 = (0); + s.R___27011 = (s.arg1); + r0 = (s.lim___26991 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.A___150724; + r0 = s.A___26989; { step = 21; continue; } case 5: case 6: @@ -8206,123 +8162,123 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array_.setAt(s.A___150724, 0, s.arg0); - r0 = s.A___150724; + r0 = pxsim_Array_.setAt(s.A___26989, 0, s.arg0); + r0 = s.A___26989; { step = 21; continue; } case 7: case 8: - r0 = (s.s___150742 == 0); + r0 = (s.s___27007 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P144197_mk(s); + s.tmp_1 = helpers_splitMatch__P22051_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___150746; - s.pc = 22; return s.tmp_1; + s.tmp_1.arg2 = s.R___27011; + s.callLocIdx = 11; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - s.z___150760 = (r0); - r0 = (s.z___150760 > -1); + s.z___27025 = (r0); + r0 = (s.z___27025 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - r0 = s.A___150724; + r0 = s.A___26989; { step = 21; continue; } case 9: case 10: - r0 = pxsim_Array_.setAt(s.A___150724, 0, s.arg0); - r0 = s.A___150724; + r0 = pxsim_Array_.setAt(s.A___26989, 0, s.arg0); + r0 = s.A___26989; { step = 21; continue; } case 11: case 12: - s.q___150774 = (s.p___150745); + s.q___27039 = (s.p___27010); case 13: - r0 = (s.q___150774 != s.s___150742); + r0 = (s.q___27039 != s.s___27007); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P144197_mk(s); + s.tmp_1 = helpers_splitMatch__P22051_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___150774; - s.tmp_1.arg2 = s.R___150746; - s.pc = 23; return s.tmp_1; + s.tmp_1.arg1 = s.q___27039; + s.tmp_1.arg2 = s.R___27011; + s.callLocIdx = 12; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - s.e___150780 = (r0); - r0 = (s.e___150780 < 0); + s.e___27045 = (r0); + r0 = (s.e___27045 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.q___150774 + 1); - s.q___150774 = (r0); + r0 = (s.q___27039 + 1); + s.q___27039 = (r0); { step = 19; continue; } case 14: - r0 = (s.e___150780 == s.p___150745); + r0 = (s.e___27045 == s.p___27010); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = (s.q___150774 + 1); - s.q___150774 = (r0); + r0 = (s.q___27039 + 1); + s.q___27039 = (r0); { step = 18; continue; } case 15: - s.tmp_0 = helpers_stringSlice__P144194_mk(s); + s.tmp_0 = helpers_stringSlice__P18679_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___150745; - s.tmp_0.arg2 = s.q___150774; - s.pc = 24; return s.tmp_0; + s.tmp_0.arg1 = s.p___27010; + s.tmp_0.arg2 = s.q___27039; + s.callLocIdx = 13; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.T___150773 = (r0); - r0 = pxsim_Array__push(s.A___150724, s.T___150773); - r0 = pxsim_Array__length(s.A___150724); + s.T___27038 = (r0); + r0 = pxsim_Array__push(s.A___26989, s.T___27038); + r0 = pxsim_Array__length(s.A___26989); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.lim___150726); + r0 = (s.tmp_1 == s.lim___26991); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - r0 = s.A___150724; + r0 = s.A___26989; { step = 21; continue; } case 16: case 17: - s.p___150745 = (s.e___150780); - s.q___150774 = (s.p___150745); + s.p___27010 = (s.e___27045); + s.q___27039 = (s.p___27010); case 18: case 19: { step = 13; continue; } case 20: - s.tmp_0 = helpers_stringSlice__P144194_mk(s); + s.tmp_0 = helpers_stringSlice__P18679_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___150745; - s.tmp_0.arg2 = s.q___150774; - s.pc = 25; return s.tmp_0; + s.tmp_0.arg1 = s.p___27010; + s.tmp_0.arg2 = s.q___27039; + s.callLocIdx = 14; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.T___150773 = (r0); - r0 = pxsim_Array__push(s.A___150724, s.T___150773); - r0 = s.A___150724; + s.T___27038 = (r0); + r0 = pxsim_Array__push(s.A___26989, s.T___27038); + r0 = s.A___26989; case 21: return leave(s, r0) default: oops() } } } -helpers_stringSplit__P144196.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"]} +helpers_stringSplit__P18681.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 helpers_stringSplit__P144196_mk(s) { +function helpers_stringSplit__P18681_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P144196, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P18681, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___150724: undefined, - lim___150726: undefined, - s___150742: undefined, - p___150745: undefined, - R___150746: undefined, - z___150760: undefined, - T___150773: undefined, - q___150774: undefined, - e___150780: undefined, + A___26989: undefined, + lim___26991: undefined, + s___27007: undefined, + p___27010: undefined, + R___27011: undefined, + z___27025: undefined, + T___27038: undefined, + q___27039: undefined, + e___27045: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -8332,7 +8288,7 @@ function helpers_stringSplit__P144196_mk(s) { -function helpers_splitMatch__P144197(s) { +function helpers_splitMatch__P22051(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8342,9 +8298,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___150825 = undefined; - s.s___150828 = undefined; - s.i___150838 = undefined; + s.r___27090 = undefined; + s.s___27093 = undefined; + s.i___27103 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8352,12 +8308,12 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_String_.length(s.arg2); - s.r___150825 = (r0); + s.r___27090 = (r0); r0 = pxsim_String_.length(s.arg0); - s.s___150828 = (r0); - r0 = (s.arg1 + s.r___150825); + s.s___27093 = (r0); + r0 = (s.arg1 + s.r___27090); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___150828); + r0 = (s.tmp_1 > s.s___27093); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -8365,18 +8321,18 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.i___150838 = (0); + s.i___27103 = (0); case 3: - r0 = (s.i___150838 < s.r___150825); + r0 = (s.i___27103 < s.r___27090); 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___150838); + r0 = (s.arg1 + s.i___27103); 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___150838); + r0 = pxsim_String_.charAt(s.arg2, s.i___27103); s.tmp_5 = r0; r0 = (s.tmp_2 != s.tmp_5); s.tmp_1 = r0; @@ -8386,21 +8342,21 @@ switch (step) { { step = 7; continue; } case 4: case 5: - r0 = (s.i___150838 + 1); - s.i___150838 = (r0); + r0 = (s.i___27103 + 1); + s.i___27103 = (r0); { step = 3; continue; } case 6: - r0 = (s.arg1 + s.r___150825); + r0 = (s.arg1 + s.r___27090); case 7: return leave(s, r0) default: oops() } } } -helpers_splitMatch__P144197.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"]} +helpers_splitMatch__P22051.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 helpers_splitMatch__P144197_mk(s) { +function helpers_splitMatch__P22051_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P144197, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P22051, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8408,9 +8364,9 @@ function helpers_splitMatch__P144197_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - r___150825: undefined, - s___150828: undefined, - i___150838: undefined, + r___27090: undefined, + s___27093: undefined, + i___27103: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -8420,7 +8376,7 @@ function helpers_splitMatch__P144197_mk(s) { -function helpers_arrayJoin__P144178(s) { +function helpers_arrayJoin__P18665(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8430,9 +8386,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___150869 = undefined; - s.len___150870 = undefined; - s.i___150873 = undefined; + s.r___27134 = undefined; + s.len___27135 = undefined; + s.i___27138 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8455,16 +8411,16 @@ switch (step) { case 3: case 4: r0 = pxsim_String_.mkEmpty(); - s.r___150869 = (r0); + s.r___27134 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___150870 = (r0); - s.i___150873 = (0); + s.len___27135 = (r0); + s.i___27138 = (0); case 5: - r0 = (s.i___150873 < s.len___150870); + r0 = (s.i___27138 < s.len___27135); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.i___150873 > 0); + r0 = (s.i___27138 > 0); s.tmp_1 = r0; r0 = pxsim_numops_toBool(s.tmp_1); if (r0) { step = 6; continue; } @@ -8477,12 +8433,12 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 8; continue; } - if ((s.r___150869) && (s.r___150869).vtable) { + if ((s.r___27134) && (s.r___27134).vtable) { setupResume(s, 15); - pxsim_String__stringConv(s.r___150869); + pxsim_String__stringConv(s.r___27134); checkResumeConsumed(); return; - } else { s.retval = (s.r___150869) + ""; } + } else { s.retval = (s.r___27134) + ""; } case 15: r0 = s.retval; s.tmp_3 = r0; @@ -8496,10 +8452,10 @@ switch (step) { r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___150869 = (r0); + s.r___27134 = (r0); case 8: case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___150873); + r0 = pxsim_Array__getAt(s.arg0, s.i___27138); s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; @@ -8508,7 +8464,7 @@ switch (step) { r0 = s.tmp_0; { step = 11; continue; } case 10: - r0 = pxsim_Array__getAt(s.arg0, s.i___150873); + r0 = pxsim_Array__getAt(s.arg0, s.i___27138); s.tmp_2 = r0; r0 = (s.tmp_2 === null); case 11: @@ -8519,16 +8475,16 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); { step = 13; continue; } case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___150873); + r0 = pxsim_Array__getAt(s.arg0, s.i___27138); case 13: // jmp value (already in r0) s.tmp_4 = r0; - if ((s.r___150869) && (s.r___150869).vtable) { + if ((s.r___27134) && (s.r___27134).vtable) { setupResume(s, 17); - pxsim_String__stringConv(s.r___150869); + pxsim_String__stringConv(s.r___27134); checkResumeConsumed(); return; - } else { s.retval = (s.r___150869) + ""; } + } else { s.retval = (s.r___27134) + ""; } case 17: r0 = s.retval; s.tmp_5 = r0; @@ -8542,21 +8498,21 @@ switch (step) { r0 = s.retval; s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___150869 = (r0); - r0 = (s.i___150873 + 1); - s.i___150873 = (r0); + s.r___27134 = (r0); + r0 = (s.i___27138 + 1); + s.i___27138 = (r0); { step = 5; continue; } case 14: - r0 = s.r___150869; + r0 = s.r___27134; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P144178.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__P18665.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__P144178_mk(s) { +function helpers_arrayJoin__P18665_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P144178, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P18665, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8565,9 +8521,9 @@ function helpers_arrayJoin__P144178_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - r___150869: undefined, - len___150870: undefined, - i___150873: undefined, + r___27134: undefined, + len___27135: undefined, + i___27138: undefined, arg0: undefined, arg1: undefined, } } @@ -8576,7 +8532,7 @@ function helpers_arrayJoin__P144178_mk(s) { -function game_onUpdate__P145397(s) { +function game_onUpdate__P21107(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8590,9 +8546,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P145388_mk(s); + s.tmp_0 = game_init__P22448_mk(s); s.tmp_0.arg0 = undefined; - s.pc = 4; return s.tmp_0; + s.callLocIdx = 934; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -8604,15 +8560,15 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = control_EventContext_registerFrameHandler__P144419_mk(s); - s.tmp_3 = game_eventContext__P145387_mk(s); - s.pc = 6; return s.tmp_3; + s.tmp_2 = control_EventContext_registerFrameHandler__P18956_mk(s); + s.tmp_3 = game_eventContext__P21099_mk(s); + s.callLocIdx = 935; 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.pc = 5; return s.tmp_2; + s.callLocIdx = 936; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -8620,12 +8576,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onUpdate__P145397.info = {"start":7429,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} +game_onUpdate__P21107.info = {"start":7427,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} -function game_onUpdate__P145397_mk(s) { +function game_onUpdate__P21107_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P145397, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P21107, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8638,7 +8594,7 @@ function game_onUpdate__P145397_mk(s) { -function game_init__P145388(s) { +function game_init__P22448(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8652,7 +8608,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scene___145377); + r0 = pxsim_numops_toBoolDecr(globals._scene___22440); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -8667,73 +8623,73 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C145293_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C20983_VT); s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P145301_mk(s); + s.tmp_4 = scene_Scene_constructor__P21004_mk(s); s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P144430_mk(s); - s.pc = 14; return s.tmp_5; + s.tmp_5 = control_pushEventContext__P18962_mk(s); + s.callLocIdx = 919; s.pc = 14; return s.tmp_5; case 14: r0 = s.retval; s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___145377; - s.pc = 13; return s.tmp_4; + s.tmp_4.arg2 = globals._scene___22440; + s.callLocIdx = 920; s.pc = 13; return s.tmp_4; case 13: r0 = s.retval; - globals._scene___145377 = (s.tmp_3); + globals._scene___22440 = (s.tmp_3); case 3: case 4: - s.tmp_0 = scene_Scene_init__P145294_mk(s); - s.tmp_0.arg0 = globals._scene___145377; - s.pc = 15; return s.tmp_0; + s.tmp_0 = scene_Scene_init__P21005_mk(s); + s.tmp_0.arg0 = globals._scene___22440; + s.callLocIdx = 921; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.winEffect___145370); + r0 = pxsim_numops_toBoolDecr(globals.winEffect___21094); 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___145370 = (globals.confetti___145963); + globals.winEffect___21094 = (globals.confetti___21365); case 5: case 6: - r0 = pxsim_numops_toBoolDecr(globals.loseEffect___145372); + r0 = pxsim_numops_toBoolDecr(globals.loseEffect___21095); 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___145372 = (globals.melt___145998); + globals.loseEffect___21095 = (globals.melt___21386); case 7: case 8: - r0 = pxsim_numops_toBoolDecr(globals.winSound___145376); + r0 = pxsim_numops_toBoolDecr(globals.winSound___22439); 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___145376 = (globals.powerUp___144587); + globals.winSound___22439 = (globals.powerUp___20182); case 9: case 10: - r0 = pxsim_numops_toBoolDecr(globals.loseSound___145374); + r0 = pxsim_numops_toBoolDecr(globals.loseSound___22437); 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___145374 = (globals.wawawawaa___144581); + globals.loseSound___22437 = (globals.wawawawaa___20179); case 11: case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -game_init__P145388.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +game_init__P22448.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function game_init__P145388_mk(s) { +function game_init__P22448_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P145388, depth: s.depth + 1, + parent: s, fn: game_init__P22448, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8748,7 +8704,7 @@ function game_init__P145388_mk(s) { -function inline__P152712(s) { +function inline__P28210(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8758,11 +8714,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___152715 = undefined; - s.j___152723 = undefined; - s.x___152728 = undefined; - s.y___152734 = undefined; - s.c___152740 = undefined; + s.rounds___28213 = undefined; + s.j___28221 = undefined; + s.x___28226 = undefined; + s.y___28232 = undefined; + s.c___28238 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8775,70 +8731,70 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.rounds___152715 = (r0); - s.j___152723 = (0); + s.rounds___28213 = (r0); + s.j___28221 = (0); case 1: - r0 = (s.j___152723 < s.rounds___152715); + r0 = (s.j___28221 < s.rounds___28213); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P145664_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P21154_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.pc = 3; return s.tmp_1; + s.callLocIdx = 49; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___152728 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P145664_mk(s); + s.x___28226 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P21154_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.pc = 4; return s.tmp_0; + s.callLocIdx = 50; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___152734 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___152728, s.y___152734); - s.c___152740 = (r0); + s.y___28232 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___28226, s.y___28232); + s.c___28238 = (r0); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___152728; - r0 = (s.y___152734 + 1); + s.tmp_1 = r0 = s.x___28226; + r0 = (s.y___28232 + 1); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___152740); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___28238); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___152728; - r0 = (s.y___152734 + 2); + s.tmp_1 = r0 = s.x___28226; + r0 = (s.y___28232 + 2); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___152740); - r0 = (s.j___152723 + 1); - s.j___152723 = (r0); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___28238); + r0 = (s.j___28221 + 1); + s.j___28221 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P152712.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +inline__P28210.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__P152712_mk(s) { +function inline__P28210_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P152712, depth: s.depth + 1, + parent: s, fn: inline__P28210, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - rounds___152715: undefined, - j___152723: undefined, - x___152728: undefined, - y___152734: undefined, - c___152740: undefined, + rounds___28213: undefined, + j___28221: undefined, + x___28226: undefined, + y___28232: undefined, + c___28238: undefined, arg0: undefined, arg1: undefined, } } @@ -8847,7 +8803,7 @@ function inline__P152712_mk(s) { -function Math_FastRandom_randomRange__P145664(s) { +function Math_FastRandom_randomRange__P21154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8864,14 +8820,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C145662_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C21150_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__P145663_mk(s); + s.tmp_2 = Math_FastRandom_next__P21153_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 3; return s.tmp_2; + s.callLocIdx = 945; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_1 = r0; @@ -8890,12 +8846,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P145664.info = {"start":2046,"length":131,"line":61,"column":8,"endLine":63,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomRange","argumentNames":["this","min","max"]} +Math_FastRandom_randomRange__P21154.info = {"start":2079,"length":131,"line":62,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomRange","argumentNames":["this","min","max"]} -function Math_FastRandom_randomRange__P145664_mk(s) { +function Math_FastRandom_randomRange__P21154_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomRange__P145664, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P21154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8912,7 +8868,7 @@ function Math_FastRandom_randomRange__P145664_mk(s) { -function Math_FastRandom_next__P145663(s) { +function Math_FastRandom_next__P21153(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8927,7 +8883,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C145662_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C21150_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["lfsr"]; s.tmp_3 = r0; @@ -8948,12 +8904,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P145663.info = {"start":1680,"length":107,"line":52,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +Math_FastRandom_next__P21153.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} -function Math_FastRandom_next__P145663_mk(s) { +function Math_FastRandom_next__P21153_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P145663, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P21153, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8970,7 +8926,7 @@ function Math_FastRandom_next__P145663_mk(s) { -function effects_ImageEffect_constructor__P145994(s) { +function effects_ImageEffect_constructor__P21381(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8987,14 +8943,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C145990_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C21380_VT)) failedCast(r0); r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C145662_VT); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C21150_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P145669_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P21152_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 1268; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); @@ -9004,12 +8960,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P145994.info = {"start":410,"length":290,"line":10,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["this","defaultRate","effectFactory"]} +effects_ImageEffect_constructor__P21381.info = {"start":410,"length":290,"line":10,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["this","defaultRate","effectFactory"]} -function effects_ImageEffect_constructor__P145994_mk(s) { +function effects_ImageEffect_constructor__P21381_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P145994, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P21381, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9022,7 +8978,7 @@ function effects_ImageEffect_constructor__P145994_mk(s) { -function inline__P152766(s) { +function inline__P28318(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9032,13 +8988,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___152769 = undefined; + s.factory___28321 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C145899_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C21309_VT); s.tmp_0 = r0; s.tmp_2 = if_width_1_mk(s); s.tmp_2.arg0 = s.arg0; @@ -9048,7 +9004,7 @@ switch (step) { 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.pc = 3; return s.tmp_2; } + else { s.callLocIdx = 33; s.pc = 3; return s.tmp_2; } } case 3: r0 = s.retval; @@ -9063,7 +9019,7 @@ switch (step) { 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.pc = 4; return s.tmp_3; } + else { s.callLocIdx = 34; s.pc = 4; return s.tmp_3; } } case 4: r0 = s.retval; @@ -9073,40 +9029,40 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P145901_mk(s); + s.tmp_5 = particles_ConfettiFactory_constructor__P21310_mk(s); s.tmp_5.arg0 = s.tmp_0; s.tmp_5.arg1 = s.tmp_4; s.tmp_5.arg2 = 16; - s.pc = 5; return s.tmp_5; + s.callLocIdx = 35; s.pc = 5; return s.tmp_5; case 5: r0 = s.retval; - s.factory___152769 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P145880_mk(s); - s.tmp_0.arg0 = s.factory___152769; + s.factory___28321 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P21286_mk(s); + s.tmp_0.arg0 = s.factory___28321; s.tmp_0.arg1 = 30; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 36; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C145812_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C21242_VT); s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P145830_mk(s); + s.tmp_1 = particles_ParticleSource_constructor__P21247_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___152769; - s.pc = 7; return s.tmp_1; + s.tmp_1.arg3 = s.factory___28321; + s.callLocIdx = 37; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -inline__P152766.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +inline__P28318.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function inline__P152766_mk(s) { +function inline__P28318_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P152766, depth: s.depth + 1, + parent: s, fn: inline__P28318, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9114,7 +9070,7 @@ function inline__P152766_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - factory___152769: undefined, + factory___28321: undefined, arg0: undefined, arg1: undefined, } } @@ -9123,7 +9079,7 @@ function inline__P152766_mk(s) { -function particles_ParticleSource_constructor__P145830(s) { +function particles_ParticleSource_constructor__P21247(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9133,8 +9089,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___152791 = undefined; - s.removedSource___152800 = undefined; + s.sources___27243 = undefined; + s.removedSource___27252 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -9143,65 +9099,65 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P144762_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P20424_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 1115; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = particles_init__P145834_mk(s); - s.pc = 6; return s.tmp_0; + s.tmp_0 = particles_init__P22798_mk(s); + s.callLocIdx = 1116; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_particleSources__P145849_mk(s); - s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_particleSources__P22804_mk(s); + s.callLocIdx = 1117; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.sources___152791 = (r0); - r0 = pxsim_Array__length(s.sources___152791); + s.sources___27243 = (r0); + r0 = pxsim_Array__length(s.sources___27243); s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___145791); + r0 = (s.tmp_1 >= globals.MAX_SOURCES___22775); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P145837_mk(s); - s.tmp_2.arg0 = s.sources___152791; - s.pc = 8; return s.tmp_2; + s.tmp_2 = particles_sortSources__P22801_mk(s); + s.tmp_2.arg0 = s.sources___27243; + s.callLocIdx = 1118; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___152791, 0); - s.removedSource___152800 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P145823_mk(s); - s.tmp_0.arg0 = s.removedSource___152800; - s.pc = 9; return s.tmp_0; + r0 = pxsim_Array_.removeAt(s.sources___27243, 0); + s.removedSource___27252 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P21257_mk(s); + s.tmp_0.arg0 = s.removedSource___27252; + s.callLocIdx = 1120; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P145822_mk(s); - s.tmp_0.arg0 = s.removedSource___152800; - s.pc = 10; return s.tmp_0; + s.tmp_0 = particles_ParticleSource_destroy__P21256_mk(s); + s.tmp_0.arg0 = s.removedSource___27252; + s.callLocIdx = 1121; 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__P145825_mk(s); + s.tmp_0 = particles_ParticleSource_setRate__P21259_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.pc = 11; return s.tmp_0; + s.callLocIdx = 1122; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P145817_mk(s); + s.tmp_0 = particles_ParticleSource_setAcceleration__P21251_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; - s.pc = 12; return s.tmp_0; + s.callLocIdx = 1123; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P145824_mk(s); + s.tmp_0 = particles_ParticleSource_setAnchor__P21258_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 13; return s.tmp_0; + s.callLocIdx = 1124; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = (s.arg0).fields["lifespan"] = (undefined); @@ -9213,39 +9169,39 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = globals.defaultFactory___145832; + r0 = globals.defaultFactory___21262; case 4: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P145827_mk(s); + s.tmp_2 = particles_ParticleSource_setFactory__P21261_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.tmp_1; - s.pc = 14; return s.tmp_2; + s.callLocIdx = 1125; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; - r0 = pxsim_Array__push(s.sources___152791, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P145821_mk(s); + r0 = pxsim_Array__push(s.sources___27243, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P21255_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; - s.pc = 15; return s.tmp_0; + s.callLocIdx = 1126; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_constructor__P145830.info = {"start":2290,"length":899,"line":86,"column":8,"endLine":109,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} +particles_ParticleSource_constructor__P21247.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__P145830_mk(s) { +function particles_ParticleSource_constructor__P21247_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_constructor__P145830, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P21247, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___152791: undefined, - removedSource___152800: undefined, + sources___27243: undefined, + removedSource___27252: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -9256,7 +9212,7 @@ function particles_ParticleSource_constructor__P145830_mk(s) { -function particles_particleSources__P145849(s) { +function particles_particleSources__P22804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9266,33 +9222,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___151892 = undefined; - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_0; + s.sources___27674 = undefined; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 1177; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["particleSources"]; - s.sources___151892 = (r0); - r0 = s.sources___151892; + s.sources___27674 = (r0); + r0 = s.sources___27674; return leave(s, r0) default: oops() } } } -particles_particleSources__P145849.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} +particles_particleSources__P22804.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__P145849_mk(s) { +function particles_particleSources__P22804_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_particleSources__P145849, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P22804, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___151892: undefined, + sources___27674: undefined, } } -function particles_sortSources__P145837(s) { +function particles_sortSources__P22801(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9306,22 +9262,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_arraySort__P144182_mk(s); + s.tmp_0 = helpers_arraySort__P18667_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = inline__P153006; - s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = inline__P27544; + s.callLocIdx = 1164; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_sortSources__P145837.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} +particles_sortSources__P22801.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__P145837_mk(s) { +function particles_sortSources__P22801_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P145837, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P22801, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -9331,7 +9287,7 @@ function particles_sortSources__P145837_mk(s) { -function inline__P153006(s) { +function inline__P27544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9369,12 +9325,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P153006.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +inline__P27544.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 inline__P153006_mk(s) { +function inline__P27544_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P153006, depth: s.depth + 1, + parent: s, fn: inline__P27544, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9390,7 +9346,7 @@ function inline__P153006_mk(s) { -function helpers_arraySort__P144182(s) { +function helpers_arraySort__P18667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9422,24 +9378,24 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.arg1 = (inline__P153030); + s.arg1 = (inline__P27567); case 3: case 4: - s.tmp_0 = helpers_sortHelper__P144181_mk(s); + s.tmp_0 = helpers_sortHelper__P22050_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 2; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; return leave(s, r0) default: oops() } } } -helpers_arraySort__P144182.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"]} +helpers_arraySort__P18667.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__P144182_mk(s) { +function helpers_arraySort__P18667_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort__P144182, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P18667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9453,7 +9409,7 @@ function helpers_arraySort__P144182_mk(s) { -function inline__P153030(s) { +function inline__P27567(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9463,26 +9419,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___153033 = undefined; - s.bIsUndef___153037 = undefined; - s.aIsNull___153048 = undefined; - s.bIsNull___153052 = undefined; + s.aIsUndef___27570 = undefined; + s.bIsUndef___27574 = undefined; + s.aIsNull___27585 = undefined; + s.bIsNull___27589 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = (s.arg0 === undefined); - s.aIsUndef___153033 = (r0); + s.aIsUndef___27570 = (r0); r0 = (s.arg1 === undefined); - s.bIsUndef___153037 = (r0); - s.tmp_0 = r0 = s.aIsUndef___153033; + s.bIsUndef___27574 = (r0); + s.tmp_0 = r0 = s.aIsUndef___27570; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.bIsUndef___153037; + r0 = s.bIsUndef___27574; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -9492,13 +9448,13 @@ switch (step) { { step = 17; continue; } { step = 8; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___153033); + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___27570); if (!r0) { step = 4; continue; } r0 = 1; { step = 17; continue; } { step = 7; continue; } case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___153037); + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___27574); if (!r0) { step = 5; continue; } r0 = -1; { step = 17; continue; } @@ -9507,16 +9463,16 @@ switch (step) { case 7: case 8: r0 = (s.arg0 === null); - s.aIsNull___153048 = (r0); + s.aIsNull___27585 = (r0); r0 = (s.arg1 === null); - s.bIsNull___153052 = (r0); - s.tmp_0 = r0 = s.aIsNull___153048; + s.bIsNull___27589 = (r0); + s.tmp_0 = r0 = s.aIsNull___27585; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 9; continue; } r0 = s.tmp_0; { step = 10; continue; } case 9: - r0 = s.bIsNull___153052; + r0 = s.bIsNull___27589; case 10: // jmp value (already in r0) s.tmp_1 = r0; @@ -9526,13 +9482,13 @@ switch (step) { { step = 17; continue; } { step = 16; continue; } case 11: - r0 = pxsim_numops_toBoolDecr(s.aIsNull___153048); + r0 = pxsim_numops_toBoolDecr(s.aIsNull___27585); if (!r0) { step = 12; continue; } r0 = 1; { step = 17; continue; } { step = 15; continue; } case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___153052); + r0 = pxsim_numops_toBoolDecr(s.bIsNull___27589); if (!r0) { step = 13; continue; } r0 = -1; { step = 17; continue; } @@ -9571,12 +9527,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P153030.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"]} +inline__P27567.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__P153030_mk(s) { +function inline__P27567_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P153030, depth: s.depth + 1, + parent: s, fn: inline__P27567, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9586,10 +9542,10 @@ function inline__P153030_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - aIsUndef___153033: undefined, - bIsUndef___153037: undefined, - aIsNull___153048: undefined, - bIsNull___153052: undefined, + aIsUndef___27570: undefined, + bIsUndef___27574: undefined, + aIsNull___27585: undefined, + bIsNull___27589: undefined, arg0: undefined, arg1: undefined, } } @@ -9598,7 +9554,7 @@ function inline__P153030_mk(s) { -function helpers_sortHelper__P144181(s) { +function helpers_sortHelper__P22050(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9608,9 +9564,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___153088 = undefined; - s.i___153091 = undefined; - s.j___153097 = undefined; + s.len___27624 = undefined; + s.i___27627 = undefined; + s.j___27633 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -9638,31 +9594,31 @@ switch (step) { case 3: case 4: r0 = pxsim_Array__length(s.arg0); - s.len___153088 = (r0); - s.i___153091 = (0); + s.len___27624 = (r0); + s.i___27627 = (0); case 5: - s.tmp_1 = r0 = s.i___153091; - r0 = (s.len___153088 - 1); + s.tmp_1 = r0 = s.i___27627; + r0 = (s.len___27624 - 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___153091 + 1); - s.j___153097 = (r0); + r0 = (s.i___27627 + 1); + s.j___27633 = (r0); case 6: - r0 = (s.j___153097 < s.len___153088); + r0 = (s.j___27633 < s.len___27624); 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___153091); + r0 = pxsim_Array__getAt(s.arg0, s.i___27627); s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___153097); + r0 = pxsim_Array__getAt(s.arg0, s.j___27633); s.tmp_3.arg1 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); - s.pc = 12; return s.tmp_3; + s.callLocIdx = 0; s.pc = 12; return s.tmp_3; case 12: r0 = s.retval; s.tmp_2 = r0; @@ -9670,21 +9626,21 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P144180_mk(s); + s.tmp_4 = helpers_swap__P22049_mk(s); s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___153091; - s.tmp_4.arg2 = s.j___153097; - s.pc = 13; return s.tmp_4; + s.tmp_4.arg1 = s.i___27627; + s.tmp_4.arg2 = s.j___27633; + s.callLocIdx = 1; s.pc = 13; return s.tmp_4; case 13: r0 = s.retval; case 7: case 8: - r0 = (s.j___153097 + 1); - s.j___153097 = (r0); + r0 = (s.j___27633 + 1); + s.j___27633 = (r0); { step = 6; continue; } case 9: - r0 = (s.i___153091 + 1); - s.i___153091 = (r0); + r0 = (s.i___27627 + 1); + s.i___27627 = (r0); { step = 5; continue; } case 10: r0 = s.arg0; @@ -9692,21 +9648,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_sortHelper__P144181.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"]} +helpers_sortHelper__P22050.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_sortHelper__P144181_mk(s) { +function helpers_sortHelper__P22050_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P144181, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P22050, depth: s.depth + 1, pc: 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___153088: undefined, - i___153091: undefined, - j___153097: undefined, + len___27624: undefined, + i___27627: undefined, + j___27633: undefined, arg0: undefined, arg1: undefined, } } @@ -9715,7 +9671,7 @@ function helpers_sortHelper__P144181_mk(s) { -function helpers_swap__P144180(s) { +function helpers_swap__P22049(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9725,7 +9681,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___153126 = undefined; + s.temp___27662 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -9733,28 +9689,28 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__getAt(s.arg0, s.arg1); - s.temp___153126 = (r0); + s.temp___27662 = (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___153126); + r0 = pxsim_Array_.setAt(s.arg0, s.arg2, s.temp___27662); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_swap__P144180.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"]} +helpers_swap__P22049.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__P144180_mk(s) { +function helpers_swap__P22049_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_swap__P144180, depth: s.depth + 1, + parent: s, fn: helpers_swap__P22049, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - temp___153126: undefined, + temp___27662: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -9764,7 +9720,7 @@ function helpers_swap__P144180_mk(s) { -function particles_init__P145834(s) { +function particles_init__P22798(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9774,34 +9730,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___153138 = undefined; - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 4; return s.tmp_0; + s.scene___27679 = undefined; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 1154; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.scene___153138 = (r0); - r0 = s.scene___153138.fields["particleSources"]; + s.scene___27679 = (r0); + r0 = s.scene___27679.fields["particleSources"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_1 = r0 = s.scene___153138; + s.tmp_1 = r0 = s.scene___27679; r0 = pxsim_Array__mk(); s.tmp_2 = r0; r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); r0 = pxsim.control.millis(); - globals.lastUpdate___145809 = (r0); - s.tmp_0 = game_onUpdate__P145397_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P145835; - s.pc = 5; return s.tmp_0; + globals.lastUpdate___22793 = (r0); + s.tmp_0 = game_onUpdate__P21107_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P22799; + s.callLocIdx = 1155; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P145398_mk(s); + s.tmp_0 = game_onUpdateInterval__P21108_mk(s); s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P145836; - s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = particles_pruneParticles__P22800; + s.callLocIdx = 1156; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -9809,24 +9765,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_init__P145834.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} +particles_init__P22798.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__P145834_mk(s) { +function particles_init__P22798_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_init__P145834, depth: s.depth + 1, + parent: s, fn: particles_init__P22798, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - scene___153138: undefined, + scene___27679: undefined, } } -function particles_pruneParticles__P145836(s) { +function particles_pruneParticles__P22800(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9836,26 +9792,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___151781 = undefined; - s.tmp_0 = particles_particleSources__P145849_mk(s); - s.pc = 3; return s.tmp_0; + s.sources___27694 = undefined; + s.tmp_0 = particles_particleSources__P22804_mk(s); + s.callLocIdx = 1160; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___151781 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___151781); + s.sources___27694 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___27694); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P144186_mk(s); - s.tmp_1 = helpers_arraySlice__P144191_mk(s); - s.tmp_1.arg0 = s.sources___151781; + s.tmp_0 = helpers_arrayForEach__P18671_mk(s); + s.tmp_1 = helpers_arraySlice__P18676_mk(s); + s.tmp_1.arg0 = s.sources___27694; s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___151781); + r0 = pxsim_Array__length(s.sources___27694); s.tmp_1.arg2 = r0; - s.pc = 5; return s.tmp_1; + s.callLocIdx = 1161; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P151790; - s.pc = 4; return s.tmp_0; + s.tmp_0.arg1 = inline__P27703; + s.callLocIdx = 1163; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 1: @@ -9864,23 +9820,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_pruneParticles__P145836.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +particles_pruneParticles__P22800.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__P145836_mk(s) { +function particles_pruneParticles__P22800_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P145836, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P22800, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sources___151781: undefined, + sources___27694: undefined, } } -function inline__P151790(s) { +function inline__P27703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9894,21 +9850,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource__prune__P145816_mk(s); + s.tmp_0 = particles_ParticleSource__prune__P21250_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1162; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P151790.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P27703.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__P151790_mk(s) { +function inline__P27703_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P151790, depth: s.depth + 1, + parent: s, fn: inline__P27703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -9918,7 +9874,7 @@ function inline__P151790_mk(s) { -function particles_ParticleSource__prune__P145816(s) { +function particles_ParticleSource__prune__P21250(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9928,15 +9884,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___151821 = undefined; - s.sources___151829 = undefined; - s.current___151844 = undefined; + s.scene___27491 = undefined; + s.sources___27499 = undefined; + s.current___27513 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); case 1: r0 = s.arg0.fields["head"]; s.tmp_0 = r0; @@ -9979,36 +9935,36 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 13; continue; } - s.tmp_5 = game_currentScene__P145074_mk(s); - s.pc = 21; return s.tmp_5; + s.tmp_5 = game_currentScene__P21096_mk(s); + s.callLocIdx = 1135; s.pc = 21; return s.tmp_5; case 21: r0 = s.retval; - s.scene___151821 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___151821); + s.scene___27491 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___27491); if (!r0) { step = 7; continue; } - r0 = s.scene___151821.fields["allSprites"]; + r0 = s.scene___27491.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); case 7: case 8: - s.tmp_0 = particles_particleSources__P145849_mk(s); - s.pc = 22; return s.tmp_0; + s.tmp_0 = particles_particleSources__P22804_mk(s); + s.callLocIdx = 1136; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; - s.sources___151829 = (r0); - s.tmp_0 = r0 = s.sources___151829; + s.sources___27499 = (r0); + s.tmp_0 = r0 = s.sources___27499; 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___151829); + r0 = pxsim_Array__length(s.sources___27499); 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___151829, s.arg0); + r0 = pxsim_Array_.removeElement(s.sources___27499, s.arg0); case 11: case 12: r0 = s.arg0.fields["anchor"]; @@ -10017,35 +9973,35 @@ switch (step) { case 13: case 14: r0 = s.arg0.fields["head"]; - s.current___151844 = (r0); + s.current___27513 = (r0); case 15: - s.tmp_0 = r0 = s.current___151844; + s.tmp_0 = r0 = s.current___27513; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 16; continue; } r0 = s.tmp_0; { step = 17; continue; } case 16: - r0 = s.current___151844.fields["next"]; + r0 = s.current___27513.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___151844.fields["next"]; + r0 = s.current___27513.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___151844.fields["next"]; + r0 = s.current___27513.fields["next"]; r0 = r0.fields["next"]; s.tmp_4 = r0; - r0 = (s.current___151844).fields["next"] = (s.tmp_4); + r0 = (s.current___27513).fields["next"] = (s.tmp_4); { step = 19; continue; } case 18: - r0 = s.current___151844.fields["next"]; - s.current___151844 = (r0); + r0 = s.current___27513.fields["next"]; + s.current___27513 = (r0); case 19: { step = 15; continue; } case 20: @@ -10053,12 +10009,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource__prune__P145816.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +particles_ParticleSource__prune__P21250.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} -function particles_ParticleSource__prune__P145816_mk(s) { +function particles_ParticleSource__prune__P21250_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P145816, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__prune__P21250, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10066,9 +10022,9 @@ function particles_ParticleSource__prune__P145816_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___151821: undefined, - sources___151829: undefined, - current___151844: undefined, + scene___27491: undefined, + sources___27499: undefined, + current___27513: undefined, arg0: undefined, } } @@ -10076,7 +10032,7 @@ function particles_ParticleSource__prune__P145816_mk(s) { -function particles_updateParticles__P145835(s) { +function particles_updateParticles__P22799(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10086,16 +10042,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___153230 = undefined; - s.time___153237 = undefined; - s.dt___153240 = undefined; - s.i___153246 = undefined; - s.tmp_0 = particles_particleSources__P145849_mk(s); - s.pc = 6; return s.tmp_0; + s.sources___29782 = undefined; + s.time___29789 = undefined; + s.dt___29792 = undefined; + s.i___29798 = undefined; + s.tmp_0 = particles_particleSources__P22804_mk(s); + s.callLocIdx = 1157; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sources___153230 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___153230); + s.sources___29782 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___29782); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -10104,34 +10060,34 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_2 = particles_sortSources__P145837_mk(s); - s.tmp_2.arg0 = s.sources___153230; - s.pc = 7; return s.tmp_2; + s.tmp_2 = particles_sortSources__P22801_mk(s); + s.tmp_2.arg0 = s.sources___29782; + s.callLocIdx = 1158; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; r0 = pxsim.control.millis(); - s.time___153237 = (r0); - r0 = (s.time___153237 - globals.lastUpdate___145809); - s.dt___153240 = (r0); - globals.lastUpdate___145809 = (s.time___153237); - s.i___153246 = (0); + s.time___29789 = (r0); + r0 = (s.time___29789 - globals.lastUpdate___22793); + s.dt___29792 = (r0); + globals.lastUpdate___22793 = (s.time___29789); + s.i___29798 = (0); case 3: - s.tmp_1 = r0 = s.i___153246; - r0 = pxsim_Array__length(s.sources___153230); + s.tmp_1 = r0 = s.i___29798; + r0 = pxsim_Array__length(s.sources___29782); 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__P145815_mk(s); - r0 = pxsim_Array__getAt(s.sources___153230, s.i___153246); + s.tmp_3 = particles_ParticleSource__update__P21249_mk(s); + r0 = pxsim_Array__getAt(s.sources___29782, s.i___29798); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___153240; - s.pc = 8; return s.tmp_3; + s.tmp_3.arg1 = s.dt___29792; + s.callLocIdx = 1159; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___153246 + 1); - s.i___153246 = (r0); + r0 = (s.i___29798 + 1); + s.i___29798 = (r0); { step = 3; continue; } case 4: case 5: @@ -10139,28 +10095,28 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_updateParticles__P145835.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +particles_updateParticles__P22799.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function particles_updateParticles__P145835_mk(s) { +function particles_updateParticles__P22799_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P145835, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P22799, depth: s.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___153230: undefined, - time___153237: undefined, - dt___153240: undefined, - i___153246: undefined, + sources___29782: undefined, + time___29789: undefined, + dt___29792: undefined, + i___29798: undefined, } } -function particles_ParticleSource__update__P145815(s) { +function particles_ParticleSource__update__P21249(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10170,16 +10126,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___153310 = undefined; - s.current___153329 = undefined; - s.fixedDt___153337 = undefined; + s.p___29861 = undefined; + s.current___29880 = undefined; + s.fixedDt___29888 = 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__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timer"]; s.tmp_2 = r0; @@ -10205,9 +10161,9 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = particles_ParticleSource_destroy__P145822_mk(s); + s.tmp_0 = particles_ParticleSource_destroy__P21256_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 28; return s.tmp_0; + s.callLocIdx = 1130; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; case 1: @@ -10230,7 +10186,7 @@ switch (step) { 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.pc = 29; return s.tmp_2; } + else { s.callLocIdx = 1131; s.pc = 29; return s.tmp_2; } } case 29: r0 = s.retval; @@ -10253,7 +10209,7 @@ switch (step) { 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.pc = 30; return s.tmp_5; } + else { s.callLocIdx = 1132; s.pc = 30; return s.tmp_5; } } case 30: r0 = s.retval; @@ -10278,9 +10234,9 @@ switch (step) { r0 = s.tmp_0; { step = 13; continue; } case 12: - s.tmp_2 = particles_ParticleSource_enabled__P145820_mk(s); + s.tmp_2 = particles_ParticleSource_enabled__P21254_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 31; return s.tmp_2; + s.callLocIdx = 1133; s.pc = 31; return s.tmp_2; case 31: r0 = s.retval; case 13: @@ -10296,18 +10252,18 @@ switch (step) { r0 = (s.tmp_6 + s.tmp_7); s.tmp_5 = r0; r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); - s.tmp_0 = particles_ParticleFactory__C145872_v0_2_mk(s); + s.tmp_0 = particles_ParticleFactory__C21278_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__C145872_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C21278_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___153310 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___153310); + s.p___29861 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___29861); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -10318,8 +10274,8 @@ switch (step) { case 15: r0 = s.arg0.fields["head"]; s.tmp_2 = r0; - r0 = (s.p___153310).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___153310); + r0 = (s.p___29861).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___29861); { step = 11; continue; } case 16: r0 = s.arg0.fields["head"]; @@ -10334,7 +10290,7 @@ switch (step) { case 17: case 18: r0 = s.arg0.fields["head"]; - s.current___153329 = (r0); + s.current___29880 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["_dt"]; s.tmp_2 = r0; @@ -10346,36 +10302,36 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_1 = r0; r0 = (s.tmp_1 | 0); - s.fixedDt___153337 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___153337); + s.fixedDt___29888 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___29888); if (!r0) { step = 23; continue; } case 19: - r0 = s.current___153329.fields["lifespan"]; + r0 = s.current___29880.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___153329; + s.tmp_2 = r0 = s.current___29880; 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__C145812_v4_3_mk(s); + s.tmp_0 = particles_ParticleSource__C21242_v4_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___153329; - s.tmp_0.arg2 = s.fixedDt___153337; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C145812_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.current___29880; + s.tmp_0.arg2 = s.fixedDt___29888; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C21242_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___153329.fields["next"]; + r0 = s.current___29880.fields["next"]; s.tmp_0 = r0; - s.current___153329 = (r0); + s.current___29880 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } { step = 19; continue; } @@ -10384,15 +10340,15 @@ switch (step) { { step = 26; continue; } case 23: case 24: - s.tmp_0 = r0 = s.current___153329; + s.tmp_0 = r0 = s.current___29880; 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___153329.fields["next"]; + r0 = s.current___29880.fields["next"]; s.tmp_0 = r0; - s.current___153329 = (r0); + s.current___29880 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 25; continue; } { step = 24; continue; } @@ -10403,12 +10359,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource__update__P145815.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +particles_ParticleSource__update__P21249.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_ParticleSource__update__P145815_mk(s) { +function particles_ParticleSource__update__P21249_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P145815, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P21249, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10418,9 +10374,9 @@ function particles_ParticleSource__update__P145815_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - p___153310: undefined, - current___153329: undefined, - fixedDt___153337: undefined, + p___29861: undefined, + current___29880: undefined, + fixedDt___29888: undefined, arg0: undefined, arg1: undefined, } } @@ -10429,93 +10385,7 @@ function particles_ParticleSource__update__P145815_mk(s) { -function particles_ParticleFactory_createParticle__P145873(s) { -let r0 = s.r0, 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___153431 = 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__C145872_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C145810_VT); - s.p___153431 = (r0); - s.tmp_0 = r0 = s.p___153431; - 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.pc = 1; return s.tmp_3; } - } - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___153431; - 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.pc = 2; return s.tmp_3; } - } - case 2: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = (s.p___153431).fields["vx"] = (0); - r0 = (s.p___153431).fields["vy"] = (0); - r0 = (s.p___153431).fields["lifespan"] = (500); - r0 = s.p___153431; - return leave(s, r0) - default: oops() -} } } -particles_ParticleFactory_createParticle__P145873.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} - -function particles_ParticleFactory_createParticle__P145873_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleFactory_createParticle__P145873, depth: s.depth + 1, - pc: 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___153431: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function particles_ParticleSource_updateParticle__P145828(s) { +function particles_ParticleSource_updateParticle__P22795(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10532,7 +10402,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); r0 = (s.arg2 >> 10); s.arg2 = (r0); s.tmp_0 = r0 = s.arg1; @@ -10587,12 +10457,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P145828.info = {"start":8231,"length":357,"line":276,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} +particles_ParticleSource_updateParticle__P22795.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_updateParticle__P145828_mk(s) { +function particles_ParticleSource_updateParticle__P22795_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P145828, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P22795, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10609,7 +10479,7 @@ function particles_ParticleSource_updateParticle__P145828_mk(s) { -function Fx_rightShift__P144252(s) { +function Fx_rightShift__P18728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10628,12 +10498,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_rightShift__P144252.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} +Fx_rightShift__P18728.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__P144252_mk(s) { +function Fx_rightShift__P18728_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_rightShift__P144252, depth: s.depth + 1, + parent: s, fn: Fx_rightShift__P18728, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -10643,7 +10513,7 @@ function Fx_rightShift__P144252_mk(s) { -function Fx_mul__P144243(s) { +function Fx_mul__P18719(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10664,14 +10534,100 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_mul__P144243.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +Fx_mul__P18719.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} + +function Fx_mul__P18719_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_mul__P18719, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function particles_ParticleFactory_createParticle__P21280(s) { +let r0 = s.r0, 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___29978 = 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__C21278_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C21223_VT); + s.p___29978 = (r0); + s.tmp_0 = r0 = s.p___29978; + 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 = 1184; s.pc = 1; return s.tmp_3; } + } + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.p___29978; + 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 = 1186; s.pc = 2; return s.tmp_3; } + } + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = (s.p___29978).fields["vx"] = (0); + r0 = (s.p___29978).fields["vy"] = (0); + r0 = (s.p___29978).fields["lifespan"] = (500); + r0 = s.p___29978; + return leave(s, r0) + default: oops() +} } } +particles_ParticleFactory_createParticle__P21280.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 Fx_mul__P144243_mk(s) { +function particles_ParticleFactory_createParticle__P21280_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P144243, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P21280, depth: s.depth + 1, pc: 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___29978: undefined, arg0: undefined, arg1: undefined, } } @@ -10680,7 +10636,7 @@ function Fx_mul__P144243_mk(s) { -function game_onUpdateInterval__P145398(s) { +function game_onUpdateInterval__P21108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10690,15 +10646,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___153162 = undefined; + s.timer___27716 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P145388_mk(s); + s.tmp_0 = game_init__P22448_mk(s); s.tmp_0.arg0 = undefined; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 937; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg1); @@ -10720,22 +10676,22 @@ switch (step) { case 3: case 4: r0 = pxsim_pxtrt.mklocRef(); - s.timer___153162 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___153162, 0); - r0 = pxsim_pxtcore_mkAction(3, inline__P153166); + s.timer___27716 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___27716, 0); + r0 = pxsim_pxtcore_mkAction(3, inline__P27720); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___153162); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___27716); 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__P144419_mk(s); - s.tmp_2 = game_eventContext__P145387_mk(s); - s.pc = 8; return s.tmp_2; + s.tmp_1 = control_EventContext_registerFrameHandler__P18956_mk(s); + s.tmp_2 = game_eventContext__P21099_mk(s); + s.callLocIdx = 938; 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.pc = 7; return s.tmp_1; + s.callLocIdx = 942; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; case 5: @@ -10743,17 +10699,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P145398.info = {"start":7931,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +game_onUpdateInterval__P21108.info = {"start":7929,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} -function game_onUpdateInterval__P145398_mk(s) { +function game_onUpdateInterval__P21108_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P145398, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P21108, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - timer___153162: undefined, + timer___27716: undefined, arg0: undefined, arg1: undefined, } } @@ -10762,7 +10718,7 @@ function game_onUpdateInterval__P145398_mk(s) { -function inline__P153166(s) { +function inline__P27720(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10772,28 +10728,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___153167 = undefined; - s.tmp_1 = game_currentScene__P145074_mk(s); - s.pc = 3; return s.tmp_1; + s.time___27721 = undefined; + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 939; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_millis"]; - s.time___153167 = (r0); + s.time___27721 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___153167); + r0 = (s.tmp_1 <= s.time___27721); 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___153167 + s.caps[1]); + r0 = (s.time___27721 + 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.pc = 4; return s.tmp_0; + s.callLocIdx = 941; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 1: @@ -10802,25 +10758,25 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P153166.info = {"start":8161,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +inline__P27720.info = {"start":8159,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function inline__P153166_mk(s) { +function inline__P27720_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P153166, depth: s.depth + 1, + parent: s, fn: inline__P27720, depth: s.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___153167: undefined, + time___27721: undefined, } } -function particles_SprayFactory_constructor__P145882(s) { +function particles_SprayFactory_constructor__P21283(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10838,35 +10794,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C145876_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C21282_VT)) failedCast(r0); r0 = undefined; - s.tmp_0 = particles_initTrig__P145864_mk(s); - s.pc = 1; return s.tmp_0; + s.tmp_0 = particles_initTrig__P22819_mk(s); + s.callLocIdx = 1191; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P145880_mk(s); + s.tmp_0 = particles_SprayFactory_setSpeed__P21286_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 2; return s.tmp_0; + s.callLocIdx = 1192; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P145881_mk(s); + s.tmp_0 = particles_SprayFactory_setDirection__P21287_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; s.tmp_0.arg2 = s.arg3; - s.pc = 3; return s.tmp_0; + s.callLocIdx = 1193; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_constructor__P145882.info = {"start":2623,"length":218,"line":98,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","speed","centerDegrees","arcDegrees"]} +particles_SprayFactory_constructor__P21283.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__P145882_mk(s) { +function particles_SprayFactory_constructor__P21283_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P145882, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_constructor__P21283, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10879,7 +10835,193 @@ function particles_SprayFactory_constructor__P145882_mk(s) { -function particles_SprayFactory_setDirection__P145881(s) { +function particles_initTrig__P22819(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___22805); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = particles_cacheSin__P21276_mk(s); + s.tmp_2.arg0 = 100; + s.callLocIdx = 1179; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + globals.cachedSin___22805 = (r0); + s.tmp_0 = particles_cacheCos__P21277_mk(s); + s.tmp_0.arg0 = 100; + s.callLocIdx = 1180; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + globals.cachedCos___22806 = (r0); + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_initTrig__P22819.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} + +function particles_initTrig__P22819_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_initTrig__P22819, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, +} } + + + + + +function particles_cacheCos__P21277(s) { +let r0 = s.r0, 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.cos___27382 = undefined; + s.anglePerSlice___27384 = undefined; + s.i___27390 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.cos___27382 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___27384 = (r0); + s.i___27390 = (0); + case 1: + r0 = (s.i___27390 < s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.cos___27382; + r0 = (s.i___27390 * s.anglePerSlice___27384); + 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___27390 + 1); + s.i___27390 = (r0); + { step = 1; continue; } + case 2: + r0 = s.cos___27382; + return leave(s, r0) + default: oops() +} } } +particles_cacheCos__P21277.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} + +function particles_cacheCos__P21277_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_cacheCos__P21277, depth: s.depth + 1, + pc: 0, retval: undefined, 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___27382: undefined, + anglePerSlice___27384: undefined, + i___27390: undefined, + arg0: undefined, +} } + + + + + +function particles_cacheSin__P21276(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.sin___27408 = undefined; + s.anglePerSlice___27410 = undefined; + s.i___27416 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.sin___27408 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___27410 = (r0); + s.i___27416 = (0); + case 1: + r0 = (s.i___27416 < s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.sin___27408; + r0 = (s.i___27416 * s.anglePerSlice___27410); + 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___27416 + 1); + s.i___27416 = (r0); + { step = 1; continue; } + case 2: + r0 = s.sin___27408; + return leave(s, r0) + default: oops() +} } } +particles_cacheSin__P21276.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} + +function particles_cacheSin__P21276_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_cacheSin__P21276, depth: s.depth + 1, + pc: 0, retval: undefined, 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___27408: undefined, + anglePerSlice___27410: undefined, + i___27416: undefined, + arg0: undefined, +} } + + + + + +function particles_SprayFactory_setDirection__P21287(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10896,31 +11038,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C145876_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C21282_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P145871_mk(s); + s.tmp_4 = particles_toRadians__P22824_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.pc = 1; return s.tmp_4; + s.callLocIdx = 1201; s.pc = 1; return s.tmp_4; case 1: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___145863); + r0 = (s.tmp_3 / globals.angleSlice___22818); 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__P145871_mk(s); + s.tmp_4 = particles_toRadians__P22824_mk(s); s.tmp_4.arg0 = s.arg2; - s.pc = 2; return s.tmp_4; + s.callLocIdx = 1202; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___145863); + r0 = (s.tmp_3 / globals.angleSlice___22818); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; @@ -10929,12 +11071,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P145881.info = {"start":3424,"length":228,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setDirection","argumentNames":["this","centerDegrees","arcDegrees"]} +particles_SprayFactory_setDirection__P21287.info = {"start":3424,"length":228,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setDirection","argumentNames":["this","centerDegrees","arcDegrees"]} -function particles_SprayFactory_setDirection__P145881_mk(s) { +function particles_SprayFactory_setDirection__P21287_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P145881, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P21287, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10952,7 +11094,7 @@ function particles_SprayFactory_setDirection__P145881_mk(s) { -function particles_toRadians__P145871(s) { +function particles_toRadians__P22824(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10970,9 +11112,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P144202_mk(s); + s.tmp_3 = Math_abs__P18687_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 3; return s.tmp_3; + s.callLocIdx = 1183; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; @@ -10989,12 +11131,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_toRadians__P145871.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +particles_toRadians__P22824.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} -function particles_toRadians__P145871_mk(s) { +function particles_toRadians__P22824_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P145871, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P22824, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11007,7 +11149,7 @@ function particles_toRadians__P145871_mk(s) { -function particles_ParticleFactory_constructor__P145875(s) { +function particles_ParticleFactory_constructor__P21279(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11022,17 +11164,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C145872_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleFactory__C21278_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_constructor__P145875.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} +particles_ParticleFactory_constructor__P21279.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} -function particles_ParticleFactory_constructor__P145875_mk(s) { +function particles_ParticleFactory_constructor__P21279_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_constructor__P145875, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P21279, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11041,193 +11183,7 @@ function particles_ParticleFactory_constructor__P145875_mk(s) { -function particles_initTrig__P145864(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___145850); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = particles_cacheSin__P145865_mk(s); - s.tmp_2.arg0 = 100; - s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - globals.cachedSin___145850 = (r0); - s.tmp_0 = particles_cacheCos__P145866_mk(s); - s.tmp_0.arg0 = 100; - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - globals.cachedCos___145851 = (r0); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_initTrig__P145864.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} - -function particles_initTrig__P145864_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_initTrig__P145864, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, -} } - - - - - -function particles_cacheCos__P145866(s) { -let r0 = s.r0, 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.cos___152897 = undefined; - s.anglePerSlice___152899 = undefined; - s.i___152905 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.cos___152897 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___152899 = (r0); - s.i___152905 = (0); - case 1: - r0 = (s.i___152905 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___152897; - r0 = (s.i___152905 * s.anglePerSlice___152899); - 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___152905 + 1); - s.i___152905 = (r0); - { step = 1; continue; } - case 2: - r0 = s.cos___152897; - return leave(s, r0) - default: oops() -} } } -particles_cacheCos__P145866.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} - -function particles_cacheCos__P145866_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_cacheCos__P145866, depth: s.depth + 1, - pc: 0, retval: undefined, 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___152897: undefined, - anglePerSlice___152899: undefined, - i___152905: undefined, - arg0: undefined, -} } - - - - - -function particles_cacheSin__P145865(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sin___152923 = undefined; - s.anglePerSlice___152925 = undefined; - s.i___152931 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.sin___152923 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___152925 = (r0); - s.i___152931 = (0); - case 1: - r0 = (s.i___152931 < s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.sin___152923; - r0 = (s.i___152931 * s.anglePerSlice___152925); - 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___152931 + 1); - s.i___152931 = (r0); - { step = 1; continue; } - case 2: - r0 = s.sin___152923; - return leave(s, r0) - default: oops() -} } } -particles_cacheSin__P145865.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} - -function particles_cacheSin__P145865_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_cacheSin__P145865, depth: s.depth + 1, - pc: 0, retval: undefined, 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___152923: undefined, - anglePerSlice___152925: undefined, - i___152931: undefined, - arg0: undefined, -} } - - - - - -function particles_ParticleSource_setFactory__P145827(s) { +function particles_ParticleSource_setFactory__P21261(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11243,7 +11199,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["_factory"] = (s.arg1); @@ -11253,12 +11209,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P145827.info = {"start":8107,"length":114,"line":271,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} +particles_ParticleSource_setFactory__P21261.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__P145827_mk(s) { +function particles_ParticleSource_setFactory__P21261_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P145827, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P21261, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -11268,7 +11224,7 @@ function particles_ParticleSource_setFactory__P145827_mk(s) { -function particles_ParticleSource_setRate__P145825(s) { +function particles_ParticleSource_setRate__P21259(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11284,7 +11240,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (1000 / s.arg1); s.tmp_2 = r0; @@ -11296,12 +11252,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P145825.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_setRate__P21259.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} -function particles_ParticleSource_setRate__P145825_mk(s) { +function particles_ParticleSource_setRate__P21259_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P145825, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P21259, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11314,7 +11270,7 @@ function particles_ParticleSource_setRate__P145825_mk(s) { -function particles_ParticleSource_setAnchor__P145824(s) { +function particles_ParticleSource_setAnchor__P21258(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11330,18 +11286,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P145824.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +particles_ParticleSource_setAnchor__P21258.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 particles_ParticleSource_setAnchor__P145824_mk(s) { +function particles_ParticleSource_setAnchor__P21258_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P145824, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P21258, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -11351,7 +11307,7 @@ function particles_ParticleSource_setAnchor__P145824_mk(s) { -function particles_ParticleSource_clear__P145823(s) { +function particles_ParticleSource_clear__P21257(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11366,18 +11322,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_clear__P145823.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} +particles_ParticleSource_clear__P21257.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} -function particles_ParticleSource_clear__P145823_mk(s) { +function particles_ParticleSource_clear__P21257_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_clear__P145823, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P21257, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11386,7 +11342,7 @@ function particles_ParticleSource_clear__P145823_mk(s) { -function particles_ParticleSource_destroy__P145822(s) { +function particles_ParticleSource_destroy__P21256(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11401,11 +11357,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P145821_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P21255_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1140; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -11414,21 +11370,21 @@ switch (step) { r0 = (s.tmp_2 | 2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P145816_mk(s); + s.tmp_0 = particles_ParticleSource__prune__P21250_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 2; return s.tmp_0; + s.callLocIdx = 1141; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_destroy__P145822.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} +particles_ParticleSource_destroy__P21256.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function particles_ParticleSource_destroy__P145822_mk(s) { +function particles_ParticleSource_destroy__P21256_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P145822, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P21256, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11440,7 +11396,7 @@ function particles_ParticleSource_destroy__P145822_mk(s) { -function particles_ParticleSource_enabled__P145821(s) { +function particles_ParticleSource_enabled__P21255(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11456,11 +11412,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P145820_mk(s); + s.tmp_3 = particles_ParticleSource_enabled__P21254_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 5; return s.tmp_3; + s.callLocIdx = 1139; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; s.tmp_2 = r0; @@ -11489,12 +11445,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P145821.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_ParticleSource_enabled__P21255.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 particles_ParticleSource_enabled__P145821_mk(s) { +function particles_ParticleSource_enabled__P21255_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P145821, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P21255, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11511,7 +11467,7 @@ function particles_ParticleSource_enabled__P145821_mk(s) { -function particles_ParticleSource_enabled__P145820(s) { +function particles_ParticleSource_enabled__P21254(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11526,7 +11482,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); r0 = s.arg0.fields["pFlags"]; s.tmp_4 = r0; r0 = (s.tmp_4 & 1); @@ -11541,13 +11497,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P145820.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__P145820.isGetter = true; +particles_ParticleSource_enabled__P21254.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__P21254.isGetter = true; -function particles_ParticleSource_enabled__P145820_mk(s) { +function particles_ParticleSource_enabled__P21254_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P145820, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P21254, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11561,7 +11517,7 @@ function particles_ParticleSource_enabled__P145820_mk(s) { -function particles_ParticleSource_setAcceleration__P145817(s) { +function particles_ParticleSource_setAcceleration__P21251(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11578,7 +11534,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -11595,12 +11551,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAcceleration__P145817.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"]} +particles_ParticleSource_setAcceleration__P21251.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 particles_ParticleSource_setAcceleration__P145817_mk(s) { +function particles_ParticleSource_setAcceleration__P21251_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAcceleration__P145817, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P21251, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11614,7 +11570,7 @@ function particles_ParticleSource_setAcceleration__P145817_mk(s) { -function sprites_BaseSprite_constructor__P144762(s) { +function sprites_BaseSprite_constructor__P20424(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11630,33 +11586,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C144754_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P144757_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C20422_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P20427_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 137; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P145297_mk(s); - s.tmp_1 = game_currentScene__P145074_mk(s); - s.pc = 3; return s.tmp_1; + s.tmp_0 = scene_Scene_addSprite__P21008_mk(s); + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 138; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - s.pc = 2; return s.tmp_0; + s.callLocIdx = 139; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite_constructor__P144762.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} +sprites_BaseSprite_constructor__P20424.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} -function sprites_BaseSprite_constructor__P144762_mk(s) { +function sprites_BaseSprite_constructor__P20424_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_constructor__P144762, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P20424, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11668,7 +11624,7 @@ function sprites_BaseSprite_constructor__P144762_mk(s) { -function scene_Scene_addSprite__P145297(s) { +function scene_Scene_addSprite__P21008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11684,7 +11640,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C145293_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C20983_VT)) failedCast(r0); r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); @@ -11703,7 +11659,7 @@ switch (step) { 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.pc = 1; return s.tmp_3; } + else { s.callLocIdx = 902; s.pc = 1; return s.tmp_3; } } case 1: r0 = s.retval; @@ -11711,12 +11667,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_addSprite__P145297.info = {"start":6412,"length":128,"line":180,"column":8,"endLine":183,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +scene_Scene_addSprite__P21008.info = {"start":6859,"length":128,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function scene_Scene_addSprite__P145297_mk(s) { +function scene_Scene_addSprite__P21008_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_addSprite__P145297, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P21008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11730,7 +11686,7 @@ function scene_Scene_addSprite__P145297_mk(s) { -function sprites_BaseSprite_z__P144757(s) { +function sprites_BaseSprite_z__P20427(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11746,7 +11702,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C144754_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C20422_VT)) failedCast(r0); r0 = s.arg0.fields["_z"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== s.arg1); @@ -11754,8 +11710,8 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["_z"] = (s.arg1); - s.tmp_1 = game_currentScene__P145074_mk(s); - s.pc = 3; return s.tmp_1; + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 140; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -11770,12 +11726,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P144757.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +sprites_BaseSprite_z__P20427.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 sprites_BaseSprite_z__P144757_mk(s) { +function sprites_BaseSprite_z__P20427_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P144757, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P20427, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11789,7 +11745,7 @@ function sprites_BaseSprite_z__P144757_mk(s) { -function sprites_BaseSprite_z__P144756(s) { +function sprites_BaseSprite_z__P20426(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11804,18 +11760,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C144754_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C20422_VT)) failedCast(r0); r0 = s.arg0.fields["_z"]; return leaveAccessor(s, r0) default: oops() } } } -sprites_BaseSprite_z__P144756.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__P144756.isGetter = true; +sprites_BaseSprite_z__P20426.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__P20426.isGetter = true; -function sprites_BaseSprite_z__P144756_mk(s) { +function sprites_BaseSprite_z__P20426_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P144756, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P20426, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11824,7 +11780,7 @@ function sprites_BaseSprite_z__P144756_mk(s) { -function helpers_arrayShift__P144177(s) { +function helpers_arrayShift__P18664(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11842,12 +11798,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arrayShift__P144177.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} +helpers_arrayShift__P18664.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} -function helpers_arrayShift__P144177_mk(s) { +function helpers_arrayShift__P18664_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P144177, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P18664, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11856,7 +11812,7 @@ function helpers_arrayShift__P144177_mk(s) { -function particles_SprayFactory_setSpeed__P145880(s) { +function particles_SprayFactory_setSpeed__P21286(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11872,7 +11828,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C145876_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C21282_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -11883,12 +11839,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setSpeed__P145880.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} +particles_SprayFactory_setSpeed__P21286.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} -function particles_SprayFactory_setSpeed__P145880_mk(s) { +function particles_SprayFactory_setSpeed__P21286_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P145880, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P21286, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11901,7 +11857,7 @@ function particles_SprayFactory_setSpeed__P145880_mk(s) { -function particles_ConfettiFactory_constructor__P145901(s) { +function particles_ConfettiFactory_constructor__P21310(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11911,8 +11867,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___153505 = undefined; - s.i___153521 = undefined; + s.confetti___28338 = undefined; + s.i___28354 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -11920,52 +11876,52 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C145899_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ConfettiFactory__C21309_VT)) failedCast(r0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex153508); + r0 = pxsim.image.ofBuffer(_hex28341); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex153510); + r0 = pxsim.image.ofBuffer(_hex28343); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex153512); + r0 = pxsim.image.ofBuffer(_hex28345); s.tmp_3 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex153514); + r0 = pxsim.image.ofBuffer(_hex28347); s.tmp_4 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex153516); + r0 = pxsim.image.ofBuffer(_hex28349); s.tmp_5 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___153505 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P145898_mk(s); + s.confetti___28338 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P21305_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___153505, 0); + r0 = pxsim_Array__getAt(s.confetti___28338, 0); s.tmp_0.arg3 = r0; - s.pc = 3; return s.tmp_0; + s.callLocIdx = 1225; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.i___153521 = (1); + s.i___28354 = (1); case 1: - s.tmp_1 = r0 = s.i___153521; - r0 = pxsim_Array__length(s.confetti___153505); + s.tmp_1 = r0 = s.i___28354; + r0 = pxsim_Array__length(s.confetti___28338); 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__P145895_mk(s); + s.tmp_3 = particles_ShapeFactory_addShape__P21306_mk(s); s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___153505, s.i___153521); + r0 = pxsim_Array__getAt(s.confetti___28338, s.i___28354); s.tmp_3.arg1 = r0; - s.pc = 4; return s.tmp_3; + s.callLocIdx = 1226; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - r0 = (s.i___153521 + 1); - s.i___153521 = (r0); + r0 = (s.i___28354 + 1); + s.i___28354 = (r0); { step = 1; continue; } case 2: r0 = (s.arg0).fields["minLifespan"] = (1000); @@ -11974,12 +11930,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P145901.info = {"start":7755,"length":706,"line":247,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} +particles_ConfettiFactory_constructor__P21310.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__P145901_mk(s) { +function particles_ConfettiFactory_constructor__P21310_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P145901, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P21310, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11987,184 +11943,23 @@ function particles_ConfettiFactory_constructor__P145901_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - confetti___153505: undefined, - i___153521: undefined, + confetti___28338: undefined, + i___28354: undefined, arg0: undefined, arg1: undefined, arg2: undefined, } } -const _hex153508 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex153510 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex153512 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex153514 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex153516 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") - - - - -function particles_ShapeFactory_constructor__P145898(s) { -let r0 = s.r0, 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, particles_ShapeFactory__C145893_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P145887_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.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg3); - r0 = (s.arg0).fields["sources"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(s.arg3); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(s.arg3); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ShapeFactory_constructor__P145898.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} - -function particles_ShapeFactory_constructor__P145898_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ShapeFactory_constructor__P145898, depth: s.depth + 1, - pc: 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 particles_AreaFactory_constructor__P145887(s) { -let r0 = s.r0, 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.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C145883_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P145882_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 40; - s.tmp_0.arg2 = 0; - s.tmp_0.arg3 = 90; - s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = (s.arg0).fields["xRange"] = (s.arg1); - r0 = (s.arg0).fields["yRange"] = (s.arg2); - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 1; continue; } - r0 = s.arg3; - { step = 2; continue; } - case 1: - r0 = 150; - case 2: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(s.arg4); - if (!r0) { step = 3; continue; } - r0 = s.arg4; - { step = 4; continue; } - case 3: - r0 = 850; - case 4: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C145662_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P145669_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_AreaFactory_constructor__P145887.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} - -function particles_AreaFactory_constructor__P145887_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_AreaFactory_constructor__P145887, 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, -} } - +const _hex28341 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex28343 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex28345 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex28347 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex28349 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_addShape__P145895(s) { +function particles_ShapeFactory_addShape__P21306(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12180,7 +11975,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C145893_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ShapeFactory__C21304_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["sources"]; @@ -12192,12 +11987,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P145895.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} +particles_ShapeFactory_addShape__P21306.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} -function particles_ShapeFactory_addShape__P145895_mk(s) { +function particles_ShapeFactory_addShape__P21306_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P145895, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P21306, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -12208,7 +12003,7 @@ function particles_ShapeFactory_addShape__P145895_mk(s) { -function effects_ScreenEffect_constructor__P145953(s) { +function particles_ShapeFactory_constructor__P21305(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12223,44 +12018,70 @@ 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, effects_ScreenEffect__C145949_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P145942_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C21304_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P21293_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.pc = 1; return s.tmp_0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.tmp_0.arg4 = undefined; + s.callLocIdx = 1215; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg3); + r0 = (s.arg0).fields["sources"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.height(s.arg3); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P145953.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"]} +particles_ShapeFactory_constructor__P21305.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 effects_ScreenEffect_constructor__P145953_mk(s) { +function particles_ShapeFactory_constructor__P21305_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P145953, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P21305, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, - arg4: undefined, } } -function effects_ParticleEffect_constructor__P145942(s) { +function particles_AreaFactory_constructor__P21293(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12275,35 +12096,75 @@ 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, effects_ParticleEffect__C145939_VT)) failedCast(r0); - r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); - r0 = (s.arg0).fields["defaultRate"] = (s.arg1); - r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); + if (!checkSubtype(r0, particles_AreaFactory__C21288_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P21283_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 = 1203; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = (s.arg0).fields["xRange"] = (s.arg1); + r0 = (s.arg0).fields["yRange"] = (s.arg2); + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 1; continue; } + r0 = s.arg3; + { step = 2; continue; } + case 1: + r0 = 150; + case 2: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["minLifespan"] = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg4); + if (!r0) { step = 3; continue; } + r0 = s.arg4; + { step = 4; continue; } + case 3: + r0 = 850; + case 4: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C21150_VT); + s.tmp_0 = r0; + s.tmp_1 = Math_FastRandom_constructor__P21152_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1204; 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() } } } -effects_ParticleEffect_constructor__P145942.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"]} +particles_AreaFactory_constructor__P21293.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 effects_ParticleEffect_constructor__P145942_mk(s) { +function particles_AreaFactory_constructor__P21293_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P145942, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P21293, 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 scene_Scene_constructor__P145301(s) { +function effects_ScreenEffect_constructor__P21358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12317,148 +12178,45 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C145293_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__C145021_VT); - s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P145042_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.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, effects_ScreenEffect__C21357_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P21354_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 = 1257; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C145233_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P145240_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - r0 = (s.arg0).fields["camera"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C145157_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P145163_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["camera"]; - s.tmp_1.arg1 = r0; - s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - r0 = (s.arg0).fields["background"] = (s.tmp_0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["createdHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["overlapMap"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["collisionHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["wallCollisionHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["gameForeverHandlers"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mkMap(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spritesByKind"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - 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 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P145301.info = {"start":3118,"length":793,"line":94,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} +effects_ScreenEffect_constructor__P21358.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 scene_Scene_constructor__P145301_mk(s) { +function effects_ScreenEffect_constructor__P21358_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P145301, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P21358, 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 scene_Camera_constructor__P145240(s) { -let r0 = s.r0, 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__C145233_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__P145240.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__P145240_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Camera_constructor__P145240, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function scene_Background_constructor__P145163(s) { +function effects_ParticleEffect_constructor__P21354(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12471,38 +12229,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C145157_VT)) failedCast(r0); - r0 = (s.arg0).fields["color"] = (0); - r0 = (s.arg0).fields["camera"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); + if (!checkSubtype(r0, effects_ParticleEffect__C21353_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_Background_constructor__P145163.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} +effects_ParticleEffect_constructor__P21354.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_Background_constructor__P145163_mk(s) { +function effects_ParticleEffect_constructor__P21354_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P145163, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P21354, 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_constructor__P145042(s) { +function scene_Scene_init__P21005(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12514,68 +12271,128 @@ 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__C145021_VT)) failedCast(r0); - r0 = undefined; + if (!checkSubtype(r0, scene_Scene__C20983_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__P20269_mk(s); + s.callLocIdx = 882; 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["sprites"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C144940_VT); + r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); + r0 = (s.arg0).fields["spriteNextId"] = (0); + r0 = pxsim_pxtcore_mkAction(1, inline__P28458); s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P144951_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.pc = 1; return s.tmp_1; - case 1: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18956_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 = 885; s.pc = 5; return s.tmp_1; + case 5: r0 = s.retval; - r0 = (s.arg0).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P145024_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.pc = 2; return s.tmp_0; - case 2: + s.tmp_0 = control_EventContext_registerFrameHandler__P18956_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P20486; + s.callLocIdx = 886; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P145028_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.pc = 3; return s.tmp_0; - case 3: + r0 = pxsim_pxtcore_mkAction(1, inline__P28481); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18956_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 = 888; s.pc = 7; return s.tmp_1; + case 7: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P145026_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.pc = 4; return s.tmp_0; - case 4: + r0 = pxsim_pxtcore_mkAction(1, inline__P28494); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18956_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 = 892; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P28515); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18956_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 = 894; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P28523); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P18956_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 = 898; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P18956_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P20327; + s.callLocIdx = 899; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P28552); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P18671_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___21003; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 901; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P145042.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"]} +scene_Scene_init__P21005.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} -function ArcadePhysicsEngine_constructor__P145042_mk(s) { +function scene_Scene_init__P21005_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P145042, depth: s.depth + 1, + parent: s, fn: scene_Scene_init__P21005, 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__P145028(s) { +function inline__P28458(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12585,42 +12402,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + s.tmp_0 = r0 = s.caps[0]; + r0 = s.tmp_0.fields["_millis"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + 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["maxSingleStep"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); + s.tmp_0 = controller___update__P20514_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 = 884; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P145028.info = {"start":2058,"length":67,"line":85,"column":4,"endLine":87,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +inline__P28458.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_maxStep__P145028_mk(s) { +function inline__P28458_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P145028, depth: s.depth + 1, + parent: s, fn: inline__P28458, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, + tmp_3: undefined, } } -function ArcadePhysicsEngine_maxStep__P145027(s) { +function inline__P28481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12630,38 +12452,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - r0 = s.arg0.fields["maxSingleStep"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + s.tmp_0 = PhysicsEngine__C20723_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 >> 8); - return leaveAccessor(s, r0) + r0 = s.tmp_1.fields["deltaTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 / 1000); + s.tmp_0.arg1 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20723_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() } } } -ArcadePhysicsEngine_maxStep__P145027.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__P145027.isGetter = true; +inline__P28481.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_maxStep__P145027_mk(s) { +function inline__P28481_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P145027, depth: s.depth + 1, + parent: s, fn: inline__P28481, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, } } -function ArcadePhysicsEngine_minStep__P145026(s) { +function inline__P28494(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12671,42 +12496,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.dt___28495 = undefined; + s.s___28503 = undefined; + s.unnamed246___U2 = undefined; + s.unnamed247___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_0).fields["minSingleStep"] = (s.tmp_1); + r0 = (s.tmp_1 / 1000); + s.dt___28495 = (r0); + s.tmp_0 = scene_Camera_update__P20940_mk(s); + r0 = s.caps[0].fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 890; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.s___28503 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed246___U2 = (r0); + s.unnamed247___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed247___U3; + r0 = pxsim_Array__length(s.unnamed246___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed246___U2, s.unnamed247___U3); + s.s___28503 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___28503; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___28495; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 891; 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 = 891; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 891; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 891; s.pc = 4; return s.tmp_2; } + } + case 4: + r0 = s.retval; + r0 = (s.unnamed247___U3 + 1); + s.unnamed247___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed246___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P145026.info = {"start":1905,"length":67,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +inline__P28494.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_minStep__P145026_mk(s) { +function inline__P28494_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P145026, depth: s.depth + 1, + parent: s, fn: inline__P28494, 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, + dt___28495: undefined, + s___28503: undefined, + unnamed246___U2: undefined, + unnamed247___U3: undefined, } } -function ArcadePhysicsEngine_minStep__P145025(s) { +function inline__P28515(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12716,38 +12579,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, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - r0 = s.arg0.fields["minSingleStep"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + s.tmp_0 = scene_Scene_render__P21010_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 893; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P145025.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__P145025.isGetter = true; +inline__P28515.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_minStep__P145025_mk(s) { +function inline__P28515_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P145025, depth: s.depth + 1, + parent: s, fn: inline__P28515, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, } } -function ArcadePhysicsEngine_maxSpeed__P145024(s) { +function inline__P28523(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12757,48 +12612,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.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["maxVelocity"]; - s.tmp_2 = r0; - r0 = (0 - s.tmp_2); + s.tmp_0 = r0 = globals.stats___21093; + 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___18951; + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); + 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___18951; + if ((globals.control_EventContext_lastStats___18950) && (globals.control_EventContext_lastStats___18950).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___18950); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___18950) + ""; } + 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 = 895; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(globals.debug___21092); + if (!r0) { step = 5; continue; } + s.tmp_0 = PhysicsEngine__C20723_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20723_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__P21218_mk(s); + s.callLocIdx = 896; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = power_checkDeepSleep__P20270_mk(s); + s.callLocIdx = 897; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P145024.info = {"start":1692,"length":127,"line":68,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +inline__P28523.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_maxSpeed__P145024_mk(s) { +function inline__P28523_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P145024, depth: s.depth + 1, + parent: s, fn: inline__P28523, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - arg0: undefined, - arg1: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, } } -function Fx_neg__P144238(s) { +function inline__P28552(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12812,17 +12727,25 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (0 - s.arg0); + 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 = 900; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_neg__P144238.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} +inline__P28552.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function Fx_neg__P144238_mk(s) { +function inline__P28552_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_neg__P144238, depth: s.depth + 1, + parent: s, fn: inline__P28552, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -12830,7 +12753,7 @@ function Fx_neg__P144238_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P145023(s) { +function game_consoleOverlay_draw__P21218(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12840,579 +12763,16 @@ 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, ArcadePhysicsEngine__C145021_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() -} } } -ArcadePhysicsEngine_maxSpeed__P145023.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__P145023.isGetter = true; - -function ArcadePhysicsEngine_maxSpeed__P145023_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P145023, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function PhysicsEngine_constructor__P145001(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C144993_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -PhysicsEngine_constructor__P145001.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} - -function PhysicsEngine_constructor__P145001_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: PhysicsEngine_constructor__P145001, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function sprites_SpriteMap_constructor__P144951(s) { -let r0 = s.r0, 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__C144940_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -sprites_SpriteMap_constructor__P144951.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} - -function sprites_SpriteMap_constructor__P144951_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_SpriteMap_constructor__P144951, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function scene_Scene_init__P145294(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C145293_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__P144612_mk(s); - 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__P153642); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P144419_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.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P144419_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P144831; - s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P153665); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P144419_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.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P153693); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P144419_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.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P153701); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P144419_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.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P144419_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P144660; - s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P153730); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P144186_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___145300; - s.tmp_1.arg1 = s.tmp_0; - s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Scene_init__P145294.info = {"start":3921,"length":2277,"line":114,"column":8,"endLine":167,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} - -function scene_Scene_init__P145294_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_init__P145294, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function inline__P153642(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = r0 = s.caps[0]; - r0 = s.tmp_0.fields["_millis"]; - s.tmp_2 = r0; - r0 = s.caps[0].fields["eventContext"]; - r0 = r0.fields["deltaTimeMillis"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P144857_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.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P153642.info = {"start":4211,"length":217,"line":121,"column":72,"endLine":125,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function inline__P153642_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P153642, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, -} } - - - - - -function inline__P153665(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.dt___153668 = undefined; - s.s___153680 = undefined; - s.unnamed4604___U2 = undefined; - s.unnamed4605___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___153668 = (r0); - s.tmp_0 = PhysicsEngine__C144993_v4_2_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.dt___153668; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C144993_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__P145239_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.s___153680 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed4604___U2 = (r0); - s.unnamed4605___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed4605___U3; - r0 = pxsim_Array__length(s.unnamed4604___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed4604___U2, s.unnamed4605___U3); - s.s___153680 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___153680; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___153668; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - 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.pc = 5; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.pc = 5; return s.tmp_2;; } - else { s.pc = 5; return s.tmp_2; } - } - case 5: - r0 = s.retval; - r0 = (s.unnamed4605___U3 + 1); - s.unnamed4605___U3 = (r0); - { step = 1; continue; } - case 2: - s.unnamed4604___U2 = (undefined); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P153665.info = {"start":4723,"length":328,"line":130,"column":69,"endLine":139,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function inline__P153665_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P153665, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - dt___153668: undefined, - s___153680: undefined, - unnamed4604___U2: undefined, - unnamed4605___U3: undefined, -} } - - - - - -function inline__P153693(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = scene_Scene_render__P145299_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P153693.info = {"start":5226,"length":109,"line":145,"column":76,"endLine":148,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function inline__P153693_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P153693, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function inline__P153701(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.tmp_0 = r0 = globals.stats___145368; - 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___144426; - 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___144426; - if ((globals.control_EventContext_lastStats___144425) && (globals.control_EventContext_lastStats___144425).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___144425); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___144425) + ""; } - 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.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___145366); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C144993_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C144993_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__P145787_mk(s); - s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P144613_mk(s); - s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P153701.info = {"start":5452,"length":504,"line":150,"column":80,"endLine":162,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} - -function inline__P153701_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P153701, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, -} } - - - - - -function inline__P153730(s) { -let r0 = s.r0, 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 = 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.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P153730.info = {"start":6174,"length":12,"line":166,"column":39,"endLine":166,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} - -function inline__P153730_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P153730, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function game_consoleOverlay_draw__P145787(s) { -let r0 = s.r0, 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.height___153780 = undefined; - s.top___153785 = undefined; - s.i___153791 = undefined; - s.t___153805 = undefined; - s.tOff___153812 = undefined; - s.tab___153814 = undefined; - s.unnamed4608___U6 = undefined; - s.unnamed4609___U7 = undefined; - s.padding___153816 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___145747); + s.height___28601 = undefined; + s.top___28606 = undefined; + s.i___28612 = undefined; + s.t___28625 = undefined; + s.tOff___28632 = undefined; + s.tab___28634 = undefined; + s.unnamed250___U6 = undefined; + s.unnamed251___U7 = undefined; + s.padding___28636 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___22738); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -13421,7 +12781,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(globals.instance___145670); + r0 = pxsim_numops_toBoolDecr(globals.instance___22692); s.tmp_4 = r0; r0 = pxsim_Boolean__bang(s.tmp_4); s.tmp_3 = r0; @@ -13437,23 +12797,23 @@ switch (step) { case 3: case 4: s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___145755; + s.tmp_7.arg0 = globals.consoleFont___22746; 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.pc = 14; return s.tmp_7; } + else { s.callLocIdx = 1108; s.pc = 14; return s.tmp_7; } } case 14: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_6 + 2); - s.height___153780 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___145368); + s.height___28601 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___21093); if (!r0) { step = 5; continue; } - r0 = s.height___153780; + r0 = s.height___28601; { step = 6; continue; } case 5: r0 = 0; @@ -13461,17 +12821,17 @@ switch (step) { // jmp value (already in r0) s.tmp_0 = r0; r0 = (2 + s.tmp_0); - s.top___153785 = (r0); - s.i___153791 = (0); + s.top___28606 = (r0); + s.i___28612 = (0); case 7: - s.tmp_1 = r0 = s.i___153791; - r0 = pxsim_Array__length(globals.consoleStrings___145747); + s.tmp_1 = r0 = s.i___28612; + r0 = pxsim_Array__length(globals.consoleStrings___22738); 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___145747, s.i___153791); + r0 = pxsim_Array__getAt(globals.consoleStrings___22738, s.i___28612); s.tmp_5 = r0; r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); s.tmp_4 = r0; @@ -13479,50 +12839,50 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 10; continue; } - s.tmp_6 = helpers_stringSplit__P144196_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___145747, s.i___153791); + s.tmp_6 = helpers_stringSplit__P18681_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___22738, s.i___28612); s.tmp_6.arg0 = r0; s.tmp_6.arg1 = "\t"; s.tmp_6.arg2 = undefined; - s.pc = 15; return s.tmp_6; + s.callLocIdx = 1109; s.pc = 15; return s.tmp_6; case 15: r0 = s.retval; - s.t___153805 = (r0); - s.tOff___153812 = (0); - s.tab___153814 = (undefined); - s.unnamed4608___U6 = (s.t___153805); - s.unnamed4609___U7 = (0); + s.t___28625 = (r0); + s.tOff___28632 = (0); + s.tab___28634 = (undefined); + s.unnamed250___U6 = (s.t___28625); + s.unnamed251___U7 = (0); case 8: - s.tmp_0 = r0 = s.unnamed4609___U7; - r0 = pxsim_Array__length(s.unnamed4608___U6); + s.tmp_0 = r0 = s.unnamed251___U7; + r0 = pxsim_Array__length(s.unnamed250___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed4608___U6, s.unnamed4609___U7); - s.tab___153814 = (r0); - s.tmp_2 = r0 = globals.tabSize___145749; - s.tmp_5 = r0 = s.tOff___153812; - r0 = pxsim_String_.length(s.tab___153814); + r0 = pxsim_Array__getAt(s.unnamed250___U6, s.unnamed251___U7); + s.tab___28634 = (r0); + s.tmp_2 = r0 = globals.tabSize___22740; + s.tmp_5 = r0 = s.tOff___28632; + r0 = pxsim_String_.length(s.tab___28634); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___145749); + r0 = (s.tmp_4 % globals.tabSize___22740); s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); - s.padding___153816 = (r0); - s.tmp_0 = helpers_imagePrint__P144656_mk(s); - s.tmp_0.arg0 = globals.screen___144693; - s.tmp_0.arg1 = s.tab___153814; - s.tmp_2 = r0 = s.tOff___153812; + s.padding___28636 = (r0); + s.tmp_0 = helpers_imagePrint__P20324_mk(s); + s.tmp_0.arg0 = globals.screen___20366; + s.tmp_0.arg1 = s.tab___28634; + s.tmp_2 = r0 = s.tOff___28632; s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___145755; + s.tmp_4.arg0 = globals.consoleFont___22746; 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.pc = 17; return s.tmp_4; } + else { s.callLocIdx = 1110; s.pc = 17; return s.tmp_4; } } case 17: r0 = s.retval; @@ -13531,50 +12891,50 @@ switch (step) { s.tmp_1 = r0; r0 = (4 + s.tmp_1); s.tmp_0.arg2 = r0; - s.tmp_5 = r0 = s.top___153785; - r0 = (s.i___153791 * s.height___153780); + s.tmp_5 = r0 = s.top___28606; + r0 = (s.i___28612 * s.height___28601); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___145746; - s.tmp_0.arg5 = globals.consoleFont___145755; + s.tmp_0.arg4 = globals.consoleColor___22737; + s.tmp_0.arg5 = globals.consoleFont___22746; s.tmp_0.arg6 = undefined; - s.pc = 16; return s.tmp_0; + s.callLocIdx = 1111; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = r0 = s.tOff___153812; - r0 = pxsim_String_.length(s.tab___153814); + s.tmp_0 = r0 = s.tOff___28632; + r0 = pxsim_String_.length(s.tab___28634); s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___153816); + r0 = (s.tmp_2 + s.padding___28636); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.tOff___153812 = (r0); - r0 = (s.unnamed4609___U7 + 1); - s.unnamed4609___U7 = (r0); + s.tOff___28632 = (r0); + r0 = (s.unnamed251___U7 + 1); + s.unnamed251___U7 = (r0); { step = 8; continue; } case 9: - s.unnamed4608___U6 = (undefined); + s.unnamed250___U6 = (undefined); { step = 11; continue; } case 10: - s.tmp_0 = helpers_imagePrint__P144656_mk(s); - s.tmp_0.arg0 = globals.screen___144693; - r0 = pxsim_Array__getAt(globals.consoleStrings___145747, s.i___153791); + s.tmp_0 = helpers_imagePrint__P20324_mk(s); + s.tmp_0.arg0 = globals.screen___20366; + r0 = pxsim_Array__getAt(globals.consoleStrings___22738, s.i___28612); s.tmp_0.arg1 = r0; s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___153785; - r0 = (s.i___153791 * s.height___153780); + s.tmp_1 = r0 = s.top___28606; + r0 = (s.i___28612 * s.height___28601); s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___145746; - s.tmp_0.arg5 = globals.consoleFont___145755; + s.tmp_0.arg4 = globals.consoleColor___22737; + s.tmp_0.arg5 = globals.consoleFont___22746; s.tmp_0.arg6 = undefined; - s.pc = 18; return s.tmp_0; + s.callLocIdx = 1112; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 11: - r0 = (s.i___153791 + 1); - s.i___153791 = (r0); + r0 = (s.i___28612 + 1); + s.i___28612 = (r0); { step = 7; continue; } case 12: case 13: @@ -13582,12 +12942,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_draw__P145787.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} +game_consoleOverlay_draw__P21218.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function game_consoleOverlay_draw__P145787_mk(s) { +function game_consoleOverlay_draw__P21218_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_draw__P145787, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P21218, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13597,22 +12957,22 @@ function game_consoleOverlay_draw__P145787_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - height___153780: undefined, - top___153785: undefined, - i___153791: undefined, - t___153805: undefined, - tOff___153812: undefined, - tab___153814: undefined, - unnamed4608___U6: undefined, - unnamed4609___U7: undefined, - padding___153816: undefined, + height___28601: undefined, + top___28606: undefined, + i___28612: undefined, + t___28625: undefined, + tOff___28632: undefined, + tab___28634: undefined, + unnamed250___U6: undefined, + unnamed251___U7: undefined, + padding___28636: undefined, } } -function scene_systemMenu_isVisible__P145705(s) { +function scene_systemMenu_isVisible__P21199(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13622,7 +12982,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___145670); + r0 = pxsim_numops_toBoolDecr(globals.instance___22692); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -13632,12 +12992,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_isVisible__P145705.info = {"start":12708,"length":62,"line":385,"column":4,"endLine":387,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} +scene_systemMenu_isVisible__P21199.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function scene_systemMenu_isVisible__P145705_mk(s) { +function scene_systemMenu_isVisible__P21199_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_isVisible__P145705, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P21199, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13648,7 +13008,7 @@ function scene_systemMenu_isVisible__P145705_mk(s) { -function scene_Scene_render__P145299(s) { +function scene_Scene_render__P21010(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13658,15 +13018,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___153932 = undefined; - s.unnamed4606___U1 = undefined; - s.unnamed4607___U2 = undefined; + s.s___28750 = undefined; + s.unnamed248___U1 = undefined; + s.unnamed249___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C145293_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C20983_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -13697,18 +13057,18 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 5; continue; } - s.tmp_3 = scene_Scene_render__P145299_mk(s); + s.tmp_3 = scene_Scene_render__P21010_mk(s); r0 = s.arg0.fields["previousScene"]; s.tmp_3.arg0 = r0; - s.pc = 12; return s.tmp_3; + s.callLocIdx = 903; s.pc = 12; return s.tmp_3; case 12: r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_0 = scene_Background_draw__P145162_mk(s); + s.tmp_0 = scene_Background_draw__P20838_mk(s); r0 = s.arg0.fields["background"]; s.tmp_0.arg0 = r0; - s.pc = 13; return s.tmp_0; + s.callLocIdx = 904; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 6: @@ -13718,11 +13078,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P144182_mk(s); + s.tmp_2 = helpers_arraySort__P18667_mk(s); r0 = s.arg0.fields["allSprites"]; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P153908; - s.pc = 14; return s.tmp_2; + s.tmp_2.arg1 = inline__P28727; + s.callLocIdx = 909; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -13733,38 +13093,38 @@ switch (step) { r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); case 7: case 8: - s.s___153932 = (undefined); + s.s___28750 = (undefined); r0 = s.arg0.fields["allSprites"]; - s.unnamed4606___U1 = (r0); - s.unnamed4607___U2 = (0); + s.unnamed248___U1 = (r0); + s.unnamed249___U2 = (0); case 9: - s.tmp_0 = r0 = s.unnamed4607___U2; - r0 = pxsim_Array__length(s.unnamed4606___U1); + s.tmp_0 = r0 = s.unnamed249___U2; + r0 = pxsim_Array__length(s.unnamed248___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed4606___U1, s.unnamed4607___U2); - s.s___153932 = (r0); + r0 = pxsim_Array__getAt(s.unnamed248___U1, s.unnamed249___U2); + s.s___28750 = (r0); s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___153932; + s.tmp_2.arg0 = s.s___28750; 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.pc = 15; return s.tmp_2; + s.callLocIdx = 910; 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.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.pc = 15; return s.tmp_2;; } - else { s.pc = 15; return s.tmp_2; } + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__draw"], 2); s.callLocIdx = 910; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 910; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 910; s.pc = 15; return s.tmp_2; } } case 15: r0 = s.retval; - r0 = (s.unnamed4607___U2 + 1); - s.unnamed4607___U2 = (r0); + r0 = (s.unnamed249___U2 + 1); + s.unnamed249___U2 = (r0); { step = 9; continue; } case 10: - s.unnamed4606___U1 = (undefined); + s.unnamed248___U1 = (undefined); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; @@ -13776,21 +13136,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_render__P145299.info = {"start":7397,"length":917,"line":208,"column":8,"endLine":232,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} +scene_Scene_render__P21010.info = {"start":7844,"length":917,"line":221,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function scene_Scene_render__P145299_mk(s) { +function scene_Scene_render__P21010_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P145299, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P21010, depth: s.depth + 1, pc: 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___153932: undefined, - unnamed4606___U1: undefined, - unnamed4607___U2: undefined, + s___28750: undefined, + unnamed248___U1: undefined, + unnamed249___U2: undefined, arg0: undefined, } } @@ -13798,7 +13158,7 @@ function scene_Scene_render__P145299_mk(s) { -function inline__P153908(s) { +function inline__P28727(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13821,7 +13181,7 @@ switch (step) { 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.pc = 3; return s.tmp_2; } + else { s.callLocIdx = 905; s.pc = 3; return s.tmp_2; } } case 3: r0 = s.retval; @@ -13834,7 +13194,7 @@ switch (step) { 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.pc = 4; return s.tmp_4; } + else { s.callLocIdx = 906; s.pc = 4; return s.tmp_4; } } case 4: r0 = s.retval; @@ -13854,7 +13214,7 @@ switch (step) { 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.pc = 5; return s.tmp_6; } + else { s.callLocIdx = 907; s.pc = 5; return s.tmp_6; } } case 5: r0 = s.retval; @@ -13867,7 +13227,7 @@ switch (step) { 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.pc = 6; return s.tmp_8; } + else { s.callLocIdx = 908; s.pc = 6; return s.tmp_8; } } case 6: r0 = s.retval; @@ -13880,12 +13240,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P153908.info = {"start":7975,"length":52,"line":222,"column":37,"endLine":222,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +inline__P28727.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} -function inline__P153908_mk(s) { +function inline__P28727_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P153908, depth: s.depth + 1, + parent: s, fn: inline__P28727, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13905,7 +13265,7 @@ function inline__P153908_mk(s) { -function scene_Background_draw__P145162(s) { +function scene_Background_draw__P20838(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13920,31 +13280,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C145157_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C20829_VT)) failedCast(r0); r0 = s.arg0.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___144693, s.tmp_0); + r0 = pxsim_ImageMethods.fill(globals.screen___20366, s.tmp_0); r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["_image"]; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___144693, s.tmp_1, 0, 0); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___20366, 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__P153966); + r0 = pxsim_pxtcore_mkAction(1, inline__P28782); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P144186_mk(s); + s.tmp_2 = helpers_arrayForEach__P18671_mk(s); r0 = s.arg0.fields["_layers"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.pc = 5; return s.tmp_2; + s.callLocIdx = 770; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -13953,12 +13313,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Background_draw__P145162.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +scene_Background_draw__P20838.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__P145162_mk(s) { +function scene_Background_draw__P20838_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P145162, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P20838, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13970,7 +13330,7 @@ function scene_Background_draw__P145162_mk(s) { -function inline__P153966(s) { +function inline__P28782(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13980,8 +13340,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___153968 = undefined; - s.oy___153981 = undefined; + s.ox___28784 = undefined; + s.oy___28795 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -13996,7 +13356,7 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_2); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); - s.ox___153968 = (r0); + s.ox___28784 = (r0); r0 = s.caps[0].fields["camera"]; r0 = r0.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -14007,31 +13367,31 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_2); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); - s.oy___153981 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P145165_mk(s); + s.oy___28795 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P20847_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___153968; - s.tmp_0.arg2 = s.oy___153981; - s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.ox___28784; + s.tmp_0.arg2 = s.oy___28795; + s.callLocIdx = 769; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P153966.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +inline__P28782.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} -function inline__P153966_mk(s) { +function inline__P28782_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P153966, depth: s.depth + 1, + parent: s, fn: inline__P28782, depth: s.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___153968: undefined, - oy___153981: undefined, + ox___28784: undefined, + oy___28795: undefined, arg0: undefined, } } @@ -14039,7 +13399,7 @@ function inline__P153966_mk(s) { -function scene_BackgroundLayer_draw__P145165(s) { +function scene_BackgroundLayer_draw__P20847(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14049,19 +13409,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___153999 = undefined; - s.h___154002 = undefined; - s.pw___154005 = undefined; - s.ph___154010 = undefined; - s.rx___154019 = undefined; - s.ry___154022 = undefined; - s.y___154096 = undefined; - s.py___154097 = undefined; - s.dh___154106 = undefined; - s.x___154114 = undefined; - s.rxl___154115 = undefined; - s.px___154121 = undefined; - s.dw___154125 = undefined; + s.w___28813 = undefined; + s.h___28816 = undefined; + s.pw___28819 = undefined; + s.ph___28823 = undefined; + s.rx___28832 = undefined; + s.ry___28835 = undefined; + s.y___28904 = undefined; + s.py___28905 = undefined; + s.dh___28914 = undefined; + s.x___28922 = undefined; + s.rxl___28923 = undefined; + s.px___28929 = undefined; + s.dw___28933 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -14069,20 +13429,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C145164_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___144693); - s.w___153999 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___144693); - s.h___154002 = (r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C20839_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___20366); + s.w___28813 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___20366); + s.h___28816 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___154005 = (r0); + s.pw___28819 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___154010 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___154005); + s.ph___28823 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___28819); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -14091,7 +13451,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___154010); + r0 = pxsim_numops_toBoolDecr(s.ph___28823); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); case 2: @@ -14103,9 +13463,9 @@ switch (step) { case 3: case 4: r0 = (0 - s.arg1); - s.rx___154019 = (r0); + s.rx___28832 = (r0); r0 = (0 - s.arg2); - s.ry___154022 = (r0); + s.ry___28835 = (r0); r0 = s.arg0.fields["alignX"]; s.tmp_0 = r0; r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); @@ -14115,20 +13475,20 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 5: - s.tmp_1 = r0 = s.rx___154019; - r0 = (s.w___153999 + s.pw___154005); + s.tmp_1 = r0 = s.rx___28832; + r0 = (s.w___28813 + s.pw___28819); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); - s.rx___154019 = (r0); + s.rx___28832 = (r0); { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.rx___154019; - r0 = (s.w___153999 + s.pw___154005); + s.tmp_0 = r0 = s.rx___28832; + r0 = (s.w___28813 + s.pw___28819); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.rx___154019 = (r0); + s.rx___28832 = (r0); case 7: r0 = s.arg0.fields["alignY"]; s.tmp_0 = r0; @@ -14139,120 +13499,120 @@ switch (step) { r0 = s.tmp_0; { step = 10; continue; } case 8: - s.tmp_1 = r0 = s.ry___154022; - r0 = (s.h___154002 + s.ph___154010); + s.tmp_1 = r0 = s.ry___28835; + r0 = (s.h___28816 + s.ph___28823); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); - s.ry___154022 = (r0); + s.ry___28835 = (r0); { step = 10; continue; } case 9: - s.tmp_0 = r0 = s.ry___154022; - r0 = (s.h___154002 + s.ph___154010); + s.tmp_0 = r0 = s.ry___28835; + r0 = (s.h___28816 + s.ph___28823); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.ry___154022 = (r0); + s.ry___28835 = (r0); case 10: - r0 = (s.rx___154019 % s.w___153999); - s.rx___154019 = (r0); - r0 = (s.rx___154019 < 0); + r0 = (s.rx___28832 % s.w___28813); + s.rx___28832 = (r0); + r0 = (s.rx___28832 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = (s.rx___154019 + s.w___153999); - s.rx___154019 = (r0); + r0 = (s.rx___28832 + s.w___28813); + s.rx___28832 = (r0); case 11: case 12: - r0 = (s.ry___154022 % s.h___154002); - s.ry___154022 = (r0); - r0 = (s.ry___154022 < 0); + r0 = (s.ry___28835 % s.h___28816); + s.ry___28835 = (r0); + r0 = (s.ry___28835 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = (s.ry___154022 + s.h___154002); - s.ry___154022 = (r0); + r0 = (s.ry___28835 + s.h___28816); + s.ry___28835 = (r0); case 13: case 14: - r0 = pxsim.Math_.floor(s.rx___154019); - s.rx___154019 = (r0); - r0 = pxsim.Math_.floor(s.ry___154022); - s.ry___154022 = (r0); - s.y___154096 = (0); - s.py___154097 = (0); + r0 = pxsim.Math_.floor(s.rx___28832); + s.rx___28832 = (r0); + r0 = pxsim.Math_.floor(s.ry___28835); + s.ry___28835 = (r0); + s.y___28904 = (0); + s.py___28905 = (0); case 15: - r0 = (s.y___154096 < s.h___154002); + r0 = (s.y___28904 < s.h___28816); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = (s.y___154096 % s.ph___154010); - s.py___154097 = (r0); - s.tmp_0 = Math_min__P144205_mk(s); - r0 = (s.ph___154010 - s.py___154097); + r0 = (s.y___28904 % s.ph___28823); + s.py___28905 = (r0); + s.tmp_0 = Math_min__P18690_mk(s); + r0 = (s.ph___28823 - s.py___28905); s.tmp_0.arg0 = r0; - r0 = (s.h___154002 - s.ry___154022); + r0 = (s.h___28816 - s.ry___28835); s.tmp_0.arg1 = r0; - s.pc = 24; return s.tmp_0; + s.callLocIdx = 772; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.dh___154106 = (r0); - s.x___154114 = (0); - s.rxl___154115 = (s.rx___154019); + s.dh___28914 = (r0); + s.x___28922 = (0); + s.rxl___28923 = (s.rx___28832); case 16: - r0 = (s.x___154114 < s.w___153999); + r0 = (s.x___28922 < s.w___28813); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - r0 = (s.x___154114 % s.pw___154005); - s.px___154121 = (r0); - s.tmp_0 = Math_min__P144205_mk(s); - r0 = (s.pw___154005 - s.px___154121); + r0 = (s.x___28922 % s.pw___28819); + s.px___28929 = (r0); + s.tmp_0 = Math_min__P18690_mk(s); + r0 = (s.pw___28819 - s.px___28929); s.tmp_0.arg0 = r0; - r0 = (s.w___153999 - s.rxl___154115); + r0 = (s.w___28813 - s.rxl___28923); s.tmp_0.arg1 = r0; - s.pc = 25; return s.tmp_0; + s.callLocIdx = 773; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.dw___154125 = (r0); + s.dw___28933 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___144693, s.tmp_0, s.rxl___154115, s.ry___154022); - r0 = (s.rxl___154115 + s.dw___154125); + r0 = pxsim_ImageMethods.drawImage(globals.screen___20366, s.tmp_0, s.rxl___28923, s.ry___28835); + r0 = (s.rxl___28923 + s.dw___28933); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___153999); - s.rxl___154115 = (r0); + r0 = (s.tmp_0 % s.w___28813); + s.rxl___28923 = (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___154125; + r0 = s.dw___28933; { step = 18; continue; } case 17: - r0 = s.w___153999; + r0 = s.w___28813; case 18: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.x___154114 + s.tmp_1); - s.x___154114 = (r0); + r0 = (s.x___28922 + s.tmp_1); + s.x___28922 = (r0); { step = 16; continue; } case 19: - r0 = (s.ry___154022 + s.dh___154106); + r0 = (s.ry___28835 + s.dh___28914); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___154002); - s.ry___154022 = (r0); + r0 = (s.tmp_0 % s.h___28816); + s.ry___28835 = (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___154106; + r0 = s.dh___28914; { step = 21; continue; } case 20: - r0 = s.h___154002; + r0 = s.h___28816; case 21: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.y___154096 + s.tmp_1); - s.y___154096 = (r0); + r0 = (s.y___28904 + s.tmp_1); + s.y___28904 = (r0); { step = 15; continue; } case 22: case 23: @@ -14260,30 +13620,30 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P145165.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"]} +scene_BackgroundLayer_draw__P20847.info = {"start":3063,"length":1537,"line":99,"column":8,"endLine":144,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this","offsetX","offsetY"]} -function scene_BackgroundLayer_draw__P145165_mk(s) { +function scene_BackgroundLayer_draw__P20847_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P145165, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P20847, depth: s.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___153999: undefined, - h___154002: undefined, - pw___154005: undefined, - ph___154010: undefined, - rx___154019: undefined, - ry___154022: undefined, - y___154096: undefined, - py___154097: undefined, - dh___154106: undefined, - x___154114: undefined, - rxl___154115: undefined, - px___154121: undefined, - dw___154125: undefined, + w___28813: undefined, + h___28816: undefined, + pw___28819: undefined, + ph___28823: undefined, + rx___28832: undefined, + ry___28835: undefined, + y___28904: undefined, + py___28905: undefined, + dh___28914: undefined, + x___28922: undefined, + rxl___28923: undefined, + px___28929: undefined, + dw___28933: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -14293,7 +13653,7 @@ function scene_BackgroundLayer_draw__P145165_mk(s) { -function scene_Camera_update__P145239(s) { +function scene_Camera_update__P20940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14303,78 +13663,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___154210 = undefined; - s.percentComplete___154224 = undefined; - s.damp___154231 = undefined; - s.f___154240 = undefined; - s.x___154246 = undefined; - s.y___154253 = undefined; + s.elapsed___29014 = undefined; + s.percentComplete___29028 = undefined; + s.damp___29035 = undefined; + s.f___29044 = undefined; + s.x___29050 = undefined; + s.y___29057 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C145233_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C20924_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__P145235_mk(s); + s.tmp_1 = scene_Camera_offsetX__P20930_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_3 = Sprite_x__P144885_mk(s); + s.tmp_3 = Sprite_x__P20589_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_3.arg0 = r0; - s.pc = 10; return s.tmp_3; + s.callLocIdx = 864; s.pc = 10; return s.tmp_3; case 10: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); 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.pc = 9; return s.tmp_1; + s.callLocIdx = 865; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P145237_mk(s); + s.tmp_0 = scene_Camera_offsetY__P20932_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P144887_mk(s); + s.tmp_2 = Sprite_y__P20591_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_2.arg0 = r0; - s.pc = 12; return s.tmp_2; + s.callLocIdx = 866; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___144693); + r0 = pxsim_ImageMethods.height(globals.screen___20366); 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.pc = 11; return s.tmp_0; + s.callLocIdx = 867; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; case 1: case 2: - s.tmp_0 = scene_Camera_offsetX__P145235_mk(s); + s.tmp_0 = scene_Camera_offsetX__P20930_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.pc = 13; return s.tmp_0; + s.callLocIdx = 869; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P145237_mk(s); + s.tmp_0 = scene_Camera_offsetY__P20932_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.pc = 14; return s.tmp_0; + s.callLocIdx = 871; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -14396,10 +13756,10 @@ switch (step) { r0 = s.arg0.fields["shakeStartTime"]; s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); - s.elapsed___154210 = (r0); + s.elapsed___29014 = (r0); r0 = s.arg0.fields["shakeDuration"]; s.tmp_1 = r0; - r0 = (s.elapsed___154210 >= s.tmp_1); + r0 = (s.elapsed___29014 >= s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } @@ -14408,49 +13768,49 @@ switch (step) { case 3: r0 = s.arg0.fields["shakeDuration"]; s.tmp_0 = r0; - r0 = (s.elapsed___154210 / s.tmp_0); - s.percentComplete___154224 = (r0); - s.damp___154231 = (1); - r0 = (s.percentComplete___154224 >= 0.75); + r0 = (s.elapsed___29014 / s.tmp_0); + s.percentComplete___29028 = (r0); + s.damp___29035 = (1); + r0 = (s.percentComplete___29028 >= 0.75); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P144204_mk(s); + s.tmp_1 = Math_max__P18689_mk(s); s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___154224); + r0 = (1 - s.percentComplete___29028); s.tmp_1.arg1 = r0; - s.pc = 15; return s.tmp_1; + s.callLocIdx = 874; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.damp___154231 = (r0); + s.damp___29035 = (r0); case 4: case 5: r0 = s.arg0.fields["shakeAmplitude"]; s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___154231); - s.f___154240 = (r0); + r0 = (s.tmp_0 * s.damp___29035); + s.f___29044 = (r0); r0 = pxsim.Math_.random(); s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___154240); + r0 = (s.tmp_1 * s.f___29044); s.tmp_0 = r0; r0 = (s.tmp_0 >> 0); - s.x___154246 = (r0); + s.x___29050 = (r0); r0 = pxsim.Math_.random(); s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___154240); + r0 = (s.tmp_1 * s.f___29044); s.tmp_0 = r0; r0 = (s.tmp_0 >> 0); - s.y___154253 = (r0); + s.y___29057 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["drawOffsetX"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___154246); + r0 = (s.tmp_2 + s.x___29050); 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___154253); + r0 = (s.tmp_2 + s.y___29057); s.tmp_1 = r0; r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); case 6: @@ -14460,12 +13820,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_update__P145239.info = {"start":1816,"length":1397,"line":58,"column":8,"endLine":93,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +scene_Camera_update__P20940.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} -function scene_Camera_update__P145239_mk(s) { +function scene_Camera_update__P20940_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P145239, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P20940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14473,12 +13833,12 @@ function scene_Camera_update__P145239_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - elapsed___154210: undefined, - percentComplete___154224: undefined, - damp___154231: undefined, - f___154240: undefined, - x___154246: undefined, - y___154253: undefined, + elapsed___29014: undefined, + percentComplete___29028: undefined, + damp___29035: undefined, + f___29044: undefined, + x___29050: undefined, + y___29057: undefined, arg0: undefined, } } @@ -14486,7 +13846,7 @@ function scene_Camera_update__P145239_mk(s) { -function scene_Camera_offsetY__P145237(s) { +function scene_Camera_offsetY__P20932(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14496,27 +13856,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___154272 = undefined; + s.scene___29076 = 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__C145233_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 5; return s.tmp_0; + if (!checkSubtype(r0, scene_Camera__C20924_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 861; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.scene___154272 = (r0); - r0 = s.scene___154272.fields["tileMap"]; + s.scene___29076 = (r0); + r0 = s.scene___29076.fields["tileMap"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___154272.fields["tileMap"]; + r0 = s.scene___29076.fields["tileMap"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_map"]; s.tmp_5 = r0; @@ -14533,11 +13893,11 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 3; continue; } s.tmp_7 = r0 = s.arg0; - s.tmp_9 = tiles_TileMap_offsetY__P145202_mk(s); - r0 = s.scene___154272.fields["tileMap"]; + s.tmp_9 = tiles_TileMap_offsetY__P20886_mk(s); + r0 = s.scene___29076.fields["tileMap"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = s.arg1; - s.pc = 6; return s.tmp_9; + s.callLocIdx = 863; s.pc = 6; return s.tmp_9; case 6: r0 = s.retval; s.tmp_8 = r0; @@ -14550,12 +13910,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P145237.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_Camera_offsetY__P20932.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} -function scene_Camera_offsetY__P145237_mk(s) { +function scene_Camera_offsetY__P20932_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P145237, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P20932, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14567,7 +13927,7 @@ function scene_Camera_offsetY__P145237_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - scene___154272: undefined, + scene___29076: undefined, arg0: undefined, arg1: undefined, } } @@ -14576,7 +13936,7 @@ function scene_Camera_offsetY__P145237_mk(s) { -function tiles_TileMap_enabled__P145207(s) { +function tiles_TileMap_enabled__P20891(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14591,7 +13951,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -14604,13 +13964,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_enabled__P145207.info = {"start":6919,"length":66,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} -tiles_TileMap_enabled__P145207.isGetter = true; +tiles_TileMap_enabled__P20891.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__P20891.isGetter = true; -function tiles_TileMap_enabled__P145207_mk(s) { +function tiles_TileMap_enabled__P20891_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P145207, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P20891, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14623,7 +13983,7 @@ function tiles_TileMap_enabled__P145207_mk(s) { -function tiles_TileMap_offsetY__P145202(s) { +function tiles_TileMap_offsetY__P20886(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14639,38 +13999,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P144201_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P18686_mk(s); s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P144204_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P145204_mk(s); + s.tmp_1 = Math_max__P18689_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P20888_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 3; return s.tmp_3; + s.callLocIdx = 793; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___144693); + r0 = pxsim_ImageMethods.height(globals.screen___20366); s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.pc = 2; return s.tmp_1; + s.callLocIdx = 794; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; s.tmp_0.arg2 = s.arg1; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 795; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P145202.info = {"start":6372,"length":123,"line":229,"column":8,"endLine":231,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +tiles_TileMap_offsetY__P20886.info = {"start":6560,"length":123,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} -function tiles_TileMap_offsetY__P145202_mk(s) { +function tiles_TileMap_offsetY__P20886_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P145202, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P20886, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14685,7 +14045,7 @@ function tiles_TileMap_offsetY__P145202_mk(s) { -function tiles_TileMap_areaHeight__P145204(s) { +function tiles_TileMap_areaHeight__P20888(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14700,7 +14060,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -14722,12 +14082,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P145204.info = {"start":6606,"length":93,"line":237,"column":8,"endLine":239,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +tiles_TileMap_areaHeight__P20888.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function tiles_TileMap_areaHeight__P145204_mk(s) { +function tiles_TileMap_areaHeight__P20888_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P145204, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P20888, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14741,7 +14101,7 @@ function tiles_TileMap_areaHeight__P145204_mk(s) { -function tiles_TileMap_scale__P145198(s) { +function tiles_TileMapData_height__P20871(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14756,53 +14116,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMap_scale__P145198.info = {"start":5937,"length":55,"line":210,"column":8,"endLine":212,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMap_scale__P145198.isGetter = true; - -function tiles_TileMap_scale__P145198_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_scale__P145198, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function tiles_TileMapData_height__P145186(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C145184_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C20868_VT)) failedCast(r0); r0 = s.arg0.fields["_height"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_height__P145186.info = {"start":3546,"length":65,"line":129,"column":8,"endLine":131,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} -tiles_TileMapData_height__P145186.isGetter = true; +tiles_TileMapData_height__P20871.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__P20871.isGetter = true; -function tiles_TileMapData_height__P145186_mk(s) { +function tiles_TileMapData_height__P20871_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P145186, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_height__P20871, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -14811,7 +14136,7 @@ function tiles_TileMapData_height__P145186_mk(s) { -function scene_Camera_offsetX__P145235(s) { +function scene_Camera_offsetX__P20930(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14821,27 +14146,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___154315 = undefined; + s.scene___29124 = 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__C145233_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 5; return s.tmp_0; + if (!checkSubtype(r0, scene_Camera__C20924_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 858; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.scene___154315 = (r0); - r0 = s.scene___154315.fields["tileMap"]; + s.scene___29124 = (r0); + r0 = s.scene___29124.fields["tileMap"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___154315.fields["tileMap"]; + r0 = s.scene___29124.fields["tileMap"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_map"]; s.tmp_5 = r0; @@ -14858,11 +14183,11 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 3; continue; } s.tmp_7 = r0 = s.arg0; - s.tmp_9 = tiles_TileMap_offsetX__P145201_mk(s); - r0 = s.scene___154315.fields["tileMap"]; + s.tmp_9 = tiles_TileMap_offsetX__P20885_mk(s); + r0 = s.scene___29124.fields["tileMap"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = s.arg1; - s.pc = 6; return s.tmp_9; + s.callLocIdx = 860; s.pc = 6; return s.tmp_9; case 6: r0 = s.retval; s.tmp_8 = r0; @@ -14875,12 +14200,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P145235.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +scene_Camera_offsetX__P20930.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 scene_Camera_offsetX__P145235_mk(s) { +function scene_Camera_offsetX__P20930_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P145235, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P20930, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14892,7 +14217,7 @@ function scene_Camera_offsetX__P145235_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - scene___154315: undefined, + scene___29124: undefined, arg0: undefined, arg1: undefined, } } @@ -14901,7 +14226,7 @@ function scene_Camera_offsetX__P145235_mk(s) { -function tiles_TileMap_offsetX__P145201(s) { +function tiles_TileMap_offsetX__P20885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14917,38 +14242,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P144201_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P18686_mk(s); s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P144204_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P145203_mk(s); + s.tmp_1 = Math_max__P18689_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P20887_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 3; return s.tmp_3; + s.callLocIdx = 790; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.pc = 2; return s.tmp_1; + s.callLocIdx = 791; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; s.tmp_0.arg2 = s.arg1; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 792; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetX__P145201.info = {"start":6241,"length":121,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +tiles_TileMap_offsetX__P20885.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 tiles_TileMap_offsetX__P145201_mk(s) { +function tiles_TileMap_offsetX__P20885_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P145201, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P20885, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14963,7 +14288,7 @@ function tiles_TileMap_offsetX__P145201_mk(s) { -function tiles_TileMap_areaWidth__P145203(s) { +function tiles_TileMap_areaWidth__P20887(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14978,7 +14303,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -15000,12 +14325,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P145203.info = {"start":6505,"length":91,"line":233,"column":8,"endLine":235,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +tiles_TileMap_areaWidth__P20887.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} -function tiles_TileMap_areaWidth__P145203_mk(s) { +function tiles_TileMap_areaWidth__P20887_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P145203, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P20887, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15019,7 +14344,7 @@ function tiles_TileMap_areaWidth__P145203_mk(s) { -function tiles_TileMapData_width__P145185(s) { +function tiles_TileMapData_width__P20870(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15034,18 +14359,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C145184_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C20868_VT)) failedCast(r0); r0 = s.arg0.fields["_width"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_width__P145185.info = {"start":3473,"length":63,"line":125,"column":8,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} -tiles_TileMapData_width__P145185.isGetter = true; +tiles_TileMapData_width__P20870.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__P20870.isGetter = true; -function tiles_TileMapData_width__P145185_mk(s) { +function tiles_TileMapData_width__P20870_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_width__P145185, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P20870, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -15054,7 +14379,7 @@ function tiles_TileMapData_width__P145185_mk(s) { -function PhysicsEngine_move__P144998(s) { +function PhysicsEngine_move__P20729(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15070,17 +14395,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C144993_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C20723_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_move__P144998.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +PhysicsEngine_move__P20729.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 PhysicsEngine_move__P144998_mk(s) { +function PhysicsEngine_move__P20729_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P144998, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P20729, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -15090,7 +14415,7 @@ function PhysicsEngine_move__P144998_mk(s) { -function PhysicsEngine_draw__P144997(s) { +function PhysicsEngine_draw__P20728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15105,17 +14430,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C144993_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C20723_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_draw__P144997.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +PhysicsEngine_draw__P20728.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function PhysicsEngine_draw__P144997_mk(s) { +function PhysicsEngine_draw__P20728_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_draw__P144997, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P20728, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -15124,7 +14449,7 @@ function PhysicsEngine_draw__P144997_mk(s) { -function controller___update__P144857(s) { +function controller___update__P20514(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15134,7 +14459,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtms___154689 = undefined; + s.dtms___29488 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -15142,35 +14467,35 @@ switch (step) { r0 = (s.arg0 * 1000); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - s.dtms___154689 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P154696); + s.dtms___29488 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P29495); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___154689); - s.tmp_1 = helpers_arrayForEach__P144186_mk(s); - s.tmp_2 = controller_players__P144828_mk(s); - s.pc = 2; return s.tmp_2; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___29488); + s.tmp_1 = helpers_arrayForEach__P18671_mk(s); + s.tmp_2 = controller_players__P20482_mk(s); + s.callLocIdx = 208; 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.pc = 1; return s.tmp_1; + s.callLocIdx = 210; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller___update__P144857.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +controller___update__P20514.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___update__P144857_mk(s) { +function controller___update__P20514_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P144857, depth: s.depth + 1, + parent: s, fn: controller___update__P20514, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dtms___154689: undefined, + dtms___29488: undefined, arg0: undefined, } } @@ -15178,7 +14503,7 @@ function controller___update__P144857_mk(s) { -function inline__P154696(s) { +function inline__P29495(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15192,22 +14517,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___update__P144854_mk(s); + s.tmp_0 = controller_Controller___update__P20512_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.caps[0]; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 209; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P154696.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +inline__P29495.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function inline__P154696_mk(s) { +function inline__P29495_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P154696, depth: s.depth + 1, + parent: s, fn: inline__P29495, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -15217,7 +14542,7 @@ function inline__P154696_mk(s) { -function controller_Controller___update__P144854(s) { +function controller_Controller___update__P20512(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15233,7 +14558,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); r0 = pxsim_pxtrt.mklocRef(); s.tmp_0 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); @@ -15244,26 +14569,26 @@ switch (step) { 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__P154709); + r0 = pxsim_pxtcore_mkAction(1, inline__P29508); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P144186_mk(s); + s.tmp_1 = helpers_arrayForEach__P18671_mk(s); r0 = s.arg0.fields["buttons"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 207; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update__P144854.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +controller_Controller___update__P20512.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___update__P144854_mk(s) { +function controller_Controller___update__P20512_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P144854, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P20512, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15277,7 +14602,7 @@ function controller_Controller___update__P144854_mk(s) { -function inline__P154709(s) { +function inline__P29508(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15291,23 +14616,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P144819_mk(s); + s.tmp_0 = controller_Button___update__P20479_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 206; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P154709.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +inline__P29508.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function inline__P154709_mk(s) { +function inline__P29508_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P154709, depth: s.depth + 1, + parent: s, fn: inline__P29508, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -15317,7 +14642,7 @@ function inline__P154709_mk(s) { -function controller_Button___update__P144819(s) { +function controller_Button___update__P20479(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15327,16 +14652,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___154725 = undefined; - s.interval___154735 = undefined; - s.count___154749 = undefined; + s.delay___29524 = undefined; + s.interval___29533 = undefined; + s.count___29546 = 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__C144809_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20467_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -15360,31 +14685,31 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___144804; + r0 = globals.defaultRepeatDelay___22271; { step = 4; continue; } case 3: r0 = s.arg0.fields["repeatDelay"]; case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.delay___154725 = (s.tmp_2); + s.delay___29524 = (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___144806; + r0 = globals.defaultRepeatInterval___22273; { step = 6; continue; } case 5: r0 = s.arg0.fields["repeatInterval"]; case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.interval___154735 = (s.tmp_2); + s.interval___29533 = (s.tmp_2); r0 = s.arg0.fields["_pressedElasped"]; s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___154725); + r0 = (s.tmp_1 < s.delay___29524); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } @@ -15393,26 +14718,26 @@ switch (step) { case 8: r0 = s.arg0.fields["_pressedElasped"]; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.delay___154725); + r0 = (s.tmp_5 - s.delay___29524); s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___154735); + r0 = (s.tmp_4 - s.interval___29533); s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___154735); + r0 = (s.tmp_3 / s.interval___29533); s.tmp_2 = r0; r0 = pxsim.Math_.floor(s.tmp_2); - s.count___154749 = (r0); + s.count___29546 = (r0); r0 = s.arg0.fields["_repeatCount"]; s.tmp_1 = r0; - r0 = (s.count___154749 != s.tmp_1); + r0 = (s.count___29546 != 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__P144813_mk(s); + s.tmp_2 = controller_Button_raiseButtonRepeat__P22278_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 12; return s.tmp_2; + s.callLocIdx = 156; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___154749); + r0 = (s.arg0).fields["_repeatCount"] = (s.count___29546); case 9: case 10: case 11: @@ -15420,12 +14745,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button___update__P144819.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +controller_Button___update__P20479.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_Button___update__P144819_mk(s) { +function controller_Button___update__P20479_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P144819, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P20479, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15433,9 +14758,9 @@ function controller_Button___update__P144819_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - delay___154725: undefined, - interval___154735: undefined, - count___154749: undefined, + delay___29524: undefined, + interval___29533: undefined, + count___29546: undefined, arg0: undefined, arg1: undefined, } } @@ -15444,7 +14769,7 @@ function controller_Button___update__P144819_mk(s) { -function controller_Button_raiseButtonRepeat__P144813(s) { +function controller_Button_raiseButtonRepeat__P22278(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15459,8 +14784,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C144809_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___144802); + if (!checkSubtype(r0, controller_Button__C20467_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___22269); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -15475,12 +14800,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonRepeat__P144813.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +controller_Button_raiseButtonRepeat__P22278.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_raiseButtonRepeat__P144813_mk(s) { +function controller_Button_raiseButtonRepeat__P22278_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P144813, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P22278, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -15490,7 +14815,7 @@ function controller_Button_raiseButtonRepeat__P144813_mk(s) { -function controller_players__P144828(s) { +function controller_players__P20482(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15500,25 +14825,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P144827_mk(s); - s.pc = 1; return s.tmp_0; + s.tmp_0 = controller__player1__P20481_mk(s); + s.callLocIdx = 159; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P144187_mk(s); - s.tmp_0.arg0 = globals._players___144825; - s.tmp_0.arg1 = inline__P154570; - s.pc = 2; return s.tmp_0; + s.tmp_0 = helpers_arrayFilter__P18672_mk(s); + s.tmp_0.arg0 = globals._players___22282; + s.tmp_0.arg1 = inline__P29375; + s.callLocIdx = 160; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; return leave(s, r0) default: oops() } } } -controller_players__P144828.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +controller_players__P20482.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function controller_players__P144828_mk(s) { +function controller_players__P20482_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P144828, depth: s.depth + 1, + parent: s, fn: controller_players__P20482, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -15527,7 +14852,7 @@ function controller_players__P144828_mk(s) { -function inline__P154570(s) { +function inline__P29375(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15551,12 +14876,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P154570.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +inline__P29375.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function inline__P154570_mk(s) { +function inline__P29375_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P154570, depth: s.depth + 1, + parent: s, fn: inline__P29375, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15568,7 +14893,7 @@ function inline__P154570_mk(s) { -function controller__player1__P144827(s) { +function controller__player1__P20481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15578,7 +14903,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___144825); + r0 = pxsim_numops_toBoolDecr(globals._players___22282); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -15587,7 +14912,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array__getAt(globals._players___144825, 0); + r0 = pxsim_Array__getAt(globals._players___22282, 0); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -15597,36 +14922,36 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C144832_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C20487_VT); s.tmp_5 = r0; r0 = pxsim_Array__mk(); s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___144784); - r0 = pxsim_Array__push(s.tmp_6, globals.up___144786); - r0 = pxsim_Array__push(s.tmp_6, globals.right___144788); - r0 = pxsim_Array__push(s.tmp_6, globals.down___144790); - r0 = pxsim_Array__push(s.tmp_6, globals.A___144780); - r0 = pxsim_Array__push(s.tmp_6, globals.B___144782); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___144792); - s.tmp_7 = controller_Controller_constructor__P144856_mk(s); + r0 = pxsim_Array__push(s.tmp_6, globals.left___20443); + r0 = pxsim_Array__push(s.tmp_6, globals.up___20444); + r0 = pxsim_Array__push(s.tmp_6, globals.right___20445); + r0 = pxsim_Array__push(s.tmp_6, globals.down___20446); + r0 = pxsim_Array__push(s.tmp_6, globals.A___20441); + r0 = pxsim_Array__push(s.tmp_6, globals.B___20442); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___20447); + s.tmp_7 = controller_Controller_constructor__P20491_mk(s); s.tmp_7.arg0 = s.tmp_5; s.tmp_7.arg1 = 1; s.tmp_7.arg2 = s.tmp_6; - s.pc = 5; return s.tmp_7; + s.callLocIdx = 158; s.pc = 5; return s.tmp_7; case 5: r0 = s.retval; case 3: case 4: - r0 = pxsim_Array__getAt(globals._players___144825, 0); + r0 = pxsim_Array__getAt(globals._players___22282, 0); return leave(s, r0) default: oops() } } } -controller__player1__P144827.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +controller__player1__P20481.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} -function controller__player1__P144827_mk(s) { +function controller__player1__P20481_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P144827, depth: s.depth + 1, + parent: s, fn: controller__player1__P20481, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15642,7 +14967,7 @@ function controller__player1__P144827_mk(s) { -function controller_Controller_constructor__P144856(s) { +function controller_Controller_constructor__P20491(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15652,9 +14977,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___154634 = undefined; - s.i___154642 = undefined; - s.i___154660 = undefined; + s.leftId___29434 = undefined; + s.i___29442 = undefined; + s.i___29460 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -15662,7 +14987,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim.control.allocateNotifyEvent(); s.tmp_1 = r0; @@ -15686,34 +15011,34 @@ switch (step) { r0 = (s.tmp_1 * 7); s.tmp_0 = r0; r0 = (1 + s.tmp_0); - s.leftId___154634 = (r0); - s.i___154642 = (0); + s.leftId___29434 = (r0); + s.i___29442 = (0); case 2: - r0 = (s.i___154642 < 7); + r0 = (s.i___29442 < 7); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C144809_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C20467_VT); s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P144820_mk(s); + s.tmp_2 = controller_Button_constructor__P20473_mk(s); s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___154634 + s.i___154642); + r0 = (s.leftId___29434 + s.i___29442); s.tmp_2.arg1 = r0; s.tmp_2.arg2 = -1; - s.pc = 7; return s.tmp_2; + s.callLocIdx = 164; 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___154642 + 1); - s.i___154642 = (r0); + r0 = (s.i___29442 + 1); + s.i___29442 = (r0); { step = 2; continue; } case 3: case 4: - s.i___154660 = (0); + s.i___29460 = (0); case 5: - s.tmp_1 = r0 = s.i___154660; + s.tmp_1 = r0 = s.i___29460; r0 = s.arg0.fields["buttons"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -15724,28 +15049,28 @@ switch (step) { if (!r0) { step = 6; continue; } r0 = s.arg0.fields["buttons"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___154660); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___29460); s.tmp_4 = r0; r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___154660 + 1); - s.i___154660 = (r0); + r0 = (s.i___29460 + 1); + s.i___29460 = (r0); { step = 5; continue; } case 6: - s.tmp_0 = controller_addController__P144826_mk(s); + s.tmp_0 = controller_addController__P22283_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 8; return s.tmp_0; + s.callLocIdx = 165; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P144856.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"]} +controller_Controller_constructor__P20491.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 controller_Controller_constructor__P144856_mk(s) { +function controller_Controller_constructor__P20491_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P144856, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P20491, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15753,9 +15078,9 @@ function controller_Controller_constructor__P144856_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - leftId___154634: undefined, - i___154642: undefined, - i___154660: undefined, + leftId___29434: undefined, + i___29442: undefined, + i___29460: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -15765,7 +15090,7 @@ function controller_Controller_constructor__P144856_mk(s) { -function controller_addController__P144826(s) { +function controller_addController__P22283(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15779,17 +15104,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._players___144825); + r0 = pxsim_numops_toBoolDecr(globals._players___22282); 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___144825 = (r0); + globals._players___22282 = (r0); case 1: case 2: - s.tmp_0 = r0 = globals._players___144825; + s.tmp_0 = r0 = globals._players___22282; r0 = s.arg0.fields["playerIndex"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 1); @@ -15799,12 +15124,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_addController__P144826.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +controller_addController__P22283.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function controller_addController__P144826_mk(s) { +function controller_addController__P22283_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P144826, depth: s.depth + 1, + parent: s, fn: controller_addController__P22283, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15816,7 +15141,7 @@ function controller_addController__P144826_mk(s) { -function helpers_arrayFilter__P144187(s) { +function helpers_arrayFilter__P18672(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15826,62 +15151,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___155643 = undefined; - s.len___155645 = undefined; - s.i___155648 = undefined; - s.v___155653 = undefined; + s.res___31321 = undefined; + s.len___31323 = undefined; + s.i___31326 = undefined; + s.v___31331 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___155643 = (r0); + s.res___31321 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___155645 = (r0); - s.i___155648 = (0); + s.len___31323 = (r0); + s.i___31326 = (0); case 1: - r0 = (s.i___155648 < s.len___155645); + r0 = (s.i___31326 < s.len___31323); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___155648); - s.v___155653 = (r0); + r0 = pxsim_Array__getAt(s.arg0, s.i___31326); + s.v___31331 = (r0); s.tmp_1 = lambda_3_mk(s); s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___155653; - s.tmp_1.arg1 = s.i___155648; + s.tmp_1.arg0 = s.v___31331; + s.tmp_1.arg1 = s.i___31326; setupLambda(s.tmp_1, s.tmp_1.argL); - s.pc = 5; return s.tmp_1; + s.callLocIdx = 6; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___155643, s.v___155653); + r0 = pxsim_Array__push(s.res___31321, s.v___31331); case 2: case 3: - r0 = (s.i___155648 + 1); - s.i___155648 = (r0); + r0 = (s.i___31326 + 1); + s.i___31326 = (r0); { step = 1; continue; } case 4: - r0 = s.res___155643; + r0 = s.res___31321; return leave(s, r0) default: oops() } } } -helpers_arrayFilter__P144187.info = {"start":7695,"length":317,"line":261,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFilter","argumentNames":["arr","callbackfn"]} +helpers_arrayFilter__P18672.info = {"start":7695,"length":317,"line":261,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayFilter","argumentNames":["arr","callbackfn"]} -function helpers_arrayFilter__P144187_mk(s) { +function helpers_arrayFilter__P18672_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFilter__P144187, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P18672, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - res___155643: undefined, - len___155645: undefined, - i___155648: undefined, - v___155653: undefined, + res___31321: undefined, + len___31323: undefined, + i___31326: undefined, + v___31331: undefined, arg0: undefined, arg1: undefined, } } @@ -15890,7 +15215,7 @@ function helpers_arrayFilter__P144187_mk(s) { -function controller__moveSprites__P144831(s) { +function controller__moveSprites__P20486(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15900,26 +15225,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P144186_mk(s); - s.tmp_1 = controller_players__P144828_mk(s); - s.pc = 2; return s.tmp_1; + s.tmp_0 = helpers_arrayForEach__P18671_mk(s); + s.tmp_1 = controller_players__P20482_mk(s); + s.callLocIdx = 161; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P154357; - s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = inline__P29170; + s.callLocIdx = 163; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller__moveSprites__P144831.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +controller__moveSprites__P20486.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__P144831_mk(s) { +function controller__moveSprites__P20486_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P144831, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P20486, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15929,7 +15254,7 @@ function controller__moveSprites__P144831_mk(s) { -function inline__P154357(s) { +function inline__P29170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15943,21 +15268,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___preUpdate__P144853_mk(s); + s.tmp_0 = controller_Controller___preUpdate__P20511_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 162; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P154357.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +inline__P29170.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function inline__P154357_mk(s) { +function inline__P29170_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P154357, depth: s.depth + 1, + parent: s, fn: inline__P29170, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -15967,7 +15292,7 @@ function inline__P154357_mk(s) { -function controller_Controller___preUpdate__P144853(s) { +function controller_Controller___preUpdate__P20511(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15977,22 +15302,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___154364 = undefined; - s.svx___154365 = undefined; - s.svy___154366 = undefined; - s.svxInCricle___154402 = undefined; - s.svyInCircle___154404 = undefined; - s.sq___154406 = undefined; - s.scale___154421 = undefined; + s.deadSprites___29177 = undefined; + s.svx___29178 = undefined; + s.svy___29179 = undefined; + s.svxInCricle___29214 = undefined; + s.svyInCircle___29216 = undefined; + s.sq___29218 = undefined; + s.scale___29233 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P144833_mk(s); + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P20492_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 18; return s.tmp_3; + s.callLocIdx = 181; s.pc = 18; return s.tmp_3; case 18: r0 = s.retval; s.tmp_2 = r0; @@ -16006,38 +15331,38 @@ switch (step) { case 1: case 2: r0 = pxsim_pxtrt.mklocRef(); - s.deadSprites___154364 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___154364, false); + s.deadSprites___29177 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___29177, false); r0 = pxsim_pxtrt.mklocRef(); - s.svx___154365 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___154365, 0); + s.svx___29178 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___29178, 0); r0 = pxsim_pxtrt.mklocRef(); - s.svy___154366 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___154366, 0); + s.svy___29179 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___29179, 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___154365; - s.tmp_5 = controller_Button_pressureLevel__P144817_mk(s); - s.tmp_6 = controller_Controller_right__P144838_mk(s); + s.tmp_1 = r0 = s.svx___29178; + s.tmp_5 = controller_Button_pressureLevel__P20477_mk(s); + s.tmp_6 = controller_Controller_right__P20497_mk(s); s.tmp_6.arg0 = s.arg0; - s.pc = 20; return s.tmp_6; + s.callLocIdx = 182; s.pc = 20; return s.tmp_6; case 20: r0 = s.retval; s.tmp_5.arg0 = r0; - s.pc = 19; return s.tmp_5; + s.callLocIdx = 183; s.pc = 19; return s.tmp_5; case 19: r0 = s.retval; s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P144817_mk(s); - s.tmp_9 = controller_Controller_left__P144837_mk(s); + s.tmp_8 = controller_Button_pressureLevel__P20477_mk(s); + s.tmp_9 = controller_Controller_left__P20496_mk(s); s.tmp_9.arg0 = s.arg0; - s.pc = 22; return s.tmp_9; + s.callLocIdx = 184; s.pc = 22; return s.tmp_9; case 22: r0 = s.retval; s.tmp_8.arg0 = r0; - s.pc = 21; return s.tmp_8; + s.callLocIdx = 185; s.pc = 21; return s.tmp_8; case 21: r0 = s.retval; s.tmp_7 = r0; @@ -16046,26 +15371,26 @@ switch (step) { 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___154366; - s.tmp_4 = controller_Button_pressureLevel__P144817_mk(s); - s.tmp_5 = controller_Controller_down__P144840_mk(s); + s.tmp_0 = r0 = s.svy___29179; + s.tmp_4 = controller_Button_pressureLevel__P20477_mk(s); + s.tmp_5 = controller_Controller_down__P20499_mk(s); s.tmp_5.arg0 = s.arg0; - s.pc = 24; return s.tmp_5; + s.callLocIdx = 186; s.pc = 24; return s.tmp_5; case 24: r0 = s.retval; s.tmp_4.arg0 = r0; - s.pc = 23; return s.tmp_4; + s.callLocIdx = 187; s.pc = 23; return s.tmp_4; case 23: r0 = s.retval; s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P144817_mk(s); - s.tmp_8 = controller_Controller_up__P144839_mk(s); + s.tmp_7 = controller_Button_pressureLevel__P20477_mk(s); + s.tmp_8 = controller_Controller_up__P20498_mk(s); s.tmp_8.arg0 = s.arg0; - s.pc = 26; return s.tmp_8; + s.callLocIdx = 188; s.pc = 26; return s.tmp_8; case 26: r0 = s.retval; s.tmp_7.arg0 = r0; - s.pc = 25; return s.tmp_7; + s.callLocIdx = 189; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_6 = r0; @@ -16076,14 +15401,14 @@ switch (step) { r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); { step = 12; continue; } case 3: - s.tmp_1 = controller_Button__C144809_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P144838_mk(s); + s.tmp_1 = controller_Button__C20467_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P20497_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 28; return s.tmp_2; + s.callLocIdx = 190; 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__C144809_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C20467_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: @@ -16098,14 +15423,14 @@ switch (step) { case 5: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_5 = controller_Button__C144809_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P144837_mk(s); + s.tmp_5 = controller_Button__C20467_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P20496_mk(s); s.tmp_6.arg0 = s.arg0; - s.pc = 30; return s.tmp_6; + s.callLocIdx = 191; 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__C144809_VT)) failedCast(s.tmp_5.arg0); + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C20467_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: @@ -16120,18 +15445,18 @@ switch (step) { case 7: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.svx___154365; + s.tmp_8 = r0 = s.svx___29178; 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__C144809_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P144840_mk(s); + s.tmp_1 = controller_Button__C20467_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P20499_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 32; return s.tmp_2; + s.callLocIdx = 192; 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__C144809_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C20467_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: @@ -16146,14 +15471,14 @@ switch (step) { case 9: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_5 = controller_Button__C144809_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P144839_mk(s); + s.tmp_5 = controller_Button__C20467_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P20498_mk(s); s.tmp_6.arg0 = s.arg0; - s.pc = 34; return s.tmp_6; + s.callLocIdx = 193; 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__C144809_VT)) failedCast(s.tmp_5.arg0); + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C20467_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: @@ -16168,57 +15493,57 @@ switch (step) { case 11: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.svy___154366; + s.tmp_8 = r0 = s.svy___29179; 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___154402 = (r0); - s.tmp_0 = r0 = s.svxInCricle___154402; - r0 = pxsim_pxtrt_ldlocRef(s.svx___154365); + s.svxInCricle___29214 = (r0); + s.tmp_0 = r0 = s.svxInCricle___29214; + r0 = pxsim_pxtrt_ldlocRef(s.svx___29178); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___154404 = (r0); - s.tmp_0 = r0 = s.svyInCircle___154404; - r0 = pxsim_pxtrt_ldlocRef(s.svy___154366); + s.svyInCircle___29216 = (r0); + s.tmp_0 = r0 = s.svyInCircle___29216; + r0 = pxsim_pxtrt_ldlocRef(s.svy___29179); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___154365); + r0 = pxsim_pxtrt_ldlocRef(s.svx___29178); s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___154365); + r0 = pxsim_pxtrt_ldlocRef(s.svx___29178); s.tmp_2 = r0; r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___154366); + r0 = pxsim_pxtrt_ldlocRef(s.svy___29179); s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___154366); + r0 = pxsim_pxtrt_ldlocRef(s.svy___29179); s.tmp_5 = r0; r0 = (s.tmp_4 * s.tmp_5); s.tmp_3 = r0; r0 = (s.tmp_0 + s.tmp_3); - s.sq___154406 = (r0); - r0 = (s.sq___154406 > 65536); + s.sq___29218 = (r0); + r0 = (s.sq___29218 > 65536); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___154406); + r0 = (65536 / s.sq___29218); s.tmp_1 = r0; r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___154421 = (r0); - s.tmp_0 = r0 = s.svxInCricle___154402; - s.tmp_3 = r0 = s.scale___154421; - r0 = pxsim_pxtrt_ldlocRef(s.svx___154365); + s.scale___29233 = (r0); + s.tmp_0 = r0 = s.svxInCricle___29214; + s.tmp_3 = r0 = s.scale___29233; + r0 = pxsim_pxtrt_ldlocRef(s.svx___29178); 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___154404; - s.tmp_3 = r0 = s.scale___154421; - r0 = pxsim_pxtrt_ldlocRef(s.svy___154366); + s.tmp_0 = r0 = s.svyInCircle___29216; + s.tmp_3 = r0 = s.scale___29233; + r0 = pxsim_pxtrt_ldlocRef(s.svy___29179); s.tmp_4 = r0; r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; @@ -16227,43 +15552,43 @@ switch (step) { r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); case 13: case 14: - r0 = pxsim_pxtcore_mkAction(5, inline__P154439); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___154364); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___154365); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___154366); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___154402); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___154404); - s.tmp_1 = helpers_arrayForEach__P144186_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P144833_mk(s); + r0 = pxsim_pxtcore_mkAction(5, inline__P29251); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___29177); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___29178); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___29179); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___29214); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___29216); + s.tmp_1 = helpers_arrayForEach__P18671_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P20492_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 36; return s.tmp_2; + s.callLocIdx = 194; 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.pc = 35; return s.tmp_1; + s.callLocIdx = 202; s.pc = 35; return s.tmp_1; case 35: r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___154364); + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___29177); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P144834_mk(s); + s.tmp_1 = controller_Controller__controlledSprites__P20493_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P144187_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P144833_mk(s); + s.tmp_2 = helpers_arrayFilter__P18672_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P20492_mk(s); s.tmp_3.arg0 = s.arg0; - s.pc = 39; return s.tmp_3; + s.callLocIdx = 203; s.pc = 39; return s.tmp_3; case 39: r0 = s.retval; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P154499; - s.pc = 38; return s.tmp_2; + s.tmp_2.arg1 = inline__P29308; + s.callLocIdx = 204; s.pc = 38; return s.tmp_2; case 38: r0 = s.retval; s.tmp_1.arg1 = r0; - s.pc = 37; return s.tmp_1; + s.callLocIdx = 205; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; case 15: @@ -16273,12 +15598,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P144853.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +controller_Controller___preUpdate__P20511.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function controller_Controller___preUpdate__P144853_mk(s) { +function controller_Controller___preUpdate__P20511_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P144853, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P20511, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16290,13 +15615,13 @@ function controller_Controller___preUpdate__P144853_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - deadSprites___154364: undefined, - svx___154365: undefined, - svy___154366: undefined, - svxInCricle___154402: undefined, - svyInCircle___154404: undefined, - sq___154406: undefined, - scale___154421: undefined, + deadSprites___29177: undefined, + svx___29178: undefined, + svy___29179: undefined, + svxInCricle___29214: undefined, + svyInCircle___29216: undefined, + sq___29218: undefined, + scale___29233: undefined, arg0: undefined, } } @@ -16304,7 +15629,7 @@ function controller_Controller___preUpdate__P144853_mk(s) { -function inline__P154439(s) { +function inline__P29251(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16314,9 +15639,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___154442 = undefined; - s.vx___154443 = undefined; - s.vy___154444 = undefined; + s.s___29254 = undefined; + s.vx___29255 = undefined; + s.vy___29256 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -16330,11 +15655,11 @@ switch (step) { 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.pc = 22; return s.tmp_0; } + else { s.callLocIdx = 195; s.pc = 22; return s.tmp_0; } } case 22: r0 = s.retval; - s.s___154442 = (r0); + s.s___29254 = (r0); s.tmp_2 = if_vx_1_mk(s); s.tmp_2.arg0 = s.tmp_1; if (!s.tmp_2.arg0.vtable.iface) { @@ -16343,11 +15668,11 @@ switch (step) { 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.pc = 23; return s.tmp_2; } + else { s.callLocIdx = 196; s.pc = 23; return s.tmp_2; } } case 23: r0 = s.retval; - s.vx___154443 = (r0); + s.vx___29255 = (r0); s.tmp_3 = if_vy_1_mk(s); s.tmp_3.arg0 = s.tmp_1; if (!s.tmp_3.arg0.vtable.iface) { @@ -16356,12 +15681,12 @@ switch (step) { 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.pc = 24; return s.tmp_3; } + else { s.callLocIdx = 197; s.pc = 24; return s.tmp_3; } } case 24: r0 = s.retval; - s.vy___154444 = (r0); - r0 = s.s___154442.fields["flags"]; + s.vy___29256 = (r0); + r0 = s.s___29254.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); s.tmp_0 = r0; @@ -16375,14 +15700,14 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.vx___154443); + r0 = pxsim_numops_toBoolDecr(s.vx___29255); if (!r0) { step = 3; continue; } - r0 = (s.s___154442).fields["_vx"] = (0); + r0 = (s.s___29254).fields["_vx"] = (0); case 3: case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___154444); + r0 = pxsim_numops_toBoolDecr(s.vy___29256); if (!r0) { step = 5; continue; } - r0 = (s.s___154442).fields["_vy"] = (0); + r0 = (s.s___29254).fields["_vy"] = (0); case 5: case 6: case 7: @@ -16400,48 +15725,48 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 19; continue; } - s.tmp_2 = r0 = s.vx___154443; + s.tmp_2 = r0 = s.vx___29255; r0 = pxsim_numops_toBool(s.tmp_2); if (r0) { step = 11; continue; } r0 = s.tmp_2; { step = 12; continue; } case 11: - r0 = s.vy___154444; + r0 = s.vy___29256; 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___154442; + s.tmp_4 = r0 = s.s___29254; r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___154443); + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___29255); s.tmp_5 = r0; r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___154442; + s.tmp_0 = r0 = s.s___29254; r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___154444); + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___29256); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); { step = 18; continue; } case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___154443); + r0 = pxsim_numops_toBoolDecr(s.vx___29255); if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___154442; + s.tmp_0 = r0 = s.s___29254; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___154443); + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___29255); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); { step = 17; continue; } case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___154444); + r0 = pxsim_numops_toBoolDecr(s.vy___29256); if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___154442; + s.tmp_0 = r0 = s.s___29254; r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___154444); + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___29256); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); case 15: @@ -16458,12 +15783,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P154439.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +inline__P29251.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function inline__P154439_mk(s) { +function inline__P29251_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P154439, depth: s.depth + 1, + parent: s, fn: inline__P29251, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16472,9 +15797,9 @@ function inline__P154439_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - s___154442: undefined, - vx___154443: undefined, - vy___154444: undefined, + s___29254: undefined, + vx___29255: undefined, + vy___29256: undefined, arg0: undefined, } } @@ -16482,7 +15807,7 @@ function inline__P154439_mk(s) { -function inline__P154499(s) { +function inline__P29308(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16507,12 +15832,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P154499.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} +inline__P29308.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function inline__P154499_mk(s) { +function inline__P29308_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P154499, depth: s.depth + 1, + parent: s, fn: inline__P29308, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16524,7 +15849,7 @@ function inline__P154499_mk(s) { -function controller_Controller_down__P144840(s) { +function controller_Controller_down__P20499(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16539,7 +15864,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (4 - 1); @@ -16548,13 +15873,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_down__P144840.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__P144840.isGetter = true; +controller_Controller_down__P20499.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__P20499.isGetter = true; -function controller_Controller_down__P144840_mk(s) { +function controller_Controller_down__P20499_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P144840, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P20499, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16565,7 +15890,7 @@ function controller_Controller_down__P144840_mk(s) { -function controller_Controller_button__P144845(s) { +function controller_Controller_button__P22284(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16581,7 +15906,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (s.arg1 - 1); @@ -16590,12 +15915,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller_button__P144845.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +controller_Controller_button__P22284.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 controller_Controller_button__P144845_mk(s) { +function controller_Controller_button__P22284_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P144845, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P22284, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16607,7 +15932,7 @@ function controller_Controller_button__P144845_mk(s) { -function controller_Controller_up__P144839(s) { +function controller_Controller_up__P20498(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16622,7 +15947,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (2 - 1); @@ -16631,13 +15956,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_up__P144839.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__P144839.isGetter = true; +controller_Controller_up__P20498.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__P20498.isGetter = true; -function controller_Controller_up__P144839_mk(s) { +function controller_Controller_up__P20498_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_up__P144839, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P20498, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16648,7 +15973,7 @@ function controller_Controller_up__P144839_mk(s) { -function controller_Controller_right__P144838(s) { +function controller_Controller_right__P20497(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16663,7 +15988,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (3 - 1); @@ -16672,13 +15997,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_right__P144838.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__P144838.isGetter = true; +controller_Controller_right__P20497.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__P20497.isGetter = true; -function controller_Controller_right__P144838_mk(s) { +function controller_Controller_right__P20497_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P144838, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P20497, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16689,7 +16014,7 @@ function controller_Controller_right__P144838_mk(s) { -function controller_Controller_left__P144837(s) { +function controller_Controller_left__P20496(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16704,7 +16029,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; r0 = (1 - 1); @@ -16713,13 +16038,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_left__P144837.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__P144837.isGetter = true; +controller_Controller_left__P20496.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__P20496.isGetter = true; -function controller_Controller_left__P144837_mk(s) { +function controller_Controller_left__P20496_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P144837, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P20496, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16730,7 +16055,7 @@ function controller_Controller_left__P144837_mk(s) { -function controller_Controller__controlledSprites__P144834(s) { +function controller_Controller__controlledSprites__P20493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16746,9 +16071,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 167; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = r0.fields["controlledSprites"]; @@ -16760,12 +16085,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P144834.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +controller_Controller__controlledSprites__P20493.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} -function controller_Controller__controlledSprites__P144834_mk(s) { +function controller_Controller__controlledSprites__P20493_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P144834, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P20493, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16778,7 +16103,7 @@ function controller_Controller__controlledSprites__P144834_mk(s) { -function controller_Controller__controlledSprites__P144833(s) { +function controller_Controller__controlledSprites__P20492(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16793,9 +16118,9 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 166; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = r0.fields["controlledSprites"]; @@ -16806,13 +16131,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P144833.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__P144833.isGetter = true; +controller_Controller__controlledSprites__P20492.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__P20492.isGetter = true; -function controller_Controller__controlledSprites__P144833_mk(s) { +function controller_Controller__controlledSprites__P20492_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P144833, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P20492, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16824,7 +16149,7 @@ function controller_Controller__controlledSprites__P144833_mk(s) { -function controller_Button_pressureLevel__P144817(s) { +function controller_Button_pressureLevel__P20477(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16839,16 +16164,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C144809_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20467_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__C144809_v0_1_mk(s); + s.tmp_3 = controller_Button__C20467_v0_1_mk(s); s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C144809_VT)) failedCast(s.tmp_3.arg0); + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C20467_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: @@ -16877,12 +16202,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P144817.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_pressureLevel__P20477.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} -function controller_Button_pressureLevel__P144817_mk(s) { +function controller_Button_pressureLevel__P20477_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P144817, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P20477, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16897,7 +16222,7 @@ function controller_Button_pressureLevel__P144817_mk(s) { -function controller_Button_isPressed__P144816(s) { +function controller_Button_isPressed__P20476(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16912,17 +16237,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C144809_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20467_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; return leave(s, r0) default: oops() } } } -controller_Button_isPressed__P144816.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +controller_Button_isPressed__P20476.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_Button_isPressed__P144816_mk(s) { +function controller_Button_isPressed__P20476_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_isPressed__P144816, depth: s.depth + 1, + parent: s, fn: controller_Button_isPressed__P20476, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -16931,7 +16256,7 @@ function controller_Button_isPressed__P144816_mk(s) { -function Fx_imul__P144244(s) { +function Fx_imul__P18720(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16950,12 +16275,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_imul__P144244.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} +Fx_imul__P18720.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__P144244_mk(s) { +function Fx_imul__P18720_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P144244, depth: s.depth + 1, + parent: s, fn: Fx_imul__P18720, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -16965,7 +16290,7 @@ function Fx_imul__P144244_mk(s) { -function power_checkDeepSleep__P144613(s) { +function power_checkDeepSleep__P20270(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16975,13 +16300,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___153734 = undefined; - s.to___153737 = undefined; - s.tmp_0 = power_init__P144615_mk(s); - s.pc = 11; return s.tmp_0; + s.p___28556 = undefined; + s.to___28559 = undefined; + s.tmp_0 = power_init__P22183_mk(s); + s.callLocIdx = 85; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = r0 = globals._poked___144609; + s.tmp_0 = r0 = globals._poked___22181; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; @@ -16991,8 +16316,8 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_1 = r0; - s.p___153734 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___144610; + s.p___28556 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___22182; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } r0 = s.tmp_0; @@ -17002,8 +16327,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_1 = r0; - s.to___153737 = (s.tmp_1); - r0 = (s.to___153737 > 0); + s.to___28559 = (s.tmp_1); + r0 = (s.to___28559 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 5; continue; } @@ -17012,9 +16337,9 @@ switch (step) { case 5: r0 = pxsim.control.millis(); s.tmp_2 = r0; - r0 = (s.tmp_2 - s.p___153734); + r0 = (s.tmp_2 - s.p___28556); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___153737); + r0 = (s.tmp_1 > s.to___28559); case 6: // jmp value (already in r0) s.tmp_3 = r0; @@ -17040,12 +16365,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -power_checkDeepSleep__P144613.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +power_checkDeepSleep__P20270.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function power_checkDeepSleep__P144613_mk(s) { +function power_checkDeepSleep__P20270_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P144613, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P20270, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17054,15 +16379,15 @@ function power_checkDeepSleep__P144613_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - p___153734: undefined, - to___153737: undefined, + p___28556: undefined, + to___28559: undefined, } } -function power_init__P144615(s) { +function power_init__P22183(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17072,7 +16397,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___144610 !== undefined); + r0 = (globals._timeout___22182 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -17082,21 +16407,21 @@ switch (step) { r0 = pxsim_pxtcore.getConfig(212, -1); s.tmp_1 = r0; r0 = (s.tmp_1 * 1000); - globals._timeout___144610 = (r0); - r0 = (globals._timeout___144610 > 0); + globals._timeout___22182 = (r0); + r0 = (globals._timeout___22182 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 3; continue; } r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = (globals._timeout___144610 < 300000); + r0 = (globals._timeout___22182 < 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___144610 = (300000); + globals._timeout___22182 = (300000); case 5: case 6: case 7: @@ -17104,12 +16429,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -power_init__P144615.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +power_init__P22183.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__P144615_mk(s) { +function power_init__P22183_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P144615, depth: s.depth + 1, + parent: s, fn: power_init__P22183, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17119,7 +16444,7 @@ function power_init__P144615_mk(s) { -function power_poke__P144612(s) { +function power_poke__P20269(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17129,22 +16454,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P144615_mk(s); - s.pc = 1; return s.tmp_0; + s.tmp_0 = power_init__P22183_mk(s); + s.callLocIdx = 84; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = pxsim.control.millis(); - globals._poked___144609 = (r0); + globals._poked___22181 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -power_poke__P144612.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +power_poke__P20269.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__P144612_mk(s) { +function power_poke__P20269_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P144612, depth: s.depth + 1, + parent: s, fn: power_poke__P20269, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -17153,7 +16478,7 @@ function power_poke__P144612_mk(s) { -function music_Melody_constructor__P144572(s) { +function scene_Scene_constructor__P21004(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17166,31 +16491,111 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C144560_VT)) failedCast(r0); - r0 = (s.arg0).fields["_text"] = (s.arg1); + if (!checkSubtype(r0, scene_Scene__C20983_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__C20737_VT); + s.tmp_0 = r0; + s.tmp_1 = ArcadePhysicsEngine_constructor__P20738_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 = 879; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C20924_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Camera_constructor__P20928_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 880; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + r0 = (s.arg0).fields["camera"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C20829_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Background_constructor__P20833_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["camera"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 881; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + r0 = (s.arg0).fields["background"] = (s.tmp_0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["destroyedHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["createdHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["overlapHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["overlapMap"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["tileOverlapHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["collisionHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["wallCollisionHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["gameForeverHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["spritesByKind"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + 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() } } } -music_Melody_constructor__P144572.info = {"start":6328,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} +scene_Scene_constructor__P21004.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 music_Melody_constructor__P144572_mk(s) { +function scene_Scene_constructor__P21004_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P144572, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P21004, 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 control_pushEventContext__P144430(s) { +function scene_Camera_constructor__P20928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17200,63 +16605,152 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___154790 = undefined; - s.n___154796 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___144428); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C20924_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__P20928.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__P20928_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_constructor__P20928, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Background_constructor__P20833(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C20829_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (0); + r0 = (s.arg0).fields["camera"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } + r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Background_constructor__P20833.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 scene_Background_constructor__P20833_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Background_constructor__P20833, 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 ArcadePhysicsEngine_constructor__P20738(s) { +let r0 = s.r0, 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, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); - globals.eventContexts___144428 = (r0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C20658_VT); + s.tmp_0 = r0; + s.tmp_1 = sprites_SpriteMap_constructor__P20659_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 528; s.pc = 1; return s.tmp_1; case 1: - case 2: - s.tmp_0 = control_eventContext__P144429_mk(s); - s.pc = 5; return s.tmp_0; - case 5: r0 = s.retval; - s.ctx___154790 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___154790); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P144418_mk(s); - s.tmp_0.arg0 = s.ctx___154790; - s.pc = 6; return s.tmp_0; - case 6: + r0 = (s.arg0).fields["map"] = (s.tmp_0); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P20740_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 529; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_maxStep__P20744_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 530; s.pc = 3; return s.tmp_0; case 3: + r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_minStep__P20742_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 531; s.pc = 4; return s.tmp_0; case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C144413_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P144427_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.pc = 7; return s.tmp_1; - case 7: r0 = s.retval; - s.n___154796 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___144428, s.n___154796); - r0 = s.n___154796; + r0 = undefined; return leave(s, r0) default: oops() } } } -control_pushEventContext__P144430.info = {"start":7021,"length":340,"line":213,"column":4,"endLine":224,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +ArcadePhysicsEngine_constructor__P20738.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 control_pushEventContext__P144430_mk(s) { +function ArcadePhysicsEngine_constructor__P20738_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P144430, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P20738, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___154790: undefined, - n___154796: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function control_eventContext__P144429(s) { +function ArcadePhysicsEngine_maxStep__P20744(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17266,42 +16760,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___144428); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___144428; - r0 = pxsim_Array__length(globals.eventContexts___144428); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - { step = 2; continue; } - case 1: + r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_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__P144429.info = {"start":6805,"length":136,"line":206,"column":4,"endLine":208,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +ArcadePhysicsEngine_maxStep__P20744.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 control_eventContext__P144429_mk(s) { +function ArcadePhysicsEngine_maxStep__P20744_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P144429, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P20744, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_constructor__P144427(s) { +function ArcadePhysicsEngine_maxStep__P20743(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17316,26 +16810,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C144413_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + r0 = s.arg0.fields["maxSingleStep"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); 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) + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_constructor__P144427.info = {"start":1740,"length":245,"line":58,"column":8,"endLine":65,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P20743.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__P20743.isGetter = true; -function control_EventContext_constructor__P144427_mk(s) { +function ArcadePhysicsEngine_maxStep__P20743_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P144427, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P20743, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17346,7 +16836,7 @@ function control_EventContext_constructor__P144427_mk(s) { -function control_EventContext_unregister__P144418(s) { +function ArcadePhysicsEngine_minStep__P20742(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17356,37 +16846,469 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___152086 = undefined; - s.unnamed4582___U1 = undefined; - s.unnamed4583___U2 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["minSingleStep"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_minStep__P20742.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 ArcadePhysicsEngine_minStep__P20742_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_minStep__P20742, 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_minStep__P20741(s) { +let r0 = s.r0, 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__C20737_VT)) failedCast(r0); + r0 = s.arg0.fields["minSingleStep"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_minStep__P20741.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__P20741.isGetter = true; + +function ArcadePhysicsEngine_minStep__P20741_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_minStep__P20741, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_maxSpeed__P20740(s) { +let r0 = s.r0, 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__C20737_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +ArcadePhysicsEngine_maxSpeed__P20740.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 ArcadePhysicsEngine_maxSpeed__P20740_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P20740, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_neg__P18714(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (0 - s.arg0); + return leave(s, r0) + default: oops() +} } } +Fx_neg__P18714.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} + +function Fx_neg__P18714_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_neg__P18714, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_maxSpeed__P20739(s) { +let r0 = s.r0, 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__C20737_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() +} } } +ArcadePhysicsEngine_maxSpeed__P20739.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__P20739.isGetter = true; + +function ArcadePhysicsEngine_maxSpeed__P20739_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P20739, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function PhysicsEngine_constructor__P20724(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C20723_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +PhysicsEngine_constructor__P20724.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} + +function PhysicsEngine_constructor__P20724_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: PhysicsEngine_constructor__P20724, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function sprites_SpriteMap_constructor__P20659(s) { +let r0 = s.r0, 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__C20658_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_SpriteMap_constructor__P20659.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} + +function sprites_SpriteMap_constructor__P20659_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_SpriteMap_constructor__P20659, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function music_Melody_constructor__P20165(s) { +let r0 = s.r0, 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, music_Melody__C20162_VT)) failedCast(r0); + r0 = (s.arg0).fields["_text"] = (s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +music_Melody_constructor__P20165.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 music_Melody_constructor__P20165_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: music_Melody_constructor__P20165, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function control_pushEventContext__P18962(s) { +let r0 = s.r0, 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___29587 = undefined; + s.n___29593 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___22124); + 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___22124 = (r0); + case 1: + case 2: + s.tmp_0 = control_eventContext__P18961_mk(s); + s.callLocIdx = 65; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.ctx___29587 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___29587); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_EventContext_unregister__P18955_mk(s); + s.tmp_0.arg0 = s.ctx___29587; + s.callLocIdx = 66; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C18948_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventContext_constructor__P18952_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 67; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___29593 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___22124, s.n___29593); + r0 = s.n___29593; + return leave(s, r0) + default: oops() +} } } +control_pushEventContext__P18962.info = {"start":7123,"length":340,"line":216,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} + +function control_pushEventContext__P18962_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_pushEventContext__P18962, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + ctx___29587: undefined, + n___29593: undefined, +} } + + + + + +function control_eventContext__P18961(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___22124); + if (!r0) { step = 1; continue; } + s.tmp_0 = r0 = globals.eventContexts___22124; + r0 = pxsim_Array__length(globals.eventContexts___22124); + 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__P18961.info = {"start":6907,"length":136,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} + +function control_eventContext__P18961_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_eventContext__P18961, depth: s.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_unregister__P18955(s) { +let r0 = s.r0, 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___29622 = undefined; + s.unnamed222___U1 = undefined; + s.unnamed223___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C144413_VT)) failedCast(r0); - s.h___152086 = (undefined); + if (!checkSubtype(r0, control_EventContext__C18948_VT)) failedCast(r0); + s.h___29622 = (undefined); r0 = s.arg0.fields["handlers"]; - s.unnamed4582___U1 = (r0); - s.unnamed4583___U2 = (0); + s.unnamed222___U1 = (r0); + s.unnamed223___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed4583___U2; - r0 = pxsim_Array__length(s.unnamed4582___U1); + s.tmp_0 = r0 = s.unnamed223___U2; + r0 = pxsim_Array__length(s.unnamed222___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed4582___U1, s.unnamed4583___U2); - s.h___152086 = (r0); - s.tmp_2 = control_EventHandler_unregister__P144410_mk(s); - s.tmp_2.arg0 = s.h___152086; - s.pc = 3; return s.tmp_2; + r0 = pxsim_Array__getAt(s.unnamed222___U1, s.unnamed223___U2); + s.h___29622 = (r0); + s.tmp_2 = control_EventHandler_unregister__P22118_mk(s); + s.tmp_2.arg0 = s.h___29622; + s.callLocIdx = 61; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - r0 = (s.unnamed4583___U2 + 1); - s.unnamed4583___U2 = (r0); + r0 = (s.unnamed223___U2 + 1); + s.unnamed223___U2 = (r0); { step = 1; continue; } case 2: - s.unnamed4582___U1 = (undefined); + s.unnamed222___U1 = (undefined); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["frameWorker"]; s.tmp_2 = r0; @@ -17397,19 +17319,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventContext_unregister__P144418.info = {"start":4432,"length":131,"line":134,"column":8,"endLine":138,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +control_EventContext_unregister__P18955.info = {"start":4534,"length":131,"line":137,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function control_EventContext_unregister__P144418_mk(s) { +function control_EventContext_unregister__P18955_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P144418, depth: s.depth + 1, + parent: s, fn: control_EventContext_unregister__P18955, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___152086: undefined, - unnamed4582___U1: undefined, - unnamed4583___U2: undefined, + h___29622: undefined, + unnamed222___U1: undefined, + unnamed223___U2: undefined, arg0: undefined, } } @@ -17417,7 +17339,7 @@ function control_EventContext_unregister__P144418_mk(s) { -function control_EventHandler_unregister__P144410(s) { +function control_EventHandler_unregister__P22118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17432,24 +17354,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C144408_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventHandler__C22116_VT)) failedCast(r0); r0 = s.arg0.fields["src"]; s.tmp_0 = r0; r0 = s.arg0.fields["value"]; s.tmp_1 = r0; r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P144412, s.tmp_2); + r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P22120, s.tmp_2); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_unregister__P144410.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +control_EventHandler_unregister__P22118.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function control_EventHandler_unregister__P144410_mk(s) { +function control_EventHandler_unregister__P22118_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P144410, depth: s.depth + 1, + parent: s, fn: control_EventHandler_unregister__P22118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17461,7 +17383,34 @@ function control_EventHandler_unregister__P144410_mk(s) { -function control_doNothing__P144412(s) { +function control_doNothing__P22120(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_doNothing__P22120.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} + +function control_doNothing__P22120_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_doNothing__P22120, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function control_EventContext_constructor__P18952(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17471,24 +17420,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C18948_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["handlers"] = (s.tmp_1); + r0 = (s.arg0).fields["framesInSample"] = (0); + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["deltaTimeMillis"] = (0); + r0 = (s.arg0).fields["frameWorker"] = (0); + r0 = (s.arg0).fields["idleCallbacks"] = (undefined); + r0 = pxsim_numops_toBoolDecr(globals.control_EventContext_lastStats___18950); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_String_.mkEmpty(); + globals.control_EventContext_lastStats___18950 = (r0); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -control_doNothing__P144412.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +control_EventContext_constructor__P18952.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function control_doNothing__P144412_mk(s) { +function control_EventContext_constructor__P18952_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P144412, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P18952, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, } } -function control_EventContext_registerFrameHandler__P144419(s) { +function control_EventContext_registerFrameHandler__P18956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17498,8 +17475,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___153189 = undefined; - s.i___153199 = undefined; + s.fn___27744 = undefined; + s.i___27753 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -17507,7 +17484,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C144413_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C18948_VT)) failedCast(r0); r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -17520,20 +17497,20 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P144416_mk(s); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P22122_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 8; return s.tmp_0; + s.callLocIdx = 62; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C144407_VT); - s.fn___153189 = (r0); - r0 = (s.fn___153189).fields["order"] = (s.arg1); - r0 = (s.fn___153189).fields["handler"] = (s.arg2); - s.i___153199 = (0); + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C18945_VT); + s.fn___27744 = (r0); + r0 = (s.fn___27744).fields["order"] = (s.arg1); + r0 = (s.fn___27744).fields["handler"] = (s.arg2); + s.i___27753 = (0); case 3: - s.tmp_1 = r0 = s.i___153199; + s.tmp_1 = r0 = s.i___27753; r0 = s.arg0.fields["frameCallbacks"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -17544,7 +17521,7 @@ switch (step) { if (!r0) { step = 6; continue; } r0 = s.arg0.fields["frameCallbacks"]; s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.i___153199); + r0 = pxsim_Array__getAt(s.tmp_6, s.i___27753); r0 = r0.fields["order"]; s.tmp_5 = r0; r0 = (s.tmp_5 > s.arg1); @@ -17553,29 +17530,29 @@ switch (step) { if (!r0) { step = 4; continue; } r0 = s.arg0.fields["frameCallbacks"]; s.tmp_7 = r0; - r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___153199, s.fn___153189); - r0 = s.fn___153189; + r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___27753, s.fn___27744); + r0 = s.fn___27744; { step = 7; continue; } case 4: case 5: - r0 = (s.i___153199 + 1); - s.i___153199 = (r0); + r0 = (s.i___27753 + 1); + s.i___27753 = (r0); { step = 3; continue; } case 6: r0 = s.arg0.fields["frameCallbacks"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___153189); - r0 = s.fn___153189; + r0 = pxsim_Array__push(s.tmp_0, s.fn___27744); + r0 = s.fn___27744; case 7: return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P144419.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"]} +control_EventContext_registerFrameHandler__P18956.info = {"start":4675,"length":643,"line":143,"column":8,"endLine":160,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} -function control_EventContext_registerFrameHandler__P144419_mk(s) { +function control_EventContext_registerFrameHandler__P18956_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P144419, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P18956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17585,8 +17562,8 @@ function control_EventContext_registerFrameHandler__P144419_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - fn___153189: undefined, - i___153199: undefined, + fn___27744: undefined, + i___27753: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -17596,7 +17573,7 @@ function control_EventContext_registerFrameHandler__P144419_mk(s) { -function control_EventContext_registerFrameCallbacks__P144416(s) { +function control_EventContext_registerFrameCallbacks__P22122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17606,13 +17583,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___151932 = undefined; + s.worker___27787 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C144413_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C18948_VT)) failedCast(r0); r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -17625,28 +17602,28 @@ switch (step) { case 1: case 2: r0 = s.arg0.fields["frameWorker"]; - s.worker___151932 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P151938); + s.worker___27787 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P27793); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___151932); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___27787); r0 = pxsim.control.runInParallel(s.tmp_0); case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P144416.info = {"start":3379,"length":895,"line":102,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +control_EventContext_registerFrameCallbacks__P22122.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function control_EventContext_registerFrameCallbacks__P144416_mk(s) { +function control_EventContext_registerFrameCallbacks__P22122_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P144416, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P22122, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - worker___151932: undefined, + worker___27787: undefined, arg0: undefined, } } @@ -17654,7 +17631,7 @@ function control_EventContext_registerFrameCallbacks__P144416_mk(s) { -function inline__P151938(s) { +function inline__P27793(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17664,18 +17641,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___151968 = undefined; + s.delay___27823 = 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__P151944); + r0 = pxsim_pxtcore_mkAction(1, inline__P27799); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P144374_mk(s); + s.tmp_2 = pauseUntil__P18920_mk(s); s.tmp_2.arg0 = s.tmp_1; s.tmp_2.arg1 = undefined; - s.pc = 5; return s.tmp_2; + s.callLocIdx = 56; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 1: @@ -17695,15 +17672,15 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = control_EventContext_runCallbacks__P144415_mk(s); + s.tmp_2 = control_EventContext_runCallbacks__P22121_mk(s); s.tmp_2.arg0 = s.caps[0]; - s.pc = 6; return s.tmp_2; + s.callLocIdx = 57; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - s.delay___151968 = (r0); - s.tmp_0 = pause__P144435_mk(s); - s.tmp_0.arg0 = s.delay___151968; - s.pc = 7; return s.tmp_0; + s.delay___27823 = (r0); + s.tmp_0 = pause__P18966_mk(s); + s.tmp_0.arg0 = s.delay___27823; + s.callLocIdx = 58; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; { step = 3; continue; } @@ -17713,24 +17690,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P151938.info = {"start":3540,"length":723,"line":106,"column":34,"endLine":125,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +inline__P27793.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function inline__P151938_mk(s) { +function inline__P27793_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P151938, depth: s.depth + 1, + parent: s, fn: inline__P27793, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - delay___151968: undefined, + delay___27823: undefined, } } -function inline__P151944(s) { +function inline__P27799(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17748,12 +17725,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P151944.info = {"start":3771,"length":28,"line":110,"column":31,"endLine":110,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +inline__P27799.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function inline__P151944_mk(s) { +function inline__P27799_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P151944, depth: s.depth + 1, + parent: s, fn: inline__P27799, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17763,7 +17740,7 @@ function inline__P151944_mk(s) { -function control_EventContext_runCallbacks__P144415(s) { +function control_EventContext_runCallbacks__P22121(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17773,66 +17750,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___151977 = undefined; - s.f___151990 = undefined; - s.unnamed4578___U2 = undefined; - s.unnamed4579___U3 = undefined; - s.runtime___151996 = undefined; - s.fps___152016 = undefined; - s.delay___152078 = undefined; + s.loopStart___27832 = undefined; + s.f___27845 = undefined; + s.unnamed218___U2 = undefined; + s.unnamed219___U3 = undefined; + s.runtime___27850 = undefined; + s.fps___27870 = undefined; + s.delay___27932 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C144413_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C18948_VT)) failedCast(r0); r0 = pxsim.control.millis(); - s.loopStart___151977 = (r0); + s.loopStart___27832 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["prevTimeMillis"]; s.tmp_2 = r0; - r0 = (s.loopStart___151977 - s.tmp_2); + r0 = (s.loopStart___27832 - s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___151977); - s.f___151990 = (undefined); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___27832); + s.f___27845 = (undefined); r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed4578___U2 = (r0); - s.unnamed4579___U3 = (0); + s.unnamed218___U2 = (r0); + s.unnamed219___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed4579___U3; - r0 = pxsim_Array__length(s.unnamed4578___U2); + s.tmp_0 = r0 = s.unnamed219___U3; + r0 = pxsim_Array__length(s.unnamed218___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed4578___U2, s.unnamed4579___U3); - s.f___151990 = (r0); + r0 = pxsim_Array__getAt(s.unnamed218___U2, s.unnamed219___U3); + s.f___27845 = (r0); s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___151990; + s.tmp_2.arg0 = s.f___27845; if (!s.tmp_2.arg0.vtable.iface) { setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); - s.pc = 13; return s.tmp_2; + s.callLocIdx = 53; 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.pc = 13; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.pc = 13; return s.tmp_2;; } - else { s.pc = 13; return s.tmp_2; } + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 1); s.callLocIdx = 53; s.pc = 13; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 53; s.pc = 13; return s.tmp_2;; } + else { s.callLocIdx = 53; s.pc = 13; return s.tmp_2; } } case 13: r0 = s.retval; - r0 = (s.unnamed4579___U3 + 1); - s.unnamed4579___U3 = (r0); + r0 = (s.unnamed219___U3 + 1); + s.unnamed219___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed4578___U2 = (undefined); + s.unnamed218___U2 = (undefined); r0 = pxsim.control.millis(); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.loopStart___151977); - s.runtime___151996 = (r0); + r0 = (s.tmp_0 - s.loopStart___27832); + s.runtime___27850 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timeInSample"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___151996); + r0 = (s.tmp_2 + s.runtime___27850); s.tmp_1 = r0; r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; @@ -17865,8 +17842,8 @@ switch (step) { r0 = (s.tmp_6 / 1000); s.tmp_5 = r0; r0 = (s.tmp_4 / s.tmp_5); - s.fps___152016 = (r0); - r0 = pxsim.Math_.round(s.fps___152016); + s.fps___27870 = (r0); + r0 = pxsim.Math_.round(s.fps___27870); s.tmp_1 = r0; if ((s.tmp_1) && (s.tmp_1).vtable) { setupResume(s, 14); @@ -17878,21 +17855,21 @@ switch (step) { r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat("fps:", s.tmp_0); - globals.control_EventContext_lastStats___144425 = (r0); - r0 = (s.fps___152016 < 99); + globals.control_EventContext_lastStats___18950 = (r0); + r0 = (s.fps___27870 < 99); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___144425) && (globals.control_EventContext_lastStats___144425).vtable) { + if ((globals.control_EventContext_lastStats___18950) && (globals.control_EventContext_lastStats___18950).vtable) { setupResume(s, 15); - pxsim_String__stringConv(globals.control_EventContext_lastStats___144425); + pxsim_String__stringConv(globals.control_EventContext_lastStats___18950); checkResumeConsumed(); return; - } else { s.retval = (globals.control_EventContext_lastStats___144425) + ""; } + } else { s.retval = (globals.control_EventContext_lastStats___18950) + ""; } case 15: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.fps___152016 * 10); + r0 = (s.fps___27870 * 10); s.tmp_7 = r0; r0 = pxsim.Math_.round(s.tmp_7); s.tmp_6 = r0; @@ -17919,11 +17896,11 @@ switch (step) { r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - globals.control_EventContext_lastStats___144425 = (r0); + globals.control_EventContext_lastStats___18950 = (r0); case 5: case 6: - s.tmp_2 = control_ramSize__P144354_mk(s); - s.pc = 18; return s.tmp_2; + s.tmp_2 = control_ramSize__P18899_mk(s); + s.callLocIdx = 54; s.pc = 18; return s.tmp_2; case 18: r0 = s.retval; s.tmp_1 = r0; @@ -17942,7 +17919,7 @@ switch (step) { if (!r0) { step = 9; continue; } r0 = pxsim_String_.mkEmpty(); s.tmp_8 = r0; - r0 = (s.fps___152016 * 100); + r0 = (s.fps___27870 * 100); s.tmp_11 = r0; r0 = (s.tmp_11 | 0); s.tmp_10 = r0; @@ -17983,24 +17960,24 @@ switch (step) { r0 = (s.arg0).fields["framesInSample"] = (0); case 11: case 12: - s.tmp_0 = Math_max__P144204_mk(s); + s.tmp_0 = Math_max__P18689_mk(s); s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___151996); + r0 = (20 - s.runtime___27850); s.tmp_0.arg1 = r0; - s.pc = 21; return s.tmp_0; + s.callLocIdx = 55; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.delay___152078 = (r0); - r0 = s.delay___152078; + s.delay___27932 = (r0); + r0 = s.delay___27932; return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P144415.info = {"start":2080,"length":1246,"line":71,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +control_EventContext_runCallbacks__P22121.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} -function control_EventContext_runCallbacks__P144415_mk(s) { +function control_EventContext_runCallbacks__P22121_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P144415, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P22121, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18016,13 +17993,13 @@ function control_EventContext_runCallbacks__P144415_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - loopStart___151977: undefined, - f___151990: undefined, - unnamed4578___U2: undefined, - unnamed4579___U3: undefined, - runtime___151996: undefined, - fps___152016: undefined, - delay___152078: undefined, + loopStart___27832: undefined, + f___27845: undefined, + unnamed218___U2: undefined, + unnamed219___U3: undefined, + runtime___27850: undefined, + fps___27870: undefined, + delay___27932: undefined, arg0: undefined, } } @@ -18030,7 +18007,7 @@ function control_EventContext_runCallbacks__P144415_mk(s) { -function pauseUntil__P144374(s) { +function pauseUntil__P18920(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18057,7 +18034,7 @@ switch (step) { s.tmp_2 = lambda_1_mk(s); s.tmp_2.argL = s.arg0; setupLambda(s.tmp_2, s.tmp_2.argL); - s.pc = 8; return s.tmp_2; + s.callLocIdx = 33; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; case 2: @@ -18077,11 +18054,11 @@ switch (step) { s.arg1 = (0); case 5: case 6: - s.tmp_0 = control___queuePollEvent__P144373_mk(s); + s.tmp_0 = control___queuePollEvent__P18919_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = undefined; - s.pc = 9; return s.tmp_0; + s.callLocIdx = 34; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; case 7: @@ -18089,12 +18066,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pauseUntil__P144374.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +pauseUntil__P18920.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 pauseUntil__P144374_mk(s) { +function pauseUntil__P18920_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P144374, depth: s.depth + 1, + parent: s, fn: pauseUntil__P18920, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18110,7 +18087,7 @@ function pauseUntil__P144374_mk(s) { -function control___queuePollEvent__P144373(s) { +function control___queuePollEvent__P18919(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18120,16 +18097,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___151542 = undefined; + s.ev___27954 = 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__C144368_VT); + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C22095_VT); s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P144369_mk(s); + s.tmp_1 = control_PollEvent_constructor__P22096_mk(s); s.tmp_1.arg0 = s.tmp_0; r0 = pxsim.control.allocateNotifyEvent(); s.tmp_1.arg1 = r0; @@ -18142,11 +18119,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1.arg6 = r0; - s.pc = 5; return s.tmp_1; + s.callLocIdx = 31; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - s.ev___151542 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___144371); + s.ev___27954 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___22098); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -18154,30 +18131,30 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.ev___151542); - globals._pollEventQueue___144371 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P144372); + r0 = pxsim_Array__push(s.tmp_2, s.ev___27954); + globals._pollEventQueue___22098 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P22099); { step = 2; continue; } case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___144371, s.ev___151542); + r0 = pxsim_Array__push(globals._pollEventQueue___22098, s.ev___27954); case 2: r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P144406_mk(s); - r0 = s.ev___151542.fields["eid"]; + s.tmp_0 = control_onEvent__P18944_mk(s); + r0 = s.ev___27954.fields["eid"]; s.tmp_0.arg0 = r0; - r0 = s.ev___151542.fields["vid"]; + r0 = s.ev___27954.fields["vid"]; s.tmp_0.arg1 = r0; s.tmp_0.arg2 = s.arg2; s.tmp_0.arg3 = 16; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 32; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; { step = 4; continue; } case 3: - r0 = s.ev___151542.fields["eid"]; + r0 = s.ev___27954.fields["eid"]; s.tmp_0 = r0; - r0 = s.ev___151542.fields["vid"]; + r0 = s.ev___27954.fields["vid"]; s.tmp_1 = r0; setupResume(s, 7); pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); @@ -18190,17 +18167,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___queuePollEvent__P144373.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"]} +control___queuePollEvent__P18919.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 control___queuePollEvent__P144373_mk(s) { +function control___queuePollEvent__P18919_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P144373, depth: s.depth + 1, + parent: s, fn: control___queuePollEvent__P18919, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ev___151542: undefined, + ev___27954: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -18210,7 +18187,7 @@ function control___queuePollEvent__P144373_mk(s) { -function control_onEvent__P144406(s) { +function control_pollEvents__P22099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18220,63 +18197,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___151584 = 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.now___28080 = undefined; + s.i___28083 = undefined; + s.ev___28089 = undefined; + case 1: + r0 = pxsim_Array__length(globals._pollEventQueue___22098); + 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___28080 = (r0); + s.i___28083 = (0); + case 2: + s.tmp_1 = r0 = s.i___28083; + r0 = pxsim_Array__length(globals._pollEventQueue___22098); + 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___22098, s.i___28083); + s.ev___28089 = (r0); + s.tmp_1 = if_condition_1_mk(s); + s.tmp_1.arg0 = s.ev___28089; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); + s.callLocIdx = 28; 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 = 28; s.pc = 13; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 28; s.pc = 13; return s.tmp_1;; } + else { s.callLocIdx = 28; s.pc = 13; return s.tmp_1; } } - s.tmp_0 = control_eventContext__P144429_mk(s); - s.pc = 3; return s.tmp_0; - case 3: + case 13: r0 = s.retval; - s.ctx___151584 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___151584); - 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 = 3; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 3: + r0 = s.ev___28089.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___28089.fields["start"]; + s.tmp_5 = r0; + r0 = (s.now___28080 - s.tmp_5); + s.tmp_4 = r0; + r0 = s.ev___28089.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___28089.fields["eid"]; + s.tmp_9 = r0; + r0 = s.ev___28089.fields["vid"]; + s.tmp_10 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); + r0 = s.ev___28089.fields["once"]; 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); + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_arraySplice__P18662_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___22098; + s.tmp_1.arg1 = s.i___28083; + s.tmp_1.arg2 = 1; + s.callLocIdx = 29; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + r0 = (s.i___28083 - 1); + s.i___28083 = (r0); + case 7: + case 8: + case 9: + case 10: + r0 = (s.i___28083 + 1); + s.i___28083 = (r0); { step = 2; continue; } - case 1: - s.tmp_0 = control_EventContext_registerHandler__P144421_mk(s); - s.tmp_0.arg0 = s.ctx___151584; - 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.pc = 4; return s.tmp_0; - case 4: + case 11: + s.tmp_0 = pause__P18966_mk(s); + s.tmp_0.arg0 = 50; + s.callLocIdx = 30; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - case 2: + { step = 1; continue; } + case 12: + globals._pollEventQueue___22098 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -control_onEvent__P144406.info = {"start":336,"length":325,"line":9,"column":4,"endLine":15,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"onEvent","argumentNames":["src","value","handler","flags"]} +control_pollEvents__P22099.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} -function control_onEvent__P144406_mk(s) { +function control_pollEvents__P22099_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P144406, depth: s.depth + 1, + parent: s, fn: control_pollEvents__P22099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___151584: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: 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___28080: undefined, + i___28083: undefined, + ev___28089: undefined, } } -function control_EventContext_registerHandler__P144421(s) { +function helpers_arraySplice__P18662(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18286,113 +18339,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___151607 = undefined; - s.unnamed4584___U1 = undefined; - s.unnamed4585___U2 = undefined; - s.hn___151630 = undefined; + s.i___28137 = 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__C144413_VT)) failedCast(r0); - s.h___151607 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed4584___U1 = (r0); - s.unnamed4585___U2 = (0); + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 5; continue; } case 1: - s.tmp_0 = r0 = s.unnamed4585___U2; - r0 = pxsim_Array__length(s.unnamed4584___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed4584___U1, s.unnamed4585___U2); - s.h___151607 = (r0); - r0 = s.h___151607.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___151607.fields["value"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 == s.arg2); + s.i___28137 = (0); case 3: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + r0 = (s.i___28137 < s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = (s.h___151607).fields["flags"] = (s.arg4); - r0 = (s.h___151607).fields["handler"] = (s.arg3); - { step = 7; continue; } + r0 = pxsim_Array_.removeAt(s.arg0, s.arg1); + r0 = (s.i___28137 + 1); + s.i___28137 = (r0); + { step = 3; continue; } case 4: case 5: - r0 = (s.unnamed4585___U2 + 1); - s.unnamed4585___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed4584___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C144408_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P144411_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.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - s.hn___151630 = (s.tmp_0); - r0 = s.arg0.fields["handlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___151630); - s.tmp_0 = control_EventHandler_register__P144409_mk(s); - s.tmp_0.arg0 = s.hn___151630; - s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P144421.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"]} +helpers_arraySplice__P18662.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 control_EventContext_registerHandler__P144421_mk(s) { +function helpers_arraySplice__P18662_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P144421, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P18662, depth: s.depth + 1, pc: 0, retval: undefined, 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___151607: undefined, - unnamed4584___U1: undefined, - unnamed4585___U2: undefined, - hn___151630: undefined, + i___28137: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_constructor__P144411(s) { +function control_PollEvent_constructor__P22096(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18408,37 +18403,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, control_EventHandler__C144408_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); + if (!checkSubtype(r0, control_PollEvent__C22095_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() } } } -control_EventHandler_constructor__P144411.info = {"start":786,"length":165,"line":23,"column":8,"endLine":28,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this","src","value","handler","flags"]} +control_PollEvent_constructor__P22096.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} -function control_EventHandler_constructor__P144411_mk(s) { +function control_PollEvent_constructor__P22096_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P144411, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P22096, 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, + arg6: undefined, } } -function control_EventHandler_register__P144409(s) { +function control_onEvent__P18944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18448,93 +18449,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ctx___27996 = 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, control_EventHandler__C144408_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P151651); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = s.arg0.fields["src"]; + s.tmp_0 = control_eventContext__P18961_mk(s); + s.callLocIdx = 50; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ctx___27996 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___27996); s.tmp_1 = r0; - r0 = s.arg0.fields["value"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["flags"]; - s.tmp_3 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -control_EventHandler_register__P144409.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} - -function control_EventHandler_register__P144409_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_EventHandler_register__P144409, depth: s.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__P151651(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = s.caps[0].fields["handler"]; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = 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.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.pc = 3; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.pc = 3; return s.tmp_1;; } - else { s.pc = 3; return s.tmp_1; } - } - case 3: - r0 = s.retval; + r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); + { step = 2; continue; } case 1: + s.tmp_0 = control_EventContext_registerHandler__P18958_mk(s); + s.tmp_0.arg0 = s.ctx___27996; + 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 = 51; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P151651.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +control_onEvent__P18944.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 inline__P151651_mk(s) { +function control_onEvent__P18944_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P151651, depth: s.depth + 1, + parent: s, fn: control_onEvent__P18944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + ctx___27996: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function control_pollEvents__P144372(s) { +function control_EventContext_registerHandler__P18958(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18544,117 +18515,90 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___151668 = undefined; - s.i___151671 = undefined; - s.ev___151677 = undefined; + s.h___28019 = undefined; + s.unnamed224___U1 = undefined; + s.unnamed225___U2 = undefined; + s.hn___28042 = 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__C18948_VT)) failedCast(r0); + s.h___28019 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed224___U1 = (r0); + s.unnamed225___U2 = (0); case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___144371); + s.tmp_0 = r0 = s.unnamed225___U2; + r0 = pxsim_Array__length(s.unnamed224___U1); 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___151668 = (r0); - s.i___151671 = (0); - case 2: - s.tmp_1 = r0 = s.i___151671; - r0 = pxsim_Array__length(globals._pollEventQueue___144371); - 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___144371, s.i___151671); - s.ev___151677 = (r0); - s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___151677; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); - 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.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.pc = 13; return s.tmp_1;; } - else { 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___151677.fields["timeOut"]; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed224___U1, s.unnamed225___U2); + s.h___28019 = (r0); + r0 = s.h___28019.fields["src"]; s.tmp_3 = r0; - r0 = (s.tmp_3 > 0); + r0 = (s.tmp_3 == s.arg1); s.tmp_2 = r0; r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 4; continue; } + if (r0) { step = 2; continue; } r0 = s.tmp_2; - { step = 5; continue; } - case 4: - r0 = s.ev___151677.fields["start"]; - s.tmp_5 = r0; - r0 = (s.now___151668 - s.tmp_5); + { step = 3; continue; } + case 2: + r0 = s.h___28019.fields["value"]; s.tmp_4 = r0; - r0 = s.ev___151677.fields["timeOut"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 > s.tmp_6); - case 5: + r0 = (s.tmp_4 == s.arg2); + case 3: // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 4; continue; } + r0 = (s.h___28019).fields["flags"] = (s.arg4); + r0 = (s.h___28019).fields["handler"] = (s.arg3); + { step = 7; continue; } + case 4: + case 5: + r0 = (s.unnamed225___U2 + 1); + s.unnamed225___U2 = (r0); + { step = 1; continue; } 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___151677.fields["eid"]; - s.tmp_9 = r0; - r0 = s.ev___151677.fields["vid"]; - s.tmp_10 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___151677.fields["once"]; + s.unnamed224___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C22116_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P144175_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___144371; - s.tmp_1.arg1 = s.i___151671; - s.tmp_1.arg2 = 1; - s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - r0 = (s.i___151671 - 1); - s.i___151671 = (r0); - case 7: + s.tmp_1 = control_EventHandler_constructor__P22119_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 = 63; s.pc = 8; return s.tmp_1; case 8: + r0 = s.retval; + s.hn___28042 = (s.tmp_0); + r0 = s.arg0.fields["handlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.hn___28042); + s.tmp_0 = control_EventHandler_register__P22117_mk(s); + s.tmp_0.arg0 = s.hn___28042; + s.callLocIdx = 64; s.pc = 9; return s.tmp_0; case 9: - case 10: - r0 = (s.i___151671 + 1); - s.i___151671 = (r0); - { step = 2; continue; } - case 11: - s.tmp_0 = pause__P144435_mk(s); - s.tmp_0.arg0 = 50; - s.pc = 15; return s.tmp_0; - case 15: r0 = s.retval; - { step = 1; continue; } - case 12: - globals._pollEventQueue___144371 = (undefined); + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_pollEvents__P144372.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +control_EventContext_registerHandler__P18958.info = {"start":5573,"length":525,"line":169,"column":8,"endLine":182,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} -function control_pollEvents__P144372_mk(s) { +function control_EventContext_registerHandler__P18958_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P144372, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P18958, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18662,21 +18606,22 @@ function control_pollEvents__P144372_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, - now___151668: undefined, - i___151671: undefined, - ev___151677: undefined, + h___28019: undefined, + unnamed224___U1: undefined, + unnamed225___U2: undefined, + hn___28042: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function helpers_arraySplice__P144175(s) { +function control_EventHandler_constructor__P22119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18686,55 +18631,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___151013 = 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.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } - case 1: - case 2: - s.i___151013 = (0); - case 3: - r0 = (s.i___151013 < 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___151013 + 1); - s.i___151013 = (r0); - { step = 3; continue; } - case 4: - case 5: + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C22116_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() } } } -helpers_arraySplice__P144175.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"]} +control_EventHandler_constructor__P22119.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 helpers_arraySplice__P144175_mk(s) { +function control_EventHandler_constructor__P22119_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P144175, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P22119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - i___151013: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function control_PollEvent_constructor__P144369(s) { +function control_EventHandler_register__P22117(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18746,47 +18679,43 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_PollEvent__C144368_VT)) failedCast(r0); - r0 = (s.arg0).fields["eid"] = (s.arg1); - r0 = (s.arg0).fields["vid"] = (s.arg2); - r0 = (s.arg0).fields["start"] = (s.arg3); - r0 = (s.arg0).fields["timeOut"] = (s.arg4); - r0 = (s.arg0).fields["condition"] = (s.arg5); - r0 = (s.arg0).fields["once"] = (s.arg6); + if (!checkSubtype(r0, control_EventHandler__C22116_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P28063); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = s.arg0.fields["src"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["value"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["flags"]; + s.tmp_3 = r0; + r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); r0 = undefined; return leave(s, r0) default: oops() } } } -control_PollEvent_constructor__P144369.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} +control_EventHandler_register__P22117.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function control_PollEvent_constructor__P144369_mk(s) { +function control_EventHandler_register__P22117_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P144369, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P22117, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function Sprite_vy__P144892(s) { +function inline__P28063(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18796,42 +18725,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + r0 = s.caps[0].fields["handler"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = if_handler_1_mk(s); + s.tmp_1.arg0 = s.caps[0]; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "handler"), 1); + s.callLocIdx = 52; 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 = 52; s.pc = 3; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 52; s.pc = 3; return s.tmp_1;; } + else { s.callLocIdx = 52; s.pc = 3; return s.tmp_1; } } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_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); + case 3: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_vy__P144892.info = {"start":2705,"length":51,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} +inline__P28063.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function Sprite_vy__P144892_mk(s) { +function inline__P28063_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P144892, depth: s.depth + 1, + parent: s, fn: inline__P28063, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, } } -function Sprite_vy__P144891(s) { +function Sprite_vy__P20596(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18843,33 +18775,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, Sprite__C144883_VT)) failedCast(r0); - r0 = s.arg0.fields["_vy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_vy__P144891.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__P144891.isGetter = true; +Sprite_vy__P20596.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_vy__P144891_mk(s) { +function Sprite_vy__P20596_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P144891, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P20596, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function Fx_toFloat__P144254(s) { +function Sprite_vy__P20595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18883,17 +18822,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 / 256); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + r0 = s.arg0.fields["_vy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -Fx_toFloat__P144254.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} +Sprite_vy__P20595.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__P20595.isGetter = true; -function Fx_toFloat__P144254_mk(s) { +function Sprite_vy__P20595_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toFloat__P144254, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P20595, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -18901,7 +18846,7 @@ function Fx_toFloat__P144254_mk(s) { -function Sprite_vx__P144890(s) { +function Sprite_vx__P20594(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18917,7 +18862,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -18928,12 +18873,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_vx__P144890.info = {"start":2374,"length":51,"line":97,"column":4,"endLine":99,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +Sprite_vx__P20594.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 Sprite_vx__P144890_mk(s) { +function Sprite_vx__P20594_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P144890, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P20594, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18946,7 +18891,7 @@ function Sprite_vx__P144890_mk(s) { -function Sprite_vx__P144889(s) { +function Sprite_vx__P20593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18961,20 +18906,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["_vx"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_vx__P144889.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__P144889.isGetter = true; +Sprite_vx__P20593.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__P20593.isGetter = true; -function Sprite_vx__P144889_mk(s) { +function Sprite_vx__P20593_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P144889, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P20593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -18984,7 +18929,7 @@ function Sprite_vx__P144889_mk(s) { -function helpers_arrayForEach__P144186(s) { +function helpers_arrayForEach__P18671(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18994,49 +18939,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___155841 = undefined; - s.i___155844 = undefined; + s.len___31519 = undefined; + s.i___31522 = 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___155841 = (r0); - s.i___155844 = (0); + s.len___31519 = (r0); + s.i___31522 = (0); case 1: - r0 = (s.i___155844 < s.len___155841); + r0 = (s.i___31522 < s.len___31519); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } s.tmp_1 = lambda_3_mk(s); s.tmp_1.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___155844); + r0 = pxsim_Array__getAt(s.arg0, s.i___31522); s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___155844; + s.tmp_1.arg1 = s.i___31522; setupLambda(s.tmp_1, s.tmp_1.argL); - s.pc = 3; return s.tmp_1; + s.callLocIdx = 5; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - r0 = (s.i___155844 + 1); - s.i___155844 = (r0); + r0 = (s.i___31522 + 1); + s.i___31522 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P144186.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"]} +helpers_arrayForEach__P18671.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__P144186_mk(s) { +function helpers_arrayForEach__P18671_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P144186, depth: s.depth + 1, + parent: s, fn: helpers_arrayForEach__P18671, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___155841: undefined, - i___155844: undefined, + len___31519: undefined, + i___31522: undefined, arg0: undefined, arg1: undefined, } } @@ -19045,7 +18990,7 @@ function helpers_arrayForEach__P144186_mk(s) { -function sprites_allOfKind__P144879(s) { +function sprites_allOfKind__P20539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19055,17 +19000,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___151306 = undefined; + s.spritesByKind___27177 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 6; return s.tmp_0; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 238; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; r0 = r0.fields["spritesByKind"]; - s.spritesByKind___151306 = (r0); + s.spritesByKind___27177 = (r0); r0 = (s.arg0 >= 0); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -19077,7 +19022,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___151306, s.arg0); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___27177, s.arg0); s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -19091,10 +19036,10 @@ switch (step) { { step = 5; continue; } { step = 4; continue; } case 3: - s.tmp_6 = sprites_SpriteSet_sprites__P144960_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___151306, s.arg0); + s.tmp_6 = sprites_SpriteSet_sprites__P20679_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___27177, s.arg0); s.tmp_6.arg0 = r0; - s.pc = 7; return s.tmp_6; + s.callLocIdx = 239; s.pc = 7; return s.tmp_6; case 7: r0 = s.retval; { step = 5; continue; } @@ -19104,12 +19049,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_allOfKind__P144879.info = {"start":1561,"length":234,"line":56,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"allOfKind","argumentNames":["kind"]} +sprites_allOfKind__P20539.info = {"start":1561,"length":234,"line":56,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"allOfKind","argumentNames":["kind"]} -function sprites_allOfKind__P144879_mk(s) { +function sprites_allOfKind__P20539_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_allOfKind__P144879, depth: s.depth + 1, + parent: s, fn: sprites_allOfKind__P20539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19118,7 +19063,7 @@ function sprites_allOfKind__P144879_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - spritesByKind___151306: undefined, + spritesByKind___27177: undefined, arg0: undefined, } } @@ -19126,7 +19071,7 @@ function sprites_allOfKind__P144879_mk(s) { -function sprites_SpriteSet_sprites__P144960(s) { +function sprites_SpriteSet_sprites__P20679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19141,8 +19086,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C144957_VT)) failedCast(r0); - s.tmp_0 = helpers_arraySlice__P144191_mk(s); + if (!checkSubtype(r0, sprites_SpriteSet__C20675_VT)) failedCast(r0); + s.tmp_0 = helpers_arraySlice__P18676_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 0; @@ -19150,18 +19095,18 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Array__length(s.tmp_1); s.tmp_0.arg2 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 516; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_sprites__P144960.info = {"start":787,"length":86,"line":33,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"sprites","argumentNames":["this"]} +sprites_SpriteSet_sprites__P20679.info = {"start":787,"length":86,"line":33,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"sprites","argumentNames":["this"]} -function sprites_SpriteSet_sprites__P144960_mk(s) { +function sprites_SpriteSet_sprites__P20679_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_sprites__P144960, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_sprites__P20679, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19172,7 +19117,7 @@ function sprites_SpriteSet_sprites__P144960_mk(s) { -function inline__P185355(s) { +function inline__P27206(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19182,57 +19127,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___185358 = undefined; - s.src___185363 = undefined; + s.factory___27209 = undefined; + s.src___27214 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_AshFactory__C145917_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_AshFactory__C21322_VT); s.tmp_0 = r0; - s.tmp_1 = particles_AshFactory_constructor__P145921_mk(s); + s.tmp_1 = particles_AshFactory_constructor__P21323_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; s.tmp_1.arg2 = undefined; s.tmp_1.arg3 = 20; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 39; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - s.factory___185358 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C145812_VT); + s.factory___27209 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C21242_VT); s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P145830_mk(s); + s.tmp_1 = particles_ParticleSource_constructor__P21247_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___185358; - s.pc = 2; return s.tmp_1; + s.tmp_1.arg3 = s.factory___27209; + s.callLocIdx = 40; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.src___185363 = (s.tmp_0); - s.tmp_0 = particles_ParticleSource_setAcceleration__P145817_mk(s); - s.tmp_0.arg0 = s.src___185363; + s.src___27214 = (s.tmp_0); + s.tmp_0 = particles_ParticleSource_setAcceleration__P21251_mk(s); + s.tmp_0.arg0 = s.src___27214; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 500; - s.pc = 3; return s.tmp_0; + s.callLocIdx = 41; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - r0 = s.src___185363; + r0 = s.src___27214; return leave(s, r0) default: oops() } } } -inline__P185355.info = {"start":10791,"length":281,"line":274,"column":54,"endLine":279,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +inline__P27206.info = {"start":10791,"length":281,"line":274,"column":54,"endLine":279,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function inline__P185355_mk(s) { +function inline__P27206_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P185355, depth: s.depth + 1, + parent: s, fn: inline__P27206, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - factory___185358: undefined, - src___185363: undefined, + factory___27209: undefined, + src___27214: undefined, arg0: undefined, arg1: undefined, } } @@ -19241,7 +19186,7 @@ function inline__P185355_mk(s) { -function particles_AshFactory_constructor__P145921(s) { +function particles_AshFactory_constructor__P21323(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19251,12 +19196,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.counts___185395 = undefined; - s.i___185397 = undefined; - s.result___185406 = undefined; - s.x___185411 = undefined; - s.y___185417 = undefined; - s.c___185423 = undefined; + s.counts___30060 = undefined; + s.i___30062 = undefined; + s.result___30071 = undefined; + s.x___30076 = undefined; + s.y___30082 = undefined; + s.c___30088 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -19265,7 +19210,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AshFactory__C145917_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AshFactory__C21322_VT)) failedCast(r0); s.tmp_1 = if_width_1_mk(s); s.tmp_1.arg0 = s.arg1; if (!s.tmp_1.arg0.vtable.iface) { @@ -19274,7 +19219,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["width"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["width"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.pc = 20; return s.tmp_1; } + else { s.callLocIdx = 1227; s.pc = 20; return s.tmp_1; } } case 20: r0 = s.retval; @@ -19289,7 +19234,7 @@ switch (step) { 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.pc = 21; return s.tmp_2; } + else { s.callLocIdx = 1228; s.pc = 21; return s.tmp_2; } } case 21: r0 = s.retval; @@ -19307,7 +19252,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["height"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["height"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.pc = 22; return s.tmp_5; } + else { s.callLocIdx = 1229; s.pc = 22; return s.tmp_5; } } case 22: r0 = s.retval; @@ -19322,7 +19267,7 @@ switch (step) { s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["height"]; if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["height"]; } else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.pc = 23; return s.tmp_7; } + else { s.callLocIdx = 1230; s.pc = 23; return s.tmp_7; } } case 23: r0 = s.retval; @@ -19334,13 +19279,13 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_8 = r0; - s.tmp_9 = particles_AreaFactory_constructor__P145887_mk(s); + s.tmp_9 = particles_AreaFactory_constructor__P21293_mk(s); s.tmp_9.arg0 = s.arg0; s.tmp_9.arg1 = s.tmp_3; s.tmp_9.arg2 = s.tmp_8; s.tmp_9.arg3 = 300; s.tmp_9.arg4 = 700; - s.pc = 24; return s.tmp_9; + s.callLocIdx = 1231; s.pc = 24; return s.tmp_9; case 24: r0 = s.retval; s.tmp_3 = if_image_1_mk(s); @@ -19351,7 +19296,7 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["image"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["image"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.pc = 25; return s.tmp_3; } + else { s.callLocIdx = 1232; s.pc = 25; return s.tmp_3; } } case 25: r0 = s.retval; @@ -19362,13 +19307,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C145915_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C22832_VT); s.tmp_4 = r0; - s.tmp_5 = particles_ColorCount_constructor__P145916_mk(s); + s.tmp_5 = particles_ColorCount_constructor__P22833_mk(s); s.tmp_5.arg0 = s.tmp_4; s.tmp_5.arg1 = 1; s.tmp_5.arg2 = 20; - s.pc = 26; return s.tmp_5; + s.callLocIdx = 1233; s.pc = 26; return s.tmp_5; case 26: r0 = s.retval; r0 = pxsim_Array__mk(); @@ -19380,16 +19325,16 @@ switch (step) { case 5: case 6: r0 = pxsim_Array__mk(); - s.counts___185395 = (r0); - s.i___185397 = (0); + s.counts___30060 = (r0); + s.i___30062 = (0); case 7: - r0 = (s.i___185397 <= 15); + r0 = (s.i___30062 <= 15); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - r0 = pxsim_Array_.setAt(s.counts___185395, s.i___185397, 0); - r0 = (s.i___185397 + 1); - s.i___185397 = (r0); + r0 = pxsim_Array_.setAt(s.counts___30060, s.i___30062, 0); + r0 = (s.i___30062 + 1); + s.i___30062 = (r0); { step = 7; continue; } case 8: s.tmp_1 = if_image_1_mk(s); @@ -19400,44 +19345,44 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["image"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["image"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.pc = 27; return s.tmp_1; } + else { s.callLocIdx = 1234; s.pc = 27; return s.tmp_1; } } case 27: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_0); - s.result___185406 = (r0); - s.x___185411 = (0); + s.result___30071 = (r0); + s.x___30076 = (0); case 9: - s.tmp_1 = r0 = s.x___185411; - r0 = pxsim_ImageMethods.width(s.result___185406); + s.tmp_1 = r0 = s.x___30076; + r0 = pxsim_ImageMethods.width(s.result___30071); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - s.y___185417 = (0); + s.y___30082 = (0); case 10: - s.tmp_1 = r0 = s.y___185417; - r0 = pxsim_ImageMethods.height(s.result___185406); + s.tmp_1 = r0 = s.y___30082; + r0 = pxsim_ImageMethods.height(s.result___30071); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = pxsim_ImageMethods.getPixel(s.result___185406, s.x___185411, s.y___185417); - s.c___185423 = (r0); - s.tmp_0 = r0 = s.c___185423; + r0 = pxsim_ImageMethods.getPixel(s.result___30071, s.x___30076, s.y___30082); + s.c___30088 = (r0); + s.tmp_0 = r0 = s.c___30088; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 11; continue; } r0 = s.tmp_0; { step = 12; continue; } case 11: - s.tmp_1 = Math_FastRandom_percentChance__P145667_mk(s); + s.tmp_1 = Math_FastRandom_percentChance__P21157_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg3; - s.pc = 28; return s.tmp_1; + s.callLocIdx = 1235; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; case 12: @@ -19445,45 +19390,45 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.counts___185395; - s.tmp_4 = r0 = s.c___185423; - r0 = pxsim_Array__getAt(s.tmp_3, s.c___185423); + s.tmp_3 = r0 = s.counts___30060; + s.tmp_4 = r0 = s.c___30088; + r0 = pxsim_Array__getAt(s.tmp_3, s.c___30088); s.tmp_6 = r0; r0 = (s.tmp_6 + 1); s.tmp_5 = r0; r0 = pxsim_Array_.setAt(s.tmp_3, s.tmp_4, s.tmp_5); - r0 = pxsim_ImageMethods.setPixel(s.result___185406, s.x___185411, s.y___185417, 0); + r0 = pxsim_ImageMethods.setPixel(s.result___30071, s.x___30076, s.y___30082, 0); case 13: case 14: - r0 = (s.y___185417 + 1); - s.y___185417 = (r0); + r0 = (s.y___30082 + 1); + s.y___30082 = (r0); { step = 10; continue; } case 15: - r0 = (s.x___185411 + 1); - s.x___185411 = (r0); + r0 = (s.x___30076 + 1); + s.x___30076 = (r0); { step = 9; continue; } case 16: r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 17; continue; } - s.tmp_0 = Sprite_setImage__P144905_mk(s); + s.tmp_0 = Sprite_setImage__P20620_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.result___185406; - s.pc = 29; return s.tmp_0; + s.tmp_0.arg1 = s.result___30071; + s.callLocIdx = 1236; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; case 17: case 18: s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P144187_mk(s); - s.tmp_3 = helpers_arrayMap__P144183_mk(s); - s.tmp_3.arg0 = s.counts___185395; - s.tmp_3.arg1 = inline__P185457; - s.pc = 31; return s.tmp_3; + s.tmp_2 = helpers_arrayFilter__P18672_mk(s); + s.tmp_3 = helpers_arrayMap__P18668_mk(s); + s.tmp_3.arg0 = s.counts___30060; + s.tmp_3.arg1 = inline__P30122; + s.callLocIdx = 1238; s.pc = 31; return s.tmp_3; case 31: r0 = s.retval; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P185464; - s.pc = 30; return s.tmp_2; + s.tmp_2.arg1 = inline__P30129; + s.callLocIdx = 1239; s.pc = 30; return s.tmp_2; case 30: r0 = s.retval; s.tmp_1 = r0; @@ -19493,12 +19438,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_AshFactory_constructor__P145921.info = {"start":11775,"length":1466,"line":385,"column":8,"endLine":423,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","anchor","updateImage","percentKept"]} +particles_AshFactory_constructor__P21323.info = {"start":11775,"length":1466,"line":385,"column":8,"endLine":423,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","anchor","updateImage","percentKept"]} -function particles_AshFactory_constructor__P145921_mk(s) { +function particles_AshFactory_constructor__P21323_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AshFactory_constructor__P145921, depth: s.depth + 1, + parent: s, fn: particles_AshFactory_constructor__P21323, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19510,12 +19455,12 @@ function particles_AshFactory_constructor__P145921_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - counts___185395: undefined, - i___185397: undefined, - result___185406: undefined, - x___185411: undefined, - y___185417: undefined, - c___185423: undefined, + counts___30060: undefined, + i___30062: undefined, + result___30071: undefined, + x___30076: undefined, + y___30082: undefined, + c___30088: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -19526,7 +19471,7 @@ function particles_AshFactory_constructor__P145921_mk(s) { -function inline__P185457(s) { +function inline__P30122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19541,25 +19486,25 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C145915_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ColorCount__C22832_VT); s.tmp_0 = r0; - s.tmp_1 = particles_ColorCount_constructor__P145916_mk(s); + s.tmp_1 = particles_ColorCount_constructor__P22833_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg0; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 1237; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -inline__P185457.info = {"start":13124,"length":62,"line":421,"column":21,"endLine":421,"endColumn":83,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["value","index"]} +inline__P30122.info = {"start":13124,"length":62,"line":421,"column":21,"endLine":421,"endColumn":83,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["value","index"]} -function inline__P185457_mk(s) { +function inline__P30122_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P185457, depth: s.depth + 1, + parent: s, fn: inline__P30122, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19571,7 +19516,7 @@ function inline__P185457_mk(s) { -function inline__P185464(s) { +function inline__P30129(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19591,12 +19536,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P185464.info = {"start":13212,"length":17,"line":422,"column":24,"endLine":422,"endColumn":41,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["v"]} +inline__P30129.info = {"start":13212,"length":17,"line":422,"column":24,"endLine":422,"endColumn":41,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["v"]} -function inline__P185464_mk(s) { +function inline__P30129_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P185464, depth: s.depth + 1, + parent: s, fn: inline__P30129, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -19606,7 +19551,7 @@ function inline__P185464_mk(s) { -function particles_ColorCount_constructor__P145916(s) { +function particles_ColorCount_constructor__P22833(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19623,19 +19568,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ColorCount__C145915_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ColorCount__C22832_VT)) failedCast(r0); r0 = (s.arg0).fields["color"] = (s.arg1); r0 = (s.arg0).fields["count"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ColorCount_constructor__P145916.info = {"start":11603,"length":59,"line":379,"column":8,"endLine":379,"endColumn":67,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","color","count"]} +particles_ColorCount_constructor__P22833.info = {"start":11603,"length":59,"line":379,"column":8,"endLine":379,"endColumn":67,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","color","count"]} -function particles_ColorCount_constructor__P145916_mk(s) { +function particles_ColorCount_constructor__P22833_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ColorCount_constructor__P145916, depth: s.depth + 1, + parent: s, fn: particles_ColorCount_constructor__P22833, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -19646,7 +19591,7 @@ function particles_ColorCount_constructor__P145916_mk(s) { -function Math_FastRandom_percentChance__P145667(s) { +function Math_FastRandom_percentChance__P21157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19662,12 +19607,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C145662_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_randomRange__P145664_mk(s); + if (!checkSubtype(r0, Math_FastRandom__C21150_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_randomRange__P21154_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = 100; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 947; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; @@ -19675,12 +19620,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_percentChance__P145667.info = {"start":2892,"length":106,"line":87,"column":8,"endLine":89,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["this","percent"]} +Math_FastRandom_percentChance__P21157.info = {"start":2925,"length":106,"line":88,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"percentChance","argumentNames":["this","percent"]} -function Math_FastRandom_percentChance__P145667_mk(s) { +function Math_FastRandom_percentChance__P21157_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_percentChance__P145667, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_percentChance__P21157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19692,7 +19637,7 @@ function Math_FastRandom_percentChance__P145667_mk(s) { -function helpers_arrayMap__P144183(s) { +function helpers_arrayMap__P18668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19702,58 +19647,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___159879 = undefined; - s.len___159881 = undefined; - s.i___159884 = undefined; + s.res___30137 = undefined; + 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__mk(); - s.res___159879 = (r0); + s.res___30137 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___159881 = (r0); - s.i___159884 = (0); + s.len___30139 = (r0); + s.i___30142 = (0); case 1: - r0 = (s.i___159884 < s.len___159881); + r0 = (s.i___30142 < s.len___30139); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___159879; + s.tmp_1 = r0 = s.res___30137; s.tmp_3 = lambda_3_mk(s); s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___159884); + r0 = pxsim_Array__getAt(s.arg0, s.i___30142); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___159884; + s.tmp_3.arg1 = s.i___30142; setupLambda(s.tmp_3, s.tmp_3.argL); - s.pc = 3; return s.tmp_3; + s.callLocIdx = 3; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___159884 + 1); - s.i___159884 = (r0); + r0 = (s.i___30142 + 1); + s.i___30142 = (r0); { step = 1; continue; } case 2: - r0 = s.res___159879; + r0 = s.res___30137; return leave(s, r0) default: oops() } } } -helpers_arrayMap__P144183.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__P18668.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__P144183_mk(s) { +function helpers_arrayMap__P18668_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P144183, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P18668, depth: s.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___159879: undefined, - len___159881: undefined, - i___159884: undefined, + res___30137: undefined, + len___30139: undefined, + i___30142: undefined, arg0: undefined, arg1: undefined, } } @@ -19762,7 +19707,7 @@ function helpers_arrayMap__P144183_mk(s) { -function Sprite_destroy__P144934(s) { +function Sprite_destroy__P20651(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19779,7 +19724,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); @@ -19797,19 +19742,19 @@ 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__P145941_mk(s); + s.tmp_0 = effects_ParticleEffect_destroy__P21356_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg2; s.tmp_0.arg3 = undefined; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 459; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; { step = 4; continue; } case 3: - s.tmp_0 = Sprite__destroyCore__P144935_mk(s); + s.tmp_0 = Sprite__destroyCore__P20652_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 7; return s.tmp_0; + s.callLocIdx = 460; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; case 4: @@ -19818,12 +19763,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_destroy__P144934.info = {"start":27855,"length":293,"line":844,"column":4,"endLine":853,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +Sprite_destroy__P20651.info = {"start":28412,"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__P144934_mk(s) { +function Sprite_destroy__P20651_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P144934, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P20651, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19839,7 +19784,7 @@ function Sprite_destroy__P144934_mk(s) { -function effects_ParticleEffect_destroy__P145941(s) { +function effects_ParticleEffect_destroy__P21356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19857,15 +19802,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C145939_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P144926_mk(s); + if (!checkSubtype(r0, effects_ParticleEffect__C21353_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P20643_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = true; - s.pc = 3; return s.tmp_0; + s.callLocIdx = 1254; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P145940_mk(s); + s.tmp_0 = effects_ParticleEffect_start__P21355_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg3; @@ -19882,7 +19827,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg4 = r0; - s.pc = 4; return s.tmp_0; + s.callLocIdx = 1255; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -19897,22 +19842,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__P145991_mk(s); - s.tmp_0.arg0 = globals.dissolve___145996; + s.tmp_0 = effects_ImageEffect_applyTo__P21382_mk(s); + s.tmp_0.arg0 = globals.dissolve___21385; s.tmp_0.arg1 = s.arg1; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 1256; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P145941.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__P21356.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__P145941_mk(s) { +function effects_ParticleEffect_destroy__P21356_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P145941, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P21356, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19930,7 +19875,7 @@ function effects_ParticleEffect_destroy__P145941_mk(s) { -function inline__P151056(s) { +function inline__P30302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19940,11 +19885,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___151059 = undefined; - s.x___151070 = undefined; - s.y___151076 = undefined; - s.w___151082 = undefined; - s.h___151086 = undefined; + s.i___30305 = undefined; + s.x___30316 = undefined; + s.y___30322 = undefined; + s.w___30328 = undefined; + s.h___30332 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -19957,79 +19902,79 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.i___151059 = (r0); + s.i___30305 = (r0); case 1: - r0 = (s.i___151059 > 0); + r0 = (s.i___30305 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P145664_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P21154_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1.arg2 = r0; - s.pc = 3; return s.tmp_1; + s.callLocIdx = 43; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___151070 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P145664_mk(s); + s.x___30316 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P21154_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); s.tmp_0.arg2 = r0; - s.pc = 4; return s.tmp_0; + s.callLocIdx = 44; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___151076 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P145664_mk(s); + s.y___30322 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P21154_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 45; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.w___151082 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P145664_mk(s); + s.w___30328 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P21154_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 46; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.h___151086 = (r0); - s.tmp_0 = helpers_imageDrawRect__P144635_mk(s); + s.h___30332 = (r0); + s.tmp_0 = helpers_imageDrawRect__P20295_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___151070; - s.tmp_0.arg2 = s.y___151076; - s.tmp_0.arg3 = s.w___151082; - s.tmp_0.arg4 = s.h___151086; + s.tmp_0.arg1 = s.x___30316; + s.tmp_0.arg2 = s.y___30322; + s.tmp_0.arg3 = s.w___30328; + s.tmp_0.arg4 = s.h___30332; s.tmp_0.arg5 = 0; - s.pc = 7; return s.tmp_0; + s.callLocIdx = 47; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = (s.i___151059 - 1); - s.i___151059 = (r0); + r0 = (s.i___30305 - 1); + s.i___30305 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P151056.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__P30302.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__P151056_mk(s) { +function inline__P30302_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P151056, depth: s.depth + 1, + parent: s, fn: inline__P30302, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___151059: undefined, - x___151070: undefined, - y___151076: undefined, - w___151082: undefined, - h___151086: undefined, + i___30305: undefined, + x___30316: undefined, + y___30322: undefined, + w___30328: undefined, + h___30332: undefined, arg0: undefined, arg1: undefined, } } @@ -20038,7 +19983,7 @@ function inline__P151056_mk(s) { -function helpers_imageDrawRect__P144635(s) { +function helpers_imageDrawRect__P20295(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20077,7 +20022,7 @@ switch (step) { s.arg3 = (r0); r0 = (s.arg4 - 1); s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P144634_mk(s); + s.tmp_0 = helpers_imageDrawLine__P20294_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -20085,10 +20030,10 @@ switch (step) { s.tmp_0.arg3 = r0; s.tmp_0.arg4 = s.arg2; s.tmp_0.arg5 = s.arg5; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 93; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P144634_mk(s); + s.tmp_0 = helpers_imageDrawLine__P20294_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -20096,10 +20041,10 @@ switch (step) { r0 = (s.arg2 + s.arg4); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.arg5; - s.pc = 7; return s.tmp_0; + s.callLocIdx = 94; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P144634_mk(s); + s.tmp_0 = helpers_imageDrawLine__P20294_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -20109,10 +20054,10 @@ switch (step) { s.tmp_0.arg3 = r0; s.tmp_0.arg4 = s.arg2; s.tmp_0.arg5 = s.arg5; - s.pc = 8; return s.tmp_0; + s.callLocIdx = 95; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P144634_mk(s); + s.tmp_0 = helpers_imageDrawLine__P20294_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -20122,7 +20067,7 @@ switch (step) { r0 = (s.arg2 + s.arg4); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.arg5; - s.pc = 9; return s.tmp_0; + s.callLocIdx = 96; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; case 5: @@ -20130,12 +20075,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P144635.info = {"start":4141,"length":370,"line":140,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} +helpers_imageDrawRect__P20295.info = {"start":4141,"length":370,"line":140,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawRect__P144635_mk(s) { +function helpers_imageDrawRect__P20295_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P144635, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P20295, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20151,7 +20096,7 @@ function helpers_imageDrawRect__P144635_mk(s) { -function helpers_imageDrawLine__P144634(s) { +function helpers_imageDrawLine__P20294(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20171,17 +20116,17 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P144629_mk(s); + s.tmp_2 = helpers_pack__P22192_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = s.arg2; - s.pc = 1; return s.tmp_2; + s.callLocIdx = 91; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P144629_mk(s); + s.tmp_4 = helpers_pack__P22192_mk(s); s.tmp_4.arg0 = s.arg3; s.tmp_4.arg1 = s.arg4; - s.pc = 2; return s.tmp_4; + s.callLocIdx = 92; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; s.tmp_3 = r0; @@ -20190,12 +20135,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawLine__P144634.info = {"start":3977,"length":159,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} +helpers_imageDrawLine__P20294.info = {"start":3977,"length":159,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawLine__P144634_mk(s) { +function helpers_imageDrawLine__P20294_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P144634, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P20294, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20214,7 +20159,7 @@ function helpers_imageDrawLine__P144634_mk(s) { -function effects_ImageEffect_applyTo__P145991(s) { +function effects_ImageEffect_applyTo__P21382(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20224,14 +20169,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___151237 = undefined; + s.clonedImage___30428 = 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__C145990_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C21380_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -20257,17 +20202,17 @@ switch (step) { r0 = s.arg1.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___151237 = (r0); - s.tmp_0 = effects_ImageEffect_change__P145992_mk(s); + s.clonedImage___30428 = (r0); + s.tmp_0 = effects_ImageEffect_change__P21383_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___151237; - s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___30428; + s.callLocIdx = 1271; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_setImage__P144905_mk(s); + s.tmp_0 = Sprite_setImage__P20620_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___151237; - s.pc = 7; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___30428; + s.callLocIdx = 1272; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; case 5: @@ -20275,12 +20220,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P145991.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__P21382.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__P145991_mk(s) { +function effects_ImageEffect_applyTo__P21382_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P145991, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P21382, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20288,7 +20233,7 @@ function effects_ImageEffect_applyTo__P145991_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - clonedImage___151237: undefined, + clonedImage___30428: undefined, arg0: undefined, arg1: undefined, } } @@ -20297,7 +20242,7 @@ function effects_ImageEffect_applyTo__P145991_mk(s) { -function effects_ImageEffect_change__P145992(s) { +function effects_ImageEffect_change__P21383(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20313,7 +20258,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C145990_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C21380_VT)) failedCast(r0); s.tmp_0 = if_effect_3_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; @@ -20321,12 +20266,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.pc = 1; return s.tmp_0; + s.callLocIdx = 1273; 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.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 1; return s.tmp_0;; } - else { 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 = 1273; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1273; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1273; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -20334,12 +20279,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P145992.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__P21383.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__P145992_mk(s) { +function effects_ImageEffect_change__P21383_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P145992, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P21383, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20350,7 +20295,7 @@ function effects_ImageEffect_change__P145992_mk(s) { -function effects_ParticleEffect_start__P145940(s) { +function effects_ParticleEffect_start__P21355(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20360,7 +20305,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___151263 = undefined; + s.src___30452 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -20370,7 +20315,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C145939_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C21353_VT)) failedCast(r0); r0 = s.arg0.fields["sourceFactory"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -20397,18 +20342,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.pc = 10; return s.tmp_4; + s.callLocIdx = 1252; 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.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.pc = 10; return s.tmp_4;; } - else { 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 = 1252; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1252; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1252; s.pc = 10; return s.tmp_4; } } case 10: r0 = s.retval; - s.src___151263 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P145819_mk(s); - s.tmp_0.arg0 = s.src___151263; + s.src___30452 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P21253_mk(s); + s.tmp_0.arg0 = s.src___30452; r0 = pxsim_numops_toBoolDecr(s.arg4); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); @@ -20417,7 +20362,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg1 = r0; - s.pc = 11; return s.tmp_0; + s.callLocIdx = 1253; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -20433,7 +20378,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.src___151263).fields["lifespan"] = (s.tmp_1); + r0 = (s.src___30452).fields["lifespan"] = (s.tmp_1); case 7: case 8: case 9: @@ -20441,19 +20386,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P145940.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__P21355.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__P145940_mk(s) { +function effects_ParticleEffect_start__P21355_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P145940, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P21355, depth: s.depth + 1, pc: 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___151263: undefined, + src___30452: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -20465,7 +20410,7 @@ function effects_ParticleEffect_start__P145940_mk(s) { -function particles_ParticleSource_setRelativeToCamera__P145819(s) { +function particles_ParticleSource_setRelativeToCamera__P21253(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20481,7 +20426,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -20507,12 +20452,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P145819.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__P21253.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__P145819_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P21253_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P145819, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P21253, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20527,7 +20472,7 @@ function particles_ParticleSource_setRelativeToCamera__P145819_mk(s) { -function Sprite__destroyCore__P144935(s) { +function Sprite__destroyCore__P20652(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20537,39 +20482,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___150935 = undefined; + s.scene___30206 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_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__P145074_mk(s); - s.pc = 9; return s.tmp_0; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 461; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.scene___150935 = (r0); + s.scene___30206 = (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__P144934_mk(s); + s.tmp_1 = Sprite_destroy__P20651_mk(s); r0 = s.arg0.fields["sayBubbleSprite"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; s.tmp_1.arg2 = undefined; - s.pc = 10; return s.tmp_1; + s.callLocIdx = 462; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; case 1: case 2: - r0 = s.scene___150935.fields["allSprites"]; + r0 = s.scene___30206.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); r0 = s.arg0.fields["_kind"]; @@ -20581,7 +20526,7 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = s.scene___150935.fields["spritesByKind"]; + r0 = s.scene___30206.fields["spritesByKind"]; s.tmp_2 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_3 = r0; @@ -20591,24 +20536,24 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 5; continue; } - s.tmp_5 = sprites_SpriteSet_remove__P144963_mk(s); - r0 = s.scene___150935.fields["spritesByKind"]; + s.tmp_5 = sprites_SpriteSet_remove__P20682_mk(s); + r0 = s.scene___30206.fields["spritesByKind"]; s.tmp_6 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_7 = r0; r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_6, s.tmp_7); s.tmp_5.arg0 = r0; s.tmp_5.arg1 = s.arg0; - s.pc = 11; return s.tmp_5; + s.callLocIdx = 466; s.pc = 11; return s.tmp_5; case 11: r0 = s.retval; case 5: case 6: - s.tmp_0 = PhysicsEngine__C144993_v1_2_mk(s); - r0 = s.scene___150935.fields["physicsEngine"]; + s.tmp_0 = PhysicsEngine__C20723_v1_2_mk(s); + r0 = s.scene___30206.fields["physicsEngine"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C144993_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20723_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: @@ -20621,46 +20566,46 @@ switch (step) { s.tmp_1.arg0 = s.arg0; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "destroyHandler"), 1); - s.pc = 13; return s.tmp_1; + s.callLocIdx = 467; s.pc = 13; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.pc = 13; return s.tmp_1;; } - else { s.pc = 13; return s.tmp_1; } + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 467; s.pc = 13; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 467; s.pc = 13; return s.tmp_1;; } + else { s.callLocIdx = 467; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; case 7: case 8: - r0 = pxsim_pxtcore_mkAction(1, inline__P150974); + r0 = pxsim_pxtcore_mkAction(1, inline__P30242); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P150981); + r0 = pxsim_pxtcore_mkAction(1, inline__P30249); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P144186_mk(s); - s.tmp_3 = helpers_arrayFilter__P144187_mk(s); - r0 = s.scene___150935.fields["destroyedHandlers"]; + s.tmp_2 = helpers_arrayForEach__P18671_mk(s); + s.tmp_3 = helpers_arrayFilter__P18672_mk(s); + r0 = s.scene___30206.fields["destroyedHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; - s.pc = 15; return s.tmp_3; + s.callLocIdx = 469; s.pc = 15; return s.tmp_3; case 15: r0 = s.retval; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.pc = 14; return s.tmp_2; + s.callLocIdx = 471; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P144935.info = {"start":28154,"length":693,"line":855,"column":4,"endLine":871,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +Sprite__destroyCore__P20652.info = {"start":28711,"length":693,"line":869,"column":4,"endLine":885,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function Sprite__destroyCore__P144935_mk(s) { +function Sprite__destroyCore__P20652_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P144935, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P20652, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20670,7 +20615,7 @@ function Sprite__destroyCore__P144935_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - scene___150935: undefined, + scene___30206: undefined, arg0: undefined, } } @@ -20678,7 +20623,7 @@ function Sprite__destroyCore__P144935_mk(s) { -function inline__P150974(s) { +function inline__P30242(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20700,12 +20645,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P150974.info = {"start":28770,"length":26,"line":869,"column":20,"endLine":869,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P30242.info = {"start":29327,"length":26,"line":883,"column":20,"endLine":883,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P150974_mk(s) { +function inline__P30242_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P150974, depth: s.depth + 1, + parent: s, fn: inline__P30242, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20716,7 +20661,7 @@ function inline__P150974_mk(s) { -function inline__P150981(s) { +function inline__P30249(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20735,12 +20680,12 @@ switch (step) { s.tmp_0.arg1 = s.caps[0]; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.pc = 1; return s.tmp_0; + s.callLocIdx = 470; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 1; return s.tmp_0;; } - else { s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 470; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 470; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 470; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -20748,12 +20693,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P150981.info = {"start":28819,"length":20,"line":870,"column":21,"endLine":870,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P30249.info = {"start":29376,"length":20,"line":884,"column":21,"endLine":884,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P150981_mk(s) { +function inline__P30249_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P150981, depth: s.depth + 1, + parent: s, fn: inline__P30249, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20763,7 +20708,7 @@ function inline__P150981_mk(s) { -function PhysicsEngine_removeSprite__P144995(s) { +function PhysicsEngine_removeSprite__P20726(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20779,17 +20724,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C144993_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C20723_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P144995.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__P20726.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__P144995_mk(s) { +function PhysicsEngine_removeSprite__P20726_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P144995, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P20726, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -20799,7 +20744,7 @@ function PhysicsEngine_removeSprite__P144995_mk(s) { -function sprites_SpriteSet_remove__P144963(s) { +function sprites_SpriteSet_remove__P20682(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20809,28 +20754,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___150990 = undefined; + s.i___30258 = 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__C144957_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C20675_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___150990 = (r0); - r0 = (s.i___150990 > -1); + s.i___30258 = (r0); + r0 = (s.i___30258 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P144175_mk(s); + s.tmp_1 = helpers_arraySplice__P18662_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___150990; + s.tmp_1.arg1 = s.i___30258; s.tmp_1.arg2 = 1; - s.pc = 4; return s.tmp_1; + s.callLocIdx = 518; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; r0 = true; @@ -20842,16 +20787,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P144963.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__P20682.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__P144963_mk(s) { +function sprites_SpriteSet_remove__P20682_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P144963, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P20682, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___150990: undefined, + i___30258: undefined, arg0: undefined, arg1: undefined, } } @@ -20860,7 +20805,7 @@ function sprites_SpriteSet_remove__P144963_mk(s) { -function tiles_Location_y__P145169(s) { +function scene_onPathCompletion__P22032(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20870,50 +20815,76 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___156192 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C145167_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; + s.tmp_0 = scene_init__P24606_mk(s); + s.callLocIdx = 182; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = (s.arg0 == null); s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___156192 = (r0); - r0 = s.arg0.fields["_row"]; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___156192); - s.tmp_0 = r0; - r0 = (s.scale___156192 - 1); - s.tmp_3 = r0; - r0 = (1 << s.tmp_3); + r0 = pxsim_Boolean__bang(s.tmp_1); + case 2: + // 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 = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(scene_PathCompletionEvent__C24601_VT); + s.tmp_3 = r0; + s.tmp_4 = scene_PathCompletionEvent_constructor__P24602_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_4.arg1 = s.arg0; + s.tmp_4.arg2 = s.arg1; + s.callLocIdx = 184; s.pc = 7; return s.tmp_4; + case 7: + r0 = s.retval; + s.tmp_6 = scene_getPathCompletionEvents__P24631_mk(s); + s.callLocIdx = 183; s.pc = 8; return s.tmp_6; + case 8: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_5, s.tmp_3); + case 5: + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_Location_y__P145169.info = {"start":714,"length":135,"line":30,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]} -tiles_Location_y__P145169.isGetter = true; +scene_onPathCompletion__P22032.info = {"start":7816,"length":313,"line":201,"column":4,"endLine":211,"endColumn":5,"fileName":"path-following.ts","functionName":"onPathCompletion","argumentNames":["kind","handler"]} -function tiles_Location_y__P145169_mk(s) { +function scene_onPathCompletion__P22032_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_y__P145169, depth: s.depth + 1, + parent: s, fn: scene_onPathCompletion__P22032, depth: s.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___156192: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_Location_x__P145168(s) { +function scene_PathCompletionEvent_constructor__P24602(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20923,50 +20894,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___156209 = 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_Location__C145167_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_scale"]; - s.scale___156209 = (r0); - r0 = s.arg0.fields["_col"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___156209); - s.tmp_0 = r0; - r0 = (s.scale___156209 - 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) + if (!checkSubtype(r0, scene_PathCompletionEvent__C24601_VT)) failedCast(r0); + r0 = (s.arg0).fields["kind"] = (s.arg1); + r0 = (s.arg0).fields["handler"] = (s.arg2); + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_Location_x__P145168.info = {"start":569,"length":135,"line":25,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]} -tiles_Location_x__P145168.isGetter = true; +scene_PathCompletionEvent_constructor__P24602.info = {"start":469,"length":138,"line":18,"column":8,"endLine":21,"endColumn":13,"fileName":"path-following.ts","functionName":"inline","argumentNames":["this","kind","handler"]} -function tiles_Location_x__P145168_mk(s) { +function scene_PathCompletionEvent_constructor__P24602_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_x__P145168, depth: s.depth + 1, + parent: s, fn: scene_PathCompletionEvent_constructor__P24602, depth: s.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___156209: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function console_log__P144384(s) { +function Sprite_setFlag__P20643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20978,34 +20936,82 @@ 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 = console_add__P144380_mk(s); - s.tmp_0.arg0 = 1; - s.tmp_0.arg1 = s.arg0; - s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_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); + 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__P20643_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 = 437; s.pc = 7; return s.tmp_2; + case 7: r0 = s.retval; + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -console_log__P144384.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} +Sprite_setFlag__P20643.info = {"start":23896,"length":292,"line":731,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} -function console_log__P144384_mk(s) { +function Sprite_setFlag__P20643_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P144384, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P20643, depth: s.depth + 1, pc: 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 console_add__P144380(s) { +function scene_followPath__P22029(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21015,87 +21021,312 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___157144 = undefined; - s.i___157153 = undefined; + s.pathFollowingSprites___24804 = undefined; + s.i___24808 = undefined; + s.pfs___24815 = undefined; + s.tm___24829 = undefined; + s.nearestTile___24838 = undefined; + s.minDistSquared___24840 = undefined; + s.p___24842 = undefined; + s.unnamed288___U7 = undefined; + s.unnamed289___U8 = undefined; + s.distSqrd___24844 = undefined; + s.remainingPath___24870 = undefined; + s.remainingPath___24881 = undefined; + s.currentLocation___24892 = undefined; + s.pathToNearest___24897 = 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 < globals.minPriority___144377); + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } + { step = 25; continue; } case 1: case 2: - s.tmp_1 = console_inspect__P144386_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 20; - s.pc = 6; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = s.tmp_2; + { step = 4; continue; } + case 3: + r0 = pxsim_Array__length(s.arg1); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + case 4: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBool(s.tmp_6); + if (!r0) { step = 5; continue; } + r0 = s.tmp_6; + { step = 6; continue; } + case 5: + r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_7 = r0; + r0 = pxsim_Boolean__bang(s.tmp_7); case 6: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 13; continue; } + s.tmp_9 = scene_getPathFollowingSprites__P24627_mk(s); + s.callLocIdx = 158; s.pc = 26; return s.tmp_9; + case 26: r0 = s.retval; - s.text___157144 = (r0); - if ((s.text___157144) && (s.text___157144).vtable) { - setupResume(s, 7); - pxsim_String__stringConv(s.text___157144); - checkResumeConsumed(); - return; - } else { s.retval = (s.text___157144) + ""; } + s.pathFollowingSprites___24804 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pathFollowingSprites___24804); + if (!r0) { step = 11; continue; } + r0 = pxsim_Array__length(s.pathFollowingSprites___24804); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.i___24808 = (r0); case 7: + r0 = (s.i___24808 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.pathFollowingSprites___24804, s.i___24808); + s.pfs___24815 = (r0); + r0 = s.pfs___24815.fields["sprite"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = pxsim_Array_.removeAt(s.pathFollowingSprites___24804, s.i___24808); + case 8: + case 9: + r0 = (s.i___24808 - 1); + s.i___24808 = (r0); + { step = 7; continue; } + case 10: + case 11: + case 12: + { step = 25; continue; } + case 13: + case 14: + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 159; s.pc = 27; return s.tmp_0; + case 27: r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___24829 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tm___24829); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___157144 = (r0); - s.i___157153 = (0); - case 3: - s.tmp_1 = r0 = s.i___157153; - r0 = pxsim_Array__length(globals.listeners___144379); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + { step = 25; continue; } + case 15: + case 16: + s.tmp_3 = tiles_TileMap_isOnWall__P20902_mk(s); + s.tmp_3.arg0 = s.tm___24829; + s.tmp_3.arg1 = s.arg0; + s.callLocIdx = 160; s.pc = 28; return s.tmp_3; + case 28: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 21; continue; } + r0 = pxsim_Array__getAt(s.arg1, 0); + s.nearestTile___24838 = (r0); + s.minDistSquared___24840 = (999999); + s.p___24842 = (undefined); + s.unnamed288___U7 = (s.arg1); + s.unnamed289___U8 = (0); + case 17: + s.tmp_0 = r0 = s.unnamed289___U8; + r0 = pxsim_Array__length(s.unnamed288___U7); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 20; continue; } + r0 = pxsim_Array__getAt(s.unnamed288___U7, s.unnamed289___U8); + s.p___24842 = (r0); + s.tmp_5 = tiles_Location_x__P20857_mk(s); + s.tmp_5.arg0 = s.p___24842; + s.callLocIdx = 161; s.pc = 29; return s.tmp_5; + case 29: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_7 = Sprite_x__P20589_mk(s); + s.tmp_7.arg0 = s.arg0; + s.callLocIdx = 162; s.pc = 30; return s.tmp_7; + case 30: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_4 - s.tmp_6); + s.tmp_3 = r0; + r0 = pxsim.Math_.pow(s.tmp_3, 2); + s.tmp_2 = r0; + s.tmp_11 = tiles_Location_y__P20858_mk(s); + s.tmp_11.arg0 = s.p___24842; + s.callLocIdx = 163; s.pc = 31; return s.tmp_11; + case 31: + r0 = s.retval; + s.tmp_10 = r0; + s.tmp_13 = Sprite_y__P20591_mk(s); + s.tmp_13.arg0 = s.arg0; + s.callLocIdx = 164; s.pc = 32; return s.tmp_13; + case 32: + r0 = s.retval; + s.tmp_12 = r0; + r0 = (s.tmp_10 - s.tmp_12); + s.tmp_9 = r0; + r0 = pxsim.Math_.pow(s.tmp_9, 2); + s.tmp_8 = r0; + r0 = (s.tmp_2 + s.tmp_8); + s.distSqrd___24844 = (r0); + r0 = (s.distSqrd___24844 < s.minDistSquared___24840); 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___144379, s.i___157153); - s.tmp_3.argL = r0; - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___157144; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.pc = 8; return s.tmp_3; - case 8: + if (!r0) { step = 18; continue; } + s.nearestTile___24838 = (s.p___24842); + s.minDistSquared___24840 = (s.distSqrd___24844); + case 18: + case 19: + r0 = (s.unnamed289___U8 + 1); + s.unnamed289___U8 = (r0); + { step = 17; continue; } + case 20: + s.unnamed288___U7 = (undefined); + s.tmp_0 = tiles_Location_place__P20860_mk(s); + s.tmp_0.arg0 = s.nearestTile___24838; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 165; s.pc = 33; return s.tmp_0; + case 33: r0 = s.retval; - r0 = (s.i___157153 + 1); - s.i___157153 = (r0); - { step = 3; continue; } - case 4: - case 5: + s.tmp_0 = scene_getRemainingPath__P24873_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 166; s.pc = 34; return s.tmp_0; + case 34: + r0 = s.retval; + s.remainingPath___24870 = (r0); + s.tmp_0 = scene__followPath__P22034_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.remainingPath___24870; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.callLocIdx = 167; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + { step = 25; continue; } + case 21: + case 22: + s.tmp_0 = scene_getRemainingPath__P24873_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 168; s.pc = 36; return s.tmp_0; + case 36: + r0 = s.retval; + s.remainingPath___24881 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainingPath___24881); + if (!r0) { step = 23; continue; } + s.tmp_0 = scene__followPath__P22034_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.remainingPath___24881; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.callLocIdx = 169; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + { step = 25; continue; } + case 23: + case 24: + s.tmp_0 = scene_locationOfSprite__P24896_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 170; s.pc = 38; return s.tmp_0; + case 38: + r0 = s.retval; + s.currentLocation___24892 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P24904); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = scene_generalAStar__P22027_mk(s); + s.tmp_1.arg0 = s.tm___24829; + s.tmp_1.arg1 = s.currentLocation___24892; + s.tmp_1.arg2 = null; + s.tmp_1.arg3 = inline__P24903; + s.tmp_1.arg4 = s.tmp_0; + s.callLocIdx = 175; s.pc = 39; return s.tmp_1; + case 39: + r0 = s.retval; + s.pathToNearest___24897 = (r0); + r0 = pxsim_pxtcore_mkAction(3, inline__P24924); + 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 = scene__followPath__P22034_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.pathToNearest___24897; + s.tmp_1.arg2 = s.arg2; + s.tmp_1.arg3 = s.tmp_0; + s.callLocIdx = 178; s.pc = 40; return s.tmp_1; + case 40: + r0 = s.retval; + case 25: r0 = undefined; return leave(s, r0) default: oops() } } } -console_add__P144380.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} +scene_followPath__P22029.info = {"start":3834,"length":2336,"line":97,"column":4,"endLine":158,"endColumn":5,"fileName":"path-following.ts","functionName":"followPath","argumentNames":["sprite","path","speed"]} -function console_add__P144380_mk(s) { +function scene_followPath__P22029_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P144380, depth: s.depth + 1, + parent: s, fn: scene_followPath__P22029, depth: s.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___157144: undefined, - i___157153: 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, + pathFollowingSprites___24804: undefined, + i___24808: undefined, + pfs___24815: undefined, + tm___24829: undefined, + nearestTile___24838: undefined, + minDistSquared___24840: undefined, + p___24842: undefined, + unnamed288___U7: undefined, + unnamed289___U8: undefined, + distSqrd___24844: undefined, + remainingPath___24870: undefined, + remainingPath___24881: undefined, + currentLocation___24892: undefined, + pathToNearest___24897: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function inline__P144378(s) { +function inline__P24903(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21105,32 +21336,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim.control.__log(s.arg0, s.arg1); - r0 = undefined; + r0 = 0; return leave(s, r0) default: oops() } } } -inline__P144378.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]} +inline__P24903.info = {"start":5688,"length":7,"line":144,"column":70,"endLine":144,"endColumn":77,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} -function inline__P144378_mk(s) { +function inline__P24903_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P144378, depth: s.depth + 1, + parent: s, fn: inline__P24903, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, } } -function scene_onPathCompletion__P183169(s) { +function inline__P24904(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21140,59 +21363,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.pathTile___24907 = undefined; + s.unnamed290___U1 = undefined; + s.unnamed291___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_init__P182797_mk(s); - s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = (s.arg0 == null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.pathTile___24907 = (undefined); + s.unnamed290___U1 = (s.caps[0]); + s.unnamed291___U2 = (0); case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_0 = r0 = s.unnamed291___U2; + r0 = pxsim_Array__length(s.unnamed290___U1); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - 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_pxtcore_mkClassInstance(scene_PathCompletionEvent__C182792_VT); - s.tmp_3 = r0; - s.tmp_4 = scene_PathCompletionEvent_constructor__P182793_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_4.arg1 = s.arg0; - s.tmp_4.arg2 = s.arg1; - s.pc = 7; return s.tmp_4; - case 7: - r0 = s.retval; - s.tmp_6 = scene_getPathCompletionEvents__P182822_mk(s); - s.pc = 8; return s.tmp_6; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed290___U1, s.unnamed291___U2); + s.pathTile___24907 = (r0); + s.tmp_4 = tiles_Location_x__P20857_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 171; s.pc = 8; return s.tmp_4; case 8: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_6 = tiles_Location_x__P20857_mk(s); + s.tmp_6.arg0 = s.pathTile___24907; + s.callLocIdx = 172; s.pc = 9; return s.tmp_6; + case 9: r0 = s.retval; s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_5, s.tmp_3); + r0 = (s.tmp_3 === s.tmp_5); + 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: + s.tmp_8 = tiles_Location_y__P20858_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 173; s.pc = 10; return s.tmp_8; + case 10: + r0 = s.retval; + s.tmp_7 = r0; + s.tmp_10 = tiles_Location_y__P20858_mk(s); + s.tmp_10.arg0 = s.pathTile___24907; + s.callLocIdx = 174; s.pc = 11; return s.tmp_10; + case 11: + r0 = s.retval; + s.tmp_9 = r0; + r0 = (s.tmp_7 === s.tmp_9); + case 3: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_11); + if (!r0) { step = 4; continue; } + r0 = true; + { step = 7; continue; } + case 4: case 5: - r0 = undefined; + r0 = (s.unnamed291___U2 + 1); + s.unnamed291___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed290___U1 = (undefined); + r0 = false; + case 7: return leave(s, r0) default: oops() } } } -scene_onPathCompletion__P183169.info = {"start":7794,"length":313,"line":201,"column":4,"endLine":211,"endColumn":5,"fileName":"path-following.ts","functionName":"onPathCompletion","argumentNames":["kind","handler"]} +inline__P24904.info = {"start":5697,"length":221,"line":144,"column":79,"endLine":151,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":["tile"]} -function scene_onPathCompletion__P183169_mk(s) { +function inline__P24904_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_onPathCompletion__P183169, depth: s.depth + 1, + parent: s, fn: inline__P24904, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21201,15 +21446,22 @@ function scene_onPathCompletion__P183169_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + pathTile___24907: undefined, + unnamed290___U1: undefined, + unnamed291___U2: undefined, arg0: undefined, - arg1: undefined, } } -function scene_PathCompletionEvent_constructor__P182793(s) { +function inline__P24924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21219,37 +21471,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, scene_PathCompletionEvent__C182792_VT)) failedCast(r0); - r0 = (s.arg0).fields["kind"] = (s.arg1); - r0 = (s.arg0).fields["handler"] = (s.arg2); + s.remainingPath___24925 = undefined; + s.tmp_0 = scene_getRemainingPath__P24873_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.caps[1]; + s.callLocIdx = 176; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.remainingPath___24925 = (r0); + s.tmp_0 = scene__followPath__P22034_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.remainingPath___24925; + s.tmp_0.arg2 = s.caps[2]; + s.tmp_0.arg3 = undefined; + s.callLocIdx = 177; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_PathCompletionEvent_constructor__P182793.info = {"start":469,"length":138,"line":18,"column":8,"endLine":21,"endColumn":13,"fileName":"path-following.ts","functionName":"inline","argumentNames":["this","kind","handler"]} +inline__P24924.info = {"start":5972,"length":191,"line":153,"column":50,"endLine":157,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} -function scene_PathCompletionEvent_constructor__P182793_mk(s) { +function inline__P24924_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_PathCompletionEvent_constructor__P182793, depth: s.depth + 1, + parent: s, fn: inline__P24924, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_0: undefined, + remainingPath___24925: undefined, } } -function tiles_setTileAt__P145225(s) { +function scene_generalAStar__P22027(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21259,120 +21516,619 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___151337 = undefined; - s.scale___151350 = undefined; - s.index___151354 = undefined; + s.consideredTiles___24163 = undefined; + s.encountedLocations___24183 = undefined; + s.updateOrFillLocation___24186 = undefined; + s.end___24255 = undefined; + s.currLocation___24261 = undefined; + s.row___24271 = undefined; + s.col___24276 = undefined; + s.dataForCurrLocation___24281 = undefined; + s.neighbors___24293 = undefined; + s.corners___24295 = undefined; + s.left___24297 = undefined; + s.right___24303 = undefined; + s.top___24310 = undefined; + s.bottom___24316 = undefined; + s.leftIsWall___24323 = undefined; + s.rightIsWall___24330 = undefined; + s.topIsWall___24337 = undefined; + s.bottomIsWall___24344 = undefined; + s.topLeft___24359 = undefined; + s.bottomLeft___24378 = undefined; + s.topRight___24403 = undefined; + s.bottomRight___24422 = undefined; + s.neighborCost___24452 = undefined; + s.node___24458 = undefined; + s.unnamed284___U24 = undefined; + s.unnamed285___U25 = undefined; + s.cornerCost___24468 = undefined; + s.corner___24474 = undefined; + s.unnamed286___U28 = undefined; + s.unnamed287___U29 = undefined; + s.endCol___24480 = undefined; + s.endDataNode___24487 = undefined; + s.curr___24500 = undefined; + s.output___24502 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 8; return s.tmp_0; - case 8: + s.tmp_3 = scene_isWalkable__P24093_mk(s); + s.tmp_3.arg0 = s.arg1; + s.tmp_3.arg1 = s.arg2; + s.tmp_3.arg2 = s.arg0; + s.callLocIdx = 73; s.pc = 52; return s.tmp_3; + case 52: r0 = s.retval; - s.scene___151337 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = undefined; + { step = 51; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } - case 3: - r0 = s.scene___151337.fields["tileMap"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + r0 = pxsim_pxtcore_mkClassInstance(Heap__C22016_VT); s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_5 = Heap_constructor__P22017_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.tmp_5.arg1 = inline__P24166; + s.callLocIdx = 74; s.pc = 53; return s.tmp_5; + case 53: + r0 = s.retval; + s.consideredTiles___24163 = (s.tmp_4); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + s.encountedLocations___24183 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(4, updateOrFillLocation__P24186); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.encountedLocations___24183); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg3); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.consideredTiles___24163); + s.updateOrFillLocation___24186 = (s.tmp_0); + s.tmp_1 = lambda_4_mk(s); + s.tmp_1.argL = s.updateOrFillLocation___24186; + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = null; + s.tmp_1.arg2 = 0; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 82; s.pc = 54; return s.tmp_1; + case 54: + r0 = s.retval; + s.end___24255 = (null); + case 3: + r0 = s.consideredTiles___24163.fields["store"]; + 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 = 40; continue; } + s.tmp_3 = Heap_pop__P22019_mk(s); + s.tmp_3.arg0 = s.consideredTiles___24163; + s.callLocIdx = 84; s.pc = 55; return s.tmp_3; + case 55: + r0 = s.retval; + s.currLocation___24261 = (r0); + s.tmp_1 = lambda_2_mk(s); + s.tmp_1.argL = s.arg4; + r0 = s.currLocation___24261.fields["loc"]; + s.tmp_1.arg0 = r0; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 85; s.pc = 56; return s.tmp_1; + case 56: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = s.currLocation___24261.fields["loc"]; + s.end___24255 = (r0); + { step = 40; continue; } case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 5; continue; } - r0 = null; - { step = 7; continue; } case 5: - case 6: - r0 = s.scene___151337.fields["tileMap"]; - s.tmp_7 = r0; - r0 = s.tmp_7.fields["_scale"]; - s.scale___151350 = (r0); - s.tmp_0 = tiles_TileMap_getImageType__P145212_mk(s); - r0 = s.scene___151337.fields["tileMap"]; + s.tmp_0 = scene_locationRow__P24194_mk(s); + r0 = s.currLocation___24261.fields["loc"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.pc = 9; return s.tmp_0; - case 9: + s.callLocIdx = 86; s.pc = 57; return s.tmp_0; + case 57: r0 = s.retval; - s.index___151354 = (r0); - s.tmp_0 = tiles_TileMap_setTileAt__P145211_mk(s); - r0 = s.scene___151337.fields["tileMap"]; + s.row___24271 = (r0); + s.tmp_0 = scene_locationCol__P24199_mk(s); + r0 = s.currLocation___24261.fields["loc"]; s.tmp_0.arg0 = r0; - s.tmp_2 = tiles_Location_x__P145168_mk(s); - s.tmp_2.arg0 = s.arg0; - s.pc = 11; return s.tmp_2; - case 11: + s.callLocIdx = 87; s.pc = 58; return s.tmp_0; + case 58: r0 = s.retval; + s.col___24276 = (r0); + r0 = pxsim_Array__getAt(s.encountedLocations___24183, s.col___24276); + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.row___24271); + s.dataForCurrLocation___24281 = (r0); + s.tmp_0 = r0 = s.dataForCurrLocation___24281; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + r0 = s.dataForCurrLocation___24281.fields["visited"]; + case 7: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 >> s.scale___151350); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 8; continue; } + { step = 3; continue; } + case 8: + case 9: + r0 = (s.dataForCurrLocation___24281).fields["visited"] = (true); + r0 = pxsim_Array__mk(); + s.neighbors___24293 = (r0); + r0 = pxsim_Array__mk(); + s.corners___24295 = (r0); + s.tmp_0 = tiles_getTileLocation__P20908_mk(s); + r0 = (s.col___24276 - 1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.row___24271; + s.callLocIdx = 88; s.pc = 59; return s.tmp_0; + case 59: + r0 = s.retval; + s.left___24297 = (r0); + s.tmp_0 = tiles_getTileLocation__P20908_mk(s); + r0 = (s.col___24276 + 1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.row___24271; + s.callLocIdx = 89; s.pc = 60; return s.tmp_0; + case 60: + r0 = s.retval; + s.right___24303 = (r0); + s.tmp_0 = tiles_getTileLocation__P20908_mk(s); + s.tmp_0.arg0 = s.col___24276; + r0 = (s.row___24271 - 1); s.tmp_0.arg1 = r0; - s.tmp_4 = tiles_Location_y__P145169_mk(s); - s.tmp_4.arg0 = s.arg0; - s.pc = 12; return s.tmp_4; - case 12: + s.callLocIdx = 90; s.pc = 61; return s.tmp_0; + case 61: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 >> s.scale___151350); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.index___151354; - s.pc = 10; return s.tmp_0; - case 10: + s.top___24310 = (r0); + s.tmp_0 = tiles_getTileLocation__P20908_mk(s); + s.tmp_0.arg0 = s.col___24276; + r0 = (s.row___24271 + 1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 91; s.pc = 62; return s.tmp_0; + case 62: r0 = s.retval; - case 7: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -tiles_setTileAt__P145225.info = {"start":13666,"length":339,"line":444,"column":4,"endLine":450,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["loc","tile"]} - -function tiles_setTileAt__P145225_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_setTileAt__P145225, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + s.bottom___24316 = (r0); + s.tmp_2 = scene_isWalkable__P24093_mk(s); + s.tmp_2.arg0 = s.left___24297; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 92; s.pc = 63; return s.tmp_2; + case 63: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + s.leftIsWall___24323 = (r0); + s.tmp_2 = scene_isWalkable__P24093_mk(s); + s.tmp_2.arg0 = s.right___24303; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 93; s.pc = 64; return s.tmp_2; + case 64: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + s.rightIsWall___24330 = (r0); + s.tmp_2 = scene_isWalkable__P24093_mk(s); + s.tmp_2.arg0 = s.top___24310; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 94; s.pc = 65; return s.tmp_2; + case 65: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + s.topIsWall___24337 = (r0); + s.tmp_2 = scene_isWalkable__P24093_mk(s); + s.tmp_2.arg0 = s.bottom___24316; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 95; s.pc = 66; return s.tmp_2; + case 66: + r0 = s.retval; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + s.bottomIsWall___24344 = (r0); + r0 = pxsim_numops_toBoolDecr(s.leftIsWall___24323); + 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 = 18; continue; } + r0 = pxsim_Array__push(s.neighbors___24293, s.left___24297); + r0 = pxsim_numops_toBoolDecr(s.topIsWall___24337); + 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 = 12; continue; } + s.tmp_2 = tiles_getTileLocation__P20908_mk(s); + r0 = (s.col___24276 - 1); + s.tmp_2.arg0 = r0; + r0 = (s.row___24271 - 1); + s.tmp_2.arg1 = r0; + s.callLocIdx = 96; s.pc = 67; return s.tmp_2; + case 67: + r0 = s.retval; + s.topLeft___24359 = (r0); + s.tmp_3 = scene_isWall__P24369_mk(s); + s.tmp_3.arg0 = s.topLeft___24359; + s.tmp_3.arg1 = s.arg0; + s.callLocIdx = 97; s.pc = 68; return s.tmp_3; + case 68: + 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 = 10; continue; } + r0 = pxsim_Array__push(s.corners___24295, s.topLeft___24359); + case 10: + case 11: + case 12: + case 13: + r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___24344); + 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 = 16; continue; } + s.tmp_2 = tiles_getTileLocation__P20908_mk(s); + r0 = (s.col___24276 - 1); + s.tmp_2.arg0 = r0; + r0 = (s.row___24271 + 1); + s.tmp_2.arg1 = r0; + s.callLocIdx = 98; s.pc = 69; return s.tmp_2; + case 69: + r0 = s.retval; + s.bottomLeft___24378 = (r0); + s.tmp_3 = scene_isWall__P24369_mk(s); + s.tmp_3.arg0 = s.bottomLeft___24378; + s.tmp_3.arg1 = s.arg0; + s.callLocIdx = 99; s.pc = 70; return s.tmp_3; + case 70: + 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 = 14; continue; } + r0 = pxsim_Array__push(s.corners___24295, s.bottomLeft___24378); + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + r0 = pxsim_numops_toBoolDecr(s.rightIsWall___24330); + 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 = 28; continue; } + r0 = pxsim_Array__push(s.neighbors___24293, s.right___24303); + r0 = pxsim_numops_toBoolDecr(s.topIsWall___24337); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + s.tmp_2 = tiles_getTileLocation__P20908_mk(s); + r0 = (s.col___24276 + 1); + s.tmp_2.arg0 = r0; + r0 = (s.row___24271 - 1); + s.tmp_2.arg1 = r0; + s.callLocIdx = 100; s.pc = 71; return s.tmp_2; + case 71: + r0 = s.retval; + s.topRight___24403 = (r0); + s.tmp_3 = scene_isWall__P24369_mk(s); + s.tmp_3.arg0 = s.topRight___24403; + s.tmp_3.arg1 = s.arg0; + s.callLocIdx = 101; s.pc = 72; return s.tmp_3; + case 72: + 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 = 20; continue; } + r0 = pxsim_Array__push(s.corners___24295, s.topRight___24403); + case 20: + case 21: + case 22: + case 23: + r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___24344); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + s.tmp_2 = tiles_getTileLocation__P20908_mk(s); + r0 = (s.col___24276 + 1); + s.tmp_2.arg0 = r0; + r0 = (s.row___24271 + 1); + s.tmp_2.arg1 = r0; + s.callLocIdx = 102; s.pc = 73; return s.tmp_2; + case 73: + r0 = s.retval; + s.bottomRight___24422 = (r0); + s.tmp_3 = scene_isWall__P24369_mk(s); + s.tmp_3.arg0 = s.bottomRight___24422; + s.tmp_3.arg1 = s.arg0; + s.callLocIdx = 103; s.pc = 74; return s.tmp_3; + case 74: + 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 = 24; continue; } + r0 = pxsim_Array__push(s.corners___24295, s.bottomRight___24422); + case 24: + case 25: + case 26: + case 27: + case 28: + case 29: + r0 = pxsim_numops_toBoolDecr(s.topIsWall___24337); + 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 = 30; continue; } + r0 = pxsim_Array__push(s.neighbors___24293, s.top___24310); + case 30: + case 31: + r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___24344); + 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 = 32; continue; } + r0 = pxsim_Array__push(s.neighbors___24293, s.bottom___24316); + case 32: + case 33: + r0 = s.currLocation___24261.fields["cost"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + s.neighborCost___24452 = (r0); + s.node___24458 = (undefined); + s.unnamed284___U24 = (s.neighbors___24293); + s.unnamed285___U25 = (0); + case 34: + s.tmp_0 = r0 = s.unnamed285___U25; + r0 = pxsim_Array__length(s.unnamed284___U24); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 35; continue; } + r0 = pxsim_Array__getAt(s.unnamed284___U24, s.unnamed285___U25); + s.node___24458 = (r0); + s.tmp_2 = lambda_4_mk(s); + s.tmp_2.argL = s.updateOrFillLocation___24186; + s.tmp_2.arg0 = s.node___24458; + s.tmp_2.arg1 = s.dataForCurrLocation___24281; + s.tmp_2.arg2 = s.neighborCost___24452; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 104; s.pc = 75; return s.tmp_2; + case 75: + r0 = s.retval; + r0 = (s.unnamed285___U25 + 1); + s.unnamed285___U25 = (r0); + { step = 34; continue; } + case 35: + s.unnamed284___U24 = (undefined); + r0 = pxsim_Array__length(s.corners___24295); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 38; continue; } + r0 = s.currLocation___24261.fields["cost"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1.414213562373095); + s.cornerCost___24468 = (r0); + s.corner___24474 = (undefined); + s.unnamed286___U28 = (s.corners___24295); + s.unnamed287___U29 = (0); + case 36: + s.tmp_0 = r0 = s.unnamed287___U29; + r0 = pxsim_Array__length(s.unnamed286___U28); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 37; continue; } + r0 = pxsim_Array__getAt(s.unnamed286___U28, s.unnamed287___U29); + s.corner___24474 = (r0); + s.tmp_2 = lambda_4_mk(s); + s.tmp_2.argL = s.updateOrFillLocation___24186; + s.tmp_2.arg0 = s.corner___24474; + s.tmp_2.arg1 = s.dataForCurrLocation___24281; + s.tmp_2.arg2 = s.cornerCost___24468; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 105; s.pc = 76; return s.tmp_2; + case 76: + r0 = s.retval; + r0 = (s.unnamed287___U29 + 1); + s.unnamed287___U29 = (r0); + { step = 36; continue; } + case 37: + s.unnamed286___U28 = (undefined); + case 38: + case 39: + { step = 3; continue; } + case 40: + s.tmp_0 = r0 = s.end___24255; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 41; continue; } + r0 = s.tmp_0; + { step = 42; continue; } + case 41: + s.tmp_1 = r0 = s.encountedLocations___24183; + s.tmp_3 = scene_locationCol__P24199_mk(s); + s.tmp_3.arg0 = s.end___24255; + s.callLocIdx = 106; s.pc = 77; return s.tmp_3; + case 77: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + case 42: + // jmp value (already in r0) + s.tmp_4 = r0; + s.endCol___24480 = (s.tmp_4); + s.tmp_0 = r0 = s.endCol___24480; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 43; continue; } + r0 = s.tmp_0; + { step = 44; continue; } + case 43: + s.tmp_1 = r0 = s.endCol___24480; + s.tmp_3 = scene_locationRow__P24194_mk(s); + s.tmp_3.arg0 = s.end___24255; + s.callLocIdx = 107; s.pc = 78; return s.tmp_3; + case 78: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); + case 44: + // jmp value (already in r0) + s.tmp_4 = r0; + s.endDataNode___24487 = (s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.end___24255); + 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 = 45; continue; } + r0 = s.tmp_0; + { step = 46; continue; } + case 45: + r0 = pxsim_numops_toBoolDecr(s.endDataNode___24487); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 46: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 47; continue; } + r0 = undefined; + { step = 51; continue; } + case 47: + case 48: + s.curr___24500 = (s.endDataNode___24487); + r0 = pxsim_Array__mk(); + s.output___24502 = (r0); + case 49: + r0 = pxsim_numops_toBoolDecr(s.curr___24500); + if (!r0) { step = 50; continue; } + s.tmp_0 = helpers_arrayUnshift__P18666_mk(s); + s.tmp_0.arg0 = s.output___24502; + r0 = s.curr___24500.fields["l"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 108; s.pc = 79; return s.tmp_0; + case 79: + r0 = s.retval; + r0 = s.curr___24500.fields["parent"]; + s.curr___24500 = (r0); + { step = 49; continue; } + case 50: + r0 = s.output___24502; + case 51: + return leave(s, r0) + default: oops() +} } } +scene_generalAStar__P22027.info = {"start":1723,"length":5198,"line":53,"column":4,"endLine":198,"endColumn":5,"fileName":"a-star.ts","functionName":"generalAStar","argumentNames":["tm","start","onTilesOf","heuristic","isEnd"]} + +function scene_generalAStar__P22027_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_generalAStar__P22027, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - scene___151337: undefined, - scale___151350: undefined, - index___151354: undefined, + consideredTiles___24163: undefined, + encountedLocations___24183: undefined, + updateOrFillLocation___24186: undefined, + end___24255: undefined, + currLocation___24261: undefined, + row___24271: undefined, + col___24276: undefined, + dataForCurrLocation___24281: undefined, + neighbors___24293: undefined, + corners___24295: undefined, + left___24297: undefined, + right___24303: undefined, + top___24310: undefined, + bottom___24316: undefined, + leftIsWall___24323: undefined, + rightIsWall___24330: undefined, + topIsWall___24337: undefined, + bottomIsWall___24344: undefined, + topLeft___24359: undefined, + bottomLeft___24378: undefined, + topRight___24403: undefined, + bottomRight___24422: undefined, + neighborCost___24452: undefined, + node___24458: undefined, + unnamed284___U24: undefined, + unnamed285___U25: undefined, + cornerCost___24468: undefined, + corner___24474: undefined, + unnamed286___U28: undefined, + unnamed287___U29: undefined, + endCol___24480: undefined, + endDataNode___24487: undefined, + curr___24500: undefined, + output___24502: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function tiles_TileMap_getImageType__P145212(s) { +function inline__P24166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21382,83 +22138,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tileset___156154 = undefined; - s.i___156159 = undefined; - s.newIndex___156174 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["tileset"]; - s.tileset___156154 = (r0); - s.i___156159 = (0); - case 1: - s.tmp_1 = r0 = s.i___156159; - r0 = pxsim_Array__length(s.tileset___156154); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.tileset___156154, s.i___156159); - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.equals(s.tmp_4, s.arg1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 2; continue; } - r0 = s.i___156159; - { step = 7; continue; } - case 2: - case 3: - r0 = (s.i___156159 + 1); - s.i___156159 = (r0); - { step = 1; continue; } - case 4: - r0 = pxsim_Array__length(s.tileset___156154); - s.newIndex___156174 = (r0); - s.tmp_3 = tiles_TileMap_isInvalidIndex__P145215_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.newIndex___156174; - s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; + r0 = s.arg0.fields["cost"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim.Math_.pow(s.tmp_2, 2); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0.fields["extraCost"]; + 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; } - r0 = pxsim_Array__push(s.tileset___156154, s.arg1); - r0 = s.newIndex___156174; - { step = 7; continue; } - case 5: - case 6: - r0 = -1; - case 7: + r0 = s.arg1.fields["cost"]; + s.tmp_6 = r0; + r0 = pxsim.Math_.pow(s.tmp_6, 2); + s.tmp_5 = r0; + r0 = s.arg1.fields["extraCost"]; + s.tmp_7 = r0; + r0 = (s.tmp_5 + s.tmp_7); + s.tmp_4 = r0; + r0 = (s.tmp_0 - s.tmp_4); return leave(s, r0) default: oops() } } } -tiles_TileMap_getImageType__P145212.info = {"start":7526,"length":482,"line":272,"column":8,"endLine":285,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getImageType","argumentNames":["this","im"]} +inline__P24166.info = {"start":2110,"length":67,"line":62,"column":12,"endLine":62,"endColumn":79,"fileName":"a-star.ts","functionName":"inline","argumentNames":["a","b"]} -function tiles_TileMap_getImageType__P145212_mk(s) { +function inline__P24166_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getImageType__P145212, depth: s.depth + 1, + parent: s, fn: inline__P24166, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tileset___156154: undefined, - i___156159: undefined, - newIndex___156174: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, arg1: undefined, } } @@ -21467,7 +22186,7 @@ function tiles_TileMap_getImageType__P145212_mk(s) { -function tiles_TileMap_isInvalidIndex__P145215(s) { +function updateOrFillLocation__P24186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21477,46 +22196,164 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.row___24190 = undefined; + s.col___24195 = undefined; + s.colData___24204 = undefined; + s.lData___24214 = undefined; + s.h___24242 = 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__C145197_VT)) failedCast(r0); - r0 = (s.arg1 < 0); + s.tmp_0 = scene_locationRow__P24194_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 75; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.row___24190 = (r0); + s.tmp_0 = scene_locationCol__P24199_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 76; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.col___24195 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P20900_mk(s); + s.tmp_1.arg0 = s.caps[0]; + s.tmp_1.arg1 = s.col___24195; + s.tmp_1.arg2 = s.row___24190; + s.callLocIdx = 77; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 11; continue; } case 1: - r0 = (s.arg1 > 255); case 2: + r0 = pxsim_Array__getAt(s.caps[1], s.col___24195); + 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_3 = r0 = s.caps[1]; + s.tmp_4 = r0 = s.col___24195; + r0 = pxsim_Array__mk(); + s.tmp_5 = r0; + r0 = pxsim_Array_.setAt(s.tmp_3, s.tmp_4, s.tmp_5); + r0 = s.tmp_5; + case 4: // jmp value (already in r0) + s.tmp_6 = r0; + s.colData___24204 = (s.tmp_6); + r0 = pxsim_Array__getAt(s.colData___24204, s.row___24190); + s.lData___24214 = (r0); + r0 = pxsim_numops_toBoolDecr(s.lData___24214); s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_LocationNode__C24074_VT); + s.tmp_2 = r0; + s.tmp_3 = scene_LocationNode_constructor__P24075_mk(s); + s.tmp_3.arg0 = s.tmp_2; + s.tmp_3.arg1 = s.arg0; + s.tmp_3.arg2 = s.arg1; + s.tmp_3.arg3 = s.arg2; + s.callLocIdx = 78; s.pc = 15; return s.tmp_3; + case 15: + r0 = s.retval; + r0 = pxsim_Array_.setAt(s.colData___24204, s.row___24190, s.tmp_2); + { step = 10; continue; } + case 5: + r0 = s.lData___24214.fields["visited"]; + 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 = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + r0 = s.lData___24214.fields["lastCost"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 > s.arg2); + case 7: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 8; continue; } + r0 = (s.lData___24214).fields["lastCost"] = (s.arg2); + r0 = (s.lData___24214).fields["parent"] = (s.arg1); + { step = 9; continue; } + case 8: + { step = 11; continue; } + case 9: + case 10: + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.caps[2]; + s.tmp_0.arg0 = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 79; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.h___24242 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_PrioritizedLocation__C24068_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_PrioritizedLocation_constructor__P24069_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg2; + s.tmp_1.arg3 = s.h___24242; + s.callLocIdx = 80; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.tmp_2 = Heap_push__P22018_mk(s); + s.tmp_2.arg0 = s.caps[3]; + s.tmp_2.arg1 = s.tmp_0; + s.callLocIdx = 81; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + case 11: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_isInvalidIndex__P145215.info = {"start":8772,"length":106,"line":307,"column":8,"endLine":309,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} +updateOrFillLocation__P24186.info = {"start":2261,"length":1162,"line":66,"column":8,"endLine":103,"endColumn":9,"fileName":"a-star.ts","functionName":"updateOrFillLocation","argumentNames":["l","parent","cost"]} -function tiles_TileMap_isInvalidIndex__P145215_mk(s) { +function updateOrFillLocation__P24186_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isInvalidIndex__P145215, depth: s.depth + 1, + parent: s, fn: updateOrFillLocation__P24186, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + row___24190: undefined, + col___24195: undefined, + colData___24204: undefined, + lData___24214: undefined, + h___24242: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_TileMapData_getTileset__P145191(s) { +function helpers_arrayUnshift__P18666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21528,29 +22365,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C145184_VT)) failedCast(r0); - r0 = s.arg0.fields["tileset"]; + r0 = pxsim_Array_.insertAt(s.arg0, 0, s.arg1); + r0 = pxsim_Array__length(s.arg0); return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileset__P145191.info = {"start":4344,"length":57,"line":158,"column":8,"endLine":160,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileset","argumentNames":["this"]} +helpers_arrayUnshift__P18666.info = {"start":4898,"length":126,"line":180,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayUnshift","argumentNames":["arr","value"]} -function tiles_TileMapData_getTileset__P145191_mk(s) { +function helpers_arrayUnshift__P18666_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileset__P145191, depth: s.depth + 1, + parent: s, fn: helpers_arrayUnshift__P18666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function tiles_TileMap_setTileAt__P145211(s) { +function scene_isWall__P24369(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21560,90 +22398,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.r___24553 = undefined; + s.c___24557 = 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_TileMap__C145197_VT)) failedCast(r0); - s.tmp_3 = tiles_TileMapData_isOutsideMap__P145195_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.arg2; - s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = scene_locationRow__P24194_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 115; s.pc = 1; return s.tmp_0; case 1: - s.tmp_6 = tiles_TileMap_isInvalidIndex__P145215_mk(s); - s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.arg3; - s.pc = 6; return s.tmp_6; - case 6: r0 = s.retval; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + s.r___24553 = (r0); + s.tmp_0 = scene_locationCol__P24199_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 116; s.pc = 2; return s.tmp_0; case 2: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - s.tmp_8 = tiles_TileMapData_setTile__P145190_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = s.arg1; - s.tmp_8.arg2 = s.arg2; - s.tmp_8.arg3 = s.arg3; - s.pc = 7; return s.tmp_8; - case 7: r0 = s.retval; + s.c___24557 = (r0); + s.tmp_0 = tiles_TileMap_isObstacle__P20900_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.c___24557; + s.tmp_0.arg2 = s.r___24553; + s.callLocIdx = 117; s.pc = 3; return s.tmp_0; case 3: - case 4: - r0 = undefined; + r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_setTileAt__P145211.info = {"start":7307,"length":209,"line":267,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTileAt","argumentNames":["this","col","row","index"]} +scene_isWall__P24369.info = {"start":7573,"length":169,"line":220,"column":4,"endLine":224,"endColumn":5,"fileName":"a-star.ts","functionName":"isWall","argumentNames":["l","tm"]} -function tiles_TileMap_setTileAt__P145211_mk(s) { +function scene_isWall__P24369_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setTileAt__P145211, depth: s.depth + 1, + parent: s, fn: scene_isWall__P24369, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, + r___24553: undefined, + c___24557: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_TileMapData_isOutsideMap__P145195(s) { +function Heap_pop__P22019(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21653,78 +22455,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.output___31629 = undefined; + s.nextRoot___31634 = 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__C145184_VT)) failedCast(r0); - r0 = (s.arg1 < 0); + if (!checkSubtype(r0, Heap__C22016_VT)) failedCast(r0); + r0 = s.arg0.fields["store"]; 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.arg1; - r0 = s.arg0.fields["_width"]; + r0 = pxsim_Array__getAt(s.tmp_0, 0); + s.output___31629 = (r0); + r0 = s.arg0.fields["store"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.pop(s.tmp_0); + s.nextRoot___31634 = (r0); + r0 = s.arg0.fields["store"]; s.tmp_2 = r0; - r0 = (s.tmp_1 >= s.tmp_2); - case 2: - // jmp value (already in 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; } + r0 = s.arg0.fields["store"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } + r0 = pxsim_Array_.setAt(s.tmp_3, 0, s.nextRoot___31634); + s.tmp_0 = Heap_percolateDown__P24063_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1304; s.pc = 3; return s.tmp_0; case 3: - r0 = (s.arg2 < 0); - case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBool(s.tmp_4); - if (!r0) { step = 5; continue; } - r0 = s.tmp_4; - { step = 6; continue; } - case 5: - s.tmp_5 = r0 = s.arg2; - r0 = s.arg0.fields["_height"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 >= s.tmp_6); - case 6: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; + r0 = s.retval; + case 1: + case 2: + r0 = s.output___31629; return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P145195.info = {"start":5392,"length":132,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} +Heap_pop__P22019.info = {"start":1536,"length":236,"line":61,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"pop","argumentNames":["this"]} -function tiles_TileMapData_isOutsideMap__P145195_mk(s) { +function Heap_pop__P22019_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P145195, depth: s.depth + 1, + parent: s, fn: Heap_pop__P22019, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, + output___31629: undefined, + nextRoot___31634: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_TileMapData_setTile__P145190(s) { +function Heap_percolateDown__P24063(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21734,76 +22524,299 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.data___31649 = undefined; + s.max___31652 = undefined; + s.left___31660 = undefined; + s.right___31664 = undefined; + s.curr___31668 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C145184_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P145195_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; + if (!checkSubtype(r0, Heap__C22016_VT)) failedCast(r0); + r0 = s.arg0.fields["store"]; + s.data___31649 = (r0); + r0 = s.arg0.fields["store"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 5; continue; } + r0 = pxsim_Array__length(s.tmp_0); + s.max___31652 = (r0); case 1: - case 2: - r0 = s.arg0.fields["data"]; - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.isReadOnly(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - s.tmp_4 = r0 = s.arg0; - r0 = s.arg0.fields["data"]; - s.tmp_6 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_6, 0, -1); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["data"] = (s.tmp_5); + r0 = (s.arg1 < s.max___31652); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = (s.arg1 << 1); + s.tmp_1 = r0; + r0 = (s.tmp_1 + 1); + s.left___31660 = (r0); + r0 = (s.arg1 << 1); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 2); + s.right___31664 = (r0); + s.curr___31668 = (s.arg1); + r0 = (s.left___31660 < s.max___31652); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + s.tmp_2 = if_comparator_3_mk(s); + s.tmp_2.arg0 = s.arg0; + r0 = pxsim_Array__getAt(s.data___31649, s.curr___31668); + s.tmp_2.arg1 = r0; + r0 = pxsim_Array__getAt(s.data___31649, s.left___31660); + s.tmp_2.arg2 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "comparator"), 3); + s.callLocIdx = 1298; s.pc = 13; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["comparator"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["comparator"], 3); s.callLocIdx = 1298; s.pc = 13; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1298; s.pc = 13; return s.tmp_2;; } + else { s.callLocIdx = 1298; s.pc = 13; return s.tmp_2; } + } + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); case 3: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 4; continue; } + s.curr___31668 = (s.left___31660); case 4: - r0 = s.arg0.fields["data"]; + case 5: + r0 = (s.right___31664 < s.max___31652); s.tmp_0 = r0; - r0 = (s.arg1 | 0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + s.tmp_2 = if_comparator_3_mk(s); + s.tmp_2.arg0 = s.arg0; + r0 = pxsim_Array__getAt(s.data___31649, s.curr___31668); + s.tmp_2.arg1 = r0; + r0 = pxsim_Array__getAt(s.data___31649, s.right___31664); + s.tmp_2.arg2 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "comparator"), 3); + s.callLocIdx = 1299; s.pc = 14; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["comparator"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["comparator"], 3); s.callLocIdx = 1299; s.pc = 14; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1299; s.pc = 14; return s.tmp_2;; } + else { s.callLocIdx = 1299; s.pc = 14; return s.tmp_2; } + } + case 14: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 0); + case 7: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = (4 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.arg2 | 0); - s.tmp_5 = r0; - r0 = s.arg0.fields["_width"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 * s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_2 + s.tmp_4); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 8; continue; } + s.curr___31668 = (s.right___31664); + case 8: + case 9: + r0 = (s.curr___31668 == s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + { step = 12; continue; } + case 10: + case 11: + r0 = pxsim_Array__getAt(s.data___31649, s.arg1); s.tmp_1 = r0; - r0 = pxsim.BufferMethods.setUint8(s.tmp_0, s.tmp_1, s.arg3); - case 5: + r0 = pxsim_Array__getAt(s.data___31649, s.curr___31668); + s.tmp_2 = r0; + r0 = pxsim_Array_.setAt(s.data___31649, s.curr___31668, s.tmp_1); + r0 = pxsim_Array_.setAt(s.data___31649, s.arg1, s.tmp_2); + s.arg1 = (s.curr___31668); + { step = 1; continue; } + case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_setTile__P145190.info = {"start":4019,"length":315,"line":148,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTile","argumentNames":["this","col","row","tile"]} +Heap_percolateDown__P24063.info = {"start":367,"length":645,"line":13,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"percolateDown","argumentNames":["this","i"]} -function tiles_TileMapData_setTile__P145190_mk(s) { +function Heap_percolateDown__P24063_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_setTile__P145190, depth: s.depth + 1, + parent: s, fn: Heap_percolateDown__P24063, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, + data___31649: undefined, + max___31652: undefined, + left___31660: undefined, + right___31664: undefined, + curr___31668: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Heap_rightChild__P24067(s) { +let r0 = s.r0, 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, Heap__C22016_VT)) failedCast(r0); + r0 = (s.arg1 << 1); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 2); + return leave(s, r0) + default: oops() +} } } +Heap_rightChild__P24067.info = {"start":2435,"length":68,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"rightChild","argumentNames":["this","i"]} + +function Heap_rightChild__P24067_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Heap_rightChild__P24067, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Heap_leftChild__P24066(s) { +let r0 = s.r0, 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, Heap__C22016_VT)) failedCast(r0); + r0 = (s.arg1 << 1); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1); + return leave(s, r0) + default: oops() +} } } +Heap_leftChild__P24066.info = {"start":2362,"length":67,"line":106,"column":4,"endLine":108,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"leftChild","argumentNames":["this","i"]} + +function Heap_leftChild__P24066_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Heap_leftChild__P24066, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Heap_length__P22021(s) { +let r0 = s.r0, 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, Heap__C22016_VT)) failedCast(r0); + r0 = s.arg0.fields["store"]; + s.tmp_0 = r0; + r0 = pxsim_Array__length(s.tmp_0); + return leaveAccessor(s, r0) + default: oops() +} } } +Heap_length__P22021.info = {"start":1832,"length":54,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"length","argumentNames":["this"]} +Heap_length__P22021.isGetter = true; + +function Heap_length__P22021_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Heap_length__P22021, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function scene_PrioritizedLocation_constructor__P24069(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_PrioritizedLocation__C24068_VT)) failedCast(r0); + r0 = (s.arg0).fields["loc"] = (s.arg1); + r0 = (s.arg0).fields["cost"] = (s.arg2); + r0 = (s.arg0).fields["extraCost"] = (s.arg3); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_PrioritizedLocation_constructor__P24069.info = {"start":60,"length":176,"line":2,"column":8,"endLine":7,"endColumn":13,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","loc","cost","extraCost"]} + +function scene_PrioritizedLocation_constructor__P24069_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_PrioritizedLocation_constructor__P24069, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, arg2: undefined, @@ -21814,7 +22827,7 @@ function tiles_TileMapData_setTile__P145190_mk(s) { -function scene_followPath__P182981(s) { +function Heap_push__P22018(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21824,311 +22837,182 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pathFollowingSprites___182996 = undefined; - s.i___183000 = undefined; - s.pfs___183007 = undefined; - s.tm___183021 = undefined; - s.nearestTile___183030 = undefined; - s.minDistSquared___183032 = undefined; - s.p___183034 = undefined; - s.unnamed7254___U7 = undefined; - s.unnamed7255___U8 = undefined; - s.distSqrd___183036 = undefined; - s.remainingPath___183062 = undefined; - s.remainingPath___183074 = undefined; - s.currentLocation___183085 = undefined; - s.pathToNearest___183090 = 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); + r0 = s.arg0; + if (!checkSubtype(r0, Heap__C22016_VT)) failedCast(r0); + r0 = s.arg0.fields["store"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 25; continue; } + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = Heap_percolateUp__P24064_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1302; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = s.tmp_2; - { step = 4; continue; } - case 3: - r0 = pxsim_Array__length(s.arg1); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBool(s.tmp_6); - if (!r0) { step = 5; continue; } - r0 = s.tmp_6; - { step = 6; continue; } - case 5: - r0 = pxsim_numops_toBoolDecr(s.arg2); - s.tmp_7 = r0; - r0 = pxsim_Boolean__bang(s.tmp_7); - case 6: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 13; continue; } - s.tmp_9 = scene_getPathFollowingSprites__P182818_mk(s); - s.pc = 26; return s.tmp_9; - case 26: r0 = s.retval; - s.pathFollowingSprites___182996 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pathFollowingSprites___182996); - if (!r0) { step = 11; continue; } - r0 = pxsim_Array__length(s.pathFollowingSprites___182996); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Heap_push__P22018.info = {"start":1456,"length":74,"line":56,"column":4,"endLine":59,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"push","argumentNames":["this","v"]} + +function Heap_push__P22018_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Heap_push__P22018, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Heap_percolateUp__P24064(s) { +let r0 = s.r0, 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___31742 = undefined; + s.curr___31750 = undefined; + s.parentIndex___31755 = undefined; + s.parent___31759 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Heap__C22016_VT)) failedCast(r0); + r0 = s.arg0.fields["store"]; + s.tmp_1 = r0; + r0 = pxsim_Array__length(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - s.i___183000 = (r0); - case 7: - r0 = (s.i___183000 >= 0); + s.i___31742 = (r0); + case 1: + r0 = (s.i___31742 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.pathFollowingSprites___182996, s.i___183000); - s.pfs___183007 = (r0); - r0 = s.pfs___183007.fields["sprite"]; + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["store"]; s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg0); + r0 = pxsim_Array__getAt(s.tmp_1, s.i___31742); + s.curr___31750 = (r0); + r0 = (s.i___31742 - 1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - r0 = pxsim_Array_.removeAt(s.pathFollowingSprites___182996, s.i___183000); - case 8: - case 9: - r0 = (s.i___183000 - 1); - s.i___183000 = (r0); - { step = 7; continue; } - case 10: - case 11: - case 12: - { step = 25; continue; } - case 13: - case 14: - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___183021 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tm___183021); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0 >> 1); + s.parentIndex___31755 = (r0); + r0 = s.arg0.fields["store"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - { step = 25; continue; } - case 15: - case 16: - s.tmp_3 = tiles_TileMap_isOnWall__P145219_mk(s); - s.tmp_3.arg0 = s.tm___183021; - s.tmp_3.arg1 = s.arg0; - s.pc = 28; return s.tmp_3; - case 28: + r0 = pxsim_Array__getAt(s.tmp_0, s.parentIndex___31755); + s.parent___31759 = (r0); + s.tmp_2 = if_comparator_3_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.parent___31759; + s.tmp_2.arg2 = s.curr___31750; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "comparator"), 3); + s.callLocIdx = 1301; s.pc = 5; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["comparator"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["comparator"], 3); s.callLocIdx = 1301; s.pc = 5; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1301; s.pc = 5; return s.tmp_2;; } + else { s.callLocIdx = 1301; s.pc = 5; return s.tmp_2; } + } + case 5: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 21; continue; } - r0 = pxsim_Array__getAt(s.arg1, 0); - s.nearestTile___183030 = (r0); - s.minDistSquared___183032 = (999999); - s.p___183034 = (undefined); - s.unnamed7254___U7 = (s.arg1); - s.unnamed7255___U8 = (0); - case 17: - s.tmp_0 = r0 = s.unnamed7255___U8; - r0 = pxsim_Array__length(s.unnamed7254___U7); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed7254___U7, s.unnamed7255___U8); - s.p___183034 = (r0); - s.tmp_5 = tiles_Location_x__P145168_mk(s); - s.tmp_5.arg0 = s.p___183034; - s.pc = 29; return s.tmp_5; - case 29: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_7 = Sprite_x__P144885_mk(s); - s.tmp_7.arg0 = s.arg0; - s.pc = 30; return s.tmp_7; - case 30: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_4 - s.tmp_6); - s.tmp_3 = r0; - r0 = pxsim.Math_.pow(s.tmp_3, 2); - s.tmp_2 = r0; - s.tmp_11 = tiles_Location_y__P145169_mk(s); - s.tmp_11.arg0 = s.p___183034; - s.pc = 31; return s.tmp_11; - case 31: - r0 = s.retval; - s.tmp_10 = r0; - s.tmp_13 = Sprite_y__P144887_mk(s); - s.tmp_13.arg0 = s.arg0; - s.pc = 32; return s.tmp_13; - case 32: - r0 = s.retval; - s.tmp_12 = r0; - r0 = (s.tmp_10 - s.tmp_12); - s.tmp_9 = r0; - r0 = pxsim.Math_.pow(s.tmp_9, 2); - s.tmp_8 = r0; - r0 = (s.tmp_2 + s.tmp_8); - s.distSqrd___183036 = (r0); - r0 = (s.distSqrd___183036 < s.minDistSquared___183032); + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.nearestTile___183030 = (s.p___183034); - s.minDistSquared___183032 = (s.distSqrd___183036); - case 18: - case 19: - r0 = (s.unnamed7255___U8 + 1); - s.unnamed7255___U8 = (r0); - { step = 17; continue; } - case 20: - s.unnamed7254___U7 = (undefined); - s.tmp_0 = tiles_Location_place__P145171_mk(s); - s.tmp_0.arg0 = s.nearestTile___183030; - s.tmp_0.arg1 = s.arg0; - s.pc = 33; return s.tmp_0; - case 33: - r0 = s.retval; - s.tmp_0 = scene_getRemainingPath__P183065_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.pc = 34; return s.tmp_0; - case 34: - r0 = s.retval; - s.remainingPath___183062 = (r0); - s.tmp_0 = scene__followPath__P183069_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.remainingPath___183062; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = undefined; - s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - { step = 25; continue; } - case 21: - case 22: - s.tmp_0 = scene_getRemainingPath__P183065_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.pc = 36; return s.tmp_0; - case 36: - r0 = s.retval; - s.remainingPath___183074 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainingPath___183074); - if (!r0) { step = 23; continue; } - s.tmp_0 = scene__followPath__P183069_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.remainingPath___183074; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = undefined; - s.pc = 37; return s.tmp_0; - case 37: - r0 = s.retval; - { step = 25; continue; } - case 23: - case 24: - s.tmp_0 = scene_locationOfSprite__P183089_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 38; return s.tmp_0; - case 38: - r0 = s.retval; - s.currentLocation___183085 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P183096); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = scene_generalAStar__P147824_mk(s); - s.tmp_1.arg0 = s.tm___183021; - s.tmp_1.arg1 = s.currentLocation___183085; - s.tmp_1.arg2 = inline__P183095; - s.tmp_1.arg3 = s.tmp_0; - s.pc = 39; return s.tmp_1; - case 39: - r0 = s.retval; - s.pathToNearest___183090 = (r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P183116); + if (!r0) { step = 2; continue; } + { step = 4; continue; } + case 2: + case 3: + r0 = s.arg0.fields["store"]; + s.tmp_3 = r0; + r0 = pxsim_Array_.setAt(s.tmp_3, s.i___31742, s.parent___31759); + r0 = s.arg0.fields["store"]; 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 = scene__followPath__P183069_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.pathToNearest___183090; - s.tmp_1.arg2 = s.arg2; - s.tmp_1.arg3 = s.tmp_0; - s.pc = 40; return s.tmp_1; - case 40: - r0 = s.retval; - case 25: + r0 = pxsim_Array_.setAt(s.tmp_0, s.parentIndex___31755, s.curr___31750); + s.i___31742 = (s.parentIndex___31755); + { step = 1; continue; } + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_followPath__P182981.info = {"start":3834,"length":2314,"line":97,"column":4,"endLine":158,"endColumn":5,"fileName":"path-following.ts","functionName":"followPath","argumentNames":["sprite","path","speed"]} +Heap_percolateUp__P24064.info = {"start":1018,"length":432,"line":38,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"percolateUp","argumentNames":["this"]} -function scene_followPath__P182981_mk(s) { +function Heap_percolateUp__P24064_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_followPath__P182981, depth: s.depth + 1, + parent: s, fn: Heap_percolateUp__P24064, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, - pathFollowingSprites___182996: undefined, - i___183000: undefined, - pfs___183007: undefined, - tm___183021: undefined, - nearestTile___183030: undefined, - minDistSquared___183032: undefined, - p___183034: undefined, - unnamed7254___U7: undefined, - unnamed7255___U8: undefined, - distSqrd___183036: undefined, - remainingPath___183062: undefined, - remainingPath___183074: undefined, - currentLocation___183085: undefined, - pathToNearest___183090: undefined, + i___31742: undefined, + curr___31750: undefined, + parentIndex___31755: undefined, + parent___31759: undefined, + arg0: undefined, +} } + + + + + +function Heap_parent__P24065(s) { +let r0 = s.r0, 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, Heap__C22016_VT)) failedCast(r0); + r0 = (s.arg1 - 1); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 1); + return leave(s, r0) + default: oops() +} } } +Heap_parent__P24065.info = {"start":2292,"length":64,"line":102,"column":4,"endLine":104,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"parent","argumentNames":["this","i"]} + +function Heap_parent__P24065_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Heap_parent__P24065, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function inline__P183095(s) { +function scene_LocationNode_constructor__P24075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22138,24 +23022,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = 0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_LocationNode__C24074_VT)) failedCast(r0); + r0 = (s.arg0).fields["l"] = (s.arg1); + r0 = (s.arg0).fields["parent"] = (s.arg2); + r0 = (s.arg0).fields["lastCost"] = (s.arg3); + r0 = (s.arg0).fields["visited"] = (false); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P183095.info = {"start":5666,"length":7,"line":144,"column":64,"endLine":144,"endColumn":71,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} +scene_LocationNode_constructor__P24075.info = {"start":317,"length":189,"line":13,"column":8,"endLine":19,"endColumn":9,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","l","parent","lastCost"]} -function inline__P183095_mk(s) { +function scene_LocationNode_constructor__P24075_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P183095, depth: s.depth + 1, + parent: s, fn: scene_LocationNode_constructor__P24075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function inline__P183096(s) { +function tiles_TileMap_isObstacle__P20900(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22165,81 +23066,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pathTile___183099 = undefined; - s.unnamed7256___U1 = undefined; - s.unnamed7257___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.pathTile___183099 = (undefined); - s.unnamed7256___U1 = (s.caps[0]); - s.unnamed7257___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed7257___U2; - r0 = pxsim_Array__length(s.unnamed7256___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed7256___U1, s.unnamed7257___U2); - s.pathTile___183099 = (r0); - s.tmp_4 = tiles_Location_x__P145168_mk(s); - s.tmp_4.arg0 = s.arg0; - s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; - s.tmp_3 = r0; - s.tmp_6 = tiles_Location_x__P145168_mk(s); - s.tmp_6.arg0 = s.pathTile___183099; - s.pc = 9; return s.tmp_6; - case 9: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); s.tmp_5 = r0; - r0 = (s.tmp_3 === s.tmp_5); + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 2; continue; } - r0 = s.tmp_2; - { step = 3; continue; } + 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_8 = tiles_Location_y__P145169_mk(s); - s.tmp_8.arg0 = s.arg0; - s.pc = 10; return s.tmp_8; - case 10: + s.tmp_8 = tiles_TileMapData_isOutsideMap__P20880_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_8.arg0 = r0; + s.tmp_8.arg1 = s.arg1; + s.tmp_8.arg2 = s.arg2; + s.callLocIdx = 826; s.pc = 6; return s.tmp_8; + case 6: r0 = s.retval; s.tmp_7 = r0; - s.tmp_10 = tiles_Location_y__P145169_mk(s); - s.tmp_10.arg0 = s.pathTile___183099; - s.pc = 11; return s.tmp_10; - case 11: - r0 = s.retval; - s.tmp_9 = r0; - r0 = (s.tmp_7 === s.tmp_9); - case 3: - // jmp value (already in r0) - s.tmp_11 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_11); - if (!r0) { step = 4; continue; } + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 3; continue; } r0 = true; - { step = 7; continue; } + { step = 5; continue; } + case 3: case 4: + r0 = s.arg0.fields["_map"]; + s.tmp_9 = r0; + r0 = s.tmp_9.fields["layers"]; + s.tmp_11 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_11, s.arg1, s.arg2); + s.tmp_10 = r0; + r0 = (s.tmp_10 === 2); case 5: - r0 = (s.unnamed7257___U2 + 1); - s.unnamed7257___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed7256___U1 = (undefined); - r0 = false; - case 7: return leave(s, r0) default: oops() } } } -inline__P183096.info = {"start":5675,"length":221,"line":144,"column":73,"endLine":151,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":["tile"]} +tiles_TileMap_isObstacle__P20900.info = {"start":12421,"length":211,"line":404,"column":8,"endLine":409,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} -function inline__P183096_mk(s) { +function tiles_TileMap_isObstacle__P20900_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P183096, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isObstacle__P20900, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22253,17 +23139,16 @@ function inline__P183096_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - pathTile___183099: undefined, - unnamed7256___U1: undefined, - unnamed7257___U2: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P183116(s) { +function tiles_TileMapData_isOutsideMap__P20880(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22273,42 +23158,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.remainingPath___183117 = undefined; - s.tmp_0 = scene_getRemainingPath__P183065_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.caps[1]; - 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, tiles_TileMapData__C20868_VT)) failedCast(r0); + 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.retval; - s.remainingPath___183117 = (r0); - s.tmp_0 = scene__followPath__P183069_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.remainingPath___183117; - s.tmp_0.arg2 = s.caps[2]; - s.tmp_0.arg3 = undefined; - s.pc = 2; return s.tmp_0; + s.tmp_1 = r0 = s.arg1; + r0 = s.arg0.fields["_width"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); case 2: - r0 = s.retval; - r0 = undefined; + // 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.arg2 < 0); + case 4: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBool(s.tmp_4); + if (!r0) { step = 5; continue; } + r0 = s.tmp_4; + { step = 6; continue; } + case 5: + s.tmp_5 = r0 = s.arg2; + r0 = s.arg0.fields["_height"]; + s.tmp_6 = r0; + r0 = (s.tmp_5 >= s.tmp_6); + case 6: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = s.tmp_7; return leave(s, r0) default: oops() } } } -inline__P183116.info = {"start":5950,"length":191,"line":153,"column":50,"endLine":157,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} +tiles_TileMapData_isOutsideMap__P20880.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 inline__P183116_mk(s) { +function tiles_TileMapData_isOutsideMap__P20880_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P183116, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P20880, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - remainingPath___183117: 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_generalAStar__P147824(s) { +function tiles_TileMapData_isWall__P20879(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22318,591 +23239,121 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.consideredTiles___147883 = undefined; - s.encountedLocations___147903 = undefined; - s.updateOrFillLocation___147906 = undefined; - s.end___147975 = undefined; - s.currLocation___147981 = undefined; - s.row___147991 = undefined; - s.col___147996 = undefined; - s.dataForCurrLocation___148001 = undefined; - s.neighbors___148013 = undefined; - s.corners___148015 = undefined; - s.left___148017 = undefined; - s.right___148023 = undefined; - s.top___148030 = undefined; - s.bottom___148036 = undefined; - s.leftIsWall___148043 = undefined; - s.rightIsWall___148048 = undefined; - s.topIsWall___148053 = undefined; - s.bottomIsWall___148058 = undefined; - s.topLeft___148071 = undefined; - s.bottomLeft___148089 = undefined; - s.topRight___148114 = undefined; - s.bottomRight___148133 = undefined; - s.neighborCost___148163 = undefined; - s.node___148169 = undefined; - s.unnamed7250___U24 = undefined; - s.unnamed7251___U25 = undefined; - s.cornerCost___148179 = undefined; - s.corner___148185 = undefined; - s.unnamed7252___U28 = undefined; - s.unnamed7253___U29 = undefined; - s.endCol___148191 = undefined; - s.endDataNode___148198 = undefined; - s.curr___148211 = undefined; - s.output___148213 = 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_1 = scene_isWall__P147819_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = s.arg0; - s.pc = 52; return s.tmp_1; - case 52: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 51; continue; } - case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(Heap__C147782_VT); - s.tmp_2 = r0; - s.tmp_3 = Heap_constructor__P147794_mk(s); - s.tmp_3.arg0 = s.tmp_2; - s.tmp_3.arg1 = inline__P147886; - s.pc = 53; return s.tmp_3; - case 53: - r0 = s.retval; - s.consideredTiles___147883 = (s.tmp_2); - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.encountedLocations___147903 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(4, updateOrFillLocation__P147906); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.encountedLocations___147903); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg2); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.consideredTiles___147883); - s.updateOrFillLocation___147906 = (s.tmp_0); - s.tmp_1 = lambda_4_mk(s); - s.tmp_1.argL = s.updateOrFillLocation___147906; - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = null; - s.tmp_1.arg2 = 0; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.pc = 54; return s.tmp_1; - case 54: - r0 = s.retval; - s.end___147975 = (null); - case 3: - r0 = s.consideredTiles___147883.fields["store"]; - 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 = 40; continue; } - s.tmp_3 = Heap_pop__P147786_mk(s); - s.tmp_3.arg0 = s.consideredTiles___147883; - s.pc = 55; return s.tmp_3; - case 55: - r0 = s.retval; - s.currLocation___147981 = (r0); - s.tmp_1 = lambda_2_mk(s); - s.tmp_1.argL = s.arg3; - r0 = s.currLocation___147981.fields["loc"]; - s.tmp_1.arg0 = r0; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.pc = 56; return s.tmp_1; - case 56: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = s.currLocation___147981.fields["loc"]; - s.end___147975 = (r0); - { step = 40; continue; } - case 4: - case 5: - s.tmp_0 = scene_locationRow__P147914_mk(s); - r0 = s.currLocation___147981.fields["loc"]; - s.tmp_0.arg0 = r0; - s.pc = 57; return s.tmp_0; - case 57: - r0 = s.retval; - s.row___147991 = (r0); - s.tmp_0 = scene_locationCol__P147919_mk(s); - r0 = s.currLocation___147981.fields["loc"]; - s.tmp_0.arg0 = r0; - s.pc = 58; return s.tmp_0; - case 58: - r0 = s.retval; - s.col___147996 = (r0); - r0 = pxsim_Array__getAt(s.encountedLocations___147903, s.col___147996); - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.row___147991); - s.dataForCurrLocation___148001 = (r0); - s.tmp_0 = r0 = s.dataForCurrLocation___148001; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - r0 = s.dataForCurrLocation___148001.fields["visited"]; - case 7: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 8; continue; } - { step = 3; continue; } - case 8: - case 9: - r0 = (s.dataForCurrLocation___148001).fields["visited"] = (true); - r0 = pxsim_Array__mk(); - s.neighbors___148013 = (r0); - r0 = pxsim_Array__mk(); - s.corners___148015 = (r0); - s.tmp_0 = tiles_getTileLocation__P145227_mk(s); - r0 = (s.col___147996 - 1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.row___147991; - s.pc = 59; return s.tmp_0; - case 59: - r0 = s.retval; - s.left___148017 = (r0); - s.tmp_0 = tiles_getTileLocation__P145227_mk(s); - r0 = (s.col___147996 + 1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.row___147991; - s.pc = 60; return s.tmp_0; - case 60: - r0 = s.retval; - s.right___148023 = (r0); - s.tmp_0 = tiles_getTileLocation__P145227_mk(s); - s.tmp_0.arg0 = s.col___147996; - r0 = (s.row___147991 - 1); - s.tmp_0.arg1 = r0; - s.pc = 61; return s.tmp_0; - case 61: - r0 = s.retval; - s.top___148030 = (r0); - s.tmp_0 = tiles_getTileLocation__P145227_mk(s); - s.tmp_0.arg0 = s.col___147996; - r0 = (s.row___147991 + 1); - s.tmp_0.arg1 = r0; - s.pc = 62; return s.tmp_0; - case 62: - r0 = s.retval; - s.bottom___148036 = (r0); - s.tmp_0 = scene_isWall__P147819_mk(s); - s.tmp_0.arg0 = s.left___148017; - s.tmp_0.arg1 = s.arg0; - s.pc = 63; return s.tmp_0; - case 63: - r0 = s.retval; - s.leftIsWall___148043 = (r0); - s.tmp_0 = scene_isWall__P147819_mk(s); - s.tmp_0.arg0 = s.right___148023; - s.tmp_0.arg1 = s.arg0; - s.pc = 64; return s.tmp_0; - case 64: - r0 = s.retval; - s.rightIsWall___148048 = (r0); - s.tmp_0 = scene_isWall__P147819_mk(s); - s.tmp_0.arg0 = s.top___148030; - s.tmp_0.arg1 = s.arg0; - s.pc = 65; return s.tmp_0; - case 65: - r0 = s.retval; - s.topIsWall___148053 = (r0); - s.tmp_0 = scene_isWall__P147819_mk(s); - s.tmp_0.arg0 = s.bottom___148036; - s.tmp_0.arg1 = s.arg0; - s.pc = 66; return s.tmp_0; - case 66: - r0 = s.retval; - s.bottomIsWall___148058 = (r0); - r0 = pxsim_numops_toBoolDecr(s.leftIsWall___148043); - 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 = 18; continue; } - r0 = pxsim_Array__push(s.neighbors___148013, s.left___148017); - r0 = pxsim_numops_toBoolDecr(s.topIsWall___148053); - 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 = 12; continue; } - s.tmp_2 = tiles_getTileLocation__P145227_mk(s); - r0 = (s.col___147996 - 1); - s.tmp_2.arg0 = r0; - r0 = (s.row___147991 - 1); - s.tmp_2.arg1 = r0; - s.pc = 67; return s.tmp_2; - case 67: - r0 = s.retval; - s.topLeft___148071 = (r0); - s.tmp_3 = scene_isWall__P147819_mk(s); - s.tmp_3.arg0 = s.topLeft___148071; - s.tmp_3.arg1 = s.arg0; - s.pc = 68; return s.tmp_3; - case 68: - 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 = 10; continue; } - r0 = pxsim_Array__push(s.corners___148015, s.topLeft___148071); - case 10: - case 11: - case 12: - case 13: - r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___148058); - 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 = 16; continue; } - s.tmp_2 = tiles_getTileLocation__P145227_mk(s); - r0 = (s.col___147996 - 1); - s.tmp_2.arg0 = r0; - r0 = (s.row___147991 + 1); - s.tmp_2.arg1 = r0; - s.pc = 69; return s.tmp_2; - case 69: - r0 = s.retval; - s.bottomLeft___148089 = (r0); - s.tmp_3 = scene_isWall__P147819_mk(s); - s.tmp_3.arg0 = s.bottomLeft___148089; - s.tmp_3.arg1 = s.arg0; - s.pc = 70; return s.tmp_3; - case 70: - 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 = 14; continue; } - r0 = pxsim_Array__push(s.corners___148015, s.bottomLeft___148089); - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - r0 = pxsim_numops_toBoolDecr(s.rightIsWall___148048); - 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 = 28; continue; } - r0 = pxsim_Array__push(s.neighbors___148013, s.right___148023); - r0 = pxsim_numops_toBoolDecr(s.topIsWall___148053); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - s.tmp_2 = tiles_getTileLocation__P145227_mk(s); - r0 = (s.col___147996 + 1); - s.tmp_2.arg0 = r0; - r0 = (s.row___147991 - 1); - s.tmp_2.arg1 = r0; - s.pc = 71; return s.tmp_2; - case 71: - r0 = s.retval; - s.topRight___148114 = (r0); - s.tmp_3 = scene_isWall__P147819_mk(s); - s.tmp_3.arg0 = s.topRight___148114; - s.tmp_3.arg1 = s.arg0; - s.pc = 72; return s.tmp_3; - case 72: - 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 = 20; continue; } - r0 = pxsim_Array__push(s.corners___148015, s.topRight___148114); - case 20: - case 21: - case 22: - case 23: - r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___148058); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 26; continue; } - s.tmp_2 = tiles_getTileLocation__P145227_mk(s); - r0 = (s.col___147996 + 1); - s.tmp_2.arg0 = r0; - r0 = (s.row___147991 + 1); - s.tmp_2.arg1 = r0; - s.pc = 73; return s.tmp_2; - case 73: - r0 = s.retval; - s.bottomRight___148133 = (r0); - s.tmp_3 = scene_isWall__P147819_mk(s); - s.tmp_3.arg0 = s.bottomRight___148133; - s.tmp_3.arg1 = s.arg0; - s.pc = 74; return s.tmp_3; - case 74: - 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 = 24; continue; } - r0 = pxsim_Array__push(s.corners___148015, s.bottomRight___148133); - case 24: - case 25: - case 26: - case 27: - case 28: - case 29: - r0 = pxsim_numops_toBoolDecr(s.topIsWall___148053); - 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 = 30; continue; } - r0 = pxsim_Array__push(s.neighbors___148013, s.top___148030); - case 30: - case 31: - r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___148058); - 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 = 32; continue; } - r0 = pxsim_Array__push(s.neighbors___148013, s.bottom___148036); - case 32: - case 33: - r0 = s.currLocation___147981.fields["cost"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.neighborCost___148163 = (r0); - s.node___148169 = (undefined); - s.unnamed7250___U24 = (s.neighbors___148013); - s.unnamed7251___U25 = (0); - case 34: - s.tmp_0 = r0 = s.unnamed7251___U25; - r0 = pxsim_Array__length(s.unnamed7250___U24); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C20868_VT)) failedCast(r0); + r0 = s.arg0.fields["layers"]; s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 35; continue; } - r0 = pxsim_Array__getAt(s.unnamed7250___U24, s.unnamed7251___U25); - s.node___148169 = (r0); - s.tmp_2 = lambda_4_mk(s); - s.tmp_2.argL = s.updateOrFillLocation___147906; - s.tmp_2.arg0 = s.node___148169; - s.tmp_2.arg1 = s.dataForCurrLocation___148001; - s.tmp_2.arg2 = s.neighborCost___148163; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.pc = 75; return s.tmp_2; - case 75: - r0 = s.retval; - r0 = (s.unnamed7251___U25 + 1); - s.unnamed7251___U25 = (r0); - { step = 34; continue; } - case 35: - s.unnamed7250___U24 = (undefined); - r0 = pxsim_Array__length(s.corners___148015); + r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 38; continue; } - r0 = s.currLocation___147981.fields["cost"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1.414213562373095); - s.cornerCost___148179 = (r0); - s.corner___148185 = (undefined); - s.unnamed7252___U28 = (s.corners___148015); - s.unnamed7253___U29 = (0); - case 36: - s.tmp_0 = r0 = s.unnamed7253___U29; - r0 = pxsim_Array__length(s.unnamed7252___U28); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 37; continue; } - r0 = pxsim_Array__getAt(s.unnamed7252___U28, s.unnamed7253___U29); - s.corner___148185 = (r0); - s.tmp_2 = lambda_4_mk(s); - s.tmp_2.argL = s.updateOrFillLocation___147906; - s.tmp_2.arg0 = s.corner___148185; - s.tmp_2.arg1 = s.dataForCurrLocation___148001; - s.tmp_2.arg2 = s.cornerCost___148179; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.pc = 76; return s.tmp_2; - case 76: - r0 = s.retval; - r0 = (s.unnamed7253___U29 + 1); - s.unnamed7253___U29 = (r0); - { step = 36; continue; } - case 37: - s.unnamed7252___U28 = (undefined); - case 38: - case 39: - { step = 3; continue; } - case 40: - s.tmp_0 = r0 = s.end___147975; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 41; continue; } - r0 = s.tmp_0; - { step = 42; continue; } - case 41: - s.tmp_1 = r0 = s.encountedLocations___147903; - s.tmp_3 = scene_locationCol__P147919_mk(s); - s.tmp_3.arg0 = s.end___147975; - s.pc = 77; return s.tmp_3; - case 77: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - case 42: - // jmp value (already in r0) - s.tmp_4 = r0; - s.endCol___148191 = (s.tmp_4); - s.tmp_0 = r0 = s.endCol___148191; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 43; continue; } - r0 = s.tmp_0; - { step = 44; continue; } - case 43: - s.tmp_1 = r0 = s.endCol___148191; - s.tmp_3 = scene_locationRow__P147914_mk(s); - s.tmp_3.arg0 = s.end___147975; - s.pc = 78; return s.tmp_3; - case 78: + r0 = (s.tmp_0 === 2); + return leave(s, r0) + default: oops() +} } } +tiles_TileMapData_isWall__P20879.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__P20879_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMapData_isWall__P20879, 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_locationCol__P24199(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_1 = tiles_Location_x__P20857_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 114; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); - case 44: - // jmp value (already in r0) - s.tmp_4 = r0; - s.endDataNode___148198 = (s.tmp_4); - r0 = pxsim_numops_toBoolDecr(s.end___147975); - 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 = 45; continue; } - r0 = s.tmp_0; - { step = 46; continue; } - case 45: - r0 = pxsim_numops_toBoolDecr(s.endDataNode___148198); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 46: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 47; continue; } - r0 = undefined; - { step = 51; continue; } - case 47: - case 48: - s.curr___148211 = (s.endDataNode___148198); - r0 = pxsim_Array__mk(); - s.output___148213 = (r0); - case 49: - r0 = pxsim_numops_toBoolDecr(s.curr___148211); - if (!r0) { step = 50; continue; } - s.tmp_0 = helpers_arrayUnshift__P144179_mk(s); - s.tmp_0.arg0 = s.output___148213; - r0 = s.curr___148211.fields["l"]; - s.tmp_0.arg1 = r0; - s.pc = 79; return s.tmp_0; - case 79: + r0 = (s.tmp_0 >> 4); + return leave(s, r0) + default: oops() +} } } +scene_locationCol__P24199.info = {"start":7483,"length":82,"line":216,"column":4,"endLine":218,"endColumn":5,"fileName":"a-star.ts","functionName":"locationCol","argumentNames":["l"]} + +function scene_locationCol__P24199_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_locationCol__P24199, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function scene_locationRow__P24194(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_1 = tiles_Location_y__P20858_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 113; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - r0 = s.curr___148211.fields["parent"]; - s.curr___148211 = (r0); - { step = 49; continue; } - case 50: - r0 = s.output___148213; - case 51: + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 4); return leave(s, r0) default: oops() } } } -scene_generalAStar__P147824.info = {"start":1474,"length":5100,"line":51,"column":4,"endLine":196,"endColumn":5,"fileName":"a-star.ts","functionName":"generalAStar","argumentNames":["tm","start","heuristic","isEnd"]} +scene_locationRow__P24194.info = {"start":7393,"length":82,"line":212,"column":4,"endLine":214,"endColumn":5,"fileName":"a-star.ts","functionName":"locationRow","argumentNames":["l"]} -function scene_generalAStar__P147824_mk(s) { +function scene_locationRow__P24194_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_generalAStar__P147824, depth: s.depth + 1, + parent: s, fn: scene_locationRow__P24194, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - consideredTiles___147883: undefined, - encountedLocations___147903: undefined, - updateOrFillLocation___147906: undefined, - end___147975: undefined, - currLocation___147981: undefined, - row___147991: undefined, - col___147996: undefined, - dataForCurrLocation___148001: undefined, - neighbors___148013: undefined, - corners___148015: undefined, - left___148017: undefined, - right___148023: undefined, - top___148030: undefined, - bottom___148036: undefined, - leftIsWall___148043: undefined, - rightIsWall___148048: undefined, - topIsWall___148053: undefined, - bottomIsWall___148058: undefined, - topLeft___148071: undefined, - bottomLeft___148089: undefined, - topRight___148114: undefined, - bottomRight___148133: undefined, - neighborCost___148163: undefined, - node___148169: undefined, - unnamed7250___U24: undefined, - unnamed7251___U25: undefined, - cornerCost___148179: undefined, - corner___148185: undefined, - unnamed7252___U28: undefined, - unnamed7253___U29: undefined, - endCol___148191: undefined, - endDataNode___148198: undefined, - curr___148211: undefined, - output___148213: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function inline__P147886(s) { +function Heap_constructor__P22017(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22917,41 +23368,26 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["cost"]; - s.tmp_2 = r0; - r0 = pxsim.Math_.pow(s.tmp_2, 2); + r0 = s.arg0; + if (!checkSubtype(r0, Heap__C22016_VT)) failedCast(r0); + r0 = (s.arg0).fields["comparator"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = s.arg0.fields["extraCost"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); - s.tmp_0 = r0; - r0 = s.arg1.fields["cost"]; - s.tmp_6 = r0; - r0 = pxsim.Math_.pow(s.tmp_6, 2); - s.tmp_5 = r0; - r0 = s.arg1.fields["extraCost"]; - s.tmp_7 = r0; - r0 = (s.tmp_5 + s.tmp_7); - s.tmp_4 = r0; - r0 = (s.tmp_0 - s.tmp_4); + r0 = (s.tmp_0).fields["store"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P147886.info = {"start":1827,"length":67,"line":60,"column":12,"endLine":60,"endColumn":79,"fileName":"a-star.ts","functionName":"inline","argumentNames":["a","b"]} +Heap_constructor__P22017.info = {"start":257,"length":104,"line":7,"column":4,"endLine":11,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"inline","argumentNames":["this","comparator"]} -function inline__P147886_mk(s) { +function Heap_constructor__P22017_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P147886, depth: s.depth + 1, + parent: s, fn: Heap_constructor__P22017, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, } } @@ -22960,7 +23396,7 @@ function inline__P147886_mk(s) { -function updateOrFillLocation__P147906(s) { +function scene_isWalkable__P24093(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22970,141 +23406,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___147910 = undefined; - s.col___147915 = undefined; - s.colData___147924 = undefined; - s.lData___147934 = undefined; - s.h___147962 = undefined; + s.img___24573 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = scene_locationRow__P147914_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.row___147910 = (r0); - s.tmp_0 = scene_locationCol__P147919_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.col___147915 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P145217_mk(s); - s.tmp_1.arg0 = s.caps[0]; - s.tmp_1.arg1 = s.col___147915; - s.tmp_1.arg2 = s.row___147910; - s.pc = 14; return s.tmp_1; - case 14: + s.tmp_1 = scene_isWall__P24369_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg2; + s.callLocIdx = 118; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 11; continue; } + r0 = false; + { step = 5; continue; } case 1: case 2: - r0 = pxsim_Array__getAt(s.caps[1], s.col___147915); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - r0 = s.tmp_2; - { step = 4; continue; } + r0 = true; + { step = 5; continue; } case 3: - s.tmp_3 = r0 = s.caps[1]; - s.tmp_4 = r0 = s.col___147915; - r0 = pxsim_Array__mk(); - s.tmp_5 = r0; - r0 = pxsim_Array_.setAt(s.tmp_3, s.tmp_4, s.tmp_5); - r0 = s.tmp_5; case 4: - // jmp value (already in r0) - s.tmp_6 = r0; - s.colData___147924 = (s.tmp_6); - r0 = pxsim_Array__getAt(s.colData___147924, s.row___147910); - s.lData___147934 = (r0); - r0 = pxsim_numops_toBoolDecr(s.lData___147934); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_LocationNode__C147801_VT); - s.tmp_2 = r0; - s.tmp_3 = scene_LocationNode_constructor__P147802_mk(s); - s.tmp_3.arg0 = s.tmp_2; - s.tmp_3.arg1 = s.arg0; - s.tmp_3.arg2 = s.arg1; - s.tmp_3.arg3 = s.arg2; - s.pc = 15; return s.tmp_3; - case 15: - r0 = s.retval; - r0 = pxsim_Array_.setAt(s.colData___147924, s.row___147910, s.tmp_2); - { step = 10; continue; } - case 5: - r0 = s.lData___147934.fields["visited"]; - 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 = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - r0 = s.lData___147934.fields["lastCost"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 > s.arg2); - case 7: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 8; continue; } - r0 = (s.lData___147934).fields["lastCost"] = (s.arg2); - r0 = (s.lData___147934).fields["parent"] = (s.arg1); - { step = 9; continue; } + s.tmp_4 = tiles_TileMap_getTileImage__P20903_mk(s); + s.tmp_4.arg0 = s.arg2; + s.tmp_5 = tiles_TileMap_getTileIndex__P20894_mk(s); + s.tmp_5.arg0 = s.arg2; + r0 = s.arg0.fields["_col"]; + s.tmp_5.arg1 = r0; + r0 = s.arg0.fields["_row"]; + s.tmp_5.arg2 = r0; + s.callLocIdx = 121; s.pc = 8; return s.tmp_5; case 8: - { step = 11; continue; } - case 9: - case 10: - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.caps[2]; - s.tmp_0.arg0 = s.arg0; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.pc = 16; return s.tmp_0; - case 16: r0 = s.retval; - s.h___147962 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_PrioritizedLocation__C147795_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_PrioritizedLocation_constructor__P147796_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg2; - s.tmp_1.arg3 = s.h___147962; - s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - s.tmp_2 = Heap_push__P147785_mk(s); - s.tmp_2.arg0 = s.caps[3]; - s.tmp_2.arg1 = s.tmp_0; - s.pc = 18; return s.tmp_2; - case 18: + s.tmp_4.arg1 = r0; + s.callLocIdx = 122; s.pc = 7; return s.tmp_4; + case 7: r0 = s.retval; - case 11: - r0 = undefined; + s.img___24573 = (r0); + r0 = pxsim_ImageMethods.equals(s.img___24573, s.arg1); + case 5: return leave(s, r0) default: oops() } } } -updateOrFillLocation__P147906.info = {"start":1978,"length":1162,"line":64,"column":8,"endLine":101,"endColumn":9,"fileName":"a-star.ts","functionName":"updateOrFillLocation","argumentNames":["l","parent","cost"]} +scene_isWalkable__P24093.info = {"start":7750,"length":280,"line":226,"column":4,"endLine":231,"endColumn":5,"fileName":"a-star.ts","functionName":"isWalkable","argumentNames":["l","onTilesOf","tm"]} -function updateOrFillLocation__P147906_mk(s) { +function scene_isWalkable__P24093_mk(s) { checkStack(s.depth); return { - parent: s, fn: updateOrFillLocation__P147906, depth: s.depth + 1, + parent: s, fn: scene_isWalkable__P24093, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23112,12 +23470,7 @@ function updateOrFillLocation__P147906_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - row___147910: undefined, - col___147915: undefined, - colData___147924: undefined, - lData___147934: undefined, - h___147962: undefined, + img___24573: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -23127,7 +23480,7 @@ function updateOrFillLocation__P147906_mk(s) { -function helpers_arrayUnshift__P144179(s) { +function tiles_Location_row__P20855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23139,30 +23492,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_Array_.insertAt(s.arg0, 0, s.arg1); - r0 = pxsim_Array__length(s.arg0); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C20853_VT)) failedCast(r0); + r0 = s.arg0.fields["_row"]; + return leaveAccessor(s, r0) default: oops() } } } -helpers_arrayUnshift__P144179.info = {"start":4898,"length":126,"line":180,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayUnshift","argumentNames":["arr","value"]} +tiles_Location_row__P20855.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__P20855.isGetter = true; -function helpers_arrayUnshift__P144179_mk(s) { +function tiles_Location_row__P20855_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayUnshift__P144179, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P20855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function Heap_pop__P147786(s) { +function tiles_Location_col__P20854(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23172,66 +23525,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.output___155954 = undefined; - s.nextRoot___155959 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C147782_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, 0); - s.output___155954 = (r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.pop(s.tmp_0); - s.nextRoot___155959 = (r0); - r0 = s.arg0.fields["store"]; - 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; } - r0 = s.arg0.fields["store"]; - s.tmp_3 = r0; - r0 = pxsim_Array_.setAt(s.tmp_3, 0, s.nextRoot___155959); - s.tmp_0 = Heap_percolateDown__P147783_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + if (!checkSubtype(r0, tiles_Location__C20853_VT)) failedCast(r0); + r0 = s.arg0.fields["_col"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_Location_col__P20854.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__P20854.isGetter = true; + +function tiles_Location_col__P20854_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_col__P20854, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tiles_TileMap_getTileIndex__P20894(s) { +let r0 = s.r0, 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__C20881_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P20874_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.callLocIdx = 802; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = s.output___155954; + r0 = s.retval; return leave(s, r0) default: oops() } } } -Heap_pop__P147786.info = {"start":1536,"length":236,"line":61,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"pop","argumentNames":["this"]} +tiles_TileMap_getTileIndex__P20894.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 Heap_pop__P147786_mk(s) { +function tiles_TileMap_getTileIndex__P20894_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_pop__P147786, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P20894, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - output___155954: undefined, - nextRoot___155959: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Heap_percolateDown__P147783(s) { +function tiles_TileMap_data__P22384(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23241,151 +23606,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.data___155974 = undefined; - s.max___155977 = undefined; - s.left___155985 = undefined; - s.right___155989 = undefined; - s.curr___155993 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C147782_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; - s.data___155974 = (r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); - s.max___155977 = (r0); - case 1: - r0 = (s.arg1 < s.max___155977); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = (s.arg1 << 1); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - s.left___155985 = (r0); - r0 = (s.arg1 << 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 2); - s.right___155989 = (r0); - s.curr___155993 = (s.arg1); - r0 = (s.left___155985 < s.max___155977); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - s.tmp_2 = if_comparator_3_mk(s); - s.tmp_2.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.data___155974, s.curr___155993); - s.tmp_2.arg1 = r0; - r0 = pxsim_Array__getAt(s.data___155974, s.left___155985); - s.tmp_2.arg2 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "comparator"), 3); - s.pc = 13; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["comparator"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["comparator"], 3); s.pc = 13; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.pc = 13; return s.tmp_2;; } - else { s.pc = 13; return s.tmp_2; } + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_TileMap_data__P22384.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__P22384.isGetter = true; + +function tiles_TileMap_data__P22384_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_data__P22384, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tiles_TileMapData_getTile__P20874(s) { +let r0 = s.r0, 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 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - case 3: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 4; continue; } - s.curr___155993 = (s.left___155985); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C20868_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P20880_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 781; s.pc = 4; return s.tmp_1; case 4: - case 5: - r0 = (s.right___155989 < s.max___155977); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - s.tmp_2 = if_comparator_3_mk(s); - s.tmp_2.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.data___155974, s.curr___155993); - s.tmp_2.arg1 = r0; - r0 = pxsim_Array__getAt(s.data___155974, s.right___155989); - s.tmp_2.arg2 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "comparator"), 3); - s.pc = 14; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["comparator"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["comparator"], 3); s.pc = 14; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.pc = 14; return s.tmp_2;; } - else { s.pc = 14; return s.tmp_2; } - } - case 14: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - case 7: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 8; continue; } - s.curr___155993 = (s.right___155989); - case 8: - case 9: - r0 = (s.curr___155993 == s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - { step = 12; continue; } - case 10: - case 11: - r0 = pxsim_Array__getAt(s.data___155974, s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.data___155974, s.curr___155993); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 3; continue; } + case 1: + case 2: + r0 = s.arg0.fields["data"]; s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.data___155974, s.curr___155993, s.tmp_1); - r0 = pxsim_Array_.setAt(s.data___155974, s.arg1, s.tmp_2); - s.arg1 = (s.curr___155993); - { step = 1; continue; } - case 12: - r0 = undefined; + r0 = (s.arg1 | 0); + s.tmp_5 = r0; + r0 = (4 + s.tmp_5); + s.tmp_4 = r0; + r0 = (s.arg2 | 0); + s.tmp_7 = r0; + r0 = s.arg0.fields["_width"]; + s.tmp_8 = r0; + r0 = (s.tmp_7 * s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_4 + s.tmp_6); + s.tmp_3 = r0; + r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); + case 3: return leave(s, r0) default: oops() } } } -Heap_percolateDown__P147783.info = {"start":367,"length":645,"line":13,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"percolateDown","argumentNames":["this","i"]} +tiles_TileMapData_getTile__P20874.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 Heap_percolateDown__P147783_mk(s) { +function tiles_TileMapData_getTile__P20874_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_percolateDown__P147783, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P20874, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - data___155974: undefined, - max___155977: undefined, - left___155985: undefined, - right___155989: undefined, - curr___155993: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Heap_rightChild__P147793(s) { +function tiles_TileMap_getTileImage__P20903(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23401,19 +23723,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C147782_VT)) failedCast(r0); - r0 = (s.arg1 << 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 2); + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P20877_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 849; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -Heap_rightChild__P147793.info = {"start":2435,"length":68,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"rightChild","argumentNames":["this","i"]} +tiles_TileMap_getTileImage__P20903.info = {"start":13699,"length":96,"line":442,"column":8,"endLine":444,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function Heap_rightChild__P147793_mk(s) { +function tiles_TileMap_getTileImage__P20903_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_rightChild__P147793, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P20903, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23424,7 +23750,7 @@ function Heap_rightChild__P147793_mk(s) { -function Heap_leftChild__P147792(s) { +function tiles_TileMapData_getTileImage__P20877(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23434,27 +23760,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.size___31111 = undefined; + s.cachedImage___31115 = undefined; + s.originalImage___31121 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C147782_VT)) failedCast(r0); - r0 = (s.arg1 << 1); + if (!checkSubtype(r0, tiles_TileMapData__C20868_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); + r0 = (1 << s.tmp_0); + s.size___31111 = (r0); + r0 = s.arg0.fields["cachedTileView"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + s.cachedImage___31115 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___31115); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = s.arg0.fields["tileset"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); + s.originalImage___31121 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___31121); + if (!r0) { step = 5; continue; } + r0 = pxsim_ImageMethods.width(s.originalImage___31121); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= s.size___31111); + 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___31121); + s.tmp_2 = r0; + r0 = (s.tmp_2 <= s.size___31111); + 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___31115 = (s.originalImage___31121); + { step = 4; continue; } + case 3: + r0 = pxsim.image.create(s.size___31111, s.size___31111); + s.cachedImage___31115 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___31115, s.originalImage___31121, 0, 0); + case 4: + r0 = s.arg0.fields["cachedTileView"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___31115); + case 5: + case 6: + case 7: + case 8: + r0 = s.cachedImage___31115; return leave(s, r0) default: oops() } } } -Heap_leftChild__P147792.info = {"start":2362,"length":67,"line":106,"column":4,"endLine":108,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"leftChild","argumentNames":["this","i"]} +tiles_TileMapData_getTileImage__P20877.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 Heap_leftChild__P147792_mk(s) { +function tiles_TileMapData_getTileImage__P20877_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_leftChild__P147792, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P20877, depth: s.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___31111: undefined, + cachedImage___31115: undefined, + originalImage___31121: undefined, arg0: undefined, arg1: undefined, } } @@ -23463,7 +23847,7 @@ function Heap_leftChild__P147792_mk(s) { -function Heap_length__P147788(s) { +function tiles_TileMapData_scale__P20872(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23478,22 +23862,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C147782_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); + if (!checkSubtype(r0, tiles_TileMapData__C20868_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -Heap_length__P147788.info = {"start":1832,"length":54,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"length","argumentNames":["this"]} -Heap_length__P147788.isGetter = true; +tiles_TileMapData_scale__P20872.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__P20872.isGetter = true; -function Heap_length__P147788_mk(s) { +function tiles_TileMapData_scale__P20872_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_length__P147788, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P20872, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -23501,7 +23882,7 @@ function Heap_length__P147788_mk(s) { -function scene_PrioritizedLocation_constructor__P147796(s) { +function scene_locationOfSprite__P24896(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23513,38 +23894,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.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_PrioritizedLocation__C147795_VT)) failedCast(r0); - r0 = (s.arg0).fields["loc"] = (s.arg1); - r0 = (s.arg0).fields["cost"] = (s.arg2); - r0 = (s.arg0).fields["extraCost"] = (s.arg3); - r0 = undefined; + s.tmp_0 = tiles_getTileLocation__P20908_mk(s); + s.tmp_1 = scene_screenCoordinateToTile__P25110_mk(s); + s.tmp_2 = Sprite_x__P20589_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 196; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.callLocIdx = 197; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_3 = scene_screenCoordinateToTile__P25110_mk(s); + s.tmp_4 = Sprite_y__P20591_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 198; s.pc = 5; return s.tmp_4; + case 5: + r0 = s.retval; + s.tmp_3.arg0 = r0; + s.callLocIdx = 199; s.pc = 4; return s.tmp_3; + case 4: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 200; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -scene_PrioritizedLocation_constructor__P147796.info = {"start":60,"length":176,"line":2,"column":8,"endLine":7,"endColumn":13,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","loc","cost","extraCost"]} +scene_locationOfSprite__P24896.info = {"start":10339,"length":156,"line":286,"column":4,"endLine":288,"endColumn":5,"fileName":"path-following.ts","functionName":"locationOfSprite","argumentNames":["s"]} -function scene_PrioritizedLocation_constructor__P147796_mk(s) { +function scene_locationOfSprite__P24896_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_PrioritizedLocation_constructor__P147796, depth: s.depth + 1, + parent: s, fn: scene_locationOfSprite__P24896, depth: s.depth + 1, pc: 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 Heap_push__P147785(s) { +function scene_screenCoordinateToTile__P25110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23554,42 +23954,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tm___25112 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Heap__C147782_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 194; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___25112 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tm___25112); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = Heap_percolateUp__P147784_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (s.arg0 >> 4); + { step = 3; continue; } case 1: - r0 = s.retval; - r0 = undefined; + case 2: + s.tmp_2 = r0 = s.arg0; + r0 = s.tm___25112.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 >> s.tmp_3); + case 3: return leave(s, r0) default: oops() } } } -Heap_push__P147785.info = {"start":1456,"length":74,"line":56,"column":4,"endLine":59,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"push","argumentNames":["this","v"]} +scene_screenCoordinateToTile__P25110.info = {"start":10161,"length":172,"line":280,"column":4,"endLine":284,"endColumn":5,"fileName":"path-following.ts","functionName":"screenCoordinateToTile","argumentNames":["value"]} -function Heap_push__P147785_mk(s) { +function scene_screenCoordinateToTile__P25110_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_push__P147785, depth: s.depth + 1, + parent: s, fn: scene_screenCoordinateToTile__P25110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tm___25112: undefined, arg0: undefined, - arg1: undefined, } } -function Heap_percolateUp__P147784(s) { +function scene__followPath__P22034(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23599,98 +24012,161 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___156067 = undefined; - s.curr___156075 = undefined; - s.parentIndex___156080 = undefined; - s.parent___156084 = undefined; + s.store___25006 = undefined; + s.previousEl___25009 = undefined; + s.start___25019 = undefined; + s.pfs___25030 = 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, Heap__C147782_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Array__length(s.tmp_1); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.i___156067 = (r0); - case 1: - r0 = (s.i___156067 > 0); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["store"]; - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_1, s.i___156067); - s.curr___156075 = (r0); - r0 = (s.i___156067 - 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); - s.parentIndex___156080 = (r0); - r0 = s.arg0.fields["store"]; + if (!r0) { step = 1; continue; } + { step = 19; continue; } + case 1: + case 2: + s.tmp_2 = scene_init__P24606_mk(s); + s.callLocIdx = 185; s.pc = 20; return s.tmp_2; + case 20: + r0 = s.retval; + s.tmp_0 = scene_getPathFollowingSprites__P24627_mk(s); + s.callLocIdx = 186; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.store___25006 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P25011); s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.parentIndex___156080); - s.parent___156084 = (r0); - s.tmp_2 = if_comparator_3_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.parent___156084; - s.tmp_2.arg2 = s.curr___156075; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "comparator"), 3); - s.pc = 5; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["comparator"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["comparator"], 3); s.pc = 5; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.pc = 5; return s.tmp_2;; } - else { s.pc = 5; return s.tmp_2; } - } - case 5: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayFind__P18673_mk(s); + s.tmp_1.arg0 = s.store___25006; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 187; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; + s.previousEl___25009 = (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_Array__getAt(s.arg1, 0); + case 4: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); + s.start___25019 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.start___25019); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - { step = 4; continue; } - case 2: - case 3: - r0 = s.arg0.fields["store"]; + if (!r0) { step = 7; continue; } + r0 = pxsim_numops_toBoolDecr(s.previousEl___25009); + if (!r0) { step = 5; continue; } + r0 = pxsim_Array_.removeElement(s.store___25006, s.previousEl___25009); + case 5: + case 6: + { step = 19; continue; } + case 7: + case 8: + s.tmp_0 = r0 = s.previousEl___25009; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 9: + r0 = pxsim_pxtcore_mkClassInstance(scene_PathFollowingSprite__C24592_VT); + s.tmp_1 = r0; + s.tmp_2 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_2); + if (!r0) { step = 10; continue; } + r0 = s.tmp_2; + { step = 11; continue; } + case 10: + r0 = 50; + case 11: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_Array_.setAt(s.tmp_3, s.i___156067, s.parent___156084); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.parentIndex___156080, s.curr___156075); - s.i___156067 = (s.parentIndex___156080); - { step = 1; continue; } - case 4: + s.tmp_4 = scene_PathFollowingSprite_constructor__P24593_mk(s); + s.tmp_4.arg0 = s.tmp_1; + s.tmp_4.arg1 = s.arg0; + s.tmp_4.arg2 = s.arg1; + s.tmp_4.arg3 = s.tmp_3; + s.callLocIdx = 188; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + r0 = s.tmp_1; + case 12: + // jmp value (already in r0) + s.tmp_5 = r0; + s.pfs___25030 = (s.tmp_5); + r0 = pxsim_numops_toBoolDecr(s.previousEl___25009); + if (!r0) { step = 17; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 13; continue; } + r0 = (s.previousEl___25009).fields["speed"] = (s.arg2); + case 13: + case 14: + r0 = (s.previousEl___25009).fields["path"] = (s.arg1); + r0 = (s.previousEl___25009).fields["index"] = (0); + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 15; continue; } + r0 = (s.previousEl___25009).fields["onEndHandler"] = (s.arg3); + case 15: + case 16: + { step = 18; continue; } + case 17: + r0 = (s.pfs___25030).fields["onEndHandler"] = (s.arg3); + r0 = pxsim_Array__push(s.store___25006, s.pfs___25030); + case 18: + s.tmp_0 = scene_setVelocityTowards__P24742_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.start___25019; + r0 = s.pfs___25030.fields["speed"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 189; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + case 19: r0 = undefined; return leave(s, r0) default: oops() } } } -Heap_percolateUp__P147784.info = {"start":1018,"length":432,"line":38,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"percolateUp","argumentNames":["this"]} +scene__followPath__P22034.info = {"start":8286,"length":1001,"line":217,"column":4,"endLine":253,"endColumn":5,"fileName":"path-following.ts","functionName":"_followPath","argumentNames":["sprite","path","speed","endCb"]} -function Heap_percolateUp__P147784_mk(s) { +function scene__followPath__P22034_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_percolateUp__P147784, depth: s.depth + 1, + parent: s, fn: scene__followPath__P22034, depth: s.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___156067: undefined, - curr___156075: undefined, - parentIndex___156080: undefined, - parent___156084: undefined, + tmp_4: undefined, + tmp_5: undefined, + store___25006: undefined, + previousEl___25009: undefined, + start___25019: undefined, + pfs___25030: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Heap_parent__P147791(s) { +function inline__P25011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23702,34 +24178,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Heap__C147782_VT)) failedCast(r0); - r0 = (s.arg1 - 1); + r0 = s.arg0.fields["sprite"]; s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); + r0 = (s.tmp_0 === s.caps[0]); return leave(s, r0) default: oops() } } } -Heap_parent__P147791.info = {"start":2292,"length":64,"line":102,"column":4,"endLine":104,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"parent","argumentNames":["this","i"]} +inline__P25011.info = {"start":8537,"length":26,"line":223,"column":38,"endLine":223,"endColumn":64,"fileName":"path-following.ts","functionName":"inline","argumentNames":["el"]} -function Heap_parent__P147791_mk(s) { +function inline__P25011_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_parent__P147791, depth: s.depth + 1, + parent: s, fn: inline__P25011, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function scene_LocationNode_constructor__P147802(s) { +function scene_PathFollowingSprite_constructor__P24593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23747,21 +24219,21 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_LocationNode__C147801_VT)) failedCast(r0); - r0 = (s.arg0).fields["l"] = (s.arg1); - r0 = (s.arg0).fields["parent"] = (s.arg2); - r0 = (s.arg0).fields["lastCost"] = (s.arg3); - r0 = (s.arg0).fields["visited"] = (false); + if (!checkSubtype(r0, scene_PathFollowingSprite__C24592_VT)) failedCast(r0); + r0 = (s.arg0).fields["sprite"] = (s.arg1); + r0 = (s.arg0).fields["path"] = (s.arg2); + r0 = (s.arg0).fields["speed"] = (s.arg3); + r0 = (s.arg0).fields["index"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_LocationNode_constructor__P147802.info = {"start":317,"length":189,"line":13,"column":8,"endLine":19,"endColumn":9,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","l","parent","lastCost"]} +scene_PathFollowingSprite_constructor__P24593.info = {"start":247,"length":174,"line":8,"column":8,"endLine":14,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":["this","sprite","path","speed"]} -function scene_LocationNode_constructor__P147802_mk(s) { +function scene_PathFollowingSprite_constructor__P24593_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_LocationNode_constructor__P147802, depth: s.depth + 1, + parent: s, fn: scene_PathFollowingSprite_constructor__P24593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -23773,7 +24245,7 @@ function scene_LocationNode_constructor__P147802_mk(s) { -function tiles_TileMap_isObstacle__P145217(s) { +function scene_getRemainingPath__P24873(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23783,66 +24255,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.currentLocation___25134 = undefined; + s.i___25138 = undefined; + s.pathTile___25144 = undefined; + s.remainingPath___25159 = 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__C145197_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_0 = scene_locationOfSprite__P24896_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 201; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.currentLocation___25134 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.i___25138 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.i___25138, 0); + case 1: + r0 = pxsim_pxtrt_ldlocRef(s.i___25138); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_Array__length(s.arg1); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } - case 1: + if (!r0) { step = 8; continue; } + s.tmp_3 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.i___25138); + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); + s.pathTile___25144 = (r0); + s.tmp_2 = tiles_Location_x__P20857_mk(s); + s.tmp_2.arg0 = s.currentLocation___25134; + s.callLocIdx = 202; s.pc = 11; return s.tmp_2; + case 11: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = tiles_Location_x__P20857_mk(s); + s.tmp_4.arg0 = s.pathTile___25144; + s.callLocIdx = 203; s.pc = 12; return s.tmp_4; + case 12: + 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 = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } case 2: - s.tmp_8 = tiles_TileMapData_isOutsideMap__P145195_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_8.arg0 = r0; - s.tmp_8.arg1 = s.arg1; - s.tmp_8.arg2 = s.arg2; - s.pc = 6; return s.tmp_8; - case 6: + s.tmp_6 = tiles_Location_y__P20858_mk(s); + s.tmp_6.arg0 = s.currentLocation___25134; + s.callLocIdx = 204; s.pc = 13; return s.tmp_6; + case 13: + r0 = s.retval; + s.tmp_5 = r0; + s.tmp_8 = tiles_Location_y__P20858_mk(s); + s.tmp_8.arg0 = s.pathTile___25144; + s.callLocIdx = 205; s.pc = 14; return s.tmp_8; + case 14: r0 = s.retval; s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - r0 = true; - { step = 5; continue; } + r0 = (s.tmp_5 === s.tmp_7); case 3: - case 4: - r0 = s.arg0.fields["_map"]; + // jmp value (already in r0) s.tmp_9 = r0; - r0 = s.tmp_9.fields["layers"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_9); + if (!r0) { step = 6; continue; } + r0 = pxsim_pxtrt_ldlocRef(s.i___25138); s.tmp_11 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_11, s.arg1, s.arg2); + r0 = (s.tmp_11 === 0); s.tmp_10 = r0; - r0 = (s.tmp_10 === 2); + r0 = pxsim_numops_toBoolDecr(s.tmp_10); + if (!r0) { step = 4; continue; } + r0 = s.arg1; + { step = 5; continue; } + case 4: + r0 = pxsim_pxtcore_mkAction(1, inline__P25166); + s.tmp_12 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_12, 0, s.i___25138); + s.tmp_13 = helpers_arrayFilter__P18672_mk(s); + s.tmp_13.arg0 = s.arg1; + s.tmp_13.arg1 = s.tmp_12; + s.callLocIdx = 206; s.pc = 15; return s.tmp_13; + case 15: + r0 = s.retval; case 5: + // jmp value (already in r0) + s.tmp_14 = r0; + s.remainingPath___25159 = (s.tmp_14); + r0 = s.remainingPath___25159; + { step = 9; continue; } + case 6: + case 7: + s.tmp_0 = r0 = s.i___25138; + r0 = pxsim_pxtrt_ldlocRef(s.i___25138); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + { step = 1; continue; } + case 8: + r0 = null; + case 9: return leave(s, r0) default: oops() } } } -tiles_TileMap_isObstacle__P145217.info = {"start":11122,"length":211,"line":368,"column":8,"endLine":373,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} +scene_getRemainingPath__P24873.info = {"start":10501,"length":497,"line":290,"column":4,"endLine":300,"endColumn":5,"fileName":"path-following.ts","functionName":"getRemainingPath","argumentNames":["sprite","path"]} -function tiles_TileMap_isObstacle__P145217_mk(s) { +function scene_getRemainingPath__P24873_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P145217, depth: s.depth + 1, + parent: s, fn: scene_getRemainingPath__P24873, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23856,16 +24382,22 @@ function tiles_TileMap_isObstacle__P145217_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + currentLocation___25134: undefined, + i___25138: undefined, + pathTile___25144: undefined, + remainingPath___25159: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tiles_TileMapData_isWall__P145194(s) { +function inline__P25166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23878,38 +24410,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_TileMapData__C145184_VT)) failedCast(r0); - r0 = s.arg0.fields["layers"]; + s.tmp_0 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_1 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); - s.tmp_0 = r0; - r0 = (s.tmp_0 === 2); + r0 = (s.tmp_0 >= s.tmp_1); return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P145194.info = {"start":5275,"length":107,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} +inline__P25166.info = {"start":10892,"length":16,"line":295,"column":67,"endLine":295,"endColumn":83,"fileName":"path-following.ts","functionName":"inline","argumentNames":["_","j"]} -function tiles_TileMapData_isWall__P145194_mk(s) { +function inline__P25166_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P145194, depth: s.depth + 1, + parent: s, fn: inline__P25166, 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_locationCol__P147919(s) { +function tiles_TileMap_isOnWall__P20902(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23919,37 +24446,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.hbox___31388 = undefined; + s.left___31391 = undefined; + s.right___31397 = undefined; + s.top___31403 = undefined; + s.bottom___31409 = undefined; + s.col___31415 = undefined; + s.row___31421 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_1 = tiles_Location_x__P145168_mk(s); - s.tmp_1.arg0 = s.arg0; - s.pc = 1; return s.tmp_1; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + r0 = s.arg1.fields["_hitbox"]; + s.hbox___31388 = (r0); + s.tmp_1 = game_Hitbox_left__P20530_mk(s); + s.tmp_1.arg0 = s.hbox___31388; + s.callLocIdx = 835; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 >> 4); + 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___31391 = (r0); + s.tmp_1 = game_Hitbox_right__P20532_mk(s); + s.tmp_1.arg0 = s.hbox___31388; + s.callLocIdx = 838; 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___31397 = (r0); + s.tmp_1 = game_Hitbox_top__P20531_mk(s); + s.tmp_1.arg0 = s.hbox___31388; + s.callLocIdx = 841; 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___31403 = (r0); + s.tmp_1 = game_Hitbox_bottom__P20533_mk(s); + s.tmp_1.arg0 = s.hbox___31388; + s.callLocIdx = 844; 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___31409 = (r0); + s.col___31415 = (s.left___31391); + case 1: + r0 = (s.col___31415 <= s.right___31397); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.row___31421 = (s.top___31403); + case 2: + r0 = (s.row___31421 <= s.bottom___31409); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = tiles_TileMap_isObstacle__P20900_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.col___31415; + s.tmp_2.arg2 = s.row___31421; + s.callLocIdx = 847; 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___31421 + 1); + s.row___31421 = (r0); + { step = 2; continue; } + case 5: + r0 = (s.col___31415 + 1); + s.col___31415 = (r0); + { step = 1; continue; } + case 6: + r0 = false; + case 7: return leave(s, r0) default: oops() } } } -scene_locationCol__P147919.info = {"start":7136,"length":82,"line":214,"column":4,"endLine":216,"endColumn":5,"fileName":"a-star.ts","functionName":"locationCol","argumentNames":["l"]} +tiles_TileMap_isOnWall__P20902.info = {"start":13062,"length":627,"line":423,"column":8,"endLine":440,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} -function scene_locationCol__P147919_mk(s) { +function tiles_TileMap_isOnWall__P20902_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_locationCol__P147919, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P20902, depth: s.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___31388: undefined, + left___31391: undefined, + right___31397: undefined, + top___31403: undefined, + bottom___31409: undefined, + col___31415: undefined, + row___31421: undefined, arg0: undefined, + arg1: undefined, } } -function scene_locationRow__P147914(s) { +function game_Hitbox_bottom__P20533(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23963,25 +24589,34 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = tiles_Location_y__P145169_mk(s); - s.tmp_1.arg0 = s.arg0; - s.pc = 1; return s.tmp_1; + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C20523_VT)) failedCast(r0); + r0 = s.arg0.fields["height"]; + s.tmp_1 = r0; + s.tmp_3 = game_Hitbox_top__P20531_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 223; 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 >> 4); - return leave(s, r0) + r0 = (s.tmp_0 - 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_locationRow__P147914.info = {"start":7046,"length":82,"line":210,"column":4,"endLine":212,"endColumn":5,"fileName":"a-star.ts","functionName":"locationRow","argumentNames":["l"]} +game_Hitbox_bottom__P20533.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__P20533.isGetter = true; -function scene_locationRow__P147914_mk(s) { +function game_Hitbox_bottom__P20533_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_locationRow__P147914, depth: s.depth + 1, + parent: s, fn: game_Hitbox_bottom__P20533, depth: s.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, } } @@ -23989,7 +24624,7 @@ function scene_locationRow__P147914_mk(s) { -function Heap_constructor__P147794(s) { +function game_Hitbox_right__P20532(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24001,38 +24636,44 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C147782_VT)) failedCast(r0); - r0 = (s.arg0).fields["comparator"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + if (!checkSubtype(r0, game_Hitbox__C20523_VT)) failedCast(r0); + r0 = s.arg0.fields["width"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["store"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) + s.tmp_3 = game_Hitbox_left__P20530_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 220; 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() } } } -Heap_constructor__P147794.info = {"start":257,"length":104,"line":7,"column":4,"endLine":11,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"inline","argumentNames":["this","comparator"]} +game_Hitbox_right__P20532.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__P20532.isGetter = true; -function Heap_constructor__P147794_mk(s) { +function game_Hitbox_right__P20532_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_constructor__P147794, depth: s.depth + 1, + parent: s, fn: game_Hitbox_right__P20532, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, - arg1: undefined, } } -function scene_isWall__P147819(s) { +function game_Hitbox_top__P20531(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24042,54 +24683,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___148265 = undefined; - s.c___148269 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_locationRow__P147914_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.r___148265 = (r0); - s.tmp_0 = scene_locationCol__P147919_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.c___148269 = (r0); - s.tmp_0 = tiles_TileMap_isObstacle__P145217_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.c___148269; - s.tmp_0.arg2 = s.r___148265; - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C20523_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() } } } -scene_isWall__P147819.info = {"start":7226,"length":169,"line":218,"column":4,"endLine":222,"endColumn":5,"fileName":"a-star.ts","functionName":"isWall","argumentNames":["l","tm"]} +game_Hitbox_top__P20531.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__P20531.isGetter = true; -function scene_isWall__P147819_mk(s) { +function game_Hitbox_top__P20531_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_isWall__P147819, depth: s.depth + 1, + parent: s, fn: game_Hitbox_top__P20531, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - r___148265: undefined, - c___148269: undefined, + tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function scene_locationOfSprite__P183089(s) { +function game_Hitbox_left__P20530(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24103,47 +24729,27 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = tiles_getTileLocation__P145227_mk(s); - s.tmp_1 = scene_screenCoordinateToTile__P183307_mk(s); - s.tmp_2 = Sprite_x__P144885_mk(s); - s.tmp_2.arg0 = s.arg0; - s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_3 = scene_screenCoordinateToTile__P183307_mk(s); - s.tmp_4 = Sprite_y__P144887_mk(s); - s.tmp_4.arg0 = s.arg0; - s.pc = 5; return s.tmp_4; - case 5: - r0 = s.retval; - s.tmp_3.arg0 = r0; - s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C20523_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 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -scene_locationOfSprite__P183089.info = {"start":10317,"length":156,"line":286,"column":4,"endLine":288,"endColumn":5,"fileName":"path-following.ts","functionName":"locationOfSprite","argumentNames":["s"]} +game_Hitbox_left__P20530.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__P20530.isGetter = true; -function scene_locationOfSprite__P183089_mk(s) { +function game_Hitbox_left__P20530_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_locationOfSprite__P183089, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P20530, depth: s.depth + 1, pc: 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, } } @@ -24151,7 +24757,7 @@ function scene_locationOfSprite__P183089_mk(s) { -function scene_screenCoordinateToTile__P183307(s) { +function Fx_toIntShifted__P18715(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24161,55 +24767,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___183309 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___183309 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tm___183309); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 8); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0 >> 4); - { step = 3; continue; } - case 1: - case 2: - s.tmp_2 = r0 = s.arg0; - r0 = s.tm___183309.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 >> s.tmp_3); - case 3: + r0 = (s.tmp_0 >> s.tmp_1); return leave(s, r0) default: oops() } } } -scene_screenCoordinateToTile__P183307.info = {"start":10139,"length":172,"line":280,"column":4,"endLine":284,"endColumn":5,"fileName":"path-following.ts","functionName":"screenCoordinateToTile","argumentNames":["value"]} +Fx_toIntShifted__P18715.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 scene_screenCoordinateToTile__P183307_mk(s) { +function Fx_toIntShifted__P18715_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_screenCoordinateToTile__P183307, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P18715, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tm___183309: undefined, arg0: undefined, + arg1: undefined, } } -function scene__followPath__P183069(s) { +function Sprite_y__P20591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24219,188 +24806,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.store___183202 = undefined; - s.previousEl___183205 = undefined; - s.start___183215 = undefined; - s.pfs___183226 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 19; continue; } - case 1: - case 2: - s.tmp_2 = scene_init__P182797_mk(s); - s.pc = 20; return s.tmp_2; - case 20: - r0 = s.retval; - s.tmp_0 = scene_getPathFollowingSprites__P182818_mk(s); - s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.store___183202 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P183207); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFind__P144188_mk(s); - s.tmp_1.arg0 = s.store___183202; - s.tmp_1.arg1 = s.tmp_0; - s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - s.previousEl___183205 = (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_Array__getAt(s.arg1, 0); - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.start___183215 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.start___183215); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + r0 = s.arg0.fields["_y"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 / 256); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.previousEl___183205); - if (!r0) { step = 5; continue; } - r0 = pxsim_Array_.removeElement(s.store___183202, s.previousEl___183205); - case 5: - case 6: - { step = 19; continue; } - case 7: - case 8: - s.tmp_0 = r0 = s.previousEl___183205; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 12; continue; } - case 9: - r0 = pxsim_pxtcore_mkClassInstance(scene_PathFollowingSprite__C182783_VT); - s.tmp_1 = r0; - s.tmp_2 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_2); - if (!r0) { step = 10; continue; } - r0 = s.tmp_2; - { step = 11; continue; } - case 10: - r0 = 50; - case 11: - // jmp value (already in r0) + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_4); s.tmp_3 = r0; - s.tmp_4 = scene_PathFollowingSprite_constructor__P182784_mk(s); - s.tmp_4.arg0 = s.tmp_1; - s.tmp_4.arg1 = s.arg0; - s.tmp_4.arg2 = s.arg1; - s.tmp_4.arg3 = s.tmp_3; - s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; - r0 = s.tmp_1; - case 12: - // jmp value (already in r0) - s.tmp_5 = r0; - s.pfs___183226 = (s.tmp_5); - r0 = pxsim_numops_toBoolDecr(s.previousEl___183205); - if (!r0) { step = 17; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 13; continue; } - r0 = (s.previousEl___183205).fields["speed"] = (s.arg2); - case 13: - case 14: - r0 = (s.previousEl___183205).fields["path"] = (s.arg1); - r0 = (s.previousEl___183205).fields["index"] = (0); - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 15; continue; } - r0 = (s.previousEl___183205).fields["onEndHandler"] = (s.arg3); - case 15: - case 16: - { step = 18; continue; } - case 17: - r0 = (s.pfs___183226).fields["onEndHandler"] = (s.arg3); - r0 = pxsim_Array__push(s.store___183202, s.pfs___183226); - case 18: - s.tmp_0 = scene_setVelocityTowards__P182933_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.start___183215; - r0 = s.pfs___183226.fields["speed"]; - s.tmp_0.arg2 = r0; - s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - case 19: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_3 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -scene__followPath__P183069.info = {"start":8264,"length":1001,"line":217,"column":4,"endLine":253,"endColumn":5,"fileName":"path-following.ts","functionName":"_followPath","argumentNames":["sprite","path","speed","endCb"]} +Sprite_y__P20591.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__P20591.isGetter = true; -function scene__followPath__P183069_mk(s) { +function Sprite_y__P20591_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene__followPath__P183069, depth: s.depth + 1, + parent: s, fn: Sprite_y__P20591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - store___183202: undefined, - previousEl___183205: undefined, - start___183215: undefined, - pfs___183226: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function inline__P183207(s) { -let r0 = s.r0, 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["sprite"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 === s.caps[0]); - return leave(s, r0) - default: oops() -} } } -inline__P183207.info = {"start":8515,"length":26,"line":223,"column":38,"endLine":223,"endColumn":64,"fileName":"path-following.ts","functionName":"inline","argumentNames":["el"]} - -function inline__P183207_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P183207, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -24408,7 +24846,7 @@ function inline__P183207_mk(s) { -function scene_PathFollowingSprite_constructor__P182784(s) { +function Sprite_x__P20589(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24420,191 +24858,45 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_PathFollowingSprite__C182783_VT)) failedCast(r0); - r0 = (s.arg0).fields["sprite"] = (s.arg1); - r0 = (s.arg0).fields["path"] = (s.arg2); - r0 = (s.arg0).fields["speed"] = (s.arg3); - r0 = (s.arg0).fields["index"] = (0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_PathFollowingSprite_constructor__P182784.info = {"start":247,"length":174,"line":8,"column":8,"endLine":14,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":["this","sprite","path","speed"]} - -function scene_PathFollowingSprite_constructor__P182784_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_PathFollowingSprite_constructor__P182784, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function scene_getRemainingPath__P183065(s) { -let r0 = s.r0, 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.currentLocation___183331 = undefined; - s.i___183335 = undefined; - s.pathTile___183341 = undefined; - s.remainingPath___183356 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - s.tmp_0 = scene_locationOfSprite__P183089_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.currentLocation___183331 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.i___183335 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.i___183335, 0); - case 1: - r0 = pxsim_pxtrt_ldlocRef(s.i___183335); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; s.tmp_1 = r0; - r0 = pxsim_Array__length(s.arg1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = (s.tmp_1 / 256); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_3 = r0 = s.arg1; - r0 = pxsim_pxtrt_ldlocRef(s.i___183335); + r0 = s.arg0.fields["_image"]; s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.pathTile___183341 = (r0); - s.tmp_2 = tiles_Location_x__P145168_mk(s); - s.tmp_2.arg0 = s.currentLocation___183331; - s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = tiles_Location_x__P145168_mk(s); - s.tmp_4.arg0 = s.pathTile___183341; - s.pc = 12; return s.tmp_4; - case 12: - r0 = s.retval; + r0 = pxsim_ImageMethods.width(s.tmp_4); 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 = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - s.tmp_6 = tiles_Location_y__P145169_mk(s); - s.tmp_6.arg0 = s.currentLocation___183331; - s.pc = 13; return s.tmp_6; - case 13: - r0 = s.retval; - s.tmp_5 = r0; - s.tmp_8 = tiles_Location_y__P145169_mk(s); - s.tmp_8.arg0 = s.pathTile___183341; - s.pc = 14; return s.tmp_8; - case 14: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_5 === s.tmp_7); - case 3: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_9); - if (!r0) { step = 6; continue; } - r0 = pxsim_pxtrt_ldlocRef(s.i___183335); - s.tmp_11 = r0; - r0 = (s.tmp_11 === 0); - s.tmp_10 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_10); - if (!r0) { step = 4; continue; } - r0 = s.arg1; - { step = 5; continue; } - case 4: - r0 = pxsim_pxtcore_mkAction(1, inline__P183363); - s.tmp_12 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_12, 0, s.i___183335); - s.tmp_13 = helpers_arrayFilter__P144187_mk(s); - s.tmp_13.arg0 = s.arg1; - s.tmp_13.arg1 = s.tmp_12; - s.pc = 15; return s.tmp_13; - case 15: - r0 = s.retval; - case 5: - // jmp value (already in r0) - s.tmp_14 = r0; - s.remainingPath___183356 = (s.tmp_14); - r0 = s.remainingPath___183356; - { step = 9; continue; } - case 6: - case 7: - s.tmp_0 = r0 = s.i___183335; - r0 = pxsim_pxtrt_ldlocRef(s.i___183335); + r0 = (s.tmp_3 / 2); s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 1; continue; } - case 8: - r0 = null; - case 9: - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -scene_getRemainingPath__P183065.info = {"start":10479,"length":497,"line":290,"column":4,"endLine":300,"endColumn":5,"fileName":"path-following.ts","functionName":"getRemainingPath","argumentNames":["sprite","path"]} +Sprite_x__P20589.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__P20589.isGetter = true; -function scene_getRemainingPath__P183065_mk(s) { +function Sprite_x__P20589_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_getRemainingPath__P183065, depth: s.depth + 1, + parent: s, fn: Sprite_x__P20589, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, - currentLocation___183331: undefined, - i___183335: undefined, - pathTile___183341: undefined, - remainingPath___183356: undefined, arg0: undefined, - arg1: undefined, } } -function inline__P183363(s) { +function Sprite_setPosition__P20636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24614,36 +24906,88 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.physics___30523 = 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 = r0 = s.arg1; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 308; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___30523 = (r0); + s.tmp_0 = PhysicsEngine__C20723_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___30523; + s.tmp_0.arg1 = s.arg0; + s.tmp_2 = r0 = s.arg1; + s.tmp_4 = Sprite_x__P20589_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 309; s.pc = 3; return s.tmp_4; + case 3: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); s.tmp_1 = r0; - r0 = (s.tmp_0 >= s.tmp_1); + r0 = (s.tmp_1 * 256); + s.tmp_5 = r0; + r0 = (s.tmp_5 | 0); + s.tmp_0.arg2 = r0; + s.tmp_7 = r0 = s.arg2; + s.tmp_9 = Sprite_y__P20591_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 311; s.pc = 4; return s.tmp_9; + case 4: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7 - s.tmp_8); + s.tmp_6 = r0; + r0 = (s.tmp_6 * 256); + s.tmp_10 = r0; + r0 = (s.tmp_10 | 0); + s.tmp_0.arg3 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20723_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.moveSprite; + s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P183363.info = {"start":10870,"length":16,"line":295,"column":67,"endLine":295,"endColumn":83,"fileName":"path-following.ts","functionName":"inline","argumentNames":["_","j"]} +Sprite_setPosition__P20636.info = {"start":11962,"length":220,"line":430,"column":4,"endLine":437,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} -function inline__P183363_mk(s) { +function Sprite_setPosition__P20636_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P183363, depth: s.depth + 1, + parent: s, fn: Sprite_setPosition__P20636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + physics___30523: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_TileMap_isOnWall__P145219(s) { +function tiles_getTileLocation__P20908(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24653,127 +24997,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___155710 = undefined; - s.left___155713 = undefined; - s.right___155719 = undefined; - s.top___155725 = undefined; - s.bottom___155731 = undefined; - s.col___155737 = undefined; - s.row___155743 = undefined; + s.scene___31587 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - r0 = s.arg1.fields["_hitbox"]; - s.hbox___155710 = (r0); - s.tmp_1 = game_Hitbox_left__P144870_mk(s); - s.tmp_1.arg0 = s.hbox___155710; - s.pc = 8; return s.tmp_1; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 852; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; + s.scene___31587 = (r0); + r0 = (s.arg0 == undefined); 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___155713 = (r0); - s.tmp_1 = game_Hitbox_right__P144872_mk(s); - s.tmp_1.arg0 = s.hbox___155710; - 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___155719 = (r0); - s.tmp_1 = game_Hitbox_top__P144871_mk(s); - s.tmp_1.arg0 = s.hbox___155710; - 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___155725 = (r0); - s.tmp_1 = game_Hitbox_bottom__P144873_mk(s); - s.tmp_1.arg0 = s.hbox___155710; - 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___155731 = (r0); - s.col___155737 = (s.left___155713); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = (s.col___155737 <= s.right___155719); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.row___155743 = (s.top___155725); + r0 = (s.arg1 == undefined); case 2: - r0 = (s.row___155743 <= s.bottom___155731); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap_isObstacle__P145217_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___155737; - s.tmp_2.arg2 = s.row___155743; - s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_numops_toBool(s.tmp_1); if (!r0) { step = 3; continue; } - r0 = true; - { step = 7; continue; } + r0 = s.tmp_1; + { step = 4; continue; } case 3: + r0 = s.scene___31587.fields["tileMap"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 4: - r0 = (s.row___155743 + 1); - s.row___155743 = (r0); - { step = 2; continue; } + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + r0 = null; + { step = 7; continue; } case 5: - r0 = (s.col___155737 + 1); - s.col___155737 = (r0); - { step = 1; continue; } case 6: - r0 = false; + s.tmp_5 = tiles_TileMap_getTile__P20893_mk(s); + r0 = s.scene___31587.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.tmp_5.arg2 = s.arg1; + s.callLocIdx = 853; s.pc = 9; return s.tmp_5; + case 9: + r0 = s.retval; case 7: return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P145219.info = {"start":11763,"length":627,"line":387,"column":8,"endLine":404,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +tiles_getTileLocation__P20908.info = {"start":16285,"length":247,"line":515,"column":4,"endLine":519,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} -function tiles_TileMap_isOnWall__P145219_mk(s) { +function tiles_getTileLocation__P20908_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P145219, depth: s.depth + 1, + parent: s, fn: tiles_getTileLocation__P20908, depth: s.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___155710: undefined, - left___155713: undefined, - right___155719: undefined, - top___155725: undefined, - bottom___155731: undefined, - col___155737: undefined, - row___155743: undefined, + tmp_4: undefined, + tmp_5: undefined, + scene___31587: undefined, arg0: undefined, arg1: undefined, } } @@ -24782,7 +25072,7 @@ function tiles_TileMap_isOnWall__P145219_mk(s) { -function game_Hitbox_bottom__P144873(s) { +function tiles_TileMap_getTile__P20893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24794,44 +25084,45 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C144869_VT)) failedCast(r0); - r0 = s.arg0.fields["height"]; - s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P144871_mk(s); - s.tmp_3.arg0 = s.arg0; - s.pc = 1; return s.tmp_3; + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C20853_VT); + s.tmp_0 = r0; + s.tmp_1 = tiles_Location_constructor__P20856_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 = 800; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 256); - return leaveAccessor(s, r0) + r0 = s.tmp_0; + return leave(s, r0) default: oops() } } } -game_Hitbox_bottom__P144873.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__P144873.isGetter = true; +tiles_TileMap_getTile__P20893.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 game_Hitbox_bottom__P144873_mk(s) { +function tiles_TileMap_getTile__P20893_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P144873, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P20893, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_Hitbox_right__P144872(s) { +function tiles_Location_constructor__P20856(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24843,44 +25134,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C144869_VT)) failedCast(r0); - r0 = s.arg0.fields["width"]; - s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P144870_mk(s); - s.tmp_3.arg0 = s.arg0; - 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, tiles_Location__C20853_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() } } } -game_Hitbox_right__P144872.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__P144872.isGetter = true; +tiles_Location_constructor__P20856.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 game_Hitbox_right__P144872_mk(s) { +function tiles_Location_constructor__P20856_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P144872, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P20856, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_Hitbox_top__P144871(s) { +function scene_aStar__P22025(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24890,39 +25175,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tm___24086 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C144869_VT)) failedCast(r0); - r0 = s.arg0.fields["oy"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["parent"]; - r0 = r0.fields["_y"]; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 65; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___24086 = (r0); + s.tmp_3 = scene_isWalkable__P24093_mk(s); + s.tmp_3.arg0 = s.arg1; + s.tmp_3.arg1 = s.arg2; + s.tmp_3.arg2 = s.tm___24086; + s.callLocIdx = 66; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 3; continue; } + case 1: + case 2: + r0 = pxsim_pxtcore_mkAction(1, inline__P24102); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.arg1); + r0 = pxsim_pxtcore_mkAction(1, inline__P24108); + s.tmp_5 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.arg1); + s.tmp_6 = scene_generalAStar__P22027_mk(s); + s.tmp_6.arg0 = s.tm___24086; + s.tmp_6.arg1 = s.arg0; + s.tmp_6.arg2 = s.arg2; + s.tmp_6.arg3 = s.tmp_4; + s.tmp_6.arg4 = s.tmp_5; + s.callLocIdx = 72; s.pc = 6; return s.tmp_6; + case 6: + r0 = s.retval; + case 3: + return leave(s, r0) default: oops() } } } -game_Hitbox_top__P144871.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__P144871.isGetter = true; +scene_aStar__P22025.info = {"start":937,"length":377,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"a-star.ts","functionName":"aStar","argumentNames":["start","end","onTilesOf"]} -function game_Hitbox_top__P144871_mk(s) { +function scene_aStar__P22025_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P144871, depth: s.depth + 1, + parent: s, fn: scene_aStar__P22025, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tm___24086: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function game_Hitbox_left__P144870(s) { +function inline__P24102(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24936,27 +25263,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C144869_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 + s.tmp_1); - return leaveAccessor(s, r0) + s.tmp_0 = scene_tileLocationHeuristic__P24105_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 67; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) default: oops() } } } -game_Hitbox_left__P144870.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__P144870.isGetter = true; +inline__P24102.info = {"start":1221,"length":34,"line":37,"column":12,"endLine":37,"endColumn":46,"fileName":"a-star.ts","functionName":"inline","argumentNames":["t"]} -function game_Hitbox_left__P144870_mk(s) { +function inline__P24102_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P144870, depth: s.depth + 1, + parent: s, fn: inline__P24102, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -24964,7 +25287,7 @@ function game_Hitbox_left__P144870_mk(s) { -function Fx_toIntShifted__P144239(s) { +function inline__P24108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24976,34 +25299,72 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 8); + s.tmp_2 = tiles_Location_x__P20857_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 68; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0 >> s.tmp_1); + s.tmp_4 = tiles_Location_x__P20857_mk(s); + s.tmp_4.arg0 = s.caps[0]; + s.callLocIdx = 69; 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 = tiles_Location_y__P20858_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 70; s.pc = 5; return s.tmp_6; + case 5: + r0 = s.retval; + s.tmp_5 = r0; + s.tmp_8 = tiles_Location_y__P20858_mk(s); + s.tmp_8.arg0 = s.caps[0]; + s.callLocIdx = 71; 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_toIntShifted__P144239.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +inline__P24108.info = {"start":1270,"length":35,"line":38,"column":12,"endLine":38,"endColumn":47,"fileName":"a-star.ts","functionName":"inline","argumentNames":["l"]} -function Fx_toIntShifted__P144239_mk(s) { +function inline__P24108_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P144239, depth: s.depth + 1, + parent: s, fn: inline__P24108, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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 sprites_create__P144878(s) { +function scene_tileLocationHeuristic__P24105(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25013,78 +25374,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___154996 = undefined; - s.sprite___154999 = undefined; + s.startCol___24516 = undefined; + s.startRow___24520 = undefined; + s.endCol___24524 = undefined; + s.endRow___24528 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_locationCol__P24199_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 109; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___154996 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C144883_VT); - s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P144938_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.pc = 2; return s.tmp_1; + s.startCol___24516 = (r0); + s.tmp_0 = scene_locationRow__P24194_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 110; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.sprite___154999 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P144918_mk(s); - s.tmp_0.arg0 = s.sprite___154999; - s.tmp_0.arg1 = s.arg1; - s.pc = 3; return s.tmp_0; + s.startRow___24520 = (r0); + s.tmp_0 = scene_locationCol__P24199_mk(s); + s.tmp_0.arg0 = s.arg1; + s.callLocIdx = 111; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = PhysicsEngine__C144993_v0_2_mk(s); - r0 = s.scene___154996.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___154999; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C144993_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; - s.pc = 4; return s.tmp_0; + s.endCol___24524 = (r0); + s.tmp_0 = scene_locationRow__P24194_mk(s); + s.tmp_0.arg0 = s.arg1; + s.callLocIdx = 112; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P155014); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, inline__P155020); + s.endRow___24528 = (r0); + r0 = (s.startCol___24516 - s.endCol___24524); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___154999); - s.tmp_2 = helpers_arrayForEach__P144186_mk(s); - s.tmp_3 = helpers_arrayFilter__P144187_mk(s); - r0 = s.scene___154996.fields["createdHandlers"]; - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.tmp_0; - s.pc = 6; return s.tmp_3; - case 6: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - r0 = s.sprite___154999; + r0 = pxsim.Math_.pow(s.tmp_1, 2); + s.tmp_0 = r0; + r0 = (s.startRow___24520 - s.endRow___24528); + s.tmp_3 = r0; + r0 = pxsim.Math_.pow(s.tmp_3, 2); + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); return leave(s, r0) default: oops() } } } -sprites_create__P144878.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +scene_tileLocationHeuristic__P24105.info = {"start":6929,"length":350,"line":200,"column":4,"endLine":208,"endColumn":5,"fileName":"a-star.ts","functionName":"tileLocationHeuristic","argumentNames":["tile","target"]} -function sprites_create__P144878_mk(s) { +function scene_tileLocationHeuristic__P24105_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P144878, depth: s.depth + 1, + parent: s, fn: scene_tileLocationHeuristic__P24105, depth: s.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___154996: undefined, - sprite___154999: undefined, + startCol___24516: undefined, + startRow___24520: undefined, + endCol___24524: undefined, + endRow___24528: undefined, arg0: undefined, arg1: undefined, } } @@ -25093,7 +25442,7 @@ function sprites_create__P144878_mk(s) { -function inline__P155014(s) { +function controller_Button_onEvent__P20474(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25105,30 +25454,43 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 == s.caps[0]); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C20467_VT)) failedCast(r0); + s.tmp_0 = control_onEvent__P18944_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 = 151; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P155014.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +controller_Button_onEvent__P20474.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 inline__P155014_mk(s) { +function controller_Button_onEvent__P20474_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P155014, depth: s.depth + 1, + parent: s, fn: controller_Button_onEvent__P20474, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P155020(s) { +function scene_cameraFollowSprite__P21028(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25138,36 +25500,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___30549 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 1; return s.tmp_0;; } - else { s.pc = 1; return s.tmp_0; } - } + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 916; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + s.scene___30549 = (r0); + r0 = s.scene___30549.fields["camera"]; + s.tmp_0 = r0; + r0 = (s.tmp_0).fields["sprite"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P155020.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +scene_cameraFollowSprite__P21028.info = {"start":3990,"length":139,"line":142,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"cameraFollowSprite","argumentNames":["sprite"]} -function inline__P155020_mk(s) { +function scene_cameraFollowSprite__P21028_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P155020, depth: s.depth + 1, + parent: s, fn: scene_cameraFollowSprite__P21028, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + scene___30549: undefined, arg0: undefined, } } @@ -25175,7 +25533,7 @@ function inline__P155020_mk(s) { -function PhysicsEngine_addSprite__P144994(s) { +function controller_moveSprite__P20516(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25188,30 +25546,44 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C144993_VT)) failedCast(r0); + s.tmp_0 = controller_Controller_moveSprite__P20503_mk(s); + s.tmp_1 = controller__player1__P20481_mk(s); + s.callLocIdx = 211; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg2; + s.callLocIdx = 212; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_addSprite__P144994.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +controller_moveSprite__P20516.info = {"start":18919,"length":133,"line":574,"column":4,"endLine":576,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["sprite","vx","vy"]} -function PhysicsEngine_addSprite__P144994_mk(s) { +function controller_moveSprite__P20516_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P144994, depth: s.depth + 1, + parent: s, fn: controller_moveSprite__P20516, 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 Sprite_constructor__P144938(s) { +function controller_Controller_moveSprite__P20503(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25221,122 +25593,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.cp___30574 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P144762_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 15; continue; } case 1: + case 2: + s.tmp_5 = controller_Controller__controlledSprites__P20492_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 172; s.pc = 16; return s.tmp_5; + case 16: r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); - 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___144693); s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 - s.tmp_5); + r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_6 = r0; - r0 = (s.tmp_6 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.arg0.fields["_x"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); - r0 = s.arg0.fields["_y"]; - s.tmp_0 = r0; - r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = Sprite_vx__P144890_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.pc = 2; return s.tmp_0; - case 2: + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_6 = controller_Controller__controlledSprites__P20493_mk(s); + s.tmp_6.arg0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_6.arg1 = r0; + s.callLocIdx = 173; s.pc = 17; return s.tmp_6; + case 17: r0 = s.retval; - s.tmp_0 = Sprite_vy__P144892_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.pc = 3; return s.tmp_0; case 3: - r0 = s.retval; - s.tmp_0 = Sprite_ax__P144894_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.pc = 4; return s.tmp_0; case 4: + r0 = pxsim_pxtcore_mkAction(1, inline__P30577); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayFind__P18673_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P20492_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 174; s.pc = 19; return s.tmp_2; + case 19: r0 = s.retval; - s.tmp_0 = Sprite_ay__P144896_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.pc = 5; return s.tmp_0; - case 5: + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 175; s.pc = 18; return s.tmp_1; + case 18: r0 = s.retval; - s.tmp_0 = Sprite_fx__P144898_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.pc = 6; return s.tmp_0; - case 6: + s.cp___30574 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cp___30574); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_ControlledSprite__C20483_VT); + s.tmp_2 = r0; + s.tmp_3 = controller_ControlledSprite_constructor__P20485_mk(s); + s.tmp_3.arg0 = s.tmp_2; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.arg2; + s.tmp_3.arg3 = s.arg3; + s.callLocIdx = 176; s.pc = 20; return s.tmp_3; + case 20: r0 = s.retval; - s.tmp_0 = Sprite_fy__P144900_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.pc = 7; return s.tmp_0; - case 7: + s.cp___30574 = (s.tmp_2); + s.tmp_1 = controller_Controller__controlledSprites__P20492_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 177; s.pc = 21; return s.tmp_1; + case 21: r0 = s.retval; - r0 = (s.arg0).fields["flags"] = (0); - s.tmp_0 = Sprite_setImage__P144905_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.pc = 8; return s.tmp_0; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.cp___30574); + case 5: + case 6: + r0 = s.cp___30574.fields["vx"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = (s.arg2 == 0); case 8: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + s.tmp_2 = Sprite_vx__P20594_mk(s); + r0 = s.cp___30574.fields["s"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 178; s.pc = 22; return s.tmp_2; + case 22: r0 = s.retval; - s.tmp_0 = Sprite_setKind__P144918_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = -1; - 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(); + case 10: + r0 = s.cp___30574.fields["vy"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 11; continue; } + r0 = s.tmp_0; + { step = 12; continue; } + case 11: + r0 = (s.arg3 == 0); + case 12: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_obstacles"] = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 13; continue; } + s.tmp_2 = Sprite_vy__P20596_mk(s); + r0 = s.cp___30574.fields["s"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 179; s.pc = 23; return s.tmp_2; + case 23: + r0 = s.retval; + case 13: + case 14: + r0 = (s.cp___30574).fields["vx"] = (s.arg2); + r0 = (s.cp___30574).fields["vy"] = (s.arg3); + case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_constructor__P144938.info = {"start":5178,"length":618,"line":202,"column":4,"endLine":222,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +controller_Controller_moveSprite__P20503.info = {"start":10866,"length":608,"line":355,"column":8,"endLine":371,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"moveSprite","argumentNames":["this","sprite","vx","vy"]} -function Sprite_constructor__P144938_mk(s) { +function controller_Controller_moveSprite__P20503_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P144938, depth: s.depth + 1, + parent: s, fn: controller_Controller_moveSprite__P20503, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25345,15 +25739,18 @@ function Sprite_constructor__P144938_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + cp___30574: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Sprite_fy__P144900(s) { +function inline__P30577(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25365,49 +25762,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P144204_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - 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); + r0 = s.arg0.fields["s"]; + r0 = r0.fields["id"]; + s.tmp_0 = r0; + r0 = s.caps[0].fields["id"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_0 == s.tmp_1); return leave(s, r0) default: oops() } } } -Sprite_fy__P144900.info = {"start":4057,"length":64,"line":151,"column":4,"endLine":153,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +inline__P30577.info = {"start":11086,"length":26,"line":358,"column":50,"endLine":358,"endColumn":76,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["cp"]} -function Sprite_fy__P144900_mk(s) { +function inline__P30577_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P144900, depth: s.depth + 1, + parent: s, fn: inline__P30577, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_fy__P144899(s) { +function controller_ControlledSprite_constructor__P20485(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25419,33 +25801,38 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - r0 = s.arg0.fields["_fy"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, controller_ControlledSprite__C20483_VT)) failedCast(r0); + r0 = (s.arg0).fields["s"] = (s.arg1); + r0 = (s.arg0).fields["vx"] = (s.arg2); + r0 = (s.arg0).fields["vy"] = (s.arg3); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_fy__P144899.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__P144899.isGetter = true; +controller_ControlledSprite_constructor__P20485.info = {"start":7271,"length":117,"line":227,"column":8,"endLine":231,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","s","vx","vy"]} -function Sprite_fy__P144899_mk(s) { +function controller_ControlledSprite_constructor__P20485_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P144899, depth: s.depth + 1, + parent: s, fn: controller_ControlledSprite_constructor__P20485, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Sprite_fx__P144898(s) { +function sprites_create__P20538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25455,42 +25842,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___30624 = undefined; + s.sprite___30627 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P144204_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.pc = 1; return s.tmp_3; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 232; 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.scene___30624 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C20580_VT); + s.tmp_0 = r0; + s.tmp_1 = Sprite_constructor__P20617_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 233; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.sprite___30627 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P20635_mk(s); + s.tmp_0.arg0 = s.sprite___30627; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 234; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = PhysicsEngine__C20723_v0_2_mk(s); + r0 = s.scene___30624.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.sprite___30627; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C20723_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__P30642); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtcore_mkAction(1, inline__P30648); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___30627); + s.tmp_2 = helpers_arrayForEach__P18671_mk(s); + s.tmp_3 = helpers_arrayFilter__P18672_mk(s); + r0 = s.scene___30624.fields["createdHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 235; s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 237; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + r0 = s.sprite___30627; return leave(s, r0) default: oops() } } } -Sprite_fx__P144898.info = {"start":3714,"length":64,"line":141,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +sprites_create__P20538.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 Sprite_fx__P144898_mk(s) { +function sprites_create__P20538_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P144898, depth: s.depth + 1, + parent: s, fn: sprites_create__P20538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, + scene___30624: undefined, + sprite___30627: undefined, arg0: undefined, arg1: undefined, } } @@ -25499,7 +25922,7 @@ function Sprite_fx__P144898_mk(s) { -function Sprite_fx__P144897(s) { +function inline__P30642(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25513,21 +25936,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - r0 = s.arg0.fields["_fx"]; + r0 = s.arg0.fields["kind"]; s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = (s.tmp_0 == s.caps[0]); + return leave(s, r0) default: oops() } } } -Sprite_fx__P144897.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__P144897.isGetter = true; +inline__P30642.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_fx__P144897_mk(s) { +function inline__P30642_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P144897, depth: s.depth + 1, + parent: s, fn: inline__P30642, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25537,7 +25957,7 @@ function Sprite_fx__P144897_mk(s) { -function Sprite_ay__P144896(s) { +function inline__P30648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25549,68 +25969,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, Sprite__C144883_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["_ay"] = (s.tmp_1); + s.tmp_0 = if_handler_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); + s.callLocIdx = 236; s.pc = 1; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 236; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 236; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 236; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ay__P144896.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_ay__P144896_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_ay__P144896, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Sprite_ay__P144895(s) { -let r0 = s.r0, 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__C144883_VT)) failedCast(r0); - r0 = s.arg0.fields["_ay"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_ay__P144895.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__P144895.isGetter = true; +inline__P30648.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function Sprite_ay__P144895_mk(s) { +function inline__P30648_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P144895, depth: s.depth + 1, + parent: s, fn: inline__P30648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25620,7 +26004,7 @@ function Sprite_ay__P144895_mk(s) { -function Sprite_ax__P144894(s) { +function PhysicsEngine_addSprite__P20725(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25636,27 +26020,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_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); + if (!checkSubtype(r0, PhysicsEngine__C20723_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ax__P144894.info = {"start":3044,"length":51,"line":119,"column":4,"endLine":121,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +PhysicsEngine_addSprite__P20725.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function Sprite_ax__P144894_mk(s) { +function PhysicsEngine_addSprite__P20725_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P144894, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P20725, 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, } } @@ -25665,45 +26040,7 @@ function Sprite_ax__P144894_mk(s) { -function Sprite_ax__P144893(s) { -let r0 = s.r0, 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__C144883_VT)) failedCast(r0); - r0 = s.arg0.fields["_ax"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_ax__P144893.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__P144893.isGetter = true; - -function Sprite_ax__P144893_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_ax__P144893, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function Sprite_setKind__P144918(s) { +function Sprite_setKind__P20635(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25713,15 +26050,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___155039 = undefined; - s.overlapMap___155068 = undefined; + s.spritesByKind___30666 = undefined; + s.overlapMap___30695 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = (s.arg1 == undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -25740,12 +26077,12 @@ switch (step) { { step = 15; continue; } case 3: case 4: - s.tmp_3 = game_currentScene__P145074_mk(s); - s.pc = 16; return s.tmp_3; + s.tmp_3 = game_currentScene__P21096_mk(s); + s.callLocIdx = 303; s.pc = 16; return s.tmp_3; case 16: r0 = s.retval; r0 = r0.fields["spritesByKind"]; - s.spritesByKind___155039 = (r0); + s.spritesByKind___30666 = (r0); r0 = s.arg0.fields["_kind"]; s.tmp_1 = r0; r0 = (s.tmp_1 >= 0); @@ -25757,19 +26094,19 @@ switch (step) { case 5: r0 = s.arg0.fields["_kind"]; s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___155039, s.tmp_2); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___30666, 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__P144963_mk(s); + s.tmp_4 = sprites_SpriteSet_remove__P20682_mk(s); r0 = s.arg0.fields["_kind"]; s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___155039, s.tmp_5); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___30666, s.tmp_5); s.tmp_4.arg0 = r0; s.tmp_4.arg1 = s.arg0; - s.pc = 17; return s.tmp_4; + s.callLocIdx = 304; s.pc = 17; return s.tmp_4; case 17: r0 = s.retval; case 7: @@ -25778,7 +26115,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___155039, s.arg1); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___30666, s.arg1); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -25786,32 +26123,32 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C144957_VT); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C20675_VT); s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P144968_mk(s); + s.tmp_5 = sprites_SpriteSet_constructor__P20677_mk(s); s.tmp_5.arg0 = s.tmp_4; - s.pc = 18; return s.tmp_5; + s.callLocIdx = 305; s.pc = 18; return s.tmp_5; case 18: r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___155039, s.arg1, s.tmp_4); + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___30666, s.arg1, s.tmp_4); case 9: case 10: - s.tmp_0 = sprites_SpriteSet_add__P144961_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___155039, s.arg1); + s.tmp_0 = sprites_SpriteSet_add__P20680_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___30666, s.arg1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - s.pc = 19; return s.tmp_0; + s.callLocIdx = 306; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; case 11: case 12: - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 20; return s.tmp_0; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 307; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; r0 = r0.fields["overlapMap"]; - s.overlapMap___155068 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___155068, s.arg1); + s.overlapMap___30695 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___30695, s.arg1); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -25819,7 +26156,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.overlapMap___155068; + s.tmp_3 = r0 = s.overlapMap___30695; s.tmp_4 = r0 = s.arg1; r0 = pxsim_Array__mk(); s.tmp_5 = r0; @@ -25827,7 +26164,7 @@ switch (step) { case 13: case 14: s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___155068, s.arg1); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___30695, s.arg1); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); r0 = (s.arg0).fields["_kind"] = (s.arg1); @@ -25836,12 +26173,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setKind__P144918.info = {"start":10756,"length":663,"line":390,"column":4,"endLine":410,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +Sprite_setKind__P20635.info = {"start":10872,"length":663,"line":398,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} -function Sprite_setKind__P144918_mk(s) { +function Sprite_setKind__P20635_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P144918, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P20635, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25849,8 +26186,8 @@ function Sprite_setKind__P144918_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - spritesByKind___155039: undefined, - overlapMap___155068: undefined, + spritesByKind___30666: undefined, + overlapMap___30695: undefined, arg0: undefined, arg1: undefined, } } @@ -25859,47 +26196,7 @@ function Sprite_setKind__P144918_mk(s) { -function sprites_SpriteSet_constructor__P144968(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C144957_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__P144968.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__P144968_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_SpriteSet_constructor__P144968, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function sprites_SpriteSet_add__P144961(s) { +function sprites_SpriteSet_add__P20680(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25915,7 +26212,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C144957_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C20675_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -25946,12 +26243,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P144961.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +sprites_SpriteSet_add__P20680.info = {"start":1027,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} -function sprites_SpriteSet_add__P144961_mk(s) { +function sprites_SpriteSet_add__P20680_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P144961, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P20680, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25967,7 +26264,7 @@ function sprites_SpriteSet_add__P144961_mk(s) { -function sprites_SpriteSet_contains__P144964(s) { +function sprites_SpriteSet_contains__P20683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25983,7 +26280,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C144957_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C20675_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); @@ -25992,12 +26289,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P144964.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +sprites_SpriteSet_contains__P20683.info = {"start":2162,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} -function sprites_SpriteSet_contains__P144964_mk(s) { +function sprites_SpriteSet_contains__P20683_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P144964, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P20683, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26009,7 +26306,7 @@ function sprites_SpriteSet_contains__P144964_mk(s) { -function tiles_getTileLocation__P145227(s) { +function sprites_SpriteSet_constructor__P20677(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26019,82 +26316,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___155910 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.scene___155910 = (r0); - r0 = (s.arg0 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg1 == undefined); - case 2: - // jmp value (already in r0) + r0 = s.arg0; + if (!checkSubtype(r0, sprites_SpriteSet__C20675_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); 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.scene___155910.fields["tileMap"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 4: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - r0 = null; - { step = 7; continue; } - case 5: - case 6: - s.tmp_5 = tiles_TileMap_getTile__P145209_mk(s); - r0 = s.scene___155910.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg0; - s.tmp_5.arg2 = s.arg1; - s.pc = 9; return s.tmp_5; - case 9: - r0 = s.retval; - case 7: + r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_getTileLocation__P145227.info = {"start":14893,"length":247,"line":477,"column":4,"endLine":481,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} +sprites_SpriteSet_constructor__P20677.info = {"start":488,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} -function tiles_getTileLocation__P145227_mk(s) { +function sprites_SpriteSet_constructor__P20677_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileLocation__P145227, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_constructor__P20677, depth: s.depth + 1, pc: 0, retval: undefined, 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___155910: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_getTile__P145209(s) { +function Sprite_constructor__P20617(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26107,44 +26359,136 @@ 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__C145197_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C145167_VT); - s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P145173_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.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P20424_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 258; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = s.tmp_0; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___20366); + 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___20366); + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 - s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_6 = r0; + r0 = (s.tmp_6 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = s.arg0.fields["_x"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["_lastX"] = (s.tmp_0); + r0 = s.arg0.fields["_y"]; + s.tmp_0 = r0; + r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = Sprite_vx__P20594_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 261; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P20596_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 262; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_ax__P20598_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 263; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = Sprite_ay__P20600_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 264; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = Sprite_fx__P20602_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 265; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_fy__P20604_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 266; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["flags"] = (0); + s.tmp_0 = Sprite_setImage__P20620_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 267; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = Sprite_setKind__P20635_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 268; 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() } } } -tiles_TileMap_getTile__P145209.info = {"start":7071,"length":111,"line":259,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +Sprite_constructor__P20617.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 tiles_TileMap_getTile__P145209_mk(s) { +function Sprite_constructor__P20617_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P145209, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P20617, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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 tiles_Location_constructor__P145173(s) { +function Sprite_fy__P20604(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26157,37 +26501,48 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C145167_VT)) failedCast(r0); - r0 = (s.arg0).fields["_col"] = (s.arg1); - r0 = (s.arg0).fields["_row"] = (s.arg2); - r0 = (s.arg0).fields["tileMap"] = (s.arg3); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P18689_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 256; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_Location_constructor__P145173.info = {"start":406,"length":153,"line":19,"column":8,"endLine":23,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} +Sprite_fy__P20604.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 tiles_Location_constructor__P145173_mk(s) { +function Sprite_fy__P20604_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P145173, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P20604, depth: s.depth + 1, pc: 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 scene_aStar__P147810(s) { +function Sprite_fy__P20603(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26197,71 +26552,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___147813 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___147813 = (r0); - s.tmp_1 = scene_isWall__P147819_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = s.tm___147813; - s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + r0 = s.arg0.fields["_fy"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 3; continue; } - case 1: - case 2: - r0 = pxsim_pxtcore_mkAction(1, inline__P147827); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, inline__P147833); - s.tmp_3 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_3, 0, s.arg1); - s.tmp_4 = scene_generalAStar__P147824_mk(s); - s.tmp_4.arg0 = s.tm___147813; - s.tmp_4.arg1 = s.arg0; - s.tmp_4.arg2 = s.tmp_2; - s.tmp_4.arg3 = s.tmp_3; - s.pc = 6; return s.tmp_4; - case 6: - r0 = s.retval; - case 3: - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_aStar__P147810.info = {"start":769,"length":325,"line":29,"column":4,"endLine":37,"endColumn":5,"fileName":"a-star.ts","functionName":"aStar","argumentNames":["start","end"]} +Sprite_fy__P20603.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__P20603.isGetter = true; -function scene_aStar__P147810_mk(s) { +function Sprite_fy__P20603_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_aStar__P147810, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P20603, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tm___147813: undefined, arg0: undefined, - arg1: undefined, } } -function inline__P147827(s) { +function Sprite_fx__P20602(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26273,33 +26592,49 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_tileLocationHeuristic__P147830_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P18689_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 253; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_4 = r0; + r0 = (s.tmp_4 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P147827.info = {"start":1001,"length":34,"line":35,"column":12,"endLine":35,"endColumn":46,"fileName":"a-star.ts","functionName":"inline","argumentNames":["t"]} +Sprite_fx__P20602.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 inline__P147827_mk(s) { +function Sprite_fx__P20602_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P147827, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P20602, depth: s.depth + 1, pc: 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 inline__P147833(s) { +function Sprite_fx__P20601(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26313,62 +26648,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_2 = tiles_Location_x__P145168_mk(s); - s.tmp_2.arg0 = s.arg0; - s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = tiles_Location_x__P145168_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.pc = 4; return s.tmp_4; - case 4: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_1 === s.tmp_3); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + r0 = s.arg0.fields["_fx"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_6 = tiles_Location_y__P145169_mk(s); - s.tmp_6.arg0 = s.arg0; - s.pc = 5; return s.tmp_6; - case 5: - r0 = s.retval; - s.tmp_5 = r0; - s.tmp_8 = tiles_Location_y__P145169_mk(s); - s.tmp_8.arg0 = s.caps[0]; - 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) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -inline__P147833.info = {"start":1050,"length":35,"line":36,"column":12,"endLine":36,"endColumn":47,"fileName":"a-star.ts","functionName":"inline","argumentNames":["l"]} +Sprite_fx__P20601.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__P20601.isGetter = true; -function inline__P147833_mk(s) { +function Sprite_fx__P20601_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P147833, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P20601, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, } } @@ -26376,7 +26672,7 @@ function inline__P147833_mk(s) { -function scene_tileLocationHeuristic__P147830(s) { +function Sprite_ay__P20600(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26386,66 +26682,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.startCol___148228 = undefined; - s.startRow___148232 = undefined; - s.endCol___148236 = undefined; - s.endRow___148240 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_locationCol__P147919_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.startCol___148228 = (r0); - s.tmp_0 = scene_locationRow__P147914_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.startRow___148232 = (r0); - s.tmp_0 = scene_locationCol__P147919_mk(s); - s.tmp_0.arg0 = s.arg1; - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.endCol___148236 = (r0); - s.tmp_0 = scene_locationRow__P147914_mk(s); - s.tmp_0.arg0 = s.arg1; - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.endRow___148240 = (r0); - r0 = (s.startCol___148228 - s.endCol___148236); - s.tmp_1 = r0; - r0 = pxsim.Math_.pow(s.tmp_1, 2); - s.tmp_0 = r0; - r0 = (s.startRow___148232 - s.endRow___148240); - s.tmp_3 = r0; - r0 = pxsim.Math_.pow(s.tmp_3, 2); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); + 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() } } } -scene_tileLocationHeuristic__P147830.info = {"start":6582,"length":350,"line":198,"column":4,"endLine":206,"endColumn":5,"fileName":"a-star.ts","functionName":"tileLocationHeuristic","argumentNames":["tile","target"]} +Sprite_ay__P20600.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 scene_tileLocationHeuristic__P147830_mk(s) { +function Sprite_ay__P20600_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_tileLocationHeuristic__P147830, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P20600, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - startCol___148228: undefined, - startRow___148232: undefined, - endCol___148236: undefined, - endRow___148240: undefined, arg0: undefined, arg1: undefined, } } @@ -26454,7 +26717,7 @@ function scene_tileLocationHeuristic__P147830_mk(s) { -function controller_Button_onEvent__P144814(s) { +function Sprite_ay__P20599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26466,43 +26729,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, controller_Button__C144809_VT)) failedCast(r0); - s.tmp_0 = control_onEvent__P144406_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.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + r0 = s.arg0.fields["_ay"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -controller_Button_onEvent__P144814.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"]} +Sprite_ay__P20599.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__P20599.isGetter = true; -function controller_Button_onEvent__P144814_mk(s) { +function Sprite_ay__P20599_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_onEvent__P144814, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P20599, 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_createTilemap__P145223(s) { +function Sprite_ax__P20598(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26515,45 +26768,39 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMapData__C145184_VT); - s.tmp_0 = r0; - s.tmp_1 = tiles_TileMapData_constructor__P145196_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.arg1; - s.tmp_1.arg3 = s.arg2; - s.tmp_1.arg4 = s.arg3; - s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_createTilemap__P145223.info = {"start":12700,"length":170,"line":419,"column":4,"endLine":421,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"createTilemap","argumentNames":["data","layer","tiles","scale"]} +Sprite_ax__P20598.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 tiles_createTilemap__P145223_mk(s) { +function Sprite_ax__P20598_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_createTilemap__P145223, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P20598, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_TileMapData_constructor__P145196(s) { +function Sprite_ax__P20597(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26565,56 +26812,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C145184_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__P145188_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg4; - 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) + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + r0 = s.arg0.fields["_ax"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P145196.info = {"start":3105,"length":358,"line":115,"column":8,"endLine":123,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} +Sprite_ax__P20597.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__P20597.isGetter = true; -function tiles_TileMapData_constructor__P145196_mk(s) { +function Sprite_ax__P20597_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P145196, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P20597, 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 tiles_TileMapData_scale__P145188(s) { +function helpers_getTilemapByName__P20922(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26624,40 +26848,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___30840 = undefined; + s.unnamed244___U1 = undefined; + s.unnamed245___U2 = undefined; + s.data___30842 = 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__C145184_VT)) failedCast(r0); - r0 = (s.arg0).fields["_scale"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + r0 = pxsim_numops_toBoolDecr(globals.factories___22388); + if (!r0) { step = 5; continue; } + s.factory___30840 = (undefined); + s.unnamed244___U1 = (globals.factories___22388); + s.unnamed245___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed245___U2; + r0 = pxsim_Array__length(s.unnamed244___U1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1); - r0 = undefined; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed244___U1, s.unnamed245___U2); + s.factory___30840 = (r0); + s.tmp_2 = lambda_2_mk(s); + s.tmp_2.argL = s.factory___30840; + s.tmp_2.arg0 = s.arg0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 857; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.data___30842 = (r0); + r0 = pxsim_numops_toBoolDecr(s.data___30842); + if (!r0) { step = 2; continue; } + r0 = s.data___30842; + { step = 7; continue; } + case 2: + case 3: + r0 = (s.unnamed245___U2 + 1); + s.unnamed245___U2 = (r0); + { step = 1; continue; } + case 4: + s.unnamed244___U1 = (undefined); + case 5: + case 6: + r0 = null; + case 7: return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P145188.info = {"start":3697,"length":102,"line":137,"column":8,"endLine":140,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +helpers_getTilemapByName__P20922.info = {"start":20988,"length":254,"line":645,"column":4,"endLine":655,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTilemapByName","argumentNames":["name"]} -function tiles_TileMapData_scale__P145188_mk(s) { +function helpers_getTilemapByName__P20922_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P145188, depth: s.depth + 1, + parent: s, fn: helpers_getTilemapByName__P20922, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + factory___30840: undefined, + unnamed244___U1: undefined, + unnamed245___U2: undefined, + data___30842: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMapData_scale__P145187(s) { +function tilemap__P20916(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26669,30 +26928,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C145184_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) + r0 = null; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P145187.info = {"start":3621,"length":66,"line":133,"column":8,"endLine":135,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} -tiles_TileMapData_scale__P145187.isGetter = true; +tilemap__P20916.info = {"start":20205,"length":78,"line":620,"column":0,"endLine":620,"endColumn":78,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tilemap","argumentNames":["lits","args"]} -function tiles_TileMapData_scale__P145187_mk(s) { +function tilemap__P20916_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P145187, depth: s.depth + 1, + parent: s, fn: tilemap__P20916, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function tiles_setTilemap__P145224(s) { +function tiles_setTilemap__P20905(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26706,21 +26964,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_setTileMapLevel__P145309_mk(s); + s.tmp_0 = scene_setTileMapLevel__P21026_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 851; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_setTilemap__P145224.info = {"start":13211,"length":96,"line":430,"column":4,"endLine":432,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTilemap","argumentNames":["tilemap"]} +tiles_setTilemap__P20905.info = {"start":14603,"length":96,"line":468,"column":4,"endLine":470,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTilemap","argumentNames":["tilemap"]} -function tiles_setTilemap__P145224_mk(s) { +function tiles_setTilemap__P20905_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setTilemap__P145224, depth: s.depth + 1, + parent: s, fn: tiles_setTilemap__P20905, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26730,7 +26988,7 @@ function tiles_setTilemap__P145224_mk(s) { -function scene_setTileMapLevel__P145309(s) { +function scene_setTileMapLevel__P21026(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26740,17 +26998,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___155299 = undefined; + s.scene___30855 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 3; return s.tmp_0; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 911; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.scene___155299 = (r0); - r0 = s.scene___155299.fields["tileMap"]; + s.scene___30855 = (r0); + r0 = s.scene___30855.fields["tileMap"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -26758,49 +27016,49 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C145197_VT); + r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C20881_VT); s.tmp_3 = r0; - s.tmp_4 = tiles_TileMap_constructor__P145221_mk(s); + s.tmp_4 = tiles_TileMap_constructor__P20882_mk(s); s.tmp_4.arg0 = s.tmp_3; s.tmp_4.arg1 = 4; - s.pc = 4; return s.tmp_4; + s.callLocIdx = 912; s.pc = 4; return s.tmp_4; case 4: r0 = s.retval; - r0 = (s.scene___155299).fields["tileMap"] = (s.tmp_3); + r0 = (s.scene___30855).fields["tileMap"] = (s.tmp_3); case 1: case 2: - s.tmp_0 = tiles_TileMap_setData__P145208_mk(s); - r0 = s.scene___155299.fields["tileMap"]; + s.tmp_0 = tiles_TileMap_setData__P20892_mk(s); + r0 = s.scene___30855.fields["tileMap"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 913; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = tiles_TileMap_scale__P145199_mk(s); - r0 = s.scene___155299.fields["tileMap"]; + s.tmp_0 = tiles_TileMap_scale__P20884_mk(s); + r0 = s.scene___30855.fields["tileMap"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["_scale"]; s.tmp_0.arg1 = r0; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 915; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setTileMapLevel__P145309.info = {"start":2791,"length":260,"line":97,"column":4,"endLine":103,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} +scene_setTileMapLevel__P21026.info = {"start":2994,"length":260,"line":113,"column":4,"endLine":119,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} -function scene_setTileMapLevel__P145309_mk(s) { +function scene_setTileMapLevel__P21026_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setTileMapLevel__P145309, depth: s.depth + 1, + parent: s, fn: scene_setTileMapLevel__P21026, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - scene___155299: undefined, + scene___30855: undefined, arg0: undefined, } } @@ -26808,7 +27066,7 @@ function scene_setTileMapLevel__P145309_mk(s) { -function tiles_TileMap_constructor__P145221(s) { +function tiles_TileMap_setData__P20892(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26824,37 +27082,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P145199_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P155346); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = scene_createRenderable__P145247_mk(s); - s.tmp_1.arg0 = -1; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = undefined; - s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + r0 = (s.arg0).fields["_map"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_constructor__P145221.info = {"start":5677,"length":250,"line":200,"column":8,"endLine":208,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +tiles_TileMap_setData__P20892.info = {"start":7183,"length":66,"line":265,"column":8,"endLine":267,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} -function tiles_TileMap_constructor__P145221_mk(s) { +function tiles_TileMap_setData__P20892_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P145221, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_setData__P20892, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -26863,7 +27103,7 @@ function tiles_TileMap_constructor__P145221_mk(s) { -function inline__P155346(s) { +function tiles_TileMap_scale__P20884(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26878,25 +27118,35 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P145216_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.pc = 1; return s.tmp_0; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C20881_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__P20873_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 789; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P155346.info = {"start":5877,"length":25,"line":206,"column":16,"endLine":206,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +tiles_TileMap_scale__P20884.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 inline__P155346_mk(s) { +function tiles_TileMap_scale__P20884_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P155346, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P20884, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -26905,7 +27155,7 @@ function inline__P155346_mk(s) { -function scene_createRenderable__P145247(s) { +function tiles_TileMapData_scale__P20873(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26915,60 +27165,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___155610 = 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__C145241_VT); - s.tmp_0 = r0; - s.tmp_1 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_1); - if (!r0) { step = 1; continue; } - r0 = s.tmp_1; - { step = 2; continue; } - case 1: - r0 = inline__P155616; - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P145246_mk(s); - s.tmp_3.arg0 = s.tmp_0; - s.tmp_3.arg1 = s.arg1; - s.tmp_3.arg2 = s.tmp_2; - s.tmp_3.arg3 = s.arg0; - s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.renderable___155610 = (s.tmp_0); - r0 = s.renderable___155610; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C20868_VT)) failedCast(r0); + r0 = (s.arg0).fields["_scale"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["cachedTileView"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_createRenderable__P145247.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"]} +tiles_TileMapData_scale__P20873.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 scene_createRenderable__P145247_mk(s) { +function tiles_TileMapData_scale__P20873_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P145247, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P20873, depth: s.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___155610: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function inline__P155616(s) { +function tiles_TileMap_constructor__P20882(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26978,24 +27208,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = true; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + r0 = (s.arg0).fields["_layer"] = (1); + s.tmp_0 = tiles_TileMap_scale__P20884_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 786; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, inline__P30915); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = scene_createRenderable__P20947_mk(s); + s.tmp_1.arg0 = -1; + s.tmp_1.arg1 = s.tmp_0; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 788; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P155616.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +tiles_TileMap_constructor__P20882.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 inline__P155616_mk(s) { +function tiles_TileMap_constructor__P20882_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P155616, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P20882, 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_Renderable_constructor__P145246(s) { +function inline__P30915(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27008,43 +27266,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C145241_VT)) failedCast(r0); - r0 = (s.arg0).fields["handler"] = (s.arg1); - r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P144762_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.pc = 1; return s.tmp_0; + s.tmp_0 = tiles_TileMap_draw__P22386_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 787; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Renderable_constructor__P145246.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"]} +inline__P30915.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 scene_Renderable_constructor__P145246_mk(s) { +function inline__P30915_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P145246, depth: s.depth + 1, + parent: s, fn: inline__P30915, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function tiles_TileMap_draw__P145216(s) { +function tiles_TileMap_draw__P22386(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27054,21 +27305,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___155357 = undefined; - s.offsetX___155363 = undefined; - s.offsetY___155368 = undefined; - s.x0___155373 = undefined; - s.xn___155380 = undefined; - s.y0___155397 = undefined; - s.yn___155404 = undefined; - s.x___155421 = undefined; - s.y___155427 = undefined; - s.index___155433 = undefined; - s.tile___155440 = undefined; - s.x___155476 = undefined; - s.xLine___155482 = undefined; - s.y___155509 = undefined; - s.yLine___155515 = undefined; + s.bitmask___30926 = undefined; + s.offsetX___30932 = undefined; + s.offsetY___30937 = undefined; + s.x0___30942 = undefined; + s.xn___30949 = undefined; + s.y0___30966 = undefined; + s.yn___30973 = undefined; + s.x___30990 = undefined; + s.y___30996 = undefined; + s.index___31002 = undefined; + s.tile___31009 = undefined; + s.x___31045 = undefined; + s.xLine___31051 = undefined; + s.y___31077 = undefined; + s.yLine___31083 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -27076,7 +27327,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -27101,16 +27352,16 @@ switch (step) { r0 = (1 << s.tmp_8); s.tmp_7 = r0; r0 = (s.tmp_7 - 1); - s.bitmask___155357 = (r0); + s.bitmask___30926 = (r0); r0 = s.arg2.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___155357); - s.offsetX___155363 = (r0); + r0 = (s.tmp_0 & s.bitmask___30926); + s.offsetX___30932 = (r0); r0 = s.arg2.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___155357); - s.offsetY___155368 = (r0); - s.tmp_0 = Math_max__P144204_mk(s); + r0 = (s.tmp_0 & s.bitmask___30926); + s.offsetY___30937 = (r0); + s.tmp_0 = Math_max__P18689_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetX"]; s.tmp_1 = r0; @@ -27118,11 +27369,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 >> s.tmp_2); s.tmp_0.arg1 = r0; - s.pc = 24; return s.tmp_0; + s.callLocIdx = 808; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.x0___155373 = (r0); - s.tmp_0 = Math_min__P144205_mk(s); + s.x0___30942 = (r0); + s.tmp_0 = Math_min__P18690_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_width"]; @@ -27139,11 +27390,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 + 1); s.tmp_0.arg1 = r0; - s.pc = 25; return s.tmp_0; + s.callLocIdx = 811; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.xn___155380 = (r0); - s.tmp_0 = Math_max__P144204_mk(s); + s.xn___30949 = (r0); + s.tmp_0 = Math_max__P18689_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -27151,11 +27402,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 >> s.tmp_2); s.tmp_0.arg1 = r0; - s.pc = 26; return s.tmp_0; + s.callLocIdx = 813; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.y0___155397 = (r0); - s.tmp_0 = Math_min__P144205_mk(s); + s.y0___30966 = (r0); + s.tmp_0 = Math_min__P18690_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_height"]; @@ -27172,95 +27423,95 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 + 1); s.tmp_0.arg1 = r0; - s.pc = 27; return s.tmp_0; + s.callLocIdx = 816; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.yn___155404 = (r0); - s.x___155421 = (s.x0___155373); + s.yn___30973 = (r0); + s.x___30990 = (s.x0___30942); case 3: - r0 = (s.x___155421 <= s.xn___155380); + r0 = (s.x___30990 <= s.xn___30949); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___155427 = (s.y0___155397); + s.y___30996 = (s.y0___30966); case 4: - r0 = (s.y___155427 <= s.yn___155404); + r0 = (s.y___30996 <= s.yn___30973); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P145189_mk(s); + s.tmp_1 = tiles_TileMapData_getTile__P20874_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___155421; - s.tmp_1.arg2 = s.y___155427; - s.pc = 28; return s.tmp_1; + s.tmp_1.arg1 = s.x___30990; + s.tmp_1.arg2 = s.y___30996; + s.callLocIdx = 817; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - s.index___155433 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P145192_mk(s); + s.index___31002 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P20877_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___155433; - s.pc = 29; return s.tmp_0; + s.tmp_0.arg1 = s.index___31002; + s.callLocIdx = 818; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - s.tile___155440 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___155440); + s.tile___31009 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___31009); if (!r0) { step = 5; continue; } s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___155440; - r0 = (s.x___155421 - s.x0___155373); + s.tmp_1 = r0 = s.tile___31009; + r0 = (s.x___30990 - s.x0___30942); 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___155363); + r0 = (s.tmp_3 - s.offsetX___30932); s.tmp_2 = r0; - r0 = (s.y___155427 - s.y0___155397); + r0 = (s.y___30996 - s.y0___30966); 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___155368); + r0 = (s.tmp_7 - s.offsetY___30937); 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___155427 + 1); - s.y___155427 = (r0); + r0 = (s.y___30996 + 1); + s.y___30996 = (r0); { step = 4; continue; } case 7: - r0 = (s.x___155421 + 1); - s.x___155421 = (r0); + r0 = (s.x___30990 + 1); + s.x___30990 = (r0); { step = 3; continue; } case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___145366); + r0 = pxsim_numops_toBoolDecr(globals.debug___21092); if (!r0) { step = 21; continue; } - s.x___155476 = (s.x0___155373); + s.x___31045 = (s.x0___30942); case 9: - r0 = (s.x___155476 <= s.xn___155380); + r0 = (s.x___31045 <= s.xn___30949); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.x___155476 - s.x0___155373); + r0 = (s.x___31045 - s.x0___30942); 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___155363); - s.xLine___155482 = (r0); - r0 = (s.xLine___155482 >= 0); + r0 = (s.tmp_1 - s.offsetX___30932); + s.xLine___31051 = (r0); + r0 = (s.xLine___31051 >= 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___155482; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + s.tmp_1 = r0 = s.xLine___31051; + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 11: @@ -27268,46 +27519,46 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P144634_mk(s); + s.tmp_4 = helpers_imageDrawLine__P20294_mk(s); s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___155482; + s.tmp_4.arg1 = s.xLine___31051; s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___155482; + s.tmp_4.arg3 = s.xLine___31051; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_4.arg4 = r0; s.tmp_4.arg5 = 1; - s.pc = 30; return s.tmp_4; + s.callLocIdx = 822; s.pc = 30; return s.tmp_4; case 30: r0 = s.retval; case 12: case 13: - r0 = (s.x___155476 + 1); - s.x___155476 = (r0); + r0 = (s.x___31045 + 1); + s.x___31045 = (r0); { step = 9; continue; } case 14: - s.y___155509 = (s.y0___155397); + s.y___31077 = (s.y0___30966); case 15: - r0 = (s.y___155509 <= s.yn___155404); + r0 = (s.y___31077 <= s.yn___30973); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.y___155509 - s.y0___155397); + r0 = (s.y___31077 - s.y0___30966); 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___155368); - s.yLine___155515 = (r0); - r0 = (s.yLine___155515 >= 0); + r0 = (s.tmp_1 - s.offsetY___30937); + s.yLine___31083 = (r0); + r0 = (s.yLine___31083 >= 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___155515; - r0 = pxsim_ImageMethods.height(globals.screen___144693); + s.tmp_1 = r0 = s.yLine___31083; + r0 = pxsim_ImageMethods.height(globals.screen___20366); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 17: @@ -27315,21 +27566,21 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P144634_mk(s); + s.tmp_4 = helpers_imageDrawLine__P20294_mk(s); s.tmp_4.arg0 = s.arg1; s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___155515; + s.tmp_4.arg2 = s.yLine___31083; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___155515; + s.tmp_4.arg4 = s.yLine___31083; s.tmp_4.arg5 = 1; - s.pc = 31; return s.tmp_4; + s.callLocIdx = 824; s.pc = 31; return s.tmp_4; case 31: r0 = s.retval; case 18: case 19: - r0 = (s.y___155509 + 1); - s.y___155509 = (r0); + r0 = (s.y___31077 + 1); + s.y___31077 = (r0); { step = 15; continue; } case 20: case 21: @@ -27339,12 +27590,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P145216.info = {"start":8888,"length":2224,"line":311,"column":8,"endLine":366,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} +tiles_TileMap_draw__P22386.info = {"start":10187,"length":2224,"line":347,"column":8,"endLine":402,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} -function tiles_TileMap_draw__P145216_mk(s) { +function tiles_TileMap_draw__P22386_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P145216, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P22386, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27356,21 +27607,21 @@ function tiles_TileMap_draw__P145216_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - bitmask___155357: undefined, - offsetX___155363: undefined, - offsetY___155368: undefined, - x0___155373: undefined, - xn___155380: undefined, - y0___155397: undefined, - yn___155404: undefined, - x___155421: undefined, - y___155427: undefined, - index___155433: undefined, - tile___155440: undefined, - x___155476: undefined, - xLine___155482: undefined, - y___155509: undefined, - yLine___155515: undefined, + bitmask___30926: undefined, + offsetX___30932: undefined, + offsetY___30937: undefined, + x0___30942: undefined, + xn___30949: undefined, + y0___30966: undefined, + yn___30973: undefined, + x___30990: undefined, + y___30996: undefined, + index___31002: undefined, + tile___31009: undefined, + x___31045: undefined, + xLine___31051: undefined, + y___31077: undefined, + yLine___31083: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -27380,7 +27631,7 @@ function tiles_TileMap_draw__P145216_mk(s) { -function tiles_TileMapData_getTileImage__P145192(s) { +function scene_createRenderable__P20947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27390,94 +27641,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___155543 = undefined; - s.cachedImage___155547 = undefined; - s.originalImage___155553 = undefined; + s.renderable___31195 = 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__C145184_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - s.tmp_0 = r0; - r0 = (1 << s.tmp_0); - s.size___155543 = (r0); - r0 = s.arg0.fields["cachedTileView"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___155547 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___155547); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = s.arg0.fields["tileset"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___155553 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___155553); - if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___155553); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___155543); + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C20942_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = s.tmp_1; { step = 2; continue; } case 1: - r0 = pxsim_ImageMethods.height(s.originalImage___155553); - s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___155543); + r0 = inline__P31201; 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___155547 = (s.originalImage___155553); - { step = 4; continue; } + s.tmp_2 = r0; + s.tmp_3 = scene_Renderable_constructor__P20943_mk(s); + s.tmp_3.arg0 = s.tmp_0; + s.tmp_3.arg1 = s.arg1; + s.tmp_3.arg2 = s.tmp_2; + s.tmp_3.arg3 = s.arg0; + s.callLocIdx = 878; s.pc = 3; return s.tmp_3; case 3: - r0 = pxsim.image.create(s.size___155543, s.size___155543); - s.cachedImage___155547 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___155547, s.originalImage___155553, 0, 0); - case 4: - r0 = s.arg0.fields["cachedTileView"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___155547); - case 5: - case 6: - case 7: - case 8: - r0 = s.cachedImage___155547; + r0 = s.retval; + s.renderable___31195 = (s.tmp_0); + r0 = s.renderable___31195; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P145192.info = {"start":4411,"length":717,"line":162,"column":8,"endLine":179,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +scene_createRenderable__P20947.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 tiles_TileMapData_getTileImage__P145192_mk(s) { +function scene_createRenderable__P20947_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P145192, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P20947, depth: s.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___155543: undefined, - cachedImage___155547: undefined, - originalImage___155553: undefined, + renderable___31195: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, +} } + + + + + +function inline__P31201(s) { +let r0 = s.r0, 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 = true; + return leave(s, r0) + default: oops() +} } } +inline__P31201.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} + +function inline__P31201_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P31201, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } -function tiles_TileMapData_getTile__P145189(s) { +function scene_Renderable_constructor__P20943(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27491,49 +27735,98 @@ 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, tiles_TileMapData__C145184_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P145195_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.pc = 4; return s.tmp_1; - case 4: + if (!checkSubtype(r0, scene_Renderable__C20942_VT)) failedCast(r0); + r0 = (s.arg0).fields["handler"] = (s.arg1); + r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); + s.tmp_0 = sprites_BaseSprite_constructor__P20424_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 875; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Renderable_constructor__P20943.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__P20943_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Renderable_constructor__P20943, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function game_consoleOverlay_setVisible__P21217(s) { +let r0 = s.r0, 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_1 = r0 = s.arg0; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___22738); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 != s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 1; continue; } - r0 = 0; - { step = 3; continue; } + r0 = pxsim_Array__mk(); + { step = 2; continue; } case 1: + r0 = undefined; case 2: - r0 = s.arg0.fields["data"]; - s.tmp_2 = r0; - r0 = (s.arg1 | 0); - s.tmp_5 = r0; - r0 = (4 + s.tmp_5); - s.tmp_4 = r0; - r0 = (s.arg2 | 0); - s.tmp_7 = r0; - r0 = s.arg0.fields["_width"]; - s.tmp_8 = r0; - r0 = (s.tmp_7 * s.tmp_8); + // jmp value (already in r0) s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); + globals.consoleStrings___22738 = (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___22737 = (s.arg1); + case 5: + case 6: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P145189.info = {"start":3809,"length":200,"line":142,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +game_consoleOverlay_setVisible__P21217.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 tiles_TileMapData_getTile__P145189_mk(s) { +function game_consoleOverlay_setVisible__P21217_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P145189, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P21217, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27542,18 +27835,66 @@ function tiles_TileMapData_getTile__P145189_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function tiles_createTilemap__P20904(s) { +let r0 = s.r0, 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 = pxsim_pxtcore_mkClassInstance(tiles_TileMapData__C20868_VT); + s.tmp_0 = r0; + s.tmp_1 = tiles_TileMapData_constructor__P20869_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg1; + s.tmp_1.arg3 = s.arg2; + s.tmp_1.arg4 = s.arg3; + s.callLocIdx = 850; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; + return leave(s, r0) + default: oops() +} } } +tiles_createTilemap__P20904.info = {"start":14038,"length":170,"line":456,"column":4,"endLine":458,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"createTilemap","argumentNames":["data","layer","tiles","scale"]} + +function tiles_createTilemap__P20904_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_createTilemap__P20904, 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 tiles_TileMap_setData__P145208(s) { +function tiles_TileMapData_constructor__P20869(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27566,31 +27907,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - r0 = (s.arg0).fields["_map"] = (s.arg1); + if (!checkSubtype(r0, tiles_TileMapData__C20868_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__P20873_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg4; + s.callLocIdx = 780; 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_TileMap_setData__P145208.info = {"start":6995,"length":66,"line":255,"column":8,"endLine":257,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} +tiles_TileMapData_constructor__P20869.info = {"start":3293,"length":358,"line":125,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} -function tiles_TileMap_setData__P145208_mk(s) { +function tiles_TileMapData_constructor__P20869_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setData__P145208, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P20869, 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 tiles_TileMap_scale__P145199(s) { +function helpers_stringTrim__P18682(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27600,49 +27965,166 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.start___31270 = undefined; + s.end___31271 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - r0 = (s.arg0).fields["_scale"] = (s.arg1); - r0 = s.arg0.fields["_map"]; + s.start___31270 = (0); + r0 = pxsim_String_.length(s.arg0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = tiles_TileMapData_scale__P145188_mk(s); - r0 = s.arg0.fields["_map"]; + r0 = (s.tmp_0 - 1); + s.end___31271 = (r0); + case 1: + r0 = (s.start___31270 <= s.end___31271); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 2; continue; } + r0 = s.tmp_0; + { step = 3; continue; } + case 2: + s.tmp_1 = helpers_isWhitespace__P18683_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.start___31270); s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.pc = 3; return s.tmp_1; + s.callLocIdx = 15; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + r0 = (s.start___31270 + 1); + s.start___31270 = (r0); + { step = 1; continue; } + case 4: + case 5: + r0 = (s.end___31271 > s.start___31270); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + s.tmp_1 = helpers_isWhitespace__P18683_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.end___31271); + s.tmp_1.arg0 = r0; + s.callLocIdx = 16; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + case 7: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 8; continue; } + r0 = (s.end___31271 - 1); + s.end___31271 = (r0); + { step = 5; continue; } + case 8: + s.tmp_0 = helpers_stringSlice__P18679_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.start___31270; + r0 = (s.end___31271 + 1); + s.tmp_0.arg2 = r0; + s.callLocIdx = 17; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +helpers_stringTrim__P18682.info = {"start":13550,"length":319,"line":464,"column":4,"endLine":474,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringTrim","argumentNames":["s"]} + +function helpers_stringTrim__P18682_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_stringTrim__P18682, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + start___31270: undefined, + end___31271: undefined, + arg0: undefined, +} } + + + + + +function helpers_isWhitespace__P18683(s) { +let r0 = s.r0, 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() } } } -tiles_TileMap_scale__P145199.info = {"start":6002,"length":144,"line":214,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +helpers_isWhitespace__P18683.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 tiles_TileMap_scale__P145199_mk(s) { +function helpers_isWhitespace__P18683_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P145199, depth: s.depth + 1, + parent: s, fn: helpers_isWhitespace__P18683, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function game_consoleOverlay_setVisible__P145786(s) { +function helpers_registerTilemapFactory__P20921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27654,68 +28136,40 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___145747); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 != s.tmp_2); + r0 = pxsim_numops_toBoolDecr(globals.factories___22388); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 1; continue; } r0 = pxsim_Array__mk(); - { step = 2; continue; } + globals.factories___22388 = (r0); case 1: - r0 = undefined; case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - globals.consoleStrings___145747 = (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___145746 = (s.arg1); - case 5: - case 6: + r0 = pxsim_Array__push(globals.factories___22388, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P145786.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]} +helpers_registerTilemapFactory__P20921.info = {"start":20837,"length":145,"line":639,"column":4,"endLine":643,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"registerTilemapFactory","argumentNames":["factory"]} -function game_consoleOverlay_setVisible__P145786_mk(s) { +function helpers_registerTilemapFactory__P20921_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P145786, depth: s.depth + 1, + parent: s, fn: helpers_registerTilemapFactory__P20921, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, - arg1: undefined, } } -function game_eventContext__P145387(s) { +function game_eventContext__P21099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27725,21 +28179,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P145388_mk(s); + s.tmp_0 = game_init__P22448_mk(s); s.tmp_0.arg0 = undefined; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 918; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___145377.fields["eventContext"]; + r0 = globals._scene___22440.fields["eventContext"]; return leave(s, r0) default: oops() } } } -game_eventContext__P145387.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} +game_eventContext__P21099.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__P145387_mk(s) { +function game_eventContext__P21099_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_eventContext__P145387, depth: s.depth + 1, + parent: s, fn: game_eventContext__P21099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -27748,7 +28202,7 @@ function game_eventContext__P145387_mk(s) { -function controller_pauseUntilAnyButtonIsPressed__P144860(s) { +function controller_pauseUntilAnyButtonIsPressed__P20517(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27768,12 +28222,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P144860.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} +controller_pauseUntilAnyButtonIsPressed__P20517.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__P144860_mk(s) { +function controller_pauseUntilAnyButtonIsPressed__P20517_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P144860, depth: s.depth + 1, + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P20517, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -27781,7 +28235,7 @@ function controller_pauseUntilAnyButtonIsPressed__P144860_mk(s) { -function game_setWaitAnyButton__P145385(s) { +function game_setWaitAnyButton__P21097(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27795,17 +28249,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__waitAnyButton___145381 = (s.arg0); + globals.__waitAnyButton___22444 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -game_setWaitAnyButton__P145385.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__P21097.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__P145385_mk(s) { +function game_setWaitAnyButton__P21097_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_setWaitAnyButton__P145385, depth: s.depth + 1, + parent: s, fn: game_setWaitAnyButton__P21097, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -27814,7 +28268,7 @@ function game_setWaitAnyButton__P145385_mk(s) { -function Math_abs__P144202(s) { +function Math_abs__P18687(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27843,12 +28297,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_abs__P144202.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__P18687.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__P144202_mk(s) { +function Math_abs__P18687_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P144202, depth: s.depth + 1, + parent: s, fn: Math_abs__P18687, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27859,7 +28313,7 @@ function Math_abs__P144202_mk(s) { -function Math_sign__P144203(s) { +function Math_sign__P18688(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27894,12 +28348,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_sign__P144203.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__P18688.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__P144203_mk(s) { +function Math_sign__P18688_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_sign__P144203, depth: s.depth + 1, + parent: s, fn: Math_sign__P18688, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27910,7 +28364,7 @@ function Math_sign__P144203_mk(s) { -function texteffects_TextEffect_constructor__P146005(s) { +function texteffects_TextEffect_constructor__P21397(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27926,18 +28380,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, texteffects_TextEffect__C146004_VT)) failedCast(r0); + if (!checkSubtype(r0, texteffects_TextEffect__C21395_VT)) failedCast(r0); r0 = (s.arg0).fields["getState"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -texteffects_TextEffect_constructor__P146005.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__P21397.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__P146005_mk(s) { +function texteffects_TextEffect_constructor__P21397_mk(s) { checkStack(s.depth); return { - parent: s, fn: texteffects_TextEffect_constructor__P146005, depth: s.depth + 1, + parent: s, fn: texteffects_TextEffect_constructor__P21397, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -27947,7 +28401,7 @@ function texteffects_TextEffect_constructor__P146005_mk(s) { -function Math_FastRandom_constructor__P145669(s) { +function Math_FastRandom_constructor__P21152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27963,7 +28417,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C145662_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C21150_VT)) failedCast(r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -27978,12 +28432,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_constructor__P145669.info = {"start":1392,"length":175,"line":43,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]} +Math_FastRandom_constructor__P21152.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__P145669_mk(s) { +function Math_FastRandom_constructor__P21152_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P145669, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P21152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27994,7 +28448,7 @@ function Math_FastRandom_constructor__P145669_mk(s) { -function control_ramSize__P144354(s) { +function control_ramSize__P18899(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28019,12 +28473,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_ramSize__P144354.info = {"start":5058,"length":100,"line":172,"column":4,"endLine":174,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} +control_ramSize__P18899.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__P144354_mk(s) { +function control_ramSize__P18899_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_ramSize__P144354, depth: s.depth + 1, + parent: s, fn: control_ramSize__P18899, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28034,7 +28488,7 @@ function control_ramSize__P144354_mk(s) { -function control__ramSize__P144353(s) { +function control__ramSize__P22087(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28048,12 +28502,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control__ramSize__P144353.info = {"start":4938,"length":60,"line":167,"column":4,"endLine":169,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} +control__ramSize__P22087.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__P144353_mk(s) { +function control__ramSize__P22087_mk(s) { checkStack(s.depth); return { - parent: s, fn: control__ramSize__P144353, depth: s.depth + 1, + parent: s, fn: control__ramSize__P22087, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -28061,7 +28515,7 @@ function control__ramSize__P144353_mk(s) { -function game_consoleOverlay_listener__P145783(s) { +function game_consoleOverlay_listener__P22773(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28076,7 +28530,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___145747); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___22738); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -28096,39 +28550,39 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_4 = helpers_arrayForEach__P144186_mk(s); - s.tmp_5 = helpers_arrayFilter__P144187_mk(s); - s.tmp_6 = helpers_stringSplit__P144196_mk(s); + s.tmp_4 = helpers_arrayForEach__P18671_mk(s); + s.tmp_5 = helpers_arrayFilter__P18672_mk(s); + s.tmp_6 = helpers_stringSplit__P18681_mk(s); s.tmp_6.arg0 = s.arg1; s.tmp_6.arg1 = "\n"; s.tmp_6.arg2 = undefined; - s.pc = 10; return s.tmp_6; + s.callLocIdx = 1102; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = inline__P156292; - s.pc = 9; return s.tmp_5; + s.tmp_5.arg1 = inline__P31967; + s.callLocIdx = 1103; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = inline__P156297; - s.pc = 8; return s.tmp_4; + s.tmp_4.arg1 = inline__P31972; + s.callLocIdx = 1105; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___145747); + r0 = pxsim_Array__length(globals.consoleStrings___22738); s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___145760); + r0 = (s.tmp_1 > globals.consoleLines___22751); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P144175_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___145747; + s.tmp_2 = helpers_arraySplice__P18662_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___22738; s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___145747); + r0 = pxsim_Array__length(globals.consoleStrings___22738); s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___145760); + r0 = (s.tmp_3 - globals.consoleLines___22751); s.tmp_2.arg2 = r0; - s.pc = 11; return s.tmp_2; + s.callLocIdx = 1106; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; case 5: @@ -28138,12 +28592,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P145783.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__P22773.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__P145783_mk(s) { +function game_consoleOverlay_listener__P22773_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P145783, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P22773, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28160,7 +28614,7 @@ function game_consoleOverlay_listener__P145783_mk(s) { -function inline__P156292(s) { +function inline__P31967(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28184,12 +28638,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P156292.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +inline__P31967.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__P156292_mk(s) { +function inline__P31967_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156292, depth: s.depth + 1, + parent: s, fn: inline__P31967, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28201,7 +28655,7 @@ function inline__P156292_mk(s) { -function inline__P156297(s) { +function inline__P31972(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28211,45 +28665,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___156299 = undefined; + s.j___31974 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.j___156299 = (0); + s.j___31974 = (0); case 1: - s.tmp_1 = r0 = s.j___156299; + s.tmp_1 = r0 = s.j___31974; 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___145747; - s.tmp_5 = helpers_stringSlice__P144194_mk(s); + s.tmp_3 = r0 = globals.consoleStrings___22738; + s.tmp_5 = helpers_stringSlice__P18679_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___156299; - r0 = (s.j___156299 + globals.consoleColumns___145771); + s.tmp_5.arg1 = s.j___31974; + r0 = (s.j___31974 + globals.consoleColumns___22761); s.tmp_5.arg2 = r0; - s.pc = 3; return s.tmp_5; + s.callLocIdx = 1104; 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___156299 + globals.consoleColumns___145771); - s.j___156299 = (r0); + r0 = (s.j___31974 + globals.consoleColumns___22761); + s.j___31974 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P156297.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +inline__P31972.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__P156297_mk(s) { +function inline__P31972_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156297, depth: s.depth + 1, + parent: s, fn: inline__P31972, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28257,7 +28711,7 @@ function inline__P156297_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - j___156299: undefined, + j___31974: undefined, arg0: undefined, } } @@ -28265,7 +28719,7 @@ function inline__P156297_mk(s) { -function console_addListener__P144387(s) { +function console_addListener__P18936(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28288,7 +28742,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___144379, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals.listeners___22102, s.arg0, undefined); s.tmp_2 = r0; r0 = (s.tmp_2 > -1); case 2: @@ -28299,18 +28753,18 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_Array__push(globals.listeners___144379, s.arg0); + r0 = pxsim_Array__push(globals.listeners___22102, s.arg0); case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P144387.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__P18936.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__P144387_mk(s) { +function console_addListener__P18936_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P144387, depth: s.depth + 1, + parent: s, fn: console_addListener__P18936, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28323,7 +28777,42 @@ function console_addListener__P144387_mk(s) { -function scene_systemMenu_register__P145703(s) { +function inline__P22101(s) { +let r0 = s.r0, 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 = pxsim.control.__log(s.arg0, s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P22101.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__P22101_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P22101, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_systemMenu_register__P21197(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28333,16 +28822,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___145670); + r0 = pxsim_numops_toBoolDecr(globals.instance___22692); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = controller_Button_onEvent__P144814_mk(s); - s.tmp_0.arg0 = globals.menu___144792; + s.tmp_0 = controller_Button_onEvent__P20474_mk(s); + s.tmp_0.arg0 = globals.menu___20447; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P145704; - s.pc = 4; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P21198; + s.callLocIdx = 1089; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -28350,12 +28839,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P145703.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__P21197.info = {"start":12793,"length":193,"line":382,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} -function scene_systemMenu_register__P145703_mk(s) { +function scene_systemMenu_register__P21197_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P145703, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P21197, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -28364,7 +28853,7 @@ function scene_systemMenu_register__P145703_mk(s) { -function scene_systemMenu_showSystemMenu__P145704(s) { +function scene_systemMenu_showSystemMenu__P21198(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28374,28 +28863,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___145670); + r0 = pxsim_numops_toBoolDecr(globals.instance___22692); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = game_pushScene__P145389_mk(s); - s.pc = 4; return s.tmp_0; + s.tmp_0 = game_pushScene__P21100_mk(s); + s.callLocIdx = 1090; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C145682_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C21186_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P145689_mk(s); + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P21187_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P145700; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P21194; s.tmp_1.arg2 = undefined; - s.pc = 5; return s.tmp_1; + s.callLocIdx = 1091; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.instance___145670 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P145683_mk(s); - s.tmp_0.arg0 = globals.instance___145670; - s.pc = 6; return s.tmp_0; + globals.instance___22692 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P21188_mk(s); + s.tmp_0.arg0 = globals.instance___22692; + s.callLocIdx = 1092; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -28403,12 +28892,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P145704.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__P21198.info = {"start":12992,"length":172,"line":388,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} -function scene_systemMenu_showSystemMenu__P145704_mk(s) { +function scene_systemMenu_showSystemMenu__P21198_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P145704, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P21198, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28418,7 +28907,7 @@ function scene_systemMenu_showSystemMenu__P145704_mk(s) { -function scene_systemMenu_buildOptionList__P145700(s) { +function scene_systemMenu_buildOptionList__P21194(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28428,136 +28917,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___157005 = undefined; + s.options___32731 = undefined; r0 = pxsim_Array__mk(); - s.options___157005 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C145673_VT); + s.options___32731 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21178_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P145681_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21179_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___145731; - s.tmp_1.arg2 = inline__P157013; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P145692; - s.pc = 5; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___21208; + s.tmp_1.arg2 = inline__P32739; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P22698; + s.callLocIdx = 1072; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(s.options___157005, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C145673_VT); + r0 = pxsim_Array__push(s.options___32731, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21178_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P145681_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21179_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___145722; - s.tmp_1.arg2 = inline__P157027; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P145691; - s.pc = 6; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___21205; + s.tmp_1.arg2 = inline__P32753; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P22697; + s.callLocIdx = 1074; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_Array__push(s.options___157005, s.tmp_0); + r0 = pxsim_Array__push(s.options___32731, 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__C145673_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21178_VT); s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P145681_mk(s); + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P21179_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___145725; - s.tmp_2.arg2 = inline__P157042; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P145694; - s.pc = 7; return s.tmp_2; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___21206; + s.tmp_2.arg2 = inline__P32768; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P22700; + s.callLocIdx = 1077; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___157005, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C145673_VT); + r0 = pxsim_Array__push(s.options___32731, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21178_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P145681_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21179_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___145740; - s.tmp_1.arg2 = inline__P157058; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P145693; - s.pc = 8; return s.tmp_1; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___21211; + s.tmp_1.arg2 = inline__P32783; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P22699; + s.callLocIdx = 1079; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_Array__push(s.options___157005, s.tmp_0); + r0 = pxsim_Array__push(s.options___32731, s.tmp_0); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C145673_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21178_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P145681_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21179_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___145743; - s.tmp_1.arg2 = inline__P157073; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P145695; - s.pc = 9; return s.tmp_1; + s.tmp_1.arg1 = globals.STATS_ICON___21212; + s.tmp_1.arg2 = inline__P32798; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P22702; + s.callLocIdx = 1080; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___157005, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C145673_VT); + r0 = pxsim_Array__push(s.options___32731, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21178_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P145681_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21179_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___145737; - s.tmp_1.arg2 = inline__P157082; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P145696; - s.pc = 10; return s.tmp_1; + s.tmp_1.arg1 = globals.CONSOLE_ICON___21210; + s.tmp_1.arg2 = inline__P32807; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P22703; + s.callLocIdx = 1082; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_Array__push(s.options___157005, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C145673_VT); + r0 = pxsim_Array__push(s.options___32731, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21178_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P145681_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21179_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___145734; - s.tmp_1.arg2 = inline__P157091; - s.tmp_1.arg3 = scene_systemMenu_sleep__P145697; - s.pc = 11; return s.tmp_1; + s.tmp_1.arg1 = globals.SLEEP_ICON___21209; + s.tmp_1.arg2 = inline__P32816; + s.tmp_1.arg3 = scene_systemMenu_sleep__P22704; + s.callLocIdx = 1083; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_Array__push(s.options___157005, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___145671); + r0 = pxsim_Array__push(s.options___32731, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___22693); if (!r0) { step = 3; continue; } - s.tmp_0 = helpers_arrayConcat__P144190_mk(s); - s.tmp_0.arg0 = s.options___157005; - s.tmp_0.arg1 = globals.customMenuOptions___145671; - s.pc = 12; return s.tmp_0; + s.tmp_0 = helpers_arrayConcat__P18675_mk(s); + s.tmp_0.arg0 = s.options___32731; + s.tmp_0.arg1 = globals.customMenuOptions___22693; + s.callLocIdx = 1084; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.options___157005 = (r0); + s.options___32731 = (r0); case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C145673_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C21178_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P145681_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P21179_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___145728; - s.tmp_1.arg2 = inline__P157105; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P145698; - s.pc = 13; return s.tmp_1; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___21207; + s.tmp_1.arg2 = inline__P32829; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P21193; + s.callLocIdx = 1085; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_Array__push(s.options___157005, s.tmp_0); - r0 = s.options___157005; + r0 = pxsim_Array__push(s.options___32731, s.tmp_0); + r0 = s.options___32731; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P145700.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__P21194.info = {"start":10499,"length":1149,"line":334,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} -function scene_systemMenu_buildOptionList__P145700_mk(s) { +function scene_systemMenu_buildOptionList__P21194_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P145700, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P21194, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___157005: undefined, + options___32731: undefined, } } -function inline__P157013(s) { +function inline__P32739(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28567,8 +29056,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P144552_mk(s); - s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P20157_mk(s); + s.callLocIdx = 1071; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -28587,12 +29076,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P157013.info = {"start":10182,"length":39,"line":327,"column":54,"endLine":327,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32739.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P157013_mk(s) { +function inline__P32739_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P157013, depth: s.depth + 1, + parent: s, fn: inline__P32739, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28604,7 +29093,7 @@ function inline__P157013_mk(s) { -function inline__P157027(s) { +function inline__P32753(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28614,8 +29103,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P144552_mk(s); - s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P20157_mk(s); + s.callLocIdx = 1073; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -28634,12 +29123,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P157027.info = {"start":10289,"length":37,"line":328,"column":52,"endLine":328,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32753.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P157027_mk(s) { +function inline__P32753_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P157027, depth: s.depth + 1, + parent: s, fn: inline__P32753, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28651,7 +29140,7 @@ function inline__P157027_mk(s) { -function inline__P157042(s) { +function inline__P32768(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28661,7 +29150,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___144622; + r0 = globals.brightness___20288; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -28678,12 +29167,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P157042.info = {"start":10448,"length":48,"line":330,"column":62,"endLine":330,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32768.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P157042_mk(s) { +function inline__P32768_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P157042, depth: s.depth + 1, + parent: s, fn: inline__P32768, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28694,7 +29183,7 @@ function inline__P157042_mk(s) { -function inline__P157058(s) { +function inline__P32783(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28704,7 +29193,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___144622; + r0 = globals.brightness___20288; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -28721,12 +29210,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P157058.info = {"start":10576,"length":46,"line":331,"column":60,"endLine":331,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32783.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P157058_mk(s) { +function inline__P32783_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P157058, depth: s.depth + 1, + parent: s, fn: inline__P32783, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28737,7 +29226,7 @@ function inline__P157058_mk(s) { -function inline__P157073(s) { +function inline__P32798(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28747,7 +29236,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___145368); + r0 = pxsim_numops_toBoolDecr(globals.stats___21093); if (!r0) { step = 1; continue; } r0 = "HIDE STATS"; { step = 2; continue; } @@ -28760,558 +29249,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P157073.info = {"start":10698,"length":46,"line":333,"column":48,"endLine":333,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} - -function inline__P157073_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P157073, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function inline__P157082(s) { -let r0 = s.r0, 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.consoleStrings___145747); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = "HIDE CONSOLE"; - { step = 2; continue; } - case 1: - r0 = "SHOW CONSOLE"; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - return leave(s, r0) - default: oops() -} } } -inline__P157082.info = {"start":10811,"length":71,"line":334,"column":50,"endLine":334,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} - -function inline__P157082_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P157082, depth: s.depth + 1, - pc: 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__P157091(s) { -let r0 = s.r0, 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 = "SLEEP"; - return leave(s, r0) - default: oops() -} } } -inline__P157091.info = {"start":10949,"length":13,"line":335,"column":48,"endLine":335,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} - -function inline__P157091_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P157091, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function inline__P157105(s) { -let r0 = s.r0, 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__P157105.info = {"start":11128,"length":13,"line":341,"column":53,"endLine":341,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} - -function inline__P157105_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P157105, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function game_consoleOverlay_isVisible__P145784(s) { -let r0 = s.r0, 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.consoleStrings___145747); - 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__P145784.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__P145784_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_consoleOverlay_isVisible__P145784, 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__P145699(s) { -let r0 = s.r0, 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 = 0; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_setScreenBrightnessSupported__P145699.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__P145699_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P145699, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function scene_systemMenu_closeMenu__P145698(s) { -let r0 = s.r0, 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___145670); - if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P145687_mk(s); - s.tmp_0.arg0 = globals.instance___145670; - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - globals.instance___145670 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P144861_mk(s); - s.tmp_0.arg0 = true; - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = game_popScene__P145390_mk(s); - 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__P145698.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__P145698_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_closeMenu__P145698, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function scene_systemMenu_PauseMenu_dispose__P145687(s) { -let r0 = s.r0, 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__C145682_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__P144186_mk(s); - r0 = s.arg0.fields["options"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = inline__P156864; - 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__P145687.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} - -function scene_systemMenu_PauseMenu_dispose__P145687_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P145687, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function inline__P156864(s) { -let r0 = s.r0, 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__P145679_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P156864.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__P156864_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P156864, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function scene_systemMenu_MenuOption_dispose__P145679(s) { -let r0 = s.r0, 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__C145673_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__P144934_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = undefined; - s.tmp_1.arg2 = undefined; - s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = Sprite_destroy__P144934_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = undefined; - s.tmp_0.arg2 = undefined; - 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__P145679.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__P145679_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P145679, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function game_popScene__P145390(s) { -let r0 = s.r0, 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___151745 = undefined; - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.oldScene___151745 = (r0); - s.tmp_0 = r0 = globals._sceneStack___145378; - 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___145378); - 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___145378); - globals._scene___145377 = (r0); - s.tmp_0 = control_popEventContext__P144431_mk(s); - s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___145377); - if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P144431_mk(s); - s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - globals._scene___145377 = (undefined); - case 4: - case 5: - case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___145377); - if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P145848_mk(s); - s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___145380); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P151766); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___151745); - s.tmp_1 = helpers_arrayForEach__P144186_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___145380; - s.tmp_1.arg1 = s.tmp_0; - s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - case 9: - case 10: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_popScene__P145390.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} - -function game_popScene__P145390_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_popScene__P145390, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - oldScene___151745: undefined, -} } - - - - - -function inline__P151766(s) { -let r0 = s.r0, 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 = 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.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P151766.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} - -function inline__P151766_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P151766, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, -} } - - - - - -function particles_enableAll__P145848(s) { -let r0 = s.r0, 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___151770 = undefined; - s.tmp_0 = particles_particleSources__P145849_mk(s); - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.sources___151770 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___151770); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P144186_mk(s); - s.tmp_0.arg0 = s.sources___151770; - s.tmp_0.arg1 = inline__P151776; - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P145836_mk(s); - s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_enableAll__P145848.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +inline__P32798.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function particles_enableAll__P145848_mk(s) { +function inline__P32798_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P145848, depth: s.depth + 1, + parent: s, fn: inline__P32798, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___151770: undefined, } } -function inline__P151776(s) { +function inline__P32807(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29321,36 +29273,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = particles_ParticleSource_enabled__P145821_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.pc = 1; return s.tmp_0; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___22738); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = "HIDE CONSOLE"; + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = true; + r0 = "SHOW CONSOLE"; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -inline__P151776.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P32807.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P151776_mk(s) { +function inline__P32807_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P151776, depth: s.depth + 1, + parent: s, fn: inline__P32807, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, } } -function control_popEventContext__P144431(s) { +function inline__P32816(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29360,75 +29322,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___151900 = undefined; - s.context___151908 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___144428); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: - case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___144428); - s.ctx___151900 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___151900); - 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__P144418_mk(s); - s.tmp_2.arg0 = s.ctx___151900; - s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___144428; - r0 = pxsim_Array__length(globals.eventContexts___144428); - 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___151908 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___151908); - if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P144417_mk(s); - s.tmp_0.arg0 = s.context___151908; - s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - { step = 6; continue; } - case 5: - globals.eventContexts___144428 = (undefined); - case 6: - case 7: - r0 = undefined; + r0 = "SLEEP"; return leave(s, r0) default: oops() } } } -control_popEventContext__P144431.info = {"start":7466,"length":413,"line":229,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +inline__P32816.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function control_popEventContext__P144431_mk(s) { +function inline__P32816_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P144431, depth: s.depth + 1, + parent: s, fn: inline__P32816, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - ctx___151900: undefined, - context___151908: undefined, } } -function control_EventContext_register__P144417(s) { +function inline__P32829(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29438,67 +29349,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___151921 = undefined; - s.unnamed4580___U1 = undefined; - s.unnamed4581___U2 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C144413_VT)) failedCast(r0); - s.h___151921 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed4580___U1 = (r0); - s.unnamed4581___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed4581___U2; - r0 = pxsim_Array__length(s.unnamed4580___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed4580___U1, s.unnamed4581___U2); - s.h___151921 = (r0); - s.tmp_2 = control_EventHandler_register__P144409_mk(s); - s.tmp_2.arg0 = s.h___151921; - s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - r0 = (s.unnamed4581___U2 + 1); - s.unnamed4581___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed4580___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P144416_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = undefined; + r0 = "CLOSE"; return leave(s, r0) default: oops() } } } -control_EventContext_register__P144417.info = {"start":4284,"length":138,"line":128,"column":8,"endLine":132,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +inline__P32829.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function control_EventContext_register__P144417_mk(s) { +function inline__P32829_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P144417, depth: s.depth + 1, + parent: s, fn: inline__P32829, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - h___151921: undefined, - unnamed4580___U1: undefined, - unnamed4581___U2: undefined, - arg0: undefined, } } -function controller__setUserEventsEnabled__P144861(s) { +function scene_systemMenu_setScreenBrightnessSupported__P22705(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29508,30 +29376,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - globals._userEventsEnabled___144802 = (s.arg0); - r0 = undefined; + r0 = 0; return leave(s, r0) default: oops() } } } -controller__setUserEventsEnabled__P144861.info = {"start":19246,"length":101,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} +scene_systemMenu_setScreenBrightnessSupported__P22705.info = {"start":10398,"length":95,"line":330,"column":4,"endLine":332,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} -function controller__setUserEventsEnabled__P144861_mk(s) { +function scene_systemMenu_setScreenBrightnessSupported__P22705_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__setUserEventsEnabled__P144861, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P22705, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, } } -function scene_systemMenu_sleep__P145697(s) { +function scene_systemMenu_sleep__P22704(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29546,12 +29408,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P145697.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__P22704.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} -function scene_systemMenu_sleep__P145697_mk(s) { +function scene_systemMenu_sleep__P22704_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P145697, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P22704, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -29559,7 +29421,7 @@ function scene_systemMenu_sleep__P145697_mk(s) { -function scene_systemMenu_toggleConsole__P145696(s) { +function scene_systemMenu_toggleConsole__P22703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29569,7 +29431,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___145747); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___22738); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -29579,23 +29441,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__P145786_mk(s); + s.tmp_4 = game_consoleOverlay_setVisible__P21217_mk(s); s.tmp_4.arg0 = false; s.tmp_4.arg1 = undefined; - s.pc = 3; return s.tmp_4; + s.callLocIdx = 1065; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P145786_mk(s); + s.tmp_0 = game_consoleOverlay_setVisible__P21217_mk(s); s.tmp_0.arg0 = true; s.tmp_0.arg1 = undefined; - s.pc = 4; return s.tmp_0; + s.callLocIdx = 1066; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = console_log__P144384_mk(s); + s.tmp_0 = console_log__P18933_mk(s); s.tmp_0.arg0 = "console"; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 1067; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 2: @@ -29603,12 +29465,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleConsole__P145696.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__P22703.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} -function scene_systemMenu_toggleConsole__P145696_mk(s) { +function scene_systemMenu_toggleConsole__P22703_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P145696, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P22703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29621,39 +29483,7 @@ function scene_systemMenu_toggleConsole__P145696_mk(s) { -function scene_systemMenu_toggleStats__P145695(s) { -let r0 = s.r0, 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.stats___145368); - s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___145368 = (r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_toggleStats__P145695.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__P145695_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_toggleStats__P145695, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, -} } - - - - - -function scene_systemMenu_brightnessDown__P145694(s) { +function console_log__P18933(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29663,35 +29493,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_setScreenBrightness__P144640_mk(s); - s.tmp_0.arg0 = globals.screen___144693; - r0 = globals.brightness___144622; - s.tmp_1 = r0; - r0 = (s.tmp_1 - 10); - s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = console_add__P18929_mk(s); + s.tmp_0.arg0 = 1; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 37; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P145694.info = {"start":9200,"length":89,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} +console_log__P18933.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} -function scene_systemMenu_brightnessDown__P145694_mk(s) { +function console_log__P18933_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P145694, depth: s.depth + 1, + parent: s, fn: console_log__P18933, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, + arg0: undefined, } } -function helpers_setScreenBrightness__P144640(s) { +function console_add__P18929(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29701,34 +29532,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.text___32868 = undefined; + s.i___32877 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P144201_mk(s); - s.tmp_0.arg0 = 10; - s.tmp_0.arg1 = 100; - r0 = (s.arg1 | 0); - s.tmp_0.arg2 = r0; - s.pc = 1; return s.tmp_0; + r0 = (s.arg0 < globals.minPriority___18928); + 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__P18935_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 20; + s.callLocIdx = 35; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; - s.arg1 = (r0); - globals.brightness___144622 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___144622); + s.text___32868 = (r0); + if ((s.text___32868) && (s.text___32868).vtable) { + setupResume(s, 7); + pxsim_String__stringConv(s.text___32868); + checkResumeConsumed(); + return; + } else { s.retval = (s.text___32868) + ""; } + case 7: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_String__concat(s.tmp_0, "\n"); + s.text___32868 = (r0); + s.i___32877 = (0); + case 3: + s.tmp_1 = r0 = s.i___32877; + r0 = pxsim_Array__length(globals.listeners___22102); + 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___22102, s.i___32877); + s.tmp_3.argL = r0; + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.text___32868; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 36; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + r0 = (s.i___32877 + 1); + s.i___32877 = (r0); + { step = 3; continue; } + case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_setScreenBrightness__P144640.info = {"start":6243,"length":210,"line":211,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} +console_add__P18929.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 helpers_setScreenBrightness__P144640_mk(s) { +function console_add__P18929_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P144640, depth: s.depth + 1, + parent: s, fn: console_add__P18929, depth: s.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___32868: undefined, + i___32877: undefined, arg0: undefined, arg1: undefined, } } @@ -29737,7 +29612,7 @@ function helpers_setScreenBrightness__P144640_mk(s) { -function scene_systemMenu_brightnessUp__P145693(s) { +function scene_systemMenu_toggleStats__P22702(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29747,35 +29622,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_setScreenBrightness__P144640_mk(s); - s.tmp_0.arg0 = globals.screen___144693; - r0 = globals.brightness___144622; + r0 = pxsim_numops_toBoolDecr(globals.stats___21093); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + globals.stats___21093 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___21093); s.tmp_1 = r0; - r0 = (s.tmp_1 + 10); - s.tmp_0.arg1 = r0; - s.pc = 1; 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 = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = globals.control_EventContext_onStats___18951; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + s.tmp_3 = lambda_2_mk(s); + s.tmp_3.argL = globals.control_EventContext_onStats___18951; + r0 = pxsim_String_.mkEmpty(); + s.tmp_3.arg0 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 1063; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P145693.info = {"start":9107,"length":87,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} +scene_systemMenu_toggleStats__P22702.info = {"start":9642,"length":179,"line":300,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} -function scene_systemMenu_brightnessUp__P145693_mk(s) { +function scene_systemMenu_toggleStats__P22702_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P145693, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P22702, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, } } -function scene_systemMenu_volumeDown__P145692(s) { +function scene_systemMenu_brightnessDown__P22700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29785,54 +29682,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___157554 = undefined; - s.remainder___157557 = undefined; - s.newVolume___157560 = undefined; - s.tmp_0 = music_volume__P144552_mk(s); - s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.v___157554 = (r0); - r0 = (s.v___157554 % 32); - s.remainder___157557 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___157557); - if (!r0) { step = 1; continue; } - r0 = s.remainder___157557; - { step = 2; continue; } + s.tmp_0 = scene_systemMenu_setScreenBrightness__P22701_mk(s); + r0 = globals.brightness___20288; + s.tmp_1 = r0; + r0 = (s.tmp_1 - 5); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1059; s.pc = 1; return s.tmp_0; case 1: - r0 = 32; - case 2: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (s.v___157554 - s.tmp_0); - s.newVolume___157560 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P145690_mk(s); - s.tmp_0.arg0 = s.newVolume___157560; - s.pc = 4; return s.tmp_0; - case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P145692.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]} +scene_systemMenu_brightnessDown__P22700.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} -function scene_systemMenu_volumeDown__P145692_mk(s) { +function scene_systemMenu_brightnessDown__P22700_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P145692, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P22700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___157554: undefined, - remainder___157557: undefined, - newVolume___157560: undefined, + tmp_1: undefined, } } -function scene_systemMenu_setVolume__P145690(s) { +function scene_systemMenu_setScreenBrightness__P22701(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29846,33 +29723,29 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = music_setVolume__P144551_mk(s); - s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; + s.tmp_0 = helpers_setScreenBrightness__P20299_mk(s); + s.tmp_0.arg0 = globals.screen___20366; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1060; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = music_playTone__P144554_mk(s); - s.tmp_0.arg0 = 440; - s.tmp_0.arg1 = 500; - s.pc = 2; return s.tmp_0; + s.tmp_0 = settings_writeNumber__P20393_mk(s); + s.tmp_0.arg0 = "#brightness"; + r0 = globals.brightness___20288; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1062; s.pc = 2; return s.tmp_0; case 2: - r0 = s.retval; - s.tmp_0 = settings_writeNumber__P144728_mk(s); - s.tmp_0.arg0 = "#volume"; - s.tmp_0.arg1 = s.arg0; - s.pc = 3; return s.tmp_0; - case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P145690.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_setScreenBrightness__P22701.info = {"start":9291,"length":345,"line":293,"column":4,"endLine":298,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightness","argumentNames":["b"]} -function scene_systemMenu_setVolume__P145690_mk(s) { +function scene_systemMenu_setScreenBrightness__P22701_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P145690, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P22701, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29882,7 +29755,7 @@ function scene_systemMenu_setVolume__P145690_mk(s) { -function settings_writeNumber__P144728(s) { +function settings_writeNumber__P20393(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29900,27 +29773,27 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_1 = settings_writeBuffer__P144726_mk(s); + s.tmp_1 = settings_writeBuffer__P20391_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P144265_mk(s); + s.tmp_2 = msgpack_packNumberArray__P18741_mk(s); s.tmp_2.arg0 = s.tmp_0; - s.pc = 2; return s.tmp_2; + s.callLocIdx = 132; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1.arg1 = r0; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 133; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeNumber__P144728.info = {"start":2087,"length":122,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} +settings_writeNumber__P20393.info = {"start":2087,"length":122,"line":82,"column":4,"endLine":84,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} -function settings_writeNumber__P144728_mk(s) { +function settings_writeNumber__P20393_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P144728, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P20393, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29933,7 +29806,7 @@ function settings_writeNumber__P144728_mk(s) { -function settings_writeBuffer__P144726(s) { +function settings_writeBuffer__P20391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29960,12 +29833,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeBuffer__P144726.info = {"start":1538,"length":290,"line":63,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeBuffer","argumentNames":["key","value"]} +settings_writeBuffer__P20391.info = {"start":1538,"length":290,"line":63,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeBuffer","argumentNames":["key","value"]} -function settings_writeBuffer__P144726_mk(s) { +function settings_writeBuffer__P20391_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P144726, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P20391, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29976,7 +29849,7 @@ function settings_writeBuffer__P144726_mk(s) { -function msgpack_packNumberArray__P144265(s) { +function msgpack_packNumberArray__P18741(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29986,100 +29859,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___157228 = undefined; - s.n___157230 = undefined; - s.unnamed4574___U2 = undefined; - s.unnamed4575___U3 = undefined; - s.buf___157240 = undefined; - s.n___157246 = undefined; - s.unnamed4576___U6 = undefined; - s.unnamed4577___U7 = undefined; + s.off___32923 = undefined; + s.n___32925 = undefined; + s.unnamed214___U2 = undefined; + s.unnamed215___U3 = undefined; + s.buf___32935 = undefined; + s.n___32941 = undefined; + s.unnamed216___U6 = undefined; + s.unnamed217___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.off___157228 = (0); - s.n___157230 = (undefined); - s.unnamed4574___U2 = (s.arg0); - s.unnamed4575___U3 = (0); + s.off___32923 = (0); + s.n___32925 = (undefined); + s.unnamed214___U2 = (s.arg0); + s.unnamed215___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed4575___U3; - r0 = pxsim_Array__length(s.unnamed4574___U2); + s.tmp_0 = r0 = s.unnamed215___U3; + r0 = pxsim_Array__length(s.unnamed214___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed4574___U2, s.unnamed4575___U3); - s.n___157230 = (r0); - s.tmp_2 = r0 = s.off___157228; - s.tmp_4 = msgpack_packNumberCore__P144263_mk(s); + r0 = pxsim_Array__getAt(s.unnamed214___U2, s.unnamed215___U3); + s.n___32925 = (r0); + s.tmp_2 = r0 = s.off___32923; + s.tmp_4 = msgpack_packNumberCore__P22065_mk(s); s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___157228; - s.tmp_4.arg2 = s.n___157230; - s.pc = 5; return s.tmp_4; + s.tmp_4.arg1 = s.off___32923; + s.tmp_4.arg2 = s.n___32925; + s.callLocIdx = 25; 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___157228 = (r0); - r0 = (s.unnamed4575___U3 + 1); - s.unnamed4575___U3 = (r0); + s.off___32923 = (r0); + r0 = (s.unnamed215___U3 + 1); + s.unnamed215___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed4574___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___157228); - s.buf___157240 = (r0); - s.off___157228 = (0); - s.n___157246 = (undefined); - s.unnamed4576___U6 = (s.arg0); - s.unnamed4577___U7 = (0); + s.unnamed214___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___32923); + s.buf___32935 = (r0); + s.off___32923 = (0); + s.n___32941 = (undefined); + s.unnamed216___U6 = (s.arg0); + s.unnamed217___U7 = (0); case 3: - s.tmp_0 = r0 = s.unnamed4577___U7; - r0 = pxsim_Array__length(s.unnamed4576___U6); + s.tmp_0 = r0 = s.unnamed217___U7; + r0 = pxsim_Array__length(s.unnamed216___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed4576___U6, s.unnamed4577___U7); - s.n___157246 = (r0); - s.tmp_2 = r0 = s.off___157228; - s.tmp_4 = msgpack_packNumberCore__P144263_mk(s); - s.tmp_4.arg0 = s.buf___157240; - s.tmp_4.arg1 = s.off___157228; - s.tmp_4.arg2 = s.n___157246; - s.pc = 6; return s.tmp_4; + r0 = pxsim_Array__getAt(s.unnamed216___U6, s.unnamed217___U7); + s.n___32941 = (r0); + s.tmp_2 = r0 = s.off___32923; + s.tmp_4 = msgpack_packNumberCore__P22065_mk(s); + s.tmp_4.arg0 = s.buf___32935; + s.tmp_4.arg1 = s.off___32923; + s.tmp_4.arg2 = s.n___32941; + s.callLocIdx = 26; 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___157228 = (r0); - r0 = (s.unnamed4577___U7 + 1); - s.unnamed4577___U7 = (r0); + s.off___32923 = (r0); + r0 = (s.unnamed217___U7 + 1); + s.unnamed217___U7 = (r0); { step = 3; continue; } case 4: - s.unnamed4576___U6 = (undefined); - r0 = s.buf___157240; + s.unnamed216___U6 = (undefined); + r0 = s.buf___32935; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P144265.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} +msgpack_packNumberArray__P18741.info = {"start":3427,"length":330,"line":117,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberArray","argumentNames":["nums"]} -function msgpack_packNumberArray__P144265_mk(s) { +function msgpack_packNumberArray__P18741_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P144265, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P18741, depth: s.depth + 1, pc: 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___157228: undefined, - n___157230: undefined, - unnamed4574___U2: undefined, - unnamed4575___U3: undefined, - buf___157240: undefined, - n___157246: undefined, - unnamed4576___U6: undefined, - unnamed4577___U7: undefined, + off___32923: undefined, + n___32925: undefined, + unnamed214___U2: undefined, + unnamed215___U3: undefined, + buf___32935: undefined, + n___32941: undefined, + unnamed216___U6: undefined, + unnamed217___U7: undefined, arg0: undefined, } } @@ -30087,7 +29960,7 @@ function msgpack_packNumberArray__P144265_mk(s) { -function msgpack_packNumberCore__P144263(s) { +function msgpack_packNumberCore__P22065(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30097,15 +29970,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___157260 = undefined; - s.fmt___157303 = undefined; + s.tag___32955 = undefined; + s.fmt___32998 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___157260 = (203); + s.tag___32955 = (203); s.tmp_1 = r0 = s.arg2; r0 = (s.arg2 << 0); s.tmp_2 = r0; @@ -30155,17 +30028,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 8; continue; } - s.tag___157260 = (204); + s.tag___32955 = (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___157260 = (205); + s.tag___32955 = (205); { step = 10; continue; } case 9: - s.tag___157260 = (206); + s.tag___32955 = (206); case 10: case 11: { step = 17; continue; } @@ -30174,42 +30047,42 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tag___157260 = (208); + s.tag___32955 = (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___157260 = (209); + s.tag___32955 = (209); { step = 15; continue; } case 14: - s.tag___157260 = (210); + s.tag___32955 = (210); case 15: case 16: case 17: case 18: case 19: case 20: - s.tmp_0 = msgpack_tagFormat__P144262_mk(s); - s.tmp_0.arg0 = s.tag___157260; - s.pc = 24; return s.tmp_0; + s.tmp_0 = msgpack_tagFormat__P22064_mk(s); + s.tmp_0.arg0 = s.tag___32955; + s.callLocIdx = 21; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.fmt___157303 = (r0); + s.fmt___32998 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___157260); + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___32955); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___157303; + s.tmp_1 = r0 = s.fmt___32998; 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__P144255_mk(s); - s.tmp_1.arg0 = s.fmt___157303; - s.pc = 25; return s.tmp_1; + s.tmp_1 = pins_sizeOf__P18732_mk(s); + s.tmp_1.arg0 = s.fmt___32998; + s.callLocIdx = 22; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; s.tmp_0 = r0; @@ -30218,12 +30091,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P144263.info = {"start":1632,"length":951,"line":56,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberCore","argumentNames":["buf","offset","num"]} +msgpack_packNumberCore__P22065.info = {"start":1632,"length":951,"line":56,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"packNumberCore","argumentNames":["buf","offset","num"]} -function msgpack_packNumberCore__P144263_mk(s) { +function msgpack_packNumberCore__P22065_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P144263, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P22065, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30233,8 +30106,8 @@ function msgpack_packNumberCore__P144263_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tag___157260: undefined, - fmt___157303: undefined, + tag___32955: undefined, + fmt___32998: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -30244,7 +30117,7 @@ function msgpack_packNumberCore__P144263_mk(s) { -function msgpack_tagFormat__P144262(s) { +function msgpack_tagFormat__P22064(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30304,12 +30177,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P144262.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} +msgpack_tagFormat__P22064.info = {"start":1145,"length":481,"line":42,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"tagFormat","argumentNames":["tag"]} -function msgpack_tagFormat__P144262_mk(s) { +function msgpack_tagFormat__P22064_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P144262, depth: s.depth + 1, + parent: s, fn: msgpack_tagFormat__P22064, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30319,7 +30192,7 @@ function msgpack_tagFormat__P144262_mk(s) { -function pins_sizeOf__P144255(s) { +function pins_sizeOf__P18732(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30333,20 +30206,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Buffer_sizeOfNumberFormat__P144286_mk(s); + s.tmp_0 = Buffer_sizeOfNumberFormat__P18768_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 20; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -pins_sizeOf__P144255.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} +pins_sizeOf__P18732.info = {"start":42,"length":101,"line":2,"column":4,"endLine":4,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOf","argumentNames":["format"]} -function pins_sizeOf__P144255_mk(s) { +function pins_sizeOf__P18732_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P144255, depth: s.depth + 1, + parent: s, fn: pins_sizeOf__P18732, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30356,7 +30229,7 @@ function pins_sizeOf__P144255_mk(s) { -function Buffer_sizeOfNumberFormat__P144286(s) { +function Buffer_sizeOfNumberFormat__P18768(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30408,39 +30281,229 @@ switch (step) { 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: + 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) + default: oops() +} } } +Buffer_sizeOfNumberFormat__P18768.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} + +function Buffer_sizeOfNumberFormat__P18768_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Buffer_sizeOfNumberFormat__P18768, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function helpers_setScreenBrightness__P20299(s) { +let r0 = s.r0, 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 = Math_clamp__P18686_mk(s); + s.tmp_0.arg0 = 10; + s.tmp_0.arg1 = 100; + r0 = (s.arg1 | 0); + s.tmp_0.arg2 = r0; + s.callLocIdx = 97; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.arg1 = (r0); + globals.brightness___20288 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___20288); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +helpers_setScreenBrightness__P20299.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__P20299_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_setScreenBrightness__P20299, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_systemMenu_brightnessUp__P22699(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = scene_systemMenu_setScreenBrightness__P22701_mk(s); + r0 = globals.brightness___20288; + s.tmp_1 = r0; + r0 = (s.tmp_1 + 5); + s.tmp_0.arg0 = r0; + s.callLocIdx = 1057; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_brightnessUp__P22699.info = {"start":9107,"length":85,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} + +function scene_systemMenu_brightnessUp__P22699_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_brightnessUp__P22699, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + + + + + +function scene_systemMenu_volumeDown__P22698(s) { +let r0 = s.r0, 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.v___33271 = undefined; + s.remainder___33274 = undefined; + s.newVolume___33277 = undefined; + s.tmp_0 = music_volume__P20157_mk(s); + s.callLocIdx = 1054; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.v___33271 = (r0); + r0 = (s.v___33271 % 32); + s.remainder___33274 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___33274); + if (!r0) { step = 1; continue; } + r0 = s.remainder___33274; + { step = 2; continue; } + case 1: + r0 = 32; + case 2: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (s.v___33271 - s.tmp_0); + s.newVolume___33277 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P22696_mk(s); + s.tmp_0.arg0 = s.newVolume___33277; + s.callLocIdx = 1055; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_volumeDown__P22698.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__P22698_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_volumeDown__P22698, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + v___33271: undefined, + remainder___33274: undefined, + newVolume___33277: undefined, +} } + + + + + +function scene_systemMenu_setVolume__P22696(s) { +let r0 = s.r0, 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 = music_setVolume__P20156_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1049; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = music_playTone__P20158_mk(s); + s.tmp_0.arg0 = 440; + s.tmp_0.arg1 = 500; + s.callLocIdx = 1050; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = settings_writeNumber__P20393_mk(s); + s.tmp_0.arg0 = "#volume"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1051; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P144286.info = {"start":12467,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} +scene_systemMenu_setVolume__P22696.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]} -function Buffer_sizeOfNumberFormat__P144286_mk(s) { +function scene_systemMenu_setVolume__P22696_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P144286, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P22696, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30450,7 +30513,7 @@ function Buffer_sizeOfNumberFormat__P144286_mk(s) { -function music_playTone__P144554(s) { +function music_playTone__P20158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30460,7 +30523,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___157395 = undefined; + s.id___33112 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30485,29 +30548,29 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P144553_mk(s); + s.tmp_2 = music_playNoteCore__P22160_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_2.arg2 = r0; - s.pc = 5; return s.tmp_2; + s.callLocIdx = 76; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_0 = pause__P144435_mk(s); + s.tmp_0 = pause__P18966_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_0.arg0 = r0; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 77; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; { step = 4; continue; } case 3: - r0 = (globals.playToneID___144556 + 1); + r0 = (globals.playToneID___22162 + 1); s.tmp_0 = r0; - globals.playToneID___144556 = (r0); - s.id___157395 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, inline__P157401); + globals.playToneID___22162 = (r0); + s.id___33112 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, inline__P33118); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___157395); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___33112); 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); @@ -30516,17 +30579,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone__P144554.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__P20158.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__P144554_mk(s) { +function music_playTone__P20158_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P144554, depth: s.depth + 1, + parent: s, fn: music_playTone__P20158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___157395: undefined, + id___33112: undefined, arg0: undefined, arg1: undefined, } } @@ -30535,7 +30598,7 @@ function music_playTone__P144554_mk(s) { -function inline__P157401(s) { +function inline__P33118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30545,14 +30608,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___157402 = undefined; - s.now___157412 = undefined; - s.d___157415 = undefined; - s.t___157419 = undefined; + s.pos___33119 = undefined; + s.now___33129 = undefined; + s.d___33132 = undefined; + s.t___33136 = undefined; r0 = pxsim.control.millis(); - s.pos___157402 = (r0); + s.pos___33119 = (r0); case 1: - r0 = (s.caps[0] == globals.playToneID___144556); + r0 = (s.caps[0] == globals.playToneID___22162); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -30568,31 +30631,31 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } r0 = pxsim.control.millis(); - s.now___157412 = (r0); - r0 = (s.pos___157402 - s.now___157412); - s.d___157415 = (r0); - s.tmp_0 = Math_min__P144205_mk(s); + s.now___33129 = (r0); + r0 = (s.pos___33119 - s.now___33129); + s.d___33132 = (r0); + s.tmp_0 = Math_min__P18690_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 500; - s.pc = 7; return s.tmp_0; + s.callLocIdx = 78; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.t___157419 = (r0); + s.t___33136 = (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___157419); + r0 = (s.tmp_2 - s.t___33136); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___157402 + s.t___157419); - s.pos___157402 = (r0); - s.tmp_0 = music_playNoteCore__P144553_mk(s); - r0 = (s.d___157415 - 1); + r0 = (s.pos___33119 + s.t___33136); + s.pos___33119 = (r0); + s.tmp_0 = music_playNoteCore__P22160_mk(s); + r0 = (s.d___33132 - 1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___157419; - s.pc = 8; return s.tmp_0; + s.tmp_0.arg2 = s.t___33136; + s.callLocIdx = 79; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); @@ -30601,20 +30664,20 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P144435_mk(s); - r0 = (s.d___157415 + s.t___157419); + s.tmp_2 = pause__P18966_mk(s); + r0 = (s.d___33132 + s.t___33136); s.tmp_2.arg0 = r0; - s.pc = 9; return s.tmp_2; + s.callLocIdx = 80; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = pause__P144435_mk(s); - r0 = (s.d___157415 + s.t___157419); + s.tmp_0 = pause__P18966_mk(s); + r0 = (s.d___33132 + s.t___33136); s.tmp_1 = r0; r0 = (s.tmp_1 - 100); s.tmp_0.arg0 = r0; - s.pc = 10; return s.tmp_0; + s.callLocIdx = 81; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 5: @@ -30624,27 +30687,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P157401.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +inline__P33118.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P157401_mk(s) { +function inline__P33118_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P157401, depth: s.depth + 1, + parent: s, fn: inline__P33118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___157402: undefined, - now___157412: undefined, - d___157415: undefined, - t___157419: undefined, + pos___33119: undefined, + now___33129: undefined, + d___33132: undefined, + t___33136: undefined, } } -function music_playNoteCore__P144553(s) { +function music_playNoteCore__P22160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30654,7 +30717,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___157449 = undefined; + s.buf___33166 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30662,39 +30725,39 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim.control.createBuffer(12); - s.buf___157449 = (r0); - s.tmp_0 = music_addNote__P144573_mk(s); - s.tmp_0.arg0 = s.buf___157449; + s.buf___33166 = (r0); + s.tmp_0 = music_addNote__P22167_mk(s); + s.tmp_0.arg0 = s.buf___33166; 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__P144552_mk(s); - s.pc = 2; return s.tmp_1; + s.tmp_1 = music_volume__P20157_mk(s); + s.callLocIdx = 74; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg7 = r0; s.tmp_0.arg8 = s.arg1; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 75; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___157449); + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___33166); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P144553.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__P22160.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__P144553_mk(s) { +function music_playNoteCore__P22160_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P144553, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P22160, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___157449: undefined, + buf___33166: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -30704,7 +30767,7 @@ function music_playNoteCore__P144553_mk(s) { -function music_addNote__P144573(s) { +function music_addNote__P22167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30772,12 +30835,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_addNote__P144573.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__P22167.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__P144573_mk(s) { +function music_addNote__P22167_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P144573, depth: s.depth + 1, + parent: s, fn: music_addNote__P22167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30798,7 +30861,7 @@ function music_addNote__P144573_mk(s) { -function music_setVolume__P144551(s) { +function music_setVolume__P20156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30812,16 +30875,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P144201_mk(s); + s.tmp_0 = Math_clamp__P18686_mk(s); s.tmp_0.arg0 = 0; s.tmp_0.arg1 = 255; r0 = (s.arg0 | 0); s.tmp_0.arg2 = r0; - s.pc = 3; return s.tmp_0; + s.callLocIdx = 71; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.globalVolume___144546 = (r0); - r0 = (globals.globalVolume___144546 > 0); + globals.globalVolume___22155 = (r0); + r0 = (globals.globalVolume___22155 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -30837,12 +30900,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_setVolume__P144551.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__P20156.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__P144551_mk(s) { +function music_setVolume__P20156_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P144551, depth: s.depth + 1, + parent: s, fn: music_setVolume__P20156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30853,7 +30916,7 @@ function music_setVolume__P144551_mk(s) { -function music_enableAmp__P144549(s) { +function music_enableAmp__P22158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30871,12 +30934,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_enableAmp__P144549.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__P22158.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__P144549_mk(s) { +function music_enableAmp__P22158_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P144549, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P22158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30885,7 +30948,7 @@ function music_enableAmp__P144549_mk(s) { -function scene_systemMenu_volumeUp__P145691(s) { +function scene_systemMenu_volumeUp__P22697(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30895,47 +30958,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___157200 = undefined; - s.remainder___157203 = undefined; - s.newVolume___157206 = undefined; - s.tmp_0 = music_volume__P144552_mk(s); - s.pc = 1; return s.tmp_0; + s.v___33080 = undefined; + s.remainder___33083 = undefined; + s.newVolume___33086 = undefined; + s.tmp_0 = music_volume__P20157_mk(s); + s.callLocIdx = 1052; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.v___157200 = (r0); - r0 = (s.v___157200 % 32); - s.remainder___157203 = (r0); - r0 = (s.v___157200 + 32); + s.v___33080 = (r0); + r0 = (s.v___33080 % 32); + s.remainder___33083 = (r0); + r0 = (s.v___33080 + 32); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___157203); - s.newVolume___157206 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P145690_mk(s); - s.tmp_0.arg0 = s.newVolume___157206; - s.pc = 2; return s.tmp_0; + r0 = (s.tmp_0 - s.remainder___33083); + s.newVolume___33086 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P22696_mk(s); + s.tmp_0.arg0 = s.newVolume___33086; + s.callLocIdx = 1053; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P145691.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__P22697.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__P145691_mk(s) { +function scene_systemMenu_volumeUp__P22697_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P145691, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P22697, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___157200: undefined, - remainder___157203: undefined, - newVolume___157206: undefined, + v___33080: undefined, + remainder___33083: undefined, + newVolume___33086: undefined, } } -function scene_systemMenu_MenuOption_constructor__P145681(s) { +function game_consoleOverlay_isVisible__P21215(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30945,40 +31008,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__C145673_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___22738); + 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__P21215.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__P21215_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_consoleOverlay_isVisible__P21215, 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__P21193(s) { +let r0 = s.r0, 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___22692); + if (!r0) { step = 1; continue; } + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P21192_mk(s); + s.tmp_0.arg0 = globals.instance___22692; + s.callLocIdx = 1068; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + globals.instance___22692 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P20518_mk(s); + s.tmp_0.arg0 = true; + s.callLocIdx = 1069; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = game_popScene__P21101_mk(s); + s.callLocIdx = 1070; 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__P145681.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__P21193.info = {"start":10129,"length":216,"line":320,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} -function scene_systemMenu_MenuOption_constructor__P145681_mk(s) { +function scene_systemMenu_closeMenu__P21193_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P145681, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P21193, 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__P144641(s) { +function scene_systemMenu_PauseMenu_dispose__P21192(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30992,17 +31095,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = globals.brightness___144622; + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21186_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__P18671_mk(s); + r0 = s.arg0.fields["options"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = inline__P32591; + s.callLocIdx = 1045; 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__P144641.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__P21192.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__P144641_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P21192_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P144641, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P21192, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -31010,7 +31131,7 @@ function helpers_screenBrightness__P144641_mk(s) { -function music_volume__P144552(s) { +function inline__P32591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31020,29 +31141,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P144550_mk(s); - 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__P21185_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1044; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals.globalVolume___144546; + r0 = undefined; return leave(s, r0) default: oops() } } } -music_volume__P144552.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +inline__P32591.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__P144552_mk(s) { +function inline__P32591_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P144552, depth: s.depth + 1, + parent: s, fn: inline__P32591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + arg0: undefined, } } -function music_initVolume__P144550(s) { +function scene_systemMenu_MenuOption_dispose__P21185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31052,38 +31179,57 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___144546 === null); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21178_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___144546 = (0); - s.tmp_0 = music_setVolume__P144551_mk(s); - r0 = pxsim_pxtcore.getConfig(59, 128); - s.tmp_0.arg0 = r0; - s.pc = 3; return s.tmp_0; + s.tmp_1 = Sprite_destroy__P20651_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = undefined; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 964; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; + s.tmp_0 = Sprite_destroy__P20651_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = undefined; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 965; 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__P144550.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__P21185.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__P144550_mk(s) { +function scene_systemMenu_MenuOption_dispose__P21185_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P144550, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P21185, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, } } -function helpers_arrayConcat__P144190(s) { +function game_popScene__P21101(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31093,83 +31239,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___157110 = undefined; - s.value___157113 = undefined; - s.unnamed4570___U2 = undefined; - s.unnamed4571___U3 = undefined; - s.value___157120 = undefined; - s.unnamed4572___U5 = undefined; - s.unnamed4573___U6 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.out___157110 = (r0); - s.value___157113 = (undefined); - s.unnamed4570___U2 = (s.arg0); - s.unnamed4571___U3 = (0); + s.oldScene___32520 = undefined; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 928; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.oldScene___32520 = (r0); + s.tmp_0 = r0 = globals._sceneStack___22441; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - s.tmp_0 = r0 = s.unnamed4571___U3; - r0 = pxsim_Array__length(s.unnamed4570___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed4570___U2, s.unnamed4571___U3); - s.value___157113 = (r0); - r0 = pxsim_Array__push(s.out___157110, s.value___157113); - r0 = (s.unnamed4571___U3 + 1); - s.unnamed4571___U3 = (r0); - { step = 1; continue; } + r0 = pxsim_Array__length(globals._sceneStack___22441); case 2: - s.unnamed4570___U2 = (undefined); - s.value___157120 = (undefined); - s.unnamed4572___U5 = (s.arg1); - s.unnamed4573___U6 = (0); - case 3: - s.tmp_0 = r0 = s.unnamed4573___U6; - r0 = pxsim_Array__length(s.unnamed4572___U5); + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = pxsim_Array_.pop(globals._sceneStack___22441); + globals._scene___22440 = (r0); + s.tmp_0 = control_popEventContext__P18963_mk(s); + s.callLocIdx = 929; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 3: + r0 = pxsim_numops_toBoolDecr(globals._scene___22440); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed4572___U5, s.unnamed4573___U6); - s.value___157120 = (r0); - r0 = pxsim_Array__push(s.out___157110, s.value___157120); - r0 = (s.unnamed4573___U6 + 1); - s.unnamed4573___U6 = (r0); - { step = 3; continue; } + s.tmp_0 = control_popEventContext__P18963_mk(s); + s.callLocIdx = 930; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + globals._scene___22440 = (undefined); case 4: - s.unnamed4572___U5 = (undefined); - r0 = s.out___157110; + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(globals._scene___22440); + if (!r0) { step = 7; continue; } + s.tmp_0 = particles_enableAll__P21274_mk(s); + s.callLocIdx = 931; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___22443); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkAction(1, inline__P32541); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___32520); + s.tmp_1 = helpers_arrayForEach__P18671_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___22443; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 933; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + case 9: + case 10: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P144190.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"]} +game_popScene__P21101.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} -function helpers_arrayConcat__P144190_mk(s) { +function game_popScene__P21101_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P144190, depth: s.depth + 1, + parent: s, fn: game_popScene__P21101, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___157110: undefined, - value___157113: undefined, - unnamed4570___U2: undefined, - unnamed4571___U3: undefined, - value___157120: undefined, - unnamed4572___U5: undefined, - unnamed4573___U6: undefined, - arg0: undefined, - arg1: undefined, + oldScene___32520: undefined, } } -function scene_systemMenu_PauseMenu_constructor__P145689(s) { +function inline__P32541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31181,59 +31328,84 @@ 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__C145682_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; } + 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 = 932; s.pc = 1; return s.tmp_0; case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P145701_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___145713); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 3; - s.tmp_1.arg2 = undefined; - s.tmp_1.arg3 = undefined; - s.pc = 3; return s.tmp_1; + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +inline__P32541.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} + +function inline__P32541_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P32541, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function particles_enableAll__P21274(s) { +let r0 = s.r0, 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___32545 = undefined; + s.tmp_0 = particles_particleSources__P22804_mk(s); + s.callLocIdx = 1173; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; + s.sources___32545 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___32545); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P18671_mk(s); + s.tmp_0.arg0 = s.sources___32545; + s.tmp_0.arg1 = inline__P32551; + s.callLocIdx = 1175; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P22800_mk(s); + s.callLocIdx = 1176; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 1: case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = (s.arg0).fields["theme"] = (s.tmp_2); - r0 = (s.arg0).fields["scrollRow"] = (0); - r0 = (s.arg0).fields["scrollOffset"] = (0); - r0 = (s.arg0).fields["scrollTarget"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P145689.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"]} +particles_enableAll__P21274.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} -function scene_systemMenu_PauseMenu_constructor__P145689_mk(s) { +function particles_enableAll__P21274_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P145689, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P21274, 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, + sources___32545: undefined, } } -function scene_systemMenu_buildMenuTheme__P145701(s) { +function inline__P32551(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31243,139 +31415,249 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___157600 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___144693); - s.tmp_0 = r0; - r0 = (s.arg0 + s.arg1); + s.tmp_0 = particles_ParticleSource_enabled__P21255_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1174; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = true; + return leave(s, r0) + default: oops() +} } } +inline__P32551.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__P32551_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P32551, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function control_popEventContext__P18963(s) { +let r0 = s.r0, 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___32558 = undefined; + s.context___32566 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___22124); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); - s.cardsPerRow___157600 = (r0); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 7; continue; } case 1: - r0 = globals.font8___144645; case 2: - // jmp value (already in r0) + r0 = pxsim_Array_.pop(globals.eventContexts___22124); + s.ctx___32558 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___32558); s.tmp_1 = r0; - s.arg2 = (s.tmp_1); - s.tmp_0 = r0 = s.arg3; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + { step = 7; continue; } case 3: - s.tmp_1 = image_doubledFont__P144649_mk(s); - s.tmp_1.arg0 = s.arg2; - 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___157600); - r0 = pxsim_ImageMethods.width(globals.screen___144693); - s.tmp_3 = r0; - r0 = (s.cardsPerRow___157600 * s.arg0); - s.tmp_5 = r0; - r0 = (s.cardsPerRow___157600 - 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 = control_EventContext_unregister__P18955_mk(s); + s.tmp_2.arg0 = s.ctx___32558; + s.callLocIdx = 68; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.tmp_0 = r0 = globals.eventContexts___22124; + r0 = pxsim_Array__length(globals.eventContexts___22124); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); + 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.pc = 6; return s.tmp_11; } - } - case 6: + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + s.context___32566 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___32566); + if (!r0) { step = 5; continue; } + s.tmp_0 = control_EventContext_register__P18954_mk(s); + s.tmp_0.arg0 = s.context___32566; + s.callLocIdx = 69; s.pc = 9; return s.tmp_0; + case 9: 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___144693); - 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.pc = 7; return s.tmp_16; } - } + { step = 6; continue; } + case 5: + globals.eventContexts___22124 = (undefined); + case 6: case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +control_popEventContext__P18963.info = {"start":7568,"length":413,"line":232,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} + +function control_popEventContext__P18963_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_popEventContext__P18963, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + ctx___32558: undefined, + context___32566: undefined, +} } + + + + + +function control_EventContext_register__P18954(s) { +let r0 = s.r0, 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___32579 = undefined; + s.unnamed220___U1 = undefined; + s.unnamed221___U2 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C18948_VT)) failedCast(r0); + s.h___32579 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed220___U1 = (r0); + s.unnamed221___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed221___U2; + r0 = pxsim_Array__length(s.unnamed220___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed220___U1, s.unnamed221___U2); + s.h___32579 = (r0); + s.tmp_2 = control_EventHandler_register__P22117_mk(s); + s.tmp_2.arg0 = s.h___32579; + s.callLocIdx = 59; s.pc = 3; return s.tmp_2; + case 3: 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___145716); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___145719); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___145713); - r0 = s.tmp_0; + r0 = (s.unnamed221___U2 + 1); + s.unnamed221___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed220___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P22122_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 60; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P145701.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"]} +control_EventContext_register__P18954.info = {"start":4386,"length":138,"line":131,"column":8,"endLine":135,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function scene_systemMenu_buildMenuTheme__P145701_mk(s) { +function control_EventContext_register__P18954_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P145701, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P18954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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___157600: undefined, + h___32579: undefined, + unnamed220___U1: undefined, + unnamed221___U2: undefined, + arg0: undefined, +} } + + + + + +function controller__setUserEventsEnabled__P20518(s) { +let r0 = s.r0, 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___22269 = (s.arg0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller__setUserEventsEnabled__P20518.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__P20518_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller__setUserEventsEnabled__P20518, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_systemMenu_MenuOption_constructor__P21179(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21178_VT)) failedCast(r0); + r0 = (s.arg0).fields["iconImage"] = (s.arg1); + r0 = (s.arg0).fields["getText"] = (s.arg2); + r0 = (s.arg0).fields["action"] = (s.arg3); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_MenuOption_constructor__P21179.info = {"start":786,"length":108,"line":38,"column":8,"endLine":39,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","iconImage","getText","action"]} + +function scene_systemMenu_MenuOption_constructor__P21179_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_MenuOption_constructor__P21179, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31386,7 +31668,7 @@ function scene_systemMenu_buildMenuTheme__P145701_mk(s) { -function image_doubledFont__P144649(s) { +function helpers_screenBrightness__P20300(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31400,31 +31682,98 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P144650_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 2; - s.pc = 1; return s.tmp_0; + r0 = globals.brightness___20288; + return leave(s, r0) + default: oops() +} } } +helpers_screenBrightness__P20300.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__P20300_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_screenBrightness__P20300, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function music_volume__P20157(s) { +let r0 = s.r0, 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__P22159_mk(s); + s.callLocIdx = 73; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + r0 = globals.globalVolume___22155; return leave(s, r0) default: oops() } } } -image_doubledFont__P144649.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__P20157.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__P144649_mk(s) { +function music_volume__P20157_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P144649, depth: s.depth + 1, + parent: s, fn: music_volume__P20157, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, +} } + + + + + +function music_initVolume__P22159(s) { +let r0 = s.r0, 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.globalVolume___22155 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + globals.globalVolume___22155 = (0); + s.tmp_0 = music_setVolume__P20156_mk(s); + r0 = pxsim_pxtcore.getConfig(59, 128); + s.tmp_0.arg0 = r0; + s.callLocIdx = 70; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +music_initVolume__P22159.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} + +function music_initVolume__P22159_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: music_initVolume__P22159, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, } } -function image_scaledFont__P144650(s) { +function helpers_arrayConcat__P18675(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31434,134 +31783,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.out___32834 = undefined; + s.value___32837 = undefined; + s.unnamed210___U2 = undefined; + s.unnamed211___U3 = undefined; + s.value___32844 = undefined; + s.unnamed212___U5 = undefined; + s.unnamed213___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg1 | 0); - s.arg1 = (r0); - r0 = (s.arg1 < 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 5; continue; } + r0 = pxsim_Array__mk(); + s.out___32834 = (r0); + s.value___32837 = (undefined); + s.unnamed210___U2 = (s.arg0); + s.unnamed211___U3 = (0); case 1: - case 2: - r0 = pxsim_pxtrt.mkMap(); + s.tmp_0 = r0 = s.unnamed211___U3; + r0 = pxsim_Array__length(s.unnamed210___U2); 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.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.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.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.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.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; } + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed210___U2, s.unnamed211___U3); + s.value___32837 = (r0); + r0 = pxsim_Array__push(s.out___32834, s.value___32837); + r0 = (s.unnamed211___U3 + 1); + s.unnamed211___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed210___U2 = (undefined); + s.value___32844 = (undefined); + s.unnamed212___U5 = (s.arg1); + s.unnamed213___U6 = (0); case 3: - r0 = s.arg1; + s.tmp_0 = r0 = s.unnamed213___U6; + r0 = pxsim_Array__length(s.unnamed212___U5); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed212___U5, s.unnamed213___U6); + s.value___32844 = (r0); + r0 = pxsim_Array__push(s.out___32834, s.value___32844); + r0 = (s.unnamed213___U6 + 1); + s.unnamed213___U6 = (r0); + { step = 3; continue; } case 4: - // jmp value (already in r0) - s.tmp_15 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_1, "multiplier", s.tmp_15); - r0 = s.tmp_1; - case 5: + s.unnamed212___U5 = (undefined); + r0 = s.out___32834; return leave(s, r0) default: oops() } } } -image_scaledFont__P144650.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} +helpers_arrayConcat__P18675.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 image_scaledFont__P144650_mk(s) { +function helpers_arrayConcat__P18675_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P144650, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P18675, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, + out___32834: undefined, + value___32837: undefined, + unnamed210___U2: undefined, + unnamed211___U3: undefined, + value___32844: undefined, + unnamed212___U5: undefined, + unnamed213___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -31570,7 +31859,7 @@ function image_scaledFont__P144650_mk(s) { -function scene_systemMenu_PauseMenu_show__P145683(s) { +function scene_systemMenu_PauseMenu_show__P21188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31580,34 +31869,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___156376 = undefined; - s.i___156377 = undefined; + s.current___32051 = undefined; + s.i___32052 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C145682_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21186_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.pc = 3; return s.tmp_2; + s.callLocIdx = 977; 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.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.pc = 3; return s.tmp_2;; } - else { 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 = 977; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 977; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 977; 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___156377 = (0); + s.i___32052 = (0); case 1: - s.tmp_1 = r0 = s.i___156377; + s.tmp_1 = r0 = s.i___32052; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -31618,22 +31907,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___156377); - s.current___156376 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P145674_mk(s); - s.tmp_0.arg0 = s.current___156376; - s.pc = 4; return s.tmp_0; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___32052); + s.current___32051 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P21180_mk(s); + s.tmp_0.arg0 = s.current___32051; + s.callLocIdx = 978; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P145677_mk(s); - s.tmp_0.arg0 = s.current___156376; + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P21183_mk(s); + s.tmp_0.arg0 = s.current___32051; r0 = s.arg0.fields["theme"]; s.tmp_0.arg1 = r0; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 979; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_position__P145675_mk(s); - s.tmp_0.arg0 = s.current___156376; + s.tmp_0 = scene_systemMenu_MenuOption_position__P21181_mk(s); + s.tmp_0.arg0 = s.current___32051; s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; @@ -31643,12 +31932,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.pc = 7; return s.tmp_2; } + else { s.callLocIdx = 980; s.pc = 7; return s.tmp_2; } } case 7: r0 = s.retval; s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___156377; + s.tmp_5 = r0 = s.i___32052; s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_7.arg0 = r0; @@ -31658,7 +31947,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.pc = 8; return s.tmp_7; } + else { s.callLocIdx = 981; s.pc = 8; return s.tmp_7; } } case 8: r0 = s.retval; @@ -31674,7 +31963,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.pc = 9; return s.tmp_10; } + else { s.callLocIdx = 982; s.pc = 9; return s.tmp_10; } } case 9: r0 = s.retval; @@ -31688,7 +31977,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.pc = 10; return s.tmp_12; } + else { s.callLocIdx = 983; s.pc = 10; return s.tmp_12; } } case 10: r0 = s.retval; @@ -31708,12 +31997,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.pc = 11; return s.tmp_14; } + else { s.callLocIdx = 984; s.pc = 11; return s.tmp_14; } } case 11: r0 = s.retval; s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___156377; + s.tmp_17 = r0 = s.i___32052; s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_19.arg0 = r0; @@ -31723,7 +32012,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.pc = 12; return s.tmp_19; } + else { s.callLocIdx = 985; s.pc = 12; return s.tmp_19; } } case 12: r0 = s.retval; @@ -31739,7 +32028,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.pc = 13; return s.tmp_22; } + else { s.callLocIdx = 986; s.pc = 13; return s.tmp_22; } } case 13: r0 = s.retval; @@ -31753,7 +32042,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.pc = 14; return s.tmp_24; } + else { s.callLocIdx = 987; s.pc = 14; return s.tmp_24; } } case 14: r0 = s.retval; @@ -31764,116 +32053,116 @@ switch (step) { s.tmp_15 = r0; r0 = (s.tmp_13 + s.tmp_15); s.tmp_0.arg2 = r0; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 988; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___156377 + 1); - s.i___156377 = (r0); + r0 = (s.i___32052 + 1); + s.i___32052 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = controller__setUserEventsEnabled__P144861_mk(s); + s.tmp_0 = controller__setUserEventsEnabled__P20518_mk(s); s.tmp_0.arg0 = false; - s.pc = 15; return s.tmp_0; + s.callLocIdx = 989; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P156445); + r0 = pxsim_pxtcore_mkAction(1, inline__P32115); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P144814_mk(s); - s.tmp_1.arg0 = globals.A___144780; + s.tmp_1 = controller_Button_onEvent__P20474_mk(s); + s.tmp_1.arg0 = globals.A___20441; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.pc = 16; return s.tmp_1; + s.callLocIdx = 991; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P156466); + r0 = pxsim_pxtcore_mkAction(1, inline__P32135); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P144814_mk(s); - s.tmp_1.arg0 = globals.A___144780; + s.tmp_1 = controller_Button_onEvent__P20474_mk(s); + s.tmp_1.arg0 = globals.A___20441; s.tmp_1.arg1 = 2052; s.tmp_1.arg2 = s.tmp_0; - s.pc = 17; return s.tmp_1; + s.callLocIdx = 993; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P144814_mk(s); - s.tmp_0.arg0 = globals.B___144782; + s.tmp_0 = controller_Button_onEvent__P20474_mk(s); + s.tmp_0.arg0 = globals.B___20442; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P156496; - s.pc = 18; return s.tmp_0; + s.tmp_0.arg2 = inline__P32164; + s.callLocIdx = 995; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P144814_mk(s); - s.tmp_0.arg0 = globals.menu___144792; + s.tmp_0 = controller_Button_onEvent__P20474_mk(s); + s.tmp_0.arg0 = globals.menu___20447; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P156501; - s.pc = 19; return s.tmp_0; + s.tmp_0.arg2 = inline__P32169; + s.callLocIdx = 997; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P156506); + r0 = pxsim_pxtcore_mkAction(1, inline__P32174); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P144814_mk(s); - s.tmp_1.arg0 = globals.up___144786; + s.tmp_1 = controller_Button_onEvent__P20474_mk(s); + s.tmp_1.arg0 = globals.up___20444; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.pc = 20; return s.tmp_1; + s.callLocIdx = 1001; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P156518); + r0 = pxsim_pxtcore_mkAction(1, inline__P32186); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P144814_mk(s); - s.tmp_1.arg0 = globals.left___144784; + s.tmp_1 = controller_Button_onEvent__P20474_mk(s); + s.tmp_1.arg0 = globals.left___20443; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.pc = 21; return s.tmp_1; + s.callLocIdx = 1004; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P156527); + r0 = pxsim_pxtcore_mkAction(1, inline__P32195); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P144814_mk(s); - s.tmp_1.arg0 = globals.down___144790; + s.tmp_1 = controller_Button_onEvent__P20474_mk(s); + s.tmp_1.arg0 = globals.down___20446; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.pc = 22; return s.tmp_1; + s.callLocIdx = 1008; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P156543); + r0 = pxsim_pxtcore_mkAction(1, inline__P32211); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P144814_mk(s); - s.tmp_1.arg0 = globals.right___144788; + s.tmp_1 = controller_Button_onEvent__P20474_mk(s); + s.tmp_1.arg0 = globals.right___20445; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.pc = 23; return s.tmp_1; + s.callLocIdx = 1011; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P156555); + r0 = pxsim_pxtcore_mkAction(1, inline__P32223); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P145403_mk(s); + s.tmp_1 = game_onShade__P21111_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.pc = 24; return s.tmp_1; + s.callLocIdx = 1014; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P145685_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21190_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.pc = 25; return s.tmp_0; + s.callLocIdx = 1015; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P145683.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__P21188.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__P145683_mk(s) { +function scene_systemMenu_PauseMenu_show__P21188_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P145683, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P21188, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31900,8 +32189,8 @@ function scene_systemMenu_PauseMenu_show__P145683_mk(s) { tmp_22: undefined, tmp_23: undefined, tmp_24: undefined, - current___156376: undefined, - i___156377: undefined, + current___32051: undefined, + i___32052: undefined, arg0: undefined, } } @@ -31909,7 +32198,7 @@ function scene_systemMenu_PauseMenu_show__P145683_mk(s) { -function inline__P156445(s) { +function inline__P32115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31947,7 +32236,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P145678_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P21184_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -31955,7 +32244,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); s.tmp_8.arg0 = r0; s.tmp_8.arg1 = 1; - s.pc = 6; return s.tmp_8; + s.callLocIdx = 990; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; case 5: @@ -31963,12 +32252,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P156445.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32115.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156445_mk(s) { +function inline__P32115_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156445, depth: s.depth + 1, + parent: s, fn: inline__P32115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31987,7 +32276,7 @@ function inline__P156445_mk(s) { -function inline__P156466(s) { +function inline__P32135(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32025,7 +32314,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P145678_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P21184_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -32033,7 +32322,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); s.tmp_8.arg0 = r0; s.tmp_8.arg1 = 0; - s.pc = 6; return s.tmp_8; + s.callLocIdx = 992; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; r0 = s.caps[0].fields["options"]; @@ -32049,12 +32338,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P156466.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32135.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156466_mk(s) { +function inline__P32135_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156466, depth: s.depth + 1, + parent: s, fn: inline__P32135, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32073,7 +32362,7 @@ function inline__P156466_mk(s) { -function inline__P156496(s) { +function inline__P32164(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32083,20 +32372,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P145698_mk(s); - s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P21193_mk(s); + s.callLocIdx = 994; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P156496.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32164.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156496_mk(s) { +function inline__P32164_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156496, depth: s.depth + 1, + parent: s, fn: inline__P32164, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -32105,7 +32394,7 @@ function inline__P156496_mk(s) { -function inline__P156501(s) { +function inline__P32169(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32115,20 +32404,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P145698_mk(s); - s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P21193_mk(s); + s.callLocIdx = 996; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P156501.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32169.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156501_mk(s) { +function inline__P32169_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156501, depth: s.depth + 1, + parent: s, fn: inline__P32169, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -32137,7 +32426,7 @@ function inline__P156501_mk(s) { -function inline__P156506(s) { +function inline__P32174(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32147,9 +32436,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P145685_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21190_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P144204_mk(s); + s.tmp_1 = Math_max__P18689_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; @@ -32162,30 +32451,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.pc = 3; return s.tmp_4; } + else { s.callLocIdx = 998; 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.pc = 2; return s.tmp_1; + s.callLocIdx = 999; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1000; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P156506.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32174.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156506_mk(s) { +function inline__P32174_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156506, depth: s.depth + 1, + parent: s, fn: inline__P32174, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32198,7 +32487,7 @@ function inline__P156506_mk(s) { -function inline__P156518(s) { +function inline__P32186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32208,31 +32497,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P145685_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21190_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P144204_mk(s); + s.tmp_1 = Math_max__P18689_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.pc = 2; return s.tmp_1; + s.callLocIdx = 1002; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1003; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P156518.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32186.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156518_mk(s) { +function inline__P32186_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156518, depth: s.depth + 1, + parent: s, fn: inline__P32186, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32243,7 +32532,7 @@ function inline__P156518_mk(s) { -function inline__P156527(s) { +function inline__P32195(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32253,9 +32542,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P145685_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21190_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P144205_mk(s); + s.tmp_1 = Math_min__P18690_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -32273,30 +32562,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.pc = 3; return s.tmp_6; } + else { s.callLocIdx = 1005; 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.pc = 2; return s.tmp_1; + s.callLocIdx = 1006; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1007; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P156527.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32195.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156527_mk(s) { +function inline__P32195_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156527, depth: s.depth + 1, + parent: s, fn: inline__P32195, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32311,7 +32600,7 @@ function inline__P156527_mk(s) { -function inline__P156543(s) { +function inline__P32211(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32321,9 +32610,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P145685_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P21190_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P144205_mk(s); + s.tmp_1 = Math_min__P18690_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -32334,23 +32623,23 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 1); s.tmp_1.arg1 = r0; - s.pc = 2; return s.tmp_1; + s.callLocIdx = 1009; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1010; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P156543.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32211.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156543_mk(s) { +function inline__P32211_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156543, depth: s.depth + 1, + parent: s, fn: inline__P32211, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32363,7 +32652,7 @@ function inline__P156543_mk(s) { -function inline__P156555(s) { +function inline__P32223(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32373,26 +32662,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P145684_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P21189_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1012; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P145686_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P21191_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.pc = 2; return s.tmp_0; + s.callLocIdx = 1013; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P156555.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +inline__P32223.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P156555_mk(s) { +function inline__P32223_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P156555, depth: s.depth + 1, + parent: s, fn: inline__P32223, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -32401,7 +32690,7 @@ function inline__P156555_mk(s) { -function scene_systemMenu_PauseMenu_drawText__P145686(s) { +function scene_systemMenu_PauseMenu_drawText__P21191(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32416,7 +32705,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C145682_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21186_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -32428,11 +32717,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_3 = helpers_imageFillRect__P144632_mk(s); - s.tmp_3.arg0 = globals.screen___144693; + s.tmp_3 = helpers_imageFillRect__P20292_mk(s); + s.tmp_3.arg0 = globals.screen___20366; s.tmp_3.arg1 = 0; s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_3.arg3 = r0; s.tmp_5 = if_cardsTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -32443,7 +32732,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.pc = 5; return s.tmp_5; } + else { s.callLocIdx = 1026; s.pc = 5; return s.tmp_5; } } case 5: r0 = s.retval; @@ -32451,11 +32740,11 @@ switch (step) { r0 = (s.tmp_4 - 2); s.tmp_3.arg4 = r0; s.tmp_3.arg5 = 15; - s.pc = 4; return s.tmp_3; + s.callLocIdx = 1027; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P144655_mk(s); - s.tmp_0.arg0 = globals.screen___144693; + s.tmp_0 = helpers_imagePrintCenter__P20323_mk(s); + s.tmp_0.arg0 = globals.screen___20366; s.tmp_1 = if_headerText_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -32465,7 +32754,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.pc = 7; return s.tmp_1; } + else { s.callLocIdx = 1028; s.pc = 7; return s.tmp_1; } } case 7: r0 = s.retval; @@ -32481,16 +32770,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.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1029; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_0.arg4 = r0; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 1030; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P144632_mk(s); - s.tmp_0.arg0 = globals.screen___144693; + s.tmp_0 = helpers_imageFillRect__P20292_mk(s); + s.tmp_0.arg0 = globals.screen___20366; s.tmp_0.arg1 = 0; s.tmp_2 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -32501,16 +32790,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.pc = 10; return s.tmp_2; } + else { s.callLocIdx = 1031; 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___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___144693); + r0 = pxsim_ImageMethods.height(globals.screen___20366); s.tmp_4 = r0; s.tmp_6 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -32521,7 +32810,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.pc = 11; return s.tmp_6; } + else { s.callLocIdx = 1032; s.pc = 11; return s.tmp_6; } } case 11: r0 = s.retval; @@ -32531,11 +32820,11 @@ switch (step) { r0 = (s.tmp_3 + 6); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 15; - s.pc = 9; return s.tmp_0; + s.callLocIdx = 1033; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P144632_mk(s); - s.tmp_0.arg0 = globals.screen___144693; + s.tmp_0 = helpers_imageFillRect__P20292_mk(s); + s.tmp_0.arg0 = globals.screen___20366; s.tmp_1 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -32545,7 +32834,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.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 1034; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; @@ -32559,12 +32848,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.pc = 14; return s.tmp_2; } + else { s.callLocIdx = 1035; s.pc = 14; return s.tmp_2; } } case 14: r0 = s.retval; s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_3 = r0; s.tmp_6 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -32575,7 +32864,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.pc = 15; return s.tmp_6; } + else { s.callLocIdx = 1036; s.pc = 15; return s.tmp_6; } } case 15: r0 = s.retval; @@ -32594,7 +32883,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.pc = 17; return s.tmp_9; } + else { s.callLocIdx = 1037; s.pc = 17; return s.tmp_9; } } case 17: r0 = s.retval; @@ -32605,7 +32894,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.pc = 16; return s.tmp_8; } + else { s.callLocIdx = 1038; s.pc = 16; return s.tmp_8; } } case 16: r0 = s.retval; @@ -32613,11 +32902,11 @@ switch (step) { r0 = (s.tmp_7 + 1); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.pc = 12; return s.tmp_0; + s.callLocIdx = 1039; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P144655_mk(s); - s.tmp_0.arg0 = globals.screen___144693; + s.tmp_0 = helpers_imagePrintCenter__P20323_mk(s); + s.tmp_0.arg0 = globals.screen___20366; s.tmp_1 = if_getText_1_mk(s); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; @@ -32627,12 +32916,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.pc = 19; return s.tmp_1; + s.callLocIdx = 1040; 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.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.pc = 19; return s.tmp_1;; } - else { 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 = 1040; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1040; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 1040; s.pc = 19; return s.tmp_1; } } case 19: r0 = s.retval; @@ -32646,7 +32935,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.pc = 20; return s.tmp_5; } + else { s.callLocIdx = 1041; s.pc = 20; return s.tmp_5; } } case 20: r0 = s.retval; @@ -32663,12 +32952,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.pc = 21; return s.tmp_6; } + else { s.callLocIdx = 1042; s.pc = 21; return s.tmp_6; } } case 21: r0 = s.retval; s.tmp_0.arg4 = r0; - s.pc = 18; return s.tmp_0; + s.callLocIdx = 1043; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 3: @@ -32676,12 +32965,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P145686.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__P21191.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__P145686_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P21191_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P145686, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P21191, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32700,7 +32989,7 @@ function scene_systemMenu_PauseMenu_drawText__P145686_mk(s) { -function helpers_imagePrintCenter__P144655(s) { +function helpers_imagePrintCenter__P20323(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32710,8 +32999,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___156647 = undefined; - s.x___156653 = undefined; + s.w___32310 = undefined; + s.x___32316 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -32726,9 +33015,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P144648_mk(s); + s.tmp_2 = image_getFontForText__P20311_mk(s); s.tmp_2.arg0 = s.arg1; - s.pc = 3; return s.tmp_2; + s.callLocIdx = 104; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.arg4 = (r0); @@ -32744,46 +33033,46 @@ switch (step) { 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.pc = 4; return s.tmp_2; } + else { s.callLocIdx = 105; s.pc = 4; return s.tmp_2; } } case 4: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 * s.tmp_1); - s.w___156647 = (r0); + s.w___32310 = (r0); r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___156647); + r0 = (s.tmp_1 - s.w___32310); s.tmp_0 = r0; r0 = (s.tmp_0 / 2); - s.x___156653 = (r0); - s.tmp_0 = helpers_imagePrint__P144656_mk(s); + s.x___32316 = (r0); + s.tmp_0 = helpers_imagePrint__P20324_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___156653; + s.tmp_0.arg2 = s.x___32316; s.tmp_0.arg3 = s.arg2; s.tmp_0.arg4 = s.arg3; s.tmp_0.arg5 = s.arg4; s.tmp_0.arg6 = undefined; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 106; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P144655.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__P20323.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__P144655_mk(s) { +function helpers_imagePrintCenter__P20323_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P144655, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P20323, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - w___156647: undefined, - x___156653: undefined, + w___32310: undefined, + x___32316: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -32795,7 +33084,7 @@ function helpers_imagePrintCenter__P144655_mk(s) { -function scene_systemMenu_PauseMenu_setSelection__P145685(s) { +function scene_systemMenu_PauseMenu_setSelection__P21190(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32811,7 +33100,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C145682_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21186_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -32831,7 +33120,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__P145678_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P21184_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -32839,7 +33128,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); s.tmp_6.arg0 = r0; s.tmp_6.arg1 = 2; - s.pc = 10; return s.tmp_6; + s.callLocIdx = 1023; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; case 3: @@ -32853,9 +33142,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C144809_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___144780; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C144809_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = controller_Button__C20467_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___20441; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C20467_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: @@ -32870,7 +33159,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P145678_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P21184_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -32878,14 +33167,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.pc = 12; return s.tmp_6; + s.callLocIdx = 1024; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; case 7: case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P145688_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P22695_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 13; return s.tmp_0; + s.callLocIdx = 1025; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 9: @@ -32893,12 +33182,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P145685.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__P21190.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__P145685_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P21190_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P145685, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P21190, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32917,7 +33206,7 @@ function scene_systemMenu_PauseMenu_setSelection__P145685_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P145688(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P22695(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32927,13 +33216,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___156810 = undefined; + s.row___32472 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C145682_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21186_VT)) failedCast(r0); r0 = s.arg0.fields["selection"]; s.tmp_0 = r0; s.tmp_2 = if_cardsPerRow_1_mk(s); @@ -32945,23 +33234,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.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1046; 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___156810 = (r0); + s.row___32472 = (r0); r0 = s.arg0.fields["scrollRow"]; s.tmp_1 = r0; - r0 = (s.row___156810 === s.tmp_1); + r0 = (s.row___32472 === 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___156810 - 1); + r0 = (s.row___32472 - 1); s.tmp_2 = r0; r0 = s.arg0.fields["scrollRow"]; s.tmp_3 = r0; @@ -32976,7 +33265,7 @@ switch (step) { case 4: r0 = s.arg0.fields["scrollRow"]; s.tmp_6 = r0; - r0 = (s.row___156810 > s.tmp_6); + r0 = (s.row___32472 > s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } @@ -33007,7 +33296,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.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 1047; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; @@ -33021,7 +33310,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.pc = 10; return s.tmp_7; } + else { s.callLocIdx = 1048; s.pc = 10; return s.tmp_7; } } case 10: r0 = s.retval; @@ -33036,12 +33325,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P145688.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__P22695.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__P145688_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P22695_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P145688, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P22695, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33053,7 +33342,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P145688_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___156810: undefined, + row___32472: undefined, arg0: undefined, } } @@ -33061,7 +33350,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P145688_mk(s) { -function scene_systemMenu_PauseMenu_onUpdate__P145684(s) { +function scene_systemMenu_PauseMenu_onUpdate__P21189(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33071,22 +33360,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___156669 = undefined; - s.i___156673 = undefined; - s.dt___156702 = undefined; + s.t___32332 = undefined; + s.i___32336 = undefined; + s.dt___32365 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C145682_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21186_VT)) failedCast(r0); r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 / 250); - s.t___156669 = (r0); - s.i___156673 = (0); + s.t___32332 = (r0); + s.i___32336 = (0); case 1: - s.tmp_1 = r0 = s.i___156673; + s.tmp_1 = r0 = s.i___32336; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -33095,13 +33384,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__P145676_mk(s); + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P21182_mk(s); r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___156673); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___32336); s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___156669; - s.tmp_11 = r0 = s.i___156673; + s.tmp_8 = r0 = s.t___32332; + s.tmp_11 = r0 = s.i___32336; s.tmp_13 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_13.arg0 = r0; @@ -33111,7 +33400,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.pc = 11; return s.tmp_13; } + else { s.callLocIdx = 1016; s.pc = 11; return s.tmp_13; } } case 11: r0 = s.retval; @@ -33126,15 +33415,15 @@ switch (step) { s.tmp_6 = r0; r0 = (2 * s.tmp_6); s.tmp_4.arg1 = r0; - s.pc = 10; return s.tmp_4; + s.callLocIdx = 1017; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - r0 = (s.i___156673 + 1); - s.i___156673 = (r0); + r0 = (s.i___32336 + 1); + s.i___32336 = (r0); { step = 1; continue; } case 2: - s.tmp_1 = game_currentScene__P145074_mk(s); - s.pc = 12; return s.tmp_1; + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 1018; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; r0 = r0.fields["eventContext"]; @@ -33142,7 +33431,7 @@ switch (step) { r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); - s.dt___156702 = (r0); + s.dt___32365 = (r0); r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -33154,7 +33443,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___156702 * 100); + r0 = (s.dt___32365 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; @@ -33172,7 +33461,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___156702 * 100); + r0 = (s.dt___32365 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 - s.tmp_6); s.tmp_4 = r0; @@ -33182,14 +33471,14 @@ switch (step) { { step = 9; continue; } case 5: case 6: - s.tmp_2 = Math_abs__P144202_mk(s); + s.tmp_2 = Math_abs__P18687_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.pc = 13; return s.tmp_2; + s.callLocIdx = 1020; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -33202,16 +33491,16 @@ switch (step) { r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); case 7: case 8: - s.tmp_0 = scene_Camera_offsetY__P145237_mk(s); - s.tmp_1 = game_currentScene__P145074_mk(s); - s.pc = 15; return s.tmp_1; + s.tmp_0 = scene_Camera_offsetY__P20932_mk(s); + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 1021; 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.pc = 14; return s.tmp_0; + s.callLocIdx = 1022; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 9: @@ -33219,12 +33508,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_onUpdate__P145684.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__P21189.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__P145684_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P21189_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P145684, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P21189, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33240,9 +33529,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P145684_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - t___156669: undefined, - i___156673: undefined, - dt___156702: undefined, + t___32332: undefined, + i___32336: undefined, + dt___32365: undefined, arg0: undefined, } } @@ -33250,7 +33539,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P145684_mk(s) { -function scene_systemMenu_MenuOption_setOffset__P145676(s) { +function scene_systemMenu_MenuOption_setOffset__P21182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33266,40 +33555,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C145673_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P144914_mk(s); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21178_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P20631_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.pc = 1; return s.tmp_0; + s.callLocIdx = 959; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P144888_mk(s); + s.tmp_0 = Sprite_y__P20592_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P144887_mk(s); + s.tmp_1 = Sprite_y__P20591_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.pc = 3; return s.tmp_1; + s.callLocIdx = 960; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 2; return s.tmp_0; + s.callLocIdx = 961; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P145676.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__P21182.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__P145676_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P21182_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P145676, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P21182, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33311,7 +33600,7 @@ function scene_systemMenu_MenuOption_setOffset__P145676_mk(s) { -function scene_systemMenu_MenuOption_setState__P145678(s) { +function scene_systemMenu_MenuOption_setState__P21184(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33327,7 +33616,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C145673_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21178_VT)) failedCast(r0); r0 = s.arg0.fields["state"]; s.tmp_1 = r0; r0 = (s.tmp_1 === s.arg1); @@ -33338,9 +33627,9 @@ switch (step) { case 1: case 2: r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P145680_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P22694_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 4; return s.tmp_0; + s.callLocIdx = 963; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -33348,12 +33637,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setState__P145678.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__P21184.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__P145678_mk(s) { +function scene_systemMenu_MenuOption_setState__P21184_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P145678, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setState__P21184, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33365,7 +33654,7 @@ function scene_systemMenu_MenuOption_setState__P145678_mk(s) { -function scene_systemMenu_MenuOption_updateCard__P145680(s) { +function scene_systemMenu_MenuOption_updateCard__P22694(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33380,7 +33669,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C145673_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21178_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -33403,7 +33692,7 @@ switch (step) { r0 = s.tmp_3; { step = 6; continue; } case 3: - s.tmp_4 = Sprite_setImage__P144905_mk(s); + s.tmp_4 = Sprite_setImage__P20620_mk(s); r0 = s.arg0.fields["card"]; s.tmp_4.arg0 = r0; s.tmp_5 = if_basicCard_1_mk(s); @@ -33415,17 +33704,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.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 966; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; s.tmp_4.arg1 = r0; - s.pc = 8; return s.tmp_4; + s.callLocIdx = 967; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; { step = 6; continue; } case 4: - s.tmp_0 = Sprite_setImage__P144905_mk(s); + s.tmp_0 = Sprite_setImage__P20620_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_selectedCard_1_mk(s); @@ -33437,17 +33726,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.pc = 11; return s.tmp_1; } + else { s.callLocIdx = 968; s.pc = 11; return s.tmp_1; } } case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 10; return s.tmp_0; + s.callLocIdx = 969; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_0 = Sprite_setImage__P144905_mk(s); + s.tmp_0 = Sprite_setImage__P20620_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_1 = if_activeCard_1_mk(s); @@ -33459,39 +33748,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.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 970; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 12; return s.tmp_0; + s.callLocIdx = 971; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; case 6: - s.tmp_0 = Sprite_x__P144886_mk(s); + s.tmp_0 = Sprite_x__P20590_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P144885_mk(s); + s.tmp_1 = Sprite_x__P20589_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.pc = 15; return s.tmp_1; + s.callLocIdx = 972; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 14; return s.tmp_0; + s.callLocIdx = 973; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = Sprite_y__P144888_mk(s); + s.tmp_0 = Sprite_y__P20592_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P144887_mk(s); + s.tmp_1 = Sprite_y__P20591_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.pc = 17; return s.tmp_1; + s.callLocIdx = 974; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; s.tmp_0.arg1 = r0; - s.pc = 16; return s.tmp_0; + s.callLocIdx = 975; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; case 7: @@ -33499,12 +33788,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P145680.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]} +scene_systemMenu_MenuOption_updateCard__P22694.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__P145680_mk(s) { +function scene_systemMenu_MenuOption_updateCard__P22694_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P145680, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P22694, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33519,7 +33808,7 @@ function scene_systemMenu_MenuOption_updateCard__P145680_mk(s) { -function scene_systemMenu_MenuOption_setTheme__P145677(s) { +function scene_systemMenu_MenuOption_setTheme__P21183(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33535,34 +33824,283 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C145673_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C21178_VT)) failedCast(r0); r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P145680_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P22694_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 962; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_MenuOption_setTheme__P21183.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__P21183_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P21183, 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__P21181(s) { +let r0 = s.r0, 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__C21178_VT)) failedCast(r0); + r0 = (s.arg0).fields["top"] = (s.arg2); + s.tmp_0 = Sprite_left__P20627_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 953; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + s.tmp_0 = Sprite_top__P20631_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 954; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_x__P20590_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P20589_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 955; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 956; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_y__P20592_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P20591_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 957; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 958; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setTheme__P145677.info = {"start":1544,"length":101,"line":66,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setTheme","argumentNames":["this","theme"]} +scene_systemMenu_MenuOption_position__P21181.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_setTheme__P145677_mk(s) { +function scene_systemMenu_MenuOption_position__P21181_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P145677, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P21181, 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__P21180(s) { +let r0 = s.r0, 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__C21178_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 = 948; s.pc = 3; return s.tmp_1; } + } + case 3: + r0 = s.retval; + { step = 2; continue; } + case 1: + r0 = globals.CARD_NORMAL___21202; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + s.tmp_3 = r0 = s.arg0; + s.tmp_5 = sprites_create__P20538_mk(s); + s.tmp_5.arg0 = s.tmp_2; + s.tmp_5.arg1 = undefined; + s.callLocIdx = 949; 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 = 950; s.pc = 5; return s.tmp_0; } + } + case 5: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = sprites_create__P20538_mk(s); + r0 = s.arg0.fields["iconImage"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 951; 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 = 952; 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__P21180.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} + +function scene_systemMenu_MenuOption_show__P21180_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_MenuOption_show__P21180, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + arg0: undefined, +} } + + + + + +function game_onShade__P21111(s) { +let r0 = s.r0, 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 = game_init__P22448_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 943; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: + case 2: + s.tmp_2 = scene_createRenderable__P20947_mk(s); + s.tmp_2.arg0 = 80; + s.tmp_2.arg1 = s.arg0; + s.tmp_2.arg2 = undefined; + s.callLocIdx = 944; s.pc = 5; return s.tmp_2; + case 5: + r0 = s.retval; + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +game_onShade__P21111.info = {"start":9934,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} + +function game_onShade__P21111_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_onShade__P21111, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, } } -function scene_systemMenu_MenuOption_position__P145675(s) { +function scene_systemMenu_PauseMenu_constructor__P21187(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33579,61 +34117,44 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C145673_VT)) failedCast(r0); - r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P144910_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C21186_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: - r0 = s.retval; - s.tmp_0 = Sprite_top__P144914_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg2; - s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = Sprite_x__P144886_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P144885_mk(s); - r0 = s.arg0.fields["card"]; + s.tmp_1 = scene_systemMenu_buildMenuTheme__P21195_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___21202); s.tmp_1.arg0 = r0; - s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.pc = 3; return s.tmp_0; + s.tmp_1.arg1 = 3; + s.tmp_1.arg2 = undefined; + s.tmp_1.arg3 = undefined; + s.callLocIdx = 976; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P144888_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P144887_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = (s.arg0).fields["theme"] = (s.tmp_2); + r0 = (s.arg0).fields["scrollRow"] = (0); + r0 = (s.arg0).fields["scrollOffset"] = (0); + r0 = (s.arg0).fields["scrollTarget"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_position__P145675.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]} +scene_systemMenu_PauseMenu_constructor__P21187.info = {"start":3029,"length":257,"line":116,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","generator","theme"]} -function scene_systemMenu_MenuOption_position__P145675_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P21187_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_position__P145675, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P21187, 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, @@ -33643,7 +34164,7 @@ function scene_systemMenu_MenuOption_position__P145675_mk(s) { -function scene_systemMenu_MenuOption_show__P145674(s) { +function scene_systemMenu_buildMenuTheme__P21195(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33653,93 +34174,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.cardsPerRow___33316 = 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_systemMenu_MenuOption__C145673_VT)) failedCast(r0); - r0 = s.arg0.fields["theme"]; + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = (s.arg0 + s.arg1); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); + s.cardsPerRow___33316 = (r0); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_numops_toBool(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.pc = 3; return s.tmp_1; } - } - case 3: - r0 = s.retval; + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.CARD_NORMAL___145713; + r0 = globals.font8___20309; case 2: // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P144878_mk(s); - s.tmp_5.arg0 = s.tmp_2; - s.tmp_5.arg1 = undefined; - s.pc = 4; return s.tmp_5; - case 4: + 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__P20312_mk(s); + s.tmp_1.arg0 = s.arg2; + s.callLocIdx = 1086; 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___33316); + r0 = pxsim_ImageMethods.width(globals.screen___20366); + s.tmp_3 = r0; + r0 = (s.cardsPerRow___33316 * s.arg0); + s.tmp_5 = r0; + r0 = (s.cardsPerRow___33316 - 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).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); + 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_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.pc = 5; return s.tmp_0; } + 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 = 1087; s.pc = 6; return s.tmp_11; } } - case 5: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P144878_mk(s); - r0 = s.arg0.fields["iconImage"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = undefined; - 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); + 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___20366); + 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_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.pc = 7; return s.tmp_0; } + 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 = 1088; s.pc = 7; return s.tmp_16; } } case 7: r0 = s.retval; - r0 = (s.arg0).fields["state"] = (2); - r0 = undefined; + 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___21203); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___21204); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___21202); + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_show__P145674.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_buildMenuTheme__P21195.info = {"start":11654,"length":906,"line":356,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} -function scene_systemMenu_MenuOption_show__P145674_mk(s) { +function scene_systemMenu_buildMenuTheme__P21195_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P145674, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P21195, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33747,14 +34295,29 @@ function scene_systemMenu_MenuOption_show__P145674_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, + cardsPerRow___33316: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function game_onShade__P145403(s) { +function image_doubledFont__P20312(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33768,50 +34331,177 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P145388_mk(s); - s.tmp_0.arg0 = undefined; - s.pc = 4; return s.tmp_0; - case 4: + s.tmp_0 = image_scaledFont__P20313_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 2; + s.callLocIdx = 98; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + return leave(s, r0) + default: oops() +} } } +image_doubledFont__P20312.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} + +function image_doubledFont__P20312_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: image_doubledFont__P20312, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function image_scaledFont__P20313(s) { +let r0 = s.r0, 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.arg1 | 0); + s.arg1 = (r0); + r0 = (s.arg1 < 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 3; continue; } + r0 = s.arg0; + { step = 5; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P145247_mk(s); - s.tmp_2.arg0 = 80; - s.tmp_2.arg1 = s.arg0; - s.tmp_2.arg2 = undefined; - s.pc = 5; return s.tmp_2; - case 5: + 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 = 99; 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 = 100; 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 = 101; 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 = 102; 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 = 103; 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 = undefined; + 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() } } } -game_onShade__P145403.info = {"start":9936,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} +image_scaledFont__P20313.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 game_onShade__P145403_mk(s) { +function image_scaledFont__P20313_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P145403, depth: s.depth + 1, + parent: s, fn: image_scaledFont__P20313, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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 game_pushScene__P145389(s) { +function game_pushScene__P21100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33821,45 +34511,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___152654 = undefined; - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 5; return s.tmp_0; + s.oldScene___33395 = undefined; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 922; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.oldScene___152654 = (r0); - s.tmp_0 = particles_clearAll__P145846_mk(s); - s.pc = 6; return s.tmp_0; + s.oldScene___33395 = (r0); + s.tmp_0 = particles_clearAll__P21272_mk(s); + s.callLocIdx = 923; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_disableAll__P145847_mk(s); - s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_disableAll__P21273_mk(s); + s.callLocIdx = 924; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___145378); + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___22441); 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___145378 = (r0); + globals._sceneStack___22441 = (r0); case 1: case 2: - r0 = pxsim_Array__push(globals._sceneStack___145378, globals._scene___145377); - s.tmp_0 = game_init__P145388_mk(s); + r0 = pxsim_Array__push(globals._sceneStack___22441, globals._scene___22440); + s.tmp_0 = game_init__P22448_mk(s); s.tmp_0.arg0 = true; - s.pc = 8; return s.tmp_0; + s.callLocIdx = 925; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___145379); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___22442); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P152671); + r0 = pxsim_pxtcore_mkAction(1, inline__P33412); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___152654); - s.tmp_1 = helpers_arrayForEach__P144186_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___145379; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___33395); + s.tmp_1 = helpers_arrayForEach__P18671_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___22442; s.tmp_1.arg1 = s.tmp_0; - s.pc = 9; return s.tmp_1; + s.callLocIdx = 927; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; case 3: @@ -33868,23 +34558,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_pushScene__P145389.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +game_pushScene__P21100.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__P145389_mk(s) { +function game_pushScene__P21100_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P145389, depth: s.depth + 1, + parent: s, fn: game_pushScene__P21100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___152654: undefined, + oldScene___33395: undefined, } } -function inline__P152671(s) { +function inline__P33412(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33902,19 +34592,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.pc = 1; return s.tmp_0; + s.callLocIdx = 926; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P152671.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +inline__P33412.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__P152671_mk(s) { +function inline__P33412_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P152671, depth: s.depth + 1, + parent: s, fn: inline__P33412, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33924,7 +34614,7 @@ function inline__P152671_mk(s) { -function particles_disableAll__P145847(s) { +function particles_disableAll__P21273(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33934,22 +34624,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___154969 = undefined; - s.tmp_0 = particles_particleSources__P145849_mk(s); - s.pc = 3; return s.tmp_0; + s.sources___33416 = undefined; + s.tmp_0 = particles_particleSources__P22804_mk(s); + s.callLocIdx = 1169; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___154969 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___154969); + s.sources___33416 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___33416); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P144186_mk(s); - s.tmp_0.arg0 = s.sources___154969; - s.tmp_0.arg1 = inline__P154975; - s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P18671_mk(s); + s.tmp_0.arg0 = s.sources___33416; + s.tmp_0.arg1 = inline__P33422; + s.callLocIdx = 1171; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P145836_mk(s); - s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P22800_mk(s); + s.callLocIdx = 1172; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -33958,22 +34648,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_disableAll__P145847.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} +particles_disableAll__P21273.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__P145847_mk(s) { +function particles_disableAll__P21273_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll__P145847, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P21273, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___154969: undefined, + sources___33416: undefined, } } -function inline__P154975(s) { +function inline__P33422(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33987,22 +34677,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P145821_mk(s); + s.tmp_0 = particles_ParticleSource_enabled__P21255_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1170; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = false; return leave(s, r0) default: oops() } } } -inline__P154975.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P33422.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__P154975_mk(s) { +function inline__P33422_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P154975, depth: s.depth + 1, + parent: s, fn: inline__P33422, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34012,7 +34702,7 @@ function inline__P154975_mk(s) { -function particles_clearAll__P145846(s) { +function particles_clearAll__P21272(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34022,22 +34712,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___154980 = undefined; - s.tmp_0 = particles_particleSources__P145849_mk(s); - s.pc = 3; return s.tmp_0; + s.sources___33427 = undefined; + s.tmp_0 = particles_particleSources__P22804_mk(s); + s.callLocIdx = 1165; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___154980 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___154980); + s.sources___33427 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___33427); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P144186_mk(s); - s.tmp_0.arg0 = s.sources___154980; - s.tmp_0.arg1 = inline__P154986; - s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P18671_mk(s); + s.tmp_0.arg0 = s.sources___33427; + s.tmp_0.arg1 = inline__P33433; + s.callLocIdx = 1167; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P145836_mk(s); - s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P22800_mk(s); + s.callLocIdx = 1168; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -34046,22 +34736,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_clearAll__P145846.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} +particles_clearAll__P21272.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__P145846_mk(s) { +function particles_clearAll__P21272_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll__P145846, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P21272, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___154980: undefined, + sources___33427: undefined, } } -function inline__P154986(s) { +function inline__P33433(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34075,21 +34765,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P145823_mk(s); + s.tmp_0 = particles_ParticleSource_clear__P21257_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1166; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P154986.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +inline__P33433.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__P154986_mk(s) { +function inline__P33433_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P154986, depth: s.depth + 1, + parent: s, fn: inline__P33433, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34099,7 +34789,7 @@ function inline__P154986_mk(s) { -function scene_systemMenu_initVolume__P145706(s) { +function scene_systemMenu_initScreen__P22707(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34109,20 +34799,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___157680 = undefined; - s.tmp_0 = settings_readNumber__P144732_mk(s); - s.tmp_0.arg0 = "#volume"; - s.pc = 3; return s.tmp_0; + s.brightness___33439 = undefined; + s.tmp_0 = settings_readNumber__P20397_mk(s); + s.tmp_0.arg0 = "#brightness"; + s.callLocIdx = 1095; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.vol___157680 = (r0); - r0 = (s.vol___157680 != null); + s.brightness___33439 = (r0); + r0 = (s.brightness___33439 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P144551_mk(s); - s.tmp_1.arg0 = s.vol___157680; - s.pc = 4; return s.tmp_1; + s.tmp_1 = helpers_setScreenBrightness__P20299_mk(s); + s.tmp_1.arg0 = globals.screen___20366; + s.tmp_1.arg1 = s.brightness___33439; + s.callLocIdx = 1096; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -34131,23 +34822,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P145706.info = {"start":12776,"length":138,"line":389,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} +scene_systemMenu_initScreen__P22707.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} -function scene_systemMenu_initVolume__P145706_mk(s) { +function scene_systemMenu_initScreen__P22707_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P145706, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P22707, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___157680: undefined, + brightness___33439: undefined, } } -function settings_readNumber__P144732(s) { +function settings_readNumber__P20397(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34157,15 +34848,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___157690 = undefined; - s.nums___157697 = undefined; + s.buf___33450 = undefined; + s.nums___33457 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___157690 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___157690); + s.buf___33450 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___33450); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -34175,20 +34866,20 @@ switch (step) { { step = 7; continue; } { step = 6; continue; } case 1: - s.tmp_2 = msgpack_unpackNumberArray__P144264_mk(s); - s.tmp_2.arg0 = s.buf___157690; + s.tmp_2 = msgpack_unpackNumberArray__P18740_mk(s); + s.tmp_2.arg0 = s.buf___33450; s.tmp_2.arg1 = 0; - s.pc = 8; return s.tmp_2; + s.callLocIdx = 136; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.nums___157697 = (r0); - s.tmp_0 = r0 = s.nums___157697; + s.nums___33457 = (r0); + s.tmp_0 = r0 = s.nums___33457; 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___157697); + r0 = pxsim_Array__length(s.nums___33457); s.tmp_1 = r0; r0 = (s.tmp_1 >= 1); case 3: @@ -34196,7 +34887,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.nums___157697, 0); + r0 = pxsim_Array__getAt(s.nums___33457, 0); { step = 7; continue; } case 4: case 5: @@ -34208,18 +34899,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readNumber__P144732.info = {"start":2887,"length":313,"line":114,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} +settings_readNumber__P20397.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__P144732_mk(s) { +function settings_readNumber__P20397_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P144732, depth: s.depth + 1, + parent: s, fn: settings_readNumber__P20397, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - buf___157690: undefined, - nums___157697: undefined, + buf___33450: undefined, + nums___33457: undefined, arg0: undefined, } } @@ -34227,7 +34918,7 @@ function settings_readNumber__P144732_mk(s) { -function settings_readBuffer__P144730(s) { +function settings_readBuffer__P20395(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34245,12 +34936,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readBuffer__P144730.info = {"start":2516,"length":72,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} +settings_readBuffer__P20395.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__P144730_mk(s) { +function settings_readBuffer__P20395_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readBuffer__P144730, depth: s.depth + 1, + parent: s, fn: settings_readBuffer__P20395, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -34259,7 +34950,7 @@ function settings_readBuffer__P144730_mk(s) { -function msgpack_unpackNumberArray__P144264(s) { +function msgpack_unpackNumberArray__P18740(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34269,16 +34960,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___157710 = undefined; - s.fmt___157717 = undefined; - s.v___157726 = undefined; + s.res___33470 = undefined; + s.fmt___33477 = undefined; + s.v___33486 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___157710 = (r0); + s.res___33470 = (r0); case 1: s.tmp_1 = r0 = s.arg1; r0 = pxsim.BufferMethods.length(s.arg0); @@ -34290,14 +34981,14 @@ switch (step) { s.tmp_3 = r0 = s.arg1; r0 = (s.tmp_3 + 1); s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P144262_mk(s); + s.tmp_4 = msgpack_tagFormat__P22064_mk(s); r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); s.tmp_4.arg0 = r0; - s.pc = 12; return s.tmp_4; + s.callLocIdx = 23; s.pc = 12; return s.tmp_4; case 12: r0 = s.retval; - s.fmt___157717 = (r0); - r0 = (s.fmt___157717 === null); + s.fmt___33477 = (r0); + r0 = (s.fmt___33477 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } @@ -34305,21 +34996,21 @@ switch (step) { r0 = (s.arg1 - 1); s.tmp_2 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___157726 = (r0); - r0 = (-31 <= s.v___157726); + s.v___33486 = (r0); + r0 = (-31 <= s.v___33486); 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___157726 <= 127); + r0 = (s.v___33486 <= 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___157710, s.v___157726); + r0 = pxsim_Array__push(s.res___33470, s.v___33486); { step = 5; continue; } case 4: r0 = null; @@ -34327,14 +35018,14 @@ switch (step) { case 5: { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.res___157710; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___157717, s.arg1); + s.tmp_0 = r0 = s.res___33470; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___33477, 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__P144255_mk(s); - s.tmp_2.arg0 = s.fmt___157717; - s.pc = 13; return s.tmp_2; + s.tmp_2 = pins_sizeOf__P18732_mk(s); + s.tmp_2.arg0 = s.fmt___33477; + s.callLocIdx = 24; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -34354,26 +35045,26 @@ switch (step) { case 9: { step = 1; continue; } case 10: - r0 = s.res___157710; + r0 = s.res___33470; case 11: return leave(s, r0) default: oops() } } } -msgpack_unpackNumberArray__P144264.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]} +msgpack_unpackNumberArray__P18740.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__P144264_mk(s) { +function msgpack_unpackNumberArray__P18740_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P144264, depth: s.depth + 1, + parent: s, fn: msgpack_unpackNumberArray__P18740, depth: s.depth + 1, pc: 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___157710: undefined, - fmt___157717: undefined, - v___157726: undefined, + res___33470: undefined, + fmt___33477: undefined, + v___33486: undefined, arg0: undefined, arg1: undefined, } } @@ -34382,7 +35073,55 @@ function msgpack_unpackNumberArray__P144264_mk(s) { -function game_currentScene__P145074(s) { +function scene_systemMenu_initVolume__P22706(s) { +let r0 = s.r0, 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___33531 = undefined; + s.tmp_0 = settings_readNumber__P20397_mk(s); + s.tmp_0.arg0 = "#volume"; + s.callLocIdx = 1093; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.vol___33531 = (r0); + r0 = (s.vol___33531 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_setVolume__P20156_mk(s); + s.tmp_1.arg0 = s.vol___33531; + s.callLocIdx = 1094; 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__P22706.info = {"start":13238,"length":144,"line":399,"column":4,"endLine":403,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} + +function scene_systemMenu_initVolume__P22706_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_initVolume__P22706, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + vol___33531: undefined, +} } + + + + + +function game_currentScene__P21096(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34392,21 +35131,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P145388_mk(s); + s.tmp_0 = game_init__P22448_mk(s); s.tmp_0.arg0 = undefined; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 917; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___145377; + r0 = globals._scene___22440; return leave(s, r0) default: oops() } } } -game_currentScene__P145074.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} +game_currentScene__P21096.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__P145074_mk(s) { +function game_currentScene__P21096_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_currentScene__P145074, depth: s.depth + 1, + parent: s, fn: game_currentScene__P21096, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -34415,7 +35154,7 @@ function game_currentScene__P145074_mk(s) { -function game_addScenePopHandler__P145069(s) { +function game_addScenePopHandler__P21115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34429,35 +35168,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___145380); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___22443); 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___145380 = (r0); + globals._scenePopHandlers___22443 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___145380, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___22443, 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___145380, s.arg0); + r0 = pxsim_Array__push(globals._scenePopHandlers___22443, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePopHandler__P145069.info = {"start":11756,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} +game_addScenePopHandler__P21115.info = {"start":11754,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} -function game_addScenePopHandler__P145069_mk(s) { +function game_addScenePopHandler__P21115_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePopHandler__P145069, depth: s.depth + 1, + parent: s, fn: game_addScenePopHandler__P21115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34468,7 +35207,7 @@ function game_addScenePopHandler__P145069_mk(s) { -function game_addScenePushHandler__P145052(s) { +function game_addScenePushHandler__P21113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34482,35 +35221,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___145379); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___22442); 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___145379 = (r0); + globals._scenePushHandlers___22442 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___145379, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___22442, 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___145379, s.arg0); + r0 = pxsim_Array__push(globals._scenePushHandlers___22442, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePushHandler__P145052.info = {"start":10755,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} +game_addScenePushHandler__P21113.info = {"start":10753,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} -function game_addScenePushHandler__P145052_mk(s) { +function game_addScenePushHandler__P21113_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePushHandler__P145052, depth: s.depth + 1, + parent: s, fn: game_addScenePushHandler__P21113, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34521,7 +35260,7 @@ function game_addScenePushHandler__P145052_mk(s) { -function Fx8__P144221(s) { +function Fx8__P18708(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34541,12 +35280,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx8__P144221.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} +Fx8__P18708.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__P144221_mk(s) { +function Fx8__P18708_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx8__P144221, depth: s.depth + 1, + parent: s, fn: Fx8__P18708, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34556,7 +35295,7 @@ function Fx8__P144221_mk(s) { -function SpriteKind_create__P144972(s) { +function SpriteKind_create__P20691(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34566,26 +35305,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___144971 === undefined); + r0 = (globals.nextKind___22293 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___144971 = (1000); + globals.nextKind___22293 = (1000); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___144971; + s.tmp_0 = r0 = globals.nextKind___22293; r0 = (s.tmp_0 + 1); - globals.nextKind___144971 = (r0); + globals.nextKind___22293 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -SpriteKind_create__P144972.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} +SpriteKind_create__P20691.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__P144972_mk(s) { +function SpriteKind_create__P20691_mk(s) { checkStack(s.depth); return { - parent: s, fn: SpriteKind_create__P144972, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P20691, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -34594,7 +35333,7 @@ function SpriteKind_create__P144972_mk(s) { -function controller_Button_constructor__P144820(s) { +function controller_Button_constructor__P20473(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34611,7 +35350,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C144809_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20467_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = (s.arg0).fields["_pressed"] = (false); r0 = (s.arg0).fields["repeatDelay"] = (undefined); @@ -34621,13 +35360,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P157838); + r0 = pxsim_pxtcore_mkAction(1, inline__P33607); 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__P157845); + r0 = pxsim_pxtcore_mkAction(1, inline__P33614); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["id"]; @@ -34646,12 +35385,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_constructor__P144820.info = {"start":1589,"length":863,"line":67,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","id","configKey"]} +controller_Button_constructor__P20473.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__P144820_mk(s) { +function controller_Button_constructor__P20473_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_constructor__P144820, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P20473, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34665,7 +35404,7 @@ function controller_Button_constructor__P144820_mk(s) { -function inline__P157838(s) { +function inline__P33607(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34675,22 +35414,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P144818_mk(s); + s.tmp_0 = controller_Button_setPressed__P20478_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 148; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P157838.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +inline__P33607.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function inline__P157838_mk(s) { +function inline__P33607_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P157838, depth: s.depth + 1, + parent: s, fn: inline__P33607, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -34699,7 +35438,7 @@ function inline__P157838_mk(s) { -function inline__P157845(s) { +function inline__P33614(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34709,22 +35448,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P144818_mk(s); + s.tmp_0 = controller_Button_setPressed__P20478_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = true; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 149; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P157845.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +inline__P33614.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} -function inline__P157845_mk(s) { +function inline__P33614_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P157845, depth: s.depth + 1, + parent: s, fn: inline__P33614, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -34733,7 +35472,41 @@ function inline__P157845_mk(s) { -function controller_Button_setPressed__P144818(s) { +function controller_setupButton__P22275(s) { +let r0 = s.r0, 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 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_setupButton__P22275.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} + +function controller_setupButton__P22275_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_setupButton__P22275, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_Button_setPressed__P20478(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34749,26 +35522,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C144809_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20467_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__P144612_mk(s); - s.pc = 7; return s.tmp_2; + s.tmp_2 = power_poke__P20269_mk(s); + s.callLocIdx = 152; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; r0 = s.arg0.fields["_owner"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = controller_Controller_connected__P144849_mk(s); + s.tmp_1 = controller_Controller_connected__P20507_mk(s); r0 = s.arg0.fields["_owner"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = true; - s.pc = 8; return s.tmp_1; + s.callLocIdx = 153; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; case 1: @@ -34779,17 +35552,17 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } r0 = (s.arg0).fields["_pressedElasped"] = (0); - s.tmp_0 = controller_Button_raiseButtonDown__P144812_mk(s); + s.tmp_0 = controller_Button_raiseButtonDown__P22277_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 9; return s.tmp_0; + s.callLocIdx = 154; 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__P144811_mk(s); + s.tmp_0 = controller_Button_raiseButtonUp__P22276_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 10; return s.tmp_0; + s.callLocIdx = 155; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 4: @@ -34799,12 +35572,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P144818.info = {"start":4600,"length":507,"line":148,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"setPressed","argumentNames":["this","pressed"]} +controller_Button_setPressed__P20478.info = {"start":4600,"length":507,"line":148,"column":8,"endLine":162,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"setPressed","argumentNames":["this","pressed"]} -function controller_Button_setPressed__P144818_mk(s) { +function controller_Button_setPressed__P20478_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P144818, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P20478, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34817,7 +35590,7 @@ function controller_Button_setPressed__P144818_mk(s) { -function controller_Controller_connected__P144849(s) { +function controller_Button_raiseButtonDown__P22277(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34829,57 +35602,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, controller_Controller__C144832_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, controller_Button__C20467_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___22269); if (!r0) { step = 1; continue; } - r0 = 1; + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2049, s.tmp_0); { step = 2; continue; } case 1: - r0 = 2; + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2053, s.tmp_0); 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 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_connected__P144849.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} +controller_Button_raiseButtonDown__P22277.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]} -function controller_Controller_connected__P144849_mk(s) { +function controller_Button_raiseButtonDown__P22277_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P144849, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P22277, 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_id__P144835(s) { +function controller_Button_raiseButtonUp__P22276(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34894,98 +35651,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C144832_VT)) failedCast(r0); - r0 = s.arg0.fields["_id"]; - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller_id__P144835.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__P144835.isGetter = true; - -function controller_Controller_id__P144835_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_id__P144835, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function controller_Controller_connected__P144848(s) { -let r0 = s.r0, 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__C144832_VT)) failedCast(r0); - r0 = s.arg0.fields["_connected"]; - return leaveAccessor(s, r0) - default: oops() -} } } -controller_Controller_connected__P144848.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__P144848.isGetter = true; - -function controller_Controller_connected__P144848_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_Controller_connected__P144848, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function controller_Button_raiseButtonDown__P144812(s) { -let r0 = s.r0, 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_Button__C144809_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___144802); + if (!checkSubtype(r0, controller_Button__C20467_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___22269); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2049, s.tmp_0); + 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(2053, s.tmp_0); + r0 = pxsim.control.raiseEvent(2052, s.tmp_0); case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P144812.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]} +controller_Button_raiseButtonUp__P22276.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_raiseButtonDown__P144812_mk(s) { +function controller_Button_raiseButtonUp__P22276_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P144812, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P22276, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34995,7 +35682,7 @@ function controller_Button_raiseButtonDown__P144812_mk(s) { -function controller_Button_raiseButtonUp__P144811(s) { +function controller_Controller_connected__P20507(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35007,41 +35694,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, controller_Button__C144809_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___144802); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; + s.tmp_1 = r0; + r0 = (s.arg1 != s.tmp_1); s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2048, 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 = 1; { step = 2; continue; } case 1: - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2052, s.tmp_0); + r0 = 2; case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.arg0.fields["_id"]; + s.tmp_2 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_2, s.tmp_1); + case 3: + case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P144811.info = {"start":2462,"length":200,"line":85,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonUp","argumentNames":["this"]} +controller_Controller_connected__P20507.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} -function controller_Button_raiseButtonUp__P144811_mk(s) { +function controller_Controller_connected__P20507_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P144811, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P20507, 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_setupButton__P144808(s) { +function controller_Controller_id__P20494(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35053,29 +35756,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); + r0 = s.arg0.fields["_id"]; + return leaveAccessor(s, r0) default: oops() } } } -controller_setupButton__P144808.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} +controller_Controller_id__P20494.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__P20494.isGetter = true; -function controller_setupButton__P144808_mk(s) { +function controller_Controller_id__P20494_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P144808, depth: s.depth + 1, + parent: s, fn: controller_Controller_id__P20494, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function settings_initScopes__P144723(s) { +function controller_Controller_connected__P20506(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35085,18 +35789,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___157925 = undefined; - s.tmp_1 = settings_runNumber__P144721_mk(s); - s.pc = 1; return s.tmp_1; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C20487_VT)) failedCast(r0); + r0 = s.arg0.fields["_connected"]; + return leaveAccessor(s, r0) + default: oops() +} } } +controller_Controller_connected__P20506.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__P20506.isGetter = true; + +function controller_Controller_connected__P20506_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller_connected__P20506, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function settings_initScopes__P22242(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.rn___33692 = undefined; + s.tmp_1 = settings_runNumber__P20389_mk(s); + s.callLocIdx = 127; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.rn___157925 = (r0); - s.tmp_0 = settings_writeNumber__P144728_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___144710; - s.tmp_0.arg1 = s.rn___157925; - s.pc = 2; return s.tmp_0; + s.rn___33692 = (r0); + s.tmp_0 = settings_writeNumber__P20393_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___22230; + s.tmp_0.arg1 = s.rn___33692; + s.callLocIdx = 128; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = pxsim.control.deviceSerialNumber(); @@ -35104,34 +35843,34 @@ switch (step) { r0 = (s.tmp_1 & 2147483647); s.tmp_0 = r0; r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); - r0 = pxsim_pxtcore.seedAddRandom(s.rn___157925); - s.tmp_0 = settings_setScope__P144722_mk(s); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___33692); + s.tmp_0 = settings_setScope__P22241_mk(s); r0 = pxsim_pxtcore.programName(); s.tmp_0.arg0 = r0; - s.pc = 3; return s.tmp_0; + s.callLocIdx = 129; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_initScopes__P144723.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +settings_initScopes__P22242.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} -function settings_initScopes__P144723_mk(s) { +function settings_initScopes__P22242_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P144723, depth: s.depth + 1, + parent: s, fn: settings_initScopes__P22242, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___157925: undefined, + rn___33692: undefined, } } -function settings_setScope__P144722(s) { +function settings_setScope__P22241(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35141,7 +35880,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___157954 = undefined; + s.currScope___33721 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -35166,21 +35905,21 @@ switch (step) { r0 = pxsim_pxtrt.panic(922); case 3: case 4: - s.tmp_0 = settings_readString__P144731_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___144711; - s.pc = 7; return s.tmp_0; + s.tmp_0 = settings_readString__P20396_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___22231; + s.callLocIdx = 125; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.currScope___157954 = (r0); - r0 = (s.currScope___157954 != s.arg0); + s.currScope___33721 = (r0); + r0 = (s.currScope___33721 != 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__P144727_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___144711; + s.tmp_0 = settings_writeString__P20392_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___22231; s.tmp_0.arg1 = s.arg0; - s.pc = 8; return s.tmp_0; + s.callLocIdx = 126; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; case 5: @@ -35189,18 +35928,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_setScope__P144722.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} +settings_setScope__P22241.info = {"start":826,"length":272,"line":31,"column":4,"endLine":39,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"setScope","argumentNames":["scope"]} -function settings_setScope__P144722_mk(s) { +function settings_setScope__P22241_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P144722, depth: s.depth + 1, + parent: s, fn: settings_setScope__P22241, depth: s.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___157954: undefined, + currScope___33721: undefined, arg0: undefined, } } @@ -35208,7 +35947,7 @@ function settings_setScope__P144722_mk(s) { -function settings_readString__P144731(s) { +function settings_readString__P20396(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35218,14 +35957,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___157975 = undefined; + s.buf___33742 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___157975 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___157975); + s.buf___33742 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___33742); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -35235,7 +35974,7 @@ switch (step) { { step = 3; continue; } { step = 2; continue; } case 1: - r0 = pxsim.BufferMethods.toString(s.buf___157975); + r0 = pxsim.BufferMethods.toString(s.buf___33742); { step = 3; continue; } case 2: r0 = undefined; @@ -35243,16 +35982,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readString__P144731.info = {"start":2649,"length":177,"line":103,"column":4,"endLine":109,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} +settings_readString__P20396.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__P144731_mk(s) { +function settings_readString__P20396_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readString__P144731, depth: s.depth + 1, + parent: s, fn: settings_readString__P20396, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___157975: undefined, + buf___33742: undefined, arg0: undefined, } } @@ -35260,7 +35999,7 @@ function settings_readString__P144731_mk(s) { -function settings_writeString__P144727(s) { +function settings_writeString__P20392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35275,23 +36014,23 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P144726_mk(s); + s.tmp_0 = settings_writeBuffer__P20391_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim.control.createBufferFromUTF8(s.arg1); s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 131; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeString__P144727.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} +settings_writeString__P20392.info = {"start":1895,"length":125,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeString","argumentNames":["key","value"]} -function settings_writeString__P144727_mk(s) { +function settings_writeString__P20392_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P144727, depth: s.depth + 1, + parent: s, fn: settings_writeString__P20392, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35302,7 +36041,7 @@ function settings_writeString__P144727_mk(s) { -function settings_runNumber__P144721(s) { +function settings_runNumber__P20389(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35312,9 +36051,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P144732_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___144710; - s.pc = 3; return s.tmp_1; + s.tmp_1 = settings_readNumber__P20397_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___22230; + s.callLocIdx = 124; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -35331,12 +36070,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_runNumber__P144721.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} +settings_runNumber__P20389.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} -function settings_runNumber__P144721_mk(s) { +function settings_runNumber__P20389_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_runNumber__P144721, depth: s.depth + 1, + parent: s, fn: settings_runNumber__P20389, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35347,7 +36086,7 @@ function settings_runNumber__P144721_mk(s) { -function control___screen_setupUpdate__P144661(s) { +function control___screen_setupUpdate__P20328(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35361,24 +36100,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___144659 = (true); - globals.__update___144657 = (s.arg0); + globals.__updated___22199 = (true); + globals.__update___22197 = (s.arg0); s.tmp_0 = lambda_1_mk(s); s.tmp_0.argL = s.arg0; setupLambda(s.tmp_0, s.tmp_0.argL); - s.pc = 1; return s.tmp_0; + s.callLocIdx = 120; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P144661.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} +control___screen_setupUpdate__P20328.info = {"start":198,"length":125,"line":10,"column":4,"endLine":14,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"setupUpdate","argumentNames":["update"]} -function control___screen_setupUpdate__P144661_mk(s) { +function control___screen_setupUpdate__P20328_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P144661, depth: s.depth + 1, + parent: s, fn: control___screen_setupUpdate__P20328, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35388,7 +36127,7 @@ function control___screen_setupUpdate__P144661_mk(s) { -function control___screen_update__P144660(s) { +function control___screen_update__P20327(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35398,27 +36137,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___144657); + r0 = pxsim_numops_toBoolDecr(globals.__update___22197); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___144657; + s.tmp_0.argL = globals.__update___22197; setupLambda(s.tmp_0, s.tmp_0.argL); - s.pc = 3; return s.tmp_0; + s.callLocIdx = 119; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: case 2: - globals.__updated___144659 = (true); + globals.__updated___22199 = (true); r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_update__P144660.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} +control___screen_update__P20327.info = {"start":90,"length":102,"line":4,"column":4,"endLine":8,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"update","argumentNames":[]} -function control___screen_update__P144660_mk(s) { +function control___screen_update__P20327_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P144660, depth: s.depth + 1, + parent: s, fn: control___screen_update__P20327, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -35427,7 +36166,7 @@ function control___screen_update__P144660_mk(s) { -function pause__P144435(s) { +function pause__P18966(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35451,12 +36190,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pause__P144435.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +pause__P18966.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} -function pause__P144435_mk(s) { +function pause__P18966_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P144435, depth: s.depth + 1, + parent: s, fn: pause__P18966, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -35465,7 +36204,7 @@ function pause__P144435_mk(s) { -function particles_AshFactory_createParticle__P145919(s) { +function particles_AshFactory_createParticle__P21324(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35475,16 +36214,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___185495 = undefined; - s.choice___185504 = undefined; - s.p___185509 = undefined; + s.index___36009 = undefined; + s.choice___36018 = undefined; + s.p___36023 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AshFactory__C145917_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AshFactory__C21322_VT)) failedCast(r0); r0 = s.arg0.fields["colors"]; s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); @@ -35497,7 +36236,7 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.tmp_3 = Math_FastRandom_randomRange__P145664_mk(s); + s.tmp_3 = Math_FastRandom_randomRange__P21154_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = 0; @@ -35507,28 +36246,28 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 - 1); s.tmp_3.arg2 = r0; - s.pc = 8; return s.tmp_3; + s.callLocIdx = 1240; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - s.index___185495 = (r0); + s.index___36009 = (r0); r0 = s.arg0.fields["colors"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.index___185495); - s.choice___185504 = (r0); - s.tmp_0 = particles_AreaFactory_createParticle__P145885_mk(s); + r0 = pxsim_Array__getAt(s.tmp_0, s.index___36009); + s.choice___36018 = (r0); + s.tmp_0 = particles_AreaFactory_createParticle__P21294_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 9; return s.tmp_0; + s.callLocIdx = 1241; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.p___185509 = (r0); - s.tmp_0 = r0 = s.choice___185504; + s.p___36023 = (r0); + s.tmp_0 = r0 = s.choice___36018; r0 = s.tmp_0.fields["count"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1 = r0; r0 = (s.tmp_0).fields["count"] = (s.tmp_1); - r0 = s.choice___185504.fields["count"]; + r0 = s.choice___36018.fields["count"]; s.tmp_1 = r0; r0 = (s.tmp_1 === 0); s.tmp_0 = r0; @@ -35536,14 +36275,14 @@ switch (step) { if (!r0) { step = 3; continue; } r0 = s.arg0.fields["colors"]; s.tmp_2 = r0; - r0 = pxsim_Array_.removeAt(s.tmp_2, s.index___185495); + r0 = pxsim_Array_.removeAt(s.tmp_2, s.index___36009); case 3: case 4: - r0 = s.choice___185504.fields["color"]; + r0 = s.choice___36018.fields["color"]; s.tmp_0 = r0; - r0 = (s.p___185509).fields["color"] = (s.tmp_0); - s.tmp_0 = r0 = s.p___185509; - s.tmp_3 = Math_FastRandom_randomRange__P145664_mk(s); + r0 = (s.p___36023).fields["color"] = (s.tmp_0); + s.tmp_0 = r0 = s.p___36023; + s.tmp_3 = Math_FastRandom_randomRange__P21154_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_3.arg0 = r0; r0 = s.arg0.fields["yRange"]; @@ -35552,11 +36291,11 @@ switch (step) { s.tmp_3.arg1 = r0; r0 = s.arg0.fields["yRange"]; s.tmp_3.arg2 = r0; - s.pc = 10; return s.tmp_3; + s.callLocIdx = 1242; s.pc = 10; return s.tmp_3; case 10: r0 = s.retval; s.tmp_2 = r0; - r0 = s.p___185509.fields["_y"]; + r0 = s.p___36023.fields["_y"]; s.tmp_5 = r0; r0 = (s.tmp_2 << 8); s.tmp_6 = r0; @@ -35571,7 +36310,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["vx"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["vx"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.pc = 11; return s.tmp_1; } + else { s.callLocIdx = 1244; s.pc = 11; return s.tmp_1; } } case 11: r0 = s.retval; @@ -35586,7 +36325,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["vx"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["vx"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.pc = 12; return s.tmp_5; } + else { s.callLocIdx = 1245; s.pc = 12; return s.tmp_5; } } case 12: r0 = s.retval; @@ -35604,14 +36343,14 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_7 = r0; - r0 = (s.p___185509).fields["vx"] = (s.tmp_7); - s.tmp_0 = r0 = s.p___185509; - s.tmp_3 = Math_FastRandom_randomRange__P145664_mk(s); + r0 = (s.p___36023).fields["vx"] = (s.tmp_7); + s.tmp_0 = r0 = s.p___36023; + s.tmp_3 = Math_FastRandom_randomRange__P21154_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = -150; s.tmp_3.arg2 = -50; - s.pc = 13; return s.tmp_3; + s.callLocIdx = 1248; s.pc = 13; return s.tmp_3; case 13: r0 = s.retval; s.tmp_2 = r0; @@ -35620,17 +36359,17 @@ switch (step) { r0 = (s.tmp_4 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___185509; + r0 = s.p___36023; case 7: return leave(s, r0) default: oops() } } } -particles_AshFactory_createParticle__P145919.info = {"start":13251,"length":665,"line":425,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_AshFactory_createParticle__P21324.info = {"start":13251,"length":665,"line":425,"column":8,"endLine":442,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function particles_AshFactory_createParticle__P145919_mk(s) { +function particles_AshFactory_createParticle__P21324_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AshFactory_createParticle__P145919, depth: s.depth + 1, + parent: s, fn: particles_AshFactory_createParticle__P21324, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35640,9 +36379,9 @@ function particles_AshFactory_createParticle__P145919_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - index___185495: undefined, - choice___185504: undefined, - p___185509: undefined, + index___36009: undefined, + choice___36018: undefined, + p___36023: undefined, arg0: undefined, arg1: undefined, } } @@ -35651,7 +36390,7 @@ function particles_AshFactory_createParticle__P145919_mk(s) { -function Fx_iadd__P144241(s) { +function Fx_iadd__P18717(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35672,12 +36411,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_iadd__P144241.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__P18717.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__P144241_mk(s) { +function Fx_iadd__P18717_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P144241, depth: s.depth + 1, + parent: s, fn: Fx_iadd__P18717, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35688,7 +36427,7 @@ function Fx_iadd__P144241_mk(s) { -function sprites_SpriteSet_toString__P144967(s) { +function sprites_SpriteSet_toString__P20686(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35703,7 +36442,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C144957_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C20675_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = s.arg0.fields["_sprites"]; @@ -35725,12 +36464,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_toString__P144967.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} +sprites_SpriteSet_toString__P20686.info = {"start":2577,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} -function sprites_SpriteSet_toString__P144967_mk(s) { +function sprites_SpriteSet_toString__P20686_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_toString__P144967, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P20686, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35744,7 +36483,7 @@ function sprites_SpriteSet_toString__P144967_mk(s) { -function sprites_SpriteSet_length__P144959(s) { +function sprites_SpriteSet_length__P20678(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35759,20 +36498,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C144957_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C20675_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; r0 = pxsim_Array__length(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -sprites_SpriteSet_length__P144959.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__P144959.isGetter = true; +sprites_SpriteSet_length__P20678.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__P20678.isGetter = true; -function sprites_SpriteSet_length__P144959_mk(s) { +function sprites_SpriteSet_length__P20678_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P144959, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P20678, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35782,7 +36521,7 @@ function sprites_SpriteSet_length__P144959_mk(s) { -function music_Melody_toString__P144570(s) { +function music_Melody_toString__P20171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35797,17 +36536,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C144560_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C20162_VT)) failedCast(r0); r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -music_Melody_toString__P144570.info = {"start":9640,"length":53,"line":303,"column":8,"endLine":305,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} +music_Melody_toString__P20171.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__P144570_mk(s) { +function music_Melody_toString__P20171_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P144570, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P20171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -35816,7 +36555,7 @@ function music_Melody_toString__P144570_mk(s) { -function tiles_TileMap_data__P145200(s) { +function sprites_SpriteMap_toString__P20666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35831,128 +36570,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMap_data__P145200.info = {"start":6156,"length":75,"line":221,"column":8,"endLine":223,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} -tiles_TileMap_data__P145200.isGetter = true; - -function tiles_TileMap_data__P145200_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_data__P145200, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function scene_BackgroundLayer_constructor__P145166(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C145164_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P144204_mk(s); - s.tmp_2.arg0 = 1; - s.tmp_2.arg1 = s.arg1; - s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["distance"] = (s.tmp_1); - r0 = (s.arg0).fields["img"] = (s.arg3); - s.tmp_0 = r0 = s.arg2; - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 1; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); - if (r0) { step = 2; continue; } - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 1: - r0 = (s.arg0).fields["repeatX"] = (true); - r0 = (s.arg0).fields["repeatY"] = (true); - r0 = (s.arg0).fields["alignX"] = (5); - r0 = (s.arg0).fields["alignY"] = (5); - { step = 6; continue; } - case 2: - case 3: - r0 = (s.arg0).fields["repeatX"] = (false); - r0 = (s.arg0).fields["repeatY"] = (true); - r0 = (s.arg0).fields["alignX"] = (s.arg2); - r0 = (s.arg0).fields["alignY"] = (5); - { step = 6; continue; } - case 4: - case 5: - r0 = (s.arg0).fields["repeatX"] = (true); - r0 = (s.arg0).fields["repeatY"] = (false); - r0 = (s.arg0).fields["alignX"] = (5); - r0 = (s.arg0).fields["alignY"] = (s.arg2); - case 6: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_BackgroundLayer_constructor__P145166.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__P145166_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_BackgroundLayer_constructor__P145166, 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__P144950(s) { -let r0 = s.r0, 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__C144940_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; r0 = s.arg0.fields["buckets"]; @@ -35972,11 +36590,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, " buckets, "); s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P144187_mk(s); + s.tmp_10 = helpers_arrayFilter__P18672_mk(s); r0 = s.arg0.fields["buckets"]; s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = inline__P158016; - s.pc = 2; return s.tmp_10; + s.tmp_10.arg1 = inline__P33782; + s.callLocIdx = 515; s.pc = 2; return s.tmp_10; case 2: r0 = s.retval; s.tmp_9 = r0; @@ -35997,12 +36615,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_toString__P144950.info = {"start":4109,"length":123,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"toString","argumentNames":["this"]} +sprites_SpriteMap_toString__P20666.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__P144950_mk(s) { +function sprites_SpriteMap_toString__P20666_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_toString__P144950, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P20666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36022,7 +36640,7 @@ function sprites_SpriteMap_toString__P144950_mk(s) { -function inline__P158016(s) { +function inline__P33782(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36046,113 +36664,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158016.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} - -function inline__P158016_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P158016, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function scene_Background_image__P145160(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C145157_VT)) failedCast(r0); - r0 = (s.arg0).fields["_image"] = (s.arg1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Background_image__P145160.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} +inline__P33782.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} -function scene_Background_image__P145160_mk(s) { +function inline__P33782_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P145160, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function scene_Background_image__P145159(s) { -let r0 = s.r0, 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_Background__C145157_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___144693); - s.tmp_6 = r0; - r0 = pxsim.image.create(s.tmp_5, s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_image"] = (s.tmp_4); - case 1: - case 2: - r0 = s.arg0.fields["_image"]; - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Background_image__P145159.info = {"start":811,"length":174,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this"]} -scene_Background_image__P145159.isGetter = true; - -function scene_Background_image__P145159_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Background_image__P145159, depth: s.depth + 1, + parent: s, fn: inline__P33782, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, } } @@ -36160,7 +36681,7 @@ function scene_Background_image__P145159_mk(s) { -function ArcadePhysicsEngine_moveSprite__P145039(s) { +function ArcadePhysicsEngine_moveSprite__P20751(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36170,9 +36691,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___158054 = undefined; - s.maxDist___158064 = undefined; - s.ms___158084 = undefined; + s.tm___33820 = undefined; + s.maxDist___33830 = undefined; + s.ms___33850 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36181,7 +36702,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -36210,19 +36731,19 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tmp_4 = game_currentScene__P145074_mk(s); - s.pc = 16; return s.tmp_4; + s.tmp_4 = game_currentScene__P21096_mk(s); + s.callLocIdx = 727; s.pc = 16; return s.tmp_4; case 16: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___158054 = (r0); - s.tmp_0 = r0 = s.tm___158054; + s.tm___33820 = (r0); + s.tmp_0 = r0 = s.tm___33820; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.tm___158054.fields["_map"]; + r0 = s.tm___33820.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -36248,41 +36769,41 @@ switch (step) { r0 = (s.tmp_8 + 128); s.tmp_9 = r0; r0 = (s.tmp_9 >> 8); - s.maxDist___158064 = (r0); - s.tmp_2 = Math_abs__P144202_mk(s); + s.maxDist___33830 = (r0); + s.tmp_2 = Math_abs__P18687_mk(s); r0 = (s.arg2 + 128); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_2.arg0 = r0; - s.pc = 17; return s.tmp_2; + s.callLocIdx = 731; s.pc = 17; return s.tmp_2; case 17: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___158064); + r0 = (s.tmp_1 <= s.maxDist___33830); 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__P144202_mk(s); + s.tmp_5 = Math_abs__P18687_mk(s); r0 = (s.arg3 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); s.tmp_5.arg0 = r0; - s.pc = 18; return s.tmp_5; + s.callLocIdx = 733; s.pc = 18; return s.tmp_5; case 18: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___158064); + r0 = (s.tmp_4 <= s.maxDist___33830); 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__C145019_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C20735_VT); s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P145020_mk(s); + s.tmp_9 = MovingSprite_constructor__P20736_mk(s); s.tmp_9.arg0 = s.tmp_8; s.tmp_9.arg1 = s.arg1; r0 = s.arg1.fields["_vx"]; @@ -36293,23 +36814,23 @@ switch (step) { s.tmp_9.arg5 = s.arg3; s.tmp_9.arg6 = s.arg2; s.tmp_9.arg7 = s.arg3; - s.pc = 19; return s.tmp_9; + s.callLocIdx = 734; s.pc = 19; return s.tmp_9; case 19: r0 = s.retval; - s.ms___158084 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P145036_mk(s); + s.ms___33850 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P22315_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___158084; - s.tmp_0.arg2 = s.tm___158054; - s.pc = 20; return s.tmp_0; + s.tmp_0.arg1 = s.ms___33850; + s.tmp_0.arg2 = s.tm___33820; + s.callLocIdx = 735; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; { step = 12; continue; } case 7: - s.tmp_1 = tiles_TileMap_isOnWall__P145219_mk(s); - s.tmp_1.arg0 = s.tm___158054; + s.tmp_1 = tiles_TileMap_isOnWall__P20902_mk(s); + s.tmp_1.arg0 = s.tm___33820; s.tmp_1.arg1 = s.arg1; - s.pc = 21; return s.tmp_1; + s.callLocIdx = 736; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; s.tmp_0 = r0; @@ -36318,11 +36839,11 @@ switch (step) { r0 = s.tmp_0; { step = 9; continue; } case 8: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P145040_mk(s); + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P22317_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___158054; - s.pc = 22; return s.tmp_4; + s.tmp_4.arg2 = s.tm___33820; + s.callLocIdx = 737; s.pc = 22; return s.tmp_4; case 22: r0 = s.retval; s.tmp_3 = r0; @@ -36357,12 +36878,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P145039.info = {"start":19929,"length":1276,"line":573,"column":4,"endLine":606,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} +ArcadePhysicsEngine_moveSprite__P20751.info = {"start":21785,"length":1276,"line":642,"column":4,"endLine":675,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} -function ArcadePhysicsEngine_moveSprite__P145039_mk(s) { +function ArcadePhysicsEngine_moveSprite__P20751_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P145039, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P20751, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36374,9 +36895,9 @@ function ArcadePhysicsEngine_moveSprite__P145039_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___158054: undefined, - maxDist___158064: undefined, - ms___158084: undefined, + tm___33820: undefined, + maxDist___33830: undefined, + ms___33850: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36387,7 +36908,7 @@ function ArcadePhysicsEngine_moveSprite__P145039_mk(s) { -function ArcadePhysicsEngine_canResolveClipping__P145040(s) { +function ArcadePhysicsEngine_canResolveClipping__P22317(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36397,19 +36918,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___158124 = undefined; - s.sz___158127 = undefined; - s.maxMove___158132 = undefined; - s.origY___158134 = undefined; - s.origX___158137 = undefined; - s.l___158140 = undefined; - s.r___158145 = undefined; - s.t___158150 = undefined; - s.b___158155 = undefined; - s.offset___158160 = undefined; - s.offset___158185 = undefined; - s.offset___158216 = undefined; - s.offset___158241 = undefined; + s.hbox___33895 = undefined; + s.sz___33898 = undefined; + s.maxMove___33903 = undefined; + s.origY___33905 = undefined; + s.origX___33908 = undefined; + s.l___33911 = undefined; + s.r___33916 = undefined; + s.t___33921 = undefined; + s.b___33926 = undefined; + s.offset___33931 = undefined; + s.offset___33956 = undefined; + s.offset___33987 = undefined; + s.offset___34012 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36417,86 +36938,103 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + r0 = s.arg1.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.isStatic(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_4 = Sprite_setHitbox__P20621_mk(s); + s.tmp_4.arg0 = s.arg1; + s.callLocIdx = 739; s.pc = 20; return s.tmp_4; + case 20: + r0 = s.retval; + case 1: + case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___158124 = (r0); + s.hbox___33895 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___158127 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P145027_mk(s); + s.sz___33898 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P20743_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 18; return s.tmp_0; - case 18: + s.callLocIdx = 741; s.pc = 21; return s.tmp_0; + case 21: r0 = s.retval; - s.maxMove___158132 = (r0); + s.maxMove___33903 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___158134 = (r0); + s.origY___33905 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___158137 = (r0); - s.tmp_1 = game_Hitbox_left__P144870_mk(s); - s.tmp_1.arg0 = s.hbox___158124; - s.pc = 19; return s.tmp_1; - case 19: + s.origX___33908 = (r0); + s.tmp_1 = game_Hitbox_left__P20530_mk(s); + s.tmp_1.arg0 = s.hbox___33895; + s.callLocIdx = 742; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.l___158140 = (r0); - s.tmp_1 = game_Hitbox_right__P144872_mk(s); - s.tmp_1.arg0 = s.hbox___158124; - s.pc = 20; return s.tmp_1; - case 20: + s.l___33911 = (r0); + s.tmp_1 = game_Hitbox_right__P20532_mk(s); + s.tmp_1.arg0 = s.hbox___33895; + s.callLocIdx = 744; s.pc = 23; return s.tmp_1; + case 23: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.r___158145 = (r0); - s.tmp_1 = game_Hitbox_top__P144871_mk(s); - s.tmp_1.arg0 = s.hbox___158124; - s.pc = 21; return s.tmp_1; - case 21: + s.r___33916 = (r0); + s.tmp_1 = game_Hitbox_top__P20531_mk(s); + s.tmp_1.arg0 = s.hbox___33895; + s.callLocIdx = 746; s.pc = 24; return s.tmp_1; + case 24: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.t___158150 = (r0); - s.tmp_1 = game_Hitbox_bottom__P144873_mk(s); - s.tmp_1.arg0 = s.hbox___158124; - s.pc = 22; return s.tmp_1; - case 22: + s.t___33921 = (r0); + s.tmp_1 = game_Hitbox_bottom__P20533_mk(s); + s.tmp_1.arg0 = s.hbox___33895; + s.callLocIdx = 748; s.pc = 25; return s.tmp_1; + case 25: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); - s.b___158155 = (r0); - r0 = (s.b___158155 + 1); + s.b___33926 = (r0); + r0 = (s.b___33926 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___158127); - s.offset___158160 = (r0); - r0 = (s.offset___158160 <= s.maxMove___158132); + r0 = (s.tmp_0 % s.sz___33898); + s.offset___33931 = (r0); + r0 = (s.offset___33931 <= s.maxMove___33903); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } + if (!r0) { step = 5; continue; } s.tmp_1 = r0 = s.arg1; r0 = s.arg1.fields["_y"]; s.tmp_3 = r0; - r0 = (s.offset___158160 * 256); + r0 = (s.offset___33931 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; r0 = (s.tmp_3 - s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_y"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P145219_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20902_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.pc = 23; return s.tmp_3; - case 23: + s.callLocIdx = 752; s.pc = 26; return s.tmp_3; + case 26: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -36504,44 +37042,44 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } + if (!r0) { step = 3; continue; } r0 = true; - { step = 17; continue; } - { step = 2; continue; } - case 1: - r0 = (s.arg1).fields["_y"] = (s.origY___158134); - case 2: + { step = 19; continue; } + { step = 4; continue; } case 3: + r0 = (s.arg1).fields["_y"] = (s.origY___33905); case 4: - r0 = (s.t___158150 / s.sz___158127); + case 5: + case 6: + r0 = (s.t___33921 / s.sz___33898); 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___158127); + r0 = (s.tmp_1 * s.sz___33898); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___158150); - s.offset___158185 = (r0); - r0 = (s.offset___158185 <= s.maxMove___158132); + r0 = (s.tmp_0 - s.t___33921); + s.offset___33956 = (r0); + r0 = (s.offset___33956 <= s.maxMove___33903); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } + if (!r0) { step = 9; continue; } s.tmp_1 = r0 = s.arg1; r0 = s.arg1.fields["_y"]; s.tmp_3 = r0; - r0 = (s.offset___158185 * 256); + r0 = (s.offset___33956 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_y"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P145219_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20902_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.pc = 24; return s.tmp_3; - case 24: + s.callLocIdx = 755; s.pc = 27; return s.tmp_3; + case 27: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -36549,38 +37087,38 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } + if (!r0) { step = 7; continue; } r0 = true; - { step = 17; continue; } - { step = 6; continue; } - case 5: - r0 = (s.arg1).fields["_y"] = (s.origY___158134); - case 6: + { step = 19; continue; } + { step = 8; continue; } case 7: + r0 = (s.arg1).fields["_y"] = (s.origY___33905); case 8: - r0 = (s.r___158145 + 1); + case 9: + case 10: + r0 = (s.r___33916 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___158127); - s.offset___158216 = (r0); - r0 = (s.offset___158216 <= s.maxMove___158132); + r0 = (s.tmp_0 % s.sz___33898); + s.offset___33987 = (r0); + r0 = (s.offset___33987 <= s.maxMove___33903); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } + if (!r0) { step = 13; continue; } s.tmp_1 = r0 = s.arg1; r0 = s.arg1.fields["_x"]; s.tmp_3 = r0; - r0 = (s.offset___158216 * 256); + r0 = (s.offset___33987 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; r0 = (s.tmp_3 - s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_x"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P145219_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20902_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.pc = 25; return s.tmp_3; - case 25: + s.callLocIdx = 758; s.pc = 28; return s.tmp_3; + case 28: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -36588,44 +37126,44 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } + if (!r0) { step = 11; continue; } r0 = true; - { step = 17; continue; } - { step = 10; continue; } - case 9: - r0 = (s.arg1).fields["_x"] = (s.origX___158137); - case 10: + { step = 19; continue; } + { step = 12; continue; } case 11: + r0 = (s.arg1).fields["_x"] = (s.origX___33908); case 12: - r0 = (s.l___158140 / s.sz___158127); + case 13: + case 14: + r0 = (s.l___33911 / s.sz___33898); 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___158127); + r0 = (s.tmp_1 * s.sz___33898); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___158140); - s.offset___158241 = (r0); - r0 = (s.offset___158241 <= s.maxMove___158132); + r0 = (s.tmp_0 - s.l___33911); + s.offset___34012 = (r0); + r0 = (s.offset___34012 <= s.maxMove___33903); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } + if (!r0) { step = 17; continue; } s.tmp_1 = r0 = s.arg1; r0 = s.arg1.fields["_x"]; s.tmp_3 = r0; - r0 = (s.offset___158241 * 256); + r0 = (s.offset___34012 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_x"] = (s.tmp_2); - s.tmp_3 = tiles_TileMap_isOnWall__P145219_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20902_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.pc = 26; return s.tmp_3; - case 26: + s.callLocIdx = 761; s.pc = 29; return s.tmp_3; + case 29: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -36633,26 +37171,26 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } + if (!r0) { step = 15; continue; } r0 = true; - { step = 17; continue; } - { step = 14; continue; } - case 13: - r0 = (s.arg1).fields["_x"] = (s.origX___158137); - case 14: + { step = 19; continue; } + { step = 16; continue; } case 15: + r0 = (s.arg1).fields["_x"] = (s.origX___33908); case 16: - r0 = false; case 17: + case 18: + r0 = false; + case 19: return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P145040.info = {"start":21301,"length":2093,"line":609,"column":4,"endLine":679,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} +ArcadePhysicsEngine_canResolveClipping__P22317.info = {"start":23157,"length":2135,"line":678,"column":4,"endLine":749,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} -function ArcadePhysicsEngine_canResolveClipping__P145040_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P22317_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P145040, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P22317, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36660,19 +37198,19 @@ function ArcadePhysicsEngine_canResolveClipping__P145040_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___158124: undefined, - sz___158127: undefined, - maxMove___158132: undefined, - origY___158134: undefined, - origX___158137: undefined, - l___158140: undefined, - r___158145: undefined, - t___158150: undefined, - b___158155: undefined, - offset___158160: undefined, - offset___158185: undefined, - offset___158216: undefined, - offset___158241: undefined, + hbox___33895: undefined, + sz___33898: undefined, + maxMove___33903: undefined, + origY___33905: undefined, + origX___33908: undefined, + l___33911: undefined, + r___33916: undefined, + t___33921: undefined, + b___33926: undefined, + offset___33931: undefined, + offset___33956: undefined, + offset___33987: undefined, + offset___34012: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36682,7 +37220,44 @@ function ArcadePhysicsEngine_canResolveClipping__P145040_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P145036(s) { +function Sprite_isStatic__P20622(s) { +let r0 = s.r0, 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__C20580_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__P20622.info = {"start":8266,"length":57,"line":299,"column":4,"endLine":301,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} + +function Sprite_isStatic__P20622_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_isStatic__P20622, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_tilemapCollisions__P22315(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36692,34 +37267,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___158275 = undefined; - s.hbox___158292 = undefined; - s.tileScale___158295 = undefined; - s.tileSize___158298 = undefined; - s.xDiff___158302 = undefined; - s.yDiff___158309 = undefined; - s.right___158319 = undefined; - s.x0___158323 = undefined; - s.collidedTiles___158338 = undefined; - s.overlappedTiles___158340 = undefined; - s.y___158342 = undefined; - s.y0___158356 = undefined; - s.obstacle___158372 = undefined; - s.collisionDirection___158407 = undefined; - s.tile___158435 = undefined; - s.unnamed4598___U15 = undefined; - s.unnamed4599___U16 = undefined; - s.down___158519 = undefined; - s.y0___158523 = undefined; - s.collidedTiles___158538 = undefined; - s.overlappedTiles___158540 = undefined; - s.x___158542 = undefined; - s.x0___158552 = undefined; - s.obstacle___158566 = undefined; - s.collisionDirection___158600 = undefined; - s.tile___158628 = undefined; - s.unnamed4600___U26 = undefined; - s.unnamed4601___U27 = undefined; + s.s___34051 = undefined; + s.hbox___34074 = undefined; + s.tileScale___34077 = undefined; + s.tileSize___34080 = undefined; + s.xDiff___34084 = undefined; + s.yDiff___34091 = undefined; + s.overlappedTiles___34098 = undefined; + s.right___34103 = undefined; + s.x0___34107 = undefined; + s.collidedTiles___34122 = undefined; + s.y___34124 = undefined; + s.y0___34138 = undefined; + s.obstacle___34154 = undefined; + s.collisionDirection___34188 = undefined; + s.tile___34214 = undefined; + s.unnamed238___U15 = undefined; + s.unnamed239___U16 = undefined; + s.down___34292 = undefined; + s.y0___34296 = undefined; + s.collidedTiles___34311 = undefined; + s.overlappedTiles___34313 = undefined; + s.x___34315 = undefined; + s.x0___34325 = undefined; + s.obstacle___34339 = undefined; + s.collisionDirection___34373 = undefined; + s.tile___34399 = undefined; + s.unnamed240___U26 = undefined; + s.unnamed241___U27 = undefined; + s.x___34474 = undefined; + s.x0___34484 = undefined; + s.y___34494 = undefined; + s.y0___34504 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36727,28 +37306,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___158275 = (r0); - r0 = s.s___158275.fields["flags"]; + s.s___34051 = (r0); + r0 = s.s___34051.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 256); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = tiles_TileMap_isOnWall__P145219_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P20902_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.s___158275; - s.pc = 78; return s.tmp_3; - case 78: + s.tmp_3.arg1 = s.s___34051; + s.callLocIdx = 620; s.pc = 84; return s.tmp_3; + case 84: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - { step = 77; continue; } + { step = 83; continue; } { step = 2; continue; } case 1: - s.tmp_4 = r0 = s.s___158275; + s.tmp_4 = r0 = s.s___34051; r0 = s.tmp_4.fields["flags"]; s.tmp_6 = r0; r0 = (s.tmp_6 & -257); @@ -36757,79 +37336,96 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___158275.fields["_hitbox"]; - s.hbox___158292 = (r0); + r0 = s.s___34051.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.isStatic(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_4 = Sprite_setHitbox__P20621_mk(s); + s.tmp_4.arg0 = s.s___34051; + s.callLocIdx = 622; s.pc = 85; return s.tmp_4; + case 85: + r0 = s.retval; + case 5: + case 6: + r0 = s.s___34051.fields["_hitbox"]; + s.hbox___34074 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___158295 = (r0); - r0 = (1 << s.tileScale___158295); - s.tileSize___158298 = (r0); - r0 = s.s___158275.fields["_x"]; + s.tileScale___34077 = (r0); + r0 = (1 << s.tileScale___34077); + s.tileSize___34080 = (r0); + r0 = s.s___34051.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___158275.fields["_lastX"]; + r0 = s.s___34051.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___158302 = (r0); - r0 = s.s___158275.fields["_y"]; + s.xDiff___34084 = (r0); + r0 = s.s___34051.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___158275.fields["_lastY"]; + r0 = s.s___34051.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___158309 = (r0); - r0 = (s.xDiff___158302 !== 0); + s.yDiff___34091 = (r0); + r0 = pxsim_Array__mk(); + s.overlappedTiles___34098 = (r0); + r0 = (s.xDiff___34084 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 39; continue; } - r0 = (s.xDiff___158302 > 0); - s.right___158319 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___158319); - if (!r0) { step = 5; continue; } - s.tmp_1 = game_Hitbox_right__P144872_mk(s); - s.tmp_1.arg0 = s.hbox___158292; - s.pc = 79; return s.tmp_1; - case 79: + r0 = (s.xDiff___34084 > 0); + s.right___34103 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___34103); + if (!r0) { step = 7; continue; } + s.tmp_1 = game_Hitbox_right__P20532_mk(s); + s.tmp_1.arg0 = s.hbox___34074; + s.callLocIdx = 626; s.pc = 86; return s.tmp_1; + case 86: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 256); - { step = 6; continue; } - case 5: - s.tmp_3 = game_Hitbox_left__P144870_mk(s); - s.tmp_3.arg0 = s.hbox___158292; - s.pc = 80; return s.tmp_3; - case 80: + { step = 8; continue; } + case 7: + s.tmp_3 = game_Hitbox_left__P20530_mk(s); + s.tmp_3.arg0 = s.hbox___34074; + s.callLocIdx = 628; s.pc = 87; return s.tmp_3; + case 87: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_2 - 256); - case 6: + case 8: // jmp value (already in r0) s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___158295 + 8); + r0 = (s.tileScale___34077 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___158323 = (r0); + s.x0___34107 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___158338 = (r0); - r0 = pxsim_Array__mk(); - s.overlappedTiles___158340 = (r0); - s.tmp_1 = game_Hitbox_top__P144871_mk(s); - s.tmp_1.arg0 = s.hbox___158292; - s.pc = 81; return s.tmp_1; - case 81: + s.collidedTiles___34122 = (r0); + s.tmp_1 = game_Hitbox_top__P20531_mk(s); + s.tmp_1.arg0 = s.hbox___34074; + s.callLocIdx = 632; s.pc = 88; return s.tmp_1; + case 88: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___158309); - s.y___158342 = (r0); - case 7: - s.tmp_1 = r0 = s.y___158342; - s.tmp_3 = r0 = s.tileSize___158298; - s.tmp_6 = game_Hitbox_bottom__P144873_mk(s); - s.tmp_6.arg0 = s.hbox___158292; - s.pc = 82; return s.tmp_6; - case 82: + r0 = (s.tmp_0 - s.yDiff___34091); + s.y___34124 = (r0); + case 9: + s.tmp_1 = r0 = s.y___34124; + s.tmp_3 = r0 = s.tileSize___34080; + s.tmp_6 = game_Hitbox_bottom__P20533_mk(s); + s.tmp_6.arg0 = s.hbox___34074; + s.callLocIdx = 634; s.pc = 89; return s.tmp_6; + case 89: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___158309); + r0 = (s.tmp_5 - s.yDiff___34091); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -36838,53 +37434,53 @@ switch (step) { r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - s.tmp_10 = Fx_min__P144249_mk(s); - s.tmp_10.arg0 = s.y___158342; - s.tmp_12 = game_Hitbox_bottom__P144873_mk(s); - s.tmp_12.arg0 = s.hbox___158292; - s.pc = 84; return s.tmp_12; - case 84: + if (!r0) { step = 14; continue; } + s.tmp_10 = Fx_min__P18725_mk(s); + s.tmp_10.arg0 = s.y___34124; + s.tmp_12 = game_Hitbox_bottom__P20533_mk(s); + s.tmp_12.arg0 = s.hbox___34074; + s.callLocIdx = 637; s.pc = 91; return s.tmp_12; + case 91: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___158309); + r0 = (s.tmp_11 - s.yDiff___34091); s.tmp_10.arg1 = r0; - s.pc = 83; return s.tmp_10; - case 83: + s.callLocIdx = 639; s.pc = 90; return s.tmp_10; + case 90: r0 = s.retval; s.tmp_9 = r0; r0 = (s.tmp_9 + 128); s.tmp_8 = r0; - r0 = (s.tileScale___158295 + 8); + r0 = (s.tileScale___34077 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___158356 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P145217_mk(s); + s.y0___34138 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P20900_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___158323; - s.tmp_1.arg2 = s.y0___158356; - s.pc = 85; return s.tmp_1; - case 85: + s.tmp_1.arg1 = s.x0___34107; + s.tmp_1.arg2 = s.y0___34138; + s.callLocIdx = 642; s.pc = 92; return s.tmp_1; + case 92: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P145218_mk(s); + if (!r0) { step = 12; continue; } + s.tmp_2 = tiles_TileMap_getObstacle__P20901_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___158323; - s.tmp_2.arg2 = s.y0___158356; - s.pc = 86; return s.tmp_2; - case 86: + s.tmp_2.arg1 = s.x0___34107; + s.tmp_2.arg2 = s.y0___34138; + s.callLocIdx = 643; s.pc = 93; return s.tmp_2; + case 93: r0 = s.retval; - s.obstacle___158372 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P158380); + s.obstacle___34154 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P34162); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___158372); - s.tmp_4 = helpers_arraySome__P144184_mk(s); - s.tmp_4.arg0 = s.collidedTiles___158338; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___34154); + s.tmp_4 = helpers_arraySome__P18669_mk(s); + s.tmp_4.arg0 = s.collidedTiles___34122; s.tmp_4.arg1 = s.tmp_0; - s.pc = 87; return s.tmp_4; - case 87: + s.callLocIdx = 644; s.pc = 94; return s.tmp_4; + case 94: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -36892,172 +37488,173 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 8; continue; } - r0 = pxsim_Array__push(s.collidedTiles___158338, s.obstacle___158372); - case 8: - case 9: - { step = 11; continue; } + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__push(s.collidedTiles___34122, s.obstacle___34154); case 10: - s.tmp_0 = r0 = s.overlappedTiles___158340; - s.tmp_2 = tiles_TileMap_getTile__P145209_mk(s); + case 11: + { step = 13; continue; } + case 12: + s.tmp_0 = r0 = s.overlappedTiles___34098; + s.tmp_2 = tiles_TileMap_getTile__P20893_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___158323; - s.tmp_2.arg2 = s.y0___158356; - s.pc = 88; return s.tmp_2; - case 88: + s.tmp_2.arg1 = s.x0___34107; + s.tmp_2.arg2 = s.y0___34138; + s.callLocIdx = 645; s.pc = 95; return s.tmp_2; + case 95: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - case 11: - r0 = (s.tileSize___158298 << 8); + case 13: + r0 = (s.tileSize___34080 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___158342); - s.y___158342 = (r0); - { step = 7; continue; } - case 12: - r0 = pxsim_Array__length(s.collidedTiles___158338); + r0 = (s.tmp_0 + s.y___34124); + s.y___34124 = (r0); + { step = 9; continue; } + case 14: + r0 = pxsim_Array__length(s.collidedTiles___34122); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 35; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___158319); - if (!r0) { step = 13; continue; } + if (!r0) { step = 37; continue; } + r0 = pxsim_numops_toBoolDecr(s.right___34103); + if (!r0) { step = 15; continue; } r0 = 2; - { step = 14; continue; } - case 13: + { step = 16; continue; } + case 15: r0 = 0; - case 14: + case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___158407 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___158319); - if (!r0) { step = 15; continue; } - r0 = (s.x0___158323 << s.tileScale___158295); + s.collisionDirection___34188 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___34103); + if (!r0) { step = 17; continue; } + r0 = (s.x0___34107 << s.tileScale___34077); 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___158292.fields["width"]; + r0 = s.hbox___34074.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); - { step = 16; continue; } - case 15: - r0 = (s.x0___158323 + 1); + { step = 18; continue; } + case 17: + r0 = (s.x0___34107 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___158295); + r0 = (s.tmp_5 << s.tileScale___34077); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; r0 = (s.tmp_6 | 0); - case 16: + case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___158275; - r0 = s.hbox___158292.fields["ox"]; + s.tmp_8 = r0 = s.s___34051; + r0 = s.hbox___34074.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___158435 = (undefined); - s.unnamed4598___U15 = (s.collidedTiles___158338); - s.unnamed4599___U16 = (0); - case 17: - s.tmp_0 = r0 = s.unnamed4599___U16; - r0 = pxsim_Array__length(s.unnamed4598___U15); + s.tile___34214 = (undefined); + s.unnamed238___U15 = (s.collidedTiles___34122); + s.unnamed239___U16 = (0); + case 19: + s.tmp_0 = r0 = s.unnamed239___U16; + r0 = pxsim_Array__length(s.unnamed238___U15); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed4598___U15, s.unnamed4599___U16); - s.tile___158435 = (r0); - s.tmp_2 = Sprite_registerObstacle__P144932_mk(s); - s.tmp_2.arg0 = s.s___158275; - s.tmp_2.arg1 = s.collisionDirection___158407; - s.tmp_2.arg2 = s.tile___158435; - s.pc = 89; return s.tmp_2; - case 89: + if (!r0) { step = 20; continue; } + r0 = pxsim_Array__getAt(s.unnamed238___U15, s.unnamed239___U16); + s.tile___34214 = (r0); + s.tmp_2 = Sprite_registerObstacle__P20649_mk(s); + s.tmp_2.arg0 = s.s___34051; + s.tmp_2.arg1 = s.collisionDirection___34188; + s.tmp_2.arg2 = s.tile___34214; + s.tmp_2.arg3 = s.arg2; + s.callLocIdx = 651; s.pc = 96; return s.tmp_2; + case 96: r0 = s.retval; - r0 = (s.unnamed4599___U16 + 1); - s.unnamed4599___U16 = (r0); - { step = 17; continue; } - case 18: - s.unnamed4598___U15 = (undefined); - r0 = s.s___158275.fields["flags"]; + r0 = (s.unnamed239___U16 + 1); + s.unnamed239___U16 = (r0); + { step = 19; continue; } + case 20: + s.unnamed238___U15 = (undefined); + r0 = s.s___34051.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 = 19; continue; } - s.tmp_2 = Sprite_destroy__P144934_mk(s); - s.tmp_2.arg0 = s.s___158275; + if (!r0) { step = 21; continue; } + s.tmp_2 = Sprite_destroy__P20651_mk(s); + s.tmp_2.arg0 = s.s___34051; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.pc = 90; return s.tmp_2; - case 90: + s.callLocIdx = 652; s.pc = 97; return s.tmp_2; + case 97: r0 = s.retval; - { step = 34; continue; } - case 19: - r0 = s.s___158275.fields["_vx"]; + { step = 36; continue; } + case 21: + r0 = s.s___34051.fields["_vx"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_1 === s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 30; continue; } - r0 = s.s___158275.fields["flags"]; + if (!r0) { step = 32; continue; } + r0 = s.s___34051.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 = 28; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___158319); + if (!r0) { step = 30; continue; } + r0 = pxsim_numops_toBoolDecr(s.right___34103); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBool(s.tmp_5); - if (r0) { step = 20; continue; } + if (r0) { step = 22; continue; } r0 = s.tmp_5; - { step = 21; continue; } - case 20: - s.tmp_8 = Sprite_vx__P144889_mk(s); - s.tmp_8.arg0 = s.s___158275; - s.pc = 91; return s.tmp_8; - case 91: + { step = 23; continue; } + case 22: + s.tmp_8 = Sprite_vx__P20593_mk(s); + s.tmp_8.arg0 = s.s___34051; + s.callLocIdx = 653; s.pc = 98; return s.tmp_8; + case 98: r0 = s.retval; s.tmp_7 = r0; r0 = (s.tmp_7 < 0); - case 21: + case 23: // jmp value (already in r0) s.tmp_9 = r0; r0 = pxsim_numops_toBool(s.tmp_9); - if (!r0) { step = 22; continue; } + if (!r0) { step = 24; continue; } r0 = s.tmp_9; - { step = 25; continue; } - case 22: - s.tmp_10 = r0 = s.right___158319; + { step = 27; continue; } + case 24: + s.tmp_10 = r0 = s.right___34103; r0 = pxsim_numops_toBool(s.tmp_10); - if (r0) { step = 23; continue; } + if (r0) { step = 25; continue; } r0 = s.tmp_10; - { step = 24; continue; } - case 23: - s.tmp_12 = Sprite_vx__P144889_mk(s); - s.tmp_12.arg0 = s.s___158275; - s.pc = 92; return s.tmp_12; - case 92: + { step = 26; continue; } + case 25: + s.tmp_12 = Sprite_vx__P20593_mk(s); + s.tmp_12.arg0 = s.s___34051; + s.callLocIdx = 654; s.pc = 99; return s.tmp_12; + case 99: r0 = s.retval; s.tmp_11 = r0; r0 = (s.tmp_11 > 0); - case 24: + case 26: // jmp value (already in r0) s.tmp_13 = r0; r0 = s.tmp_13; - case 25: + case 27: // jmp value (already in r0) s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); - if (!r0) { step = 26; continue; } - s.tmp_15 = r0 = s.s___158275; - r0 = s.s___158275.fields["_vx"]; + if (!r0) { step = 28; continue; } + s.tmp_15 = r0 = s.s___34051; + r0 = s.s___34051.fields["_vx"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -37074,85 +37671,71 @@ switch (step) { r0 = (0 - s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - case 26: - case 27: - { step = 29; continue; } case 28: - r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___158275).fields["_vx"] = (0); case 29: - { step = 33; continue; } + { step = 31; continue; } case 30: - s.tmp_2 = Math_sign__P144203_mk(s); - r0 = s.s___158275.fields["_vx"]; + r0 = (s.arg1).fields["dx"] = (0); + r0 = (s.s___34051).fields["_vx"] = (0); + case 31: + { step = 35; continue; } + case 32: + s.tmp_2 = Math_sign__P18688_mk(s); + r0 = s.s___34051.fields["_vx"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_2.arg0 = r0; - s.pc = 93; return s.tmp_2; - case 93: + s.callLocIdx = 659; s.pc = 100; return s.tmp_2; + case 100: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P144203_mk(s); + s.tmp_6 = Math_sign__P18688_mk(s); r0 = s.arg1.fields["cachedVx"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_6.arg0 = r0; - s.pc = 94; return s.tmp_6; - case 94: + s.callLocIdx = 661; s.pc = 101; return s.tmp_6; + case 101: r0 = s.retval; s.tmp_5 = r0; r0 = (s.tmp_1 === s.tmp_5); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 31; continue; } + if (!r0) { step = 33; continue; } r0 = (s.arg1).fields["dx"] = (0); - case 31: - case 32: case 33: case 34: - { step = 38; continue; } case 35: - r0 = pxsim_Array__length(s.overlappedTiles___158340); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 36; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P145037_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___158275; - s.tmp_1.arg2 = s.overlappedTiles___158340; - s.pc = 95; return s.tmp_1; - case 95: - r0 = s.retval; case 36: case 37: case 38: case 39: case 40: - r0 = (s.yDiff___158309 !== 0); + r0 = (s.yDiff___34091 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 75; continue; } - r0 = (s.yDiff___158309 > 0); - s.down___158519 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___158519); + if (!r0) { step = 73; continue; } + r0 = (s.yDiff___34091 > 0); + s.down___34292 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___34292); if (!r0) { step = 41; continue; } - s.tmp_1 = game_Hitbox_bottom__P144873_mk(s); - s.tmp_1.arg0 = s.hbox___158292; - s.pc = 96; return s.tmp_1; - case 96: + s.tmp_1 = game_Hitbox_bottom__P20533_mk(s); + s.tmp_1.arg0 = s.hbox___34074; + s.callLocIdx = 662; s.pc = 102; return s.tmp_1; + case 102: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 256); { step = 42; continue; } case 41: - s.tmp_3 = game_Hitbox_top__P144871_mk(s); - s.tmp_3.arg0 = s.hbox___158292; - s.pc = 97; return s.tmp_3; - case 97: + s.tmp_3 = game_Hitbox_top__P20531_mk(s); + s.tmp_3.arg0 = s.hbox___34074; + s.callLocIdx = 664; s.pc = 103; return s.tmp_3; + case 103: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_2 - 256); @@ -37161,27 +37744,27 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___158295 + 8); + r0 = (s.tileScale___34077 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___158523 = (r0); + s.y0___34296 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___158538 = (r0); + s.collidedTiles___34311 = (r0); r0 = pxsim_Array__mk(); - s.overlappedTiles___158540 = (r0); - s.tmp_0 = game_Hitbox_left__P144870_mk(s); - s.tmp_0.arg0 = s.hbox___158292; - s.pc = 98; return s.tmp_0; - case 98: + s.overlappedTiles___34313 = (r0); + s.tmp_0 = game_Hitbox_left__P20530_mk(s); + s.tmp_0.arg0 = s.hbox___34074; + s.callLocIdx = 668; s.pc = 104; return s.tmp_0; + case 104: r0 = s.retval; - s.x___158542 = (r0); + s.x___34315 = (r0); case 43: - s.tmp_1 = r0 = s.x___158542; - s.tmp_3 = r0 = s.tileSize___158298; - s.tmp_5 = game_Hitbox_right__P144872_mk(s); - s.tmp_5.arg0 = s.hbox___158292; - s.pc = 99; return s.tmp_5; - case 99: + s.tmp_1 = r0 = s.x___34315; + s.tmp_3 = r0 = s.tileSize___34080; + s.tmp_5 = game_Hitbox_right__P20532_mk(s); + s.tmp_5.arg0 = s.hbox___34074; + s.callLocIdx = 669; s.pc = 105; return s.tmp_5; + case 105: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 << 8); @@ -37192,50 +37775,50 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 48; continue; } - s.tmp_9 = Fx_min__P144249_mk(s); - s.tmp_9.arg0 = s.x___158542; - s.tmp_10 = game_Hitbox_right__P144872_mk(s); - s.tmp_10.arg0 = s.hbox___158292; - s.pc = 101; return s.tmp_10; - case 101: + s.tmp_9 = Fx_min__P18725_mk(s); + s.tmp_9.arg0 = s.x___34315; + s.tmp_10 = game_Hitbox_right__P20532_mk(s); + s.tmp_10.arg0 = s.hbox___34074; + s.callLocIdx = 671; s.pc = 107; return s.tmp_10; + case 107: r0 = s.retval; s.tmp_9.arg1 = r0; - s.pc = 100; return s.tmp_9; - case 100: + s.callLocIdx = 672; s.pc = 106; return s.tmp_9; + case 106: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___158295 + 8); + r0 = (s.tileScale___34077 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___158552 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P145217_mk(s); + s.x0___34325 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P20900_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___158552; - s.tmp_1.arg2 = s.y0___158523; - s.pc = 102; return s.tmp_1; - case 102: + s.tmp_1.arg1 = s.x0___34325; + s.tmp_1.arg2 = s.y0___34296; + s.callLocIdx = 675; s.pc = 108; return s.tmp_1; + case 108: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 46; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P145218_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P20901_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___158552; - s.tmp_2.arg2 = s.y0___158523; - s.pc = 103; return s.tmp_2; - case 103: + s.tmp_2.arg1 = s.x0___34325; + s.tmp_2.arg2 = s.y0___34296; + s.callLocIdx = 676; s.pc = 109; return s.tmp_2; + case 109: r0 = s.retval; - s.obstacle___158566 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P158574); + s.obstacle___34339 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P34347); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___158566); - s.tmp_4 = helpers_arraySome__P144184_mk(s); - s.tmp_4.arg0 = s.collidedTiles___158538; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___34339); + s.tmp_4 = helpers_arraySome__P18669_mk(s); + s.tmp_4.arg0 = s.collidedTiles___34311; s.tmp_4.arg1 = s.tmp_0; - s.pc = 104; return s.tmp_4; - case 104: + s.callLocIdx = 677; s.pc = 110; return s.tmp_4; + case 110: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -37244,33 +37827,33 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 44; continue; } - r0 = pxsim_Array__push(s.collidedTiles___158538, s.obstacle___158566); + r0 = pxsim_Array__push(s.collidedTiles___34311, s.obstacle___34339); case 44: case 45: { step = 47; continue; } case 46: - s.tmp_0 = r0 = s.overlappedTiles___158540; - s.tmp_2 = tiles_TileMap_getTile__P145209_mk(s); + s.tmp_0 = r0 = s.overlappedTiles___34313; + s.tmp_2 = tiles_TileMap_getTile__P20893_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___158552; - s.tmp_2.arg2 = s.y0___158523; - s.pc = 105; return s.tmp_2; - case 105: + s.tmp_2.arg1 = s.x0___34325; + s.tmp_2.arg2 = s.y0___34296; + s.callLocIdx = 678; s.pc = 111; return s.tmp_2; + case 111: r0 = s.retval; s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); case 47: - r0 = (s.tileSize___158298 << 8); + r0 = (s.tileSize___34080 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___158542); - s.x___158542 = (r0); + r0 = (s.tmp_0 + s.x___34315); + s.x___34315 = (r0); { step = 43; continue; } case 48: - r0 = pxsim_Array__length(s.collidedTiles___158538); + r0 = pxsim_Array__length(s.collidedTiles___34311); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 71; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___158519); + r0 = pxsim_numops_toBoolDecr(s.down___34292); if (!r0) { step = 49; continue; } r0 = 3; { step = 50; continue; } @@ -37279,23 +37862,23 @@ switch (step) { case 50: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___158600 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___158519); + s.collisionDirection___34373 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___34292); if (!r0) { step = 51; continue; } - r0 = (s.y0___158523 << s.tileScale___158295); + r0 = (s.y0___34296 << s.tileScale___34077); 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___158292.fields["height"]; + r0 = s.hbox___34074.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 52; continue; } case 51: - r0 = (s.y0___158523 + 1); + r0 = (s.y0___34296 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___158295); + r0 = (s.tmp_5 << s.tileScale___34077); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -37303,51 +37886,52 @@ switch (step) { case 52: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___158275; - r0 = s.hbox___158292.fields["oy"]; + s.tmp_8 = r0 = s.s___34051; + r0 = s.hbox___34074.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___158628 = (undefined); - s.unnamed4600___U26 = (s.collidedTiles___158538); - s.unnamed4601___U27 = (0); + s.tile___34399 = (undefined); + s.unnamed240___U26 = (s.collidedTiles___34311); + s.unnamed241___U27 = (0); case 53: - s.tmp_0 = r0 = s.unnamed4601___U27; - r0 = pxsim_Array__length(s.unnamed4600___U26); + s.tmp_0 = r0 = s.unnamed241___U27; + r0 = pxsim_Array__length(s.unnamed240___U26); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 54; continue; } - r0 = pxsim_Array__getAt(s.unnamed4600___U26, s.unnamed4601___U27); - s.tile___158628 = (r0); - s.tmp_2 = Sprite_registerObstacle__P144932_mk(s); - s.tmp_2.arg0 = s.s___158275; - s.tmp_2.arg1 = s.collisionDirection___158600; - s.tmp_2.arg2 = s.tile___158628; - s.pc = 106; return s.tmp_2; - case 106: + r0 = pxsim_Array__getAt(s.unnamed240___U26, s.unnamed241___U27); + s.tile___34399 = (r0); + s.tmp_2 = Sprite_registerObstacle__P20649_mk(s); + s.tmp_2.arg0 = s.s___34051; + s.tmp_2.arg1 = s.collisionDirection___34373; + s.tmp_2.arg2 = s.tile___34399; + s.tmp_2.arg3 = s.arg2; + s.callLocIdx = 684; s.pc = 112; return s.tmp_2; + case 112: r0 = s.retval; - r0 = (s.unnamed4601___U27 + 1); - s.unnamed4601___U27 = (r0); + r0 = (s.unnamed241___U27 + 1); + s.unnamed241___U27 = (r0); { step = 53; continue; } case 54: - s.unnamed4600___U26 = (undefined); - r0 = s.s___158275.fields["flags"]; + s.unnamed240___U26 = (undefined); + r0 = s.s___34051.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__P144934_mk(s); - s.tmp_2.arg0 = s.s___158275; + s.tmp_2 = Sprite_destroy__P20651_mk(s); + s.tmp_2.arg0 = s.s___34051; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.pc = 107; return s.tmp_2; - case 107: + s.callLocIdx = 685; s.pc = 113; return s.tmp_2; + case 113: r0 = s.retval; { step = 70; continue; } case 55: - r0 = s.s___158275.fields["_vy"]; + r0 = s.s___34051.fields["_vy"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVy"]; s.tmp_2 = r0; @@ -37355,13 +37939,13 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 66; continue; } - r0 = s.s___158275.fields["flags"]; + r0 = s.s___34051.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___158519); + r0 = pxsim_numops_toBoolDecr(s.down___34292); s.tmp_6 = r0; r0 = pxsim_Boolean__bang(s.tmp_6); s.tmp_5 = r0; @@ -37370,10 +37954,10 @@ switch (step) { r0 = s.tmp_5; { step = 57; continue; } case 56: - s.tmp_8 = Sprite_vy__P144891_mk(s); - s.tmp_8.arg0 = s.s___158275; - s.pc = 108; return s.tmp_8; - case 108: + s.tmp_8 = Sprite_vy__P20595_mk(s); + s.tmp_8.arg0 = s.s___34051; + s.callLocIdx = 686; s.pc = 114; return s.tmp_8; + case 114: r0 = s.retval; s.tmp_7 = r0; r0 = (s.tmp_7 < 0); @@ -37385,16 +37969,16 @@ switch (step) { r0 = s.tmp_9; { step = 61; continue; } case 58: - s.tmp_10 = r0 = s.down___158519; + s.tmp_10 = r0 = s.down___34292; 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__P144891_mk(s); - s.tmp_12.arg0 = s.s___158275; - s.pc = 109; return s.tmp_12; - case 109: + s.tmp_12 = Sprite_vy__P20595_mk(s); + s.tmp_12.arg0 = s.s___34051; + s.callLocIdx = 687; s.pc = 115; return s.tmp_12; + case 115: r0 = s.retval; s.tmp_11 = r0; r0 = (s.tmp_11 > 0); @@ -37407,8 +37991,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___158275; - r0 = s.s___158275.fields["_vy"]; + s.tmp_15 = r0 = s.s___34051; + r0 = s.s___34051.fields["_vy"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -37430,30 +38014,30 @@ switch (step) { { step = 65; continue; } case 64: r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___158275).fields["_vy"] = (0); + r0 = (s.s___34051).fields["_vy"] = (0); case 65: { step = 69; continue; } case 66: - s.tmp_2 = Math_sign__P144203_mk(s); - r0 = s.s___158275.fields["_vy"]; + s.tmp_2 = Math_sign__P18688_mk(s); + r0 = s.s___34051.fields["_vy"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_2.arg0 = r0; - s.pc = 110; return s.tmp_2; - case 110: + s.callLocIdx = 692; s.pc = 116; return s.tmp_2; + case 116: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P144203_mk(s); + s.tmp_6 = Math_sign__P18688_mk(s); r0 = s.arg1.fields["cachedVy"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_6.arg0 = r0; - s.pc = 111; return s.tmp_6; - case 111: + s.callLocIdx = 694; s.pc = 117; return s.tmp_6; + case 117: r0 = s.retval; s.tmp_5 = r0; r0 = (s.tmp_1 === s.tmp_5); @@ -37465,35 +38049,154 @@ switch (step) { case 68: case 69: case 70: - { step = 74; continue; } case 71: - r0 = pxsim_Array__length(s.overlappedTiles___158540); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 72; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P145037_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___158275; - s.tmp_1.arg2 = s.overlappedTiles___158540; - s.pc = 112; return s.tmp_1; - case 112: - r0 = s.retval; case 72: case 73: case 74: + s.tmp_0 = game_Hitbox_left__P20530_mk(s); + s.tmp_0.arg0 = s.hbox___34074; + s.callLocIdx = 695; s.pc = 118; return s.tmp_0; + case 118: + r0 = s.retval; + s.x___34474 = (r0); case 75: + s.tmp_1 = r0 = s.x___34474; + s.tmp_3 = r0 = s.tileSize___34080; + s.tmp_5 = game_Hitbox_right__P20532_mk(s); + s.tmp_5.arg0 = s.hbox___34074; + s.callLocIdx = 696; s.pc = 119; return s.tmp_5; + case 119: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_6 = r0; + r0 = (s.tmp_6 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 80; continue; } + s.tmp_9 = Fx_min__P18725_mk(s); + s.tmp_9.arg0 = s.x___34474; + s.tmp_10 = game_Hitbox_right__P20532_mk(s); + s.tmp_10.arg0 = s.hbox___34074; + s.callLocIdx = 698; s.pc = 121; return s.tmp_10; + case 121: + r0 = s.retval; + s.tmp_9.arg1 = r0; + s.callLocIdx = 699; s.pc = 120; return s.tmp_9; + case 120: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_8 + 128); + s.tmp_7 = r0; + r0 = (s.tileScale___34077 + 8); + s.tmp_11 = r0; + r0 = (s.tmp_7 >> s.tmp_11); + s.x0___34484 = (r0); + s.tmp_0 = game_Hitbox_top__P20531_mk(s); + s.tmp_0.arg0 = s.hbox___34074; + s.callLocIdx = 702; s.pc = 122; return s.tmp_0; + case 122: + r0 = s.retval; + s.y___34494 = (r0); case 76: + s.tmp_1 = r0 = s.y___34494; + s.tmp_3 = r0 = s.tileSize___34080; + s.tmp_5 = game_Hitbox_bottom__P20533_mk(s); + s.tmp_5.arg0 = s.hbox___34074; + s.callLocIdx = 703; s.pc = 123; return s.tmp_5; + case 123: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_6 = r0; + r0 = (s.tmp_6 + s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 79; continue; } + s.tmp_9 = Fx_min__P18725_mk(s); + s.tmp_9.arg0 = s.y___34494; + s.tmp_10 = game_Hitbox_bottom__P20533_mk(s); + s.tmp_10.arg0 = s.hbox___34074; + s.callLocIdx = 705; s.pc = 125; return s.tmp_10; + case 125: + r0 = s.retval; + s.tmp_9.arg1 = r0; + s.callLocIdx = 706; s.pc = 124; return s.tmp_9; + case 124: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_8 + 128); + s.tmp_7 = r0; + r0 = (s.tileScale___34077 + 8); + s.tmp_11 = r0; + r0 = (s.tmp_7 >> s.tmp_11); + s.y0___34504 = (r0); + s.tmp_3 = tiles_TileMap_isObstacle__P20900_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.x0___34484; + s.tmp_3.arg2 = s.y0___34504; + s.callLocIdx = 709; s.pc = 126; return s.tmp_3; + case 126: + 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 = 77; continue; } + s.tmp_4 = r0 = s.overlappedTiles___34098; + s.tmp_6 = tiles_TileMap_getTile__P20893_mk(s); + s.tmp_6.arg0 = s.arg2; + s.tmp_6.arg1 = s.x0___34484; + s.tmp_6.arg2 = s.y0___34504; + s.callLocIdx = 710; s.pc = 127; return s.tmp_6; + case 127: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_4, s.tmp_5); case 77: + case 78: + r0 = (s.tileSize___34080 << 8); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.y___34494); + s.y___34494 = (r0); + { step = 76; continue; } + case 79: + r0 = (s.tileSize___34080 << 8); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.x___34474); + s.x___34474 = (r0); + { step = 75; continue; } + case 80: + r0 = pxsim_Array__length(s.overlappedTiles___34098); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 81; continue; } + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P22316_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.s___34051; + s.tmp_1.arg2 = s.overlappedTiles___34098; + s.callLocIdx = 713; 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__P145036.info = {"start":11308,"length":7534,"line":349,"column":4,"endLine":544,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} +ArcadePhysicsEngine_tilemapCollisions__P22315.info = {"start":11859,"length":8619,"line":370,"column":4,"endLine":606,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} -function ArcadePhysicsEngine_tilemapCollisions__P145036_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P22315_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P145036, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P22315, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37513,34 +38216,38 @@ function ArcadePhysicsEngine_tilemapCollisions__P145036_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - s___158275: undefined, - hbox___158292: undefined, - tileScale___158295: undefined, - tileSize___158298: undefined, - xDiff___158302: undefined, - yDiff___158309: undefined, - right___158319: undefined, - x0___158323: undefined, - collidedTiles___158338: undefined, - overlappedTiles___158340: undefined, - y___158342: undefined, - y0___158356: undefined, - obstacle___158372: undefined, - collisionDirection___158407: undefined, - tile___158435: undefined, - unnamed4598___U15: undefined, - unnamed4599___U16: undefined, - down___158519: undefined, - y0___158523: undefined, - collidedTiles___158538: undefined, - overlappedTiles___158540: undefined, - x___158542: undefined, - x0___158552: undefined, - obstacle___158566: undefined, - collisionDirection___158600: undefined, - tile___158628: undefined, - unnamed4600___U26: undefined, - unnamed4601___U27: undefined, + s___34051: undefined, + hbox___34074: undefined, + tileScale___34077: undefined, + tileSize___34080: undefined, + xDiff___34084: undefined, + yDiff___34091: undefined, + overlappedTiles___34098: undefined, + right___34103: undefined, + x0___34107: undefined, + collidedTiles___34122: undefined, + y___34124: undefined, + y0___34138: undefined, + obstacle___34154: undefined, + collisionDirection___34188: undefined, + tile___34214: undefined, + unnamed238___U15: undefined, + unnamed239___U16: undefined, + down___34292: undefined, + y0___34296: undefined, + collidedTiles___34311: undefined, + overlappedTiles___34313: undefined, + x___34315: undefined, + x0___34325: undefined, + obstacle___34339: undefined, + collisionDirection___34373: undefined, + tile___34399: undefined, + unnamed240___U26: undefined, + unnamed241___U27: undefined, + x___34474: undefined, + x0___34484: undefined, + y___34494: undefined, + y0___34504: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37550,7 +38257,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P145036_mk(s) { -function inline__P158380(s) { +function inline__P34162(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37572,12 +38279,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158380.info = {"start":13390,"length":39,"line":411,"column":44,"endLine":411,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +inline__P34162.info = {"start":13980,"length":39,"line":434,"column":44,"endLine":434,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function inline__P158380_mk(s) { +function inline__P34162_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158380, depth: s.depth + 1, + parent: s, fn: inline__P34162, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37588,7 +38295,7 @@ function inline__P158380_mk(s) { -function inline__P158574(s) { +function inline__P34347(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37610,12 +38317,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158574.info = {"start":16728,"length":39,"line":495,"column":44,"endLine":495,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +inline__P34347.info = {"start":17215,"length":39,"line":516,"column":44,"endLine":516,"endColumn":83,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function inline__P158574_mk(s) { +function inline__P34347_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158574, depth: s.depth + 1, + parent: s, fn: inline__P34347, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37626,194 +38333,7 @@ function inline__P158574_mk(s) { -function tiles_TileMap_getObstacle__P145218(s) { -let r0 = s.r0, 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___158825 = undefined; - s.tile___158837 = 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__C145197_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P145195_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.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__P145189_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.pc = 4; return s.tmp_2; - case 4: - r0 = s.retval; - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - s.index___158825 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P145192_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___158825; - s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tile___158837 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C144985_VT); - s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P144992_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___158837; - s.tmp_2 = r0 = s.arg2; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 << s.tmp_3); - s.tmp_1.arg2 = r0; - s.tmp_4 = r0 = s.arg1; - r0 = s.arg0.fields["_scale"]; - s.tmp_5 = r0; - r0 = (s.tmp_4 << s.tmp_5); - s.tmp_1.arg3 = r0; - r0 = s.arg0.fields["_layer"]; - s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___158825; - 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__P145218.info = {"start":11343,"length":410,"line":375,"column":8,"endLine":385,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} - -function tiles_TileMap_getObstacle__P145218_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_getObstacle__P145218, depth: s.depth + 1, - pc: 0, retval: undefined, 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___158825: undefined, - tile___158837: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function tiles_TileMap_layer__P145205(s) { -let r0 = s.r0, 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__C145197_VT)) failedCast(r0); - r0 = s.arg0.fields["_layer"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMap_layer__P145205.info = {"start":6709,"length":63,"line":241,"column":8,"endLine":243,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} -tiles_TileMap_layer__P145205.isGetter = true; - -function tiles_TileMap_layer__P145205_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMap_layer__P145205, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function sprites_StaticObstacle_constructor__P144992(s) { -let r0 = s.r0, 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__C144985_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__P144992.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__P144992_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_StaticObstacle_constructor__P144992, 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 ArcadePhysicsEngine_tilemapOverlaps__P145037(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P22316(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37823,10 +38343,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tile___158711 = undefined; - s.unnamed4602___U1 = undefined; - s.unnamed4603___U2 = undefined; - s.tileOverlapHandlers___158713 = undefined; + s.alreadyHandled___34543 = undefined; + s.tile___34546 = undefined; + s.unnamed242___U2 = undefined; + s.unnamed243___U3 = undefined; + s.tileOverlapHandlers___34567 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -37834,72 +38355,93 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - s.tile___158711 = (undefined); - s.unnamed4602___U1 = (s.arg2); - s.unnamed4603___U2 = (0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); + s.alreadyHandled___34543 = (r0); + s.tile___34546 = (undefined); + s.unnamed242___U2 = (s.arg2); + s.unnamed243___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed4603___U2; - r0 = pxsim_Array__length(s.unnamed4602___U1); + s.tmp_0 = r0 = s.unnamed243___U3; + r0 = pxsim_Array__length(s.unnamed242___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed4602___U1, s.unnamed4603___U2); - s.tile___158711 = (r0); - s.tmp_2 = game_currentScene__P145074_mk(s); - s.pc = 5; return s.tmp_2; - case 5: + if (!r0) { step = 7; continue; } + r0 = pxsim_Array__getAt(s.unnamed242___U2, s.unnamed243___U3); + s.tile___34546 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P34550); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___34546); + s.tmp_4 = helpers_arraySome__P18669_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___34543; + s.tmp_4.arg1 = s.tmp_2; + s.callLocIdx = 718; s.pc = 8; return s.tmp_4; + case 8: r0 = s.retval; - r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___158713 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___158713); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 2; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P158721); + { step = 6; continue; } + case 2: + case 3: + r0 = pxsim_Array__push(s.alreadyHandled___34543, s.tile___34546); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 719; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + r0 = r0.fields["tileOverlapHandlers"]; + s.tileOverlapHandlers___34567 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___34567); + if (!r0) { step = 4; continue; } + r0 = pxsim_pxtcore_mkAction(2, inline__P34575); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___158711); - r0 = pxsim_pxtcore_mkAction(2, inline__P158737); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___34546); + r0 = pxsim_pxtcore_mkAction(2, inline__P34591); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___158711); - s.tmp_2 = helpers_arrayForEach__P144186_mk(s); - s.tmp_3 = helpers_arrayFilter__P144187_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___158713; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___34546); + s.tmp_2 = helpers_arrayForEach__P18671_mk(s); + s.tmp_3 = helpers_arrayFilter__P18672_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___34567; s.tmp_3.arg1 = s.tmp_0; - s.pc = 7; return s.tmp_3; - case 7: + s.callLocIdx = 722; s.pc = 11; return s.tmp_3; + case 11: r0 = s.retval; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.pc = 6; return s.tmp_2; - case 6: + s.callLocIdx = 724; s.pc = 10; return s.tmp_2; + case 10: r0 = s.retval; - case 2: - case 3: - r0 = (s.unnamed4603___U2 + 1); - s.unnamed4603___U2 = (r0); - { step = 1; continue; } case 4: - s.unnamed4602___U1 = (undefined); + case 5: + case 6: + r0 = (s.unnamed243___U3 + 1); + s.unnamed243___U3 = (r0); + { step = 1; continue; } + case 7: + s.unnamed242___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P145037.info = {"start":19119,"length":479,"line":552,"column":4,"endLine":561,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} +ArcadePhysicsEngine_tilemapOverlaps__P22316.info = {"start":20755,"length":699,"line":614,"column":4,"endLine":630,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} -function ArcadePhysicsEngine_tilemapOverlaps__P145037_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P22316_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P145037, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P22316, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tile___158711: undefined, - unnamed4602___U1: undefined, - unnamed4603___U2: undefined, - tileOverlapHandlers___158713: undefined, + tmp_4: undefined, + alreadyHandled___34543: undefined, + tile___34546: undefined, + unnamed242___U2: undefined, + unnamed243___U3: undefined, + tileOverlapHandlers___34567: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37909,7 +38451,64 @@ function ArcadePhysicsEngine_tilemapOverlaps__P145037_mk(s) { -function inline__P158721(s) { +function inline__P34550(s) { +let r0 = s.r0, 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["_col"]; + s.tmp_1 = r0; + r0 = s.caps[0].fields["_col"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 === s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["_row"]; + s.tmp_3 = r0; + r0 = s.caps[0].fields["_row"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 === s.tmp_4); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; + return leave(s, r0) + default: oops() +} } } +inline__P34550.info = {"start":20968,"length":45,"line":618,"column":36,"endLine":618,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} + +function inline__P34550_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: inline__P34550, depth: s.depth + 1, + pc: 0, retval: undefined, 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 inline__P34575(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37936,9 +38535,9 @@ switch (step) { case 1: r0 = s.arg0.fields["tileKind"]; s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P145228_mk(s); + s.tmp_5 = tiles_getTileImage__P20909_mk(s); s.tmp_5.arg0 = s.caps[1]; - s.pc = 3; return s.tmp_5; + s.callLocIdx = 721; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -37950,12 +38549,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158721.info = {"start":19426,"length":81,"line":557,"column":28,"endLine":557,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P34575.info = {"start":21282,"length":81,"line":626,"column":28,"endLine":626,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P158721_mk(s) { +function inline__P34575_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158721, depth: s.depth + 1, + parent: s, fn: inline__P34575, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37971,7 +38570,7 @@ function inline__P158721_mk(s) { -function inline__P158737(s) { +function inline__P34591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37991,12 +38590,12 @@ switch (step) { s.tmp_0.arg2 = s.caps[1]; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 3); - s.pc = 1; return s.tmp_0; + s.callLocIdx = 723; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 1; return s.tmp_0;; } - else { s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 723; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 723; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 723; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -38004,12 +38603,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158737.info = {"start":19538,"length":28,"line":558,"column":29,"endLine":558,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P34591.info = {"start":21394,"length":28,"line":627,"column":29,"endLine":627,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P158737_mk(s) { +function inline__P34591_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158737, depth: s.depth + 1, + parent: s, fn: inline__P34591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38019,7 +38618,7 @@ function inline__P158737_mk(s) { -function tiles_getTileImage__P145228(s) { +function tiles_getTileImage__P20909(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38029,16 +38628,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___158745 = undefined; + s.scene___34599 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 6; return s.tmp_0; + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 854; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___158745 = (r0); + s.scene___34599 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -38048,7 +38647,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___158745.fields["tileMap"]; + r0 = s.scene___34599.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -38058,32 +38657,32 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex158755); + r0 = pxsim.image.ofBuffer(_hex34609); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getTileImage__P145220_mk(s); - r0 = s.scene___158745.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTileImage__P20903_mk(s); + r0 = s.scene___34599.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P145170_mk(s); + s.tmp_6 = tiles_Location_tileSet__P20859_mk(s); s.tmp_6.arg0 = s.arg0; - s.pc = 8; return s.tmp_6; + s.callLocIdx = 855; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5.arg1 = r0; - s.pc = 7; return s.tmp_5; + s.callLocIdx = 856; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; case 5: return leave(s, r0) default: oops() } } } -tiles_getTileImage__P145228.info = {"start":15244,"length":207,"line":487,"column":4,"endLine":491,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} +tiles_getTileImage__P20909.info = {"start":16636,"length":207,"line":525,"column":4,"endLine":529,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} -function tiles_getTileImage__P145228_mk(s) { +function tiles_getTileImage__P20909_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P145228, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P20909, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38092,16 +38691,16 @@ function tiles_getTileImage__P145228_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___158745: undefined, + scene___34599: undefined, arg0: undefined, } } -const _hex158755 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex34609 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_TileMap_getTileImage__P145220(s) { +function tiles_Location_tileSet__P20859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38111,40 +38710,145 @@ 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_Location__C20853_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_getTileIndex__P20894_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; + s.callLocIdx = 776; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_Location_tileSet__P20859.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__P20859.isGetter = true; + +function tiles_Location_tileSet__P20859_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_tileSet__P20859, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function tiles_TileMap_getObstacle__P20901(s) { +let r0 = s.r0, 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___34702 = undefined; + s.tile___34714 = 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__C145197_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P145192_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P20880_mk(s); r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.pc = 1; return s.tmp_0; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 828; 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__P20874_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 = 829; 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___34702 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P20877_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___34702; + s.callLocIdx = 830; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tile___34714 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C20710_VT); + s.tmp_0 = r0; + s.tmp_1 = sprites_StaticObstacle_constructor__P20716_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.tile___34714; + s.tmp_2 = r0 = s.arg2; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 << s.tmp_3); + s.tmp_1.arg2 = r0; + s.tmp_4 = r0 = s.arg1; + r0 = s.arg0.fields["_scale"]; + s.tmp_5 = r0; + r0 = (s.tmp_4 << s.tmp_5); + s.tmp_1.arg3 = r0; + r0 = s.arg0.fields["_layer"]; + s.tmp_1.arg4 = r0; + s.tmp_1.arg5 = s.index___34702; + s.callLocIdx = 834; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P145220.info = {"start":12400,"length":96,"line":406,"column":8,"endLine":408,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMap_getObstacle__P20901.info = {"start":12642,"length":410,"line":411,"column":8,"endLine":421,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} -function tiles_TileMap_getTileImage__P145220_mk(s) { +function tiles_TileMap_getObstacle__P20901_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P145220, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getObstacle__P20901, depth: s.depth + 1, pc: 0, retval: undefined, 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___34702: undefined, + tile___34714: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function tiles_Location_tileSet__P145170(s) { +function tiles_TileMap_layer__P20889(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38159,29 +38863,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C145167_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_getTileIndex__P145210_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; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, tiles_TileMap__C20881_VT)) failedCast(r0); + r0 = s.arg0.fields["_layer"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P145170.info = {"start":859,"length":101,"line":35,"column":8,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]} -tiles_Location_tileSet__P145170.isGetter = true; +tiles_TileMap_layer__P20889.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__P20889.isGetter = true; -function tiles_Location_tileSet__P145170_mk(s) { +function tiles_TileMap_layer__P20889_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P145170, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_layer__P20889, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -38189,7 +38883,7 @@ function tiles_Location_tileSet__P145170_mk(s) { -function tiles_TileMap_getTileIndex__P145210(s) { +function sprites_StaticObstacle_constructor__P20716(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38203,39 +38897,42 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C145197_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P145189_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, sprites_StaticObstacle__C20710_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() } } } -tiles_TileMap_getTileIndex__P145210.info = {"start":7192,"length":105,"line":263,"column":8,"endLine":265,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} +sprites_StaticObstacle_constructor__P20716.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 tiles_TileMap_getTileIndex__P145210_mk(s) { +function sprites_StaticObstacle_constructor__P20716_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P145210, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_constructor__P20716, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function Sprite_registerObstacle__P144932(s) { +function Sprite_registerObstacle__P20649(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38245,22 +38942,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___158782 = undefined; - s.wallCollisionHandlers___158790 = undefined; + s.collisionHandlers___34632 = undefined; + s.wallCollisionHandlers___34639 = undefined; + s.wallHandlersToRun___34664 = undefined; + s.asTileLocation___34677 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_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__P145074_mk(s); - s.pc = 5; return s.tmp_1; - case 5: + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 442; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; r0 = r0.fields["collisionHandlers"]; s.tmp_0 = r0; @@ -38272,90 +38972,160 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["tileIndex"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["tileIndex"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.pc = 6; return s.tmp_3; } + else { s.callLocIdx = 443; s.pc = 10; return s.tmp_3; } } - case 6: + case 10: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - s.collisionHandlers___158782 = (r0); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 7; return s.tmp_0; - case 7: + s.collisionHandlers___34632 = (r0); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 444; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___158790 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___158782); + s.wallCollisionHandlers___34639 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___34632); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P158798); + r0 = pxsim_pxtcore_mkAction(1, inline__P34647); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P158804); + r0 = pxsim_pxtcore_mkAction(1, inline__P34653); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P144186_mk(s); - s.tmp_3 = helpers_arrayFilter__P144187_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___158782; + s.tmp_2 = helpers_arrayForEach__P18671_mk(s); + s.tmp_3 = helpers_arrayFilter__P18672_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___34632; s.tmp_3.arg1 = s.tmp_0; - s.pc = 9; return s.tmp_3; - case 9: + s.callLocIdx = 446; s.pc = 13; return s.tmp_3; + case 13: r0 = s.retval; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.pc = 8; return s.tmp_2; - case 8: + s.callLocIdx = 448; s.pc = 12; return s.tmp_2; + case 12: r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___158790); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___34639); + if (!r0) { step = 7; continue; } + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P158812); + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + s.tmp_1 = game_currentScene__P21096_mk(s); + s.callLocIdx = 449; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.arg3 = (s.tmp_2); + r0 = pxsim_pxtcore_mkAction(1, inline__P34666); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P158818); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P144186_mk(s); - s.tmp_3 = helpers_arrayFilter__P144187_mk(s); - s.tmp_3.arg0 = s.wallCollisionHandlers___158790; - s.tmp_3.arg1 = s.tmp_0; - s.pc = 11; return s.tmp_3; - case 11: + s.tmp_1 = helpers_arrayFilter__P18672_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___34639; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 451; s.pc = 15; return s.tmp_1; + case 15: r0 = s.retval; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.pc = 10; return s.tmp_2; - case 10: + s.wallHandlersToRun___34664 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___34664); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_1 = tiles_TileMap_getTile__P20893_mk(s); + s.tmp_1.arg0 = s.arg3; + s.tmp_3 = if_left_1_mk(s); + s.tmp_3.arg0 = s.arg2; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "left"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["left"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["left"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 452; s.pc = 17; return s.tmp_3; } + } + case 17: r0 = s.retval; - case 3: - case 4: + s.tmp_2 = r0; + r0 = s.arg3.fields["_scale"]; + s.tmp_4 = r0; + r0 = (s.tmp_2 >> s.tmp_4); + s.tmp_1.arg1 = r0; + s.tmp_6 = if_top_1_mk(s); + s.tmp_6.arg0 = s.arg2; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "top"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["top"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["top"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 454; s.pc = 18; return s.tmp_6; } + } + case 18: + r0 = s.retval; + s.tmp_5 = r0; + r0 = s.arg3.fields["_scale"]; + s.tmp_7 = r0; + r0 = (s.tmp_5 >> s.tmp_7); + s.tmp_1.arg2 = r0; + s.callLocIdx = 456; s.pc = 16; return s.tmp_1; + case 16: + r0 = s.retval; + s.asTileLocation___34677 = (r0); + r0 = pxsim_pxtcore_mkAction(2, inline__P34693); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___34677); + s.tmp_1 = helpers_arrayForEach__P18671_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___34664; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 458; s.pc = 19; return s.tmp_1; + case 19: + r0 = s.retval; + case 5: + case 6: + case 7: + case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P144932.info = {"start":26690,"length":650,"line":808,"column":4,"endLine":823,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other"]} +Sprite_registerObstacle__P20649.info = {"start":26932,"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__P144932_mk(s) { +function Sprite_registerObstacle__P20649_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P144932, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P20649, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - collisionHandlers___158782: undefined, - wallCollisionHandlers___158790: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + collisionHandlers___34632: undefined, + wallCollisionHandlers___34639: undefined, + wallHandlersToRun___34664: undefined, + asTileLocation___34677: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function inline__P158798(s) { +function inline__P34647(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38377,12 +39147,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158798.info = {"start":27068,"length":26,"line":815,"column":24,"endLine":815,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P34647.info = {"start":27330,"length":26,"line":824,"column":24,"endLine":824,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P158798_mk(s) { +function inline__P34647_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158798, depth: s.depth + 1, + parent: s, fn: inline__P34647, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38393,7 +39163,7 @@ function inline__P158798_mk(s) { -function inline__P158804(s) { +function inline__P34653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38412,12 +39182,12 @@ switch (step) { s.tmp_0.arg1 = s.caps[0]; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.pc = 1; return s.tmp_0; + s.callLocIdx = 447; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 1; return s.tmp_0;; } - else { s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 447; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 447; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 447; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -38425,12 +39195,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158804.info = {"start":27121,"length":20,"line":816,"column":25,"endLine":816,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P34653.info = {"start":27383,"length":20,"line":825,"column":25,"endLine":825,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P158804_mk(s) { +function inline__P34653_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158804, depth: s.depth + 1, + parent: s, fn: inline__P34653, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38440,7 +39210,7 @@ function inline__P158804_mk(s) { -function inline__P158812(s) { +function inline__P34666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38454,7 +39224,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; + r0 = s.arg0.fields["spriteKind"]; s.tmp_0 = r0; r0 = s.caps[0].fields["_kind"]; s.tmp_1 = r0; @@ -38462,12 +39232,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158812.info = {"start":27249,"length":26,"line":820,"column":24,"endLine":820,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P34666.info = {"start":27589,"length":32,"line":830,"column":24,"endLine":830,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P158812_mk(s) { +function inline__P34666_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158812, depth: s.depth + 1, + parent: s, fn: inline__P34666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38478,7 +39248,7 @@ function inline__P158812_mk(s) { -function inline__P158818(s) { +function inline__P34693(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38492,17 +39262,18 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_handler_2_mk(s); + s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.caps[0]; + s.tmp_0.arg2 = s.caps[1]; if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.pc = 1; return s.tmp_0; + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 3); + s.callLocIdx = 457; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 1; return s.tmp_0;; } - else { s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 457; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 457; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 457; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -38510,12 +39281,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158818.info = {"start":27302,"length":20,"line":821,"column":25,"endLine":821,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +inline__P34693.info = {"start":27829,"length":36,"line":834,"column":29,"endLine":834,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P158818_mk(s) { +function inline__P34693_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158818, depth: s.depth + 1, + parent: s, fn: inline__P34693, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38525,7 +39296,7 @@ function inline__P158818_mk(s) { -function Fx_min__P144249(s) { +function Fx_min__P18725(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38556,12 +39327,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_min__P144249.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__P18725.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__P144249_mk(s) { +function Fx_min__P18725_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P144249, depth: s.depth + 1, + parent: s, fn: Fx_min__P18725, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38572,7 +39343,7 @@ function Fx_min__P144249_mk(s) { -function helpers_arraySome__P144184(s) { +function helpers_arraySome__P18669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38582,28 +39353,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___155693 = undefined; - s.i___155696 = undefined; + s.len___31371 = undefined; + s.i___31374 = 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___155693 = (r0); - s.i___155696 = (0); + s.len___31371 = (r0); + s.i___31374 = (0); case 1: - r0 = (s.i___155696 < s.len___155693); + r0 = (s.i___31374 < s.len___31371); 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___155696); + r0 = pxsim_Array__getAt(s.arg0, s.i___31374); s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___155696; + s.tmp_2.arg1 = s.i___31374; setupLambda(s.tmp_2, s.tmp_2.argL); - s.pc = 6; return s.tmp_2; + s.callLocIdx = 4; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; @@ -38613,8 +39384,8 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___155696 + 1); - s.i___155696 = (r0); + r0 = (s.i___31374 + 1); + s.i___31374 = (r0); { step = 1; continue; } case 4: r0 = false; @@ -38622,18 +39393,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySome__P144184.info = {"start":6833,"length":296,"line":238,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySome","argumentNames":["arr","callbackfn"]} +helpers_arraySome__P18669.info = {"start":6833,"length":296,"line":238,"column":4,"endLine":244,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySome","argumentNames":["arr","callbackfn"]} -function helpers_arraySome__P144184_mk(s) { +function helpers_arraySome__P18669_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P144184, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P18669, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___155693: undefined, - i___155696: undefined, + len___31371: undefined, + i___31374: undefined, arg0: undefined, arg1: undefined, } } @@ -38642,7 +39413,7 @@ function helpers_arraySome__P144184_mk(s) { -function MovingSprite_constructor__P145020(s) { +function MovingSprite_constructor__P20736(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38664,7 +39435,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C145019_VT)) failedCast(r0); + if (!checkSubtype(r0, MovingSprite__C20735_VT)) failedCast(r0); r0 = (s.arg0).fields["sprite"] = (s.arg1); r0 = (s.arg0).fields["cachedVx"] = (s.arg2); r0 = (s.arg0).fields["cachedVy"] = (s.arg3); @@ -38676,12 +39447,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -MovingSprite_constructor__P145020.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__P20736.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__P145020_mk(s) { +function MovingSprite_constructor__P20736_mk(s) { checkStack(s.depth); return { - parent: s, fn: MovingSprite_constructor__P145020, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P20736, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -38697,7 +39468,7 @@ function MovingSprite_constructor__P145020_mk(s) { -function ArcadePhysicsEngine_move__P145033(s) { +function ArcadePhysicsEngine_move__P20749(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38707,132 +39478,131 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtf___158900 = undefined; - s.dtSec___158907 = undefined; - s.dt2___158911 = undefined; - s.scene___158915 = undefined; - s.tileMap___158918 = undefined; - s.movingSprites___158921 = undefined; - s.MAX_STEP_COUNT___158953 = undefined; - s.overlapHandlers___158964 = undefined; - s.selected___158971 = undefined; - s.buffers___158972 = undefined; - s.count___158976 = undefined; - s.currMovers___158986 = undefined; - s.remainingMovers___158993 = undefined; - s.ms___158998 = undefined; - s.unnamed4592___U14 = undefined; - s.unnamed4593___U15 = undefined; - s.s___159000 = undefined; - s.stepX___159093 = undefined; - s.stepY___159107 = undefined; + s.dtf___34773 = undefined; + s.dt2___34780 = undefined; + s.scene___34784 = undefined; + s.tileMap___34787 = undefined; + s.movingSprites___34790 = undefined; + s.MAX_STEP_COUNT___34821 = undefined; + s.overlapHandlers___34833 = undefined; + s.selected___34840 = undefined; + s.buffers___34841 = undefined; + s.count___34845 = undefined; + s.currMovers___34855 = undefined; + s.remainingMovers___34862 = undefined; + s.ms___34867 = undefined; + s.unnamed232___U13 = undefined; + s.unnamed233___U14 = undefined; + s.s___34869 = undefined; + s.stepX___34962 = undefined; + s.stepY___34976 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - s.tmp_0 = Fx_min__P144249_mk(s); - s.tmp_0.arg0 = globals.MAX_TIME_STEP___145004; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + s.tmp_0 = Fx_min__P18725_mk(s); + s.tmp_0.arg0 = globals.MAX_TIME_STEP___20732; r0 = (s.arg1 * 1000); s.tmp_1 = r0; r0 = (s.tmp_1 * 256); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_0.arg1 = r0; - s.pc = 47; return s.tmp_0; + s.callLocIdx = 543; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - s.dtf___158900 = (r0); - r0 = pxsim.Math_.idiv(s.dtf___158900, 1000); - s.dtSec___158907 = (r0); - r0 = pxsim.Math_.idiv(s.dtf___158900, 2); - s.dt2___158911 = (r0); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 48; return s.tmp_0; + s.dtf___34773 = (r0); + r0 = pxsim.Math_.idiv(s.dtf___34773, 2); + s.dt2___34780 = (r0); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 545; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - s.scene___158915 = (r0); - r0 = s.scene___158915.fields["tileMap"]; - s.tileMap___158918 = (r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P158923); + s.scene___34784 = (r0); + r0 = s.scene___34784.fields["tileMap"]; + s.tileMap___34787 = (r0); + r0 = pxsim_pxtcore_mkAction(3, inline__P34792); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtSec___158907); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___158911); - s.tmp_1 = helpers_arrayMap__P144183_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtf___34773); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___34780); + s.tmp_1 = helpers_arrayMap__P18668_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.pc = 49; return s.tmp_1; + s.callLocIdx = 547; s.pc = 49; return s.tmp_1; case 49: r0 = s.retval; - s.movingSprites___158921 = (r0); - s.tmp_0 = helpers_arrayForEach__P144186_mk(s); + s.movingSprites___34790 = (r0); + s.tmp_0 = helpers_arrayForEach__P18671_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P158936; - s.pc = 50; return s.tmp_0; + s.tmp_0.arg1 = inline__P34804; + s.callLocIdx = 551; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P144945_mk(s); + s.tmp_0 = sprites_SpriteMap_clear__P20664_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.pc = 51; return s.tmp_0; + s.callLocIdx = 552; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P144944_mk(s); + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P20663_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; s.tmp_0.arg1 = r0; - s.pc = 52; return s.tmp_0; + s.callLocIdx = 553; s.pc = 52; return s.tmp_0; case 52: r0 = s.retval; r0 = s.arg0.fields["maxVelocity"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["minSingleStep"]; s.tmp_3 = r0; - r0 = (s.tmp_2 << 8); + r0 = s.arg0.fields["minSingleStep"]; 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___158907); + r0 = (s.tmp_3 << 8); s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); + r0 = pxsim.Math_.idiv(s.tmp_5, s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.dtf___34773); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); - s.MAX_STEP_COUNT___158953 = (r0); - s.tmp_0 = helpers_arraySlice__P144191_mk(s); - r0 = s.scene___158915.fields["overlapHandlers"]; + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 1000); + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_7 = r0; + r0 = (s.tmp_7 >> 8); + s.MAX_STEP_COUNT___34821 = (r0); + s.tmp_0 = helpers_arraySlice__P18676_mk(s); + r0 = s.scene___34784.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.pc = 53; return s.tmp_0; + s.callLocIdx = 558; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.overlapHandlers___158964 = (r0); - s.selected___158971 = (0); + s.overlapHandlers___34833 = (r0); + s.selected___34840 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___158921); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___34790); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___158972 = (s.tmp_0); - s.count___158976 = (0); + s.buffers___34841 = (s.tmp_0); + s.count___34845 = (0); case 1: - r0 = (s.count___158976 < s.MAX_STEP_COUNT___158953); + r0 = (s.count___34845 < s.MAX_STEP_COUNT___34821); 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___158972, s.selected___158971); + r0 = pxsim_Array__getAt(s.buffers___34841, s.selected___34840); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -38842,43 +39612,43 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 46; continue; } - r0 = pxsim_Array__getAt(s.buffers___158972, s.selected___158971); - s.currMovers___158986 = (r0); - r0 = (s.selected___158971 ^ 1); - s.selected___158971 = (r0); - r0 = pxsim_Array__getAt(s.buffers___158972, s.selected___158971); - s.remainingMovers___158993 = (r0); - s.ms___158998 = (undefined); - s.unnamed4592___U14 = (s.currMovers___158986); - s.unnamed4593___U15 = (0); + r0 = pxsim_Array__getAt(s.buffers___34841, s.selected___34840); + s.currMovers___34855 = (r0); + r0 = (s.selected___34840 ^ 1); + s.selected___34840 = (r0); + r0 = pxsim_Array__getAt(s.buffers___34841, s.selected___34840); + s.remainingMovers___34862 = (r0); + s.ms___34867 = (undefined); + s.unnamed232___U13 = (s.currMovers___34855); + s.unnamed233___U14 = (0); case 4: - s.tmp_0 = r0 = s.unnamed4593___U15; - r0 = pxsim_Array__length(s.unnamed4592___U14); + s.tmp_0 = r0 = s.unnamed233___U14; + r0 = pxsim_Array__length(s.unnamed232___U13); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 43; continue; } - r0 = pxsim_Array__getAt(s.unnamed4592___U14, s.unnamed4593___U15); - s.ms___158998 = (r0); - r0 = s.ms___158998.fields["sprite"]; - s.s___159000 = (r0); - r0 = s.ms___158998.fields["cachedVx"]; + r0 = pxsim_Array__getAt(s.unnamed232___U13, s.unnamed233___U14); + s.ms___34867 = (r0); + r0 = s.ms___34867.fields["sprite"]; + s.s___34869 = (r0); + r0 = s.ms___34867.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___159000.fields["_vx"]; + r0 = s.s___34869.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___159000.fields["_vx"]; + r0 = s.s___34869.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___158998).fields["dx"] = (0); + r0 = (s.ms___34867).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___159000.fields["_vx"]; + r0 = s.s___34869.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -38887,7 +39657,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___158998.fields["cachedVx"]; + r0 = s.ms___34867.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -38898,7 +39668,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___159000.fields["_vx"]; + r0 = s.s___34869.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -38907,7 +39677,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___158998.fields["cachedVx"]; + r0 = s.ms___34867.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -38919,14 +39689,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___158998; - r0 = s.ms___158998.fields["dx"]; + s.tmp_9 = r0 = s.ms___34867; + r0 = s.ms___34867.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___158998; - r0 = s.ms___158998.fields["xStep"]; + s.tmp_0 = r0 = s.ms___34867; + r0 = s.ms___34867.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -38934,29 +39704,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___159000.fields["_vx"]; + r0 = s.s___34869.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___158998).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___34867).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___158998.fields["cachedVy"]; + r0 = s.ms___34867.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___159000.fields["_vy"]; + r0 = s.s___34869.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___159000.fields["_vy"]; + r0 = s.s___34869.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___158998).fields["dy"] = (0); + r0 = (s.ms___34867).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___159000.fields["_vy"]; + r0 = s.s___34869.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -38965,7 +39735,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___158998.fields["cachedVy"]; + r0 = s.ms___34867.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -38976,7 +39746,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___159000.fields["_vy"]; + r0 = s.s___34869.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -38985,7 +39755,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___158998.fields["cachedVy"]; + r0 = s.ms___34867.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -38997,14 +39767,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___158998; - r0 = s.ms___158998.fields["dy"]; + s.tmp_9 = r0 = s.ms___34867; + r0 = s.ms___34867.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___158998; - r0 = s.ms___158998.fields["yStep"]; + s.tmp_0 = r0 = s.ms___34867; + r0 = s.ms___34867.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -39012,22 +39782,22 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___159000.fields["_vy"]; + r0 = s.s___34869.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___158998).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___34867).fields["cachedVy"] = (s.tmp_0); case 27: case 28: - s.tmp_2 = Fx_abs__P144248_mk(s); - r0 = s.ms___158998.fields["xStep"]; + s.tmp_2 = Fx_abs__P18724_mk(s); + r0 = s.ms___34867.fields["xStep"]; s.tmp_2.arg0 = r0; - s.pc = 54; return s.tmp_2; + s.callLocIdx = 563; s.pc = 54; return s.tmp_2; case 54: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P144248_mk(s); - r0 = s.ms___158998.fields["dx"]; + s.tmp_4 = Fx_abs__P18724_mk(s); + r0 = s.ms___34867.fields["dx"]; s.tmp_4.arg0 = r0; - s.pc = 55; return s.tmp_4; + s.callLocIdx = 564; s.pc = 55; return s.tmp_4; case 55: r0 = s.retval; s.tmp_3 = r0; @@ -39035,25 +39805,25 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___158998.fields["dx"]; + r0 = s.ms___34867.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___158998.fields["xStep"]; + r0 = s.ms___34867.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___159093 = (s.tmp_5); - s.tmp_2 = Fx_abs__P144248_mk(s); - r0 = s.ms___158998.fields["yStep"]; + s.stepX___34962 = (s.tmp_5); + s.tmp_2 = Fx_abs__P18724_mk(s); + r0 = s.ms___34867.fields["yStep"]; s.tmp_2.arg0 = r0; - s.pc = 56; return s.tmp_2; + s.callLocIdx = 565; s.pc = 56; return s.tmp_2; case 56: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P144248_mk(s); - r0 = s.ms___158998.fields["dy"]; + s.tmp_4 = Fx_abs__P18724_mk(s); + r0 = s.ms___34867.fields["dy"]; s.tmp_4.arg0 = r0; - s.pc = 57; return s.tmp_4; + s.callLocIdx = 566; s.pc = 57; return s.tmp_4; case 57: r0 = s.retval; s.tmp_3 = r0; @@ -39061,45 +39831,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___158998.fields["dy"]; + r0 = s.ms___34867.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___158998.fields["yStep"]; + r0 = s.ms___34867.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___159107 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___158998; - r0 = s.ms___158998.fields["dx"]; + s.stepY___34976 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___34867; + r0 = s.ms___34867.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___159093); + r0 = (s.tmp_2 - s.stepX___34962); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___158998; - r0 = s.ms___158998.fields["dy"]; + s.tmp_0 = r0 = s.ms___34867; + r0 = s.ms___34867.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___159107); + r0 = (s.tmp_2 - s.stepY___34976); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___159000.fields["_x"]; + r0 = s.s___34869.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___159000).fields["_lastX"] = (s.tmp_0); - r0 = s.s___159000.fields["_y"]; + r0 = (s.s___34869).fields["_lastX"] = (s.tmp_0); + r0 = s.s___34869.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___159000).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___159000; - r0 = s.s___159000.fields["_x"]; + r0 = (s.s___34869).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___34869; + r0 = s.s___34869.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___159093); + r0 = (s.tmp_2 + s.stepX___34962); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___159000; - r0 = s.s___159000.fields["_y"]; + s.tmp_0 = r0 = s.s___34869; + r0 = s.s___34869.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___159107); + r0 = (s.tmp_2 + s.stepY___34976); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___159000.fields["flags"]; + r0 = s.s___34869.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 515); s.tmp_2 = r0; @@ -39109,20 +39879,20 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 37; continue; } - s.tmp_4 = sprites_SpriteMap_insertAABB__P144948_mk(s); + s.tmp_4 = sprites_SpriteMap_insertAABB__P20665_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___159000; - s.pc = 58; return s.tmp_4; + s.tmp_4.arg1 = s.s___34869; + s.callLocIdx = 571; s.pc = 58; return s.tmp_4; case 58: r0 = s.retval; - s.tmp_0 = r0 = s.tileMap___158918; + s.tmp_0 = r0 = s.tileMap___34787; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 33; continue; } r0 = s.tmp_0; { step = 34; continue; } case 33: - r0 = s.tileMap___158918.fields["_map"]; + r0 = s.tileMap___34787.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -39136,81 +39906,81 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 35; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P145036_mk(s); + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P22315_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___158998; - s.tmp_6.arg2 = s.tileMap___158918; - s.pc = 59; return s.tmp_6; + s.tmp_6.arg1 = s.ms___34867; + s.tmp_6.arg2 = s.tileMap___34787; + s.callLocIdx = 573; s.pc = 59; return s.tmp_6; case 59: r0 = s.retval; case 35: case 36: case 37: case 38: - s.tmp_2 = Fx_abs__P144248_mk(s); - r0 = s.ms___158998.fields["dx"]; + s.tmp_2 = Fx_abs__P18724_mk(s); + r0 = s.ms___34867.fields["dx"]; s.tmp_2.arg0 = r0; - s.pc = 60; return s.tmp_2; + s.callLocIdx = 574; s.pc = 60; return s.tmp_2; case 60: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___145017); + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___20734); 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__P144248_mk(s); - r0 = s.ms___158998.fields["dy"]; + s.tmp_4 = Fx_abs__P18724_mk(s); + r0 = s.ms___34867.fields["dy"]; s.tmp_4.arg0 = r0; - s.pc = 61; return s.tmp_4; + s.callLocIdx = 575; s.pc = 61; return s.tmp_4; case 61: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___145017); + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___20734); 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___158993, s.ms___158998); + r0 = pxsim_Array__push(s.remainingMovers___34862, s.ms___34867); case 41: case 42: - r0 = (s.unnamed4593___U15 + 1); - s.unnamed4593___U15 = (r0); + r0 = (s.unnamed233___U14 + 1); + s.unnamed233___U14 = (r0); { step = 4; continue; } case 43: - s.unnamed4592___U14 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P145035_mk(s); + s.unnamed232___U13 = (undefined); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P22314_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___158986; - s.tmp_0.arg2 = s.overlapHandlers___158964; - s.pc = 62; return s.tmp_0; + s.tmp_0.arg1 = s.currMovers___34855; + s.tmp_0.arg2 = s.overlapHandlers___34833; + s.callLocIdx = 576; s.pc = 62; return s.tmp_0; case 62: r0 = s.retval; case 44: - r0 = pxsim_Array__length(s.currMovers___158986); + r0 = pxsim_Array__length(s.currMovers___34855); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 45; continue; } - r0 = pxsim_Array_.pop(s.currMovers___158986); + r0 = pxsim_Array_.pop(s.currMovers___34855); { step = 44; continue; } case 45: - r0 = (s.count___158976 + 1); - s.count___158976 = (r0); + r0 = (s.count___34845 + 1); + s.count___34845 = (r0); { step = 1; continue; } case 46: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P145033.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__P20749.info = {"start":2551,"length":3971,"line":109,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function ArcadePhysicsEngine_move__P145033_mk(s) { +function ArcadePhysicsEngine_move__P20749_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P145033, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P20749, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39224,25 +39994,24 @@ function ArcadePhysicsEngine_move__P145033_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtf___158900: undefined, - dtSec___158907: undefined, - dt2___158911: undefined, - scene___158915: undefined, - tileMap___158918: undefined, - movingSprites___158921: undefined, - MAX_STEP_COUNT___158953: undefined, - overlapHandlers___158964: undefined, - selected___158971: undefined, - buffers___158972: undefined, - count___158976: undefined, - currMovers___158986: undefined, - remainingMovers___158993: undefined, - ms___158998: undefined, - unnamed4592___U14: undefined, - unnamed4593___U15: undefined, - s___159000: undefined, - stepX___159093: undefined, - stepY___159107: undefined, + dtf___34773: undefined, + dt2___34780: undefined, + scene___34784: undefined, + tileMap___34787: undefined, + movingSprites___34790: undefined, + MAX_STEP_COUNT___34821: undefined, + overlapHandlers___34833: undefined, + selected___34840: undefined, + buffers___34841: undefined, + count___34845: undefined, + currMovers___34855: undefined, + remainingMovers___34862: undefined, + ms___34867: undefined, + unnamed232___U13: undefined, + unnamed233___U14: undefined, + s___34869: undefined, + stepX___34962: undefined, + stepY___34976: undefined, arg0: undefined, arg1: undefined, } } @@ -39251,7 +40020,7 @@ function ArcadePhysicsEngine_move__P145033_mk(s) { -function inline__P158923(s) { +function inline__P34792(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39265,23 +40034,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P145034_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P22313_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.caps[1]; s.tmp_0.arg3 = s.caps[2]; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 546; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P158923.info = {"start":2985,"length":53,"line":122,"column":17,"endLine":122,"endColumn":70,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} +inline__P34792.info = {"start":2943,"length":51,"line":121,"column":17,"endLine":121,"endColumn":68,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} -function inline__P158923_mk(s) { +function inline__P34792_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158923, depth: s.depth + 1, + parent: s, fn: inline__P34792, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -39291,7 +40060,7 @@ function inline__P158923_mk(s) { -function inline__P158936(s) { +function inline__P34804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39305,9 +40074,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P144889_mk(s); + s.tmp_1 = Sprite_vx__P20593_mk(s); s.tmp_1.arg0 = s.arg0; - s.pc = 5; return s.tmp_1; + s.callLocIdx = 548; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; @@ -39316,9 +40085,9 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P144891_mk(s); + s.tmp_2 = Sprite_vy__P20595_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 6; return s.tmp_2; + s.callLocIdx = 549; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; case 2: @@ -39326,9 +40095,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P144931_mk(s); + s.tmp_4 = Sprite_clearObstacles__P20648_mk(s); s.tmp_4.arg0 = s.arg0; - s.pc = 7; return s.tmp_4; + s.callLocIdx = 550; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; case 3: @@ -39337,12 +40106,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P158936.info = {"start":3121,"length":66,"line":125,"column":29,"endLine":127,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} +inline__P34804.info = {"start":3077,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} -function inline__P158936_mk(s) { +function inline__P34804_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P158936, depth: s.depth + 1, + parent: s, fn: inline__P34804, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39356,7 +40125,7 @@ function inline__P158936_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P145035(s) { +function ArcadePhysicsEngine_spriteCollisions__P22314(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39366,18 +40135,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___159208 = undefined; - s.unnamed4594___U1 = undefined; - s.unnamed4595___U2 = undefined; - s.sprite___159210 = undefined; - s.overSprites___159217 = undefined; - s.overlapper___159225 = undefined; - s.unnamed4596___U6 = undefined; - s.unnamed4597___U7 = undefined; - s.thisKind___159231 = undefined; - s.otherKind___159235 = undefined; - s.higher___159248 = undefined; - s.lower___159257 = undefined; + s.ms___35077 = undefined; + s.unnamed234___U1 = undefined; + s.unnamed235___U2 = undefined; + s.sprite___35079 = undefined; + s.overSprites___35086 = undefined; + s.overlapper___35094 = undefined; + s.unnamed236___U6 = undefined; + s.unnamed237___U7 = undefined; + s.thisKind___35100 = undefined; + s.otherKind___35104 = undefined; + s.higher___35117 = undefined; + s.lower___35126 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -39385,7 +40154,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -39397,20 +40166,20 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___159208 = (undefined); - s.unnamed4594___U1 = (s.arg1); - s.unnamed4595___U2 = (0); + s.ms___35077 = (undefined); + s.unnamed234___U1 = (s.arg1); + s.unnamed235___U2 = (0); case 3: - s.tmp_0 = r0 = s.unnamed4595___U2; - r0 = pxsim_Array__length(s.unnamed4594___U1); + s.tmp_0 = r0 = s.unnamed235___U2; + r0 = pxsim_Array__length(s.unnamed234___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed4594___U1, s.unnamed4595___U2); - s.ms___159208 = (r0); - r0 = s.ms___159208.fields["sprite"]; - s.sprite___159210 = (r0); - r0 = s.sprite___159210.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed234___U1, s.unnamed235___U2); + s.ms___35077 = (r0); + r0 = s.ms___35077.fields["sprite"]; + s.sprite___35079 = (r0); + r0 = s.sprite___35079.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 515); s.tmp_0 = r0; @@ -39419,27 +40188,27 @@ switch (step) { { step = 19; continue; } case 4: case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P144942_mk(s); + s.tmp_2 = sprites_SpriteMap_overlaps__P20661_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___159208.fields["sprite"]; + r0 = s.ms___35077.fields["sprite"]; s.tmp_2.arg1 = r0; - s.pc = 22; return s.tmp_2; + s.callLocIdx = 614; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___159217 = (r0); - s.overlapper___159225 = (undefined); - s.unnamed4596___U6 = (s.overSprites___159217); - s.unnamed4597___U7 = (0); + s.overSprites___35086 = (r0); + s.overlapper___35094 = (undefined); + s.unnamed236___U6 = (s.overSprites___35086); + s.unnamed237___U7 = (0); case 6: - s.tmp_0 = r0 = s.unnamed4597___U7; - r0 = pxsim_Array__length(s.unnamed4596___U6); + s.tmp_0 = r0 = s.unnamed237___U7; + r0 = pxsim_Array__length(s.unnamed236___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed4596___U6, s.unnamed4597___U7); - s.overlapper___159225 = (r0); - r0 = s.overlapper___159225.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed236___U6, s.unnamed237___U7); + s.overlapper___35094 = (r0); + r0 = s.overlapper___35094.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 515); s.tmp_2 = r0; @@ -39448,13 +40217,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___159210.fields["_kind"]; - s.thisKind___159231 = (r0); - r0 = s.overlapper___159225.fields["_kind"]; - s.otherKind___159235 = (r0); - r0 = s.sprite___159210.fields["_kindsOverlappedWith"]; + r0 = s.sprite___35079.fields["_kind"]; + s.thisKind___35100 = (r0); + r0 = s.overlapper___35094.fields["_kind"]; + s.otherKind___35104 = (r0); + r0 = s.sprite___35079.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___159235, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___35104, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -39463,37 +40232,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___159210.fields["id"]; + r0 = s.sprite___35079.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___159225.fields["id"]; + r0 = s.overlapper___35094.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___159210; + r0 = s.sprite___35079; { step = 12; continue; } case 11: - r0 = s.overlapper___159225; + r0 = s.overlapper___35094; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___159248 = (s.tmp_6); - r0 = (s.higher___159248 === s.sprite___159210); + s.higher___35117 = (s.tmp_6); + r0 = (s.higher___35117 === s.sprite___35079); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___159225; + r0 = s.overlapper___35094; { step = 14; continue; } case 13: - r0 = s.sprite___159210; + r0 = s.sprite___35079; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___159257 = (s.tmp_1); - r0 = s.higher___159248.fields["_overlappers"]; + s.lower___35126 = (s.tmp_1); + r0 = s.higher___35117.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___159257.fields["id"]; + r0 = s.lower___35126.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -39501,54 +40270,54 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P159277); + r0 = pxsim_pxtcore_mkAction(2, inline__P35146); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___159231); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___159235); - r0 = pxsim_pxtcore_mkAction(5, inline__P159301); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___35100); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___35104); + r0 = pxsim_pxtcore_mkAction(5, inline__P35170); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___159248); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___159257); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.thisKind___159231); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.sprite___159210); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.overlapper___159225); - s.tmp_6 = helpers_arrayForEach__P144186_mk(s); - s.tmp_7 = helpers_arrayFilter__P144187_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___35117); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___35126); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___35079); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___35094); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___35100); + s.tmp_6 = helpers_arrayForEach__P18671_mk(s); + s.tmp_7 = helpers_arrayFilter__P18672_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; - s.pc = 24; return s.tmp_7; + s.callLocIdx = 617; s.pc = 24; return s.tmp_7; case 24: r0 = s.retval; s.tmp_6.arg0 = r0; s.tmp_6.arg1 = s.tmp_5; - s.pc = 23; return s.tmp_6; + s.callLocIdx = 619; s.pc = 23; return s.tmp_6; case 23: r0 = s.retval; case 15: case 16: case 17: - r0 = (s.unnamed4597___U7 + 1); - s.unnamed4597___U7 = (r0); + r0 = (s.unnamed237___U7 + 1); + s.unnamed237___U7 = (r0); { step = 6; continue; } case 18: - s.unnamed4596___U6 = (undefined); + s.unnamed236___U6 = (undefined); case 19: - r0 = (s.unnamed4595___U2 + 1); - s.unnamed4595___U2 = (r0); + r0 = (s.unnamed235___U2 + 1); + s.unnamed235___U2 = (r0); { step = 3; continue; } case 20: - s.unnamed4594___U1 = (undefined); + s.unnamed234___U1 = (undefined); case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P145035.info = {"start":9198,"length":2104,"line":305,"column":4,"endLine":347,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} +ArcadePhysicsEngine_spriteCollisions__P22314.info = {"start":9599,"length":2254,"line":324,"column":4,"endLine":368,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} -function ArcadePhysicsEngine_spriteCollisions__P145035_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P22314_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P145035, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P22314, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39558,18 +40327,18 @@ function ArcadePhysicsEngine_spriteCollisions__P145035_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___159208: undefined, - unnamed4594___U1: undefined, - unnamed4595___U2: undefined, - sprite___159210: undefined, - overSprites___159217: undefined, - overlapper___159225: undefined, - unnamed4596___U6: undefined, - unnamed4597___U7: undefined, - thisKind___159231: undefined, - otherKind___159235: undefined, - higher___159248: undefined, - lower___159257: undefined, + ms___35077: undefined, + unnamed234___U1: undefined, + unnamed235___U2: undefined, + sprite___35079: undefined, + overSprites___35086: undefined, + overlapper___35094: undefined, + unnamed236___U6: undefined, + unnamed237___U7: undefined, + thisKind___35100: undefined, + otherKind___35104: undefined, + higher___35117: undefined, + lower___35126: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -39579,7 +40348,7 @@ function ArcadePhysicsEngine_spriteCollisions__P145035_mk(s) { -function inline__P159277(s) { +function inline__P35146(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39636,12 +40405,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P159277.info = {"start":10557,"length":137,"line":331,"column":32,"endLine":332,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P35146.info = {"start":10958,"length":137,"line":350,"column":32,"endLine":351,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P159277_mk(s) { +function inline__P35146_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P159277, depth: s.depth + 1, + parent: s, fn: inline__P35146, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39659,7 +40428,7 @@ function inline__P159277_mk(s) { -function inline__P159301(s) { +function inline__P35170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39678,11 +40447,11 @@ 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__P159311); + r0 = pxsim_pxtcore_mkAction(6, inline__P35180); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.caps[2]); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.caps[3]); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[2]); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.caps[3]); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg0); r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.caps[4]); r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.caps[0]); r0 = pxsim_pxtrt_stclo(s.tmp_0, 5, s.caps[1]); @@ -39691,12 +40460,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P159301.info = {"start":10754,"length":498,"line":334,"column":33,"endLine":343,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +inline__P35170.info = {"start":11155,"length":648,"line":353,"column":33,"endLine":364,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P159301_mk(s) { +function inline__P35170_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P159301, depth: s.depth + 1, + parent: s, fn: inline__P35170, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39707,7 +40476,7 @@ function inline__P159301_mk(s) { -function inline__P159311(s) { +function inline__P35180(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39717,47 +40486,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["kind"]; + r0 = s.caps[0].fields["flags"]; + s.tmp_4 = r0; + r0 = s.caps[1].fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_4 | s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_3 & 515); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); 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 = 5; continue; } + r0 = s.caps[2].fields["kind"]; + s.tmp_7 = r0; + r0 = (s.caps[3] === s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 1; continue; } - r0 = s.caps[2]; + r0 = s.caps[0]; { step = 2; continue; } case 1: - r0 = s.caps[3]; + r0 = s.caps[1]; case 2: // jmp value (already in r0) - s.tmp_2 = r0; - r0 = s.caps[0].fields["kind"]; - s.tmp_4 = r0; - r0 = (s.caps[1] === s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_8 = r0; + r0 = s.caps[2].fields["kind"]; + s.tmp_10 = r0; + r0 = (s.caps[3] === s.tmp_10); + s.tmp_9 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 3; continue; } - r0 = s.caps[3]; + r0 = s.caps[1]; { step = 4; continue; } case 3: - r0 = s.caps[2]; + r0 = s.caps[0]; case 4: // jmp value (already in r0) - s.tmp_5 = r0; - s.tmp_6 = if_handler_3_mk(s); - s.tmp_6.arg0 = s.caps[0]; - s.tmp_6.arg1 = s.tmp_2; - s.tmp_6.arg2 = s.tmp_5; - if (!s.tmp_6.arg0.vtable.iface) { - setupLambda(s.tmp_6, pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "handler"), 3); - s.pc = 5; return s.tmp_6; + s.tmp_11 = r0; + s.tmp_12 = if_handler_3_mk(s); + s.tmp_12.arg0 = s.caps[2]; + s.tmp_12.arg1 = s.tmp_8; + s.tmp_12.arg2 = s.tmp_11; + if (!s.tmp_12.arg0.vtable.iface) { + setupLambda(s.tmp_12, pxsim_pxtrt.mapGetByString(s.tmp_12.arg0, "handler"), 3); + s.callLocIdx = 618; s.pc = 7; return s.tmp_12; } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["handler"]; - if (s.tmp_6.fn == null) { setupLambda(s.tmp_6, s.tmp_6.arg0.fields["handler"], 3); s.pc = 5; return s.tmp_6; } - else if (s.tmp_6.fn.isGetter) { s.tmp_6.stage2Call = true; s.pc = 5; return s.tmp_6;; } - else { s.pc = 5; return s.tmp_6; } + s.tmp_12.fn = s.tmp_12.arg0.vtable.iface["handler"]; + if (s.tmp_12.fn == null) { setupLambda(s.tmp_12, s.tmp_12.arg0.fields["handler"], 3); s.callLocIdx = 618; s.pc = 7; return s.tmp_12; } + else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 618; s.pc = 7; return s.tmp_12;; } + else { s.callLocIdx = 618; s.pc = 7; return s.tmp_12; } } - case 5: + case 7: r0 = s.retval; + case 5: + case 6: r0 = s.caps[4].fields["_overlappers"]; s.tmp_0 = r0; r0 = s.caps[5].fields["id"]; @@ -39767,12 +40552,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P159311.info = {"start":10875,"length":349,"line":336,"column":50,"endLine":342,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +inline__P35180.info = {"start":11276,"length":499,"line":355,"column":50,"endLine":363,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function inline__P159311_mk(s) { +function inline__P35180_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P159311, depth: s.depth + 1, + parent: s, fn: inline__P35180, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39781,13 +40566,19 @@ function inline__P159311_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, } } -function sprites_SpriteMap_overlaps__P144942(s) { +function sprites_SpriteMap_overlaps__P20661(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39797,47 +40588,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___159335 = undefined; - s.o___159339 = undefined; + s.n___35214 = undefined; + s.o___35218 = 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__C144940_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P144941_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P20660_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 488; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___159335 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P159341); + s.n___35214 = (r0); + r0 = pxsim_pxtcore_mkAction(1, inline__P35220); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P144187_mk(s); - s.tmp_1.arg0 = s.n___159335; + s.tmp_1 = helpers_arrayFilter__P18672_mk(s); + s.tmp_1.arg0 = s.n___35214; s.tmp_1.arg1 = s.tmp_0; - s.pc = 2; return s.tmp_1; + s.callLocIdx = 490; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___159339 = (r0); - r0 = s.o___159339; + s.o___35218 = (r0); + r0 = s.o___35218; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P144942.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__P20661.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__P144942_mk(s) { +function sprites_SpriteMap_overlaps__P20661_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P144942, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_overlaps__P20661, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___159335: undefined, - o___159339: undefined, + n___35214: undefined, + o___35218: undefined, arg0: undefined, arg1: undefined, } } @@ -39846,7 +40637,7 @@ function sprites_SpriteMap_overlaps__P144942_mk(s) { -function inline__P159341(s) { +function inline__P35220(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39860,21 +40651,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P144927_mk(s); + s.tmp_0 = Sprite_overlapsWith__P20644_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 489; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P159341.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} +inline__P35220.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__P159341_mk(s) { +function inline__P35220_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P159341, depth: s.depth + 1, + parent: s, fn: inline__P35220, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -39884,7 +40675,7 @@ function inline__P159341_mk(s) { -function sprites_SpriteMap_neighbors__P144941(s) { +function sprites_SpriteMap_neighbors__P20660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39894,112 +40685,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___159384 = undefined; - s.layer___159386 = undefined; + s.n___35262 = undefined; + s.layer___35264 = 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__C144940_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___159384 = (r0); + s.n___35262 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___159386 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P144949_mk(s); + s.layer___35264 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P22292_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P144909_mk(s); + s.tmp_1 = Sprite_left__P20626_mk(s); s.tmp_1.arg0 = s.arg1; - s.pc = 2; return s.tmp_1; + s.callLocIdx = 476; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P144913_mk(s); + s.tmp_2 = Sprite_top__P20630_mk(s); s.tmp_2.arg0 = s.arg1; - s.pc = 3; return s.tmp_2; + s.callLocIdx = 477; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___159386; - s.tmp_0.arg4 = s.n___159384; - s.pc = 1; return s.tmp_0; + s.tmp_0.arg3 = s.layer___35264; + s.tmp_0.arg4 = s.n___35262; + s.callLocIdx = 478; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P144949_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P22292_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P144909_mk(s); + s.tmp_1 = Sprite_left__P20626_mk(s); s.tmp_1.arg0 = s.arg1; - s.pc = 5; return s.tmp_1; + s.callLocIdx = 479; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P144915_mk(s); + s.tmp_2 = Sprite_bottom__P20632_mk(s); s.tmp_2.arg0 = s.arg1; - s.pc = 6; return s.tmp_2; + s.callLocIdx = 480; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___159386; - s.tmp_0.arg4 = s.n___159384; - s.pc = 4; return s.tmp_0; + s.tmp_0.arg3 = s.layer___35264; + s.tmp_0.arg4 = s.n___35262; + s.callLocIdx = 481; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P144949_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P22292_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P144911_mk(s); + s.tmp_1 = Sprite_right__P20628_mk(s); s.tmp_1.arg0 = s.arg1; - s.pc = 8; return s.tmp_1; + s.callLocIdx = 482; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P144913_mk(s); + s.tmp_2 = Sprite_top__P20630_mk(s); s.tmp_2.arg0 = s.arg1; - s.pc = 9; return s.tmp_2; + s.callLocIdx = 483; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___159386; - s.tmp_0.arg4 = s.n___159384; - s.pc = 7; return s.tmp_0; + s.tmp_0.arg3 = s.layer___35264; + s.tmp_0.arg4 = s.n___35262; + s.callLocIdx = 484; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P144949_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P22292_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P144911_mk(s); + s.tmp_1 = Sprite_right__P20628_mk(s); s.tmp_1.arg0 = s.arg1; - s.pc = 11; return s.tmp_1; + s.callLocIdx = 485; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P144915_mk(s); + s.tmp_2 = Sprite_bottom__P20632_mk(s); s.tmp_2.arg0 = s.arg1; - s.pc = 12; return s.tmp_2; + s.callLocIdx = 486; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___159386; - s.tmp_0.arg4 = s.n___159384; - s.pc = 10; return s.tmp_0; + s.tmp_0.arg3 = s.layer___35264; + s.tmp_0.arg4 = s.n___35262; + s.callLocIdx = 487; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___159384, s.arg1); - r0 = s.n___159384; + r0 = pxsim_Array_.removeElement(s.n___35262, s.arg1); + r0 = s.n___35262; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P144941.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__P20660.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__P144941_mk(s) { +function sprites_SpriteMap_neighbors__P20660_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P144941, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P20660, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___159384: undefined, - layer___159386: undefined, + n___35262: undefined, + layer___35264: undefined, arg0: undefined, arg1: undefined, } } @@ -40008,7 +40799,7 @@ function sprites_SpriteMap_neighbors__P144941_mk(s) { -function sprites_SpriteMap_mergeAtKey__P144949(s) { +function sprites_SpriteMap_mergeAtKey__P22292(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40018,11 +40809,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___159427 = undefined; - s.bucket___159432 = undefined; - s.sprite___159439 = undefined; - s.unnamed4590___U3 = undefined; - s.unnamed4591___U4 = undefined; + s.k___35305 = undefined; + s.bucket___35310 = undefined; + s.sprite___35317 = undefined; + s.unnamed230___U3 = undefined; + s.unnamed231___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40032,33 +40823,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C144940_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P144946_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P22290_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.pc = 9; return s.tmp_0; + s.callLocIdx = 514; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___159427 = (r0); + s.k___35305 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___159427); - s.bucket___159432 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___159432); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___35305); + s.bucket___35310 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___35310); if (!r0) { step = 7; continue; } - s.sprite___159439 = (undefined); - s.unnamed4590___U3 = (s.bucket___159432); - s.unnamed4591___U4 = (0); + s.sprite___35317 = (undefined); + s.unnamed230___U3 = (s.bucket___35310); + s.unnamed231___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed4591___U4; - r0 = pxsim_Array__length(s.unnamed4590___U3); + s.tmp_0 = r0 = s.unnamed231___U4; + r0 = pxsim_Array__length(s.unnamed230___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed4590___U3, s.unnamed4591___U4); - s.sprite___159439 = (r0); - r0 = s.sprite___159439.fields["layer"]; + r0 = pxsim_Array__getAt(s.unnamed230___U3, s.unnamed231___U4); + s.sprite___35317 = (r0); + r0 = s.sprite___35317.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -40067,7 +40858,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___159439, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___35317, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -40075,26 +40866,26 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__push(s.arg4, s.sprite___159439); + r0 = pxsim_Array__push(s.arg4, s.sprite___35317); case 4: case 5: - r0 = (s.unnamed4591___U4 + 1); - s.unnamed4591___U4 = (r0); + r0 = (s.unnamed231___U4 + 1); + s.unnamed231___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed4590___U3 = (undefined); + s.unnamed230___U3 = (undefined); case 7: case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P144949.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__P22292.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__P144949_mk(s) { +function sprites_SpriteMap_mergeAtKey__P22292_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P144949, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P22292, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40102,11 +40893,11 @@ function sprites_SpriteMap_mergeAtKey__P144949_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___159427: undefined, - bucket___159432: undefined, - sprite___159439: undefined, - unnamed4590___U3: undefined, - unnamed4591___U4: undefined, + k___35305: undefined, + bucket___35310: undefined, + sprite___35317: undefined, + unnamed230___U3: undefined, + unnamed231___U4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40118,7 +40909,7 @@ function sprites_SpriteMap_mergeAtKey__P144949_mk(s) { -function sprites_SpriteMap_key__P144946(s) { +function sprites_SpriteMap_key__P22290(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40128,8 +40919,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___159460 = undefined; - s.yi___159472 = undefined; + s.xi___35338 = undefined; + s.yi___35350 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40137,8 +40928,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C144940_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P144201_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P18686_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["columnCount"]; s.tmp_0.arg1 = r0; @@ -40146,11 +40937,11 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg1, s.tmp_1); s.tmp_0.arg2 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 502; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___159460 = (r0); - s.tmp_0 = Math_clamp__P144201_mk(s); + s.xi___35338 = (r0); + s.tmp_0 = Math_clamp__P18686_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; s.tmp_0.arg1 = r0; @@ -40158,31 +40949,31 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg2, s.tmp_1); s.tmp_0.arg2 = r0; - s.pc = 2; return s.tmp_0; + s.callLocIdx = 503; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___159472 = (r0); - s.tmp_0 = r0 = s.xi___159460; + s.yi___35350 = (r0); + s.tmp_0 = r0 = s.xi___35338; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___159472 * s.tmp_2); + r0 = (s.yi___35350 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P144946.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__P22290.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__P144946_mk(s) { +function sprites_SpriteMap_key__P22290_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P144946, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P22290, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___159460: undefined, - yi___159472: undefined, + xi___35338: undefined, + yi___35350: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40192,7 +40983,7 @@ function sprites_SpriteMap_key__P144946_mk(s) { -function Sprite_overlapsWith__P144927(s) { +function Sprite_overlapsWith__P20644(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40208,7 +40999,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = (s.arg1 == s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -40241,29 +41032,29 @@ switch (step) { s.tmp_5 = r0; r0 = s.arg0.fields["_image"]; s.tmp_6 = r0; - s.tmp_9 = Sprite_left__P144909_mk(s); + s.tmp_9 = Sprite_left__P20626_mk(s); s.tmp_9.arg0 = s.arg0; - s.pc = 8; return s.tmp_9; + s.callLocIdx = 438; s.pc = 8; return s.tmp_9; case 8: r0 = s.retval; s.tmp_8 = r0; - s.tmp_11 = Sprite_left__P144909_mk(s); + s.tmp_11 = Sprite_left__P20626_mk(s); s.tmp_11.arg0 = s.arg1; - s.pc = 9; return s.tmp_11; + s.callLocIdx = 439; s.pc = 9; return s.tmp_11; case 9: r0 = s.retval; s.tmp_10 = r0; r0 = (s.tmp_8 - s.tmp_10); s.tmp_7 = r0; - s.tmp_14 = Sprite_top__P144913_mk(s); + s.tmp_14 = Sprite_top__P20630_mk(s); s.tmp_14.arg0 = s.arg0; - s.pc = 10; return s.tmp_14; + s.callLocIdx = 440; s.pc = 10; return s.tmp_14; case 10: r0 = s.retval; s.tmp_13 = r0; - s.tmp_16 = Sprite_top__P144913_mk(s); + s.tmp_16 = Sprite_top__P20630_mk(s); s.tmp_16.arg0 = s.arg1; - s.pc = 11; return s.tmp_16; + s.callLocIdx = 441; s.pc = 11; return s.tmp_16; case 11: r0 = s.retval; s.tmp_15 = r0; @@ -40274,12 +41065,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_overlapsWith__P144927.info = {"start":24234,"length":434,"line":739,"column":4,"endLine":747,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +Sprite_overlapsWith__P20644.info = {"start":24476,"length":434,"line":748,"column":4,"endLine":756,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function Sprite_overlapsWith__P144927_mk(s) { +function Sprite_overlapsWith__P20644_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_overlapsWith__P144927, depth: s.depth + 1, + parent: s, fn: Sprite_overlapsWith__P20644, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40306,7 +41097,7 @@ function Sprite_overlapsWith__P144927_mk(s) { -function ArcadePhysicsEngine_createMovingSprite__P145034(s) { +function ArcadePhysicsEngine_createMovingSprite__P22313(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40316,16 +41107,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___159674 = undefined; - s.ovy___159679 = undefined; - s.fx___159706 = undefined; - s.c___159712 = undefined; - s.fy___159755 = undefined; - s.c___159761 = undefined; - s.dx___159790 = undefined; - s.dy___159799 = undefined; - s.xStep___159808 = undefined; - s.yStep___159810 = undefined; + s.ovx___35552 = undefined; + s.ovy___35557 = undefined; + s.fx___35584 = undefined; + s.c___35591 = undefined; + s.fy___35634 = undefined; + s.c___35641 = undefined; + s.dx___35680 = undefined; + s.dy___35689 = undefined; + s.xStep___35698 = undefined; + s.yStep___35700 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40334,23 +41125,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P145041_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P22318_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; - s.pc = 25; return s.tmp_0; + s.callLocIdx = 577; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___159674 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P145041_mk(s); + s.ovx___35552 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P22318_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; - s.pc = 26; return s.tmp_0; + s.callLocIdx = 578; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___159679 = (r0); + s.ovy___35557 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -40362,21 +41153,17 @@ 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__P145041_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.pc = 27; return s.tmp_3; - case 27: - r0 = s.retval; + r0 = pxsim.Math_.idiv(s.tmp_5, 1000); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_vx"] = (s.tmp_2); { step = 8; continue; } @@ -40386,46 +41173,48 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } r0 = s.arg1.fields["_fx"]; - s.tmp_1 = r0; - r0 = pxsim.Math_.imul(s.tmp_1, s.arg2); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.fx___159706 = (r0); + r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 8); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 1000); + s.fx___35584 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___159706); - s.c___159712 = (r0); - r0 = (s.c___159712 < 0); + r0 = (s.tmp_0 - s.fx___35584); + s.c___35591 = (r0); + r0 = (s.c___35591 < 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__P144249_mk(s); + s.tmp_3 = Fx_min__P18725_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___159706); + r0 = (s.tmp_4 + s.fx___35584); s.tmp_3.arg1 = r0; - s.pc = 28; return s.tmp_3; - case 28: + s.callLocIdx = 586; 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___159712 > 0); + r0 = (s.c___35591 > 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__P144250_mk(s); + s.tmp_3 = Fx_max__P18726_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___159706); + r0 = (s.tmp_4 - s.fx___35584); s.tmp_3.arg1 = r0; - s.pc = 29; return s.tmp_3; - case 29: + s.callLocIdx = 588; 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); @@ -40442,21 +41231,17 @@ 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__P145041_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.pc = 30; return s.tmp_3; - case 30: - r0 = s.retval; + r0 = pxsim.Math_.idiv(s.tmp_5, 1000); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); s.tmp_2 = r0; r0 = (s.tmp_1).fields["_vy"] = (s.tmp_2); { step = 16; continue; } @@ -40466,46 +41251,48 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } r0 = s.arg1.fields["_fy"]; - s.tmp_1 = r0; - r0 = pxsim.Math_.imul(s.tmp_1, s.arg2); s.tmp_2 = r0; - r0 = (s.tmp_2 >> 8); - s.fy___159755 = (r0); + r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 8); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, 1000); + s.fy___35634 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___159755); - s.c___159761 = (r0); - r0 = (s.c___159761 < 0); + r0 = (s.tmp_0 - s.fy___35634); + s.c___35641 = (r0); + r0 = (s.c___35641 < 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__P144249_mk(s); + s.tmp_3 = Fx_min__P18725_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___159755); + r0 = (s.tmp_4 + s.fy___35634); s.tmp_3.arg1 = r0; - s.pc = 31; return s.tmp_3; - case 31: + s.callLocIdx = 596; 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___159761 > 0); + r0 = (s.c___35641 > 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__P144249_mk(s); + s.tmp_3 = Fx_min__P18725_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___159755); + r0 = (s.tmp_4 - s.fy___35634); s.tmp_3.arg1 = r0; - s.pc = 32; return s.tmp_3; - case 32: + s.callLocIdx = 598; 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); @@ -40517,32 +41304,52 @@ switch (step) { case 14: case 15: case 16: + s.tmp_0 = r0 = s.arg1; + s.tmp_2 = ArcadePhysicsEngine_constrain__P22318_mk(s); + s.tmp_2.arg0 = s.arg0; + r0 = s.arg1.fields["_vx"]; + s.tmp_2.arg1 = r0; + s.callLocIdx = 599; 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__P22318_mk(s); + s.tmp_2.arg0 = s.arg0; + r0 = s.arg1.fields["_vy"]; + s.tmp_2.arg1 = r0; + s.callLocIdx = 600; 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___159674); + r0 = (s.tmp_2 + s.ovx___35552); 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___159790 = (r0); + s.dx___35680 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.ovy___159679); + r0 = (s.tmp_2 + s.ovy___35557); 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___159799 = (r0); - s.xStep___159808 = (s.dx___159790); - s.yStep___159810 = (s.dy___159799); + s.dy___35689 = (r0); + s.xStep___35698 = (s.dx___35680); + s.yStep___35700 = (s.dy___35689); case 17: - s.tmp_2 = Fx_abs__P144248_mk(s); - s.tmp_2.arg0 = s.xStep___159808; - s.pc = 33; return s.tmp_2; + s.tmp_2 = Fx_abs__P18724_mk(s); + s.tmp_2.arg0 = s.xStep___35698; + s.callLocIdx = 607; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; s.tmp_1 = r0; @@ -40555,9 +41362,9 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - s.tmp_5 = Fx_abs__P144248_mk(s); - s.tmp_5.arg0 = s.yStep___159810; - s.pc = 34; return s.tmp_5; + s.tmp_5 = Fx_abs__P18724_mk(s); + s.tmp_5.arg0 = s.yStep___35700; + s.callLocIdx = 608; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; s.tmp_4 = r0; @@ -40569,9 +41376,9 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P144248_mk(s); - s.tmp_10.arg0 = s.xStep___159808; - s.pc = 35; return s.tmp_10; + s.tmp_10 = Fx_abs__P18724_mk(s); + s.tmp_10.arg0 = s.xStep___35698; + s.callLocIdx = 609; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; s.tmp_9 = r0; @@ -40581,13 +41388,13 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 20; continue; } - r0 = pxsim.Math_.idiv(s.xStep___159808, 2); - s.xStep___159808 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___35698, 2); + s.xStep___35698 = (r0); case 20: case 21: - s.tmp_2 = Fx_abs__P144248_mk(s); - s.tmp_2.arg0 = s.yStep___159810; - s.pc = 36; return s.tmp_2; + s.tmp_2 = Fx_abs__P18724_mk(s); + s.tmp_2.arg0 = s.yStep___35700; + s.callLocIdx = 611; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; s.tmp_1 = r0; @@ -40597,38 +41404,38 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = pxsim.Math_.idiv(s.yStep___159810, 2); - s.yStep___159810 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___35700, 2); + s.yStep___35700 = (r0); case 22: case 23: { step = 17; continue; } case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C145019_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C20735_VT); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P145020_mk(s); + s.tmp_1 = MovingSprite_constructor__P20736_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___159790; - s.tmp_1.arg5 = s.dy___159799; - s.tmp_1.arg6 = s.xStep___159808; - s.tmp_1.arg7 = s.yStep___159810; - s.pc = 37; return s.tmp_1; + s.tmp_1.arg4 = s.dx___35680; + s.tmp_1.arg5 = s.dy___35689; + s.tmp_1.arg6 = s.xStep___35698; + s.tmp_1.arg7 = s.yStep___35700; + s.callLocIdx = 613; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P145034.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__P22313.info = {"start":6528,"length":3065,"line":213,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} -function ArcadePhysicsEngine_createMovingSprite__P145034_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P22313_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P145034, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P22313, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40642,16 +41449,16 @@ function ArcadePhysicsEngine_createMovingSprite__P145034_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___159674: undefined, - ovy___159679: undefined, - fx___159706: undefined, - c___159712: undefined, - fy___159755: undefined, - c___159761: undefined, - dx___159790: undefined, - dy___159799: undefined, - xStep___159808: undefined, - yStep___159810: undefined, + ovx___35552: undefined, + ovy___35557: undefined, + fx___35584: undefined, + c___35591: undefined, + fy___35634: undefined, + c___35641: undefined, + dx___35680: undefined, + dy___35689: undefined, + xStep___35698: undefined, + yStep___35700: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -40662,7 +41469,7 @@ function ArcadePhysicsEngine_createMovingSprite__P145034_mk(s) { -function ArcadePhysicsEngine_constrain__P145041(s) { +function ArcadePhysicsEngine_constrain__P22318(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40678,30 +41485,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P144250_mk(s); - s.tmp_1 = Fx_min__P144249_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P18726_mk(s); + s.tmp_1 = Fx_min__P18725_mk(s); r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.pc = 2; return s.tmp_1; + s.callLocIdx = 762; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["maxNegativeVelocity"]; s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 763; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P145041.info = {"start":23400,"length":191,"line":681,"column":4,"endLine":689,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} +ArcadePhysicsEngine_constrain__P22318.info = {"start":25298,"length":191,"line":751,"column":4,"endLine":759,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} -function ArcadePhysicsEngine_constrain__P145041_mk(s) { +function ArcadePhysicsEngine_constrain__P22318_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P145041, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P22318, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40713,7 +41520,7 @@ function ArcadePhysicsEngine_constrain__P145041_mk(s) { -function Fx_max__P144250(s) { +function Fx_max__P18726(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40744,12 +41551,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_max__P144250.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__P18726.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__P144250_mk(s) { +function Fx_max__P18726_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_max__P144250, depth: s.depth + 1, + parent: s, fn: Fx_max__P18726, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40760,7 +41567,7 @@ function Fx_max__P144250_mk(s) { -function Fx_compare__P144247(s) { +function Fx_compare__P18723(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40779,12 +41586,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_compare__P144247.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__P18723.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__P144247_mk(s) { +function Fx_compare__P18723_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_compare__P144247, depth: s.depth + 1, + parent: s, fn: Fx_compare__P18723, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -40794,7 +41601,7 @@ function Fx_compare__P144247_mk(s) { -function sprites_SpriteMap_insertAABB__P144948(s) { +function sprites_SpriteMap_insertAABB__P20665(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40804,31 +41611,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___159492 = undefined; - s.top___159495 = undefined; - s.xn___159498 = undefined; - s.yn___159509 = undefined; - s.x___159520 = undefined; - s.y___159525 = undefined; + s.left___35370 = undefined; + s.top___35373 = undefined; + s.xn___35376 = undefined; + s.yn___35387 = undefined; + s.x___35398 = undefined; + s.y___35403 = 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__C144940_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P144909_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P20626_mk(s); s.tmp_0.arg0 = s.arg1; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 505; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___159492 = (r0); - s.tmp_0 = Sprite_top__P144913_mk(s); + s.left___35370 = (r0); + s.tmp_0 = Sprite_top__P20630_mk(s); s.tmp_0.arg0 = s.arg1; - s.pc = 6; return s.tmp_0; + s.callLocIdx = 506; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___159495 = (r0); + s.top___35373 = (r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.width(s.tmp_3); @@ -40842,7 +41649,7 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___159498 = (r0); + s.xn___35376 = (r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -40856,75 +41663,75 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___159509 = (r0); - s.x___159520 = (0); + s.yn___35387 = (r0); + s.x___35398 = (0); case 1: - r0 = (s.x___159520 <= s.xn___159498); + r0 = (s.x___35398 <= s.xn___35376); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___159525 = (0); + s.y___35403 = (0); case 2: - r0 = (s.y___159525 <= s.yn___159509); + r0 = (s.y___35403 <= s.yn___35387); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P144947_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P22291_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___159492; - s.tmp_4 = Math_min__P144205_mk(s); + s.tmp_2 = r0 = s.left___35370; + s.tmp_4 = Math_min__P18690_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___159520 * s.tmp_6); + r0 = (s.x___35398 * s.tmp_6); s.tmp_4.arg1 = r0; - s.pc = 8; return s.tmp_4; + s.callLocIdx = 510; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1.arg1 = r0; - s.tmp_7 = r0 = s.top___159495; - s.tmp_9 = Math_min__P144205_mk(s); + s.tmp_7 = r0 = s.top___35373; + s.tmp_9 = Math_min__P18690_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___159525 * s.tmp_11); + r0 = (s.y___35403 * s.tmp_11); s.tmp_9.arg1 = r0; - s.pc = 9; return s.tmp_9; + s.callLocIdx = 512; s.pc = 9; return s.tmp_9; case 9: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_1.arg2 = r0; s.tmp_1.arg3 = s.arg1; - s.pc = 7; return s.tmp_1; + s.callLocIdx = 513; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - r0 = (s.y___159525 + 1); - s.y___159525 = (r0); + r0 = (s.y___35403 + 1); + s.y___35403 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___159520 + 1); - s.x___159520 = (r0); + r0 = (s.x___35398 + 1); + s.x___35398 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P144948.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__P20665.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__P144948_mk(s) { +function sprites_SpriteMap_insertAABB__P20665_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P144948, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P20665, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40938,12 +41745,12 @@ function sprites_SpriteMap_insertAABB__P144948_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___159492: undefined, - top___159495: undefined, - xn___159498: undefined, - yn___159509: undefined, - x___159520: undefined, - y___159525: undefined, + left___35370: undefined, + top___35373: undefined, + xn___35376: undefined, + yn___35387: undefined, + x___35398: undefined, + y___35403: undefined, arg0: undefined, arg1: undefined, } } @@ -40952,7 +41759,7 @@ function sprites_SpriteMap_insertAABB__P144948_mk(s) { -function sprites_SpriteMap_insertAtKey__P144947(s) { +function sprites_SpriteMap_insertAtKey__P22291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40962,8 +41769,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___159560 = undefined; - s.bucket___159565 = undefined; + s.k___35438 = undefined; + s.bucket___35443 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40972,20 +41779,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C144940_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P144946_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P22290_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.pc = 5; return s.tmp_0; + s.callLocIdx = 504; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___159560 = (r0); + s.k___35438 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___159560); - s.bucket___159565 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___159565); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___35438); + s.bucket___35443 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___35443); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -40993,40 +41800,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___159560; + s.tmp_3 = r0 = s.k___35438; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___159565 = (s.tmp_4); + s.bucket___35443 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___159565, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___35443, 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___159565, s.arg3); + r0 = pxsim_Array__push(s.bucket___35443, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P144947.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__P22291.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__P144947_mk(s) { +function sprites_SpriteMap_insertAtKey__P22291_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P144947, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P22291, depth: s.depth + 1, pc: 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___159560: undefined, - bucket___159565: undefined, + k___35438: undefined, + bucket___35443: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41037,7 +41844,7 @@ function sprites_SpriteMap_insertAtKey__P144947_mk(s) { -function sprites_SpriteMap_clear__P144945(s) { +function sprites_SpriteMap_clear__P20664(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41052,7 +41859,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C144940_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -41061,12 +41868,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P144945.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__P20664.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__P144945_mk(s) { +function sprites_SpriteMap_clear__P20664_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P144945, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P20664, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41077,7 +41884,7 @@ function sprites_SpriteMap_clear__P144945_mk(s) { -function sprites_SpriteMap_resizeBuckets__P144944(s) { +function sprites_SpriteMap_resizeBuckets__P20663(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41087,121 +41894,121 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___159597 = undefined; - s.maxHeight___159598 = undefined; - s.sprite___159600 = undefined; - s.unnamed4588___U3 = undefined; - s.unnamed4589___U4 = undefined; - s.tMap___159616 = undefined; - s.areaWidth___159620 = undefined; - s.areaHeight___159627 = undefined; + s.maxWidth___35475 = undefined; + s.maxHeight___35476 = undefined; + s.sprite___35478 = undefined; + s.unnamed228___U3 = undefined; + s.unnamed229___U4 = undefined; + s.tMap___35494 = undefined; + s.areaWidth___35498 = undefined; + s.areaHeight___35505 = 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__C144940_VT)) failedCast(r0); - s.maxWidth___159597 = (0); - s.maxHeight___159598 = (0); - s.sprite___159600 = (undefined); - s.unnamed4588___U3 = (s.arg1); - s.unnamed4589___U4 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); + s.maxWidth___35475 = (0); + s.maxHeight___35476 = (0); + s.sprite___35478 = (undefined); + s.unnamed228___U3 = (s.arg1); + s.unnamed229___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed4589___U4; - r0 = pxsim_Array__length(s.unnamed4588___U3); + s.tmp_0 = r0 = s.unnamed229___U4; + r0 = pxsim_Array__length(s.unnamed228___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed4588___U3, s.unnamed4589___U4); - s.sprite___159600 = (r0); - r0 = s.sprite___159600.fields["_image"]; + r0 = pxsim_Array__getAt(s.unnamed228___U3, s.unnamed229___U4); + s.sprite___35478 = (r0); + r0 = s.sprite___35478.fields["_image"]; s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.tmp_4); s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___159597); + r0 = (s.tmp_3 > s.maxWidth___35475); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.sprite___159600.fields["_image"]; + r0 = s.sprite___35478.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.width(s.tmp_5); - s.maxWidth___159597 = (r0); + s.maxWidth___35475 = (r0); case 2: case 3: - r0 = s.sprite___159600.fields["_image"]; + r0 = s.sprite___35478.fields["_image"]; s.tmp_2 = r0; r0 = pxsim_ImageMethods.height(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___159598); + r0 = (s.tmp_1 > s.maxHeight___35476); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = s.sprite___159600.fields["_image"]; + r0 = s.sprite___35478.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); - s.maxHeight___159598 = (r0); + s.maxHeight___35476 = (r0); case 4: case 5: - r0 = (s.unnamed4589___U4 + 1); - s.unnamed4589___U4 = (r0); + r0 = (s.unnamed229___U4 + 1); + s.unnamed229___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed4588___U3 = (undefined); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 11; return s.tmp_0; + s.unnamed228___U3 = (undefined); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 497; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___159616 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___159616); + s.tMap___35494 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___35494); if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap_areaWidth__P145203_mk(s); - s.tmp_0.arg0 = s.tMap___159616; - s.pc = 12; return s.tmp_0; + s.tmp_0 = tiles_TileMap_areaWidth__P20887_mk(s); + s.tmp_0.arg0 = s.tMap___35494; + s.callLocIdx = 498; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; { step = 8; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___159620 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___159616); + s.areaWidth___35498 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___35494); if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap_areaHeight__P145204_mk(s); - s.tmp_0.arg0 = s.tMap___159616; - s.pc = 13; return s.tmp_0; + s.tmp_0 = tiles_TileMap_areaHeight__P20888_mk(s); + s.tmp_0.arg0 = s.tMap___35494; + s.callLocIdx = 499; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; { step = 10; continue; } case 9: - r0 = pxsim_ImageMethods.height(globals.screen___144693); + r0 = pxsim_ImageMethods.height(globals.screen___20366); case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___159627 = (s.tmp_1); + s.areaHeight___35505 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P144201_mk(s); + s.tmp_2 = Math_clamp__P18686_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___159620 >> 2); + r0 = (s.areaWidth___35498 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___159597 * 2); + r0 = (s.maxWidth___35475 * 2); s.tmp_2.arg2 = r0; - s.pc = 14; return s.tmp_2; + s.callLocIdx = 500; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["cellWidth"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P144201_mk(s); + s.tmp_2 = Math_clamp__P18686_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___159627 >> 2); + r0 = (s.areaHeight___35505 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___159598 * 2); + r0 = (s.maxHeight___35476 * 2); s.tmp_2.arg2 = r0; - s.pc = 15; return s.tmp_2; + s.callLocIdx = 501; s.pc = 15; return s.tmp_2; case 15: r0 = s.retval; s.tmp_1 = r0; @@ -41209,25 +42016,25 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___159627, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___35505, 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___159620, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___35498, 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__P144944.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__P20663.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__P144944_mk(s) { +function sprites_SpriteMap_resizeBuckets__P20663_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P144944, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P20663, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41235,14 +42042,14 @@ function sprites_SpriteMap_resizeBuckets__P144944_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___159597: undefined, - maxHeight___159598: undefined, - sprite___159600: undefined, - unnamed4588___U3: undefined, - unnamed4589___U4: undefined, - tMap___159616: undefined, - areaWidth___159620: undefined, - areaHeight___159627: undefined, + maxWidth___35475: undefined, + maxHeight___35476: undefined, + sprite___35478: undefined, + unnamed228___U3: undefined, + unnamed229___U4: undefined, + tMap___35494: undefined, + areaWidth___35498: undefined, + areaHeight___35505: undefined, arg0: undefined, arg1: undefined, } } @@ -41251,7 +42058,7 @@ function sprites_SpriteMap_resizeBuckets__P144944_mk(s) { -function Sprite_clearObstacles__P144931(s) { +function Sprite_clearObstacles__P20648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41266,7 +42073,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -41275,12 +42082,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P144931.info = {"start":26630,"length":54,"line":804,"column":4,"endLine":806,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} +Sprite_clearObstacles__P20648.info = {"start":26872,"length":54,"line":813,"column":4,"endLine":815,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} -function Sprite_clearObstacles__P144931_mk(s) { +function Sprite_clearObstacles__P20648_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P144931, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P20648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41291,7 +42098,7 @@ function Sprite_clearObstacles__P144931_mk(s) { -function Fx_idiv__P144246(s) { +function Fx_idiv__P18722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41310,12 +42117,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_idiv__P144246.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__P18722.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__P144246_mk(s) { +function Fx_idiv__P18722_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_idiv__P144246, depth: s.depth + 1, + parent: s, fn: Fx_idiv__P18722, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41325,7 +42132,7 @@ function Fx_idiv__P144246_mk(s) { -function Fx_div__P144245(s) { +function Fx_div__P18721(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41346,12 +42153,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_div__P144245.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} +Fx_div__P18721.info = {"start":1145,"length":129,"line":35,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"div","argumentNames":["a","b"]} -function Fx_div__P144245_mk(s) { +function Fx_div__P18721_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_div__P144245, depth: s.depth + 1, + parent: s, fn: Fx_div__P18721, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -41362,7 +42169,7 @@ function Fx_div__P144245_mk(s) { -function ArcadePhysicsEngine_draw__P145032(s) { +function ArcadePhysicsEngine_draw__P20748(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41377,23 +42184,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P144943_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P20662_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 541; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P145032.info = {"start":2506,"length":39,"line":105,"column":4,"endLine":107,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +ArcadePhysicsEngine_draw__P20748.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__P145032_mk(s) { +function ArcadePhysicsEngine_draw__P20748_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P145032, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_draw__P20748, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -41403,7 +42210,7 @@ function ArcadePhysicsEngine_draw__P145032_mk(s) { -function sprites_SpriteMap_draw__P144943(s) { +function sprites_SpriteMap_draw__P20662(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41413,116 +42220,320 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___159911 = undefined; - s.y___159917 = undefined; - s.left___159923 = undefined; - s.top___159928 = undefined; - s.k___159933 = undefined; - s.b___159938 = undefined; + s.x___35778 = undefined; + s.y___35784 = undefined; + s.left___35790 = undefined; + s.top___35795 = undefined; + s.k___35800 = undefined; + s.b___35805 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C144940_VT)) failedCast(r0); - s.x___159911 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C20658_VT)) failedCast(r0); + s.x___35778 = (0); case 1: r0 = s.arg0.fields["columnCount"]; s.tmp_1 = r0; - r0 = (s.x___159911 < s.tmp_1); + r0 = (s.x___35778 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___159917 = (0); + s.y___35784 = (0); case 2: r0 = s.arg0.fields["rowCount"]; s.tmp_1 = r0; - r0 = (s.y___159917 < s.tmp_1); + r0 = (s.y___35784 < 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___159911 * s.tmp_2); - s.left___159923 = (r0); + r0 = (s.x___35778 * s.tmp_2); + s.left___35790 = (r0); r0 = s.arg0.fields["cellHeight"]; s.tmp_0 = r0; - r0 = (s.y___159917 * s.tmp_0); - s.top___159928 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P144946_mk(s); + r0 = (s.y___35784 * s.tmp_0); + s.top___35795 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P22290_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___159923; - s.tmp_0.arg2 = s.top___159928; - s.pc = 9; return s.tmp_0; + s.tmp_0.arg1 = s.left___35790; + s.tmp_0.arg2 = s.top___35795; + s.callLocIdx = 491; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___159933 = (r0); + s.k___35800 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___159933); - s.b___159938 = (r0); - s.tmp_0 = r0 = s.b___159938; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___35800); + s.b___35805 = (r0); + s.tmp_0 = r0 = s.b___35805; 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___159938); + r0 = pxsim_Array__length(s.b___35805); 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__P144635_mk(s); - s.tmp_2.arg0 = globals.screen___144693; - s.tmp_2.arg1 = s.left___159923; - s.tmp_2.arg2 = s.top___159928; + s.tmp_2 = helpers_imageDrawRect__P20295_mk(s); + s.tmp_2.arg0 = globals.screen___20366; + s.tmp_2.arg1 = s.left___35790; + s.tmp_2.arg2 = s.top___35795; 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.pc = 10; return s.tmp_2; + s.callLocIdx = 492; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 5: case 6: - r0 = (s.y___159917 + 1); - s.y___159917 = (r0); + r0 = (s.y___35784 + 1); + s.y___35784 = (r0); { step = 2; continue; } case 7: - r0 = (s.x___159911 + 1); - s.x___159911 = (r0); + r0 = (s.x___35778 + 1); + s.x___35778 = (r0); { step = 1; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P144943.info = {"start":1122,"length":496,"line":36,"column":8,"endLine":47,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"draw","argumentNames":["this"]} +sprites_SpriteMap_draw__P20662.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__P144943_mk(s) { +function sprites_SpriteMap_draw__P20662_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P144943, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_draw__P20662, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___159911: undefined, - y___159917: undefined, - left___159923: undefined, - top___159928: undefined, - k___159933: undefined, - b___159938: undefined, + x___35778: undefined, + y___35784: undefined, + left___35790: undefined, + top___35795: undefined, + k___35800: undefined, + b___35805: undefined, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_removeSprite__P20747(s) { +let r0 = s.r0, 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__C20737_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__P20747.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__P20747_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_removeSprite__P20747, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, + arg1: undefined, +} } + + + + + +function ArcadePhysicsEngine_addSprite__P20746(s) { +let r0 = s.r0, 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.tm___35842 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C20737_VT)) failedCast(r0); + r0 = s.arg0.fields["sprites"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 539; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + s.tm___35842 = (r0); + s.tmp_0 = r0 = s.tm___35842; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_1 = tiles_TileMap_isOnWall__P20902_mk(s); + s.tmp_1.arg0 = s.tm___35842; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 540; 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() +} } } +ArcadePhysicsEngine_addSprite__P20746.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 ArcadePhysicsEngine_addSprite__P20746_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_addSprite__P20746, depth: s.depth + 1, + pc: 0, retval: undefined, 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___35842: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_BackgroundLayer_constructor__P20846(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_BackgroundLayer__C20839_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = Math_max__P18689_mk(s); + s.tmp_2.arg0 = 1; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 771; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["distance"] = (s.tmp_1); + r0 = (s.arg0).fields["img"] = (s.arg3); + s.tmp_0 = r0 = s.arg2; + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 1; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_0); + if (r0) { step = 2; continue; } + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(3, s.tmp_0); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 1: + r0 = (s.arg0).fields["repeatX"] = (true); + r0 = (s.arg0).fields["repeatY"] = (true); + r0 = (s.arg0).fields["alignX"] = (5); + r0 = (s.arg0).fields["alignY"] = (5); + { step = 6; continue; } + case 2: + case 3: + r0 = (s.arg0).fields["repeatX"] = (false); + r0 = (s.arg0).fields["repeatY"] = (true); + r0 = (s.arg0).fields["alignX"] = (s.arg2); + r0 = (s.arg0).fields["alignY"] = (5); + { step = 6; continue; } + case 4: + case 5: + r0 = (s.arg0).fields["repeatX"] = (true); + r0 = (s.arg0).fields["repeatY"] = (false); + r0 = (s.arg0).fields["alignX"] = (5); + r0 = (s.arg0).fields["alignY"] = (s.arg2); + case 6: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_BackgroundLayer_constructor__P20846.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__P20846_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_BackgroundLayer_constructor__P20846, 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 ArcadePhysicsEngine_removeSprite__P145031(s) { +function scene_Background_image__P20836(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41538,22 +42549,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - r0 = s.arg0.fields["sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); + if (!checkSubtype(r0, scene_Background__C20829_VT)) failedCast(r0); + r0 = (s.arg0).fields["_image"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_removeSprite__P145031.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_Background_image__P20836.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} -function ArcadePhysicsEngine_removeSprite__P145031_mk(s) { +function scene_Background_image__P20836_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P145031, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P20836, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -41562,7 +42570,7 @@ function ArcadePhysicsEngine_removeSprite__P145031_mk(s) { -function ArcadePhysicsEngine_addSprite__P145030(s) { +function scene_Background_image__P20835(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41572,58 +42580,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___159975 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C145021_VT)) failedCast(r0); - r0 = s.arg0.fields["sprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___159975 = (r0); - s.tmp_0 = r0 = s.tm___159975; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_1 = tiles_TileMap_isOnWall__P145219_mk(s); - s.tmp_1.arg0 = s.tm___159975; - s.tmp_1.arg1 = s.arg1; - s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - case 2: - // jmp value (already in r0) + if (!checkSubtype(r0, scene_Background__C20829_VT)) failedCast(r0); + r0 = s.arg0.fields["_image"]; 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_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_5 = r0; - r0 = (s.tmp_5 | 256); + r0 = pxsim_ImageMethods.height(globals.screen___20366); + s.tmp_6 = r0; + r0 = pxsim.image.create(s.tmp_5, s.tmp_6); 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_3).fields["_image"] = (s.tmp_4); + case 1: + case 2: + r0 = s.arg0.fields["_image"]; + return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P145030.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_Background_image__P20835.info = {"start":811,"length":174,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this"]} +scene_Background_image__P20835.isGetter = true; -function ArcadePhysicsEngine_addSprite__P145030_mk(s) { +function scene_Background_image__P20835_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P145030, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P20835, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41631,16 +42622,15 @@ function ArcadePhysicsEngine_addSprite__P145030_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___159975: undefined, + tmp_6: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource___draw__P145814(s) { +function particles_ParticleSource___draw__P21248(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41650,18 +42640,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___160288 = undefined; - s.left___160291 = undefined; - s.top___160301 = undefined; + s.current___35940 = undefined; + s.left___35943 = undefined; + s.top___35953 = 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__C145812_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___160288 = (r0); + s.current___35940 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -41679,7 +42669,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___160291 = (s.tmp_4); + s.left___35943 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -41697,49 +42687,49 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___160301 = (s.tmp_4); + s.top___35953 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___160288); + r0 = pxsim_numops_toBoolDecr(s.current___35940); if (!r0) { step = 8; continue; } - r0 = s.current___160288.fields["lifespan"]; + r0 = s.current___35940.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__P145829_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P22796_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___160288; - s.tmp_2.arg2 = s.left___160291; - s.tmp_2.arg3 = s.top___160301; - s.pc = 9; return s.tmp_2; + s.tmp_2.arg1 = s.current___35940; + s.tmp_2.arg2 = s.left___35943; + s.tmp_2.arg3 = s.top___35953; + s.callLocIdx = 1129; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___160288.fields["next"]; - s.current___160288 = (r0); + r0 = s.current___35940.fields["next"]; + s.current___35940 = (r0); { step = 5; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource___draw__P145814.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__P21248.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__P145814_mk(s) { +function particles_ParticleSource___draw__P21248_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource___draw__P145814, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P21248, depth: s.depth + 1, pc: 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___160288: undefined, - left___160291: undefined, - top___160301: undefined, + current___35940: undefined, + left___35943: undefined, + top___35953: undefined, arg0: undefined, arg1: undefined, } } @@ -41748,7 +42738,7 @@ function particles_ParticleSource___draw__P145814_mk(s) { -function particles_ParticleSource_drawParticle__P145829(s) { +function particles_ParticleSource_drawParticle__P22796(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41766,8 +42756,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C145812_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C145872_v1_4_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C21242_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C21278_v1_4_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -41779,7 +42769,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__C145872_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C21278_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: @@ -41788,12 +42778,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P145829.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__P22796.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__P145829_mk(s) { +function particles_ParticleSource_drawParticle__P22796_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P145829, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P22796, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41808,7 +42798,7 @@ function particles_ParticleSource_drawParticle__P145829_mk(s) { -function particles_ParticleFactory_drawParticle__P145874(s) { +function particles_ParticleFactory_drawParticle__P21281(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41826,8 +42816,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C145872_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___144693; + if (!checkSubtype(r0, particles_ParticleFactory__C21278_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___20366; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -41841,12 +42831,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P145874.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__P21281.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__P145874_mk(s) { +function particles_ParticleFactory_drawParticle__P21281_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P145874, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P21281, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41863,7 +42853,7 @@ function particles_ParticleFactory_drawParticle__P145874_mk(s) { -function particles_ShapeFactory_createParticle__P145897(s) { +function particles_ShapeFactory_createParticle__P21308(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41873,47 +42863,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___160041 = undefined; + s.p___35925 = 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__C145893_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P145885_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C21304_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P21294_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1223; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___160041 = (r0); - s.tmp_0 = r0 = s.p___160041; - s.tmp_2 = Math_FastRandom_randomRange__P145664_mk(s); + s.p___35925 = (r0); + s.tmp_0 = r0 = s.p___35925; + s.tmp_2 = Math_FastRandom_randomRange__P21154_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = 14; - s.pc = 2; return s.tmp_2; + s.callLocIdx = 1224; 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___160041; + r0 = s.p___35925; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_createParticle__P145897.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__P21308.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__P145897_mk(s) { +function particles_ShapeFactory_createParticle__P21308_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P145897, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P21308, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___160041: undefined, + p___35925: undefined, arg0: undefined, arg1: undefined, } } @@ -41922,7 +42912,7 @@ function particles_ShapeFactory_createParticle__P145897_mk(s) { -function particles_AreaFactory_createParticle__P145885(s) { +function particles_AreaFactory_createParticle__P21294(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41932,42 +42922,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___160054 = undefined; + s.p___36078 = 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__C145883_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P145878_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C21288_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P21284_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 3; return s.tmp_0; + s.callLocIdx = 1205; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.p___160054 = (r0); - s.tmp_0 = r0 = s.p___160054; - s.tmp_2 = Math_FastRandom_randomRange__P145664_mk(s); + s.p___36078 = (r0); + s.tmp_0 = r0 = s.p___36078; + s.tmp_2 = Math_FastRandom_randomRange__P21154_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.pc = 4; return s.tmp_2; + s.callLocIdx = 1206; 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___160054; - s.tmp_4 = Math_FastRandom_randomRange__P145664_mk(s); + s.tmp_0 = r0 = s.p___36078; + s.tmp_4 = Math_FastRandom_randomRange__P21154_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.pc = 5; return s.tmp_4; + s.callLocIdx = 1207; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; s.tmp_3 = r0; @@ -41977,7 +42967,7 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = s.p___160054.fields["_x"]; + r0 = s.p___36078.fields["_x"]; s.tmp_7 = r0; r0 = (s.tmp_2 << 8); s.tmp_8 = r0; @@ -41992,7 +42982,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.pc = 6; return s.tmp_1; } + else { s.callLocIdx = 1210; s.pc = 6; return s.tmp_1; } } case 6: r0 = s.retval; @@ -42007,7 +42997,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.pc = 7; return s.tmp_3; } + else { s.callLocIdx = 1211; s.pc = 7; return s.tmp_3; } } case 7: r0 = s.retval; @@ -42019,36 +43009,36 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___160054; - s.tmp_9 = Math_FastRandom_randomRange__P145664_mk(s); + s.tmp_5 = r0 = s.p___36078; + s.tmp_9 = Math_FastRandom_randomRange__P21154_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.pc = 8; return s.tmp_9; + s.callLocIdx = 1209; 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___160054.fields["_y"]; + r0 = s.p___36078.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___160054; + r0 = s.p___36078; return leave(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P145885.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__P21294.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__P145885_mk(s) { +function particles_AreaFactory_createParticle__P21294_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P145885, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_createParticle__P21294, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42062,7 +43052,7 @@ function particles_AreaFactory_createParticle__P145885_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - p___160054: undefined, + p___36078: undefined, arg0: undefined, arg1: undefined, } } @@ -42071,7 +43061,7 @@ function particles_AreaFactory_createParticle__P145885_mk(s) { -function particles_SprayFactory_createParticle__P145878(s) { +function particles_SprayFactory_createParticle__P21284(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42081,39 +43071,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___160103 = undefined; - s.angle___160107 = undefined; + s.p___36126 = undefined; + s.angle___36130 = 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__C145876_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P145873_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C21282_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P21280_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 1194; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___160103 = (r0); + s.p___36126 = (r0); r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P145664_mk(s); - s.tmp_3.arg0 = globals.galois___145855; + s.tmp_3 = Math_FastRandom_randomRange__P21154_mk(s); + s.tmp_3.arg0 = globals.galois___22810; s.tmp_3.arg1 = 0; r0 = s.arg0.fields["spread"]; s.tmp_3.arg2 = r0; - s.pc = 2; return s.tmp_3; + s.callLocIdx = 1195; 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___160107 = (r0); - s.tmp_0 = r0 = s.p___160103; - r0 = pxsim_Array__getAt(globals.cachedSin___145850, s.angle___160107); + s.angle___36130 = (r0); + s.tmp_0 = r0 = s.p___36126; + r0 = pxsim_Array__getAt(globals.cachedSin___22805, s.angle___36130); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -42122,8 +43112,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___160103; - r0 = pxsim_Array__getAt(globals.cachedCos___145851, s.angle___160107); + s.tmp_0 = r0 = s.p___36126; + r0 = pxsim_Array__getAt(globals.cachedCos___22806, s.angle___36130); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -42132,24 +43122,24 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___160103; + r0 = s.p___36126; return leave(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P145878.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__P21284.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__P145878_mk(s) { +function particles_SprayFactory_createParticle__P21284_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P145878, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P21284, depth: s.depth + 1, pc: 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___160103: undefined, - angle___160107: undefined, + p___36126: undefined, + angle___36130: undefined, arg0: undefined, arg1: undefined, } } @@ -42158,7 +43148,7 @@ function particles_SprayFactory_createParticle__P145878_mk(s) { -function Sprite_toString__P144937(s) { +function scene_Camera_y__P20934(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42173,7 +43163,95 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C20924_VT)) failedCast(r0); + r0 = s.arg0.fields["drawOffsetY"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___20366); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_y__P20934.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__P20934.isGetter = true; + +function scene_Camera_y__P20934_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_y__P20934, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, +} } + + + + + +function scene_Camera_x__P20933(s) { +let r0 = s.r0, 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__C20924_VT)) failedCast(r0); + r0 = s.arg0.fields["drawOffsetX"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___20366); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_x__P20933.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__P20933.isGetter = true; + +function scene_Camera_x__P20933_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_x__P20933, 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 Sprite_toString__P20654(s) { +let r0 = s.r0, 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__C20580_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -42191,9 +43269,9 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P144885_mk(s); + s.tmp_14 = Sprite_x__P20589_mk(s); s.tmp_14.arg0 = s.arg0; - s.pc = 2; return s.tmp_14; + s.callLocIdx = 472; s.pc = 2; return s.tmp_14; case 2: r0 = s.retval; s.tmp_13 = r0; @@ -42210,9 +43288,9 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P144887_mk(s); + s.tmp_17 = Sprite_y__P20591_mk(s); s.tmp_17.arg0 = s.arg0; - s.pc = 4; return s.tmp_17; + s.callLocIdx = 473; s.pc = 4; return s.tmp_17; case 4: r0 = s.retval; s.tmp_16 = r0; @@ -42229,9 +43307,9 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P144889_mk(s); + s.tmp_20 = Sprite_vx__P20593_mk(s); s.tmp_20.arg0 = s.arg0; - s.pc = 6; return s.tmp_20; + s.callLocIdx = 474; s.pc = 6; return s.tmp_20; case 6: r0 = s.retval; s.tmp_19 = r0; @@ -42248,9 +43326,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P144891_mk(s); + s.tmp_23 = Sprite_vy__P20595_mk(s); s.tmp_23.arg0 = s.arg0; - s.pc = 8; return s.tmp_23; + s.callLocIdx = 475; s.pc = 8; return s.tmp_23; case 8: r0 = s.retval; s.tmp_22 = r0; @@ -42269,12 +43347,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P144937.info = {"start":32506,"length":93,"line":962,"column":4,"endLine":964,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} +Sprite_toString__P20654.info = {"start":33194,"length":93,"line":980,"column":4,"endLine":982,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} -function Sprite_toString__P144937_mk(s) { +function Sprite_toString__P20654_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P144937, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P20654, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42307,7 +43385,7 @@ function Sprite_toString__P144937_mk(s) { -function Sprite___update__P144925(s) { +function Sprite___update__P20642(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42317,8 +43395,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bounce___160421 = undefined; - s.tm___160426 = undefined; + s.bounce___36243 = undefined; + s.tm___36248 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -42326,7 +43404,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -42348,9 +43426,9 @@ 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__P144935_mk(s); + s.tmp_0 = Sprite__destroyCore__P20652_mk(s); s.tmp_0.arg0 = s.arg0; - s.pc = 33; return s.tmp_0; + s.callLocIdx = 408; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; case 1: @@ -42366,10 +43444,10 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_isOutOfScreen__P144923_mk(s); + s.tmp_2 = Sprite_isOutOfScreen__P20640_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.pc = 34; return s.tmp_2; + s.callLocIdx = 409; s.pc = 34; return s.tmp_2; case 34: r0 = s.retval; case 6: @@ -42377,11 +43455,11 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P144934_mk(s); + s.tmp_4 = Sprite_destroy__P20651_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; - s.pc = 35; return s.tmp_4; + s.callLocIdx = 410; s.pc = 35; return s.tmp_4; case 35: r0 = s.retval; case 7: @@ -42389,13 +43467,13 @@ switch (step) { r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___160421 = (r0); - s.tmp_0 = game_currentScene__P145074_mk(s); - s.pc = 36; return s.tmp_0; + s.bounce___36243 = (r0); + s.tmp_0 = game_currentScene__P21096_mk(s); + s.callLocIdx = 411; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___160426 = (r0); + s.tm___36248 = (r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); @@ -42405,13 +43483,13 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 9: - s.tmp_2 = r0 = s.bounce___160421; + s.tmp_2 = r0 = s.bounce___36243; 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___160426); + r0 = pxsim_numops_toBoolDecr(s.tm___36248); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 11: @@ -42423,9 +43501,9 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 29; continue; } - s.tmp_8 = Sprite_left__P144909_mk(s); + s.tmp_8 = Sprite_left__P20626_mk(s); s.tmp_8.arg0 = s.arg0; - s.pc = 37; return s.tmp_8; + s.callLocIdx = 412; s.pc = 37; return s.tmp_8; case 37: r0 = s.retval; s.tmp_7 = r0; @@ -42435,41 +43513,41 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 15; continue; } - s.tmp_10 = Sprite_left__P144910_mk(s); + s.tmp_10 = Sprite_left__P20627_mk(s); s.tmp_10.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_10.arg1 = r0; - s.pc = 38; return s.tmp_10; + s.callLocIdx = 415; s.pc = 38; return s.tmp_10; case 38: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___160421); + r0 = pxsim_numops_toBoolDecr(s.bounce___36243); if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_vx__P144890_mk(s); + s.tmp_0 = Sprite_vx__P20594_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P144889_mk(s); + s.tmp_2 = Sprite_vx__P20593_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 40; return s.tmp_2; + s.callLocIdx = 416; s.pc = 40; return s.tmp_2; case 40: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.pc = 39; return s.tmp_0; + s.callLocIdx = 417; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; case 13: case 14: { step = 20; continue; } case 15: - s.tmp_2 = Sprite_right__P144911_mk(s); + s.tmp_2 = Sprite_right__P20628_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 41; return s.tmp_2; + s.callLocIdx = 418; s.pc = 41; return s.tmp_2; case 41: r0 = s.retval; s.tmp_1 = r0; r0 = s.arg1.fields["_offsetX"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -42477,30 +43555,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.tmp_6 = Sprite_right__P144912_mk(s); + s.tmp_6 = Sprite_right__P20629_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___144693); + r0 = pxsim_ImageMethods.width(globals.screen___20366); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; - s.pc = 42; return s.tmp_6; + s.callLocIdx = 421; s.pc = 42; return s.tmp_6; case 42: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___160421); + r0 = pxsim_numops_toBoolDecr(s.bounce___36243); if (!r0) { step = 16; continue; } - s.tmp_0 = Sprite_vx__P144890_mk(s); + s.tmp_0 = Sprite_vx__P20594_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P144889_mk(s); + s.tmp_2 = Sprite_vx__P20593_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 44; return s.tmp_2; + s.callLocIdx = 422; s.pc = 44; return s.tmp_2; case 44: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.pc = 43; return s.tmp_0; + s.callLocIdx = 423; s.pc = 43; return s.tmp_0; case 43: r0 = s.retval; case 16: @@ -42508,9 +43586,9 @@ switch (step) { case 18: case 19: case 20: - s.tmp_2 = Sprite_top__P144913_mk(s); + s.tmp_2 = Sprite_top__P20630_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 45; return s.tmp_2; + s.callLocIdx = 424; s.pc = 45; return s.tmp_2; case 45: r0 = s.retval; s.tmp_1 = r0; @@ -42520,41 +43598,41 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 23; continue; } - s.tmp_4 = Sprite_top__P144914_mk(s); + s.tmp_4 = Sprite_top__P20631_mk(s); s.tmp_4.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4.arg1 = r0; - s.pc = 46; return s.tmp_4; + s.callLocIdx = 427; s.pc = 46; return s.tmp_4; case 46: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___160421); + r0 = pxsim_numops_toBoolDecr(s.bounce___36243); if (!r0) { step = 21; continue; } - s.tmp_0 = Sprite_vy__P144892_mk(s); + s.tmp_0 = Sprite_vy__P20596_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P144891_mk(s); + s.tmp_2 = Sprite_vy__P20595_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 48; return s.tmp_2; + s.callLocIdx = 428; s.pc = 48; return s.tmp_2; case 48: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.pc = 47; return s.tmp_0; + s.callLocIdx = 429; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; case 21: case 22: { step = 28; continue; } case 23: - s.tmp_2 = Sprite_bottom__P144915_mk(s); + s.tmp_2 = Sprite_bottom__P20632_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 49; return s.tmp_2; + s.callLocIdx = 430; s.pc = 49; return s.tmp_2; case 49: r0 = s.retval; s.tmp_1 = r0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___144693); + r0 = pxsim_ImageMethods.height(globals.screen___20366); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -42562,30 +43640,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_6 = Sprite_bottom__P144916_mk(s); + s.tmp_6 = Sprite_bottom__P20633_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___144693); + r0 = pxsim_ImageMethods.height(globals.screen___20366); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; - s.pc = 50; return s.tmp_6; + s.callLocIdx = 433; s.pc = 50; return s.tmp_6; case 50: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___160421); + r0 = pxsim_numops_toBoolDecr(s.bounce___36243); if (!r0) { step = 24; continue; } - s.tmp_0 = Sprite_vy__P144892_mk(s); + s.tmp_0 = Sprite_vy__P20596_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P144891_mk(s); + s.tmp_2 = Sprite_vy__P20595_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 52; return s.tmp_2; + s.callLocIdx = 434; s.pc = 52; return s.tmp_2; case 52: r0 = s.retval; s.tmp_1 = r0; r0 = (0 - s.tmp_1); s.tmp_0.arg1 = r0; - s.pc = 51; return s.tmp_0; + s.callLocIdx = 435; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; case 24: @@ -42605,12 +43683,12 @@ switch (step) { s.tmp_1.arg2 = s.arg1; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "updateSay"), 3); - s.pc = 53; return s.tmp_1; + s.callLocIdx = 436; s.pc = 53; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["updateSay"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["updateSay"], 3); s.pc = 53; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.pc = 53; return s.tmp_1;; } - else { s.pc = 53; return s.tmp_1; } + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["updateSay"], 3); s.callLocIdx = 436; s.pc = 53; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 436; s.pc = 53; return s.tmp_1;; } + else { s.callLocIdx = 436; s.pc = 53; return s.tmp_1; } } case 53: r0 = s.retval; @@ -42620,12 +43698,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P144925.info = {"start":22011,"length":1390,"line":673,"column":4,"endLine":712,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +Sprite___update__P20642.info = {"start":22253,"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__P144925_mk(s) { +function Sprite___update__P20642_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P144925, depth: s.depth + 1, + parent: s, fn: Sprite___update__P20642, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42638,8 +43716,8 @@ function Sprite___update__P144925_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - bounce___160421: undefined, - tm___160426: undefined, + bounce___36243: undefined, + tm___36248: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -42649,7 +43727,7 @@ function Sprite___update__P144925_mk(s) { -function Sprite_bottom__P144916(s) { +function Sprite_bottom__P20633(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42665,8 +43743,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P144914_mk(s); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P20631_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; r0 = s.arg0.fields["_image"]; @@ -42675,19 +43753,19 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.pc = 1; return s.tmp_0; + s.callLocIdx = 302; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_bottom__P144916.info = {"start":10119,"length":73,"line":366,"column":4,"endLine":368,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +Sprite_bottom__P20633.info = {"start":10235,"length":73,"line":374,"column":4,"endLine":376,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} -function Sprite_bottom__P144916_mk(s) { +function Sprite_bottom__P20633_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P144916, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P20633, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42701,7 +43779,7 @@ function Sprite_bottom__P144916_mk(s) { -function Sprite_data__P144902(s) { +function Sprite_data__P20606(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42717,18 +43795,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P144902.info = {"start":4292,"length":56,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} +Sprite_data__P20606.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__P144902_mk(s) { +function Sprite_data__P20606_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P144902, depth: s.depth + 1, + parent: s, fn: Sprite_data__P20606, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -42738,7 +43816,7 @@ function Sprite_data__P144902_mk(s) { -function sprites_BaseSprite___update__P144760(s) { +function sprites_BaseSprite___update__P20430(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42755,17 +43833,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C144754_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C20422_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P144760.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__P20430.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__P144760_mk(s) { +function sprites_BaseSprite___update__P20430_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P144760, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P20430, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -42776,7 +43854,7 @@ function sprites_BaseSprite___update__P144760_mk(s) { -function sprites_BaseSprite___draw__P144758(s) { +function sprites_BaseSprite___draw__P20428(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42792,10 +43870,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C144754_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C144754_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C20422_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C20422_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C144754_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C20422_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: @@ -42803,10 +43881,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C144754_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C20422_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C144754_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C20422_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: @@ -42817,12 +43895,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P144758.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__P20428.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__P144758_mk(s) { +function sprites_BaseSprite___draw__P20428_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P144758, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P20428, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42835,7 +43913,7 @@ function sprites_BaseSprite___draw__P144758_mk(s) { -function sprites_BaseSprite___drawCore__P144759(s) { +function sprites_BaseSprite___drawCore__P20429(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42851,17 +43929,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C144754_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C20422_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P144759.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__P20429.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__P144759_mk(s) { +function sprites_BaseSprite___drawCore__P20429_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P144759, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P20429, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -42871,7 +43949,7 @@ function sprites_BaseSprite___drawCore__P144759_mk(s) { -function sprites_BaseSprite___visible__P144755(s) { +function sprites_BaseSprite___visible__P20425(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42886,17 +43964,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C144754_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C20422_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P144755.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__P20425.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__P144755_mk(s) { +function sprites_BaseSprite___visible__P20425_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P144755, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P20425, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -42905,7 +43983,7 @@ function sprites_BaseSprite___visible__P144755_mk(s) { -function controller_AnyButton_isPressed__P144823(s) { +function controller_AnyButton_isPressed__P22281(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42915,36 +43993,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___160524 = undefined; - s.b___160528 = undefined; - s.unnamed4586___U2 = undefined; - s.unnamed4587___U3 = undefined; + s.ctrl___36345 = undefined; + s.b___36349 = undefined; + s.unnamed226___U2 = undefined; + s.unnamed227___U3 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C144821_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P144827_mk(s); - s.pc = 6; return s.tmp_0; + if (!checkSubtype(r0, controller_AnyButton__C22279_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P20481_mk(s); + s.callLocIdx = 157; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___160524 = (r0); - s.b___160528 = (undefined); - r0 = s.ctrl___160524.fields["buttons"]; - s.unnamed4586___U2 = (r0); - s.unnamed4587___U3 = (0); + s.ctrl___36345 = (r0); + s.b___36349 = (undefined); + r0 = s.ctrl___36345.fields["buttons"]; + s.unnamed226___U2 = (r0); + s.unnamed227___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed4587___U3; - r0 = pxsim_Array__length(s.unnamed4586___U2); + s.tmp_0 = r0 = s.unnamed227___U3; + r0 = pxsim_Array__length(s.unnamed226___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed4586___U2, s.unnamed4587___U3); - s.b___160528 = (r0); - s.tmp_3 = controller_Button__C144809_v0_1_mk(s); - s.tmp_3.arg0 = s.b___160528; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C144809_VT)) failedCast(s.tmp_3.arg0); + r0 = pxsim_Array__getAt(s.unnamed226___U2, s.unnamed227___U3); + s.b___36349 = (r0); + s.tmp_3 = controller_Button__C20467_v0_1_mk(s); + s.tmp_3.arg0 = s.b___36349; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C20467_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: @@ -42956,31 +44034,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed4587___U3 + 1); - s.unnamed4587___U3 = (r0); + r0 = (s.unnamed227___U3 + 1); + s.unnamed227___U3 = (r0); { step = 1; continue; } case 4: - s.unnamed4586___U2 = (undefined); + s.unnamed226___U2 = (undefined); r0 = false; case 5: return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P144823.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__P22281.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__P144823_mk(s) { +function controller_AnyButton_isPressed__P22281_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P144823, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P22281, depth: s.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___160524: undefined, - b___160528: undefined, - unnamed4586___U2: undefined, - unnamed4587___U3: undefined, + ctrl___36345: undefined, + b___36349: undefined, + unnamed226___U2: undefined, + unnamed227___U3: undefined, arg0: undefined, } } @@ -42988,7 +44066,7 @@ function controller_AnyButton_isPressed__P144823_mk(s) { -function controller_Button_toString__P144810(s) { +function controller_Button_toString__P20472(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43003,7 +44081,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C144809_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C20467_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -43043,12 +44121,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P144810.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__P20472.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__P144810_mk(s) { +function controller_Button_toString__P20472_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P144810, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P20472, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43064,7 +44142,7 @@ function controller_Button_toString__P144810_mk(s) { -function sprites_StaticObstacle_width__P144989(s) { +function sprites_StaticObstacle_width__P20720(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43079,20 +44157,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C144985_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20710_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__P144989.info = {"start":1084,"length":68,"line":48,"column":8,"endLine":50,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"width","argumentNames":["this"]} -sprites_StaticObstacle_width__P144989.isGetter = true; +sprites_StaticObstacle_width__P20720.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__P20720.isGetter = true; -function sprites_StaticObstacle_width__P144989_mk(s) { +function sprites_StaticObstacle_width__P20720_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_width__P144989, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_width__P20720, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -43102,7 +44180,7 @@ function sprites_StaticObstacle_width__P144989_mk(s) { -function sprites_StaticObstacle_height__P144988(s) { +function sprites_StaticObstacle_height__P20719(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43117,20 +44195,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C144985_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20710_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__P144988.info = {"start":1004,"length":70,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"height","argumentNames":["this"]} -sprites_StaticObstacle_height__P144988.isGetter = true; +sprites_StaticObstacle_height__P20719.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__P20719.isGetter = true; -function sprites_StaticObstacle_height__P144988_mk(s) { +function sprites_StaticObstacle_height__P20719_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_height__P144988, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_height__P20719, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -43140,7 +44218,7 @@ function sprites_StaticObstacle_height__P144988_mk(s) { -function sprites_StaticObstacle_y__P144987(s) { +function sprites_StaticObstacle_y__P20718(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43155,26 +44233,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C144985_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20710_VT)) failedCast(r0); r0 = s.arg0.fields["top"]; - s.tmp_1 = r0; + s.tmp_0 = r0; r0 = s.arg0.fields["image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_y__P144987.info = {"start":919,"length":75,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"y","argumentNames":["this"]} -sprites_StaticObstacle_y__P144987.isGetter = true; +sprites_StaticObstacle_y__P20718.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__P20718.isGetter = true; -function sprites_StaticObstacle_y__P144987_mk(s) { +function sprites_StaticObstacle_y__P20718_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_y__P144987, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_y__P20718, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43187,7 +44265,7 @@ function sprites_StaticObstacle_y__P144987_mk(s) { -function sprites_StaticObstacle_x__P144986(s) { +function sprites_StaticObstacle_x__P20717(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43202,26 +44280,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C144985_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C20710_VT)) failedCast(r0); r0 = s.arg0.fields["left"]; - s.tmp_1 = r0; + s.tmp_0 = r0; r0 = s.arg0.fields["image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.width(s.tmp_3); s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_x__P144986.info = {"start":834,"length":75,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"x","argumentNames":["this"]} -sprites_StaticObstacle_x__P144986.isGetter = true; +sprites_StaticObstacle_x__P20717.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__P20717.isGetter = true; -function sprites_StaticObstacle_x__P144986_mk(s) { +function sprites_StaticObstacle_x__P20717_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_x__P144986, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_x__P20717, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43234,7 +44312,7 @@ function sprites_StaticObstacle_x__P144986_mk(s) { -function scene_Renderable___drawCore__P145244(s) { +function scene_Renderable___drawCore__P20945(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43250,19 +44328,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C145241_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C20942_VT)) failedCast(r0); s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___144693; + s.tmp_0.arg1 = globals.screen___20366; 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); - s.pc = 1; return s.tmp_0; + s.callLocIdx = 877; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 1; return s.tmp_0;; } - else { s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 877; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 877; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 877; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -43270,12 +44348,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___drawCore__P145244.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__P20945.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__P145244_mk(s) { +function scene_Renderable___drawCore__P20945_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___drawCore__P145244, depth: s.depth + 1, + parent: s, fn: scene_Renderable___drawCore__P20945, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -43286,7 +44364,7 @@ function scene_Renderable___drawCore__P145244_mk(s) { -function scene_Renderable___visible__P145243(s) { +function scene_Renderable___visible__P20944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43301,29 +44379,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C145241_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C20942_VT)) failedCast(r0); s.tmp_0 = if_shouldBeVisible_1_mk(s); s.tmp_0.arg0 = s.arg0; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "shouldBeVisible"), 1); - s.pc = 1; return s.tmp_0; + s.callLocIdx = 876; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["shouldBeVisible"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["shouldBeVisible"], 1); s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.pc = 1; return s.tmp_0;; } - else { s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["shouldBeVisible"], 1); s.callLocIdx = 876; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 876; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 876; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -scene_Renderable___visible__P145243.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__P20944.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__P145243_mk(s) { +function scene_Renderable___visible__P20944_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P145243, depth: s.depth + 1, + parent: s, fn: scene_Renderable___visible__P20944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -43333,7 +44411,7 @@ function scene_Renderable___visible__P145243_mk(s) { -function particles_AshFactory_drawParticle__P145920(s) { +function particles_AshFactory_drawParticle__P21325(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43351,8 +44429,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AshFactory__C145917_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___144693; + if (!checkSubtype(r0, particles_AshFactory__C21322_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___20366; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -43368,12 +44446,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_AshFactory_drawParticle__P145920.info = {"start":13926,"length":117,"line":444,"column":8,"endLine":446,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} +particles_AshFactory_drawParticle__P21325.info = {"start":13926,"length":117,"line":444,"column":8,"endLine":446,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"drawParticle","argumentNames":["this","p","x","y"]} -function particles_AshFactory_drawParticle__P145920_mk(s) { +function particles_AshFactory_drawParticle__P21325_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AshFactory_drawParticle__P145920, depth: s.depth + 1, + parent: s, fn: particles_AshFactory_drawParticle__P21325, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43391,7 +44469,7 @@ function particles_AshFactory_drawParticle__P145920_mk(s) { -function particles_ShapeFactory_drawParticle__P145896(s) { +function particles_ShapeFactory_drawParticle__P21307(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43401,7 +44479,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___160576 = undefined; + s.pImage___36399 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -43410,23 +44488,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C145893_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P145665_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C21304_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P21155_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; s.tmp_1.arg1 = r0; - s.pc = 1; return s.tmp_1; + s.callLocIdx = 1218; 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___160576 = (r0); + s.pImage___36399 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___160576, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___144693; - s.tmp_1 = r0 = s.pImage___160576; + r0 = pxsim_ImageMethods.replace(s.pImage___36399, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___20366; + s.tmp_1 = r0 = s.pImage___36399; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -43448,12 +44526,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P145896.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__P21307.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__P145896_mk(s) { +function particles_ShapeFactory_drawParticle__P21307_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P145896, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P21307, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43465,7 +44543,7 @@ function particles_ShapeFactory_drawParticle__P145896_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___160576: undefined, + pImage___36399: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -43476,7 +44554,7 @@ function particles_ShapeFactory_drawParticle__P145896_mk(s) { -function Math_FastRandom_pickRandom__P145665(s) { +function Math_FastRandom_pickRandom__P21155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43492,7 +44570,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C145662_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C21150_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -43515,14 +44593,14 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P145664_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P21154_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.pc = 6; return s.tmp_6; + s.callLocIdx = 946; s.pc = 6; return s.tmp_6; case 6: r0 = s.retval; s.tmp_5 = r0; @@ -43531,12 +44609,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P145665.info = {"start":2325,"length":192,"line":69,"column":8,"endLine":74,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"pickRandom","argumentNames":["this","list"]} +Math_FastRandom_pickRandom__P21155.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__P145665_mk(s) { +function Math_FastRandom_pickRandom__P21155_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P145665, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P21155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43554,7 +44632,7 @@ function Math_FastRandom_pickRandom__P145665_mk(s) { -function particles_AreaFactory_drawParticle__P145886(s) { +function particles_AreaFactory_drawParticle__P21295(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43564,7 +44642,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___160623 = undefined; + s.col___36458 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -43573,7 +44651,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C145883_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AreaFactory__C21288_VT)) failedCast(r0); r0 = s.arg1.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 500); @@ -43600,8 +44678,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___160623 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___144693; + s.col___36458 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___20366; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -43610,17 +44688,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___160623); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___36458); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_drawParticle__P145886.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__P21295.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__P145886_mk(s) { +function particles_AreaFactory_drawParticle__P21295_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_drawParticle__P145886, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P21295, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43628,7 +44706,7 @@ function particles_AreaFactory_drawParticle__P145886_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___160623: undefined, + col___36458: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -43639,7 +44717,7 @@ function particles_AreaFactory_drawParticle__P145886_mk(s) { -function particles_SprayFactory_drawParticle__P145879(s) { +function particles_SprayFactory_drawParticle__P21285(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43657,8 +44735,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C145876_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___144693; + if (!checkSubtype(r0, particles_SprayFactory__C21282_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___20366; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -43672,12 +44750,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P145879.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__P21285.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__P145879_mk(s) { +function particles_SprayFactory_drawParticle__P21285_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P145879, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P21285, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43694,7 +44772,42 @@ function particles_SprayFactory_drawParticle__P145879_mk(s) { -function Sprite___drawCore__P144924(s) { +function scene_Camera_top__P20937(s) { +let r0 = s.r0, 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__C20924_VT)) failedCast(r0); + r0 = s.arg0.fields["drawOffsetY"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_top__P20937.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__P20937.isGetter = true; + +function scene_Camera_top__P20937_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_top__P20937, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function scene_Camera_left__P20935(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43704,24 +44817,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___160654 = undefined; - s.oy___160662 = undefined; - s.l___160670 = undefined; - s.t___160674 = undefined; - s.font___160690 = undefined; - s.tx___160694 = undefined; - s.ty___160696 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C20924_VT)) failedCast(r0); + r0 = s.arg0.fields["drawOffsetX"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Camera_left__P20935.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__P20935.isGetter = true; + +function scene_Camera_left__P20935_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Camera_left__P20935, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function Sprite___drawCore__P20641(s) { +let r0 = s.r0, 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.ox___36495 = undefined; + s.oy___36503 = undefined; + s.l___36511 = undefined; + s.t___36515 = undefined; + s.font___36530 = undefined; + s.tx___36534 = undefined; + s.ty___36536 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); - s.tmp_1 = Sprite_isOutOfScreen__P144923_mk(s); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); + s.tmp_1 = Sprite_isOutOfScreen__P20640_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; - s.pc = 20; return s.tmp_1; + s.callLocIdx = 381; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; s.tmp_0 = r0; @@ -43743,7 +44891,7 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___160654 = (s.tmp_4); + s.ox___36495 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -43757,35 +44905,35 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___160662 = (s.tmp_2); - s.tmp_1 = Sprite_left__P144909_mk(s); + s.oy___36503 = (s.tmp_2); + s.tmp_1 = Sprite_left__P20626_mk(s); s.tmp_1.arg0 = s.arg0; - s.pc = 21; return s.tmp_1; + s.callLocIdx = 382; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.ox___160654); - s.l___160670 = (r0); - s.tmp_1 = Sprite_top__P144913_mk(s); + r0 = (s.tmp_0 - s.ox___36495); + s.l___36511 = (r0); + s.tmp_1 = Sprite_top__P20630_mk(s); s.tmp_1.arg0 = s.arg0; - s.pc = 22; return s.tmp_1; + s.callLocIdx = 383; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.oy___160662); - s.t___160674 = (r0); + r0 = (s.tmp_0 - s.oy___36503); + s.t___36515 = (r0); r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___144693, s.tmp_0, s.l___160670, s.t___160674); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___20366, s.tmp_0, s.l___36511, s.t___36515); 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___160690 = (globals.font5___144652); - s.tx___160694 = (s.l___160670); - s.tmp_1 = r0 = s.t___160674; + s.font___36530 = (globals.font5___20314); + s.tx___36534 = (s.l___36511); + s.tmp_1 = r0 = s.t___36515; r0 = s.arg0.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.height(s.tmp_3); @@ -43793,14 +44941,14 @@ switch (step) { r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 + 2); - s.ty___160696 = (r0); - s.tmp_0 = helpers_imagePrint__P144656_mk(s); - s.tmp_0.arg0 = globals.screen___144693; + s.ty___36536 = (r0); + s.tmp_0 = helpers_imagePrint__P20324_mk(s); + s.tmp_0.arg0 = globals.screen___20366; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P144885_mk(s); + s.tmp_7 = Sprite_x__P20589_mk(s); s.tmp_7.arg0 = s.arg0; - s.pc = 24; return s.tmp_7; + s.callLocIdx = 385; s.pc = 24; return s.tmp_7; case 24: r0 = s.retval; s.tmp_6 = r0; @@ -43819,9 +44967,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_11 = Sprite_y__P144887_mk(s); + s.tmp_11 = Sprite_y__P20591_mk(s); s.tmp_11.arg0 = s.arg0; - s.pc = 26; return s.tmp_11; + s.callLocIdx = 386; s.pc = 26; return s.tmp_11; case 26: r0 = s.retval; s.tmp_10 = r0; @@ -43838,33 +44986,33 @@ 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___160694; - s.tmp_0.arg3 = s.ty___160696; + s.tmp_0.arg2 = s.tx___36534; + s.tmp_0.arg3 = s.ty___36536; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___160690; + s.tmp_0.arg5 = s.font___36530; s.tmp_0.arg6 = undefined; - s.pc = 23; return s.tmp_0; + s.callLocIdx = 387; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - s.tmp_0 = r0 = s.tx___160694; + s.tmp_0 = r0 = s.tx___36534; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___160690; + s.tmp_2.arg0 = s.font___36530; 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.pc = 28; return s.tmp_2; } + else { s.callLocIdx = 388; s.pc = 28; return s.tmp_2; } } case 28: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.tx___160694 = (r0); - s.tmp_1 = Sprite_vx__P144889_mk(s); + s.tx___36534 = (r0); + s.tmp_1 = Sprite_vx__P20593_mk(s); s.tmp_1.arg0 = s.arg0; - s.pc = 29; return s.tmp_1; + s.callLocIdx = 389; s.pc = 29; return s.tmp_1; case 29: r0 = s.retval; s.tmp_0 = r0; @@ -43873,9 +45021,9 @@ switch (step) { r0 = s.tmp_0; { step = 8; continue; } case 7: - s.tmp_2 = Sprite_vy__P144891_mk(s); + s.tmp_2 = Sprite_vy__P20595_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 30; return s.tmp_2; + s.callLocIdx = 390; s.pc = 30; return s.tmp_2; case 30: r0 = s.retval; case 8: @@ -43883,16 +45031,16 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 9; continue; } - s.tmp_4 = r0 = s.ty___160696; + s.tmp_4 = r0 = s.ty___36536; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___160690; + s.tmp_7.arg0 = s.font___36530; 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.pc = 31; return s.tmp_7; } + else { s.callLocIdx = 391; s.pc = 31; return s.tmp_7; } } case 31: r0 = s.retval; @@ -43900,12 +45048,12 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___160696 = (r0); - s.tmp_0 = helpers_imagePrint__P144656_mk(s); - s.tmp_0.arg0 = globals.screen___144693; - s.tmp_6 = Sprite_vx__P144889_mk(s); + s.ty___36536 = (r0); + s.tmp_0 = helpers_imagePrint__P20324_mk(s); + s.tmp_0.arg0 = globals.screen___20366; + s.tmp_6 = Sprite_vx__P20593_mk(s); s.tmp_6.arg0 = s.arg0; - s.pc = 33; return s.tmp_6; + s.callLocIdx = 392; s.pc = 33; return s.tmp_6; case 33: r0 = s.retval; s.tmp_5 = r0; @@ -43924,9 +45072,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_vy__P144891_mk(s); + s.tmp_10 = Sprite_vy__P20595_mk(s); s.tmp_10.arg0 = s.arg0; - s.pc = 35; return s.tmp_10; + s.callLocIdx = 393; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; s.tmp_9 = r0; @@ -43943,19 +45091,19 @@ 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___160694; - s.tmp_0.arg3 = s.ty___160696; + s.tmp_0.arg2 = s.tx___36534; + s.tmp_0.arg3 = s.ty___36536; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___160690; + s.tmp_0.arg5 = s.font___36530; s.tmp_0.arg6 = undefined; - s.pc = 32; return s.tmp_0; + s.callLocIdx = 394; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; case 9: case 10: - s.tmp_1 = Sprite_ax__P144893_mk(s); + s.tmp_1 = Sprite_ax__P20597_mk(s); s.tmp_1.arg0 = s.arg0; - s.pc = 37; return s.tmp_1; + s.callLocIdx = 395; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; s.tmp_0 = r0; @@ -43964,9 +45112,9 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 11: - s.tmp_2 = Sprite_ay__P144895_mk(s); + s.tmp_2 = Sprite_ay__P20599_mk(s); s.tmp_2.arg0 = s.arg0; - s.pc = 38; return s.tmp_2; + s.callLocIdx = 396; s.pc = 38; return s.tmp_2; case 38: r0 = s.retval; case 12: @@ -43974,16 +45122,16 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 13; continue; } - s.tmp_4 = r0 = s.ty___160696; + s.tmp_4 = r0 = s.ty___36536; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___160690; + s.tmp_7.arg0 = s.font___36530; 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.pc = 39; return s.tmp_7; } + else { s.callLocIdx = 397; s.pc = 39; return s.tmp_7; } } case 39: r0 = s.retval; @@ -43991,12 +45139,12 @@ switch (step) { r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___160696 = (r0); - s.tmp_0 = helpers_imagePrint__P144656_mk(s); - s.tmp_0.arg0 = globals.screen___144693; - s.tmp_6 = Sprite_ax__P144893_mk(s); + s.ty___36536 = (r0); + s.tmp_0 = helpers_imagePrint__P20324_mk(s); + s.tmp_0.arg0 = globals.screen___20366; + s.tmp_6 = Sprite_ax__P20597_mk(s); s.tmp_6.arg0 = s.arg0; - s.pc = 41; return s.tmp_6; + s.callLocIdx = 398; s.pc = 41; return s.tmp_6; case 41: r0 = s.retval; s.tmp_5 = r0; @@ -44015,9 +45163,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_ay__P144895_mk(s); + s.tmp_10 = Sprite_ay__P20599_mk(s); s.tmp_10.arg0 = s.arg0; - s.pc = 43; return s.tmp_10; + s.callLocIdx = 399; s.pc = 43; return s.tmp_10; case 43: r0 = s.retval; s.tmp_9 = r0; @@ -44034,26 +45182,26 @@ 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___160694; - s.tmp_0.arg3 = s.ty___160696; + s.tmp_0.arg2 = s.tx___36534; + s.tmp_0.arg3 = s.ty___36536; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___160690; + s.tmp_0.arg5 = s.font___36530; s.tmp_0.arg6 = undefined; - s.pc = 40; return s.tmp_0; + s.callLocIdx = 400; s.pc = 40; return s.tmp_0; case 40: r0 = s.retval; case 13: case 14: case 15: case 16: - r0 = pxsim_numops_toBoolDecr(globals.debug___145366); + r0 = pxsim_numops_toBoolDecr(globals.debug___21092); if (!r0) { step = 17; continue; } - s.tmp_0 = helpers_imageDrawRect__P144635_mk(s); - s.tmp_0.arg0 = globals.screen___144693; - s.tmp_3 = game_Hitbox_left__P144870_mk(s); + s.tmp_0 = helpers_imageDrawRect__P20295_mk(s); + s.tmp_0.arg0 = globals.screen___20366; + s.tmp_3 = game_Hitbox_left__P20530_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; - s.pc = 46; return s.tmp_3; + s.callLocIdx = 401; s.pc = 46; return s.tmp_3; case 46: r0 = s.retval; s.tmp_2 = r0; @@ -44061,12 +45209,12 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___160654); + r0 = (s.tmp_1 - s.ox___36495); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P144871_mk(s); + s.tmp_7 = game_Hitbox_top__P20531_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; - s.pc = 47; return s.tmp_7; + s.callLocIdx = 403; s.pc = 47; return s.tmp_7; case 47: r0 = s.retval; s.tmp_6 = r0; @@ -44074,7 +45222,7 @@ switch (step) { s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___160662); + r0 = (s.tmp_5 - s.oy___36503); s.tmp_0.arg2 = r0; r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; @@ -44091,7 +45239,7 @@ switch (step) { r0 = (s.tmp_12 >> 8); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.pc = 45; return s.tmp_0; + s.callLocIdx = 407; s.pc = 45; return s.tmp_0; case 45: r0 = s.retval; case 17: @@ -44101,12 +45249,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___drawCore__P144924.info = {"start":20622,"length":1383,"line":633,"column":4,"endLine":671,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +Sprite___drawCore__P20641.info = {"start":20864,"length":1383,"line":642,"column":4,"endLine":680,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function Sprite___drawCore__P144924_mk(s) { +function Sprite___drawCore__P20641_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P144924, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P20641, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44121,13 +45269,13 @@ function Sprite___drawCore__P144924_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - ox___160654: undefined, - oy___160662: undefined, - l___160670: undefined, - t___160674: undefined, - font___160690: undefined, - tx___160694: undefined, - ty___160696: undefined, + ox___36495: undefined, + oy___36503: undefined, + l___36511: undefined, + t___36515: undefined, + font___36530: undefined, + tx___36534: undefined, + ty___36536: undefined, arg0: undefined, arg1: undefined, } } @@ -44136,7 +45284,7 @@ function Sprite___drawCore__P144924_mk(s) { -function Sprite___visible__P144906(s) { +function Sprite___visible__P20623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -44151,7 +45299,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C144883_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C20580_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -44162,12 +45310,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P144906.info = {"start":8217,"length":72,"line":295,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} +Sprite___visible__P20623.info = {"start":8329,"length":72,"line":303,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} -function Sprite___visible__P144906_mk(s) { +function Sprite___visible__P20623_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P144906, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P20623, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -44194,7 +45342,35 @@ function lambda_3_mk(s) { } } -function PhysicsEngine__C144993_v2_4_mk(s) { +function if_charWidth_1_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: null, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, +} } + + +function if_charHeight_1_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: null, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, +} } + + +function if_updateSay_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44207,11 +45383,10 @@ function PhysicsEngine__C144993_v2_4_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function if_charWidth_1_mk(s) { +function if_z_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44222,10 +45397,11 @@ function if_charWidth_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_charHeight_1_mk(s) { +function if_z_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44239,7 +45415,7 @@ function if_charHeight_1_mk(s) { } } -function if_updateSay_3_mk(s) { +function PhysicsEngine__C20723_v2_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44252,6 +45428,7 @@ function if_updateSay_3_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } @@ -44342,7 +45519,7 @@ function if_flags_1_mk(s) { } } -function particles_ParticleFactory__C145872_v0_2_mk(s) { +function particles_ParticleFactory__C21278_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44357,7 +45534,7 @@ function particles_ParticleFactory__C145872_v0_2_mk(s) { } } -function particles_ParticleSource__C145812_v4_3_mk(s) { +function particles_ParticleSource__C21242_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44430,7 +45607,7 @@ function if_id_2_mk(s) { } } -function PhysicsEngine__C144993_v4_2_mk(s) { +function PhysicsEngine__C20723_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44476,7 +45653,7 @@ function lambda_2_mk(s) { } } -function PhysicsEngine__C144993_v3_1_mk(s) { +function PhysicsEngine__C20723_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44505,20 +45682,6 @@ function if___draw_2_mk(s) { } } -function if_z_1_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: null, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - arg0: undefined, -} } - - function if_id_1_mk(s) { checkStack(s.depth); return { @@ -44533,7 +45696,7 @@ function if_id_1_mk(s) { } } -function controller_Button__C144809_v0_1_mk(s) { +function controller_Button__C20467_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44691,7 +45854,7 @@ function if_sourceFactory_3_mk(s) { } } -function PhysicsEngine__C144993_v1_2_mk(s) { +function PhysicsEngine__C20723_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44751,7 +45914,7 @@ function if_comparator_3_mk(s) { } } -function PhysicsEngine__C144993_v0_2_mk(s) { +function PhysicsEngine__C20723_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44962,7 +46125,7 @@ function if_activeCard_1_mk(s) { } } -function if_z_2_mk(s) { +function if_handler_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44974,10 +46137,11 @@ function if_z_2_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function if_handler_3_mk(s) { +function if_tileIndex_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44988,12 +46152,24 @@ function if_handler_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function if_tileIndex_1_mk(s) { +function if_left_1_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: null, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, +} } + + +function if_top_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -45007,7 +46183,7 @@ function if_tileIndex_1_mk(s) { } } -function particles_ParticleFactory__C145872_v1_4_mk(s) { +function particles_ParticleFactory__C21278_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -45024,7 +46200,7 @@ function particles_ParticleFactory__C145872_v1_4_mk(s) { } } -function sprites_BaseSprite__C144754_v0_1_mk(s) { +function sprites_BaseSprite__C20422_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -45038,7 +46214,7 @@ function sprites_BaseSprite__C144754_v0_1_mk(s) { } } -function sprites_BaseSprite__C144754_v2_2_mk(s) { +function sprites_BaseSprite__C20422_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -45208,14 +46384,14 @@ function if_onEndHandler_1_mk(s) { arg0: undefined, } } -const controller_Button__C144809_VT = mkVTable({ +const controller_Button__C20467_VT = mkVTable({ name: "Button", numFields: 7, classNo: 16, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P144816, + "isPressed": controller_Button_isPressed__P20476, }, iface: { "_owner": null, @@ -45232,26 +46408,26 @@ const controller_Button__C144809_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "toString": controller_Button_toString__P144810, - "raiseButtonUp": controller_Button_raiseButtonUp__P144811, - "raiseButtonDown": controller_Button_raiseButtonDown__P144812, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P144813, - "onEvent": controller_Button_onEvent__P144814, - "isPressed": controller_Button_isPressed__P144816, - "pressureLevel": controller_Button_pressureLevel__P144817, - "setPressed": controller_Button_setPressed__P144818, - "__update": controller_Button___update__P144819, + "toString": controller_Button_toString__P20472, + "raiseButtonUp": controller_Button_raiseButtonUp__P22276, + "raiseButtonDown": controller_Button_raiseButtonDown__P22277, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P22278, + "onEvent": controller_Button_onEvent__P20474, + "isPressed": controller_Button_isPressed__P20476, + "pressureLevel": controller_Button_pressureLevel__P20477, + "setPressed": controller_Button_setPressed__P20478, + "__update": controller_Button___update__P20479, }, - toStringMethod: controller_Button_toString__P144810, + toStringMethod: controller_Button_toString__P20472, }); -const controller_AnyButton__C144821_VT = mkVTable({ +const controller_AnyButton__C22279_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 17, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P144823, + "isPressed": controller_AnyButton_isPressed__P22281, }, iface: { "_owner": null, @@ -45268,18 +46444,18 @@ const controller_AnyButton__C144821_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P144823, - "toString": controller_Button_toString__P144810, - "raiseButtonUp": controller_Button_raiseButtonUp__P144811, - "raiseButtonDown": controller_Button_raiseButtonDown__P144812, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P144813, - "onEvent": controller_Button_onEvent__P144814, - "pressureLevel": controller_Button_pressureLevel__P144817, - "setPressed": controller_Button_setPressed__P144818, - "__update": controller_Button___update__P144819, + "isPressed": controller_AnyButton_isPressed__P22281, + "toString": controller_Button_toString__P20472, + "raiseButtonUp": controller_Button_raiseButtonUp__P22276, + "raiseButtonDown": controller_Button_raiseButtonDown__P22277, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P22278, + "onEvent": controller_Button_onEvent__P20474, + "pressureLevel": controller_Button_pressureLevel__P20477, + "setPressed": controller_Button_setPressed__P20478, + "__update": controller_Button___update__P20479, }, }); -const Math_FastRandom__C145662_VT = mkVTable({ +const Math_FastRandom__C21150_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 18, @@ -45292,13 +46468,13 @@ const Math_FastRandom__C145662_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P145663, - "randomRange": Math_FastRandom_randomRange__P145664, - "pickRandom": Math_FastRandom_pickRandom__P145665, - "percentChance": Math_FastRandom_percentChance__P145667, + "next": Math_FastRandom_next__P21153, + "randomRange": Math_FastRandom_randomRange__P21154, + "pickRandom": Math_FastRandom_pickRandom__P21155, + "percentChance": Math_FastRandom_percentChance__P21157, }, }); -const texteffects_TextEffect__C146004_VT = mkVTable({ +const texteffects_TextEffect__C21395_VT = mkVTable({ name: "TextEffect", numFields: 1, classNo: 19, @@ -45311,63 +46487,42 @@ const texteffects_TextEffect__C146004_VT = mkVTable({ "set/getState": null, }, }); -const tiles_Location__C145167_VT = mkVTable({ - name: "Location", - numFields: 3, - classNo: 20, - lastSubtypeNo: 20, - maxBgInstances: null, - methods: { - }, - iface: { - "_row": null, - "set/_row": null, - "_col": null, - "set/_col": null, - "tileMap": null, - "set/tileMap": null, - "x": tiles_Location_x__P145168, - "y": tiles_Location_y__P145169, - "tileSet": tiles_Location_tileSet__P145170, - "place": tiles_Location_place__P145171, - }, -}); -const sprites_BaseSprite__C144754_VT = mkVTable({ +const sprites_BaseSprite__C20422_VT = mkVTable({ name: "BaseSprite", numFields: 2, - classNo: 21, - lastSubtypeNo: 24, + classNo: 20, + lastSubtypeNo: 23, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P144755, - "__draw": sprites_BaseSprite___draw__P144758, - "__drawCore": sprites_BaseSprite___drawCore__P144759, - "__update": sprites_BaseSprite___update__P144760, + "__visible": sprites_BaseSprite___visible__P20425, + "__draw": sprites_BaseSprite___draw__P20428, + "__drawCore": sprites_BaseSprite___drawCore__P20429, + "__update": sprites_BaseSprite___update__P20430, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "__visible": sprites_BaseSprite___visible__P144755, - "z": sprites_BaseSprite_z__P144756, - "set/z": sprites_BaseSprite_z__P144757, - "__draw": sprites_BaseSprite___draw__P144758, - "__drawCore": sprites_BaseSprite___drawCore__P144759, - "__update": sprites_BaseSprite___update__P144760, + "__visible": sprites_BaseSprite___visible__P20425, + "z": sprites_BaseSprite_z__P20426, + "set/z": sprites_BaseSprite_z__P20427, + "__draw": sprites_BaseSprite___draw__P20428, + "__drawCore": sprites_BaseSprite___drawCore__P20429, + "__update": sprites_BaseSprite___update__P20430, }, }); -const Sprite__C144883_VT = mkVTable({ +const Sprite__C20580_VT = mkVTable({ name: "Sprite", numFields: 26, - classNo: 22, - lastSubtypeNo: 22, + classNo: 21, + lastSubtypeNo: 21, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P144906, - "__draw": sprites_BaseSprite___draw__P144758, - "__drawCore": Sprite___drawCore__P144924, - "__update": Sprite___update__P144925, + "__visible": Sprite___visible__P20623, + "__draw": sprites_BaseSprite___draw__P20428, + "__drawCore": Sprite___drawCore__P20641, + "__update": Sprite___update__P20642, }, iface: { "_z": null, @@ -45422,63 +46577,65 @@ const Sprite__C144883_VT = mkVTable({ "set/flags": null, "destroyHandler": null, "set/destroyHandler": null, - "x": Sprite_x__P144885, - "set/x": Sprite_x__P144886, - "y": Sprite_y__P144887, - "set/y": Sprite_y__P144888, - "vx": Sprite_vx__P144889, - "set/vx": Sprite_vx__P144890, - "vy": Sprite_vy__P144891, - "set/vy": Sprite_vy__P144892, - "ax": Sprite_ax__P144893, - "set/ax": Sprite_ax__P144894, - "ay": Sprite_ay__P144895, - "set/ay": Sprite_ay__P144896, - "fx": Sprite_fx__P144897, - "set/fx": Sprite_fx__P144898, - "fy": Sprite_fy__P144899, - "set/fy": Sprite_fy__P144900, - "data": Sprite_data__P144901, - "set/data": Sprite_data__P144902, - "image": Sprite_image__P144904, - "setImage": Sprite_setImage__P144905, - "__visible": Sprite___visible__P144906, - "width": Sprite_width__P144907, - "height": Sprite_height__P144908, - "left": Sprite_left__P144909, - "set/left": Sprite_left__P144910, - "right": Sprite_right__P144911, - "set/right": Sprite_right__P144912, - "top": Sprite_top__P144913, - "set/top": Sprite_top__P144914, - "bottom": Sprite_bottom__P144915, - "set/bottom": Sprite_bottom__P144916, - "kind": Sprite_kind__P144917, - "setKind": Sprite_setKind__P144918, - "setPosition": Sprite_setPosition__P144919, - "setVelocity": Sprite_setVelocity__P144920, - "say": Sprite_say__P144921, - "isOutOfScreen": Sprite_isOutOfScreen__P144923, - "__drawCore": Sprite___drawCore__P144924, - "__update": Sprite___update__P144925, - "setFlag": Sprite_setFlag__P144926, - "overlapsWith": Sprite_overlapsWith__P144927, - "clearObstacles": Sprite_clearObstacles__P144931, - "registerObstacle": Sprite_registerObstacle__P144932, - "destroy": Sprite_destroy__P144934, - "_destroyCore": Sprite__destroyCore__P144935, - "toString": Sprite_toString__P144937, - "z": sprites_BaseSprite_z__P144756, - "set/z": sprites_BaseSprite_z__P144757, - "__draw": sprites_BaseSprite___draw__P144758, + "x": Sprite_x__P20589, + "set/x": Sprite_x__P20590, + "y": Sprite_y__P20591, + "set/y": Sprite_y__P20592, + "vx": Sprite_vx__P20593, + "set/vx": Sprite_vx__P20594, + "vy": Sprite_vy__P20595, + "set/vy": Sprite_vy__P20596, + "ax": Sprite_ax__P20597, + "set/ax": Sprite_ax__P20598, + "ay": Sprite_ay__P20599, + "set/ay": Sprite_ay__P20600, + "fx": Sprite_fx__P20601, + "set/fx": Sprite_fx__P20602, + "fy": Sprite_fy__P20603, + "set/fy": Sprite_fy__P20604, + "data": Sprite_data__P20605, + "set/data": Sprite_data__P20606, + "image": Sprite_image__P20619, + "setImage": Sprite_setImage__P20620, + "setHitbox": Sprite_setHitbox__P20621, + "isStatic": Sprite_isStatic__P20622, + "__visible": Sprite___visible__P20623, + "width": Sprite_width__P20624, + "height": Sprite_height__P20625, + "left": Sprite_left__P20626, + "set/left": Sprite_left__P20627, + "right": Sprite_right__P20628, + "set/right": Sprite_right__P20629, + "top": Sprite_top__P20630, + "set/top": Sprite_top__P20631, + "bottom": Sprite_bottom__P20632, + "set/bottom": Sprite_bottom__P20633, + "kind": Sprite_kind__P20634, + "setKind": Sprite_setKind__P20635, + "setPosition": Sprite_setPosition__P20636, + "setVelocity": Sprite_setVelocity__P20637, + "say": Sprite_say__P20638, + "isOutOfScreen": Sprite_isOutOfScreen__P20640, + "__drawCore": Sprite___drawCore__P20641, + "__update": Sprite___update__P20642, + "setFlag": Sprite_setFlag__P20643, + "overlapsWith": Sprite_overlapsWith__P20644, + "clearObstacles": Sprite_clearObstacles__P20648, + "registerObstacle": Sprite_registerObstacle__P20649, + "destroy": Sprite_destroy__P20651, + "_destroyCore": Sprite__destroyCore__P20652, + "toString": Sprite_toString__P20654, + "z": sprites_BaseSprite_z__P20426, + "set/z": sprites_BaseSprite_z__P20427, + "__draw": sprites_BaseSprite___draw__P20428, }, - toStringMethod: Sprite_toString__P144937, + toStringMethod: Sprite_toString__P20654, }); -const scene_Scene__C145293_VT = mkVTable({ +const scene_Scene__C20983_VT = mkVTable({ name: "Scene", numFields: 23, - classNo: 25, - lastSubtypeNo: 25, + classNo: 24, + lastSubtypeNo: 24, maxBgInstances: null, methods: { }, @@ -45529,39 +46686,75 @@ const scene_Scene__C145293_VT = mkVTable({ "set/_data": null, "previousScene": null, "set/previousScene": null, - "init": scene_Scene_init__P145294, - "data": scene_Scene_data__P145295, - "millis": scene_Scene_millis__P145296, - "addSprite": scene_Scene_addSprite__P145297, - "render": scene_Scene_render__P145299, + "init": scene_Scene_init__P21005, + "data": scene_Scene_data__P21006, + "millis": scene_Scene_millis__P21007, + "addSprite": scene_Scene_addSprite__P21008, + "render": scene_Scene_render__P21010, }, }); -const PhysicsEngine__C144993_VT = mkVTable({ - name: "PhysicsEngine", - numFields: 0, +const tiles_Location__C20853_VT = mkVTable({ + name: "Location", + numFields: 3, + classNo: 25, + lastSubtypeNo: 25, + maxBgInstances: null, + methods: { + }, + iface: { + "_row": null, + "set/_row": null, + "_col": null, + "set/_col": null, + "tileMap": null, + "set/tileMap": null, + "col": tiles_Location_col__P20854, + "row": tiles_Location_row__P20855, + "x": tiles_Location_x__P20857, + "y": tiles_Location_y__P20858, + "tileSet": tiles_Location_tileSet__P20859, + "place": tiles_Location_place__P20860, + }, +}); +const tiles_TileMap__C20881_VT = mkVTable({ + name: "TileMap", + numFields: 3, classNo: 26, - lastSubtypeNo: 27, + lastSubtypeNo: 26, maxBgInstances: null, methods: { - "addSprite": PhysicsEngine_addSprite__P144994, - "removeSprite": PhysicsEngine_removeSprite__P144995, - "moveSprite": PhysicsEngine_moveSprite__P144996, - "draw": PhysicsEngine_draw__P144997, - "move": PhysicsEngine_move__P144998, }, iface: { - "addSprite": PhysicsEngine_addSprite__P144994, - "removeSprite": PhysicsEngine_removeSprite__P144995, - "moveSprite": PhysicsEngine_moveSprite__P144996, - "draw": PhysicsEngine_draw__P144997, - "move": PhysicsEngine_move__P144998, + "_scale": null, + "set/_scale": null, + "_layer": null, + "set/_layer": null, + "_map": null, + "set/_map": null, + "scale": tiles_TileMap_scale__P20883, + "set/scale": tiles_TileMap_scale__P20884, + "data": tiles_TileMap_data__P22384, + "offsetX": tiles_TileMap_offsetX__P20885, + "offsetY": tiles_TileMap_offsetY__P20886, + "areaWidth": tiles_TileMap_areaWidth__P20887, + "areaHeight": tiles_TileMap_areaHeight__P20888, + "layer": tiles_TileMap_layer__P20889, + "enabled": tiles_TileMap_enabled__P20891, + "setData": tiles_TileMap_setData__P20892, + "getTile": tiles_TileMap_getTile__P20893, + "getTileIndex": tiles_TileMap_getTileIndex__P20894, + "draw": tiles_TileMap_draw__P22386, + "isObstacle": tiles_TileMap_isObstacle__P20900, + "getObstacle": tiles_TileMap_getObstacle__P20901, + "isOnWall": tiles_TileMap_isOnWall__P20902, + "getTileImage": tiles_TileMap_getTileImage__P20903, }, }); -const control_EventContext__C144413_VT = mkVTable({ +const control_EventContext__C18948_VT = mkVTable({ name: "EventContext", numFields: 9, - classNo: 28, - lastSubtypeNo: 28, + classNo: 27, + lastSubtypeNo: 27, maxBgInstances: null, methods: { }, @@ -45584,20 +46777,20 @@ const control_EventContext__C144413_VT = mkVTable({ "set/idleCallbacks": null, "runningCallbacks": null, "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P144414, - "runCallbacks": control_EventContext_runCallbacks__P144415, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P144416, - "register": control_EventContext_register__P144417, - "unregister": control_EventContext_unregister__P144418, - "registerFrameHandler": control_EventContext_registerFrameHandler__P144419, - "registerHandler": control_EventContext_registerHandler__P144421, + "deltaTime": control_EventContext_deltaTime__P18953, + "runCallbacks": control_EventContext_runCallbacks__P22121, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P22122, + "register": control_EventContext_register__P18954, + "unregister": control_EventContext_unregister__P18955, + "registerFrameHandler": control_EventContext_registerFrameHandler__P18956, + "registerHandler": control_EventContext_registerHandler__P18958, }, }); -const scene_Camera__C145233_VT = mkVTable({ +const scene_Camera__C20924_VT = mkVTable({ name: "Camera", numFields: 8, - classNo: 29, - lastSubtypeNo: 29, + classNo: 28, + lastSubtypeNo: 28, maxBgInstances: null, methods: { }, @@ -45618,18 +46811,43 @@ const scene_Camera__C145233_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P145234, - "set/offsetX": scene_Camera_offsetX__P145235, - "offsetY": scene_Camera_offsetY__P145236, - "set/offsetY": scene_Camera_offsetY__P145237, - "update": scene_Camera_update__P145239, + "offsetX": scene_Camera_offsetX__P20929, + "set/offsetX": scene_Camera_offsetX__P20930, + "offsetY": scene_Camera_offsetY__P20931, + "set/offsetY": scene_Camera_offsetY__P20932, + "x": scene_Camera_x__P20933, + "y": scene_Camera_y__P20934, + "left": scene_Camera_left__P20935, + "top": scene_Camera_top__P20937, + "update": scene_Camera_update__P20940, }, }); -const game_Hitbox__C144869_VT = mkVTable({ +const PhysicsEngine__C20723_VT = mkVTable({ + name: "PhysicsEngine", + numFields: 0, + classNo: 29, + lastSubtypeNo: 30, + maxBgInstances: null, + methods: { + "addSprite": PhysicsEngine_addSprite__P20725, + "removeSprite": PhysicsEngine_removeSprite__P20726, + "moveSprite": PhysicsEngine_moveSprite__P20727, + "draw": PhysicsEngine_draw__P20728, + "move": PhysicsEngine_move__P20729, + }, + iface: { + "addSprite": PhysicsEngine_addSprite__P20725, + "removeSprite": PhysicsEngine_removeSprite__P20726, + "moveSprite": PhysicsEngine_moveSprite__P20727, + "draw": PhysicsEngine_draw__P20728, + "move": PhysicsEngine_move__P20729, + }, +}); +const game_Hitbox__C20523_VT = mkVTable({ name: "Hitbox", numFields: 5, - classNo: 30, - lastSubtypeNo: 30, + classNo: 31, + lastSubtypeNo: 31, maxBgInstances: null, methods: { }, @@ -45644,17 +46862,17 @@ const game_Hitbox__C144869_VT = mkVTable({ "set/width": null, "height": null, "set/height": null, - "left": game_Hitbox_left__P144870, - "top": game_Hitbox_top__P144871, - "right": game_Hitbox_right__P144872, - "bottom": game_Hitbox_bottom__P144873, + "left": game_Hitbox_left__P20530, + "top": game_Hitbox_top__P20531, + "right": game_Hitbox_right__P20532, + "bottom": game_Hitbox_bottom__P20533, }, }); -const JSON_Stringifier__C144400_VT = mkVTable({ +const JSON_Stringifier__C22113_VT = mkVTable({ name: "Stringifier", numFields: 3, - classNo: 31, - lastSubtypeNo: 31, + classNo: 32, + lastSubtypeNo: 32, maxBgInstances: null, methods: { }, @@ -45665,15 +46883,15 @@ const JSON_Stringifier__C144400_VT = mkVTable({ "set/indentStep": null, "indent": null, "set/indent": null, - "doString": JSON_Stringifier_doString__P144401, - "go": JSON_Stringifier_go__P144402, + "doString": JSON_Stringifier_doString__P22114, + "go": JSON_Stringifier_go__P22115, }, }); -const effects_ImageEffect__C145990_VT = mkVTable({ +const effects_ImageEffect__C21380_VT = mkVTable({ name: "ImageEffect", numFields: 4, - classNo: 32, - lastSubtypeNo: 32, + classNo: 33, + lastSubtypeNo: 33, maxBgInstances: null, methods: { }, @@ -45686,15 +46904,15 @@ const effects_ImageEffect__C145990_VT = mkVTable({ "set/fastRandom": null, "times": null, "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P145991, - "change": effects_ImageEffect_change__P145992, + "applyTo": effects_ImageEffect_applyTo__P21382, + "change": effects_ImageEffect_change__P21383, }, }); -const effects_ParticleEffect__C145939_VT = mkVTable({ +const effects_ParticleEffect__C21353_VT = mkVTable({ name: "ParticleEffect", numFields: 3, - classNo: 33, - lastSubtypeNo: 34, + classNo: 34, + lastSubtypeNo: 35, maxBgInstances: null, methods: { }, @@ -45705,15 +46923,15 @@ const effects_ParticleEffect__C145939_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P145940, - "destroy": effects_ParticleEffect_destroy__P145941, + "start": effects_ParticleEffect_start__P21355, + "destroy": effects_ParticleEffect_destroy__P21356, }, }); -const effects_ScreenEffect__C145949_VT = mkVTable({ +const effects_ScreenEffect__C21357_VT = mkVTable({ name: "ScreenEffect", numFields: 5, - classNo: 34, - lastSubtypeNo: 34, + classNo: 35, + lastSubtypeNo: 35, maxBgInstances: null, methods: { }, @@ -45728,34 +46946,34 @@ const effects_ScreenEffect__C145949_VT = mkVTable({ "set/source": null, "sceneDefaultRate": null, "set/sceneDefaultRate": null, - "start": effects_ParticleEffect_start__P145940, - "destroy": effects_ParticleEffect_destroy__P145941, + "start": effects_ParticleEffect_start__P21355, + "destroy": effects_ParticleEffect_destroy__P21356, }, }); -const particles_ParticleFactory__C145872_VT = mkVTable({ +const particles_ParticleFactory__C21278_VT = mkVTable({ name: "ParticleFactory", numFields: 0, - classNo: 35, - lastSubtypeNo: 40, + classNo: 36, + lastSubtypeNo: 41, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P145873, - "drawParticle": particles_ParticleFactory_drawParticle__P145874, + "createParticle": particles_ParticleFactory_createParticle__P21280, + "drawParticle": particles_ParticleFactory_drawParticle__P21281, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P145873, - "drawParticle": particles_ParticleFactory_drawParticle__P145874, + "createParticle": particles_ParticleFactory_createParticle__P21280, + "drawParticle": particles_ParticleFactory_drawParticle__P21281, }, }); -const particles_SprayFactory__C145876_VT = mkVTable({ +const particles_SprayFactory__C21282_VT = mkVTable({ name: "SprayFactory", numFields: 3, - classNo: 36, - lastSubtypeNo: 40, + classNo: 37, + lastSubtypeNo: 41, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P145878, - "drawParticle": particles_SprayFactory_drawParticle__P145879, + "createParticle": particles_SprayFactory_createParticle__P21284, + "drawParticle": particles_SprayFactory_drawParticle__P21285, }, iface: { "speed": null, @@ -45764,21 +46982,21 @@ const particles_SprayFactory__C145876_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P145878, - "drawParticle": particles_SprayFactory_drawParticle__P145879, - "setSpeed": particles_SprayFactory_setSpeed__P145880, - "setDirection": particles_SprayFactory_setDirection__P145881, + "createParticle": particles_SprayFactory_createParticle__P21284, + "drawParticle": particles_SprayFactory_drawParticle__P21285, + "setSpeed": particles_SprayFactory_setSpeed__P21286, + "setDirection": particles_SprayFactory_setDirection__P21287, }, }); -const particles_AreaFactory__C145883_VT = mkVTable({ +const particles_AreaFactory__C21288_VT = mkVTable({ name: "AreaFactory", numFields: 8, - classNo: 37, - lastSubtypeNo: 40, + classNo: 38, + lastSubtypeNo: 41, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P145885, - "drawParticle": particles_AreaFactory_drawParticle__P145886, + "createParticle": particles_AreaFactory_createParticle__P21294, + "drawParticle": particles_AreaFactory_drawParticle__P21295, }, iface: { "speed": null, @@ -45797,21 +47015,21 @@ const particles_AreaFactory__C145883_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P145885, - "drawParticle": particles_AreaFactory_drawParticle__P145886, - "setSpeed": particles_SprayFactory_setSpeed__P145880, - "setDirection": particles_SprayFactory_setDirection__P145881, + "createParticle": particles_AreaFactory_createParticle__P21294, + "drawParticle": particles_AreaFactory_drawParticle__P21295, + "setSpeed": particles_SprayFactory_setSpeed__P21286, + "setDirection": particles_SprayFactory_setDirection__P21287, }, }); -const particles_ShapeFactory__C145893_VT = mkVTable({ +const particles_ShapeFactory__C21304_VT = mkVTable({ name: "ShapeFactory", numFields: 11, - classNo: 38, - lastSubtypeNo: 39, + classNo: 39, + lastSubtypeNo: 40, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P145897, - "drawParticle": particles_ShapeFactory_drawParticle__P145896, + "createParticle": particles_ShapeFactory_createParticle__P21308, + "drawParticle": particles_ShapeFactory_drawParticle__P21307, }, iface: { "speed": null, @@ -45836,22 +47054,22 @@ const particles_ShapeFactory__C145893_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P145895, - "drawParticle": particles_ShapeFactory_drawParticle__P145896, - "createParticle": particles_ShapeFactory_createParticle__P145897, - "setSpeed": particles_SprayFactory_setSpeed__P145880, - "setDirection": particles_SprayFactory_setDirection__P145881, + "addShape": particles_ShapeFactory_addShape__P21306, + "drawParticle": particles_ShapeFactory_drawParticle__P21307, + "createParticle": particles_ShapeFactory_createParticle__P21308, + "setSpeed": particles_SprayFactory_setSpeed__P21286, + "setDirection": particles_SprayFactory_setDirection__P21287, }, }); -const particles_ConfettiFactory__C145899_VT = mkVTable({ +const particles_ConfettiFactory__C21309_VT = mkVTable({ name: "ConfettiFactory", numFields: 11, - classNo: 39, - lastSubtypeNo: 39, + classNo: 40, + lastSubtypeNo: 40, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P145897, - "drawParticle": particles_ShapeFactory_drawParticle__P145896, + "createParticle": particles_ShapeFactory_createParticle__P21308, + "drawParticle": particles_ShapeFactory_drawParticle__P21307, }, iface: { "speed": null, @@ -45876,25 +47094,25 @@ const particles_ConfettiFactory__C145899_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P145895, - "drawParticle": particles_ShapeFactory_drawParticle__P145896, - "createParticle": particles_ShapeFactory_createParticle__P145897, - "setSpeed": particles_SprayFactory_setSpeed__P145880, - "setDirection": particles_SprayFactory_setDirection__P145881, + "addShape": particles_ShapeFactory_addShape__P21306, + "drawParticle": particles_ShapeFactory_drawParticle__P21307, + "createParticle": particles_ShapeFactory_createParticle__P21308, + "setSpeed": particles_SprayFactory_setSpeed__P21286, + "setDirection": particles_SprayFactory_setDirection__P21287, }, }); -const particles_ParticleSource__C145812_VT = mkVTable({ +const particles_ParticleSource__C21242_VT = mkVTable({ name: "ParticleSource", numFields: 13, - classNo: 23, - lastSubtypeNo: 23, + classNo: 22, + lastSubtypeNo: 22, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P144755, - "__draw": particles_ParticleSource___draw__P145814, - "__drawCore": sprites_BaseSprite___drawCore__P144759, - "__update": sprites_BaseSprite___update__P144760, - "updateParticle": particles_ParticleSource_updateParticle__P145828, + "__visible": sprites_BaseSprite___visible__P20425, + "__draw": particles_ParticleSource___draw__P21248, + "__drawCore": sprites_BaseSprite___drawCore__P20429, + "__update": sprites_BaseSprite___update__P20430, + "updateParticle": particles_ParticleSource_updateParticle__P22795, }, iface: { "_z": null, @@ -45923,32 +47141,32 @@ const particles_ParticleSource__C145812_VT = mkVTable({ "set/ax": null, "ay": null, "set/ay": null, - "__draw": particles_ParticleSource___draw__P145814, - "_update": particles_ParticleSource__update__P145815, - "_prune": particles_ParticleSource__prune__P145816, - "setAcceleration": particles_ParticleSource_setAcceleration__P145817, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P145819, - "enabled": particles_ParticleSource_enabled__P145820, - "set/enabled": particles_ParticleSource_enabled__P145821, - "destroy": particles_ParticleSource_destroy__P145822, - "clear": particles_ParticleSource_clear__P145823, - "setAnchor": particles_ParticleSource_setAnchor__P145824, - "setRate": particles_ParticleSource_setRate__P145825, - "setFactory": particles_ParticleSource_setFactory__P145827, - "updateParticle": particles_ParticleSource_updateParticle__P145828, - "drawParticle": particles_ParticleSource_drawParticle__P145829, - "__visible": sprites_BaseSprite___visible__P144755, - "z": sprites_BaseSprite_z__P144756, - "set/z": sprites_BaseSprite_z__P144757, - "__drawCore": sprites_BaseSprite___drawCore__P144759, - "__update": sprites_BaseSprite___update__P144760, + "__draw": particles_ParticleSource___draw__P21248, + "_update": particles_ParticleSource__update__P21249, + "_prune": particles_ParticleSource__prune__P21250, + "setAcceleration": particles_ParticleSource_setAcceleration__P21251, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P21253, + "enabled": particles_ParticleSource_enabled__P21254, + "set/enabled": particles_ParticleSource_enabled__P21255, + "destroy": particles_ParticleSource_destroy__P21256, + "clear": particles_ParticleSource_clear__P21257, + "setAnchor": particles_ParticleSource_setAnchor__P21258, + "setRate": particles_ParticleSource_setRate__P21259, + "setFactory": particles_ParticleSource_setFactory__P21261, + "updateParticle": particles_ParticleSource_updateParticle__P22795, + "drawParticle": particles_ParticleSource_drawParticle__P22796, + "__visible": sprites_BaseSprite___visible__P20425, + "z": sprites_BaseSprite_z__P20426, + "set/z": sprites_BaseSprite_z__P20427, + "__drawCore": sprites_BaseSprite___drawCore__P20429, + "__update": sprites_BaseSprite___update__P20430, }, }); -const particles_Particle__C145810_VT = mkVTable({ +const particles_Particle__C21223_VT = mkVTable({ name: "Particle", numFields: 8, - classNo: 41, - lastSubtypeNo: 41, + classNo: 42, + lastSubtypeNo: 42, maxBgInstances: 200, methods: { }, @@ -45971,56 +47189,11 @@ const particles_Particle__C145810_VT = mkVTable({ "set/color": null, }, }); -const ArcadePhysicsEngine__C145021_VT = mkVTable({ - name: "ArcadePhysicsEngine", - numFields: 6, - classNo: 27, - lastSubtypeNo: 27, - maxBgInstances: null, - methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P145030, - "removeSprite": ArcadePhysicsEngine_removeSprite__P145031, - "moveSprite": ArcadePhysicsEngine_moveSprite__P145039, - "draw": ArcadePhysicsEngine_draw__P145032, - "move": ArcadePhysicsEngine_move__P145033, - }, - 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__P145023, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P145024, - "minStep": ArcadePhysicsEngine_minStep__P145025, - "set/minStep": ArcadePhysicsEngine_minStep__P145026, - "maxStep": ArcadePhysicsEngine_maxStep__P145027, - "set/maxStep": ArcadePhysicsEngine_maxStep__P145028, - "addSprite": ArcadePhysicsEngine_addSprite__P145030, - "removeSprite": ArcadePhysicsEngine_removeSprite__P145031, - "draw": ArcadePhysicsEngine_draw__P145032, - "move": ArcadePhysicsEngine_move__P145033, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P145034, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P145035, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P145036, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P145037, - "moveSprite": ArcadePhysicsEngine_moveSprite__P145039, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P145040, - "constrain": ArcadePhysicsEngine_constrain__P145041, - }, -}); -const scene_Background__C145157_VT = mkVTable({ +const scene_Background__C20829_VT = mkVTable({ name: "Background", numFields: 4, - classNo: 42, - lastSubtypeNo: 42, + classNo: 43, + lastSubtypeNo: 43, maxBgInstances: null, methods: { }, @@ -46033,44 +47206,12 @@ const scene_Background__C145157_VT = mkVTable({ "set/camera": null, "_layers": null, "set/_layers": null, - "image": scene_Background_image__P145159, - "set/image": scene_Background_image__P145160, - "draw": scene_Background_draw__P145162, + "image": scene_Background_image__P20835, + "set/image": scene_Background_image__P20836, + "draw": scene_Background_draw__P20838, }, }); -const sprites_SpriteMap__C144940_VT = mkVTable({ - name: "SpriteMap", - numFields: 5, - classNo: 43, - lastSubtypeNo: 43, - 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__P144941, - "overlaps": sprites_SpriteMap_overlaps__P144942, - "draw": sprites_SpriteMap_draw__P144943, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P144944, - "clear": sprites_SpriteMap_clear__P144945, - "key": sprites_SpriteMap_key__P144946, - "insertAtKey": sprites_SpriteMap_insertAtKey__P144947, - "insertAABB": sprites_SpriteMap_insertAABB__P144948, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P144949, - "toString": sprites_SpriteMap_toString__P144950, - }, - toStringMethod: sprites_SpriteMap_toString__P144950, -}); -const scene_BackgroundLayer__C145164_VT = mkVTable({ +const scene_BackgroundLayer__C20839_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, classNo: 44, @@ -46091,51 +47232,14 @@ const scene_BackgroundLayer__C145164_VT = mkVTable({ "set/alignX": null, "alignY": null, "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P145165, + "draw": scene_BackgroundLayer_draw__P20847, }, }); -const tiles_TileMap__C145197_VT = mkVTable({ - name: "TileMap", - numFields: 3, - classNo: 45, - lastSubtypeNo: 45, - maxBgInstances: null, - methods: { - }, - iface: { - "_scale": null, - "set/_scale": null, - "_layer": null, - "set/_layer": null, - "_map": null, - "set/_map": null, - "scale": tiles_TileMap_scale__P145198, - "set/scale": tiles_TileMap_scale__P145199, - "data": tiles_TileMap_data__P145200, - "offsetX": tiles_TileMap_offsetX__P145201, - "offsetY": tiles_TileMap_offsetY__P145202, - "areaWidth": tiles_TileMap_areaWidth__P145203, - "areaHeight": tiles_TileMap_areaHeight__P145204, - "layer": tiles_TileMap_layer__P145205, - "enabled": tiles_TileMap_enabled__P145207, - "setData": tiles_TileMap_setData__P145208, - "getTile": tiles_TileMap_getTile__P145209, - "getTileIndex": tiles_TileMap_getTileIndex__P145210, - "setTileAt": tiles_TileMap_setTileAt__P145211, - "getImageType": tiles_TileMap_getImageType__P145212, - "isInvalidIndex": tiles_TileMap_isInvalidIndex__P145215, - "draw": tiles_TileMap_draw__P145216, - "isObstacle": tiles_TileMap_isObstacle__P145217, - "getObstacle": tiles_TileMap_getObstacle__P145218, - "isOnWall": tiles_TileMap_isOnWall__P145219, - "getTileImage": tiles_TileMap_getTileImage__P145220, - }, -}); -const tiles_TileMapData__C145184_VT = mkVTable({ +const tiles_TileMapData__C20868_VT = mkVTable({ name: "TileMapData", numFields: 7, - classNo: 46, - lastSubtypeNo: 46, + classNo: 45, + lastSubtypeNo: 45, maxBgInstances: null, methods: { }, @@ -46154,23 +47258,21 @@ const tiles_TileMapData__C145184_VT = mkVTable({ "set/_width": null, "_height": null, "set/_height": null, - "width": tiles_TileMapData_width__P145185, - "height": tiles_TileMapData_height__P145186, - "scale": tiles_TileMapData_scale__P145187, - "set/scale": tiles_TileMapData_scale__P145188, - "getTile": tiles_TileMapData_getTile__P145189, - "setTile": tiles_TileMapData_setTile__P145190, - "getTileset": tiles_TileMapData_getTileset__P145191, - "getTileImage": tiles_TileMapData_getTileImage__P145192, - "isWall": tiles_TileMapData_isWall__P145194, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P145195, + "width": tiles_TileMapData_width__P20870, + "height": tiles_TileMapData_height__P20871, + "scale": tiles_TileMapData_scale__P20872, + "set/scale": tiles_TileMapData_scale__P20873, + "getTile": tiles_TileMapData_getTile__P20874, + "getTileImage": tiles_TileMapData_getTileImage__P20877, + "isWall": tiles_TileMapData_isWall__P20879, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P20880, }, }); -const controller_Controller__C144832_VT = mkVTable({ +const controller_Controller__C20487_VT = mkVTable({ name: "Controller", numFields: 5, - classNo: 47, - lastSubtypeNo: 47, + classNo: 46, + lastSubtypeNo: 46, maxBgInstances: null, methods: { }, @@ -46185,21 +47287,99 @@ const controller_Controller__C144832_VT = mkVTable({ "set/_id": null, "_connected": null, "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P144833, - "set/_controlledSprites": controller_Controller__controlledSprites__P144834, - "id": controller_Controller_id__P144835, - "left": controller_Controller_left__P144837, - "right": controller_Controller_right__P144838, - "up": controller_Controller_up__P144839, - "down": controller_Controller_down__P144840, - "button": controller_Controller_button__P144845, - "connected": controller_Controller_connected__P144848, - "set/connected": controller_Controller_connected__P144849, - "__preUpdate": controller_Controller___preUpdate__P144853, - "__update": controller_Controller___update__P144854, + "_controlledSprites": controller_Controller__controlledSprites__P20492, + "set/_controlledSprites": controller_Controller__controlledSprites__P20493, + "id": controller_Controller_id__P20494, + "left": controller_Controller_left__P20496, + "right": controller_Controller_right__P20497, + "up": controller_Controller_up__P20498, + "down": controller_Controller_down__P20499, + "moveSprite": controller_Controller_moveSprite__P20503, + "button": controller_Controller_button__P22284, + "connected": controller_Controller_connected__P20506, + "set/connected": controller_Controller_connected__P20507, + "__preUpdate": controller_Controller___preUpdate__P20511, + "__update": controller_Controller___update__P20512, }, }); -const music_Melody__C144560_VT = mkVTable({ +const ArcadePhysicsEngine__C20737_VT = mkVTable({ + name: "ArcadePhysicsEngine", + numFields: 6, + classNo: 30, + lastSubtypeNo: 30, + maxBgInstances: null, + methods: { + "addSprite": ArcadePhysicsEngine_addSprite__P20746, + "removeSprite": ArcadePhysicsEngine_removeSprite__P20747, + "moveSprite": ArcadePhysicsEngine_moveSprite__P20751, + "draw": ArcadePhysicsEngine_draw__P20748, + "move": ArcadePhysicsEngine_move__P20749, + }, + 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__P20739, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P20740, + "minStep": ArcadePhysicsEngine_minStep__P20741, + "set/minStep": ArcadePhysicsEngine_minStep__P20742, + "maxStep": ArcadePhysicsEngine_maxStep__P20743, + "set/maxStep": ArcadePhysicsEngine_maxStep__P20744, + "addSprite": ArcadePhysicsEngine_addSprite__P20746, + "removeSprite": ArcadePhysicsEngine_removeSprite__P20747, + "draw": ArcadePhysicsEngine_draw__P20748, + "move": ArcadePhysicsEngine_move__P20749, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P22313, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P22314, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P22315, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P22316, + "moveSprite": ArcadePhysicsEngine_moveSprite__P20751, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P22317, + "constrain": ArcadePhysicsEngine_constrain__P22318, + }, +}); +const sprites_SpriteMap__C20658_VT = mkVTable({ + name: "SpriteMap", + numFields: 5, + classNo: 47, + lastSubtypeNo: 47, + 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__P20660, + "overlaps": sprites_SpriteMap_overlaps__P20661, + "draw": sprites_SpriteMap_draw__P20662, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P20663, + "clear": sprites_SpriteMap_clear__P20664, + "key": sprites_SpriteMap_key__P22290, + "insertAtKey": sprites_SpriteMap_insertAtKey__P22291, + "insertAABB": sprites_SpriteMap_insertAABB__P20665, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P22292, + "toString": sprites_SpriteMap_toString__P20666, + }, + toStringMethod: sprites_SpriteMap_toString__P20666, +}); +const music_Melody__C20162_VT = mkVTable({ name: "Melody", numFields: 2, classNo: 48, @@ -46212,11 +47392,11 @@ const music_Melody__C144560_VT = mkVTable({ "set/_text": null, "_player": null, "set/_player": null, - "toString": music_Melody_toString__P144570, + "toString": music_Melody_toString__P20171, }, - toStringMethod: music_Melody_toString__P144570, + toStringMethod: music_Melody_toString__P20171, }); -const control_EventHandler__C144408_VT = mkVTable({ +const control_EventHandler__C22116_VT = mkVTable({ name: "EventHandler", numFields: 4, classNo: 49, @@ -46233,11 +47413,11 @@ const control_EventHandler__C144408_VT = mkVTable({ "set/handler": null, "flags": null, "set/flags": null, - "register": control_EventHandler_register__P144409, - "unregister": control_EventHandler_unregister__P144410, + "register": control_EventHandler_register__P22117, + "unregister": control_EventHandler_unregister__P22118, }, }); -const control_FrameCallback__C144407_VT = mkVTable({ +const control_FrameCallback__C18945_VT = mkVTable({ name: "FrameCallback", numFields: 2, classNo: 50, @@ -46252,7 +47432,7 @@ const control_FrameCallback__C144407_VT = mkVTable({ "set/handler": null, }, }); -const control_PollEvent__C144368_VT = mkVTable({ +const control_PollEvent__C22095_VT = mkVTable({ name: "PollEvent", numFields: 6, classNo: 51, @@ -46275,7 +47455,7 @@ const control_PollEvent__C144368_VT = mkVTable({ "set/once": null, }, }); -const sprites_SpriteSet__C144957_VT = mkVTable({ +const sprites_SpriteSet__C20675_VT = mkVTable({ name: "SpriteSet", numFields: 1, classNo: 52, @@ -46286,24 +47466,24 @@ const sprites_SpriteSet__C144957_VT = mkVTable({ iface: { "_sprites": null, "set/_sprites": null, - "length": sprites_SpriteSet_length__P144959, - "sprites": sprites_SpriteSet_sprites__P144960, - "add": sprites_SpriteSet_add__P144961, - "remove": sprites_SpriteSet_remove__P144963, - "contains": sprites_SpriteSet_contains__P144964, - "toString": sprites_SpriteSet_toString__P144967, + "length": sprites_SpriteSet_length__P20678, + "sprites": sprites_SpriteSet_sprites__P20679, + "add": sprites_SpriteSet_add__P20680, + "remove": sprites_SpriteSet_remove__P20682, + "contains": sprites_SpriteSet_contains__P20683, + "toString": sprites_SpriteSet_toString__P20686, }, - toStringMethod: sprites_SpriteSet_toString__P144967, + toStringMethod: sprites_SpriteSet_toString__P20686, }); -const particles_AshFactory__C145917_VT = mkVTable({ +const particles_AshFactory__C21322_VT = mkVTable({ name: "AshFactory", numFields: 9, - classNo: 40, - lastSubtypeNo: 40, + classNo: 41, + lastSubtypeNo: 41, maxBgInstances: null, methods: { - "createParticle": particles_AshFactory_createParticle__P145919, - "drawParticle": particles_AshFactory_drawParticle__P145920, + "createParticle": particles_AshFactory_createParticle__P21324, + "drawParticle": particles_AshFactory_drawParticle__P21325, }, iface: { "speed": null, @@ -46324,13 +47504,13 @@ const particles_AshFactory__C145917_VT = mkVTable({ "set/galois": null, "colors": null, "set/colors": null, - "createParticle": particles_AshFactory_createParticle__P145919, - "drawParticle": particles_AshFactory_drawParticle__P145920, - "setSpeed": particles_SprayFactory_setSpeed__P145880, - "setDirection": particles_SprayFactory_setDirection__P145881, + "createParticle": particles_AshFactory_createParticle__P21324, + "drawParticle": particles_AshFactory_drawParticle__P21325, + "setSpeed": particles_SprayFactory_setSpeed__P21286, + "setDirection": particles_SprayFactory_setDirection__P21287, }, }); -const particles_ColorCount__C145915_VT = mkVTable({ +const particles_ColorCount__C22832_VT = mkVTable({ name: "ColorCount", numFields: 2, classNo: 53, @@ -46345,7 +47525,7 @@ const particles_ColorCount__C145915_VT = mkVTable({ "set/count": null, }, }); -const scene_PathCompletionEvent__C182792_VT = mkVTable({ +const scene_PathCompletionEvent__C24601_VT = mkVTable({ name: "PathCompletionEvent", numFields: 2, classNo: 54, @@ -46360,7 +47540,7 @@ const scene_PathCompletionEvent__C182792_VT = mkVTable({ "set/handler": null, }, }); -const Heap__C147782_VT = mkVTable({ +const Heap__C22016_VT = mkVTable({ name: "Heap", numFields: 2, classNo: 55, @@ -46373,17 +47553,17 @@ const Heap__C147782_VT = mkVTable({ "set/store": null, "comparator": null, "set/comparator": null, - "percolateDown": Heap_percolateDown__P147783, - "percolateUp": Heap_percolateUp__P147784, - "push": Heap_push__P147785, - "pop": Heap_pop__P147786, - "length": Heap_length__P147788, - "parent": Heap_parent__P147791, - "leftChild": Heap_leftChild__P147792, - "rightChild": Heap_rightChild__P147793, + "percolateDown": Heap_percolateDown__P24063, + "percolateUp": Heap_percolateUp__P24064, + "push": Heap_push__P22018, + "pop": Heap_pop__P22019, + "length": Heap_length__P22021, + "parent": Heap_parent__P24065, + "leftChild": Heap_leftChild__P24066, + "rightChild": Heap_rightChild__P24067, }, }); -const scene_LocationNode__C147801_VT = mkVTable({ +const scene_LocationNode__C24074_VT = mkVTable({ name: "LocationNode", numFields: 4, classNo: 56, @@ -46402,7 +47582,7 @@ const scene_LocationNode__C147801_VT = mkVTable({ "set/lastCost": null, }, }); -const scene_PrioritizedLocation__C147795_VT = mkVTable({ +const scene_PrioritizedLocation__C24068_VT = mkVTable({ name: "PrioritizedLocation", numFields: 3, classNo: 57, @@ -46419,7 +47599,7 @@ const scene_PrioritizedLocation__C147795_VT = mkVTable({ "set/extraCost": null, }, }); -const scene_PathFollowingSprite__C182783_VT = mkVTable({ +const scene_PathFollowingSprite__C24592_VT = mkVTable({ name: "PathFollowingSprite", numFields: 5, classNo: 58, @@ -46440,17 +47620,36 @@ const scene_PathFollowingSprite__C182783_VT = mkVTable({ "set/speed": null, }, }); -const scene_Renderable__C145241_VT = mkVTable({ +const controller_ControlledSprite__C20483_VT = mkVTable({ + name: "ControlledSprite", + numFields: 4, + classNo: 59, + lastSubtypeNo: 59, + maxBgInstances: null, + methods: { + }, + iface: { + "_inputLastFrame": null, + "set/_inputLastFrame": null, + "s": null, + "set/s": null, + "vx": null, + "set/vx": null, + "vy": null, + "set/vy": null, + }, +}); +const scene_Renderable__C20942_VT = mkVTable({ name: "Renderable", numFields: 4, - classNo: 24, - lastSubtypeNo: 24, + classNo: 23, + lastSubtypeNo: 23, maxBgInstances: null, methods: { - "__visible": scene_Renderable___visible__P145243, - "__draw": sprites_BaseSprite___draw__P144758, - "__drawCore": scene_Renderable___drawCore__P145244, - "__update": sprites_BaseSprite___update__P144760, + "__visible": scene_Renderable___visible__P20944, + "__draw": sprites_BaseSprite___draw__P20428, + "__drawCore": scene_Renderable___drawCore__P20945, + "__update": sprites_BaseSprite___update__P20430, }, iface: { "_z": null, @@ -46461,19 +47660,19 @@ const scene_Renderable__C145241_VT = mkVTable({ "set/handler": null, "shouldBeVisible": null, "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P145243, - "__drawCore": scene_Renderable___drawCore__P145244, - "z": sprites_BaseSprite_z__P144756, - "set/z": sprites_BaseSprite_z__P144757, - "__draw": sprites_BaseSprite___draw__P144758, - "__update": sprites_BaseSprite___update__P144760, + "__visible": scene_Renderable___visible__P20944, + "__drawCore": scene_Renderable___drawCore__P20945, + "z": sprites_BaseSprite_z__P20426, + "set/z": sprites_BaseSprite_z__P20427, + "__draw": sprites_BaseSprite___draw__P20428, + "__update": sprites_BaseSprite___update__P20430, }, }); -const scene_systemMenu_PauseMenu__C145682_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C21186_VT = mkVTable({ name: "PauseMenu", numFields: 7, - classNo: 59, - lastSubtypeNo: 59, + classNo: 60, + lastSubtypeNo: 60, maxBgInstances: null, methods: { }, @@ -46492,19 +47691,19 @@ const scene_systemMenu_PauseMenu__C145682_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P145683, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P145684, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P145685, - "drawText": scene_systemMenu_PauseMenu_drawText__P145686, - "dispose": scene_systemMenu_PauseMenu_dispose__P145687, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P145688, + "show": scene_systemMenu_PauseMenu_show__P21188, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P21189, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P21190, + "drawText": scene_systemMenu_PauseMenu_drawText__P21191, + "dispose": scene_systemMenu_PauseMenu_dispose__P21192, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P22695, }, }); -const scene_systemMenu_MenuOption__C145673_VT = mkVTable({ +const scene_systemMenu_MenuOption__C21178_VT = mkVTable({ name: "MenuOption", numFields: 8, - classNo: 60, - lastSubtypeNo: 60, + classNo: 61, + lastSubtypeNo: 61, maxBgInstances: null, methods: { }, @@ -46525,20 +47724,20 @@ const scene_systemMenu_MenuOption__C145673_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P145674, - "position": scene_systemMenu_MenuOption_position__P145675, - "setOffset": scene_systemMenu_MenuOption_setOffset__P145676, - "setTheme": scene_systemMenu_MenuOption_setTheme__P145677, - "setState": scene_systemMenu_MenuOption_setState__P145678, - "dispose": scene_systemMenu_MenuOption_dispose__P145679, - "updateCard": scene_systemMenu_MenuOption_updateCard__P145680, + "show": scene_systemMenu_MenuOption_show__P21180, + "position": scene_systemMenu_MenuOption_position__P21181, + "setOffset": scene_systemMenu_MenuOption_setOffset__P21182, + "setTheme": scene_systemMenu_MenuOption_setTheme__P21183, + "setState": scene_systemMenu_MenuOption_setState__P21184, + "dispose": scene_systemMenu_MenuOption_dispose__P21185, + "updateCard": scene_systemMenu_MenuOption_updateCard__P22694, }, }); -const MovingSprite__C145019_VT = mkVTable({ +const MovingSprite__C20735_VT = mkVTable({ name: "MovingSprite", numFields: 7, - classNo: 61, - lastSubtypeNo: 61, + classNo: 62, + lastSubtypeNo: 62, maxBgInstances: null, methods: { }, @@ -46559,11 +47758,11 @@ const MovingSprite__C145019_VT = mkVTable({ "set/yStep": null, }, }); -const sprites_StaticObstacle__C144985_VT = mkVTable({ +const sprites_StaticObstacle__C20710_VT = mkVTable({ name: "StaticObstacle", numFields: 5, - classNo: 62, - lastSubtypeNo: 62, + classNo: 63, + lastSubtypeNo: 63, maxBgInstances: null, methods: { }, @@ -46578,14 +47777,14 @@ const sprites_StaticObstacle__C144985_VT = mkVTable({ "set/top": null, "left": null, "set/left": null, - "x": sprites_StaticObstacle_x__P144986, - "y": sprites_StaticObstacle_y__P144987, - "height": sprites_StaticObstacle_height__P144988, - "width": sprites_StaticObstacle_width__P144989, + "x": sprites_StaticObstacle_x__P20717, + "y": sprites_StaticObstacle_y__P20718, + "height": sprites_StaticObstacle_height__P20719, + "width": sprites_StaticObstacle_width__P20720, }, }); -const breakpoints = setupDebugger(1, ["tile0___188978","flag___188994","PATH_FOLLOW_KEY___182779","PATH_COMPLETION_KEY___182781"]) +const breakpoints = setupDebugger(1, ["transparency16___22037","mySprite___22039","PATH_FOLLOW_KEY___24588","PATH_COMPLETION_KEY___24590"]) -return _main___P189258 +return _main___P37117 }) diff --git a/assets/version.txt b/assets/version.txt index f477849..9325c3c 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -0.2.2 \ No newline at end of file +0.3.0 \ No newline at end of file diff --git a/pxt.json b/pxt.json index 0a94837..798501d 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "arcade-tilemap-a-star", - "version": "0.2.2", + "version": "0.3.0", "description": "", "dependencies": { "device": "*",