From cb98c9eb79f085dcce133249fb2b22e7923e8c29 Mon Sep 17 00:00:00 2001 From: Joey Wunderlich Date: Fri, 22 Apr 2022 13:11:29 -0700 Subject: [PATCH] 0.4.0 --- assets/js/binary.js | 37521 ++++++++++++++++++++++-------------------- assets/version.txt | 2 +- pxt.json | 2 +- 3 files changed, 19534 insertions(+), 17991 deletions(-) diff --git a/assets/js/binary.js b/assets/js/binary.js index f803e47..8a2f513 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.3.49/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.3.5","target":"arcade","targetVersion":"1.3.49","repo":"jwunderl/arcade-tilemap-a-star"} -// total=1346887 new=14.96% cached=79.83% other=5.22% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.8.22/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.4.0","target":"arcade","targetVersion":"1.8.22","repo":"jwunderl/arcade-tilemap-a-star"} +// total=1393819 new=13.78% cached=81.03% other=5.19% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -79,6 +79,8 @@ pxtrt.mapKeyNames = [ "_row", "_scale", "_sprites", + "_sx", + "_sy", "_text", "_update", "_vx", @@ -104,13 +106,17 @@ pxtrt.mapKeyNames = [ "ay", "background", "basicCard", + "bgColor", "bottom", "buckets", "button", + "buttonEventHandlers", "buttons", "cachedTileView", "cachedVx", "cachedVy", + "calcDimensionalHash", + "callback", "camera", "canResolveClipping", "card", @@ -128,8 +134,8 @@ pxtrt.mapKeyNames = [ "col", "collisionHandlers", "color", + "column", "columnCount", - "comparator", "condition", "connected", "constrain", @@ -160,10 +166,11 @@ pxtrt.mapKeyNames = [ "effect", "eid", "enabled", + "event", "eventContext", - "extraCost", "factory", "fastRandom", + "fgColor", "flags", "followingSprites", "frameCallbacks", @@ -176,14 +183,16 @@ pxtrt.mapKeyNames = [ "generator", "getImageType", "getObstacle", - "getState", + "getOrCreateHandlerForEvent", "getText", "getTile", "getTileImage", "getTileIndex", "getTileset", "handler", + "handlerState", "handlers", + "hash", "head", "headerFont", "headerText", @@ -206,7 +215,9 @@ pxtrt.mapKeyNames = [ "isOutOfScreen", "isOutsideMap", "isPressed", + "isScaled", "isStatic", + "isValid", "isWall", "key", "kind", @@ -215,7 +226,6 @@ pxtrt.mapKeyNames = [ "layer", "layers", "left", - "leftChild", "length", "lfsr", "lifespan", @@ -257,25 +267,22 @@ pxtrt.mapKeyNames = [ "parent", "particleSources", "path", - "percolateDown", - "percolateUp", "period", "physicsEngine", "pickRandom", "place", "playerIndex", - "pop", "position", "preferredDelay", "pressureLevel", "prevTimeMillis", "previousScene", "priority", - "push", "raiseButtonDown", "raiseButtonRepeat", "raiseButtonUp", "randomRange", + "recalcSize", "register", "registerFrameCallbacks", "registerFrameHandler", @@ -284,20 +291,23 @@ pxtrt.mapKeyNames = [ "remove", "removeSprite", "render", + "renderable", "repeatDelay", "repeatInterval", "repeatX", "repeatY", + "resetHitbox", "resizeBuckets", "right", - "rightChild", "row", "rowCount", + "runButtonEvents", "runCallbacks", "runningCallbacks", "s", "sampleTilesByType", - "sayBubbleSprite", + "sayEndTime", + "sayRenderer", "scale", "scene", "sceneDefaultRate", @@ -344,7 +354,10 @@ pxtrt.mapKeyNames = [ "src", "start", "state", - "store", + "sx", + "sy", + "system", + "text", "theme", "tileIndex", "tileMap", @@ -359,13 +372,14 @@ pxtrt.mapKeyNames = [ "times", "toString", "top", + "totalCost", "unregister", "up", "update", "updateCard", "updateParticle", - "updateSay", "updateScrollTarget", + "user", "value", "vid", "visited", @@ -408,7 +422,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P314882(s) { +function _main___P67173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -418,228 +432,228 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___293039 = (undefined); - globals._pollEventQueue___293048 = (undefined); - globals.minPriority___289773 = (1); + globals._intervals___50949 = (undefined); + globals._pollEventQueue___50958 = (undefined); + globals.minPriority___47330 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, inline__P293051); - globals.listeners___293052 = (s.tmp_0); - globals.globalVolume___293105 = (null); - globals.playToneID___293112 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C291007_VT); + r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P50961); + globals.listeners___50962 = (s.tmp_0); + globals.globalVolume___51015 = (null); + globals.playToneID___51022 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C48567_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P291010_mk(s); + s.tmp_1 = music_Melody_constructor__P48570_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "~15 e3:3 r:1 d#:3 r:1 d:4 r:1 c#:8"; s.callLocIdx = 0; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - globals.wawawawaa___291024 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C291007_VT); + globals.wawawawaa___48584 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C48567_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P291010_mk(s); + s.tmp_1 = music_Melody_constructor__P48570_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = "g4:1 c5 e g:2 e:1 g:3"; s.callLocIdx = 1; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - globals.powerUp___291027 = (s.tmp_0); - globals.brightness___291143 = (100); + globals.powerUp___48587 = (s.tmp_0); + globals.brightness___48705 = (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", _hex297439); - globals.font8___291164 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex55801); + globals.font8___48727 = (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", _hex297441); - globals.font12___291165 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex55803); + globals.font12___48728 = (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", _hex303437); - globals.font5___291169 = (s.tmp_0); - globals.__updated___293159 = (false); - r0 = pxsim.control.runInParallel(inline__P293162); - r0 = pxsim_pxtcore.setPalette(_hex293173); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex61608); + globals.font5___48732 = (s.tmp_0); + globals.__updated___51071 = (false); + r0 = pxsim.control.runInParallel(control___screen_inline__P51074); + r0 = pxsim_pxtcore.setPalette(_hex51085); r0 = pxsim.image.create(160, 120); - globals.screen___291221 = (r0); - s.tmp_0 = control___screen_setupUpdate__P291183_mk(s); - s.tmp_0.arg0 = inline__P293180; + globals.screen___48784 = (r0); + s.tmp_0 = control___screen_setupUpdate__P48746_mk(s); + s.tmp_0.arg0 = _screen_internal_inline__P51092; s.callLocIdx = 4; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.control_EventContext_onStats___289796 = (inline__P293185); - globals.RUN_KEY___293190 = ("#run"); - globals.SCOPE_KEY___293191 = ("#scope"); - s.tmp_0 = settings_initScopes__P293202_mk(s); + globals.control_EventContext_onStats___47353 = (_screen_internal_inline__P51097); + globals.RUN_KEY___51102 = ("#run"); + globals.SCOPE_KEY___51103 = ("#scope"); + s.tmp_0 = settings_initScopes__P51114_mk(s); s.callLocIdx = 5; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C291322_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C48934_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P291328_mk(s); + s.tmp_1 = controller_Button_constructor__P48940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 5; s.tmp_1.arg2 = 4; s.callLocIdx = 6; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.A___291296 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C291322_VT); + globals.A___48862 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C48934_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P291328_mk(s); + s.tmp_1 = controller_Button_constructor__P48940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 6; s.tmp_1.arg2 = 5; s.callLocIdx = 7; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - globals.B___291297 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C291322_VT); + globals.B___48863 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C48934_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P291328_mk(s); + s.tmp_1 = controller_Button_constructor__P48940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 1; s.tmp_1.arg2 = 47; s.callLocIdx = 8; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - globals.left___291298 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C291322_VT); + globals.left___48864 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C48934_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P291328_mk(s); + s.tmp_1 = controller_Button_constructor__P48940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 2; s.tmp_1.arg2 = 49; s.callLocIdx = 9; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - globals.up___291299 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C291322_VT); + globals.up___48865 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C48934_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P291328_mk(s); + s.tmp_1 = controller_Button_constructor__P48940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = 48; s.callLocIdx = 10; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - globals.right___291300 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C291322_VT); + globals.right___48866 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C48934_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P291328_mk(s); + s.tmp_1 = controller_Button_constructor__P48940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 4; s.tmp_1.arg2 = 50; s.callLocIdx = 11; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - globals.down___291301 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C291322_VT); + globals.down___48867 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C48934_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P291328_mk(s); + s.tmp_1 = controller_Button_constructor__P48940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 7; s.tmp_1.arg2 = 51; s.callLocIdx = 12; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - globals.menu___291302 = (s.tmp_0); - globals._userEventsEnabled___293229 = (true); - globals.defaultRepeatDelay___293231 = (500); - globals.defaultRepeatInterval___293233 = (30); - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C293239_VT); + globals.menu___48868 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C51143_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P291328_mk(s); + s.tmp_1 = controller_Button_constructor__P48940_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 0; s.tmp_1.arg2 = -1; s.callLocIdx = 13; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; - globals.anyButton___291376 = (s.tmp_0); - s.tmp_0 = SpriteKind_create__P291555_mk(s); + globals.anyButton___48915 = (s.tmp_0); + globals._userEventsEnabled___51157 = (true); + globals.defaultRepeatDelay___51159 = (500); + globals.defaultRepeatInterval___51161 = (30); + s.tmp_0 = SpriteKind_create__P49213_mk(s); s.callLocIdx = 14; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - globals.Player___291556 = (r0); - s.tmp_0 = SpriteKind_create__P291555_mk(s); + globals.Player___49214 = (r0); + s.tmp_0 = SpriteKind_create__P49213_mk(s); s.callLocIdx = 15; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - globals.Food___291558 = (r0); - s.tmp_0 = SpriteKind_create__P291555_mk(s); + globals.Food___49216 = (r0); + s.tmp_0 = SpriteKind_create__P49213_mk(s); s.callLocIdx = 16; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - globals.Enemy___291559 = (r0); + globals.Enemy___49217 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___291597 = (r0); - globals.infoState___293296 = (undefined); - s.tmp_0 = game_addScenePushHandler__P291972_mk(s); - s.tmp_0.arg0 = inline__P293300; + globals.MIN_MOVE_GAP___49255 = (r0); + globals.infoState___51217 = (undefined); + s.tmp_0 = game_addScenePushHandler__P49654_mk(s); + s.tmp_0.arg0 = info_inline__P51221; s.callLocIdx = 18; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P291974_mk(s); - s.tmp_0.arg0 = inline__P293315; + s.tmp_0 = game_addScenePopHandler__P49656_mk(s); + s.tmp_0.arg0 = info_inline__P51236; s.callLocIdx = 22; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___291862 = (r0); - globals.debug___291951 = (false); - globals.stats___291952 = (false); - globals.winEffect___291953 = (undefined); - globals.loseEffect___291954 = (undefined); - globals.loseSound___293410 = (undefined); - globals.winSound___293412 = (undefined); - s.tmp_0 = scene_systemMenu_initVolume__P293679_mk(s); + globals.scene_Scene_initializers___49547 = (r0); + globals.debug___49636 = (false); + globals.stats___49637 = (false); + globals.winEffect___49638 = (undefined); + globals.loseEffect___49639 = (undefined); + globals.loseSound___51332 = (undefined); + globals.winSound___51334 = (undefined); + s.tmp_0 = scene_systemMenu_initVolume__P51601_mk(s); s.callLocIdx = 23; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = scene_systemMenu_initScreen__P293680_mk(s); + s.tmp_0 = scene_systemMenu_initScreen__P51602_mk(s); s.callLocIdx = 24; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_Array__push(globals.scene_Scene_initializers___291862, scene_systemMenu_register__P292056); - r0 = pxsim.image.ofBuffer(_hex293687); - globals.CARD_NORMAL___292061 = (r0); - r0 = pxsim.image.ofBuffer(_hex293689); - globals.CARD_SELECTED___292062 = (r0); - r0 = pxsim.image.ofBuffer(_hex293691); - globals.CARD_ACTIVE___292063 = (r0); - r0 = pxsim.image.ofBuffer(_hex293693); - globals.VOLUME_UP_ICON___292064 = (r0); - r0 = pxsim.image.ofBuffer(_hex293695); - globals.BRIGHTNESS_DOWN_ICON___292065 = (r0); - r0 = pxsim.image.ofBuffer(_hex293697); - globals.CLOSE_MENU_ICON___292066 = (r0); - r0 = pxsim.image.ofBuffer(_hex293699); - globals.VOLUME_DOWN_ICON___292067 = (r0); - r0 = pxsim.image.ofBuffer(_hex293701); - globals.SLEEP_ICON___292068 = (r0); - r0 = pxsim.image.ofBuffer(_hex293703); - globals.CONSOLE_ICON___292069 = (r0); - r0 = pxsim.image.ofBuffer(_hex293705); - globals.BRIGHTNESS_UP_ICON___292070 = (r0); - r0 = pxsim.image.ofBuffer(_hex293707); - globals.STATS_ICON___292071 = (r0); - globals.consoleColor___293710 = (1); - globals.tabSize___293713 = (8); - globals.consoleFont___293719 = (globals.font5___291169); - r0 = pxsim_ImageMethods.height(globals.screen___291221); + r0 = pxsim_Array__push(globals.scene_Scene_initializers___49547, scene_systemMenu_register__P49742); + r0 = pxsim.image.ofBuffer(_hex51609); + globals.CARD_NORMAL___49747 = (r0); + r0 = pxsim.image.ofBuffer(_hex51611); + globals.CARD_SELECTED___49748 = (r0); + r0 = pxsim.image.ofBuffer(_hex51613); + globals.CARD_ACTIVE___49749 = (r0); + r0 = pxsim.image.ofBuffer(_hex51615); + globals.VOLUME_UP_ICON___49750 = (r0); + r0 = pxsim.image.ofBuffer(_hex51617); + globals.BRIGHTNESS_DOWN_ICON___49751 = (r0); + r0 = pxsim.image.ofBuffer(_hex51619); + globals.CLOSE_MENU_ICON___49752 = (r0); + r0 = pxsim.image.ofBuffer(_hex51621); + globals.VOLUME_DOWN_ICON___49753 = (r0); + r0 = pxsim.image.ofBuffer(_hex51623); + globals.SLEEP_ICON___49754 = (r0); + r0 = pxsim.image.ofBuffer(_hex51625); + globals.CONSOLE_ICON___49755 = (r0); + r0 = pxsim.image.ofBuffer(_hex51627); + globals.BRIGHTNESS_UP_ICON___49756 = (r0); + r0 = pxsim.image.ofBuffer(_hex51629); + globals.STATS_ICON___49757 = (r0); + globals.consoleColor___51632 = (1); + globals.tabSize___51635 = (8); + globals.consoleFont___51641 = (globals.font5___48732); + r0 = pxsim_ImageMethods.height(globals.screen___48784); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___293719; + s.tmp_5.arg0 = globals.consoleFont___51641; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { @@ -658,13 +672,13 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___293724 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___291221); + globals.consoleLines___51646 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___48784); 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___293719; + s.tmp_4.arg0 = globals.consoleFont___51641; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); } else { @@ -679,22 +693,22 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___293734 = (r0); - s.tmp_0 = console_addListener__P289781_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P293746; + globals.consoleColumns___51656 = (r0); + s.tmp_0 = console_addListener__P47338_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P51668; s.callLocIdx = 27; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = inline__P293750; + s.tmp_0.argL = MAX_SOURCES_inline__P56671; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 29; s.pc = 23; return s.tmp_0; case 23: r0 = s.retval; - globals.MAX_SOURCES___293748 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C292141_VT); + globals.MAX_SOURCES___51670 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C49827_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P292142_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P49828_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; @@ -702,147 +716,129 @@ switch (step) { s.callLocIdx = 30; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - globals.defaultFactory___292121 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C292009_VT); + globals.defaultFactory___49807 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C49695_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P292011_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P49697_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; s.callLocIdx = 31; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; - globals.galois___293783 = (s.tmp_0); - globals.angleSlice___293791 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C292216_VT); + globals.galois___51690 = (s.tmp_0); + globals.angleSlice___51698 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C49902_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P292217_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P49903_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__P300773; + s.tmp_1.arg4 = confetti_inline__P60214; s.callLocIdx = 37; s.pc = 26; return s.tmp_1; case 26: r0 = s.retval; - globals.confetti___292224 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C292239_VT); + globals.confetti___49910 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C49925_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P292240_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P49926_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = inline__P299620; + s.tmp_1.arg2 = dissolve_inline__P57766; s.callLocIdx = 43; s.pc = 27; return s.tmp_1; case 27: r0 = s.retval; - globals.dissolve___292244 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C292239_VT); + globals.dissolve___49930 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C49925_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P292240_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P49926_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = inline__P300719; + s.tmp_1.arg2 = melt_inline__P60160; s.callLocIdx = 46; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - globals.melt___292245 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C292254_VT); - s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P292256_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P293842; - s.callLocIdx = 47; s.pc = 29; return s.tmp_1; + globals.melt___49931 = (s.tmp_0); + r0 = pxsim.image.ofBuffer(_hex52069); + globals.tileGrass1___50217 = (r0); + r0 = pxsim.image.ofBuffer(_hex52073); + globals.tilePath5___50219 = (r0); + r0 = pxsim.image.ofBuffer(_hex52921); + globals.carRedLeft___50653 = (r0); + r0 = pxsim.image.ofBuffer(_hex52923); + globals.carRedRight___50654 = (r0); + r0 = pxsim.image.ofBuffer(_hex52925); + globals.carRedBack___50655 = (r0); + r0 = pxsim.image.ofBuffer(_hex52929); + globals.carBlueLeft___50657 = (r0); + r0 = pxsim.image.ofBuffer(_hex52931); + globals.carBlueRight___50658 = (r0); + r0 = pxsim.image.ofBuffer(_hex52933); + globals.carBlueBack___50659 = (r0); + r0 = pxsim.image.ofBuffer(_hex52937); + globals.carPinkLeft___50661 = (r0); + r0 = pxsim.image.ofBuffer(_hex52939); + globals.carPinkRight___50662 = (r0); + r0 = pxsim.image.ofBuffer(_hex52941); + globals.carPinkBack___50663 = (r0); + r0 = pxsim.image.ofBuffer(_hex52975); + globals.roadTurn2___50680 = (r0); + r0 = pxsim.image.ofBuffer(_hex52981); + globals.roadTurn3___50683 = (r0); + r0 = pxsim.image.ofBuffer(_hex52983); + globals.roadTurn4___50684 = (r0); + r0 = pxsim.image.ofBuffer(_hex52989); + globals.roadVertical___50687 = (r0); + r0 = pxsim.image.ofBuffer(_hex52991); + globals.roadHorizontal___50688 = (r0); + s.tmp_0 = game_setWaitAnyButton__P49641_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P48950; + s.callLocIdx = 47; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - globals.shake___292257 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C292254_VT); - s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P292256_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P293855; - s.callLocIdx = 57; s.pc = 30; return s.tmp_1; + s.tmp_0 = game_eventContext__P49643_mk(s); + s.callLocIdx = 48; s.pc = 30; return s.tmp_0; case 30: r0 = s.retval; - globals.wave___292258 = (s.tmp_0); - r0 = pxsim.image.ofBuffer(_hex294185); - globals.tileGrass1___292515 = (r0); - r0 = pxsim.image.ofBuffer(_hex294189); - globals.tilePath5___292517 = (r0); - r0 = pxsim.image.ofBuffer(_hex295017); - globals.carRedLeft___292941 = (r0); - r0 = pxsim.image.ofBuffer(_hex295019); - globals.carRedRight___292942 = (r0); - r0 = pxsim.image.ofBuffer(_hex295021); - globals.carRedBack___292943 = (r0); - r0 = pxsim.image.ofBuffer(_hex295025); - globals.carBlueLeft___292945 = (r0); - r0 = pxsim.image.ofBuffer(_hex295027); - globals.carBlueRight___292946 = (r0); - r0 = pxsim.image.ofBuffer(_hex295029); - globals.carBlueBack___292947 = (r0); - r0 = pxsim.image.ofBuffer(_hex295033); - globals.carPinkLeft___292949 = (r0); - r0 = pxsim.image.ofBuffer(_hex295035); - globals.carPinkRight___292950 = (r0); - r0 = pxsim.image.ofBuffer(_hex295037); - globals.carPinkBack___292951 = (r0); - r0 = pxsim.image.ofBuffer(_hex295043); - globals.roadTurn2___292954 = (r0); - r0 = pxsim.image.ofBuffer(_hex295049); - globals.roadTurn3___292957 = (r0); - r0 = pxsim.image.ofBuffer(_hex295051); - globals.roadTurn4___292958 = (r0); - r0 = pxsim.image.ofBuffer(_hex295057); - globals.roadVertical___292961 = (r0); - r0 = pxsim.image.ofBuffer(_hex295059); - globals.roadHorizontal___292962 = (r0); - s.tmp_0 = game_setWaitAnyButton__P291956_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P291372; - s.callLocIdx = 58; s.pc = 31; return s.tmp_0; + globals.PATH_FOLLOW_KEY___53946 = ("A_STAR_PATH_FOLLOW"); + globals.PATH_COMPLETION_KEY___53948 = ("A_STAR_PATH_COMPLETION_HANDLER"); + r0 = pxsim.image.ofBuffer(_hex54539); + globals.transparency16___50890 = (r0); + r0 = pxsim.image.ofBuffer(_hex54543); + globals.tile1___50891 = (r0); + r0 = pxsim.image.ofBuffer(_hex54547); + globals.tile2___50892 = (r0); + r0 = pxsim.image.ofBuffer(_hex54551); + globals.tile3___50893 = (r0); + r0 = pxsim.image.ofBuffer(_hex54555); + globals.tile4___50894 = (r0); + s.tmp_0 = helpers__registerFactory__P49966_mk(s); + s.tmp_0.arg0 = "tilemap"; + s.tmp_0.arg1 = myTiles_inline__P54559; + s.callLocIdx = 186; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; - s.tmp_0 = game_eventContext__P291958_mk(s); - s.callLocIdx = 59; s.pc = 32; return s.tmp_0; + s.tmp_0 = helpers__registerFactory__P49966_mk(s); + s.tmp_0.arg0 = "tile"; + s.tmp_0.arg1 = myTiles_inline__P54592; + s.callLocIdx = 188; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - globals.PATH_FOLLOW_KEY___295615 = ("A_STAR_PATH_FOLLOW"); - globals.PATH_COMPLETION_KEY___295617 = ("A_STAR_PATH_COMPLETION_HANDLER"); - r0 = pxsim.image.ofBuffer(_hex296208); - globals.transparency16___292984 = (r0); - r0 = pxsim.image.ofBuffer(_hex296212); - globals.tile1___292985 = (r0); - r0 = pxsim.image.ofBuffer(_hex296216); - globals.tile2___292986 = (r0); - r0 = pxsim.image.ofBuffer(_hex296220); - globals.tile3___292987 = (r0); - r0 = pxsim.image.ofBuffer(_hex296224); - globals.tile4___292988 = (r0); - s.tmp_0 = helpers__registerFactory__P292280_mk(s); - s.tmp_0.arg0 = "tilemap"; - s.tmp_0.arg1 = inline__P296228; - s.callLocIdx = 204; s.pc = 33; return s.tmp_0; + s.tmp_0 = createIcon__P50895_mk(s); + s.callLocIdx = 189; s.pc = 33; return s.tmp_0; case 33: - r0 = s.retval; - s.tmp_0 = helpers__registerFactory__P292280_mk(s); - s.tmp_0.arg0 = "tile"; - s.tmp_0.arg1 = inline__P296261; - s.callLocIdx = 206; s.pc = 34; return s.tmp_0; - case 34: - r0 = s.retval; - s.tmp_0 = createIcon__P292989_mk(s); - s.callLocIdx = 207; s.pc = 35; return s.tmp_0; - case 35: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P314882.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"pxt_modules/pxt-heap/main.ts","functionName":"
","argumentNames":[]} -_main___P314882.continuations = [ ] +_main___P67173.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"main.ts","functionName":"
","argumentNames":[]} +_main___P67173.continuations = [ ] -function _main___P314882_mk(s) { +function _main___P67173_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P314882, depth: s.depth + 1, + parent: s, fn: _main___P67173, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -852,47 +848,47 @@ function _main___P314882_mk(s) { tmp_5: undefined, } } -const _hex297439 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex297441 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex303437 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex293173 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex293687 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex293689 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex293691 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex293693 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex293695 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex293697 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex293699 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex293701 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex293703 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex293705 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex293707 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex294185 = pxsim.BufferMethods.createBufferFromHex("87041000100000007777777777777777777677777777777757657777777777777755767777557677557777777777777757757777777777777757757777777777775576777777777777657777777777777777777777777777777777777777777777777777777777777777576577777777777777777777577777777777777777777777777777777777") -const _hex294189 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddd1dd1dddddddddddd1dd1dddddddbdddddddddd1dd1dddddddddddd1dd1dddddddddddddddddddddbdddddddddddddddddd1dddddddddddddddddddddddddddddddddddddddbbddddddddddddddbbdddddddddddddddddddddddddddddddddddddddbddbdddddddddddddddddddddddddddddbddddddddddddddddd") -const _hex295017 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000d02222ed0e0000002d22d2ed0e0000002222d2e2ee000020442422eefe0f00c2cc2beeeeff0f20ccbceef2eeff0f2022e2bee2efff0f2022e4bbe2fefe002022e4bbe2feee002022e4bbf2ffee002022e4eeeeeefe002022e4bbe2eeff0f2044e4bbe2eeff0f00c22cbee2eeff0f0020cce2eeeeff00") -const _hex295019 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000002222eeee0e000020cce2eeeeff0000c22cbee2eeff0f2044e4bbe2eeff0f2022e4bbe2eeff0f2022e4eeeeeefe002022e4bbf2ffee002022e4bbe2feee002022e4bbe2fefe002022e2bee2efff0f20ccbceef2eeff0f00c2cc2beeeeff0f0020442422eefe0f00002222d2e2ee0000002d22d2ed0e00") -const _hex295021 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000e0ffffeeeeff0f0022222222e2eeffe0cc22c2ecee2dfe2e424424ceebde0e2e222242bcebee0e2c222242bcebee0e2c222222bcebee0e2e222222bcebee0e2e222222ceebde0ee0cc2cc2ecee2dfe0022222222e2eeff00e0ffffeeeeff0f0000000000000000") -const _hex295025 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000d066668d080000006d66d68d080000006666d6868800006099696688f80f00c6cc6b8888ff0f60ccbc88f688ff0f606686b8868fff0f606689bb86f8f800606689bb86f88800606689bbf6ff8800606689888888f800606689bb8688ff0f609989bb8688ff0f00c66cb88688ff0f0060cc868888ff00") -const _hex295027 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000006666888808000060cc868888ff0000c66cb88688ff0f609989bb8688ff0f606689bb8688ff0f606689888888f800606689bbf6ff8800606689bb86f88800606689bb86f8f800606686b8868fff0f60ccbc88f688ff0f00c6cc6b8888ff0f006099696688f80f00006666d686880000006d66d68d0800") -const _hex295029 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000080ffff8888ff0f00666666668688ff80cc66c68c886df868969969c88bd80868666696bc8b88086c666696bc8b88086c666666bc8b880868666666bc8b880868666666c88bd80880cc6cc68c886df800666666668688ff0080ffff8888ff0f0000000000000000") -const _hex295033 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000d03333ad0a0000003d33d3ad0a0000003333d3a3aa000030dd3d33aafa0f00c3cc3baaaaff0f30ccbcaaf3aaff0f3033a3baa3afff0f3033adbba3fafa003033adbba3faaa003033adbbf3ffaa003033adaaaaaafa003033adbba3aaff0f30ddadbba3aaff0f00c33cbaa3aaff0f0030cca3aaaaff00") -const _hex295035 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000003333aaaa0a000030cca3aaaaff0000c33cbaa3aaff0f30ddadbba3aaff0f3033adbba3aaff0f3033adaaaaaafa003033adbbf3ffaa003033adbba3faaa003033adbba3fafa003033a3baa3afff0f30ccbcaaf3aaff0f00c3cc3baaaaff0f0030dd3d33aafa0f00003333d3a3aa0000003d33d3ad0a00") -const _hex295037 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000a0ffffaaaaff0f0033333333a3aaffa0cc33c3acaa3dfa3ad3dd3dcaabda0a3a3333d3bcabaa0a3c3333d3bcabaa0a3c333333bcabaa0a3a333333bcabaa0a3a333333caabda0aa0cc3cc3acaa3dfa0033333333a3aaff00a0ffffaaaaff0f0000000000000000") -const _hex295043 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bcbdbbbbbbbbdbcbbcbdbbbbbbbbdbbbbcbdbbbbbbbbbbddbcbdbbbbbbbbbbbbbcbdbbbbbdbbbbbbbcbdbbdb11bbbbbbbcbdbbbb11b1bbbbbcbdbbbb1bd1bbbbbcbdbbbbbbbdbbbbbcbdbbbbbbbbbbbbbcbdbbbbbbbbbbbbbcbdbbbbbbbbbbbbbcdbbbbbbbbbbbbbc0bbdddddddddddd00bcbbbbbbbbbbbb00c0cccccccccccc") -const _hex295049 = pxsim.BufferMethods.createBufferFromHex("8704100010000000cccccccccccc0c00bbbbbbbbbbbbcb00ddddddddddddbb0cbbbbbbbbbbbbbdcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbdbbbbbbbdbcbbbbb1db1bbbbdbcbbbbb1b11bbbbdbcbbbbbbb11bdbbdbcbbbbbbbdbbbbbdbcbbbbbbbbbbbbbdbcbddbbbbbbbbbbdbcbbbbdbbbbbbbbdbcbbcbdbbbbbbbbdbcb") -const _hex295051 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bcbdbbbbbbbbdbcbbbbdbbbbbbbbdbcbddbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbdbbbbbdbcbbbbbbb11bdbbdbcbbbbb1b11bbbbdbcbbbbb1db1bbbbdbcbbbbbdbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbbdcbddddddddddddbb0cbbbbbbbbbbbbcb00cccccccccccc0c00") -const _hex295057 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ccccccccccccccccbbbbbbbbbbbbbbbbddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbdb1111bbdb1111bb1b11d1bb1b11d1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbddddddddddddddddbbbbbbbbbbbbbbbbcccccccccccccccc") -const _hex295059 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bcbdbbbbbbbbdbcbbcbdbb1bbdbbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbbdbb1bbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcbbcbdbb1bbdbbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbbdbb1bbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcb") -const _hex296208 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex296212 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex296216 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dbbbbbbbbbbbbbbddbbbbb1bbdbbbbbddbbbbb1bb1bbbbbdbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbbdbb1bbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcbbcbdbb1bbdbbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbbdbb1bbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcb") -const _hex296220 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbcbccccccccccccddbdbbbbbbbbbbbbbbdbddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbdb1111bbdb1111bb1b11d1bb1b11d1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbdbddddddddddddddbdbbbbbbbbbbbbbbcbcccccccccccc") -const _hex296224 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex55801 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex55803 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex61608 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex51085 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex51609 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex51611 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex51613 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex51615 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex51617 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex51619 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex51621 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex51623 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex51625 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex51627 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex51629 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex52069 = pxsim.BufferMethods.createBufferFromHex("87041000100000007777777777777777777677777777777757657777777777777755767777557677557777777777777757757777777777777757757777777777775576777777777777657777777777777777777777777777777777777777777777777777777777777777576577777777777777777777577777777777777777777777777777777777") +const _hex52073 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dddddddddd1dd1dddddddddddd1dd1dddddddbdddddddddd1dd1dddddddddddd1dd1dddddddddddddddddddddbdddddddddddddddddd1dddddddddddddddddddddddddddddddddddddddbbddddddddddddddbbdddddddddddddddddddddddddddddddddddddddbddbdddddddddddddddddddddddddddddbddddddddddddddddd") +const _hex52921 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000d02222ed0e0000002d22d2ed0e0000002222d2e2ee000020442422eefe0f00c2cc2beeeeff0f20ccbceef2eeff0f2022e2bee2efff0f2022e4bbe2fefe002022e4bbe2feee002022e4bbf2ffee002022e4eeeeeefe002022e4bbe2eeff0f2044e4bbe2eeff0f00c22cbee2eeff0f0020cce2eeeeff00") +const _hex52923 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000002222eeee0e000020cce2eeeeff0000c22cbee2eeff0f2044e4bbe2eeff0f2022e4bbe2eeff0f2022e4eeeeeefe002022e4bbf2ffee002022e4bbe2feee002022e4bbe2fefe002022e2bee2efff0f20ccbceef2eeff0f00c2cc2beeeeff0f0020442422eefe0f00002222d2e2ee0000002d22d2ed0e00") +const _hex52925 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000e0ffffeeeeff0f0022222222e2eeffe0cc22c2ecee2dfe2e424424ceebde0e2e222242bcebee0e2c222242bcebee0e2c222222bcebee0e2e222222bcebee0e2e222222ceebde0ee0cc2cc2ecee2dfe0022222222e2eeff00e0ffffeeeeff0f0000000000000000") +const _hex52929 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000d066668d080000006d66d68d080000006666d6868800006099696688f80f00c6cc6b8888ff0f60ccbc88f688ff0f606686b8868fff0f606689bb86f8f800606689bb86f88800606689bbf6ff8800606689888888f800606689bb8688ff0f609989bb8688ff0f00c66cb88688ff0f0060cc868888ff00") +const _hex52931 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000006666888808000060cc868888ff0000c66cb88688ff0f609989bb8688ff0f606689bb8688ff0f606689888888f800606689bbf6ff8800606689bb86f88800606689bb86f8f800606686b8868fff0f60ccbc88f688ff0f00c6cc6b8888ff0f006099696688f80f00006666d686880000006d66d68d0800") +const _hex52933 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000080ffff8888ff0f00666666668688ff80cc66c68c886df868969969c88bd80868666696bc8b88086c666696bc8b88086c666666bc8b880868666666bc8b880868666666c88bd80880cc6cc68c886df800666666668688ff0080ffff8888ff0f0000000000000000") +const _hex52937 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000d03333ad0a0000003d33d3ad0a0000003333d3a3aa000030dd3d33aafa0f00c3cc3baaaaff0f30ccbcaaf3aaff0f3033a3baa3afff0f3033adbba3fafa003033adbba3faaa003033adbbf3ffaa003033adaaaaaafa003033adbba3aaff0f30ddadbba3aaff0f00c33cbaa3aaff0f0030cca3aaaaff00") +const _hex52939 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000003333aaaa0a000030cca3aaaaff0000c33cbaa3aaff0f30ddadbba3aaff0f3033adbba3aaff0f3033adaaaaaafa003033adbbf3ffaa003033adbba3faaa003033adbba3fafa003033a3baa3afff0f30ccbcaaf3aaff0f00c3cc3baaaaff0f0030dd3d33aafa0f00003333d3a3aa0000003d33d3ad0a00") +const _hex52941 = pxsim.BufferMethods.createBufferFromHex("870410001000000000000000000000000000000000000000000000000000000000a0ffffaaaaff0f0033333333a3aaffa0cc33c3acaa3dfa3ad3dd3dcaabda0a3a3333d3bcabaa0a3c3333d3bcabaa0a3c333333bcabaa0a3a333333bcabaa0a3a333333caabda0aa0cc3cc3acaa3dfa0033333333a3aaff00a0ffffaaaaff0f0000000000000000") +const _hex52975 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bcbdbbbbbbbbdbcbbcbdbbbbbbbbdbbbbcbdbbbbbbbbbbddbcbdbbbbbbbbbbbbbcbdbbbbbdbbbbbbbcbdbbdb11bbbbbbbcbdbbbb11b1bbbbbcbdbbbb1bd1bbbbbcbdbbbbbbbdbbbbbcbdbbbbbbbbbbbbbcbdbbbbbbbbbbbbbcbdbbbbbbbbbbbbbcdbbbbbbbbbbbbbc0bbdddddddddddd00bcbbbbbbbbbbbb00c0cccccccccccc") +const _hex52981 = pxsim.BufferMethods.createBufferFromHex("8704100010000000cccccccccccc0c00bbbbbbbbbbbbcb00ddddddddddddbb0cbbbbbbbbbbbbbdcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbdbbbbbbbdbcbbbbb1db1bbbbdbcbbbbb1b11bbbbdbcbbbbbbb11bdbbdbcbbbbbbbdbbbbbdbcbbbbbbbbbbbbbdbcbddbbbbbbbbbbdbcbbbbdbbbbbbbbdbcbbcbdbbbbbbbbdbcb") +const _hex52983 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bcbdbbbbbbbbdbcbbbbdbbbbbbbbdbcbddbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbdbbbbbdbcbbbbbbb11bdbbdbcbbbbb1b11bbbbdbcbbbbb1db1bbbbdbcbbbbbdbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbdbcbbbbbbbbbbbbbbdcbddddddddddddbb0cbbbbbbbbbbbbcb00cccccccccccc0c00") +const _hex52989 = pxsim.BufferMethods.createBufferFromHex("8704100010000000ccccccccccccccccbbbbbbbbbbbbbbbbddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbdb1111bbdb1111bb1b11d1bb1b11d1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbddddddddddddddddbbbbbbbbbbbbbbbbcccccccccccccccc") +const _hex52991 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bcbdbbbbbbbbdbcbbcbdbb1bbdbbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbbdbb1bbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcbbcbdbb1bbdbbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbbdbb1bbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcb") +const _hex54539 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex54543 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex54547 = pxsim.BufferMethods.createBufferFromHex("8704100010000000dbbbbbbbbbbbbbbddbbbbb1bbdbbbbbddbbbbb1bb1bbbbbdbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbbdbb1bbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcbbcbdbb1bbdbbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbb1bb1bbdbcbbcbdbbdbb1bbdbcbbcbdbbbbbbbbdbcbbcbdbbbbbbbbdbcb") +const _hex54551 = pxsim.BufferMethods.createBufferFromHex("8704100010000000bbcbccccccccccccddbdbbbbbbbbbbbbbbdbddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbdb1111bbdb1111bb1b11d1bb1b11d1bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbdbddddddddddddddbdbbbbbbbbbbbbbbcbcccccccccccc") +const _hex54555 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function inline__P293162(s) { +function control___screen_inline__P51074(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -905,23 +901,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___293159 = (false); - s.tmp_0 = pause__P289811_mk(s); + globals.__updated___51071 = (false); + s.tmp_0 = pause__P47368_mk(s); s.tmp_0.arg0 = 200; s.callLocIdx = 2; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.__updated___293159); + r0 = pxsim_numops_toBoolDecr(globals.__updated___51071); s.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__P291182_mk(s); + s.tmp_2 = control___screen_update__P48745_mk(s); s.callLocIdx = 3; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___293159 = (true); + globals.__updated___51071 = (true); case 2: case 3: { step = 1; continue; } @@ -930,12 +926,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P293162.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} +control___screen_inline__P51074.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} -function inline__P293162_mk(s) { +function control___screen_inline__P51074_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P293162, depth: s.depth + 1, + parent: s, fn: control___screen_inline__P51074, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -946,7 +942,7 @@ function inline__P293162_mk(s) { -function inline__P293180(s) { +function _screen_internal_inline__P51092(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -956,17 +952,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___291221); + r0 = pxsim_pxtcore.updateScreen(globals.screen___48784); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P293180.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} +_screen_internal_inline__P51092.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} -function inline__P293180_mk(s) { +function _screen_internal_inline__P51092_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P293180, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P51092, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -974,7 +970,7 @@ function inline__P293180_mk(s) { -function inline__P293185(s) { +function _screen_internal_inline__P51097(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -993,12 +989,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P293185.info = {"start":816,"length":56,"line":23,"column":35,"endLine":25,"endColumn":5,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":["msg"]} +_screen_internal_inline__P51097.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__P293185_mk(s) { +function _screen_internal_inline__P51097_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P293185, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P51097, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -1007,7 +1003,7 @@ function inline__P293185_mk(s) { -function inline__P293300(s) { +function info_inline__P51221(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1021,36 +1017,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___293296); + r0 = pxsim_numops_toBoolDecr(globals.infoState___51217); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___293298); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___51219); s.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___293298 = (r0); + globals.infoStateStack___51219 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___293296); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___51217); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___293298, s.tmp_0); - globals.infoState___293296 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___51219, s.tmp_0); + globals.infoState___51217 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P293300.info = {"start":1920,"length":259,"line":73,"column":29,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} +info_inline__P51221.info = {"start":1996,"length":259,"line":75,"column":29,"endLine":84,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":["oldScene"]} -function inline__P293300_mk(s) { +function info_inline__P51221_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P293300, depth: s.depth + 1, + parent: s, fn: info_inline__P51221, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1061,7 +1057,7 @@ function inline__P293300_mk(s) { -function inline__P293315(s) { +function info_inline__P51236(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1071,30 +1067,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___293316 = undefined; - s.nextState___293325 = undefined; - s.tmp_0 = game_currentScene__P291955_mk(s); + s.scene___51237 = undefined; + s.nextState___51246 = undefined; + s.tmp_0 = game_currentScene__P49640_mk(s); s.callLocIdx = 19; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___293316 = (r0); - globals.infoState___293296 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___293298; + s.scene___51237 = (r0); + globals.infoState___51217 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___51219; 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___293298); + r0 = pxsim_Array__length(globals.infoStateStack___51219); 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___293298); - s.nextState___293325 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___51219); + s.nextState___51246 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___293325; + s.tmp_2.arg0 = s.nextState___51246; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -1106,12 +1102,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___293316); + r0 = (s.tmp_1 == s.scene___51237); 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___293325; + s.tmp_3.arg0 = s.nextState___51246; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -1122,10 +1118,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.infoState___293296 = (r0); + globals.infoState___51217 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___293298, s.nextState___293325); + r0 = pxsim_Array__push(globals.infoStateStack___51219, s.nextState___51246); case 4: case 5: case 6: @@ -1133,133 +1129,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P293315.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} +info_inline__P51236.info = {"start":2287,"length":376,"line":86,"column":28,"endLine":97,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function inline__P293315_mk(s) { +function info_inline__P51236_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P293315, depth: s.depth + 1, + parent: s, fn: info_inline__P51236, depth: s.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___293316: undefined, - nextState___293325: undefined, -} } - - - - - -function inline__P293750(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.sz___293751 = undefined; - s.tmp_0 = control_ramSize__P289744_mk(s); - s.callLocIdx = 28; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.sz___293751 = (r0); - r0 = (s.sz___293751 <= 102400); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 8; - { step = 5; continue; } - { step = 4; continue; } - case 1: - r0 = (s.sz___293751 <= 204800); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = 16; - { step = 5; continue; } - { step = 3; continue; } - case 2: - r0 = 50; - { step = 5; continue; } - case 3: - case 4: - r0 = undefined; - case 5: - return leave(s, r0) - default: oops() -} } } -inline__P293750.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} - -function inline__P293750_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P293750, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - sz___293751: undefined, + scene___51237: undefined, + nextState___51246: undefined, } } -function inline__P293842(s) { -let r0 = s.r0, 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_pxtrt.mkMap(); - s.tmp_0 = r0; - r0 = pxsim.Math_.random(); - s.tmp_3 = r0; - r0 = (s.tmp_3 * 2); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "xOffset", s.tmp_1); - r0 = pxsim.Math_.random(); - s.tmp_6 = r0; - r0 = (s.tmp_6 * 2); - s.tmp_5 = r0; - r0 = (s.tmp_5 - 1); - s.tmp_4 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "yOffset", s.tmp_4); - r0 = s.tmp_0; - return leave(s, r0) - default: oops() -} } } -inline__P293842.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} - -function inline__P293842_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P293842, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, -} } - - - - - -function inline__P293855(s) { +function myTiles_inline__P54559(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1271,202 +1160,11 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt.mkMap(); - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "xOffset", 0); - r0 = pxsim.Math_.sin(s.arg0); - s.tmp_4 = r0; - 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__P289533_mk(s); - r0 = pxsim.Math_.sin(s.arg0); - s.tmp_7.arg0 = r0; - s.callLocIdx = 48; s.pc = 7; return s.tmp_7; - case 7: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 < 0); - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_2, "up", s.tmp_5); - s.arg1 = (s.tmp_2); - case 1: - case 2: - s.tmp_1 = if_up_1_mk(s); - s.tmp_1.arg0 = s.arg1; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "up"); - } else { - 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.callLocIdx = 49; s.pc = 8; return s.tmp_1; } - } - case 8: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = 1; - { step = 4; continue; } - case 3: - r0 = -1; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = if_yOffset_2_mk(s); - s.tmp_4 = r0 = s.arg1; - s.tmp_3.arg0 = r0; - s.tmp_6 = if_yOffset_1_mk(s); - s.tmp_6.arg0 = s.tmp_4; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "yOffset"); - } else { - 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.callLocIdx = 50; s.pc = 10; return s.tmp_6; } - } - case 10: - r0 = s.retval; - s.tmp_5 = r0; - r0 = (s.tmp_2 * 0.5); - s.tmp_7 = r0; - r0 = (s.tmp_5 + s.tmp_7); - s.tmp_3.arg1 = r0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "yOffset", s.tmp_3.arg1); - } else { - 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.callLocIdx = 51; s.pc = 9; return s.tmp_3; } - } - case 9: - r0 = s.retval; - s.tmp_2 = Math_abs__P289532_mk(s); - s.tmp_3 = if_yOffset_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, "yOffset"); - } else { - 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.callLocIdx = 52; s.pc = 12; return s.tmp_3; } - } - case 12: - r0 = s.retval; - s.tmp_2.arg0 = r0; - s.callLocIdx = 53; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_6 = if_up_1_mk(s); - s.tmp_6.arg0 = s.arg1; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "up"); - } else { - 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.callLocIdx = 54; s.pc = 13; return s.tmp_6; } - } - case 13: - 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); - { step = 6; continue; } - case 5: - s.tmp_7 = if_up_1_mk(s); - s.tmp_7.arg0 = s.arg1; - if (!s.tmp_7.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_7.arg0, "up"); - } else { - 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.callLocIdx = 55; s.pc = 14; return s.tmp_7; } - } - case 14: - r0 = s.retval; - case 6: - // jmp value (already in r0) - s.tmp_8 = r0; - s.tmp_9 = if_up_2_mk(s); - s.tmp_9.arg0 = s.arg1; - s.tmp_9.arg1 = s.tmp_8; - if (!s.tmp_9.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_9.arg0, "up", s.tmp_9.arg1); - } else { - 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.callLocIdx = 56; s.pc = 15; return s.tmp_9; } - } - case 15: - r0 = s.retval; - r0 = s.arg1; - return leave(s, r0) - default: oops() -} } } -inline__P293855.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__P293855_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P293855, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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 inline__P296228(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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 = helpers_stringTrim__P289527_mk(s); + s.tmp_1 = helpers_stringTrim__P47078_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 201; s.pc = 7; return s.tmp_1; + s.callLocIdx = 183; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; s.tmp_0 = r0; @@ -1484,16 +1182,16 @@ switch (step) { case 2: r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, globals.transparency16___292984); - r0 = pxsim_Array__push(s.tmp_2, globals.tilePath5___292517); - r0 = pxsim_Array__push(s.tmp_2, globals.tileGrass1___292515); - s.tmp_3 = tiles_createTilemap__P291770_mk(s); - s.tmp_3.arg0 = _hex296235; - r0 = pxsim.image.ofBuffer(_hex296237); + r0 = pxsim_Array__push(s.tmp_2, globals.transparency16___50890); + r0 = pxsim_Array__push(s.tmp_2, globals.tilePath5___50219); + r0 = pxsim_Array__push(s.tmp_2, globals.tileGrass1___50217); + s.tmp_3 = tiles_createTilemap__P49448_mk(s); + s.tmp_3.arg0 = _hex54566; + r0 = pxsim.image.ofBuffer(_hex54568); s.tmp_3.arg1 = r0; s.tmp_3.arg2 = s.tmp_2; s.tmp_3.arg3 = 4; - s.callLocIdx = 202; s.pc = 8; return s.tmp_3; + s.callLocIdx = 184; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; { step = 6; continue; } @@ -1501,22 +1199,22 @@ switch (step) { case 4: r0 = pxsim_Array__mk(); s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_4, globals.transparency16___292984); - r0 = pxsim_Array__push(s.tmp_4, globals.roadTurn3___292957); - r0 = pxsim_Array__push(s.tmp_4, globals.roadHorizontal___292962); - r0 = pxsim_Array__push(s.tmp_4, globals.roadTurn4___292958); - r0 = pxsim_Array__push(s.tmp_4, globals.roadVertical___292961); - r0 = pxsim_Array__push(s.tmp_4, globals.roadTurn2___292954); - r0 = pxsim_Array__push(s.tmp_4, globals.tile2___292986); - r0 = pxsim_Array__push(s.tmp_4, globals.tilePath5___292517); - r0 = pxsim_Array__push(s.tmp_4, globals.tile3___292987); - s.tmp_5 = tiles_createTilemap__P291770_mk(s); - s.tmp_5.arg0 = _hex296245; - r0 = pxsim.image.ofBuffer(_hex296247); + r0 = pxsim_Array__push(s.tmp_4, globals.transparency16___50890); + r0 = pxsim_Array__push(s.tmp_4, globals.roadTurn3___50683); + r0 = pxsim_Array__push(s.tmp_4, globals.roadHorizontal___50688); + r0 = pxsim_Array__push(s.tmp_4, globals.roadTurn4___50684); + r0 = pxsim_Array__push(s.tmp_4, globals.roadVertical___50687); + r0 = pxsim_Array__push(s.tmp_4, globals.roadTurn2___50680); + r0 = pxsim_Array__push(s.tmp_4, globals.tile2___50892); + r0 = pxsim_Array__push(s.tmp_4, globals.tilePath5___50219); + r0 = pxsim_Array__push(s.tmp_4, globals.tile3___50893); + s.tmp_5 = tiles_createTilemap__P49448_mk(s); + s.tmp_5.arg0 = _hex54576; + r0 = pxsim.image.ofBuffer(_hex54578); s.tmp_5.arg1 = r0; s.tmp_5.arg2 = s.tmp_4; s.tmp_5.arg3 = 4; - s.callLocIdx = 203; s.pc = 9; return s.tmp_5; + s.callLocIdx = 185; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; { step = 6; continue; } @@ -1526,12 +1224,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P296228.info = {"start":617,"length":2010,"line":13,"column":40,"endLine":47,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} +myTiles_inline__P54559.info = {"start":617,"length":2010,"line":13,"column":40,"endLine":47,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} -function inline__P296228_mk(s) { +function myTiles_inline__P54559_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P296228, depth: s.depth + 1, + parent: s, fn: myTiles_inline__P54559, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1542,15 +1240,15 @@ function inline__P296228_mk(s) { arg0: undefined, } } -const _hex296235 = pxsim.BufferMethods.createBufferFromHex("1000100002020202020202020202020202020202020202020202020202020202020202020202020201020202020202020202020201010101010101010101010202020202020202020202020202020101020202020202020202020201020202010102020202020202020202010202020201020202020202020202020102020202010202020202020101010101020202010102020202020202020102020202010102020202020202020201020202010102020202020101010101010101010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202") -const _hex296237 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex296245 = pxsim.BufferMethods.createBufferFromHex("0a0008000807070707070707070704070707070707070707010202020205070707070707070707040707070707070707070102020205070707070707070707040602020202020202020307070707070707070707") -const _hex296247 = pxsim.BufferMethods.createBufferFromHex("87040a000800000000202220222022202220222022202220222022202200202022222020222220202222202022220020") +const _hex54566 = pxsim.BufferMethods.createBufferFromHex("1000100002020202020202020202020202020202020202020202020202020202020202020202020201020202020202020202020201010101010101010101010202020202020202020202020202020101020202020202020202020201020202010102020202020202020202010202020201020202020202020202020102020202010202020202020101010101020202010102020202020202020102020202010102020202020202020201020202010102020202020101010101010101010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202") +const _hex54568 = pxsim.BufferMethods.createBufferFromHex("87041000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex54576 = pxsim.BufferMethods.createBufferFromHex("0a0008000807070707070707070704070707070707070707010202020205070707070707070707040707070707070707070102020205070707070707070707040602020202020202020307070707070707070707") +const _hex54578 = pxsim.BufferMethods.createBufferFromHex("87040a000800000000202220222022202220222022202220222022202200202022222020222220202222202022220020") -function inline__P296261(s) { +function myTiles_inline__P54592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1564,9 +1262,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = helpers_stringTrim__P289527_mk(s); + s.tmp_1 = helpers_stringTrim__P47078_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 205; s.pc = 11; return s.tmp_1; + s.callLocIdx = 187; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0 = r0; @@ -1589,22 +1287,22 @@ switch (step) { r0 = s.tmp_0; { step = 9; continue; } case 1: - r0 = globals.transparency16___292984; + r0 = globals.transparency16___50890; { step = 10; continue; } case 2: - r0 = globals.tile1___292985; + r0 = globals.tile1___50891; { step = 10; continue; } case 3: case 4: - r0 = globals.tile2___292986; + r0 = globals.tile2___50892; { step = 10; continue; } case 5: case 6: - r0 = globals.tile3___292987; + r0 = globals.tile3___50893; { step = 10; continue; } case 7: case 8: - r0 = globals.tile4___292988; + r0 = globals.tile4___50894; { step = 10; continue; } case 9: r0 = null; @@ -1612,12 +1310,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P296261.info = {"start":2667,"length":400,"line":49,"column":37,"endLine":61,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} +myTiles_inline__P54592.info = {"start":2667,"length":400,"line":49,"column":37,"endLine":61,"endColumn":5,"fileName":"tilemap.g.ts","functionName":"inline","argumentNames":["name"]} -function inline__P296261_mk(s) { +function myTiles_inline__P54592_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P296261, depth: s.depth + 1, + parent: s, fn: myTiles_inline__P54592, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1628,7 +1326,7 @@ function inline__P296261_mk(s) { -function createIcon__P292989(s) { +function createIcon__P50895(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1638,100 +1336,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___296277 = undefined; - s.end___296281 = undefined; - s.path___296285 = undefined; - s.i___296374 = undefined; - s.tmp_0 = scene_setBackgroundColor__P291880_mk(s); + s.start___54608 = undefined; + s.end___54612 = undefined; + s.path___54616 = undefined; + s.i___54705 = undefined; + s.tmp_0 = scene_setBackgroundColor__P49565_mk(s); s.tmp_0.arg0 = 13; - s.callLocIdx = 208; s.pc = 3; return s.tmp_0; + s.callLocIdx = 190; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = tiles_setTilemap__P291771_mk(s); - s.tmp_1 = helpers_getTilemapByName__P292283_mk(s); + s.tmp_0 = tiles_setTilemap__P49449_mk(s); + s.tmp_1 = helpers_getTilemapByName__P49969_mk(s); s.tmp_1.arg0 = "level1"; - s.callLocIdx = 209; s.pc = 5; return s.tmp_1; + s.callLocIdx = 191; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg0 = r0; - s.callLocIdx = 210; s.pc = 4; return s.tmp_0; + s.callLocIdx = 192; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = tiles_getRandomTileByType__P291781_mk(s); - s.tmp_0.arg0 = globals.tile2___292986; - s.callLocIdx = 211; s.pc = 6; return s.tmp_0; + s.tmp_0 = tiles_getRandomTileByType__P49462_mk(s); + s.tmp_0.arg0 = globals.tile2___50892; + s.callLocIdx = 193; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.start___296277 = (r0); - s.tmp_0 = tiles_getRandomTileByType__P291781_mk(s); - s.tmp_0.arg0 = globals.tile3___292987; - s.callLocIdx = 212; s.pc = 7; return s.tmp_0; + s.start___54608 = (r0); + s.tmp_0 = tiles_getRandomTileByType__P49462_mk(s); + s.tmp_0.arg0 = globals.tile3___50893; + s.callLocIdx = 194; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.end___296281 = (r0); - s.tmp_0 = scene_aStar__P292972_mk(s); - s.tmp_0.arg0 = s.start___296277; - s.tmp_0.arg1 = s.end___296281; + s.end___54612 = (r0); + s.tmp_0 = scene_aStar__P50878_mk(s); + s.tmp_0.arg0 = s.start___54608; + s.tmp_0.arg1 = s.end___54612; s.tmp_0.arg2 = null; - s.callLocIdx = 213; s.pc = 8; return s.tmp_0; + s.callLocIdx = 195; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.path___296285 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P296292); + s.path___54616 = (r0); + r0 = pxsim_pxtcore_mkAction(2, createIcon_inline__P54623); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.start___296277); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.path___296285); - s.tmp_1 = game_onUpdateInterval__P291967_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.start___54608); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.path___54616); + s.tmp_1 = game_onUpdateInterval__P49660_mk(s); s.tmp_1.arg0 = 1500; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 217; s.pc = 9; return s.tmp_1; + s.callLocIdx = 199; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - s.tmp_0 = game_onUpdate__P291966_mk(s); - s.tmp_0.arg0 = inline__P296307; - s.callLocIdx = 239; s.pc = 10; return s.tmp_0; + s.tmp_0 = game_onUpdate__P49659_mk(s); + s.tmp_0.arg0 = createIcon_inline__P54638; + s.callLocIdx = 221; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.i___296374 = (1); + s.i___54705 = (1); case 1: - r0 = (s.i___296374 <= 3); + r0 = (s.i___54705 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = scene_onPathCompletion__P292979_mk(s); - s.tmp_1.arg0 = s.i___296374; - s.tmp_1.arg1 = inline__P296380; - s.callLocIdx = 241; s.pc = 11; return s.tmp_1; + s.tmp_1 = scene_onPathCompletion__P50885_mk(s); + s.tmp_1.arg0 = s.i___54705; + s.tmp_1.arg1 = createIcon_inline__P54711; + s.callLocIdx = 223; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = (s.i___296374 + 1); - s.i___296374 = (r0); + r0 = (s.i___54705 + 1); + s.i___54705 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -createIcon__P292989.info = {"start":14,"length":2376,"line":2,"column":0,"endLine":67,"endColumn":1,"fileName":"test.ts","functionName":"createIcon","argumentNames":[]} +createIcon__P50895.info = {"start":14,"length":2376,"line":2,"column":0,"endLine":67,"endColumn":1,"fileName":"test.ts","functionName":"createIcon","argumentNames":[]} -function createIcon__P292989_mk(s) { +function createIcon__P50895_mk(s) { checkStack(s.depth); return { - parent: s, fn: createIcon__P292989, depth: s.depth + 1, + parent: s, fn: createIcon__P50895, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - start___296277: undefined, - end___296281: undefined, - path___296285: undefined, - i___296374: undefined, + start___54608: undefined, + end___54612: undefined, + path___54616: undefined, + i___54705: undefined, } } -function inline__P296292(s) { +function createIcon_inline__P54623(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1741,50 +1439,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.car___296293 = undefined; - s.tmp_0 = sprites_create__P291393_mk(s); - r0 = pxsim.image.ofBuffer(_hex296297); + s.car___54624 = undefined; + s.tmp_0 = sprites_create__P49019_mk(s); + r0 = pxsim.image.ofBuffer(_hex54628); s.tmp_0.arg0 = r0; r0 = pxsim.Math_.randomRange(1, 3); s.tmp_0.arg1 = r0; - s.callLocIdx = 214; s.pc = 1; return s.tmp_0; + s.callLocIdx = 196; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.car___296293 = (r0); - s.tmp_0 = tiles_placeOnTile__P291778_mk(s); - s.tmp_0.arg0 = s.car___296293; + s.car___54624 = (r0); + s.tmp_0 = tiles_placeOnTile__P49459_mk(s); + s.tmp_0.arg0 = s.car___54624; s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 215; s.pc = 2; return s.tmp_0; + s.callLocIdx = 197; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = scene_followPath__P292976_mk(s); - s.tmp_0.arg0 = s.car___296293; + s.tmp_0 = scene_followPath__P50882_mk(s); + s.tmp_0.arg0 = s.car___54624; s.tmp_0.arg1 = s.caps[1]; s.tmp_0.arg2 = 50; - s.callLocIdx = 216; s.pc = 3; return s.tmp_0; + s.callLocIdx = 198; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P296292.info = {"start":301,"length":862,"line":9,"column":32,"endLine":30,"endColumn":5,"fileName":"test.ts","functionName":"inline","argumentNames":[]} +createIcon_inline__P54623.info = {"start":301,"length":862,"line":9,"column":32,"endLine":30,"endColumn":5,"fileName":"test.ts","functionName":"inline","argumentNames":[]} -function inline__P296292_mk(s) { +function createIcon_inline__P54623_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P296292, depth: s.depth + 1, + parent: s, fn: createIcon_inline__P54623, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - car___296293: undefined, + car___54624: undefined, } } -const _hex296297 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000006666888808000060cc868888ff0000c66cb88688ff0f609989bb8688ff0f606689bb8688ff0f606689888888f800606689bbf6ff8800606689bb86f88800606689bb86f8f800606686b8868fff0f60ccbc88f688ff0f00c6cc6b8888ff0f006099696688f80f00006666d686880000006d66d68d0800") +const _hex54628 = pxsim.BufferMethods.createBufferFromHex("8704100010000000000000000000000000006666888808000060cc868888ff0000c66cb88688ff0f609989bb8688ff0f606689bb8688ff0f606689888888f800606689bbf6ff8800606689bb86f88800606689bb86f8f800606686b8868fff0f60ccbc88f688ff0f00c6cc6b8888ff0f006099696688f80f00006666d686880000006d66d68d0800") -function inline__P296307(s) { +function createIcon_inline__P54638(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1794,34 +1492,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___296309 = undefined; - s.unnamed26486___U1 = undefined; - s.unnamed26487___U2 = undefined; - s.s___296331 = undefined; - s.unnamed26488___U4 = undefined; - s.unnamed26489___U5 = undefined; - s.s___296353 = undefined; - s.unnamed26490___U7 = undefined; - s.unnamed26491___U8 = undefined; - s.s___296309 = (undefined); - s.tmp_0 = sprites_allOfKind__P291395_mk(s); + s.s___54640 = undefined; + s.unnamed1042___U1 = undefined; + s.unnamed1043___U2 = undefined; + s.s___54662 = undefined; + s.unnamed1044___U4 = undefined; + s.unnamed1045___U5 = undefined; + s.s___54684 = undefined; + s.unnamed1046___U7 = undefined; + s.unnamed1047___U8 = undefined; + s.s___54640 = (undefined); + s.tmp_0 = sprites_allOfKind__P49021_mk(s); s.tmp_0.arg0 = 1; - s.callLocIdx = 218; s.pc = 25; return s.tmp_0; + s.callLocIdx = 200; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.unnamed26486___U1 = (r0); - s.unnamed26487___U2 = (0); + s.unnamed1042___U1 = (r0); + s.unnamed1043___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed26487___U2; - r0 = pxsim_Array__length(s.unnamed26486___U1); + s.tmp_0 = r0 = s.unnamed1043___U2; + r0 = pxsim_Array__length(s.unnamed1042___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 8; continue; } - r0 = pxsim_Array__getAt(s.unnamed26486___U1, s.unnamed26487___U2); - s.s___296309 = (r0); - s.tmp_4 = Sprite_vy__P291457_mk(s); - s.tmp_4.arg0 = s.s___296309; - s.callLocIdx = 219; s.pc = 26; return s.tmp_4; + r0 = pxsim_Array__getAt(s.unnamed1042___U1, s.unnamed1043___U2); + s.s___54640 = (r0); + s.tmp_4 = Sprite_vy__P49102_mk(s); + s.tmp_4.arg0 = s.s___54640; + s.callLocIdx = 201; s.pc = 26; return s.tmp_4; case 26: r0 = s.retval; s.tmp_3 = r0; @@ -1829,17 +1527,17 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - s.tmp_5 = Sprite_setImage__P291482_mk(s); - s.tmp_5.arg0 = s.s___296309; - s.tmp_5.arg1 = globals.carBlueBack___292947; - s.callLocIdx = 220; s.pc = 27; return s.tmp_5; + s.tmp_5 = Sprite_setImage__P49133_mk(s); + s.tmp_5.arg0 = s.s___54640; + s.tmp_5.arg1 = globals.carBlueBack___50659; + s.callLocIdx = 202; s.pc = 27; return s.tmp_5; case 27: r0 = s.retval; { step = 7; continue; } case 2: - s.tmp_2 = Sprite_vx__P291455_mk(s); - s.tmp_2.arg0 = s.s___296309; - s.callLocIdx = 221; s.pc = 28; return s.tmp_2; + s.tmp_2 = Sprite_vx__P49100_mk(s); + s.tmp_2.arg0 = s.s___54640; + s.callLocIdx = 203; s.pc = 28; return s.tmp_2; case 28: r0 = s.retval; s.tmp_1 = r0; @@ -1847,17 +1545,17 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_3 = Sprite_setImage__P291482_mk(s); - s.tmp_3.arg0 = s.s___296309; - s.tmp_3.arg1 = globals.carBlueRight___292946; - s.callLocIdx = 222; s.pc = 29; return s.tmp_3; + s.tmp_3 = Sprite_setImage__P49133_mk(s); + s.tmp_3.arg0 = s.s___54640; + s.tmp_3.arg1 = globals.carBlueRight___50658; + s.callLocIdx = 204; s.pc = 29; return s.tmp_3; case 29: r0 = s.retval; { step = 6; continue; } case 3: - s.tmp_2 = Sprite_vx__P291455_mk(s); - s.tmp_2.arg0 = s.s___296309; - s.callLocIdx = 223; s.pc = 30; return s.tmp_2; + s.tmp_2 = Sprite_vx__P49100_mk(s); + s.tmp_2.arg0 = s.s___54640; + s.callLocIdx = 205; s.pc = 30; return s.tmp_2; case 30: r0 = s.retval; s.tmp_1 = r0; @@ -1865,40 +1563,40 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_3 = Sprite_setImage__P291482_mk(s); - s.tmp_3.arg0 = s.s___296309; - s.tmp_3.arg1 = globals.carBlueLeft___292945; - s.callLocIdx = 224; s.pc = 31; return s.tmp_3; + s.tmp_3 = Sprite_setImage__P49133_mk(s); + s.tmp_3.arg0 = s.s___54640; + s.tmp_3.arg1 = globals.carBlueLeft___50657; + s.callLocIdx = 206; s.pc = 31; return s.tmp_3; case 31: r0 = s.retval; case 4: case 5: case 6: case 7: - r0 = (s.unnamed26487___U2 + 1); - s.unnamed26487___U2 = (r0); + r0 = (s.unnamed1043___U2 + 1); + s.unnamed1043___U2 = (r0); { step = 1; continue; } case 8: - s.unnamed26486___U1 = (undefined); - s.s___296331 = (undefined); - s.tmp_0 = sprites_allOfKind__P291395_mk(s); + s.unnamed1042___U1 = (undefined); + s.s___54662 = (undefined); + s.tmp_0 = sprites_allOfKind__P49021_mk(s); s.tmp_0.arg0 = 2; - s.callLocIdx = 225; s.pc = 32; return s.tmp_0; + s.callLocIdx = 207; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - s.unnamed26488___U4 = (r0); - s.unnamed26489___U5 = (0); + s.unnamed1044___U4 = (r0); + s.unnamed1045___U5 = (0); case 9: - s.tmp_0 = r0 = s.unnamed26489___U5; - r0 = pxsim_Array__length(s.unnamed26488___U4); + s.tmp_0 = r0 = s.unnamed1045___U5; + r0 = pxsim_Array__length(s.unnamed1044___U4); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 16; continue; } - r0 = pxsim_Array__getAt(s.unnamed26488___U4, s.unnamed26489___U5); - s.s___296331 = (r0); - s.tmp_4 = Sprite_vy__P291457_mk(s); - s.tmp_4.arg0 = s.s___296331; - s.callLocIdx = 226; s.pc = 33; return s.tmp_4; + r0 = pxsim_Array__getAt(s.unnamed1044___U4, s.unnamed1045___U5); + s.s___54662 = (r0); + s.tmp_4 = Sprite_vy__P49102_mk(s); + s.tmp_4.arg0 = s.s___54662; + s.callLocIdx = 208; s.pc = 33; return s.tmp_4; case 33: r0 = s.retval; s.tmp_3 = r0; @@ -1906,17 +1604,17 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 10; continue; } - s.tmp_5 = Sprite_setImage__P291482_mk(s); - s.tmp_5.arg0 = s.s___296331; - s.tmp_5.arg1 = globals.carRedBack___292943; - s.callLocIdx = 227; s.pc = 34; return s.tmp_5; + s.tmp_5 = Sprite_setImage__P49133_mk(s); + s.tmp_5.arg0 = s.s___54662; + s.tmp_5.arg1 = globals.carRedBack___50655; + s.callLocIdx = 209; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; { step = 15; continue; } case 10: - s.tmp_2 = Sprite_vx__P291455_mk(s); - s.tmp_2.arg0 = s.s___296331; - s.callLocIdx = 228; s.pc = 35; return s.tmp_2; + s.tmp_2 = Sprite_vx__P49100_mk(s); + s.tmp_2.arg0 = s.s___54662; + s.callLocIdx = 210; s.pc = 35; return s.tmp_2; case 35: r0 = s.retval; s.tmp_1 = r0; @@ -1924,17 +1622,17 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_3 = Sprite_setImage__P291482_mk(s); - s.tmp_3.arg0 = s.s___296331; - s.tmp_3.arg1 = globals.carRedRight___292942; - s.callLocIdx = 229; s.pc = 36; return s.tmp_3; + s.tmp_3 = Sprite_setImage__P49133_mk(s); + s.tmp_3.arg0 = s.s___54662; + s.tmp_3.arg1 = globals.carRedRight___50654; + s.callLocIdx = 211; s.pc = 36; return s.tmp_3; case 36: r0 = s.retval; { step = 14; continue; } case 11: - s.tmp_2 = Sprite_vx__P291455_mk(s); - s.tmp_2.arg0 = s.s___296331; - s.callLocIdx = 230; s.pc = 37; return s.tmp_2; + s.tmp_2 = Sprite_vx__P49100_mk(s); + s.tmp_2.arg0 = s.s___54662; + s.callLocIdx = 212; s.pc = 37; return s.tmp_2; case 37: r0 = s.retval; s.tmp_1 = r0; @@ -1942,40 +1640,40 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - s.tmp_3 = Sprite_setImage__P291482_mk(s); - s.tmp_3.arg0 = s.s___296331; - s.tmp_3.arg1 = globals.carRedLeft___292941; - s.callLocIdx = 231; s.pc = 38; return s.tmp_3; + s.tmp_3 = Sprite_setImage__P49133_mk(s); + s.tmp_3.arg0 = s.s___54662; + s.tmp_3.arg1 = globals.carRedLeft___50653; + s.callLocIdx = 213; s.pc = 38; return s.tmp_3; case 38: r0 = s.retval; case 12: case 13: case 14: case 15: - r0 = (s.unnamed26489___U5 + 1); - s.unnamed26489___U5 = (r0); + r0 = (s.unnamed1045___U5 + 1); + s.unnamed1045___U5 = (r0); { step = 9; continue; } case 16: - s.unnamed26488___U4 = (undefined); - s.s___296353 = (undefined); - s.tmp_0 = sprites_allOfKind__P291395_mk(s); + s.unnamed1044___U4 = (undefined); + s.s___54684 = (undefined); + s.tmp_0 = sprites_allOfKind__P49021_mk(s); s.tmp_0.arg0 = 3; - s.callLocIdx = 232; s.pc = 39; return s.tmp_0; + s.callLocIdx = 214; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; - s.unnamed26490___U7 = (r0); - s.unnamed26491___U8 = (0); + s.unnamed1046___U7 = (r0); + s.unnamed1047___U8 = (0); case 17: - s.tmp_0 = r0 = s.unnamed26491___U8; - r0 = pxsim_Array__length(s.unnamed26490___U7); + s.tmp_0 = r0 = s.unnamed1047___U8; + r0 = pxsim_Array__length(s.unnamed1046___U7); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 24; continue; } - r0 = pxsim_Array__getAt(s.unnamed26490___U7, s.unnamed26491___U8); - s.s___296353 = (r0); - s.tmp_4 = Sprite_vy__P291457_mk(s); - s.tmp_4.arg0 = s.s___296353; - s.callLocIdx = 233; s.pc = 40; return s.tmp_4; + r0 = pxsim_Array__getAt(s.unnamed1046___U7, s.unnamed1047___U8); + s.s___54684 = (r0); + s.tmp_4 = Sprite_vy__P49102_mk(s); + s.tmp_4.arg0 = s.s___54684; + s.callLocIdx = 215; s.pc = 40; return s.tmp_4; case 40: r0 = s.retval; s.tmp_3 = r0; @@ -1983,17 +1681,17 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 18; continue; } - s.tmp_5 = Sprite_setImage__P291482_mk(s); - s.tmp_5.arg0 = s.s___296353; - s.tmp_5.arg1 = globals.carPinkBack___292951; - s.callLocIdx = 234; s.pc = 41; return s.tmp_5; + s.tmp_5 = Sprite_setImage__P49133_mk(s); + s.tmp_5.arg0 = s.s___54684; + s.tmp_5.arg1 = globals.carPinkBack___50663; + s.callLocIdx = 216; s.pc = 41; return s.tmp_5; case 41: r0 = s.retval; { step = 23; continue; } case 18: - s.tmp_2 = Sprite_vx__P291455_mk(s); - s.tmp_2.arg0 = s.s___296353; - s.callLocIdx = 235; s.pc = 42; return s.tmp_2; + s.tmp_2 = Sprite_vx__P49100_mk(s); + s.tmp_2.arg0 = s.s___54684; + s.callLocIdx = 217; s.pc = 42; return s.tmp_2; case 42: r0 = s.retval; s.tmp_1 = r0; @@ -2001,17 +1699,17 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - s.tmp_3 = Sprite_setImage__P291482_mk(s); - s.tmp_3.arg0 = s.s___296353; - s.tmp_3.arg1 = globals.carPinkRight___292950; - s.callLocIdx = 236; s.pc = 43; return s.tmp_3; + s.tmp_3 = Sprite_setImage__P49133_mk(s); + s.tmp_3.arg0 = s.s___54684; + s.tmp_3.arg1 = globals.carPinkRight___50662; + s.callLocIdx = 218; s.pc = 43; return s.tmp_3; case 43: r0 = s.retval; { step = 22; continue; } case 19: - s.tmp_2 = Sprite_vx__P291455_mk(s); - s.tmp_2.arg0 = s.s___296353; - s.callLocIdx = 237; s.pc = 44; return s.tmp_2; + s.tmp_2 = Sprite_vx__P49100_mk(s); + s.tmp_2.arg0 = s.s___54684; + s.callLocIdx = 219; s.pc = 44; return s.tmp_2; case 44: r0 = s.retval; s.tmp_1 = r0; @@ -2019,31 +1717,31 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - s.tmp_3 = Sprite_setImage__P291482_mk(s); - s.tmp_3.arg0 = s.s___296353; - s.tmp_3.arg1 = globals.carPinkLeft___292949; - s.callLocIdx = 238; s.pc = 45; return s.tmp_3; + s.tmp_3 = Sprite_setImage__P49133_mk(s); + s.tmp_3.arg0 = s.s___54684; + s.tmp_3.arg1 = globals.carPinkLeft___50661; + s.callLocIdx = 220; s.pc = 45; return s.tmp_3; case 45: r0 = s.retval; case 20: case 21: case 22: case 23: - r0 = (s.unnamed26491___U8 + 1); - s.unnamed26491___U8 = (r0); + r0 = (s.unnamed1047___U8 + 1); + s.unnamed1047___U8 = (r0); { step = 17; continue; } case 24: - s.unnamed26490___U7 = (undefined); + s.unnamed1046___U7 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P296307.info = {"start":1185,"length":1027,"line":32,"column":18,"endLine":60,"endColumn":5,"fileName":"test.ts","functionName":"inline","argumentNames":[]} +createIcon_inline__P54638.info = {"start":1185,"length":1027,"line":32,"column":18,"endLine":60,"endColumn":5,"fileName":"test.ts","functionName":"inline","argumentNames":[]} -function inline__P296307_mk(s) { +function createIcon_inline__P54638_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P296307, depth: s.depth + 1, + parent: s, fn: createIcon_inline__P54638, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2051,22 +1749,22 @@ function inline__P296307_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - s___296309: undefined, - unnamed26486___U1: undefined, - unnamed26487___U2: undefined, - s___296331: undefined, - unnamed26488___U4: undefined, - unnamed26489___U5: undefined, - s___296353: undefined, - unnamed26490___U7: undefined, - unnamed26491___U8: undefined, + s___54640: undefined, + unnamed1042___U1: undefined, + unnamed1043___U2: undefined, + s___54662: undefined, + unnamed1044___U4: undefined, + unnamed1045___U5: undefined, + s___54684: undefined, + unnamed1046___U7: undefined, + unnamed1047___U8: undefined, } } -function inline__P296380(s) { +function createIcon_inline__P54711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2081,23 +1779,23 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_destroy__P291515_mk(s); + s.tmp_0 = Sprite_destroy__P49170_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 240; s.pc = 1; return s.tmp_0; + s.callLocIdx = 222; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P296380.info = {"start":2309,"length":62,"line":64,"column":12,"endLine":64,"endColumn":74,"fileName":"test.ts","functionName":"inline","argumentNames":["sprite","location"]} +createIcon_inline__P54711.info = {"start":2309,"length":62,"line":64,"column":12,"endLine":64,"endColumn":74,"fileName":"test.ts","functionName":"inline","argumentNames":["sprite","location"]} -function inline__P296380_mk(s) { +function createIcon_inline__P54711_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P296380, depth: s.depth + 1, + parent: s, fn: createIcon_inline__P54711, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2108,7 +1806,7 @@ function inline__P296380_mk(s) { -function Sprite_destroy__P291515(s) { +function Sprite_destroy__P49170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2125,7 +1823,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); @@ -2143,19 +1841,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__P292215_mk(s); + s.tmp_0 = effects_ParticleEffect_destroy__P49901_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg2; s.tmp_0.arg3 = undefined; - s.callLocIdx = 459; s.pc = 6; return s.tmp_0; + s.callLocIdx = 557; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; { step = 4; continue; } case 3: - s.tmp_0 = Sprite__destroyCore__P291516_mk(s); + s.tmp_0 = Sprite__destroyCore__P49171_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 460; s.pc = 7; return s.tmp_0; + s.callLocIdx = 558; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; case 4: @@ -2164,12 +1862,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_destroy__P291515.info = {"start":29546,"length":293,"line":888,"column":4,"endLine":897,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} +Sprite_destroy__P49170.info = {"start":30100,"length":293,"line":963,"column":4,"endLine":972,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"destroy","argumentNames":["this","effect","duration"]} -function Sprite_destroy__P291515_mk(s) { +function Sprite_destroy__P49170_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P291515, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P49170, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2185,7 +1883,7 @@ function Sprite_destroy__P291515_mk(s) { -function effects_ParticleEffect_destroy__P292215(s) { +function effects_ParticleEffect_destroy__P49901(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2203,15 +1901,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C292212_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P291507_mk(s); + if (!checkSubtype(r0, effects_ParticleEffect__C49898_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P49161_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 7168; s.tmp_0.arg2 = true; - s.callLocIdx = 1267; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1374; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P292214_mk(s); + s.tmp_0 = effects_ParticleEffect_start__P49900_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg3; @@ -2228,7 +1926,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg4 = r0; - s.callLocIdx = 1268; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1375; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -2243,22 +1941,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__P292241_mk(s); - s.tmp_0.arg0 = globals.dissolve___292244; + s.tmp_0 = effects_ImageEffect_applyTo__P49927_mk(s); + s.tmp_0.arg0 = globals.dissolve___49930; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1269; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1376; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P292215.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__P49901.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__P292215_mk(s) { +function effects_ParticleEffect_destroy__P49901_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P292215, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P49901, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2276,7 +1974,7 @@ function effects_ParticleEffect_destroy__P292215_mk(s) { -function inline__P299620(s) { +function dissolve_inline__P57766(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2286,11 +1984,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___299623 = undefined; - s.x___299634 = undefined; - s.y___299640 = undefined; - s.w___299646 = undefined; - s.h___299650 = undefined; + s.i___57769 = undefined; + s.x___57780 = undefined; + s.y___57786 = undefined; + s.w___57792 = undefined; + s.h___57796 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -2303,13 +2001,13 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.i___299623 = (r0); + s.i___57769 = (r0); case 1: - r0 = (s.i___299623 > 0); + r0 = (s.i___57769 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P292013_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P49699_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); @@ -2317,8 +2015,8 @@ switch (step) { s.callLocIdx = 38; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___299634 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P292013_mk(s); + s.x___57780 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P49699_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); @@ -2326,56 +2024,56 @@ switch (step) { s.callLocIdx = 39; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___299640 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P292013_mk(s); + s.y___57786 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P49699_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; s.callLocIdx = 40; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.w___299646 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P292013_mk(s); + s.w___57792 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P49699_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 1; s.tmp_0.arg2 = 3; s.callLocIdx = 41; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.h___299650 = (r0); - s.tmp_0 = helpers_imageDrawRect__P291150_mk(s); + s.h___57796 = (r0); + s.tmp_0 = helpers_imageDrawRect__P48713_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___299634; - s.tmp_0.arg2 = s.y___299640; - s.tmp_0.arg3 = s.w___299646; - s.tmp_0.arg4 = s.h___299650; + s.tmp_0.arg1 = s.x___57780; + s.tmp_0.arg2 = s.y___57786; + s.tmp_0.arg3 = s.w___57792; + s.tmp_0.arg4 = s.h___57796; s.tmp_0.arg5 = 0; s.callLocIdx = 42; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = (s.i___299623 - 1); - s.i___299623 = (r0); + r0 = (s.i___57769 - 1); + s.i___57769 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P299620.info = {"start":2199,"length":360,"line":60,"column":49,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +dissolve_inline__P57766.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__P299620_mk(s) { +function dissolve_inline__P57766_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P299620, depth: s.depth + 1, + parent: s, fn: dissolve_inline__P57766, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___299623: undefined, - x___299634: undefined, - y___299640: undefined, - w___299646: undefined, - h___299650: undefined, + i___57769: undefined, + x___57780: undefined, + y___57786: undefined, + w___57792: undefined, + h___57796: undefined, arg0: undefined, arg1: undefined, } } @@ -2384,7 +2082,7 @@ function inline__P299620_mk(s) { -function helpers_imageDrawRect__P291150(s) { +function helpers_imageDrawRect__P48713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2423,7 +2121,7 @@ switch (step) { s.arg3 = (r0); r0 = (s.arg4 - 1); s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P291149_mk(s); + s.tmp_0 = helpers_imageDrawLine__P48712_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -2431,10 +2129,10 @@ switch (step) { s.tmp_0.arg3 = r0; s.tmp_0.arg4 = s.arg2; s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 93; s.pc = 6; return s.tmp_0; + s.callLocIdx = 86; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P291149_mk(s); + s.tmp_0 = helpers_imageDrawLine__P48712_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -2442,10 +2140,10 @@ switch (step) { r0 = (s.arg2 + s.arg4); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 94; s.pc = 7; return s.tmp_0; + s.callLocIdx = 87; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P291149_mk(s); + s.tmp_0 = helpers_imageDrawLine__P48712_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -2455,10 +2153,10 @@ switch (step) { s.tmp_0.arg3 = r0; s.tmp_0.arg4 = s.arg2; s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 95; s.pc = 8; return s.tmp_0; + s.callLocIdx = 88; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P291149_mk(s); + s.tmp_0 = helpers_imageDrawLine__P48712_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -2468,7 +2166,7 @@ switch (step) { r0 = (s.arg2 + s.arg4); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.arg5; - s.callLocIdx = 96; s.pc = 9; return s.tmp_0; + s.callLocIdx = 89; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; case 5: @@ -2476,12 +2174,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P291150.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__P48713.info = {"start":5325,"length":370,"line":167,"column":4,"endLine":175,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawRect","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawRect__P291150_mk(s) { +function helpers_imageDrawRect__P48713_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P291150, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P48713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2497,7 +2195,7 @@ function helpers_imageDrawRect__P291150_mk(s) { -function helpers_imageDrawLine__P291149(s) { +function helpers_imageDrawLine__P48712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2517,17 +2215,17 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P293152_mk(s); + s.tmp_2 = helpers_pack__P51063_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 91; s.pc = 1; return s.tmp_2; + s.callLocIdx = 84; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P293152_mk(s); + s.tmp_4 = helpers_pack__P51063_mk(s); s.tmp_4.arg0 = s.arg3; s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 92; s.pc = 2; return s.tmp_4; + s.callLocIdx = 85; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; s.tmp_3 = r0; @@ -2536,12 +2234,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawLine__P291149.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__P48712.info = {"start":5161,"length":159,"line":164,"column":4,"endLine":166,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawLine","argumentNames":["img","x","y","w","h","c"]} -function helpers_imageDrawLine__P291149_mk(s) { +function helpers_imageDrawLine__P48712_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P291149, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P48712, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2560,7 +2258,7 @@ function helpers_imageDrawLine__P291149_mk(s) { -function helpers_pack__P293152(s) { +function helpers_pack__P51063(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2575,23 +2273,23 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P289531_mk(s); + s.tmp_2 = Math_clamp__P47082_mk(s); s.tmp_2.arg0 = -30000; s.tmp_2.arg1 = 30000; r0 = (s.arg0 | 0); s.tmp_2.arg2 = r0; - s.callLocIdx = 86; s.pc = 1; return s.tmp_2; + s.callLocIdx = 79; 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__P289531_mk(s); + s.tmp_5 = Math_clamp__P47082_mk(s); s.tmp_5.arg0 = -30000; s.tmp_5.arg1 = 30000; r0 = (s.arg1 | 0); s.tmp_5.arg2 = r0; - s.callLocIdx = 87; s.pc = 2; return s.tmp_5; + s.callLocIdx = 80; s.pc = 2; return s.tmp_5; case 2: r0 = s.retval; s.tmp_4 = r0; @@ -2601,12 +2299,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_pack__P293152.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__P51063.info = {"start":3658,"length":145,"line":130,"column":4,"endLine":132,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"pack","argumentNames":["x","y"]} -function helpers_pack__P293152_mk(s) { +function helpers_pack__P51063_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P293152, depth: s.depth + 1, + parent: s, fn: helpers_pack__P51063, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2622,7 +2320,7 @@ function helpers_pack__P293152_mk(s) { -function Math_clamp__P289531(s) { +function Math_clamp__P47082(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2638,9 +2336,9 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = Math_min__P289535_mk(s); + s.tmp_0 = Math_min__P47086_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P289534_mk(s); + s.tmp_1 = Math_max__P47085_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg2; s.callLocIdx = 18; s.pc = 2; return s.tmp_1; @@ -2653,12 +2351,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_clamp__P289531.info = {"start":15178,"length":130,"line":514,"column":4,"endLine":516,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} +Math_clamp__P47082.info = {"start":15643,"length":130,"line":528,"column":4,"endLine":530,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"clamp","argumentNames":["min","max","value"]} -function Math_clamp__P289531_mk(s) { +function Math_clamp__P47082_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P289531, depth: s.depth + 1, + parent: s, fn: Math_clamp__P47082, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2671,7 +2369,7 @@ function Math_clamp__P289531_mk(s) { -function Math_min__P289535(s) { +function Math_min__P47086(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2699,12 +2397,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_min__P289535.info = {"start":16314,"length":105,"line":551,"column":4,"endLine":554,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} +Math_min__P47086.info = {"start":16779,"length":105,"line":565,"column":4,"endLine":568,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"min","argumentNames":["a","b"]} -function Math_min__P289535_mk(s) { +function Math_min__P47086_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_min__P289535, depth: s.depth + 1, + parent: s, fn: Math_min__P47086, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2715,7 +2413,7 @@ function Math_min__P289535_mk(s) { -function Math_max__P289534(s) { +function Math_max__P47085(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2743,12 +2441,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_max__P289534.info = {"start":16099,"length":105,"line":542,"column":4,"endLine":545,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} +Math_max__P47085.info = {"start":16564,"length":105,"line":556,"column":4,"endLine":559,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"max","argumentNames":["a","b"]} -function Math_max__P289534_mk(s) { +function Math_max__P47085_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P289534, depth: s.depth + 1, + parent: s, fn: Math_max__P47085, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2759,7 +2457,7 @@ function Math_max__P289534_mk(s) { -function Math_FastRandom_randomRange__P292013(s) { +function Math_FastRandom_randomRange__P49699(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2776,14 +2474,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C292009_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C49695_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__P292012_mk(s); + s.tmp_2 = Math_FastRandom_next__P49698_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 958; s.pc = 3; return s.tmp_2; + s.callLocIdx = 1065; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_1 = r0; @@ -2802,12 +2500,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P292013.info = {"start":2079,"length":131,"line":62,"column":8,"endLine":64,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"randomRange","argumentNames":["this","min","max"]} +Math_FastRandom_randomRange__P49699.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__P292013_mk(s) { +function Math_FastRandom_randomRange__P49699_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomRange__P292013, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P49699, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2824,7 +2522,7 @@ function Math_FastRandom_randomRange__P292013_mk(s) { -function Math_FastRandom_next__P292012(s) { +function Math_FastRandom_next__P49698(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2839,7 +2537,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C292009_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C49695_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["lfsr"]; s.tmp_3 = r0; @@ -2860,12 +2558,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P292012.info = {"start":1713,"length":107,"line":53,"column":8,"endLine":55,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"next","argumentNames":["this"]} +Math_FastRandom_next__P49698.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__P292012_mk(s) { +function Math_FastRandom_next__P49698_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P292012, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P49698, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2882,7 +2580,7 @@ function Math_FastRandom_next__P292012_mk(s) { -function effects_ImageEffect_constructor__P292240(s) { +function effects_ImageEffect_constructor__P49926(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2899,14 +2597,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C292239_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C49925_VT)) failedCast(r0); r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C292009_VT); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C49695_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P292011_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P49697_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 1281; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1388; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); @@ -2916,12 +2614,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P292240.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__P49926.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__P292240_mk(s) { +function effects_ImageEffect_constructor__P49926_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P292240, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P49926, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2934,7 +2632,7 @@ function effects_ImageEffect_constructor__P292240_mk(s) { -function effects_ImageEffect_applyTo__P292241(s) { +function effects_ImageEffect_applyTo__P49927(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2944,14 +2642,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___299767 = undefined; + s.clonedImage___57913 = 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__C292239_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C49925_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -2977,17 +2675,17 @@ switch (step) { r0 = s.arg1.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___299767 = (r0); - s.tmp_0 = effects_ImageEffect_change__P292242_mk(s); + s.clonedImage___57913 = (r0); + s.tmp_0 = effects_ImageEffect_change__P49928_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___299767; - s.callLocIdx = 1284; s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___57913; + s.callLocIdx = 1391; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_setImage__P291482_mk(s); + s.tmp_0 = Sprite_setImage__P49133_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___299767; - s.callLocIdx = 1285; s.pc = 7; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___57913; + s.callLocIdx = 1392; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; case 5: @@ -2995,12 +2693,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P292241.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__P49927.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__P292241_mk(s) { +function effects_ImageEffect_applyTo__P49927_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P292241, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P49927, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3008,7 +2706,7 @@ function effects_ImageEffect_applyTo__P292241_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - clonedImage___299767: undefined, + clonedImage___57913: undefined, arg0: undefined, arg1: undefined, } } @@ -3017,7 +2715,7 @@ function effects_ImageEffect_applyTo__P292241_mk(s) { -function effects_ImageEffect_change__P292242(s) { +function effects_ImageEffect_change__P49928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3033,7 +2731,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C292239_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C49925_VT)) failedCast(r0); s.tmp_0 = if_effect_3_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; @@ -3041,12 +2739,12 @@ switch (step) { s.tmp_0.arg2 = r0; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "effect"), 3); - s.callLocIdx = 1286; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1393; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["effect"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["effect"], 3); s.callLocIdx = 1286; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1286; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1286; 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 = 1393; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1393; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1393; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -3054,12 +2752,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P292242.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__P49928.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__P292242_mk(s) { +function effects_ImageEffect_change__P49928_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P292242, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P49928, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -3070,7 +2768,7 @@ function effects_ImageEffect_change__P292242_mk(s) { -function Sprite_image__P291481(s) { +function Sprite_image__P49132(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3085,18 +2783,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_image__P291481.info = {"start":6832,"length":54,"line":248,"column":4,"endLine":250,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} -Sprite_image__P291481.isGetter = true; +Sprite_image__P49132.info = {"start":8997,"length":54,"line":322,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"image","argumentNames":["this"]} +Sprite_image__P49132.isGetter = true; -function Sprite_image__P291481_mk(s) { +function Sprite_image__P49132_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P291481, depth: s.depth + 1, + parent: s, fn: Sprite_image__P49132, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -3105,7 +2803,7 @@ function Sprite_image__P291481_mk(s) { -function effects_ParticleEffect_start__P292214(s) { +function effects_ParticleEffect_start__P49900(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3115,7 +2813,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___299791 = undefined; + s.src___57937 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3125,7 +2823,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C292212_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C49898_VT)) failedCast(r0); r0 = s.arg0.fields["sourceFactory"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -3152,18 +2850,18 @@ switch (step) { s.tmp_4.arg2 = s.tmp_3; if (!s.tmp_4.arg0.vtable.iface) { setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "sourceFactory"), 3); - s.callLocIdx = 1265; s.pc = 10; return s.tmp_4; + s.callLocIdx = 1372; s.pc = 10; return s.tmp_4; } else { s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["sourceFactory"]; - if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["sourceFactory"], 3); s.callLocIdx = 1265; s.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1265; s.pc = 10; return s.tmp_4;; } - else { s.callLocIdx = 1265; 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 = 1372; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1372; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1372; s.pc = 10; return s.tmp_4; } } case 10: r0 = s.retval; - s.src___299791 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P292112_mk(s); - s.tmp_0.arg0 = s.src___299791; + s.src___57937 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P49798_mk(s); + s.tmp_0.arg0 = s.src___57937; r0 = pxsim_numops_toBoolDecr(s.arg4); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); @@ -3172,7 +2870,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 1266; s.pc = 11; return s.tmp_0; + s.callLocIdx = 1373; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -3188,7 +2886,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.src___299791).fields["lifespan"] = (s.tmp_1); + r0 = (s.src___57937).fields["lifespan"] = (s.tmp_1); case 7: case 8: case 9: @@ -3196,19 +2894,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P292214.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__P49900.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__P292214_mk(s) { +function effects_ParticleEffect_start__P49900_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P292214, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P49900, depth: s.depth + 1, pc: 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___299791: undefined, + src___57937: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3220,7 +2918,7 @@ function effects_ParticleEffect_start__P292214_mk(s) { -function particles_ParticleSource_setRelativeToCamera__P292112(s) { +function particles_ParticleSource_setRelativeToCamera__P49798(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3236,7 +2934,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -3262,12 +2960,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P292112.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__P49798.info = {"start":6439,"length":173,"line":211,"column":8,"endLine":214,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRelativeToCamera","argumentNames":["this","on"]} -function particles_ParticleSource_setRelativeToCamera__P292112_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P49798_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P292112, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P49798, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3282,7 +2980,7 @@ function particles_ParticleSource_setRelativeToCamera__P292112_mk(s) { -function Sprite_setFlag__P291507(s) { +function Sprite_setFlag__P49161(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3299,7 +2997,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -3321,39 +3019,16 @@ switch (step) { 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__P291507_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() } } } -Sprite_setFlag__P291507.info = {"start":25010,"length":292,"line":761,"column":4,"endLine":768,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} +Sprite_setFlag__P49161.info = {"start":24029,"length":130,"line":784,"column":4,"endLine":787,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setFlag","argumentNames":["this","flag","on"]} -function Sprite_setFlag__P291507_mk(s) { +function Sprite_setFlag__P49161_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P291507, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P49161, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3369,7 +3044,7 @@ function Sprite_setFlag__P291507_mk(s) { -function Sprite__destroyCore__P291516(s) { +function Sprite__destroyCore__P49171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3379,39 +3054,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___299506 = undefined; + s.scene___57659 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_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__P291955_mk(s); - s.callLocIdx = 461; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.scene___299506 = (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__P291515_mk(s); - r0 = s.arg0.fields["sayBubbleSprite"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = undefined; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 462; s.pc = 10; return s.tmp_1; - case 10: + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 559; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - case 1: - case 2: - r0 = s.scene___299506.fields["allSprites"]; + s.scene___57659 = (r0); + r0 = s.scene___57659.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); r0 = s.arg0.fields["_kind"]; @@ -3419,90 +3080,90 @@ switch (step) { r0 = (s.tmp_1 >= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.scene___299506.fields["spritesByKind"]; + { step = 2; continue; } + case 1: + r0 = s.scene___57659.fields["spritesByKind"]; s.tmp_2 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_3 = r0; r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_2, s.tmp_3); - case 4: + case 2: // jmp value (already in r0) s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - s.tmp_5 = sprites_SpriteSet_remove__P291546_mk(s); - r0 = s.scene___299506.fields["spritesByKind"]; + if (!r0) { step = 3; continue; } + s.tmp_5 = sprites_SpriteSet_remove__P49204_mk(s); + r0 = s.scene___57659.fields["spritesByKind"]; s.tmp_6 = r0; r0 = s.arg0.fields["_kind"]; s.tmp_7 = r0; r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_6, s.tmp_7); s.tmp_5.arg0 = r0; s.tmp_5.arg1 = s.arg0; - s.callLocIdx = 466; s.pc = 11; return s.tmp_5; - case 11: + s.callLocIdx = 563; s.pc = 8; return s.tmp_5; + case 8: r0 = s.retval; - case 5: - case 6: - s.tmp_0 = PhysicsEngine__C291587_v1_2_mk(s); - r0 = s.scene___299506.fields["physicsEngine"]; + case 3: + case 4: + s.tmp_0 = PhysicsEngine__C49245_v1_2_mk(s); + r0 = s.scene___57659.fields["physicsEngine"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C291587_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C49245_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: + s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; r0 = s.arg0.fields["destroyHandler"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } + if (!r0) { step = 5; continue; } s.tmp_1 = if_destroyHandler_1_mk(s); s.tmp_1.arg0 = s.arg0; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "destroyHandler"), 1); - s.callLocIdx = 467; s.pc = 13; return s.tmp_1; + s.callLocIdx = 564; s.pc = 10; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["destroyHandler"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 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; } + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["destroyHandler"], 1); s.callLocIdx = 564; s.pc = 10; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 564; s.pc = 10; return s.tmp_1;; } + else { s.callLocIdx = 564; s.pc = 10; return s.tmp_1; } } - case 13: + case 10: r0 = s.retval; - case 7: - case 8: - r0 = pxsim_pxtcore_mkAction(1, inline__P299542); + case 5: + case 6: + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P57688); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P299549); + r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P57695); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P289514_mk(s); - s.tmp_3 = helpers_arrayFilter__P289515_mk(s); - r0 = s.scene___299506.fields["destroyedHandlers"]; + s.tmp_2 = helpers_arrayForEach__P47064_mk(s); + s.tmp_3 = helpers_arrayFilter__P47065_mk(s); + r0 = s.scene___57659.fields["destroyedHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 469; s.pc = 15; return s.tmp_3; - case 15: + s.callLocIdx = 566; s.pc = 12; return s.tmp_3; + case 12: r0 = s.retval; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 471; s.pc = 14; return s.tmp_2; - case 14: + s.callLocIdx = 568; s.pc = 11; return s.tmp_2; + case 11: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P291516.info = {"start":29845,"length":693,"line":899,"column":4,"endLine":915,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} +Sprite__destroyCore__P49171.info = {"start":30399,"length":522,"line":974,"column":4,"endLine":986,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"_destroyCore","argumentNames":["this"]} -function Sprite__destroyCore__P291516_mk(s) { +function Sprite__destroyCore__P49171_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P291516, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P49171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3512,7 +3173,7 @@ function Sprite__destroyCore__P291516_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - scene___299506: undefined, + scene___57659: undefined, arg0: undefined, } } @@ -3520,7 +3181,7 @@ function Sprite__destroyCore__P291516_mk(s) { -function inline__P299542(s) { +function forEach_inline__P57688(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3542,12 +3203,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P299542.info = {"start":30461,"length":26,"line":913,"column":20,"endLine":913,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P57688.info = {"start":30844,"length":26,"line":984,"column":20,"endLine":984,"endColumn":46,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P299542_mk(s) { +function forEach_inline__P57688_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P299542, depth: s.depth + 1, + parent: s, fn: forEach_inline__P57688, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3558,7 +3219,7 @@ function inline__P299542_mk(s) { -function inline__P299549(s) { +function Sprite__destroyCore_inline__P57695(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3577,12 +3238,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.callLocIdx = 470; s.pc = 1; return s.tmp_0; + s.callLocIdx = 567; 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 = 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; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 567; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 567; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 567; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -3590,12 +3251,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P299549.info = {"start":30510,"length":20,"line":914,"column":21,"endLine":914,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite__destroyCore_inline__P57695.info = {"start":30893,"length":20,"line":985,"column":21,"endLine":985,"endColumn":41,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P299549_mk(s) { +function Sprite__destroyCore_inline__P57695_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P299549, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore_inline__P57695, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -3605,7 +3266,7 @@ function inline__P299549_mk(s) { -function PhysicsEngine_removeSprite__P291590(s) { +function PhysicsEngine_removeSprite__P49248(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3621,17 +3282,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C291587_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C49245_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P291590.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__P49248.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__P291590_mk(s) { +function PhysicsEngine_removeSprite__P49248_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P291590, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P49248, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -3641,7 +3302,7 @@ function PhysicsEngine_removeSprite__P291590_mk(s) { -function sprites_SpriteSet_remove__P291546(s) { +function sprites_SpriteSet_remove__P49204(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3651,28 +3312,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___299558 = undefined; + s.i___57704 = 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__C291539_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C49197_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___299558 = (r0); - r0 = (s.i___299558 > -1); + s.i___57704 = (r0); + r0 = (s.i___57704 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P289505_mk(s); + s.tmp_1 = helpers_arraySplice__P47055_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___299558; + s.tmp_1.arg1 = s.i___57704; s.tmp_1.arg2 = 1; - s.callLocIdx = 518; s.pc = 4; return s.tmp_1; + s.callLocIdx = 615; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; r0 = true; @@ -3684,16 +3345,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P291546.info = {"start":1827,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} +sprites_SpriteSet_remove__P49204.info = {"start":1827,"length":235,"line":66,"column":8,"endLine":73,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"remove","argumentNames":["this","sprite"]} -function sprites_SpriteSet_remove__P291546_mk(s) { +function sprites_SpriteSet_remove__P49204_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P291546, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P49204, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___299558: undefined, + i___57704: undefined, arg0: undefined, arg1: undefined, } } @@ -3702,7 +3363,7 @@ function sprites_SpriteSet_remove__P291546_mk(s) { -function helpers_arraySplice__P289505(s) { +function helpers_arraySplice__P47055(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3712,7 +3373,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___299579 = undefined; + s.i___57725 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3726,15 +3387,15 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.i___299579 = (0); + s.i___57725 = (0); case 3: - r0 = (s.i___299579 < s.arg2); + r0 = (s.i___57725 < 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___299579 + 1); - s.i___299579 = (r0); + r0 = (s.i___57725 + 1); + s.i___57725 = (r0); { step = 3; continue; } case 4: case 5: @@ -3742,15 +3403,15 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySplice__P289505.info = {"start":3642,"length":213,"line":137,"column":4,"endLine":144,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySplice","argumentNames":["arr","start","len"]} +helpers_arraySplice__P47055.info = {"start":3642,"length":213,"line":137,"column":4,"endLine":144,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySplice","argumentNames":["arr","start","len"]} -function helpers_arraySplice__P289505_mk(s) { +function helpers_arraySplice__P47055_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P289505, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P47055, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - i___299579: undefined, + i___57725: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3760,7 +3421,7 @@ function helpers_arraySplice__P289505_mk(s) { -function Sprite_kind__P291496(s) { +function Sprite_kind__P49149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3775,17 +3436,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["_kind"]; return leave(s, r0) default: oops() } } } -Sprite_kind__P291496.info = {"start":10887,"length":41,"line":393,"column":4,"endLine":395,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} +Sprite_kind__P49149.info = {"start":13674,"length":41,"line":486,"column":4,"endLine":488,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"kind","argumentNames":["this"]} -function Sprite_kind__P291496_mk(s) { +function Sprite_kind__P49149_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P291496, depth: s.depth + 1, + parent: s, fn: Sprite_kind__P49149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -3794,7 +3455,7 @@ function Sprite_kind__P291496_mk(s) { -function helpers_arrayFilter__P289515(s) { +function helpers_arrayFilter__P47065(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3804,31 +3465,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___302706 = undefined; - s.len___302708 = undefined; - s.i___302711 = undefined; - s.v___302716 = undefined; + s.res___59639 = undefined; + s.len___59641 = undefined; + s.i___59644 = undefined; + s.v___59649 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___302706 = (r0); + s.res___59639 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___302708 = (r0); - s.i___302711 = (0); + s.len___59641 = (r0); + s.i___59644 = (0); case 1: - r0 = (s.i___302711 < s.len___302708); + r0 = (s.i___59644 < s.len___59641); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___302711); - s.v___302716 = (r0); + r0 = pxsim_Array__getAt(s.arg0, s.i___59644); + s.v___59649 = (r0); s.tmp_1 = lambda_3_mk(s); s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___302716; - s.tmp_1.arg1 = s.i___302711; + s.tmp_1.arg0 = s.v___59649; + s.tmp_1.arg1 = s.i___59644; setupLambda(s.tmp_1, s.tmp_1.argL); s.callLocIdx = 6; s.pc = 5; return s.tmp_1; case 5: @@ -3836,30 +3497,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__push(s.res___302706, s.v___302716); + r0 = pxsim_Array__push(s.res___59639, s.v___59649); case 2: case 3: - r0 = (s.i___302711 + 1); - s.i___302711 = (r0); + r0 = (s.i___59644 + 1); + s.i___59644 = (r0); { step = 1; continue; } case 4: - r0 = s.res___302706; + r0 = s.res___59639; return leave(s, r0) default: oops() } } } -helpers_arrayFilter__P289515.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__P47065.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__P289515_mk(s) { +function helpers_arrayFilter__P47065_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFilter__P289515, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P47065, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - res___302706: undefined, - len___302708: undefined, - i___302711: undefined, - v___302716: undefined, + res___59639: undefined, + len___59641: undefined, + i___59644: undefined, + v___59649: undefined, arg0: undefined, arg1: undefined, } } @@ -3868,7 +3529,7 @@ function helpers_arrayFilter__P289515_mk(s) { -function helpers_arrayForEach__P289514(s) { +function helpers_arrayForEach__P47064(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3878,49 +3539,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___302904 = undefined; - s.i___302907 = undefined; + s.len___59872 = undefined; + s.i___59875 = 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___302904 = (r0); - s.i___302907 = (0); + s.len___59872 = (r0); + s.i___59875 = (0); case 1: - r0 = (s.i___302907 < s.len___302904); + r0 = (s.i___59875 < s.len___59872); 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___302907); + r0 = pxsim_Array__getAt(s.arg0, s.i___59875); s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___302907; + s.tmp_1.arg1 = s.i___59875; setupLambda(s.tmp_1, s.tmp_1.argL); s.callLocIdx = 5; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - r0 = (s.i___302907 + 1); - s.i___302907 = (r0); + r0 = (s.i___59875 + 1); + s.i___59875 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P289514.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__P47064.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__P289514_mk(s) { +function helpers_arrayForEach__P47064_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P289514, depth: s.depth + 1, + parent: s, fn: helpers_arrayForEach__P47064, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___302904: undefined, - i___302907: undefined, + len___59872: undefined, + i___59875: undefined, arg0: undefined, arg1: undefined, } } @@ -3929,7 +3590,7 @@ function helpers_arrayForEach__P289514_mk(s) { -function scene_onPathCompletion__P292979(s) { +function scene_onPathCompletion__P50885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3944,8 +3605,8 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_init__P295633_mk(s); - s.callLocIdx = 176; s.pc = 6; return s.tmp_0; + s.tmp_0 = scene_init__P53964_mk(s); + s.callLocIdx = 158; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; r0 = (s.arg0 == null); @@ -3966,17 +3627,17 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_PathCompletionEvent__C295628_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_PathCompletionEvent__C53959_VT); s.tmp_3 = r0; - s.tmp_4 = scene_PathCompletionEvent_constructor__P295629_mk(s); + s.tmp_4 = scene_PathCompletionEvent_constructor__P53960_mk(s); s.tmp_4.arg0 = s.tmp_3; s.tmp_4.arg1 = s.arg0; s.tmp_4.arg2 = s.arg1; - s.callLocIdx = 178; s.pc = 7; return s.tmp_4; + s.callLocIdx = 160; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; - s.tmp_6 = scene_getPathCompletionEvents__P295658_mk(s); - s.callLocIdx = 177; s.pc = 8; return s.tmp_6; + s.tmp_6 = scene_getPathCompletionEvents__P53989_mk(s); + s.callLocIdx = 159; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5 = r0; @@ -3986,12 +3647,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_onPathCompletion__P292979.info = {"start":8168,"length":313,"line":207,"column":4,"endLine":217,"endColumn":5,"fileName":"path-following.ts","functionName":"onPathCompletion","argumentNames":["kind","handler"]} +scene_onPathCompletion__P50885.info = {"start":8176,"length":313,"line":207,"column":4,"endLine":217,"endColumn":5,"fileName":"path-following.ts","functionName":"onPathCompletion","argumentNames":["kind","handler"]} -function scene_onPathCompletion__P292979_mk(s) { +function scene_onPathCompletion__P50885_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_onPathCompletion__P292979, depth: s.depth + 1, + parent: s, fn: scene_onPathCompletion__P50885, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4008,7 +3669,7 @@ function scene_onPathCompletion__P292979_mk(s) { -function scene_PathCompletionEvent_constructor__P295629(s) { +function scene_PathCompletionEvent_constructor__P53960(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4025,19 +3686,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_PathCompletionEvent__C295628_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_PathCompletionEvent__C53959_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() } } } -scene_PathCompletionEvent_constructor__P295629.info = {"start":469,"length":138,"line":18,"column":8,"endLine":21,"endColumn":13,"fileName":"path-following.ts","functionName":"inline","argumentNames":["this","kind","handler"]} +scene_PathCompletionEvent_constructor__P53960.info = {"start":469,"length":138,"line":18,"column":8,"endLine":21,"endColumn":13,"fileName":"path-following.ts","functionName":"inline","argumentNames":["this","kind","handler"]} -function scene_PathCompletionEvent_constructor__P295629_mk(s) { +function scene_PathCompletionEvent_constructor__P53960_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_PathCompletionEvent_constructor__P295629, depth: s.depth + 1, + parent: s, fn: scene_PathCompletionEvent_constructor__P53960, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -4048,7 +3709,7 @@ function scene_PathCompletionEvent_constructor__P295629_mk(s) { -function scene_getPathCompletionEvents__P295658(s) { +function scene_getPathCompletionEvents__P53989(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4058,23 +3719,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_2 = game_currentScene__P291955_mk(s); - s.callLocIdx = 186; s.pc = 1; return s.tmp_2; + s.tmp_2 = game_currentScene__P49640_mk(s); + s.callLocIdx = 168; 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___295617); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_0, globals.PATH_COMPLETION_KEY___53948); return leave(s, r0) default: oops() } } } -scene_getPathCompletionEvents__P295658.info = {"start":10355,"length":152,"line":282,"column":4,"endLine":284,"endColumn":5,"fileName":"path-following.ts","functionName":"getPathCompletionEvents","argumentNames":[]} +scene_getPathCompletionEvents__P53989.info = {"start":10363,"length":152,"line":282,"column":4,"endLine":284,"endColumn":5,"fileName":"path-following.ts","functionName":"getPathCompletionEvents","argumentNames":[]} -function scene_getPathCompletionEvents__P295658_mk(s) { +function scene_getPathCompletionEvents__P53989_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_getPathCompletionEvents__P295658, depth: s.depth + 1, + parent: s, fn: scene_getPathCompletionEvents__P53989, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4085,7 +3746,7 @@ function scene_getPathCompletionEvents__P295658_mk(s) { -function scene_Scene_data__P291865(s) { +function scene_Scene_data__P49550(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4100,18 +3761,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C291842_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C49526_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_data__P291865.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__P291865.isGetter = true; +scene_Scene_data__P49550.info = {"start":6765,"length":53,"line":184,"column":8,"endLine":186,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"data","argumentNames":["this"]} +scene_Scene_data__P49550.isGetter = true; -function scene_Scene_data__P291865_mk(s) { +function scene_Scene_data__P49550_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_data__P291865, depth: s.depth + 1, + parent: s, fn: scene_Scene_data__P49550, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -4120,7 +3781,7 @@ function scene_Scene_data__P291865_mk(s) { -function scene_init__P295633(s) { +function scene_init__P53964(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4130,14 +3791,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_5 = game_currentScene__P291955_mk(s); - s.callLocIdx = 118; s.pc = 3; return s.tmp_5; + s.tmp_5 = game_currentScene__P49640_mk(s); + s.callLocIdx = 102; 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___295615); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_3, globals.PATH_FOLLOW_KEY___53946); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -4145,31 +3806,31 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_8 = game_currentScene__P291955_mk(s); - s.callLocIdx = 120; s.pc = 4; return s.tmp_8; + s.tmp_8 = game_currentScene__P49640_mk(s); + s.callLocIdx = 104; 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___295615; + s.tmp_9 = r0 = globals.PATH_FOLLOW_KEY___53946; 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__P291955_mk(s); - s.callLocIdx = 122; s.pc = 5; return s.tmp_2; + s.tmp_2 = game_currentScene__P49640_mk(s); + s.callLocIdx = 106; 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___295617; + s.tmp_3 = r0 = globals.PATH_COMPLETION_KEY___53948; 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__P291966_mk(s); - s.tmp_0.arg0 = inline__P295650; - s.callLocIdx = 146; s.pc = 6; return s.tmp_0; + s.tmp_0 = game_onUpdate__P49659_mk(s); + s.tmp_0.arg0 = scene_init_inline__P53981; + s.callLocIdx = 130; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 1: @@ -4178,12 +3839,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_init__P295633.info = {"start":619,"length":2301,"line":24,"column":4,"endLine":72,"endColumn":5,"fileName":"path-following.ts","functionName":"init","argumentNames":[]} +scene_init__P53964.info = {"start":619,"length":2301,"line":24,"column":4,"endLine":72,"endColumn":5,"fileName":"path-following.ts","functionName":"init","argumentNames":[]} -function scene_init__P295633_mk(s) { +function scene_init__P53964_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_init__P295633, depth: s.depth + 1, + parent: s, fn: scene_init__P53964, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4202,7 +3863,7 @@ function scene_init__P295633_mk(s) { -function inline__P295650(s) { +function scene_init_inline__P53981(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4212,45 +3873,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.store___295651 = undefined; - s.handlers___295655 = undefined; - s.i___295659 = undefined; - s.pfs___295666 = undefined; - s.sprite___295671 = undefined; - s.index___295672 = undefined; - s.path___295673 = undefined; - s.speed___295674 = undefined; - s.target___295675 = undefined; - s.x___295680 = undefined; - s.y___295681 = undefined; - s.vx___295682 = undefined; - s.vy___295683 = undefined; - s.pastTargetHorizontally___295684 = undefined; - s.pastTargetVertically___295703 = undefined; - s.newTarget___295728 = undefined; - s.tmp_0 = scene_getPathFollowingSprites__P295654_mk(s); - s.callLocIdx = 124; s.pc = 27; return s.tmp_0; + s.store___53982 = undefined; + s.handlers___53986 = undefined; + s.i___53990 = undefined; + s.pfs___53997 = undefined; + s.sprite___54002 = undefined; + s.index___54003 = undefined; + s.path___54004 = undefined; + s.speed___54005 = undefined; + s.target___54006 = undefined; + s.x___54011 = undefined; + s.y___54012 = undefined; + s.vx___54013 = undefined; + s.vy___54014 = undefined; + s.pastTargetHorizontally___54015 = undefined; + s.pastTargetVertically___54034 = undefined; + s.newTarget___54059 = undefined; + s.tmp_0 = scene_getPathFollowingSprites__P53985_mk(s); + s.callLocIdx = 108; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.store___295651 = (r0); - s.tmp_0 = scene_getPathCompletionEvents__P295658_mk(s); - s.callLocIdx = 125; s.pc = 28; return s.tmp_0; + s.store___53982 = (r0); + s.tmp_0 = scene_getPathCompletionEvents__P53989_mk(s); + s.callLocIdx = 109; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; - s.handlers___295655 = (r0); - r0 = pxsim_Array__length(s.store___295651); + s.handlers___53986 = (r0); + r0 = pxsim_Array__length(s.store___53982); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - s.i___295659 = (r0); + s.i___53990 = (r0); case 1: - r0 = (s.i___295659 >= 0); + r0 = (s.i___53990 >= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - r0 = pxsim_Array__getAt(s.store___295651, s.i___295659); - s.pfs___295666 = (r0); + r0 = pxsim_Array__getAt(s.store___53982, s.i___53990); + s.pfs___53997 = (r0); s.tmp_0 = if_sprite_1_mk(s); - s.tmp_1 = r0 = s.pfs___295666; + s.tmp_1 = r0 = s.pfs___53997; s.tmp_0.arg0 = r0; if (!s.tmp_0.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "sprite"); @@ -4258,11 +3919,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.callLocIdx = 126; s.pc = 29; return s.tmp_0; } + else { s.callLocIdx = 110; s.pc = 29; return s.tmp_0; } } case 29: r0 = s.retval; - s.sprite___295671 = (r0); + s.sprite___54002 = (r0); s.tmp_2 = if_index_1_mk(s); s.tmp_2.arg0 = s.tmp_1; if (!s.tmp_2.arg0.vtable.iface) { @@ -4271,11 +3932,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.callLocIdx = 127; s.pc = 30; return s.tmp_2; } + else { s.callLocIdx = 111; s.pc = 30; return s.tmp_2; } } case 30: r0 = s.retval; - s.index___295672 = (r0); + s.index___54003 = (r0); s.tmp_3 = if_path_1_mk(s); s.tmp_3.arg0 = s.tmp_1; if (!s.tmp_3.arg0.vtable.iface) { @@ -4284,11 +3945,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.callLocIdx = 128; s.pc = 31; return s.tmp_3; } + else { s.callLocIdx = 112; s.pc = 31; return s.tmp_3; } } case 31: r0 = s.retval; - s.path___295673 = (r0); + s.path___54004 = (r0); s.tmp_4 = if_speed_1_mk(s); s.tmp_4.arg0 = s.tmp_1; if (!s.tmp_4.arg0.vtable.iface) { @@ -4297,15 +3958,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.callLocIdx = 129; s.pc = 32; return s.tmp_4; } + else { s.callLocIdx = 113; s.pc = 32; return s.tmp_4; } } case 32: r0 = s.retval; - s.speed___295674 = (r0); - r0 = pxsim_Array__getAt(s.path___295673, s.index___295672); - s.target___295675 = (r0); + s.speed___54005 = (r0); + r0 = pxsim_Array__getAt(s.path___54004, s.index___54003); + s.target___54006 = (r0); s.tmp_0 = if_x_1_mk(s); - s.tmp_1 = r0 = s.sprite___295671; + s.tmp_1 = r0 = s.sprite___54002; s.tmp_0.arg0 = r0; if (!s.tmp_0.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "x"); @@ -4313,11 +3974,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.callLocIdx = 130; s.pc = 33; return s.tmp_0; } + else { s.callLocIdx = 114; s.pc = 33; return s.tmp_0; } } case 33: r0 = s.retval; - s.x___295680 = (r0); + s.x___54011 = (r0); s.tmp_2 = if_y_1_mk(s); s.tmp_2.arg0 = s.tmp_1; if (!s.tmp_2.arg0.vtable.iface) { @@ -4326,11 +3987,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.callLocIdx = 131; s.pc = 34; return s.tmp_2; } + else { s.callLocIdx = 115; s.pc = 34; return s.tmp_2; } } case 34: r0 = s.retval; - s.y___295681 = (r0); + s.y___54012 = (r0); s.tmp_3 = if_vx_1_mk(s); s.tmp_3.arg0 = s.tmp_1; if (!s.tmp_3.arg0.vtable.iface) { @@ -4339,11 +4000,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.callLocIdx = 132; s.pc = 35; return s.tmp_3; } + else { s.callLocIdx = 116; s.pc = 35; return s.tmp_3; } } case 35: r0 = s.retval; - s.vx___295682 = (r0); + s.vx___54013 = (r0); s.tmp_4 = if_vy_1_mk(s); s.tmp_4.arg0 = s.tmp_1; if (!s.tmp_4.arg0.vtable.iface) { @@ -4352,12 +4013,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.callLocIdx = 133; s.pc = 36; return s.tmp_4; } + else { s.callLocIdx = 117; s.pc = 36; return s.tmp_4; } } case 36: r0 = s.retval; - s.vy___295683 = (r0); - r0 = pxsim_numops_toBoolDecr(s.vx___295682); + s.vy___54014 = (r0); + r0 = pxsim_numops_toBoolDecr(s.vx___54013); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -4366,17 +4027,17 @@ switch (step) { r0 = s.tmp_0; { step = 5; continue; } case 2: - r0 = (s.vx___295682 < 0); + r0 = (s.vx___54013 < 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___295680; - s.tmp_5 = tiles_Location_x__P291723_mk(s); - s.tmp_5.arg0 = s.target___295675; - s.callLocIdx = 134; s.pc = 37; return s.tmp_5; + s.tmp_3 = r0 = s.x___54011; + s.tmp_5 = tiles_Location_x__P49384_mk(s); + s.tmp_5.arg0 = s.target___54006; + s.callLocIdx = 118; s.pc = 37; return s.tmp_5; case 37: r0 = s.retval; s.tmp_4 = r0; @@ -4393,17 +4054,17 @@ switch (step) { r0 = s.tmp_7; { step = 9; continue; } case 6: - r0 = (s.vx___295682 > 0); + r0 = (s.vx___54013 > 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___295680; - s.tmp_11 = tiles_Location_x__P291723_mk(s); - s.tmp_11.arg0 = s.target___295675; - s.callLocIdx = 135; s.pc = 38; return s.tmp_11; + s.tmp_9 = r0 = s.x___54011; + s.tmp_11 = tiles_Location_x__P49384_mk(s); + s.tmp_11.arg0 = s.target___54006; + s.callLocIdx = 119; s.pc = 38; return s.tmp_11; case 38: r0 = s.retval; s.tmp_10 = r0; @@ -4415,8 +4076,8 @@ switch (step) { case 9: // jmp value (already in r0) s.tmp_13 = r0; - s.pastTargetHorizontally___295684 = (s.tmp_13); - r0 = pxsim_numops_toBoolDecr(s.vy___295683); + s.pastTargetHorizontally___54015 = (s.tmp_13); + r0 = pxsim_numops_toBoolDecr(s.vy___54014); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -4425,17 +4086,17 @@ switch (step) { r0 = s.tmp_0; { step = 13; continue; } case 10: - r0 = (s.vy___295683 < 0); + r0 = (s.vy___54014 < 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___295681; - s.tmp_5 = tiles_Location_y__P291724_mk(s); - s.tmp_5.arg0 = s.target___295675; - s.callLocIdx = 136; s.pc = 39; return s.tmp_5; + s.tmp_3 = r0 = s.y___54012; + s.tmp_5 = tiles_Location_y__P49385_mk(s); + s.tmp_5.arg0 = s.target___54006; + s.callLocIdx = 120; s.pc = 39; return s.tmp_5; case 39: r0 = s.retval; s.tmp_4 = r0; @@ -4452,17 +4113,17 @@ switch (step) { r0 = s.tmp_7; { step = 17; continue; } case 14: - r0 = (s.vy___295683 > 0); + r0 = (s.vy___54014 > 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___295681; - s.tmp_11 = tiles_Location_y__P291724_mk(s); - s.tmp_11.arg0 = s.target___295675; - s.callLocIdx = 137; s.pc = 40; return s.tmp_11; + s.tmp_9 = r0 = s.y___54012; + s.tmp_11 = tiles_Location_y__P49385_mk(s); + s.tmp_11.arg0 = s.target___54006; + s.callLocIdx = 121; s.pc = 40; return s.tmp_11; case 40: r0 = s.retval; s.tmp_10 = r0; @@ -4474,112 +4135,112 @@ switch (step) { case 17: // jmp value (already in r0) s.tmp_13 = r0; - s.pastTargetVertically___295703 = (s.tmp_13); - s.tmp_0 = r0 = s.pastTargetHorizontally___295684; + s.pastTargetVertically___54034 = (s.tmp_13); + s.tmp_0 = r0 = s.pastTargetHorizontally___54015; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 18; continue; } r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.pastTargetVertically___295703; + r0 = s.pastTargetVertically___54034; 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___295666; + s.tmp_2 = r0 = s.pfs___53997; 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___295666.fields["index"]; + r0 = s.pfs___53997.fields["index"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.path___295673, s.tmp_0); - s.newTarget___295728 = (r0); - r0 = pxsim_numops_toBoolDecr(s.newTarget___295728); + r0 = pxsim_Array__getAt(s.path___54004, s.tmp_0); + s.newTarget___54059 = (r0); + r0 = pxsim_numops_toBoolDecr(s.newTarget___54059); s.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__P291499_mk(s); - s.tmp_2.arg0 = s.sprite___295671; + s.tmp_2 = Sprite_setVelocity__P49152_mk(s); + s.tmp_2.arg0 = s.sprite___54002; s.tmp_2.arg1 = 0; s.tmp_2.arg2 = 0; - s.callLocIdx = 138; s.pc = 41; return s.tmp_2; + s.callLocIdx = 122; s.pc = 41; return s.tmp_2; case 41: r0 = s.retval; - s.tmp_0 = tiles_Location_place__P291726_mk(s); - s.tmp_0.arg0 = s.target___295675; - s.tmp_0.arg1 = s.sprite___295671; - s.callLocIdx = 139; s.pc = 42; return s.tmp_0; + s.tmp_0 = tiles_Location_place__P49395_mk(s); + s.tmp_0.arg0 = s.target___54006; + s.tmp_0.arg1 = s.sprite___54002; + s.callLocIdx = 123; s.pc = 42; return s.tmp_0; case 42: r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.store___295651, s.i___295659); - r0 = s.pfs___295666.fields["onEndHandler"]; + r0 = pxsim_Array_.removeAt(s.store___53982, s.i___53990); + r0 = s.pfs___53997.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___295666; + s.tmp_1.arg0 = s.pfs___53997; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "onEndHandler"), 1); - s.callLocIdx = 140; s.pc = 43; return s.tmp_1; + s.callLocIdx = 124; 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.callLocIdx = 140; s.pc = 43; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 140; s.pc = 43; return s.tmp_1;; } - else { s.callLocIdx = 140; 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 = 124; s.pc = 43; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 124; s.pc = 43; return s.tmp_1;; } + else { s.callLocIdx = 124; s.pc = 43; return s.tmp_1; } } case 43: r0 = s.retval; { step = 21; continue; } case 20: - r0 = pxsim_pxtcore_mkAction(3, inline__P295751); + r0 = pxsim_pxtcore_mkAction(3, scene_init_inline__P54082); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.sprite___295671); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.path___295673); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.pfs___295666); - s.tmp_1 = helpers_arrayForEach__P289514_mk(s); - s.tmp_1.arg0 = s.handlers___295655; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.sprite___54002); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.path___54004); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.pfs___53997); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); + s.tmp_1.arg0 = s.handlers___53986; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 143; s.pc = 44; return s.tmp_1; + s.callLocIdx = 127; 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__P291726_mk(s); - s.tmp_0.arg0 = s.target___295675; - s.tmp_0.arg1 = s.sprite___295671; - s.callLocIdx = 144; s.pc = 45; return s.tmp_0; + s.tmp_0 = tiles_Location_place__P49395_mk(s); + s.tmp_0.arg0 = s.target___54006; + s.tmp_0.arg1 = s.sprite___54002; + s.callLocIdx = 128; s.pc = 45; return s.tmp_0; case 45: r0 = s.retval; - s.tmp_0 = scene_setVelocityTowards__P295769_mk(s); - s.tmp_0.arg0 = s.sprite___295671; - s.tmp_0.arg1 = s.newTarget___295728; - s.tmp_0.arg2 = s.speed___295674; - s.callLocIdx = 145; s.pc = 46; return s.tmp_0; + s.tmp_0 = scene_setVelocityTowards__P54100_mk(s); + s.tmp_0.arg0 = s.sprite___54002; + s.tmp_0.arg1 = s.newTarget___54059; + s.tmp_0.arg2 = s.speed___54005; + s.callLocIdx = 129; s.pc = 46; return s.tmp_0; case 46: r0 = s.retval; case 23: case 24: case 25: - r0 = (s.i___295659 - 1); - s.i___295659 = (r0); + r0 = (s.i___53990 - 1); + s.i___53990 = (r0); { step = 1; continue; } case 26: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P295650.info = {"start":896,"length":2006,"line":29,"column":26,"endLine":70,"endColumn":13,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} +scene_init_inline__P53981.info = {"start":896,"length":2006,"line":29,"column":26,"endLine":70,"endColumn":13,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} -function inline__P295650_mk(s) { +function scene_init_inline__P53981_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P295650, depth: s.depth + 1, + parent: s, fn: scene_init_inline__P53981, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4595,29 +4256,29 @@ function inline__P295650_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - store___295651: undefined, - handlers___295655: undefined, - i___295659: undefined, - pfs___295666: undefined, - sprite___295671: undefined, - index___295672: undefined, - path___295673: undefined, - speed___295674: undefined, - target___295675: undefined, - x___295680: undefined, - y___295681: undefined, - vx___295682: undefined, - vy___295683: undefined, - pastTargetHorizontally___295684: undefined, - pastTargetVertically___295703: undefined, - newTarget___295728: undefined, + store___53982: undefined, + handlers___53986: undefined, + i___53990: undefined, + pfs___53997: undefined, + sprite___54002: undefined, + index___54003: undefined, + path___54004: undefined, + speed___54005: undefined, + target___54006: undefined, + x___54011: undefined, + y___54012: undefined, + vx___54013: undefined, + vy___54014: undefined, + pastTargetHorizontally___54015: undefined, + pastTargetVertically___54034: undefined, + newTarget___54059: undefined, } } -function inline__P295751(s) { +function scene_init_inline__P54082(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4651,12 +4312,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.callLocIdx = 142; s.pc = 3; return s.tmp_3; + s.callLocIdx = 126; 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.callLocIdx = 142; s.pc = 3; return s.tmp_3; } - else if (s.tmp_3.fn.isGetter) { s.tmp_3.stage2Call = true; s.callLocIdx = 142; s.pc = 3; return s.tmp_3;; } - else { s.callLocIdx = 142; 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 = 126; s.pc = 3; return s.tmp_3; } + else if (s.tmp_3.fn.isGetter) { s.tmp_3.stage2Call = true; s.callLocIdx = 126; s.pc = 3; return s.tmp_3;; } + else { s.callLocIdx = 126; s.pc = 3; return s.tmp_3; } } case 3: r0 = s.retval; @@ -4666,12 +4327,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P295751.info = {"start":2359,"length":274,"line":58,"column":49,"endLine":62,"endColumn":33,"fileName":"path-following.ts","functionName":"inline","argumentNames":["completionHandler"]} +scene_init_inline__P54082.info = {"start":2359,"length":274,"line":58,"column":49,"endLine":62,"endColumn":33,"fileName":"path-following.ts","functionName":"inline","argumentNames":["completionHandler"]} -function inline__P295751_mk(s) { +function scene_init_inline__P54082_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P295751, depth: s.depth + 1, + parent: s, fn: scene_init_inline__P54082, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4687,7 +4348,7 @@ function inline__P295751_mk(s) { -function scene_setVelocityTowards__P295769(s) { +function scene_setVelocityTowards__P54100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4697,46 +4358,46 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dx___295778 = undefined; - s.dy___295784 = undefined; - s.dist___295790 = undefined; + s.dx___54109 = undefined; + s.dy___54115 = undefined; + s.dist___54121 = 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__P291723_mk(s); + s.tmp_1 = tiles_Location_x__P49384_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 147; s.pc = 3; return s.tmp_1; + s.callLocIdx = 131; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Sprite_x__P291451_mk(s); + s.tmp_3 = Sprite_x__P49096_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 148; s.pc = 4; return s.tmp_3; + s.callLocIdx = 132; 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___295778 = (r0); - s.tmp_1 = tiles_Location_y__P291724_mk(s); + s.dx___54109 = (r0); + s.tmp_1 = tiles_Location_y__P49385_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 149; s.pc = 5; return s.tmp_1; + s.callLocIdx = 133; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Sprite_y__P291453_mk(s); + s.tmp_3 = Sprite_y__P49098_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 150; s.pc = 6; return s.tmp_3; + s.callLocIdx = 134; 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___295784 = (r0); - r0 = (s.dx___295778 * s.dx___295778); + s.dy___54115 = (r0); + r0 = (s.dx___54109 * s.dx___54109); s.tmp_2 = r0; - r0 = (s.dy___295784 * s.dy___295784); + r0 = (s.dy___54115 * s.dy___54115); s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1 = r0; @@ -4751,44 +4412,44 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.dist___295790 = (s.tmp_4); - s.tmp_0 = Sprite_vx__P291456_mk(s); + s.dist___54121 = (s.tmp_4); + s.tmp_0 = Sprite_vx__P49101_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = (s.dx___295778 / s.dist___295790); + r0 = (s.dx___54109 / s.dist___54121); s.tmp_1 = r0; r0 = (s.tmp_1 * s.arg2); s.tmp_0.arg1 = r0; - s.callLocIdx = 151; s.pc = 7; return s.tmp_0; + s.callLocIdx = 135; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = Sprite_vy__P291458_mk(s); + s.tmp_0 = Sprite_vy__P49103_mk(s); s.tmp_0.arg0 = s.arg0; - r0 = (s.dy___295784 / s.dist___295790); + r0 = (s.dy___54115 / s.dist___54121); s.tmp_1 = r0; r0 = (s.tmp_1 * s.arg2); s.tmp_0.arg1 = r0; - s.callLocIdx = 152; s.pc = 8; return s.tmp_0; + s.callLocIdx = 136; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setVelocityTowards__P295769.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__P54100.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__P295769_mk(s) { +function scene_setVelocityTowards__P54100_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setVelocityTowards__P295769, depth: s.depth + 1, + parent: s, fn: scene_setVelocityTowards__P54100, depth: s.depth + 1, pc: 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___295778: undefined, - dy___295784: undefined, - dist___295790: undefined, + dx___54109: undefined, + dy___54115: undefined, + dist___54121: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -4798,7 +4459,7 @@ function scene_setVelocityTowards__P295769_mk(s) { -function Sprite_vy__P291458(s) { +function Sprite_vy__P49103(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4814,7 +4475,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -4825,12 +4486,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_vy__P291458.info = {"start":2988,"length":51,"line":114,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} +Sprite_vy__P49103.info = {"start":3757,"length":51,"line":148,"column":4,"endLine":150,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this","v"]} -function Sprite_vy__P291458_mk(s) { +function Sprite_vy__P49103_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P291458, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P49103, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4843,7 +4504,7 @@ function Sprite_vy__P291458_mk(s) { -function Sprite_vx__P291456(s) { +function Sprite_vx__P49101(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4859,7 +4520,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -4870,12 +4531,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_vx__P291456.info = {"start":2657,"length":51,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} +Sprite_vx__P49101.info = {"start":3426,"length":51,"line":137,"column":4,"endLine":139,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this","v"]} -function Sprite_vx__P291456_mk(s) { +function Sprite_vx__P49101_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P291456, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P49101, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4888,7 +4549,7 @@ function Sprite_vx__P291456_mk(s) { -function Sprite_y__P291453(s) { +function Sprite_y__P49098(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4903,28 +4564,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["_y"]; s.tmp_1 = r0; - r0 = (s.tmp_1 / 256); - s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_4); + r0 = s.arg0.fields["_height"]; s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); + r0 = (s.tmp_3 << 8); + s.tmp_4 = r0; + r0 = pxsim.Math_.idiv(s.tmp_4, 512); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_y__P291453.info = {"start":2132,"length":85,"line":87,"column":4,"endLine":89,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} -Sprite_y__P291453.isGetter = true; +Sprite_y__P49098.info = {"start":2893,"length":100,"line":121,"column":4,"endLine":123,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this"]} +Sprite_y__P49098.isGetter = true; -function Sprite_y__P291453_mk(s) { +function Sprite_y__P49098_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P291453, depth: s.depth + 1, + parent: s, fn: Sprite_y__P49098, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4938,7 +4599,7 @@ function Sprite_y__P291453_mk(s) { -function Fx_toFloat__P289575(s) { +function Fx_toFloat__P47128(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4956,21 +4617,92 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_toFloat__P289575.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} +Fx_toFloat__P47128.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} + +function Fx_toFloat__P47128_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_toFloat__P47128, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function Fx_div__P47117(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 << 8); + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_div__P47117.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__P47117_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_div__P47117, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_add__P47112(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 + s.arg1); + return leave(s, r0) + default: oops() +} } } +Fx_add__P47112.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_toFloat__P289575_mk(s) { +function Fx_add__P47112_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toFloat__P289575, depth: s.depth + 1, + parent: s, fn: Fx_add__P47112, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function Sprite_x__P291451(s) { +function Sprite_x__P49096(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4985,28 +4717,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["_x"]; s.tmp_1 = r0; - r0 = (s.tmp_1 / 256); - s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); + r0 = s.arg0.fields["_width"]; s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); + r0 = (s.tmp_3 << 8); + s.tmp_4 = r0; + r0 = pxsim.Math_.idiv(s.tmp_4, 512); s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_x__P291451.info = {"start":1784,"length":84,"line":76,"column":4,"endLine":78,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} -Sprite_x__P291451.isGetter = true; +Sprite_x__P49096.info = {"start":2537,"length":99,"line":110,"column":4,"endLine":112,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this"]} +Sprite_x__P49096.isGetter = true; -function Sprite_x__P291451_mk(s) { +function Sprite_x__P49096_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P291451, depth: s.depth + 1, + parent: s, fn: Sprite_x__P49096, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5020,7 +4752,7 @@ function Sprite_x__P291451_mk(s) { -function tiles_Location_place__P291726(s) { +function tiles_Location_place__P49395(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5036,7 +4768,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C291719_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C49379_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -5046,21 +4778,21 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = Sprite_setPosition__P291498_mk(s); + s.tmp_2 = Sprite_setPosition__P49151_mk(s); s.tmp_2.arg0 = s.arg1; - s.tmp_3 = tiles_Location_x__P291723_mk(s); + s.tmp_3 = tiles_Location_x__P49384_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 772; s.pc = 5; return s.tmp_3; + s.callLocIdx = 878; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; s.tmp_2.arg1 = r0; - s.tmp_4 = tiles_Location_y__P291724_mk(s); + s.tmp_4 = tiles_Location_y__P49385_mk(s); s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 773; s.pc = 6; return s.tmp_4; + s.callLocIdx = 879; s.pc = 6; return s.tmp_4; case 6: r0 = s.retval; s.tmp_2.arg2 = r0; - s.callLocIdx = 774; s.pc = 4; return s.tmp_2; + s.callLocIdx = 880; s.pc = 4; return s.tmp_2; case 4: r0 = s.retval; case 3: @@ -5068,12 +4800,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_Location_place__P291726.info = {"start":1189,"length":126,"line":51,"column":8,"endLine":54,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"place","argumentNames":["this","mySprite"]} +tiles_Location_place__P49395.info = {"start":3895,"length":126,"line":130,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"place","argumentNames":["this","mySprite"]} -function tiles_Location_place__P291726_mk(s) { +function tiles_Location_place__P49395_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_place__P291726, depth: s.depth + 1, + parent: s, fn: tiles_Location_place__P49395, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5088,7 +4820,7 @@ function tiles_Location_place__P291726_mk(s) { -function Sprite_setPosition__P291498(s) { +function Sprite_setPosition__P49151(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5098,7 +4830,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___299160 = undefined; + s.physics___57216 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -5106,20 +4838,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 308; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 438; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___299160 = (r0); - s.tmp_0 = PhysicsEngine__C291587_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___299160; + s.physics___57216 = (r0); + s.tmp_0 = PhysicsEngine__C49245_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___57216; s.tmp_0.arg1 = s.arg0; s.tmp_2 = r0 = s.arg1; - s.tmp_4 = Sprite_x__P291451_mk(s); + s.tmp_4 = Sprite_x__P49096_mk(s); s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 309; s.pc = 3; return s.tmp_4; + s.callLocIdx = 439; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; s.tmp_3 = r0; @@ -5130,9 +4862,9 @@ switch (step) { r0 = (s.tmp_5 | 0); s.tmp_0.arg2 = r0; s.tmp_7 = r0 = s.arg2; - s.tmp_9 = Sprite_y__P291453_mk(s); + s.tmp_9 = Sprite_y__P49098_mk(s); s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 311; s.pc = 4; return s.tmp_9; + s.callLocIdx = 441; s.pc = 4; return s.tmp_9; case 4: r0 = s.retval; s.tmp_8 = r0; @@ -5142,7 +4874,7 @@ switch (step) { s.tmp_10 = r0; r0 = (s.tmp_10 | 0); s.tmp_0.arg3 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C291587_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C49245_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: @@ -5151,12 +4883,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setPosition__P291498.info = {"start":12245,"length":220,"line":436,"column":4,"endLine":443,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} +Sprite_setPosition__P49151.info = {"start":15032,"length":220,"line":529,"column":4,"endLine":536,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setPosition","argumentNames":["this","x","y"]} -function Sprite_setPosition__P291498_mk(s) { +function Sprite_setPosition__P49151_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setPosition__P291498, depth: s.depth + 1, + parent: s, fn: Sprite_setPosition__P49151, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5169,7 +4901,7 @@ function Sprite_setPosition__P291498_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - physics___299160: undefined, + physics___57216: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -5179,7 +4911,7 @@ function Sprite_setPosition__P291498_mk(s) { -function PhysicsEngine_moveSprite__P291591(s) { +function PhysicsEngine_moveSprite__P49249(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5197,17 +4929,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C291587_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C49245_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P291591.info = {"start":230,"length":43,"line":13,"column":4,"endLine":13,"endColumn":47,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} +PhysicsEngine_moveSprite__P49249.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__P291591_mk(s) { +function PhysicsEngine_moveSprite__P49249_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P291591, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_moveSprite__P49249, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -5219,7 +4951,7 @@ function PhysicsEngine_moveSprite__P291591_mk(s) { -function Sprite_setVelocity__P291499(s) { +function Sprite_setVelocity__P49152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5236,29 +4968,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = Sprite_vx__P291456_mk(s); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = Sprite_vx__P49101_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 313; s.pc = 1; return s.tmp_0; + s.callLocIdx = 443; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_vy__P291458_mk(s); + s.tmp_0 = Sprite_vy__P49103_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 314; s.pc = 2; return s.tmp_0; + s.callLocIdx = 444; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setVelocity__P291499.info = {"start":12809,"length":93,"line":456,"column":4,"endLine":459,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setVelocity","argumentNames":["this","vx","vy"]} +Sprite_setVelocity__P49152.info = {"start":15596,"length":93,"line":549,"column":4,"endLine":552,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setVelocity","argumentNames":["this","vx","vy"]} -function Sprite_setVelocity__P291499_mk(s) { +function Sprite_setVelocity__P49152_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setVelocity__P291499, depth: s.depth + 1, + parent: s, fn: Sprite_setVelocity__P49152, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -5270,7 +5002,7 @@ function Sprite_setVelocity__P291499_mk(s) { -function tiles_Location_y__P291724(s) { +function tiles_Location_y__P49385(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5280,22 +5012,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___303280 = undefined; + s.scale___59903 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C291719_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; + if (!checkSubtype(r0, tiles_Location__C49379_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P49381_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 869; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___303280 = (r0); + s.scale___59903 = (r0); r0 = s.arg0.fields["_row"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___303280); + r0 = (s.tmp_1 << s.scale___59903); s.tmp_0 = r0; - r0 = (s.scale___303280 - 1); + r0 = (s.scale___59903 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -5303,19 +5039,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_y__P291724.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__P291724.isGetter = true; +tiles_Location_y__P49385.info = {"start":1315,"length":135,"line":53,"column":8,"endLine":56,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"y","argumentNames":["this"]} +tiles_Location_y__P49385.isGetter = true; -function tiles_Location_y__P291724_mk(s) { +function tiles_Location_y__P49385_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_y__P291724, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P49385, depth: s.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___303280: undefined, + scale___59903: undefined, arg0: undefined, } } @@ -5323,7 +5059,7 @@ function tiles_Location_y__P291724_mk(s) { -function tiles_TileMap_scale__P291749(s) { +function tiles_TileMap_scale__P49424(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5338,19 +5074,59 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_scale__P291749.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__P291749.isGetter = true; +tiles_TileMap_scale__P49424.info = {"start":9169,"length":55,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} +tiles_TileMap_scale__P49424.isGetter = true; + +function tiles_TileMap_scale__P49424_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_TileMap_scale__P49424, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function tiles_Location_tileMap__P49381(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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_Location__C49379_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 866; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = r0.fields["tileMap"]; + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_Location_tileMap__P49381.info = {"start":491,"length":73,"line":24,"column":8,"endLine":26,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileMap","argumentNames":["this"]} +tiles_Location_tileMap__P49381.isGetter = true; -function tiles_TileMap_scale__P291749_mk(s) { +function tiles_Location_tileMap__P49381_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P291749, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileMap__P49381, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -5358,7 +5134,7 @@ function tiles_TileMap_scale__P291749_mk(s) { -function tiles_Location_x__P291723(s) { +function tiles_Location_x__P49384(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5368,22 +5144,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___303297 = undefined; + s.scale___59920 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C291719_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; + if (!checkSubtype(r0, tiles_Location__C49379_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P49381_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 867; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___303297 = (r0); + s.scale___59920 = (r0); r0 = s.arg0.fields["_col"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___303297); + r0 = (s.tmp_1 << s.scale___59920); s.tmp_0 = r0; - r0 = (s.scale___303297 - 1); + r0 = (s.scale___59920 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -5391,19 +5171,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_x__P291723.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__P291723.isGetter = true; +tiles_Location_x__P49384.info = {"start":1054,"length":135,"line":45,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"x","argumentNames":["this"]} +tiles_Location_x__P49384.isGetter = true; -function tiles_Location_x__P291723_mk(s) { +function tiles_Location_x__P49384_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_x__P291723, depth: s.depth + 1, + parent: s, fn: tiles_Location_x__P49384, depth: s.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___303297: undefined, + scale___59920: undefined, arg0: undefined, } } @@ -5411,7 +5191,7 @@ function tiles_Location_x__P291723_mk(s) { -function scene_getPathFollowingSprites__P295654(s) { +function scene_getPathFollowingSprites__P53985(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5421,23 +5201,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_2 = game_currentScene__P291955_mk(s); - s.callLocIdx = 184; s.pc = 1; return s.tmp_2; + s.tmp_2 = game_currentScene__P49640_mk(s); + s.callLocIdx = 166; 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___295615); + r0 = pxsim_pxtrt.mapGetGeneric(s.tmp_0, globals.PATH_FOLLOW_KEY___53946); return leave(s, r0) default: oops() } } } -scene_getPathFollowingSprites__P295654.info = {"start":10201,"length":148,"line":278,"column":4,"endLine":280,"endColumn":5,"fileName":"path-following.ts","functionName":"getPathFollowingSprites","argumentNames":[]} +scene_getPathFollowingSprites__P53985.info = {"start":10209,"length":148,"line":278,"column":4,"endLine":280,"endColumn":5,"fileName":"path-following.ts","functionName":"getPathFollowingSprites","argumentNames":[]} -function scene_getPathFollowingSprites__P295654_mk(s) { +function scene_getPathFollowingSprites__P53985_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_getPathFollowingSprites__P295654, depth: s.depth + 1, + parent: s, fn: scene_getPathFollowingSprites__P53985, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5448,7 +5228,7 @@ function scene_getPathFollowingSprites__P295654_mk(s) { -function Sprite_vx__P291455(s) { +function Sprite_vx__P49100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5463,20 +5243,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_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__P291455.info = {"start":2495,"length":60,"line":98,"column":4,"endLine":100,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} -Sprite_vx__P291455.isGetter = true; +Sprite_vx__P49100.info = {"start":3264,"length":60,"line":132,"column":4,"endLine":134,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vx","argumentNames":["this"]} +Sprite_vx__P49100.isGetter = true; -function Sprite_vx__P291455_mk(s) { +function Sprite_vx__P49100_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P291455, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P49100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -5486,7 +5266,7 @@ function Sprite_vx__P291455_mk(s) { -function Sprite_setImage__P291482(s) { +function Sprite_setImage__P49133(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5502,36 +5282,49 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_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); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 3; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = s.arg0.fields["_image"]; + s.tmp_2 = r0; + r0 = (s.arg1 === s.tmp_2); case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: r0 = (s.arg0).fields["_image"] = (s.arg1); - s.tmp_0 = Sprite_setHitbox__P291483_mk(s); + s.tmp_0 = Sprite_recalcSize__P51169_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 269; s.pc = 4; return s.tmp_0; - case 4: + s.callLocIdx = 387; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - case 3: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setImage__P291482.info = {"start":7108,"length":133,"line":258,"column":4,"endLine":262,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} +Sprite_setImage__P49133.info = {"start":9273,"length":131,"line":332,"column":4,"endLine":336,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setImage","argumentNames":["this","img"]} -function Sprite_setImage__P291482_mk(s) { +function Sprite_setImage__P49133_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P291482, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P49133, depth: s.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, } } @@ -5540,7 +5333,7 @@ function Sprite_setImage__P291482_mk(s) { -function Sprite_setHitbox__P291483(s) { +function Sprite_recalcSize__P51169(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5550,300 +5343,296 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___299857 = undefined; - s.oMinX___299865 = undefined; - s.oMinY___299869 = undefined; - s.oMaxX___299873 = undefined; - s.oMaxY___299880 = undefined; - s.nMinX___299887 = undefined; - s.nMinY___299890 = undefined; - s.nMaxX___299893 = undefined; - s.nMaxY___299899 = undefined; - s.xDiff___299905 = undefined; - s.yDiff___299916 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = game_calculateHitBox__P291389_mk(s); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_4); + s.tmp_3 = r0; + s.tmp_6 = Sprite_sx__P49112_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 410; s.pc = 1; return s.tmp_6; + case 1: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_3 * s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_7 = r0; + r0 = (s.tmp_7 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_4); + s.tmp_3 = r0; + s.tmp_6 = Sprite_sy__P49114_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 412; s.pc = 2; return s.tmp_6; + case 2: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_3 * s.tmp_5); + s.tmp_2 = r0; + r0 = (s.tmp_2 * 256); + s.tmp_7 = r0; + r0 = (s.tmp_7 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); + s.tmp_0 = Sprite_resetHitbox__P49135_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 270; s.pc = 8; return s.tmp_0; - case 8: + s.callLocIdx = 414; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_recalcSize__P51169.info = {"start":11085,"length":176,"line":396,"column":4,"endLine":400,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"recalcSize","argumentNames":["this"]} + +function Sprite_recalcSize__P51169_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_recalcSize__P51169, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, +} } + + + + + +function Sprite_resetHitbox__P49135(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C49083_VT)) failedCast(r0); + r0 = (s.arg0).fields["_hitbox"] = (null); + s.tmp_0 = Sprite_setHitbox__P49136_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 391; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_resetHitbox__P49135.info = {"start":9532,"length":76,"line":342,"column":4,"endLine":345,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"resetHitbox","argumentNames":["this"]} + +function Sprite_resetHitbox__P49135_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_resetHitbox__P49135, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_setHitbox__P49136(s) { +let r0 = s.r0, 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___58031 = undefined; + s.oMinX___58045 = undefined; + s.oMinY___58049 = undefined; + s.oMaxX___58053 = undefined; + s.oMaxY___58060 = undefined; + s.nMinX___58067 = undefined; + s.nMinY___58070 = undefined; + s.nMaxX___58073 = undefined; + s.nMaxY___58079 = undefined; + s.xDiff___58085 = undefined; + s.yDiff___58096 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = game_calculateHitBox__P48968_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 392; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; - s.newHitBox___299857 = (r0); + s.newHitBox___58031 = (r0); r0 = s.arg0.fields["_hitbox"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___299857); - { step = 7; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_3 = game_Hitbox_isValid__P48965_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 393; s.pc = 11; return s.tmp_3; + case 11: + r0 = s.retval; case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___58031); + { step = 9; continue; } + case 3: + case 4: r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["ox"]; - s.oMinX___299865 = (r0); + s.oMinX___58045 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["oy"]; - s.oMinY___299869 = (r0); + s.oMinY___58049 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; s.tmp_0 = r0; - r0 = (s.oMinX___299865 + s.tmp_0); - s.oMaxX___299873 = (r0); + r0 = (s.oMinX___58045 + s.tmp_0); + s.oMaxX___58053 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["height"]; s.tmp_0 = r0; - r0 = (s.oMinY___299869 + s.tmp_0); - s.oMaxY___299880 = (r0); - r0 = s.newHitBox___299857.fields["ox"]; - s.nMinX___299887 = (r0); - r0 = s.newHitBox___299857.fields["oy"]; - s.nMinY___299890 = (r0); - r0 = s.newHitBox___299857.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___299887 + s.tmp_0); - s.nMaxX___299893 = (r0); - r0 = s.newHitBox___299857.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___299890 + s.tmp_0); - s.nMaxY___299899 = (r0); - s.tmp_1 = Fx_abs__P289569_mk(s); - r0 = (s.oMinX___299865 - s.nMinX___299887); + r0 = (s.oMinY___58049 + s.tmp_0); + s.oMaxY___58060 = (r0); + r0 = s.newHitBox___58031.fields["ox"]; + s.nMinX___58067 = (r0); + r0 = s.newHitBox___58031.fields["oy"]; + s.nMinY___58070 = (r0); + r0 = s.newHitBox___58031.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___58067 + s.tmp_0); + s.nMaxX___58073 = (r0); + r0 = s.newHitBox___58031.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___58070 + s.tmp_0); + s.nMaxY___58079 = (r0); + s.tmp_1 = Fx_abs__P47120_mk(s); + r0 = (s.oMinX___58045 - s.nMinX___58067); s.tmp_1.arg0 = r0; - s.callLocIdx = 276; s.pc = 9; return s.tmp_1; - case 9: + s.callLocIdx = 399; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P289569_mk(s); - r0 = (s.oMaxX___299873 - s.nMaxX___299893); + s.tmp_3 = Fx_abs__P47120_mk(s); + r0 = (s.oMaxX___58053 - s.nMaxX___58073); s.tmp_3.arg0 = r0; - s.callLocIdx = 278; s.pc = 10; return s.tmp_3; - case 10: + s.callLocIdx = 401; s.pc = 13; return s.tmp_3; + case 13: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.xDiff___299905 = (r0); - s.tmp_1 = Fx_abs__P289569_mk(s); - r0 = (s.oMinY___299869 - s.nMinY___299890); + s.xDiff___58085 = (r0); + s.tmp_1 = Fx_abs__P47120_mk(s); + r0 = (s.oMinY___58049 - s.nMinY___58070); s.tmp_1.arg0 = r0; - s.callLocIdx = 281; s.pc = 11; return s.tmp_1; - case 11: + s.callLocIdx = 404; s.pc = 14; return s.tmp_1; + case 14: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P289569_mk(s); - r0 = (s.oMaxY___299880 - s.nMaxY___299899); + s.tmp_3 = Fx_abs__P47120_mk(s); + r0 = (s.oMaxY___58060 - s.nMaxY___58079); s.tmp_3.arg0 = r0; - s.callLocIdx = 283; s.pc = 12; return s.tmp_3; - case 12: + s.callLocIdx = 406; s.pc = 15; return s.tmp_3; + case 15: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); - s.yDiff___299916 = (r0); - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___299857); - r0 = (s.xDiff___299905 <= 512); + s.yDiff___58096 = (r0); + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___58031); + r0 = (s.xDiff___58085 <= 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } + if (!r0) { step = 5; continue; } r0 = s.arg0.fields["_hitbox"]; s.tmp_1 = r0; - r0 = (s.tmp_1).fields["ox"] = (s.oMinX___299865); + r0 = (s.tmp_1).fields["ox"] = (s.oMinX___58045); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxX___299873 - s.oMinX___299865); + r0 = (s.oMaxX___58053 - s.oMinX___58045); s.tmp_1 = r0; r0 = (s.tmp_0).fields["width"] = (s.tmp_1); - case 3: - case 4: - r0 = (s.yDiff___299916 <= 512); + case 5: + case 6: + r0 = (s.yDiff___58096 <= 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } + if (!r0) { step = 7; continue; } r0 = s.arg0.fields["_hitbox"]; s.tmp_1 = r0; - r0 = (s.tmp_1).fields["oy"] = (s.oMinY___299869); + r0 = (s.tmp_1).fields["oy"] = (s.oMinY___58049); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxY___299880 - s.oMinY___299869); + r0 = (s.oMaxY___58060 - s.oMinY___58049); s.tmp_1 = r0; r0 = (s.tmp_0).fields["height"] = (s.tmp_1); - case 5: - case 6: - case 7: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -Sprite_setHitbox__P291483.info = {"start":7247,"length":1296,"line":264,"column":4,"endLine":303,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} - -function Sprite_setHitbox__P291483_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_setHitbox__P291483, depth: s.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___299857: undefined, - oMinX___299865: undefined, - oMinY___299869: undefined, - oMaxX___299873: undefined, - oMaxY___299880: undefined, - nMinX___299887: undefined, - nMinY___299890: undefined, - nMaxX___299893: undefined, - nMaxY___299899: undefined, - xDiff___299905: undefined, - yDiff___299916: undefined, - arg0: undefined, -} } - - - - - -function game_calculateHitBox__P291389(s) { -let r0 = s.r0, 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___299965 = undefined; - s.minX___299968 = undefined; - s.minY___299971 = undefined; - s.maxX___299974 = undefined; - s.maxY___299975 = undefined; - s.c___299976 = undefined; - s.r___299982 = undefined; - s.width___300013 = undefined; - s.height___300019 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0.fields["_image"]; - s.i___299965 = (r0); - r0 = pxsim_ImageMethods.width(s.i___299965); - s.minX___299968 = (r0); - r0 = pxsim_ImageMethods.height(s.i___299965); - s.minY___299971 = (r0); - s.maxX___299974 = (0); - s.maxY___299975 = (0); - s.c___299976 = (0); - case 1: - s.tmp_1 = r0 = s.c___299976; - r0 = pxsim_ImageMethods.width(s.i___299965); - 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___299982 = (0); - case 2: - s.tmp_1 = r0 = s.r___299982; - r0 = pxsim_ImageMethods.height(s.i___299965); - 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___299965, s.c___299976, s.r___299982); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.tmp_4 = Math_min__P289535_mk(s); - s.tmp_4.arg0 = s.minX___299968; - s.tmp_4.arg1 = s.c___299976; - s.callLocIdx = 227; s.pc = 7; return s.tmp_4; case 7: - r0 = s.retval; - s.minX___299968 = (r0); - s.tmp_0 = Math_min__P289535_mk(s); - s.tmp_0.arg0 = s.minY___299971; - s.tmp_0.arg1 = s.r___299982; - s.callLocIdx = 228; s.pc = 8; return s.tmp_0; case 8: - r0 = s.retval; - s.minY___299971 = (r0); - s.tmp_0 = Math_max__P289534_mk(s); - s.tmp_0.arg0 = s.maxX___299974; - s.tmp_0.arg1 = s.c___299976; - s.callLocIdx = 229; s.pc = 9; return s.tmp_0; case 9: - r0 = s.retval; - s.maxX___299974 = (r0); - s.tmp_0 = Math_max__P289534_mk(s); - s.tmp_0.arg0 = s.maxY___299975; - s.tmp_0.arg1 = s.r___299982; - s.callLocIdx = 230; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.maxY___299975 = (r0); - case 3: - case 4: - r0 = (s.r___299982 + 1); - s.r___299982 = (r0); - { step = 2; continue; } - case 5: - r0 = (s.c___299976 + 1); - s.c___299976 = (r0); - { step = 1; continue; } - case 6: - r0 = (s.maxX___299974 - s.minX___299968); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.width___300013 = (r0); - r0 = (s.maxY___299975 - s.minY___299971); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.height___300019 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C291378_VT); - s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P291384_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___300013; - s.tmp_1.arg3 = s.height___300019; - s.tmp_1.arg4 = s.minX___299968; - s.tmp_1.arg5 = s.minY___299971; - s.callLocIdx = 231; s.pc = 11; return s.tmp_1; - case 11: - r0 = s.retval; - r0 = s.tmp_0; + r0 = undefined; return leave(s, r0) default: oops() } } } -game_calculateHitBox__P291389.info = {"start":894,"length":684,"line":40,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} +Sprite_setHitbox__P49136.info = {"start":9614,"length":1324,"line":347,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} -function game_calculateHitBox__P291389_mk(s) { +function Sprite_setHitbox__P49136_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P291389, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P49136, depth: s.depth + 1, pc: 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___299965: undefined, - minX___299968: undefined, - minY___299971: undefined, - maxX___299974: undefined, - maxY___299975: undefined, - c___299976: undefined, - r___299982: undefined, - width___300013: undefined, - height___300019: undefined, + newHitBox___58031: undefined, + oMinX___58045: undefined, + oMinY___58049: undefined, + oMaxX___58053: undefined, + oMaxY___58060: undefined, + nMinX___58067: undefined, + nMinY___58070: undefined, + nMaxX___58073: undefined, + nMaxY___58079: undefined, + xDiff___58085: undefined, + yDiff___58096: undefined, arg0: undefined, } } @@ -5851,7 +5640,225 @@ function game_calculateHitBox__P291389_mk(s) { -function game_Hitbox_constructor__P291384(s) { +function game_calculateHitBox__P48968(s) { +let r0 = s.r0, 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___58172 = undefined; + s.minX___58175 = undefined; + s.minY___58179 = undefined; + s.maxX___58183 = undefined; + s.maxY___58185 = undefined; + s.c___58187 = undefined; + s.fxc___58188 = undefined; + s.r___58195 = undefined; + s.fxr___58196 = undefined; + s.width___58260 = undefined; + s.height___58268 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["_hitbox"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_1 = game_Hitbox_isValid__P48965_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 259; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = s.arg0.fields["_hitbox"]; + { step = 11; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_image"]; + s.i___58172 = (r0); + r0 = pxsim_ImageMethods.width(s.i___58172); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.minX___58175 = (r0); + r0 = pxsim_ImageMethods.height(s.i___58172); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.minY___58179 = (r0); + s.maxX___58183 = (0); + s.maxY___58185 = (0); + s.c___58187 = (0); + s.fxc___58188 = (0); + case 5: + s.tmp_1 = r0 = s.c___58187; + r0 = pxsim_ImageMethods.width(s.i___58172); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.r___58195 = (0); + s.fxr___58196 = (0); + case 6: + s.tmp_1 = r0 = s.r___58195; + r0 = pxsim_ImageMethods.height(s.i___58172); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = pxsim_ImageMethods.getPixel(s.i___58172, s.c___58187, s.r___58195); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 7; continue; } + s.tmp_4 = Fx_min__P47121_mk(s); + s.tmp_4.arg0 = s.minX___58175; + s.tmp_4.arg1 = s.fxc___58188; + s.callLocIdx = 263; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + s.minX___58175 = (r0); + s.tmp_0 = Fx_min__P47121_mk(s); + s.tmp_0.arg0 = s.minY___58179; + s.tmp_0.arg1 = s.fxr___58196; + s.callLocIdx = 264; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.minY___58179 = (r0); + s.tmp_0 = Fx_max__P47122_mk(s); + s.tmp_0.arg0 = s.maxX___58183; + s.tmp_0.arg1 = s.fxc___58188; + s.callLocIdx = 265; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + s.maxX___58183 = (r0); + s.tmp_0 = Fx_max__P47122_mk(s); + s.tmp_0.arg0 = s.maxY___58185; + s.tmp_0.arg1 = s.fxr___58196; + s.callLocIdx = 266; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.maxY___58185 = (r0); + case 7: + case 8: + r0 = (s.r___58195 + 1); + s.r___58195 = (r0); + r0 = (s.fxr___58196 + 256); + s.tmp_0 = r0; + s.fxr___58196 = (r0); + r0 = s.tmp_0; + { step = 6; continue; } + case 9: + r0 = (s.c___58187 + 1); + s.c___58187 = (r0); + r0 = (s.fxc___58188 + 256); + s.tmp_0 = r0; + s.fxc___58188 = (r0); + r0 = s.tmp_0; + { step = 5; continue; } + case 10: + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.minX___58175, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minX___58175 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.minY___58179, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minY___58179 = (r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxX___58183, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxX___58183 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxY___58185, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxY___58185 = (r0); + r0 = (s.maxX___58183 - s.minX___58175); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sx"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.width___58260 = (r0); + r0 = (s.maxY___58185 - s.minY___58179); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sy"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___58268 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C48953_VT); + s.tmp_0 = r0; + s.tmp_1 = game_Hitbox_constructor__P48960_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.width___58260; + s.tmp_1.arg3 = s.height___58268; + r0 = (s.minX___58175 & -256); + s.tmp_1.arg4 = r0; + r0 = (s.minY___58179 & -256); + s.tmp_1.arg5 = r0; + s.callLocIdx = 279; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + r0 = s.tmp_0; + case 11: + return leave(s, r0) + default: oops() +} } } +game_calculateHitBox__P48968.info = {"start":1840,"length":1086,"line":62,"column":4,"endLine":91,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} + +function game_calculateHitBox__P48968_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_calculateHitBox__P48968, depth: s.depth + 1, + pc: 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___58172: undefined, + minX___58175: undefined, + minY___58179: undefined, + maxX___58183: undefined, + maxY___58185: undefined, + c___58187: undefined, + fxc___58188: undefined, + r___58195: undefined, + fxr___58196: undefined, + width___58260: undefined, + height___58268: undefined, + arg0: undefined, +} } + + + + + +function game_Hitbox_constructor__P48960(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5871,42 +5878,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C291378_VT)) failedCast(r0); - r0 = (s.arg0).fields["parent"] = (s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg2 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["width"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg3 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["height"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg4 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ox"] = (s.tmp_1); + if (!checkSubtype(r0, game_Hitbox__C48953_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = (s.arg5 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.tmp_2 = Sprite_calcDimensionalHash__P49134_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 219; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["oy"] = (s.tmp_1); + r0 = (s.tmp_0).fields["hash"] = (s.tmp_1); + r0 = (s.arg0).fields["parent"] = (s.arg1); + r0 = (s.arg0).fields["width"] = (s.arg2); + r0 = (s.arg0).fields["height"] = (s.arg3); + r0 = (s.arg0).fields["ox"] = (s.arg4); + r0 = (s.arg0).fields["oy"] = (s.arg5); r0 = undefined; return leave(s, r0) default: oops() } } } -game_Hitbox_constructor__P291384.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__P48960.info = {"start":170,"length":288,"line":9,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"inline","argumentNames":["this","parent","width","height","ox","oy"]} -function game_Hitbox_constructor__P291384_mk(s) { +function game_Hitbox_constructor__P48960_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P291384, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P48960, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5923,7 +5918,7 @@ function game_Hitbox_constructor__P291384_mk(s) { -function Fx_abs__P289569(s) { +function Sprite_calcDimensionalHash__P49134(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5937,38 +5932,180 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_height"]; + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_1, s.tmp_2); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 8); + s.tmp_0 = r0; + r0 = s.arg0.fields["_image"]; + s.tmp_6 = r0; + r0 = pxsim_ImageMethods.revision(s.tmp_6); + s.tmp_5 = r0; + r0 = (s.tmp_5 * 256); + s.tmp_7 = r0; + r0 = (s.tmp_7 | 0); + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_0, s.tmp_4); + s.tmp_8 = r0; + r0 = (s.tmp_8 >> 8); + return leave(s, r0) + default: oops() +} } } +Sprite_calcDimensionalHash__P49134.info = {"start":9410,"length":116,"line":338,"column":4,"endLine":340,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"calcDimensionalHash","argumentNames":["this"]} + +function Sprite_calcDimensionalHash__P49134_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_calcDimensionalHash__P49134, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + arg0: undefined, +} } + + + + + +function Fx_floor__P47123(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = (s.arg0 & -256); + return leave(s, r0) + default: oops() +} } } +Fx_floor__P47123.info = {"start":1919,"length":103,"line":62,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"floor","argumentNames":["v"]} + +function Fx_floor__P47123_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_floor__P47123, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function Fx_max__P47122(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 > s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (0 - s.arg0); + r0 = s.arg0; { step = 3; continue; } { step = 2; continue; } case 1: + r0 = s.arg1; + { step = 3; continue; } + case 2: + r0 = undefined; + case 3: + return leave(s, r0) + default: oops() +} } } +Fx_max__P47122.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__P47122_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_max__P47122, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_min__P47121(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = (s.arg0 < s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } r0 = s.arg0; { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = s.arg1; + { step = 3; continue; } case 2: r0 = undefined; case 3: return leave(s, r0) default: oops() } } } -Fx_abs__P289569.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} +Fx_min__P47121.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_abs__P289569_mk(s) { +function Fx_min__P47121_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P289569, depth: s.depth + 1, + parent: s, fn: Fx_min__P47121, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function Fx_sub__P289563(s) { +function Fx_mul__P47115(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5983,17 +6120,20 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 - s.arg1); + r0 = pxsim.Math_.imul(s.arg0, s.arg1); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -Fx_sub__P289563.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_mul__P47115.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_sub__P289563_mk(s) { +function Fx_mul__P47115_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P289563, depth: s.depth + 1, + parent: s, fn: Fx_mul__P47115, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -6002,7 +6142,98 @@ function Fx_sub__P289563_mk(s) { -function Fx_add__P289561(s) { +function game_Hitbox_isValid__P48965(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C48953_VT)) failedCast(r0); + r0 = s.arg0.fields["hash"]; + s.tmp_0 = r0; + s.tmp_2 = Sprite_calcDimensionalHash__P49134_mk(s); + r0 = s.arg0.fields["parent"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 230; s.pc = 1; return s.tmp_2; + case 1: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 === s.tmp_1); + return leave(s, r0) + default: oops() +} } } +game_Hitbox_isValid__P48965.info = {"start":952,"length":89,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"isValid","argumentNames":["this"]} + +function game_Hitbox_isValid__P48965_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Hitbox_isValid__P48965, 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 Fx_abs__P47120(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (0 - s.arg0); + { step = 3; continue; } + { step = 2; continue; } + case 1: + r0 = s.arg0; + { step = 3; continue; } + case 2: + r0 = undefined; + case 3: + return leave(s, r0) + default: oops() +} } } +Fx_abs__P47120.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__P47120_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_abs__P47120, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Fx_sub__P47114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6017,16 +6248,16 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 + s.arg1); + r0 = (s.arg0 - s.arg1); return leave(s, r0) default: oops() } } } -Fx_add__P289561.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_sub__P47114.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_add__P289561_mk(s) { +function Fx_sub__P47114_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P289561, depth: s.depth + 1, + parent: s, fn: Fx_sub__P47114, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -6036,7 +6267,83 @@ function Fx_add__P289561_mk(s) { -function Sprite_vy__P291457(s) { +function Sprite_sy__P49114(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_sy__P49114.info = {"start":5719,"length":61,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sy","argumentNames":["this"]} +Sprite_sy__P49114.isGetter = true; + +function Sprite_sy__P49114_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_sy__P49114, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_sx__P49112(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_sx__P49112.info = {"start":5287,"length":61,"line":196,"column":4,"endLine":198,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"sx","argumentNames":["this"]} +Sprite_sx__P49112.isGetter = true; + +function Sprite_sx__P49112_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_sx__P49112, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_vy__P49102(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6051,20 +6358,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["_vy"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_vy__P291457.info = {"start":2826,"length":60,"line":109,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} -Sprite_vy__P291457.isGetter = true; +Sprite_vy__P49102.info = {"start":3595,"length":60,"line":143,"column":4,"endLine":145,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"vy","argumentNames":["this"]} +Sprite_vy__P49102.isGetter = true; -function Sprite_vy__P291457_mk(s) { +function Sprite_vy__P49102_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P291457, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P49102, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -6074,7 +6381,7 @@ function Sprite_vy__P291457_mk(s) { -function sprites_allOfKind__P291395(s) { +function sprites_allOfKind__P49021(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6084,17 +6391,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___300058 = undefined; + s.spritesByKind___58339 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 238; s.pc = 6; return s.tmp_0; + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 348; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; r0 = r0.fields["spritesByKind"]; - s.spritesByKind___300058 = (r0); + s.spritesByKind___58339 = (r0); r0 = (s.arg0 >= 0); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -6106,7 +6413,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___300058, s.arg0); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___58339, s.arg0); s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -6120,10 +6427,10 @@ switch (step) { { step = 5; continue; } { step = 4; continue; } case 3: - s.tmp_6 = sprites_SpriteSet_sprites__P291543_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___300058, s.arg0); + s.tmp_6 = sprites_SpriteSet_sprites__P49201_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___58339, s.arg0); s.tmp_6.arg0 = r0; - s.callLocIdx = 239; s.pc = 7; return s.tmp_6; + s.callLocIdx = 349; s.pc = 7; return s.tmp_6; case 7: r0 = s.retval; { step = 5; continue; } @@ -6133,12 +6440,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_allOfKind__P291395.info = {"start":1936,"length":234,"line":68,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"allOfKind","argumentNames":["kind"]} +sprites_allOfKind__P49021.info = {"start":1936,"length":234,"line":68,"column":4,"endLine":72,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"allOfKind","argumentNames":["kind"]} -function sprites_allOfKind__P291395_mk(s) { +function sprites_allOfKind__P49021_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_allOfKind__P291395, depth: s.depth + 1, + parent: s, fn: sprites_allOfKind__P49021, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6147,7 +6454,7 @@ function sprites_allOfKind__P291395_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - spritesByKind___300058: undefined, + spritesByKind___58339: undefined, arg0: undefined, } } @@ -6155,7 +6462,7 @@ function sprites_allOfKind__P291395_mk(s) { -function sprites_SpriteSet_sprites__P291543(s) { +function sprites_SpriteSet_sprites__P49201(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6170,23 +6477,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C291539_VT)) failedCast(r0); - s.tmp_0 = helpers_arrayFilter__P289515_mk(s); + if (!checkSubtype(r0, sprites_SpriteSet__C49197_VT)) failedCast(r0); + s.tmp_0 = helpers_arrayFilter__P47065_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P300079; - s.callLocIdx = 516; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = sprites_SpriteSet_sprites_inline__P58360; + s.callLocIdx = 613; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_sprites__P291543.info = {"start":784,"length":104,"line":33,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"sprites","argumentNames":["this"]} +sprites_SpriteSet_sprites__P49201.info = {"start":784,"length":104,"line":33,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"sprites","argumentNames":["this"]} -function sprites_SpriteSet_sprites__P291543_mk(s) { +function sprites_SpriteSet_sprites__P49201_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_sprites__P291543, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_sprites__P49201, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -6196,7 +6503,7 @@ function sprites_SpriteSet_sprites__P291543_mk(s) { -function inline__P300079(s) { +function sprites_SpriteSet_sprites_inline__P58360(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6220,12 +6527,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P300079.info = {"start":836,"length":40,"line":34,"column":40,"endLine":34,"endColumn":80,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["s"]} +sprites_SpriteSet_sprites_inline__P58360.info = {"start":836,"length":40,"line":34,"column":40,"endLine":34,"endColumn":80,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["s"]} -function inline__P300079_mk(s) { +function sprites_SpriteSet_sprites_inline__P58360_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300079, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_sprites_inline__P58360, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6237,7 +6544,7 @@ function inline__P300079_mk(s) { -function game_onUpdate__P291966(s) { +function game_onUpdate__P49659(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6251,11 +6558,6 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P293421_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 947; 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); @@ -6265,28 +6567,28 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = control_EventContext_registerFrameHandler__P289801_mk(s); - s.tmp_3 = game_eventContext__P291958_mk(s); - s.callLocIdx = 948; s.pc = 6; return s.tmp_3; - case 6: + s.tmp_2 = control_EventContext_registerFrameHandler__P47358_mk(s); + s.tmp_3 = game_eventContext__P49643_mk(s); + s.callLocIdx = 1058; s.pc = 5; return s.tmp_3; + case 5: r0 = s.retval; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 20; s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 949; s.pc = 5; return s.tmp_2; - case 5: + s.callLocIdx = 1059; s.pc = 4; return s.tmp_2; + case 4: r0 = s.retval; case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdate__P291966.info = {"start":7427,"length":169,"line":242,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdate","argumentNames":["a"]} +game_onUpdate__P49659.info = {"start":405,"length":153,"line":15,"column":4,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdate","argumentNames":["a"]} -function game_onUpdate__P291966_mk(s) { +function game_onUpdate__P49659_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P291966, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P49659, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6299,7 +6601,7 @@ function game_onUpdate__P291966_mk(s) { -function game_init__P293421(s) { +function control_EventContext_registerFrameHandler__P47358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6309,92 +6611,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.fn___58642 = undefined; + s.i___58651 = 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(globals._scene___293413); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C47350_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_3 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P50982_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 55; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; case 1: - r0 = s.arg0; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C291842_VT); - s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P291863_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P289807_mk(s); - s.callLocIdx = 932; s.pc = 14; return s.tmp_5; - case 14: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___293413; - s.callLocIdx = 933; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - globals._scene___293413 = (s.tmp_3); + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C47347_VT); + s.fn___58642 = (r0); + r0 = (s.fn___58642).fields["order"] = (s.arg1); + r0 = (s.fn___58642).fields["handler"] = (s.arg2); + s.i___58651 = (0); case 3: - case 4: - s.tmp_0 = scene_Scene_init__P291864_mk(s); - s.tmp_0.arg0 = globals._scene___293413; - s.callLocIdx = 934; s.pc = 15; return s.tmp_0; - case 15: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.winEffect___291953); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_1 = r0 = s.i___58651; + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - globals.winEffect___291953 = (globals.confetti___292224); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_6 = r0; + r0 = pxsim_Array__getAt(s.tmp_6, s.i___58651); + r0 = r0.fields["order"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 > s.arg1); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 4; continue; } + r0 = s.arg0.fields["frameCallbacks"]; + s.tmp_7 = r0; + r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___58651, s.fn___58642); + r0 = s.fn___58642; + { step = 7; continue; } + case 4: case 5: + r0 = (s.i___58651 + 1); + s.i___58651 = (r0); + { step = 3; continue; } case 6: - r0 = pxsim_numops_toBoolDecr(globals.loseEffect___291954); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - globals.loseEffect___291954 = (globals.melt___292245); + r0 = pxsim_Array__push(s.tmp_0, s.fn___58642); + r0 = s.fn___58642; case 7: - case 8: - r0 = pxsim_numops_toBoolDecr(globals.winSound___293412); - s.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___293412 = (globals.powerUp___291027); - case 9: - case 10: - r0 = pxsim_numops_toBoolDecr(globals.loseSound___293410); - s.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___293410 = (globals.wawawawaa___291024); - case 11: - case 12: - r0 = undefined; return leave(s, r0) default: oops() } } } -game_init__P293421.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +control_EventContext_registerFrameHandler__P47358.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 game_init__P293421_mk(s) { +function control_EventContext_registerFrameHandler__P47358_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P293421, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P47358, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6402,14 +6696,20 @@ function game_init__P293421_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + fn___58642: undefined, + i___58651: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P300719(s) { +function control_EventContext_registerFrameCallbacks__P50982(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6419,96 +6719,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___300722 = undefined; - s.j___300730 = undefined; - s.x___300735 = undefined; - s.y___300741 = undefined; - s.c___300747 = undefined; + s.worker___58685 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C47350_VT)) failedCast(r0); + r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 5); - s.rounds___300722 = (r0); - s.j___300730 = (0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } case 1: - r0 = (s.j___300730 < s.rounds___300722); + case 2: + r0 = s.arg0.fields["frameWorker"]; + s.worker___58685 = (r0); + r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P58691); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P292013_mk(s); - s.tmp_1.arg0 = s.arg1; - s.tmp_1.arg1 = 0; - r0 = pxsim_ImageMethods.width(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1.arg2 = r0; - s.callLocIdx = 44; s.pc = 3; return s.tmp_1; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___58685); + r0 = pxsim.control.runInParallel(s.tmp_0); case 3: - r0 = s.retval; - s.x___300735 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P292013_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = 0; - r0 = pxsim_ImageMethods.height(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 - 3); - s.tmp_0.arg2 = r0; - s.callLocIdx = 45; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.y___300741 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___300735, s.y___300741); - s.c___300747 = (r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___300735; - r0 = (s.y___300741 + 1); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___300747); - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___300735; - r0 = (s.y___300741 + 2); - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___300747); - r0 = (s.j___300730 + 1); - s.j___300730 = (r0); - { step = 1; continue; } - case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P300719.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +control_EventContext_registerFrameCallbacks__P50982.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function inline__P300719_mk(s) { +function control_EventContext_registerFrameCallbacks__P50982_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300719, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P50982, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - rounds___300722: undefined, - j___300730: undefined, - x___300735: undefined, - y___300741: undefined, - c___300747: undefined, + worker___58685: undefined, arg0: undefined, - arg1: undefined, } } -function inline__P300773(s) { +function control_EventContext_registerFrameCallbacks_inline__P58691(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6518,98 +6777,106 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___300776 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C292168_VT); + s.delay___58721 = undefined; + r0 = s.caps[0].fields["runningCallbacks"]; s.tmp_0 = r0; - s.tmp_2 = if_width_1_mk(s); - s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 32; s.pc = 3; return s.tmp_2; } - } - case 3: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = if_width_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 33; s.pc = 4; return s.tmp_3; } - } - case 4: + r0 = pxsim_pxtcore_mkAction(1, control_EventContext_registerFrameCallbacks_inline__P58697); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); + s.tmp_2 = pauseUntil__P47322_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = undefined; + s.callLocIdx = 49; s.pc = 5; return s.tmp_2; + case 5: r0 = s.retval; - { step = 2; continue; } case 1: - r0 = 16; case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P292169_mk(s); - s.tmp_5.arg0 = s.tmp_0; - s.tmp_5.arg1 = s.tmp_4; - s.tmp_5.arg2 = 16; - s.callLocIdx = 34; s.pc = 5; return s.tmp_5; - case 5: - r0 = s.retval; - s.factory___300776 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P292145_mk(s); - s.tmp_0.arg0 = s.factory___300776; - s.tmp_0.arg1 = 30; - s.callLocIdx = 35; s.pc = 6; return s.tmp_0; + r0 = (s.caps[0]).fields["runningCallbacks"] = (true); + r0 = (s.caps[0]).fields["framesInSample"] = (0); + r0 = (s.caps[0]).fields["timeInSample"] = (0); + r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); + s.tmp_0 = r0 = s.caps[0]; + r0 = pxsim.control.millis(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); + case 3: + r0 = s.caps[0].fields["frameWorker"]; + s.tmp_1 = r0; + r0 = (s.caps[1] == s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_2 = control_EventContext_runCallbacks__P50981_mk(s); + s.tmp_2.arg0 = s.caps[0]; + s.callLocIdx = 50; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C292101_VT); - s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P292106_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___300776; - s.callLocIdx = 36; s.pc = 7; return s.tmp_1; + s.delay___58721 = (r0); + s.tmp_0 = pause__P47368_mk(s); + s.tmp_0.arg0 = s.delay___58721; + s.callLocIdx = 51; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = s.tmp_0; + { step = 3; continue; } + case 4: + r0 = (s.caps[0]).fields["runningCallbacks"] = (false); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P300773.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +control_EventContext_registerFrameCallbacks_inline__P58691.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function inline__P300773_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P58691_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300773, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P58691, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - factory___300776: undefined, - arg0: undefined, - arg1: undefined, + delay___58721: undefined, +} } + + + + + +function control_EventContext_registerFrameCallbacks_inline__P58697(s) { +let r0 = s.r0, 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["runningCallbacks"]; + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) + default: oops() +} } } +control_EventContext_registerFrameCallbacks_inline__P58697.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} + +function control_EventContext_registerFrameCallbacks_inline__P58697_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P58697, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, } } -function particles_ParticleSource_constructor__P292106(s) { +function control_EventContext_runCallbacks__P50981(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6619,130 +6886,264 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___298197 = undefined; - s.removedSource___298206 = undefined; + s.loopStart___58730 = undefined; + s.f___58743 = undefined; + s.unnamed854___U2 = undefined; + s.unnamed855___U3 = undefined; + s.runtime___58748 = undefined; + s.fps___58768 = undefined; + s.delay___58830 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P291279_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1128; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = particles_init__P293771_mk(s); - s.callLocIdx = 1129; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.tmp_0 = particles_particleSources__P293777_mk(s); - s.callLocIdx = 1130; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - s.sources___298197 = (r0); - r0 = pxsim_Array__length(s.sources___298197); + if (!checkSubtype(r0, control_EventContext__C47350_VT)) failedCast(r0); + r0 = pxsim.control.millis(); + s.loopStart___58730 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["prevTimeMillis"]; + s.tmp_2 = r0; + r0 = (s.loopStart___58730 - s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___293748); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P293774_mk(s); - s.tmp_2.arg0 = s.sources___298197; - s.callLocIdx = 1131; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___298197, 0); - s.removedSource___298206 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P292116_mk(s); - s.tmp_0.arg0 = s.removedSource___298206; - s.callLocIdx = 1133; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P292115_mk(s); - s.tmp_0.arg0 = s.removedSource___298206; - s.callLocIdx = 1134; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; + r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___58730); + s.f___58743 = (undefined); + r0 = s.arg0.fields["frameCallbacks"]; + s.unnamed854___U2 = (r0); + s.unnamed855___U3 = (0); case 1: - case 2: - r0 = (s.arg0).fields["pFlags"] = (0); - s.tmp_0 = particles_ParticleSource_setRate__P292118_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1135; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P292110_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.tmp_0.arg2 = 0; - s.callLocIdx = 1136; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P292117_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1137; s.pc = 13; return s.tmp_0; + s.tmp_0 = r0 = s.unnamed855___U3; + r0 = pxsim_Array__length(s.unnamed854___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed854___U2, s.unnamed855___U3); + s.f___58743 = (r0); + s.tmp_2 = if_handler_1_mk(s); + s.tmp_2.arg0 = s.f___58743; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); + s.callLocIdx = 46; s.pc = 13; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["handler"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["handler"], 1); s.callLocIdx = 46; s.pc = 13; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 46; s.pc = 13; return s.tmp_2;; } + else { s.callLocIdx = 46; s.pc = 13; return s.tmp_2; } + } case 13: r0 = s.retval; - r0 = (s.arg0).fields["lifespan"] = (undefined); - r0 = (s.arg0).fields["_dt"] = (0); - r0 = (s.arg0).fields["priority"] = (0); - s.tmp_0 = r0 = s.arg3; + r0 = (s.unnamed855___U3 + 1); + s.unnamed855___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed854___U2 = (undefined); + r0 = pxsim.control.millis(); + s.tmp_0 = r0; + r0 = (s.tmp_0 - s.loopStart___58730); + s.runtime___58748 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timeInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.runtime___58748); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["framesInSample"] = (s.tmp_1); + r0 = s.arg0.fields["timeInSample"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 1000); + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = globals.defaultFactory___292121; + r0 = s.arg0.fields["framesInSample"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 30); case 4: // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 11; continue; } + r0 = s.arg0.fields["framesInSample"]; + s.tmp_4 = r0; + r0 = s.arg0.fields["timeInSample"]; + s.tmp_6 = r0; + r0 = (s.tmp_6 / 1000); + s.tmp_5 = r0; + r0 = (s.tmp_4 / s.tmp_5); + s.fps___58768 = (r0); + r0 = pxsim.Math_.round(s.fps___58768); s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P292120_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1138; s.pc = 14; return s.tmp_2; + if ((s.tmp_1) && (s.tmp_1).vtable) { + setupResume(s, 14); + pxsim_String__stringConv(s.tmp_1); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_1) + ""; } case 14: r0 = s.retval; - r0 = pxsim_Array__push(s.sources___298197, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P292114_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = true; - s.callLocIdx = 1139; s.pc = 15; return s.tmp_0; + s.tmp_0 = r0; + r0 = pxsim_String__concat("fps:", s.tmp_0); + globals.control_EventContext_lastStats___47352 = (r0); + r0 = (s.fps___58768 < 99); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + if ((globals.control_EventContext_lastStats___47352) && (globals.control_EventContext_lastStats___47352).vtable) { + setupResume(s, 15); + pxsim_String__stringConv(globals.control_EventContext_lastStats___47352); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___47352) + ""; } case 15: r0 = s.retval; - r0 = undefined; + s.tmp_1 = r0; + r0 = (s.fps___58768 * 10); + s.tmp_7 = r0; + r0 = pxsim.Math_.round(s.tmp_7); + s.tmp_6 = r0; + r0 = (s.tmp_6 % 10); + s.tmp_5 = r0; + if ((s.tmp_5) && (s.tmp_5).vtable) { + setupResume(s, 16); + pxsim_String__stringConv(s.tmp_5); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_5) + ""; } + case 16: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_String__concat(".", s.tmp_4); + s.tmp_3 = r0; + if ((s.tmp_3) && (s.tmp_3).vtable) { + setupResume(s, 17); + pxsim_String__stringConv(s.tmp_3); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_3) + ""; } + case 17: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); + globals.control_EventContext_lastStats___47352 = (r0); + case 5: + case 6: + s.tmp_2 = control_ramSize__P47301_mk(s); + s.callLocIdx = 47; s.pc = 18; return s.tmp_2; + case 18: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 > 2000000); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 7; continue; } + r0 = s.tmp_0; + { step = 8; continue; } + case 7: + r0 = pxsim.control.profilingEnabled(); + case 8: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 9; continue; } + r0 = pxsim_String_.mkEmpty(); + s.tmp_8 = r0; + r0 = (s.fps___58768 * 100); + s.tmp_11 = r0; + r0 = (s.tmp_11 | 0); + s.tmp_10 = r0; + if ((s.tmp_10) && (s.tmp_10).vtable) { + setupResume(s, 19); + pxsim_String__stringConv(s.tmp_10); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_10) + ""; } + case 19: + r0 = s.retval; + s.tmp_9 = r0; + r0 = pxsim_String__concat(s.tmp_8, s.tmp_9); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_7, "/100 fps - "); + s.tmp_6 = r0; + r0 = s.arg0.fields["framesInSample"]; + s.tmp_13 = r0; + if ((s.tmp_13) && (s.tmp_13).vtable) { + setupResume(s, 20); + pxsim_String__stringConv(s.tmp_13); + checkResumeConsumed(); + return; + } else { s.retval = (s.tmp_13) + ""; } + case 20: + r0 = s.retval; + s.tmp_12 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_12); + s.tmp_5 = r0; + r0 = pxsim_String__concat(s.tmp_5, " frames"); + s.tmp_4 = r0; + r0 = pxsim.control.dmesg(s.tmp_4); + r0 = pxsim.control.gc(); + r0 = pxsim_pxtcore.dumpPerfCounters(); + case 9: + case 10: + r0 = (s.arg0).fields["timeInSample"] = (0); + r0 = (s.arg0).fields["framesInSample"] = (0); + case 11: + case 12: + s.tmp_0 = Math_max__P47085_mk(s); + s.tmp_0.arg0 = 1; + r0 = (20 - s.runtime___58748); + s.tmp_0.arg1 = r0; + s.callLocIdx = 48; s.pc = 21; return s.tmp_0; + case 21: + r0 = s.retval; + s.delay___58830 = (r0); + r0 = s.delay___58830; return leave(s, r0) default: oops() } } } -particles_ParticleSource_constructor__P292106.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"]} +control_EventContext_runCallbacks__P50981.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} -function particles_ParticleSource_constructor__P292106_mk(s) { +function control_EventContext_runCallbacks__P50981_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_constructor__P292106, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P50981, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___298197: undefined, - removedSource___298206: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + loopStart___58730: undefined, + f___58743: undefined, + unnamed854___U2: undefined, + unnamed855___U3: undefined, + runtime___58748: undefined, + fps___58768: undefined, + delay___58830: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function particles_particleSources__P293777(s) { +function control_ramSize__P47301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6752,33 +7153,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___298628 = undefined; - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 1190; s.pc = 1; return s.tmp_0; + r0 = pxsim_pxtcore.getConfig(205, 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - r0 = s.retval; - r0 = r0.fields["particleSources"]; - s.sources___298628 = (r0); - r0 = s.sources___298628; + r0 = 33554432; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; return leave(s, r0) default: oops() } } } -particles_particleSources__P293777.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} +control_ramSize__P47301.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} -function particles_particleSources__P293777_mk(s) { +function control_ramSize__P47301_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_particleSources__P293777, depth: s.depth + 1, + parent: s, fn: control_ramSize__P47301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___298628: undefined, + tmp_1: undefined, } } -function particles_sortSources__P293774(s) { +function control__ramSize__P50947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6788,36 +7193,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = helpers_arraySort__P289510_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = inline__P298498; - s.callLocIdx = 1177; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = 33554432; return leave(s, r0) default: oops() } } } -particles_sortSources__P293774.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} +control__ramSize__P50947.info = {"start":4727,"length":60,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} -function particles_sortSources__P293774_mk(s) { +function control__ramSize__P50947_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P293774, depth: s.depth + 1, + parent: s, fn: control__ramSize__P50947, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, } } -function inline__P298498(s) { +function pauseUntil__P47322(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6832,35 +7225,56 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["priority"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = s.arg1.fields["priority"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.arg0.fields["id"]; - s.tmp_3 = r0; - r0 = s.arg1.fields["id"]; - s.tmp_4 = r0; - r0 = (s.tmp_3 - s.tmp_4); + s.tmp_2 = lambda_1_mk(s); + s.tmp_2.argL = s.arg0; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 33; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; case 2: // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 7; continue; } + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_5 = r0; - r0 = s.tmp_5; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 5; continue; } + s.arg1 = (0); + case 5: + case 6: + s.tmp_0 = control___queuePollEvent__P47321_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = undefined; + s.callLocIdx = 34; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + case 7: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P298498.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +pauseUntil__P47322.info = {"start":2224,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} -function inline__P298498_mk(s) { +function pauseUntil__P47322_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P298498, depth: s.depth + 1, + parent: s, fn: pauseUntil__P47322, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6876,7 +7290,7 @@ function inline__P298498_mk(s) { -function helpers_arraySort__P289510(s) { +function control___queuePollEvent__P47321(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6886,60 +7300,97 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ev___58852 = 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.arg1); + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C50955_VT); + s.tmp_0 = r0; + s.tmp_1 = control_PollEvent_constructor__P50956_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 1023; + r0 = pxsim.control.allocateNotifyEvent(); + s.tmp_1.arg2 = r0; + r0 = pxsim.control.millis(); + s.tmp_1.arg3 = r0; + s.tmp_1.arg4 = s.arg0; + s.tmp_1.arg5 = s.arg1; + r0 = pxsim_numops_toBoolDecr(s.arg2); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1.arg6 = r0; + s.callLocIdx = 31; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.ev___58852 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___50958); 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; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_2, s.ev___58852); + globals._pollEventQueue___50958 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P50959); { step = 2; continue; } case 1: - r0 = pxsim_Array__length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_2 > 1); + r0 = pxsim_Array__push(globals._pollEventQueue___50958, s.ev___58852); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 3; continue; } - s.arg1 = (inline__P298521); + s.tmp_0 = control_onEvent__P47346_mk(s); + r0 = s.ev___58852.fields["eid"]; + s.tmp_0.arg0 = r0; + r0 = s.ev___58852.fields["vid"]; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = 16; + s.callLocIdx = 32; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + { step = 4; continue; } case 3: - case 4: - s.tmp_0 = helpers_sortHelper__P292999_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 2; s.pc = 5; return s.tmp_0; - case 5: + r0 = s.ev___58852.fields["eid"]; + s.tmp_0 = r0; + r0 = s.ev___58852.fields["vid"]; + s.tmp_1 = r0; + setupResume(s, 7); + pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); + checkResumeConsumed(); + return; + case 7: r0 = s.retval; + case 4: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySort__P289510.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"]} +control___queuePollEvent__P47321.info = {"start":1262,"length":758,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} -function helpers_arraySort__P289510_mk(s) { +function control___queuePollEvent__P47321_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort__P289510, depth: s.depth + 1, + parent: s, fn: control___queuePollEvent__P47321, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, + ev___58852: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function inline__P298521(s) { +function control_pollEvents__P50959(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6949,120 +7400,117 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___298524 = undefined; - s.bIsUndef___298528 = undefined; - s.aIsNull___298539 = undefined; - s.bIsNull___298543 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.now___58895 = undefined; + s.i___58898 = undefined; + s.ev___58904 = undefined; + case 1: + r0 = pxsim_Array__length(globals._pollEventQueue___50958); + 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___58895 = (r0); + s.i___58898 = (0); + case 2: + s.tmp_1 = r0 = s.i___58898; + r0 = pxsim_Array__length(globals._pollEventQueue___50958); + 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___50958, s.i___58898); + s.ev___58904 = (r0); + s.tmp_1 = if_condition_1_mk(s); + s.tmp_1.arg0 = s.ev___58904; + 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; } } - r0 = (s.arg0 === undefined); - s.aIsUndef___298524 = (r0); - r0 = (s.arg1 === undefined); - s.bIsUndef___298528 = (r0); - s.tmp_0 = r0 = s.aIsUndef___298524; + case 13: + r0 = s.retval; + s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 3; continue; } r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.bIsUndef___298528; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = 0; - { step = 17; continue; } - { step = 8; continue; } + { step = 6; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___298524); - if (!r0) { step = 4; continue; } - r0 = 1; - { step = 17; continue; } - { step = 7; continue; } + r0 = s.ev___58904.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 = pxsim_numops_toBoolDecr(s.bIsUndef___298528); - if (!r0) { step = 5; continue; } - r0 = -1; - { step = 17; continue; } + r0 = s.ev___58904.fields["start"]; + s.tmp_5 = r0; + r0 = (s.now___58895 - s.tmp_5); + s.tmp_4 = r0; + r0 = s.ev___58904.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___58904.fields["eid"]; + s.tmp_9 = r0; + r0 = s.ev___58904.fields["vid"]; + s.tmp_10 = r0; + r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); + r0 = s.ev___58904.fields["once"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = helpers_arraySplice__P47055_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___50958; + s.tmp_1.arg1 = s.i___58898; + s.tmp_1.arg2 = 1; + s.callLocIdx = 29; s.pc = 14; return s.tmp_1; + case 14: + r0 = s.retval; + r0 = (s.i___58898 - 1); + s.i___58898 = (r0); case 7: case 8: - r0 = (s.arg0 === null); - s.aIsNull___298539 = (r0); - r0 = (s.arg1 === null); - s.bIsNull___298543 = (r0); - s.tmp_0 = r0 = s.aIsNull___298539; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } case 9: - r0 = s.bIsNull___298543; case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 11; continue; } - r0 = 0; - { step = 17; continue; } - { step = 16; continue; } + r0 = (s.i___58898 + 1); + s.i___58898 = (r0); + { step = 2; continue; } case 11: - r0 = pxsim_numops_toBoolDecr(s.aIsNull___298539); - if (!r0) { step = 12; continue; } - r0 = 1; - { step = 17; continue; } - { step = 15; continue; } - case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___298543); - if (!r0) { step = 13; continue; } - r0 = -1; - { step = 17; continue; } - case 13: - case 14: + s.tmp_0 = pause__P47368_mk(s); + s.tmp_0.arg0 = 50; + s.callLocIdx = 30; s.pc = 15; return s.tmp_0; case 15: - case 16: - if ((s.arg0) && (s.arg0).vtable) { - setupResume(s, 18); - pxsim_String__stringConv(s.arg0); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg0) + ""; } - case 18: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_4 = r0; - r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.tmp_2 = r0; - if ((s.arg1) && (s.arg1).vtable) { - setupResume(s, 19); - pxsim_String__stringConv(s.arg1); - checkResumeConsumed(); - return; - } else { s.retval = (s.arg1) + ""; } - case 19: r0 = s.retval; - s.tmp_6 = r0; - r0 = pxsim_String_.mkEmpty(); - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); - s.tmp_5 = r0; - r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); - case 17: + { step = 1; continue; } + case 12: + globals._pollEventQueue___50958 = (undefined); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P298521.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"]} +control_pollEvents__P50959.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} -function inline__P298521_mk(s) { +function control_pollEvents__P50959_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P298521, depth: s.depth + 1, + parent: s, fn: control_pollEvents__P50959, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7072,19 +7520,19 @@ function inline__P298521_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - aIsUndef___298524: undefined, - bIsUndef___298528: undefined, - aIsNull___298539: undefined, - bIsNull___298543: undefined, - arg0: undefined, - arg1: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + now___58895: undefined, + i___58898: undefined, + ev___58904: undefined, } } -function helpers_sortHelper__P292999(s) { +function control_PollEvent_constructor__P50956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7094,114 +7542,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___298578 = undefined; - s.i___298581 = undefined; - s.j___298587 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } - r0 = pxsim_Array__length(s.arg0); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - r0 = s.arg0; - { step = 11; continue; } - case 3: - case 4: - r0 = pxsim_Array__length(s.arg0); - s.len___298578 = (r0); - s.i___298581 = (0); - case 5: - s.tmp_1 = r0 = s.i___298581; - r0 = (s.len___298578 - 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___298581 + 1); - s.j___298587 = (r0); - case 6: - r0 = (s.j___298587 < s.len___298578); - 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___298581); - s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___298587); - s.tmp_3.arg1 = r0; - setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 0; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P292998_mk(s); - s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___298581; - s.tmp_4.arg2 = s.j___298587; - s.callLocIdx = 1; s.pc = 13; return s.tmp_4; - case 13: - r0 = s.retval; - case 7: - case 8: - r0 = (s.j___298587 + 1); - s.j___298587 = (r0); - { step = 6; continue; } - case 9: - r0 = (s.i___298581 + 1); - s.i___298581 = (r0); - { step = 5; continue; } - case 10: r0 = s.arg0; - case 11: + if (!checkSubtype(r0, control_PollEvent__C50955_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() } } } -helpers_sortHelper__P292999.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"]} +control_PollEvent_constructor__P50956.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 helpers_sortHelper__P292999_mk(s) { +function control_PollEvent_constructor__P50956_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P292999, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P50956, depth: s.depth + 1, pc: 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___298578: undefined, - i___298581: undefined, - j___298587: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function helpers_swap__P292998(s) { +function control_onEvent__P47346(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7211,46 +7594,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___298616 = undefined; + s.ctx___57327 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_Array__getAt(s.arg0, s.arg1); - s.temp___298616 = (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___298616); + s.tmp_0 = control_eventContext__P47363_mk(s); + s.callLocIdx = 43; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.ctx___57327 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___57327); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); + { step = 2; continue; } + case 1: + s.tmp_0 = control_EventContext_registerHandler__P47360_mk(s); + s.tmp_0.arg0 = s.ctx___57327; + 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 = 44; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_swap__P292998.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"]} +control_onEvent__P47346.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 helpers_swap__P292998_mk(s) { +function control_onEvent__P47346_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_swap__P292998, depth: s.depth + 1, + parent: s, fn: control_onEvent__P47346, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - temp___298616: undefined, + ctx___57327: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function particles_init__P293771(s) { +function control_eventContext__P47363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7260,59 +7660,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___298633 = undefined; - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 1167; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - s.scene___298633 = (r0); - r0 = s.scene___298633.fields["particleSources"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___50984); if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - s.tmp_1 = r0 = s.scene___298633; - r0 = pxsim_Array__mk(); + s.tmp_0 = r0 = globals.eventContexts___50984; + r0 = pxsim_Array__length(globals.eventContexts___50984); s.tmp_2 = r0; - r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); - r0 = pxsim.control.millis(); - globals.lastUpdate___293766 = (r0); - s.tmp_0 = game_onUpdate__P291966_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P293772; - s.callLocIdx = 1168; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P291967_mk(s); - s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P293773; - s.callLocIdx = 1169; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - case 3: + 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() } } } -particles_init__P293771.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} +control_eventContext__P47363.info = {"start":6907,"length":136,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} -function particles_init__P293771_mk(s) { +function control_eventContext__P47363_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_init__P293771, depth: s.depth + 1, + parent: s, fn: control_eventContext__P47363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - scene___298633: undefined, + tmp_3: undefined, } } -function particles_pruneParticles__P293773(s) { +function control_EventContext_registerHandler__P47360(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7322,51 +7705,113 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___298648 = undefined; - s.tmp_0 = particles_particleSources__P293777_mk(s); - s.callLocIdx = 1173; s.pc = 3; return s.tmp_0; + s.h___57350 = undefined; + s.unnamed860___U1 = undefined; + s.unnamed861___U2 = undefined; + s.hn___57373 = 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__C47350_VT)) failedCast(r0); + s.h___57350 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed860___U1 = (r0); + s.unnamed861___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed861___U2; + r0 = pxsim_Array__length(s.unnamed860___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed860___U1, s.unnamed861___U2); + s.h___57350 = (r0); + r0 = s.h___57350.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___57350.fields["value"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 == s.arg2); case 3: - r0 = s.retval; - s.sources___298648 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___298648); - if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P289514_mk(s); - s.tmp_1 = helpers_arraySlice__P289520_mk(s); - s.tmp_1.arg0 = s.sources___298648; - s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___298648); - s.tmp_1.arg2 = r0; - s.callLocIdx = 1174; s.pc = 5; return s.tmp_1; + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 4; continue; } + r0 = (s.h___57350).fields["flags"] = (s.arg4); + r0 = (s.h___57350).fields["handler"] = (s.arg3); + { step = 7; continue; } + case 4: case 5: + r0 = (s.unnamed861___U2 + 1); + s.unnamed861___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed860___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C50976_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventHandler_constructor__P50979_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 = 56; s.pc = 8; return s.tmp_1; + case 8: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P298657; - s.callLocIdx = 1176; s.pc = 4; return s.tmp_0; - case 4: + s.hn___57373 = (s.tmp_0); + r0 = s.arg0.fields["handlers"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.hn___57373); + s.tmp_0 = control_EventHandler_register__P50977_mk(s); + s.tmp_0.arg0 = s.hn___57373; + s.callLocIdx = 57; s.pc = 9; return s.tmp_0; + case 9: r0 = s.retval; - case 1: - case 2: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_pruneParticles__P293773.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +control_EventContext_registerHandler__P47360.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 particles_pruneParticles__P293773_mk(s) { +function control_EventContext_registerHandler__P47360_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P293773, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P47360, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sources___298648: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + h___57350: undefined, + unnamed860___U1: undefined, + unnamed861___U2: undefined, + hn___57373: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function inline__P298657(s) { +function control_EventHandler_constructor__P50979(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7378,33 +7823,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource__prune__P292109_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1175; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, control_EventHandler__C50976_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() } } } -inline__P298657.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +control_EventHandler_constructor__P50979.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 inline__P298657_mk(s) { +function control_EventHandler_constructor__P50979_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P298657, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P50979, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function particles_ParticleSource__prune__P292109(s) { +function control_EventHandler_register__P50977(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7414,147 +7867,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___298445 = undefined; - s.sources___298453 = undefined; - s.current___298467 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - case 1: - r0 = s.arg0.fields["head"]; + if (!checkSubtype(r0, control_EventHandler__C50976_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P57394); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } - case 2: - r0 = s.arg0.fields["head"]; - r0 = r0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - case 3: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["head"]; - r0 = r0.fields["next"]; - s.tmp_3 = r0; - r0 = (s.arg0).fields["head"] = (s.tmp_3); - { step = 1; continue; } - case 4: - r0 = s.arg0.fields["pFlags"]; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + r0 = s.arg0.fields["src"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["head"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = s.arg0.fields["value"]; s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 6: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 13; continue; } - s.tmp_5 = game_currentScene__P291955_mk(s); - s.callLocIdx = 1148; s.pc = 21; return s.tmp_5; - case 21: - r0 = s.retval; - s.scene___298445 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___298445); - if (!r0) { step = 7; continue; } - r0 = s.scene___298445.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); - case 7: - case 8: - s.tmp_0 = particles_particleSources__P293777_mk(s); - s.callLocIdx = 1149; s.pc = 22; return s.tmp_0; - case 22: - r0 = s.retval; - s.sources___298453 = (r0); - s.tmp_0 = r0 = s.sources___298453; - 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___298453); - 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___298453, s.arg0); - case 11: - case 12: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 == undefined); - case 13: - case 14: - r0 = s.arg0.fields["head"]; - s.current___298467 = (r0); - case 15: - s.tmp_0 = r0 = s.current___298467; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 16; continue; } - r0 = s.tmp_0; - { step = 17; continue; } - case 16: - r0 = s.current___298467.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___298467.fields["next"]; - r0 = r0.fields["lifespan"]; + r0 = s.arg0.fields["flags"]; 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___298467.fields["next"]; - r0 = r0.fields["next"]; - s.tmp_4 = r0; - r0 = (s.current___298467).fields["next"] = (s.tmp_4); - { step = 19; continue; } - case 18: - r0 = s.current___298467.fields["next"]; - s.current___298467 = (r0); - case 19: - { step = 15; continue; } - case 20: + r0 = pxsim.control.internalOnEvent(s.tmp_1, s.tmp_2, s.tmp_0, s.tmp_3); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource__prune__P292109.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +control_EventHandler_register__P50977.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function particles_ParticleSource__prune__P292109_mk(s) { +function control_EventHandler_register__P50977_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P292109, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P50977, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - scene___298445: undefined, - sources___298453: undefined, - current___298467: undefined, arg0: undefined, } } @@ -7562,7 +7905,7 @@ function particles_ParticleSource__prune__P292109_mk(s) { -function helpers_arraySlice__P289520(s) { +function control_EventHandler_register_inline__P57394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7572,114 +7915,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___297915 = undefined; - s.len___297917 = undefined; - s.i___297951 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.res___297915 = (r0); - r0 = pxsim_Array__length(s.arg0); - s.len___297917 = (r0); - r0 = (s.arg1 === undefined); + r0 = s.caps[0].fields["handler"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.arg1 = (0); - { step = 4; continue; } - case 1: - r0 = (s.arg1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = Math_max__P289534_mk(s); - r0 = (s.len___297917 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 9; s.pc = 16; return s.tmp_1; - case 16: + 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 = 45; 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 = 45; s.pc = 3; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 45; s.pc = 3; return s.tmp_1;; } + else { s.callLocIdx = 45; s.pc = 3; return s.tmp_1; } + } + case 3: r0 = s.retval; - s.arg1 = (r0); + case 1: case 2: - case 3: - case 4: - r0 = (s.arg1 > s.len___297917); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.res___297915; - { step = 15; continue; } - case 5: - case 6: - r0 = (s.arg2 === undefined); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - s.arg2 = (s.len___297917); - { 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___297917 + s.arg2); - s.arg2 = (r0); - case 8: - case 9: - case 10: - r0 = (s.arg2 > s.len___297917); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.arg2 = (s.len___297917); - case 11: - case 12: - s.i___297951 = (s.arg1); - case 13: - r0 = (s.i___297951 < s.arg2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___297915; - r0 = pxsim_Array__getAt(s.arg0, s.i___297951); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___297951 + 1); - s.i___297951 = (r0); - { step = 13; continue; } - case 14: - r0 = s.res___297915; - case 15: + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arraySlice__P289520.info = {"start":9027,"length":690,"line":303,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} +control_EventHandler_register_inline__P57394.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function helpers_arraySlice__P289520_mk(s) { +function control_EventHandler_register_inline__P57394_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySlice__P289520, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register_inline__P57394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - res___297915: undefined, - len___297917: undefined, - i___297951: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function particles_updateParticles__P293772(s) { +function scene_followPath__P50882(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7689,329 +7963,285 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___298661 = undefined; - s.time___298668 = undefined; - s.dt___298671 = undefined; - s.i___298677 = undefined; - s.tmp_0 = particles_particleSources__P293777_mk(s); - s.callLocIdx = 1170; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.sources___298661 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___298661); + s.pathFollowingSprites___54162 = undefined; + s.i___54166 = undefined; + s.pfs___54173 = undefined; + s.tm___54191 = undefined; + s.nearestTile___54200 = undefined; + s.minDistSquared___54202 = undefined; + s.p___54204 = undefined; + s.unnamed1038___U7 = undefined; + s.unnamed1039___U8 = undefined; + s.distSqrd___54206 = undefined; + s.remainingPath___54232 = undefined; + s.remainingPath___54243 = undefined; + s.currentLocation___54254 = undefined; + s.pathToNearest___54259 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 5; continue; } + { step = 25; continue; } case 1: case 2: - s.tmp_2 = particles_sortSources__P293774_mk(s); - s.tmp_2.arg0 = s.sources___298661; - s.callLocIdx = 1171; s.pc = 7; return s.tmp_2; - case 7: - r0 = s.retval; - r0 = pxsim.control.millis(); - s.time___298668 = (r0); - r0 = (s.time___298668 - globals.lastUpdate___293766); - s.dt___298671 = (r0); - globals.lastUpdate___293766 = (s.time___298668); - s.i___298677 = (0); - case 3: - s.tmp_1 = r0 = s.i___298677; - r0 = pxsim_Array__length(s.sources___298661); + r0 = pxsim_numops_toBoolDecr(s.arg1); + 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 = 4; continue; } - s.tmp_3 = particles_ParticleSource__update__P292108_mk(s); - r0 = pxsim_Array__getAt(s.sources___298661, s.i___298677); - s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___298671; - s.callLocIdx = 1172; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - r0 = (s.i___298677 + 1); - s.i___298677 = (r0); - { step = 3; continue; } - case 4: - case 5: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_updateParticles__P293772.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__P293772_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_updateParticles__P293772, depth: s.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___298661: undefined, - time___298668: undefined, - dt___298671: undefined, - i___298677: undefined, -} } - - - - - -function particles_ParticleSource__update__P292108(s) { -let r0 = s.r0, 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___298740 = undefined; - s.current___298759 = undefined; - s.fixedDt___298767 = 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__C292101_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timer"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); - r0 = s.arg0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_2); if (!r0) { step = 3; continue; } - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["lifespan"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.arg1); - s.tmp_3 = r0; - r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); - r0 = s.arg0.fields["lifespan"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = particles_ParticleSource_destroy__P292115_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1143; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - case 1: - case 2: - { step = 10; continue; } + r0 = s.tmp_2; + { step = 4; continue; } case 3: - r0 = s.arg0.fields["anchor"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 4; continue; } - r0 = s.tmp_0; - { step = 5; continue; } + 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: - s.tmp_2 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_2.arg0 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1144; s.pc = 29; return s.tmp_2; } - } - case 29: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - case 5: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 6; continue; } - r0 = s.tmp_3; - { step = 7; continue; } + s.tmp_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: - s.tmp_5 = if_flags_1_mk(s); - r0 = s.arg0.fields["anchor"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1145; s.pc = 30; return s.tmp_5; } - } - case 30: + // 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__P53985_mk(s); + s.callLocIdx = 137; s.pc = 26; return s.tmp_9; + case 26: r0 = s.retval; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 2); + s.pathFollowingSprites___54162 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pathFollowingSprites___54162); + if (!r0) { step = 11; continue; } + r0 = pxsim_Array__length(s.pathFollowingSprites___54162); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.i___54166 = (r0); case 7: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); + r0 = (s.i___54166 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.pathFollowingSprites___54162, s.i___54166); + s.pfs___54173 = (r0); + r0 = s.pfs___54173.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 = (s.arg0).fields["lifespan"] = (750); + s.tmp_2 = Sprite_vx__P49101_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = 0; + s.callLocIdx = 138; s.pc = 27; return s.tmp_2; + case 27: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P49103_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 139; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; + r0 = pxsim_Array_.removeAt(s.pathFollowingSprites___54162, s.i___54166); case 8: case 9: + r0 = (s.i___54166 - 1); + s.i___54166 = (r0); + { step = 7; continue; } case 10: case 11: - r0 = s.arg0.fields["timer"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 12; continue; } - r0 = s.tmp_0; - { step = 13; continue; } case 12: - s.tmp_2 = particles_ParticleSource_enabled__P292113_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1146; s.pc = 31; return s.tmp_2; - case 31: - r0 = s.retval; + { step = 25; continue; } case 13: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 16; continue; } - s.tmp_4 = r0 = s.arg0; - r0 = s.tmp_4.fields["timer"]; - s.tmp_6 = r0; - r0 = s.arg0.fields["period"]; - s.tmp_7 = r0; - r0 = (s.tmp_6 + s.tmp_7); - s.tmp_5 = r0; - r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); - s.tmp_0 = particles_ParticleFactory__C292137_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__C292137_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: + case 14: + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 140; s.pc = 29; return s.tmp_0; + case 29: r0 = s.retval; - s.p___298740 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___298740); + r0 = r0.fields["tileMap"]; + s.tm___54191 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tm___54191); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - { step = 11; continue; } - case 14: + if (!r0) { step = 15; continue; } + { step = 25; continue; } case 15: - r0 = s.arg0.fields["head"]; - s.tmp_2 = r0; - r0 = (s.p___298740).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___298740); - { step = 11; continue; } case 16: - r0 = s.arg0.fields["head"]; + s.tmp_3 = tiles_TileMap_isOnWall__P49444_mk(s); + s.tmp_3.arg0 = s.tm___54191; + s.tmp_3.arg1 = s.arg0; + s.callLocIdx = 141; s.pc = 30; return s.tmp_3; + case 30: + 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 = 17; continue; } - { step = 27; continue; } + if (!r0) { step = 21; continue; } + r0 = pxsim_Array__getAt(s.arg1, 0); + s.nearestTile___54200 = (r0); + s.minDistSquared___54202 = (999999); + s.p___54204 = (undefined); + s.unnamed1038___U7 = (s.arg1); + s.unnamed1039___U8 = (0); case 17: - case 18: - r0 = s.arg0.fields["head"]; - s.current___298759 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["_dt"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1); - r0 = s.arg0.fields["_dt"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * 256); - s.tmp_1 = r0; - r0 = (s.tmp_1 | 0); - s.fixedDt___298767 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___298767); - if (!r0) { step = 23; continue; } - case 19: - r0 = s.current___298759.fields["lifespan"]; + s.tmp_0 = r0 = s.unnamed1039___U8; + r0 = pxsim_Array__length(s.unnamed1038___U7); s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - s.tmp_2 = r0 = s.current___298759; - r0 = s.tmp_2.fields["lifespan"]; + r0 = pxsim_Array__getAt(s.unnamed1038___U7, s.unnamed1039___U8); + s.p___54204 = (r0); + s.tmp_5 = tiles_Location_x__P49384_mk(s); + s.tmp_5.arg0 = s.p___54204; + s.callLocIdx = 142; s.pc = 31; return s.tmp_5; + case 31: + r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.arg1); + s.tmp_7 = Sprite_x__P49096_mk(s); + s.tmp_7.arg0 = s.arg0; + s.callLocIdx = 143; s.pc = 32; return s.tmp_7; + case 32: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_4 - s.tmp_6); s.tmp_3 = r0; - r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); - s.tmp_0 = particles_ParticleSource__C292101_v4_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___298759; - s.tmp_0.arg2 = s.fixedDt___298767; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C292101_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.updateParticle; - s.pc = 33; return s.tmp_0; + r0 = pxsim.Math_.pow(s.tmp_3, 2); + s.tmp_2 = r0; + s.tmp_11 = tiles_Location_y__P49385_mk(s); + s.tmp_11.arg0 = s.p___54204; + s.callLocIdx = 144; s.pc = 33; return s.tmp_11; case 33: r0 = s.retval; - case 20: - case 21: - r0 = s.current___298759.fields["next"]; + s.tmp_10 = r0; + s.tmp_13 = Sprite_y__P49098_mk(s); + s.tmp_13.arg0 = s.arg0; + s.callLocIdx = 145; s.pc = 34; return s.tmp_13; + case 34: + 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___54206 = (r0); + r0 = (s.distSqrd___54206 < s.minDistSquared___54202); s.tmp_0 = r0; - s.current___298759 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - { step = 19; continue; } + if (!r0) { step = 18; continue; } + s.nearestTile___54200 = (s.p___54204); + s.minDistSquared___54202 = (s.distSqrd___54206); + case 18: + case 19: + r0 = (s.unnamed1039___U8 + 1); + s.unnamed1039___U8 = (r0); + { step = 17; continue; } + case 20: + s.unnamed1038___U7 = (undefined); + s.tmp_0 = tiles_Location_place__P49395_mk(s); + s.tmp_0.arg0 = s.nearestTile___54200; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 146; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + s.tmp_0 = scene_getRemainingPath__P54235_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 147; s.pc = 36; return s.tmp_0; + case 36: + r0 = s.retval; + s.remainingPath___54232 = (r0); + s.tmp_0 = scene__followPath__P50887_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.remainingPath___54232; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.callLocIdx = 148; s.pc = 37; return s.tmp_0; + case 37: + r0 = s.retval; + { step = 25; continue; } + case 21: case 22: - r0 = (s.arg0).fields["_dt"] = (0); - { step = 26; continue; } + s.tmp_0 = scene_getRemainingPath__P54235_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 149; s.pc = 38; return s.tmp_0; + case 38: + r0 = s.retval; + s.remainingPath___54243 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainingPath___54243); + if (!r0) { step = 23; continue; } + s.tmp_0 = scene__followPath__P50887_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.remainingPath___54243; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.callLocIdx = 150; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + { step = 25; continue; } case 23: case 24: - s.tmp_0 = r0 = s.current___298759; - 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___298759.fields["next"]; + s.tmp_0 = scene_locationOfSprite__P54258_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 151; s.pc = 40; return s.tmp_0; + case 40: + r0 = s.retval; + s.currentLocation___54254 = (r0); + r0 = pxsim_pxtcore_mkAction(1, pathToNearest_inline__P54266); s.tmp_0 = r0; - s.current___298759 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 25; continue; } - { step = 24; continue; } + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = scene_generalAStar__P50880_mk(s); + s.tmp_1.arg0 = s.tm___54191; + s.tmp_1.arg1 = s.currentLocation___54254; + s.tmp_1.arg2 = null; + s.tmp_1.arg3 = pathToNearest_inline__P54265; + s.tmp_1.arg4 = s.tmp_0; + s.callLocIdx = 154; s.pc = 41; return s.tmp_1; + case 41: + r0 = s.retval; + s.pathToNearest___54259 = (r0); + r0 = pxsim_pxtcore_mkAction(3, scene_followPath_inline__P54286); + 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__P50887_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.pathToNearest___54259; + s.tmp_1.arg2 = s.arg2; + s.tmp_1.arg3 = s.tmp_0; + s.callLocIdx = 157; s.pc = 42; return s.tmp_1; + case 42: + r0 = s.retval; case 25: - case 26: - case 27: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource__update__P292108.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +scene_followPath__P50882.info = {"start":3893,"length":2422,"line":98,"column":4,"endLine":161,"endColumn":5,"fileName":"path-following.ts","functionName":"followPath","argumentNames":["sprite","path","speed"]} -function particles_ParticleSource__update__P292108_mk(s) { +function scene_followPath__P50882_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P292108, depth: s.depth + 1, + parent: s, fn: scene_followPath__P50882, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8021,18 +8251,63 @@ function particles_ParticleSource__update__P292108_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - p___298740: undefined, - current___298759: undefined, - fixedDt___298767: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + pathFollowingSprites___54162: undefined, + i___54166: undefined, + pfs___54173: undefined, + tm___54191: undefined, + nearestTile___54200: undefined, + minDistSquared___54202: undefined, + p___54204: undefined, + unnamed1038___U7: undefined, + unnamed1039___U8: undefined, + distSqrd___54206: undefined, + remainingPath___54232: undefined, + remainingPath___54243: undefined, + currentLocation___54254: undefined, + pathToNearest___54259: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, +} } + + + + + +function pathToNearest_inline__P54265(s) { +let r0 = s.r0, 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() +} } } +pathToNearest_inline__P54265.info = {"start":5825,"length":7,"line":147,"column":70,"endLine":147,"endColumn":77,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} + +function pathToNearest_inline__P54265_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: pathToNearest_inline__P54265, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } -function particles_ParticleSource_updateParticle__P293768(s) { +function pathToNearest_inline__P54266(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8042,74 +8317,69 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.pathTile___54269 = undefined; + s.unnamed1040___U1 = undefined; + s.unnamed1041___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - r0 = (s.arg2 >> 10); - s.arg2 = (r0); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vx"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["ax"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); + s.pathTile___54269 = (undefined); + s.unnamed1040___U1 = (s.caps[0]); + s.unnamed1041___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed1041___U2; + r0 = pxsim_Array__length(s.unnamed1040___U1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["vy"]; - s.tmp_2 = r0; - r0 = s.arg0.fields["ay"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed1040___U1, s.unnamed1041___U2); + s.pathTile___54269 = (r0); + r0 = s.arg0.fields["col"]; s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_x"]; - s.tmp_2 = r0; - r0 = s.arg1.fields["vx"]; + s.tmp_5 = tiles_Location_col__P49391_mk(s); + s.tmp_5.arg0 = s.pathTile___54269; + s.callLocIdx = 152; s.pc = 8; return s.tmp_5; + case 8: + r0 = s.retval; s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg1; - r0 = s.arg1.fields["_y"]; + r0 = (s.tmp_3 === s.tmp_4); s.tmp_2 = r0; - r0 = s.arg1.fields["vy"]; - s.tmp_4 = r0; - r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 8); - s.tmp_3 = r0; - r0 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 2; continue; } + r0 = s.tmp_2; + { step = 3; continue; } + case 2: + r0 = s.arg0.fields["row"]; + s.tmp_6 = r0; + r0 = s.pathTile___54269.fields["_row"]; + s.tmp_7 = r0; + r0 = (s.tmp_6 === s.tmp_7); + case 3: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); + if (!r0) { step = 4; continue; } + r0 = true; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.unnamed1041___U2 + 1); + s.unnamed1041___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed1040___U1 = (undefined); + r0 = false; + case 7: return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P293768.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"]} +pathToNearest_inline__P54266.info = {"start":5834,"length":229,"line":147,"column":79,"endLine":154,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":["tile"]} -function particles_ParticleSource_updateParticle__P293768_mk(s) { +function pathToNearest_inline__P54266_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P293768, depth: s.depth + 1, + parent: s, fn: pathToNearest_inline__P54266, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8117,16 +8387,20 @@ function particles_ParticleSource_updateParticle__P293768_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + pathTile___54269: undefined, + unnamed1040___U1: undefined, + unnamed1041___U2: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function Fx_rightShift__P289573(s) { +function scene_followPath_inline__P54286(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8136,31 +8410,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 >> s.arg1); + s.remainingPath___54287 = undefined; + s.tmp_0 = scene_getRemainingPath__P54235_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.caps[1]; + s.callLocIdx = 155; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.remainingPath___54287 = (r0); + s.tmp_0 = scene__followPath__P50887_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.remainingPath___54287; + s.tmp_0.arg2 = s.caps[2]; + s.tmp_0.arg3 = undefined; + s.callLocIdx = 156; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_rightShift__P289573.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} +scene_followPath_inline__P54286.info = {"start":6117,"length":191,"line":156,"column":50,"endLine":160,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} -function Fx_rightShift__P289573_mk(s) { +function scene_followPath_inline__P54286_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_rightShift__P289573, depth: s.depth + 1, + parent: s, fn: scene_followPath_inline__P54286, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + remainingPath___54287: undefined, } } -function Fx_mul__P289564(s) { +function tiles_Location_row__P49383(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8172,32 +8457,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C49379_VT)) failedCast(r0); + r0 = s.arg0.fields["_row"]; + return leaveAccessor(s, r0) default: oops() } } } -Fx_mul__P289564.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +tiles_Location_row__P49383.info = {"start":877,"length":51,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"row","argumentNames":["this"]} +tiles_Location_row__P49383.isGetter = true; -function Fx_mul__P289564_mk(s) { +function tiles_Location_row__P49383_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P289564, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P49383, 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__P292139(s) { +function tiles_Location_col__P49391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8207,83 +8490,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___298864 = 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__C292137_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C292082_VT); - s.p___298864 = (r0); - s.tmp_0 = r0 = s.p___298864; - 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 = 1197; 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___298864; - 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 = 1199; 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___298864).fields["vx"] = (0); - r0 = (s.p___298864).fields["vy"] = (0); - r0 = (s.p___298864).fields["lifespan"] = (500); - r0 = s.p___298864; - return leave(s, r0) + if (!checkSubtype(r0, tiles_Location__C49379_VT)) failedCast(r0); + r0 = s.arg0.fields["_col"]; + return leaveAccessor(s, r0) default: oops() } } } -particles_ParticleFactory_createParticle__P292139.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +tiles_Location_col__P49391.info = {"start":2456,"length":53,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"col","argumentNames":["this"]} +tiles_Location_col__P49391.isGetter = true; -function particles_ParticleFactory_createParticle__P292139_mk(s) { +function tiles_Location_col__P49391_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_createParticle__P292139, depth: s.depth + 1, + parent: s, fn: tiles_Location_col__P49391, depth: s.depth + 1, pc: 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___298864: undefined, arg0: undefined, - arg1: undefined, } } -function particles_SprayFactory_constructor__P292142(s) { +function tiles_Location_column__P49382(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8295,54 +8527,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, particles_SprayFactory__C292141_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = particles_initTrig__P293792_mk(s); - s.callLocIdx = 1204; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P292145_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1205; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P292146_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 1206; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, tiles_Location__C49379_VT)) failedCast(r0); + r0 = s.arg0.fields["_col"]; + return leaveAccessor(s, r0) default: oops() } } } -particles_SprayFactory_constructor__P292142.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"]} +tiles_Location_column__P49382.info = {"start":695,"length":54,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"column","argumentNames":["this"]} +tiles_Location_column__P49382.isGetter = true; -function particles_SprayFactory_constructor__P292142_mk(s) { +function tiles_Location_column__P49382_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P292142, depth: s.depth + 1, + parent: s, fn: tiles_Location_column__P49382, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function particles_initTrig__P293792(s) { +function scene_generalAStar__P50880(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8352,386 +8560,672 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___293778); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.consideredTiles___53505 = undefined; + s.encountedLocations___53507 = undefined; + s.updateOrFillLocation___53510 = undefined; + s.end___53603 = undefined; + s.currLocation___53609 = undefined; + s.row___53619 = undefined; + s.col___53623 = undefined; + s.dataForCurrLocation___53627 = undefined; + s.left___53639 = undefined; + s.right___53645 = undefined; + s.top___53652 = undefined; + s.bottom___53658 = undefined; + s.leftIsWall___53665 = undefined; + s.rightIsWall___53666 = undefined; + s.topIsWall___53667 = undefined; + s.bottomIsWall___53668 = undefined; + s.neighborCost___53726 = undefined; + s.cornerCost___53731 = undefined; + s.topLeft___53744 = undefined; + s.bottomLeft___53765 = undefined; + s.topRight___53793 = undefined; + s.bottomRight___53815 = undefined; + s.endCol___53848 = undefined; + s.endDataNode___53854 = undefined; + s.curr___53866 = undefined; + s.output___53868 = 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_3 = scene_isWalkable__P53410_mk(s); + s.tmp_3.arg0 = s.arg1; + s.tmp_3.arg1 = s.arg2; + s.tmp_3.arg2 = s.arg0; + s.callLocIdx = 59; s.pc = 48; return s.tmp_3; + case 48: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_cacheSin__P292135_mk(s); - s.tmp_2.arg0 = 100; - s.callLocIdx = 1192; s.pc = 3; return s.tmp_2; + r0 = undefined; + { step = 47; continue; } + case 1: + case 2: + r0 = pxsim_Array__mk(); + s.consideredTiles___53505 = (r0); + 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___53507 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, updateOrFillLocation__P53510); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.encountedLocations___53507); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.arg3); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.consideredTiles___53505); + s.updateOrFillLocation___53510 = (s.tmp_0); + s.tmp_1 = lambda_4_mk(s); + s.tmp_1.argL = s.updateOrFillLocation___53510; + 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 = 63; s.pc = 49; return s.tmp_1; + case 49: + r0 = s.retval; + s.end___53603 = (null); case 3: + r0 = pxsim_Array__length(s.consideredTiles___53505); + s.tmp_1 = r0; + r0 = (s.tmp_1 !== 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 36; continue; } + r0 = pxsim_Array_.pop(s.consideredTiles___53505); + s.currLocation___53609 = (r0); + s.tmp_1 = lambda_2_mk(s); + s.tmp_1.argL = s.arg4; + r0 = s.currLocation___53609.fields["loc"]; + s.tmp_1.arg0 = r0; + setupLambda(s.tmp_1, s.tmp_1.argL); + s.callLocIdx = 64; s.pc = 50; return s.tmp_1; + case 50: r0 = s.retval; - globals.cachedSin___293778 = (r0); - s.tmp_0 = particles_cacheCos__P292136_mk(s); - s.tmp_0.arg0 = 100; - s.callLocIdx = 1193; s.pc = 4; return s.tmp_0; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = s.currLocation___53609.fields["loc"]; + s.end___53603 = (r0); + { step = 36; continue; } case 4: + case 5: + r0 = s.currLocation___53609.fields["loc"]; + r0 = r0.fields["row"]; + s.row___53619 = (r0); + r0 = s.currLocation___53609.fields["loc"]; + r0 = r0.fields["col"]; + s.col___53623 = (r0); + r0 = pxsim_Array__getAt(s.encountedLocations___53507, s.col___53623); + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.row___53619); + s.dataForCurrLocation___53627 = (r0); + s.tmp_0 = r0 = s.dataForCurrLocation___53627; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + r0 = s.dataForCurrLocation___53627.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___53627).fields["visited"] = (true); + r0 = pxsim_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = (s.col___53623 - 1); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.row___53619; + s.callLocIdx = 65; s.pc = 51; return s.tmp_1; + case 51: r0 = s.retval; - globals.cachedCos___293779 = (r0); - case 1: - case 2: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_initTrig__P293792.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__P293792_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_initTrig__P293792, 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__P292136(s) { -let r0 = s.r0, 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___298336 = undefined; - s.anglePerSlice___298338 = undefined; - s.i___298344 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.cos___298336 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___298338 = (r0); - s.i___298344 = (0); - case 1: - r0 = (s.i___298344 < s.arg0); + s.left___53639 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = (s.col___53623 + 1); + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.row___53619; + s.callLocIdx = 66; s.pc = 52; return s.tmp_1; + case 52: + r0 = s.retval; + s.right___53645 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.col___53623; + r0 = (s.row___53619 - 1); + s.tmp_1.arg2 = r0; + s.callLocIdx = 67; s.pc = 53; return s.tmp_1; + case 53: + r0 = s.retval; + s.top___53652 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.col___53623; + r0 = (s.row___53619 + 1); + s.tmp_1.arg2 = r0; + s.callLocIdx = 68; s.pc = 54; return s.tmp_1; + case 54: + r0 = s.retval; + s.bottom___53658 = (s.tmp_0); + s.leftIsWall___53665 = (false); + s.rightIsWall___53666 = (false); + s.topIsWall___53667 = (false); + s.bottomIsWall___53668 = (false); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 10; continue; } + s.tmp_2 = scene_isWalkable__P53410_mk(s); + s.tmp_2.arg0 = s.left___53639; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 69; s.pc = 55; return s.tmp_2; + case 55: + 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___53665 = (r0); + s.tmp_2 = scene_isWalkable__P53410_mk(s); + s.tmp_2.arg0 = s.right___53645; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 70; s.pc = 56; return s.tmp_2; + case 56: + 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___53666 = (r0); + s.tmp_2 = scene_isWalkable__P53410_mk(s); + s.tmp_2.arg0 = s.top___53652; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 71; s.pc = 57; return s.tmp_2; + case 57: + 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___53667 = (r0); + s.tmp_2 = scene_isWalkable__P53410_mk(s); + s.tmp_2.arg0 = s.bottom___53658; + s.tmp_2.arg1 = s.arg2; + s.tmp_2.arg2 = s.arg0; + s.callLocIdx = 72; s.pc = 58; return s.tmp_2; + case 58: + 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___53668 = (r0); + { step = 11; continue; } + case 10: + s.tmp_0 = tiles_TileMap_isObstacle__P49442_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.left___53639.fields["col"]; + s.tmp_0.arg1 = r0; + r0 = s.left___53639.fields["row"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 73; s.pc = 59; return s.tmp_0; + case 59: + r0 = s.retval; + s.leftIsWall___53665 = (r0); + s.tmp_0 = tiles_TileMap_isObstacle__P49442_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.right___53645.fields["col"]; + s.tmp_0.arg1 = r0; + r0 = s.right___53645.fields["row"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 74; s.pc = 60; return s.tmp_0; + case 60: + r0 = s.retval; + s.rightIsWall___53666 = (r0); + s.tmp_0 = tiles_TileMap_isObstacle__P49442_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.top___53652.fields["col"]; + s.tmp_0.arg1 = r0; + r0 = s.top___53652.fields["row"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 75; s.pc = 61; return s.tmp_0; + case 61: + r0 = s.retval; + s.topIsWall___53667 = (r0); + s.tmp_0 = tiles_TileMap_isObstacle__P49442_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = s.bottom___53658.fields["col"]; + s.tmp_0.arg1 = r0; + r0 = s.bottom___53658.fields["row"]; + s.tmp_0.arg2 = r0; + s.callLocIdx = 76; s.pc = 62; return s.tmp_0; + case 62: + r0 = s.retval; + s.bottomIsWall___53668 = (r0); + case 11: + r0 = s.currLocation___53609.fields["cost"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1000); + s.neighborCost___53726 = (r0); + r0 = s.currLocation___53609.fields["cost"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 1414); + s.cornerCost___53731 = (r0); + r0 = pxsim_numops_toBoolDecr(s.leftIsWall___53665); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___298336; - r0 = (s.i___298344 * s.anglePerSlice___298338); - 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); + if (!r0) { step = 20; continue; } + s.tmp_2 = lambda_4_mk(s); + s.tmp_2.argL = s.updateOrFillLocation___53510; + s.tmp_2.arg0 = s.left___53639; + s.tmp_2.arg1 = s.dataForCurrLocation___53627; + s.tmp_2.arg2 = s.neighborCost___53726; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 77; s.pc = 63; return s.tmp_2; + case 63: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.topIsWall___53667); + s.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_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___298344 + 1); - s.i___298344 = (r0); - { step = 1; continue; } - case 2: - r0 = s.cos___298336; - return leave(s, r0) - default: oops() -} } } -particles_cacheCos__P292136.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__P292136_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_cacheCos__P292136, depth: s.depth + 1, - pc: 0, retval: undefined, 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___298336: undefined, - anglePerSlice___298338: undefined, - i___298344: undefined, - arg0: undefined, -} } - - - - - -function particles_cacheSin__P292135(s) { -let r0 = s.r0, 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___298362 = undefined; - s.anglePerSlice___298364 = undefined; - s.i___298370 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array__mk(); - s.sin___298362 = (r0); - r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___298364 = (r0); - s.i___298370 = (0); - case 1: - r0 = (s.i___298370 < s.arg0); + s.tmp_3 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_3.arg0 = s.tmp_2; + r0 = (s.col___53623 - 1); + s.tmp_3.arg1 = r0; + r0 = (s.row___53619 - 1); + s.tmp_3.arg2 = r0; + s.callLocIdx = 78; s.pc = 64; return s.tmp_3; + case 64: + r0 = s.retval; + s.topLeft___53744 = (s.tmp_2); + s.tmp_3 = tiles_TileMap_isObstacle__P49442_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = s.topLeft___53744.fields["col"]; + s.tmp_3.arg1 = r0; + r0 = s.topLeft___53744.fields["row"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 79; s.pc = 65; return s.tmp_3; + case 65: + 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 = 2; continue; } - s.tmp_1 = r0 = s.sin___298362; - r0 = (s.i___298370 * s.anglePerSlice___298364); - 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); + if (!r0) { step = 12; continue; } + s.tmp_4 = lambda_4_mk(s); + s.tmp_4.argL = s.updateOrFillLocation___53510; + s.tmp_4.arg0 = s.topLeft___53744; + s.tmp_4.arg1 = s.dataForCurrLocation___53627; + s.tmp_4.arg2 = s.cornerCost___53731; + setupLambda(s.tmp_4, s.tmp_4.argL); + s.callLocIdx = 80; s.pc = 66; return s.tmp_4; + case 66: + r0 = s.retval; + case 12: + case 13: + case 14: + case 15: + r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___53668); + s.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_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___298370 + 1); - s.i___298370 = (r0); - { step = 1; continue; } - case 2: - r0 = s.sin___298362; - return leave(s, r0) - default: oops() -} } } -particles_cacheSin__P292135.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__P292135_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_cacheSin__P292135, depth: s.depth + 1, - pc: 0, retval: undefined, 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___298362: undefined, - anglePerSlice___298364: undefined, - i___298370: undefined, - arg0: undefined, -} } - - - - - -function particles_SprayFactory_setDirection__P292146(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C292141_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P293797_mk(s); - s.tmp_5 = r0 = s.arg1; - r0 = (s.arg2 >> 1); - s.tmp_6 = r0; - r0 = (s.tmp_5 - s.tmp_6); - s.tmp_4.arg0 = r0; - s.callLocIdx = 1214; s.pc = 1; return s.tmp_4; - case 1: + s.tmp_3 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_3.arg0 = s.tmp_2; + r0 = (s.col___53623 - 1); + s.tmp_3.arg1 = r0; + r0 = (s.row___53619 + 1); + s.tmp_3.arg2 = r0; + s.callLocIdx = 81; s.pc = 67; return s.tmp_3; + case 67: + r0 = s.retval; + s.bottomLeft___53765 = (s.tmp_2); + s.tmp_3 = tiles_TileMap_isObstacle__P49442_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = s.bottomLeft___53765.fields["col"]; + s.tmp_3.arg1 = r0; + r0 = s.bottomLeft___53765.fields["row"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 82; s.pc = 68; return s.tmp_3; + case 68: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___293791); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P293797_mk(s); - s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1215; s.pc = 2; return s.tmp_4; - case 2: + 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_4 = lambda_4_mk(s); + s.tmp_4.argL = s.updateOrFillLocation___53510; + s.tmp_4.arg0 = s.bottomLeft___53765; + s.tmp_4.arg1 = s.dataForCurrLocation___53627; + s.tmp_4.arg2 = s.cornerCost___53731; + setupLambda(s.tmp_4, s.tmp_4.argL); + s.callLocIdx = 83; s.pc = 69; return s.tmp_4; + case 69: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___293791); + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + r0 = pxsim_numops_toBoolDecr(s.rightIsWall___53666); + s.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; } + s.tmp_2 = lambda_4_mk(s); + s.tmp_2.argL = s.updateOrFillLocation___53510; + s.tmp_2.arg0 = s.right___53645; + s.tmp_2.arg1 = s.dataForCurrLocation___53627; + s.tmp_2.arg2 = s.neighborCost___53726; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 84; s.pc = 70; return s.tmp_2; + case 70: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.topIsWall___53667); + s.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_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.tmp_3 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_3.arg0 = s.tmp_2; + r0 = (s.col___53623 + 1); + s.tmp_3.arg1 = r0; + r0 = (s.row___53619 - 1); + s.tmp_3.arg2 = r0; + s.callLocIdx = 85; s.pc = 71; return s.tmp_3; + case 71: + r0 = s.retval; + s.topRight___53793 = (s.tmp_2); + s.tmp_3 = tiles_TileMap_isObstacle__P49442_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = s.topRight___53793.fields["col"]; + s.tmp_3.arg1 = r0; + r0 = s.topRight___53793.fields["row"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 86; 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 = (s.tmp_0).fields["spread"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_SprayFactory_setDirection__P292146.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__P292146_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_SprayFactory_setDirection__P292146, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function particles_toRadians__P293797(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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 < 0); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P289532_mk(s); + if (!r0) { step = 22; continue; } + s.tmp_4 = lambda_4_mk(s); + s.tmp_4.argL = s.updateOrFillLocation___53510; + s.tmp_4.arg0 = s.topRight___53793; + s.tmp_4.arg1 = s.dataForCurrLocation___53627; + s.tmp_4.arg2 = s.cornerCost___53731; + setupLambda(s.tmp_4, s.tmp_4.argL); + s.callLocIdx = 87; s.pc = 73; return s.tmp_4; + case 73: + r0 = s.retval; + case 22: + case 23: + case 24: + case 25: + r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___53668); + s.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_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); + s.tmp_2 = r0; + s.tmp_3 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_3.arg0 = s.tmp_2; + r0 = (s.col___53623 + 1); + s.tmp_3.arg1 = r0; + r0 = (s.row___53619 + 1); + s.tmp_3.arg2 = r0; + s.callLocIdx = 88; s.pc = 74; return s.tmp_3; + case 74: + r0 = s.retval; + s.bottomRight___53815 = (s.tmp_2); + s.tmp_3 = tiles_TileMap_isObstacle__P49442_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1196; s.pc = 3; return s.tmp_3; - case 3: + r0 = s.bottomRight___53815.fields["col"]; + s.tmp_3.arg1 = r0; + r0 = s.bottomRight___53815.fields["row"]; + s.tmp_3.arg2 = r0; + s.callLocIdx = 89; s.pc = 75; return s.tmp_3; + case 75: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 % 360); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (360 - s.tmp_1); - s.arg0 = (r0); - { step = 2; continue; } - case 1: - r0 = (s.arg0 % 360); - s.arg0 = (r0); - case 2: - r0 = (s.arg0 * 0.017453292519943295); - return leave(s, r0) - default: oops() -} } } -particles_toRadians__P293797.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__P293797_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_toRadians__P293797, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, -} } - - - - - -function particles_ParticleFactory_constructor__P292138(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C292137_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleFactory_constructor__P292138.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__P292138_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleFactory_constructor__P292138, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function particles_ParticleSource_setFactory__P292120(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_factory"] = (s.arg1); - case 1: - case 2: + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + s.tmp_4 = lambda_4_mk(s); + s.tmp_4.argL = s.updateOrFillLocation___53510; + s.tmp_4.arg0 = s.bottomRight___53815; + s.tmp_4.arg1 = s.dataForCurrLocation___53627; + s.tmp_4.arg2 = s.cornerCost___53731; + setupLambda(s.tmp_4, s.tmp_4.argL); + s.callLocIdx = 90; s.pc = 76; return s.tmp_4; + case 76: + r0 = s.retval; + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + r0 = pxsim_numops_toBoolDecr(s.topIsWall___53667); + s.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; } + s.tmp_2 = lambda_4_mk(s); + s.tmp_2.argL = s.updateOrFillLocation___53510; + s.tmp_2.arg0 = s.top___53652; + s.tmp_2.arg1 = s.dataForCurrLocation___53627; + s.tmp_2.arg2 = s.neighborCost___53726; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 91; s.pc = 77; return s.tmp_2; + case 77: + r0 = s.retval; + case 32: + case 33: + r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___53668); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 34; continue; } + s.tmp_2 = lambda_4_mk(s); + s.tmp_2.argL = s.updateOrFillLocation___53510; + s.tmp_2.arg0 = s.bottom___53658; + s.tmp_2.arg1 = s.dataForCurrLocation___53627; + s.tmp_2.arg2 = s.neighborCost___53726; + setupLambda(s.tmp_2, s.tmp_2.argL); + s.callLocIdx = 92; s.pc = 78; return s.tmp_2; + case 78: + r0 = s.retval; + case 34: + case 35: + { step = 3; continue; } + case 36: + s.tmp_0 = r0 = s.end___53603; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 37; continue; } + r0 = s.tmp_0; + { step = 38; continue; } + case 37: + r0 = s.end___53603.fields["col"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.encountedLocations___53507, s.tmp_1); + case 38: + // jmp value (already in r0) + s.tmp_2 = r0; + s.endCol___53848 = (s.tmp_2); + s.tmp_0 = r0 = s.endCol___53848; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 39; continue; } + r0 = s.tmp_0; + { step = 40; continue; } + case 39: + r0 = s.end___53603.fields["row"]; + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.endCol___53848, s.tmp_1); + case 40: + // jmp value (already in r0) + s.tmp_2 = r0; + s.endDataNode___53854 = (s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.end___53603); + 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 = 41; continue; } + r0 = s.tmp_0; + { step = 42; continue; } + case 41: + r0 = pxsim_numops_toBoolDecr(s.endDataNode___53854); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 42: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 43; continue; } r0 = undefined; + { step = 47; continue; } + case 43: + case 44: + s.curr___53866 = (s.endDataNode___53854); + r0 = pxsim_Array__mk(); + s.output___53868 = (r0); + case 45: + r0 = pxsim_numops_toBoolDecr(s.curr___53866); + if (!r0) { step = 46; continue; } + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C49379_VT); + s.tmp_0 = r0; + s.tmp_1 = tiles_Location_constructor__P49380_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.curr___53866.fields["l"]; + r0 = r0.fields["col"]; + s.tmp_1.arg1 = r0; + r0 = s.curr___53866.fields["l"]; + r0 = r0.fields["row"]; + s.tmp_1.arg2 = r0; + s.tmp_1.arg3 = s.arg0; + s.callLocIdx = 93; s.pc = 79; return s.tmp_1; + case 79: + r0 = s.retval; + s.tmp_2 = helpers_arrayUnshift__P47059_mk(s); + s.tmp_2.arg0 = s.output___53868; + s.tmp_2.arg1 = s.tmp_0; + s.callLocIdx = 94; s.pc = 80; return s.tmp_2; + case 80: + r0 = s.retval; + r0 = s.curr___53866.fields["parent"]; + s.curr___53866 = (r0); + { step = 45; continue; } + case 46: + r0 = s.output___53868; + case 47: return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P292120.info = {"start":8107,"length":114,"line":271,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} +scene_generalAStar__P50880.info = {"start":2529,"length":5711,"line":72,"column":4,"endLine":221,"endColumn":5,"fileName":"a-star.ts","functionName":"generalAStar","argumentNames":["tm","start","onTilesOf","heuristic","isEnd"]} -function particles_ParticleSource_setFactory__P292120_mk(s) { +function scene_generalAStar__P50880_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P292120, depth: s.depth + 1, + parent: s, fn: scene_generalAStar__P50880, depth: s.depth + 1, pc: 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___53505: undefined, + encountedLocations___53507: undefined, + updateOrFillLocation___53510: undefined, + end___53603: undefined, + currLocation___53609: undefined, + row___53619: undefined, + col___53623: undefined, + dataForCurrLocation___53627: undefined, + left___53639: undefined, + right___53645: undefined, + top___53652: undefined, + bottom___53658: undefined, + leftIsWall___53665: undefined, + rightIsWall___53666: undefined, + topIsWall___53667: undefined, + bottomIsWall___53668: undefined, + neighborCost___53726: undefined, + cornerCost___53731: undefined, + topLeft___53744: undefined, + bottomLeft___53765: undefined, + topRight___53793: undefined, + bottomRight___53815: undefined, + endCol___53848: undefined, + endDataNode___53854: undefined, + curr___53866: undefined, + output___53868: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function particles_ParticleSource_setRate__P292118(s) { +function updateOrFillLocation__P53510(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8741,43 +9235,174 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.row___53514 = undefined; + s.col___53517 = undefined; + s.colData___53520 = undefined; + s.lData___53530 = undefined; + s.newConsideredTile___53554 = undefined; + s.i___53571 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (1000 / s.arg1); + r0 = s.arg0.fields["row"]; + s.row___53514 = (r0); + r0 = s.arg0.fields["col"]; + s.col___53517 = (r0); + r0 = pxsim_Array__getAt(s.caps[0], s.col___53517); + 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.caps[0]; + s.tmp_2 = r0 = s.col___53517; + r0 = pxsim_Array__mk(); + s.tmp_3 = r0; + r0 = pxsim_Array_.setAt(s.tmp_1, s.tmp_2, s.tmp_3); + r0 = s.tmp_3; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + s.colData___53520 = (s.tmp_4); + r0 = pxsim_Array__getAt(s.colData___53520, s.row___53514); + s.lData___53530 = (r0); + r0 = pxsim_numops_toBoolDecr(s.lData___53530); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_LocationNode__C53363_VT); s.tmp_2 = r0; - r0 = pxsim.Math_.ceil(s.tmp_2); + s.tmp_3 = scene_LocationNode_constructor__P53364_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 = 60; s.pc = 16; return s.tmp_3; + case 16: + r0 = s.retval; + r0 = pxsim_Array_.setAt(s.colData___53520, s.row___53514, s.tmp_2); + { step = 6; continue; } + case 3: + r0 = s.lData___53530.fields["lastCost"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["period"] = (s.tmp_1); - r0 = (s.arg0).fields["timer"] = (0); + r0 = (s.tmp_1 > s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = (s.lData___53530).fields["lastCost"] = (s.arg2); + r0 = (s.lData___53530).fields["parent"] = (s.arg1); + { step = 5; continue; } + case 4: + { step = 15; continue; } + case 5: + case 6: + r0 = pxsim_pxtcore_mkClassInstance(scene_PrioritizedLocation__C53357_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_PrioritizedLocation_constructor__P53358_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.tmp_1.arg2 = s.arg2; + s.tmp_2 = r0 = s.arg2; + s.tmp_4 = lambda_2_mk(s); + s.tmp_4.argL = s.caps[1]; + s.tmp_4.arg0 = s.arg0; + setupLambda(s.tmp_4, s.tmp_4.argL); + s.callLocIdx = 61; s.pc = 18; return s.tmp_4; + case 18: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1.arg3 = r0; + s.callLocIdx = 62; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.newConsideredTile___53554 = (s.tmp_0); + r0 = pxsim_Array__length(s.caps[2]); + s.tmp_1 = r0; + r0 = (s.tmp_1 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_Array__push(s.caps[2], s.newConsideredTile___53554); + { step = 15; continue; } + case 7: + case 8: + r0 = pxsim_Array__length(s.caps[2]); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.i___53571 = (r0); + case 9: + r0 = (s.i___53571 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 12; continue; } + r0 = s.newConsideredTile___53554.fields["totalCost"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.caps[2], s.i___53571); + r0 = r0.fields["totalCost"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 < s.tmp_3); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 10; continue; } + s.tmp_4 = r0 = s.caps[2]; + r0 = (s.i___53571 + 1); + s.tmp_5 = r0; + r0 = pxsim_Array_.insertAt(s.tmp_4, s.tmp_5, s.newConsideredTile___53554); + { step = 15; continue; } + case 10: + case 11: + r0 = (s.i___53571 - 1); + s.i___53571 = (r0); + { step = 9; continue; } + case 12: + r0 = (s.i___53571 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = pxsim_Array_.insertAt(s.caps[2], 0, s.newConsideredTile___53554); + case 13: + case 14: + case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P292118.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} +updateOrFillLocation__P53510.info = {"start":2974,"length":1420,"line":83,"column":8,"endLine":124,"endColumn":9,"fileName":"a-star.ts","functionName":"updateOrFillLocation","argumentNames":["l","parent","cost"]} -function particles_ParticleSource_setRate__P292118_mk(s) { +function updateOrFillLocation__P53510_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P292118, depth: s.depth + 1, + parent: s, fn: updateOrFillLocation__P53510, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + row___53514: undefined, + col___53517: undefined, + colData___53520: undefined, + lData___53530: undefined, + newConsideredTile___53554: undefined, + i___53571: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function particles_ParticleSource_setAnchor__P292117(s) { +function tiles_Location_constructor__P49380(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8790,66 +9415,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, particles_ParticleSource__C292101_VT)) failedCast(r0); - r0 = (s.arg0).fields["anchor"] = (s.arg1); + if (!checkSubtype(r0, tiles_Location__C49379_VT)) failedCast(r0); + r0 = (s.arg0).fields["_col"] = (s.arg1); + r0 = (s.arg0).fields["_row"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P292117.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +tiles_Location_constructor__P49380.info = {"start":360,"length":121,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} -function particles_ParticleSource_setAnchor__P292117_mk(s) { +function tiles_Location_constructor__P49380_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P292117, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P49380, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function particles_ParticleSource_clear__P292116(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - r0 = (s.arg0).fields["head"] = (undefined); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource_clear__P292116.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__P292116_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_clear__P292116, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function particles_ParticleSource_destroy__P292115(s) { +function helpers_arrayUnshift__P47059(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8861,49 +9456,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P292114_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1153; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["pFlags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P292109_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1154; s.pc = 2; return s.tmp_0; - case 2: - r0 = s.retval; - r0 = undefined; + r0 = pxsim_Array_.insertAt(s.arg0, 0, s.arg1); + r0 = pxsim_Array__length(s.arg0); return leave(s, r0) default: oops() } } } -particles_ParticleSource_destroy__P292115.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} +helpers_arrayUnshift__P47059.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 particles_ParticleSource_destroy__P292115_mk(s) { +function helpers_arrayUnshift__P47059_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P292115, depth: s.depth + 1, + parent: s, fn: helpers_arrayUnshift__P47059, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function particles_ParticleSource_enabled__P292114(s) { +function tiles_TileMap_isObstacle__P49442(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8916,48 +9492,63 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P292113_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1152; s.pc = 5; return s.tmp_3; - case 5: - r0 = s.retval; + if (!checkSubtype(r0, tiles_TileMap__C49421_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 = (s.tmp_1 !== s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 1); - { step = 2; continue; } + r0 = false; + { step = 5; continue; } case 1: - r0 = s.arg0.fields["pFlags"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 ^ 1); case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); - r0 = (s.arg0).fields["timer"] = (0); + s.tmp_8 = tiles_TileMapData_isOutsideMap__P49415_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 = 942; s.pc = 6; return s.tmp_8; + case 6: + r0 = s.retval; + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 3; continue; } + r0 = true; + { step = 5; continue; } case 3: case 4: - r0 = undefined; + r0 = s.arg0.fields["_map"]; + s.tmp_9 = r0; + r0 = s.tmp_9.fields["layers"]; + s.tmp_11 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_11, s.arg1, s.arg2); + s.tmp_10 = r0; + r0 = (s.tmp_10 === 2); + case 5: return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P292114.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +tiles_TileMap_isObstacle__P49442.info = {"start":16183,"length":211,"line":514,"column":8,"endLine":519,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} -function particles_ParticleSource_enabled__P292114_mk(s) { +function tiles_TileMap_isObstacle__P49442_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P292114, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isObstacle__P49442, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8966,15 +9557,21 @@ function particles_ParticleSource_enabled__P292114_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, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function particles_ParticleSource_enabled__P292113(s) { +function tiles_TileMap_enabled__P49433(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8989,10 +9586,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - r0 = s.arg0.fields["pFlags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 1); + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -9004,19 +9599,18 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P292113.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__P292113.isGetter = true; +tiles_TileMap_enabled__P49433.info = {"start":10141,"length":66,"line":351,"column":8,"endLine":353,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"enabled","argumentNames":["this"]} +tiles_TileMap_enabled__P49433.isGetter = true; -function particles_ParticleSource_enabled__P292113_mk(s) { +function tiles_TileMap_enabled__P49433_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P292113, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P49433, depth: s.depth + 1, pc: 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, } } @@ -9024,7 +9618,7 @@ function particles_ParticleSource_enabled__P292113_mk(s) { -function particles_ParticleSource_setAcceleration__P292110(s) { +function tiles_TileMapData_isOutsideMap__P49415(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9041,218 +9635,71 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg2 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -particles_ParticleSource_setAcceleration__P292110.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__P292110_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: particles_ParticleSource_setAcceleration__P292110, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function sprites_BaseSprite_constructor__P291279(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C291277_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P291282_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 137; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P291867_mk(s); - s.tmp_1 = game_currentScene__P291955_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.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__P291279.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__P291279_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_BaseSprite_constructor__P291279, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function scene_Scene_addSprite__P291867(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C291842_VT)) failedCast(r0); - r0 = s.arg0.fields["allSprites"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["spriteNextId"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1); - s.tmp_3 = if_id_2_mk(s); - s.tmp_3.arg0 = s.arg1; - s.tmp_3.arg1 = s.tmp_2; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"]; - if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; } - else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.callLocIdx = 914; s.pc = 1; return s.tmp_3; } - } - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Scene_addSprite__P291867.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__P291867_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_addSprite__P291867, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function sprites_BaseSprite_z__P291282(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C291277_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== s.arg1); + if (!checkSubtype(r0, tiles_TileMapData__C49403_VT)) failedCast(r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["_z"] = (s.arg1); - s.tmp_1 = game_currentScene__P291955_mk(s); - s.callLocIdx = 140; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["flags"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 | 1); - s.tmp_2 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + 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 = 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() } } } -sprites_BaseSprite_z__P291282.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +tiles_TileMapData_isOutsideMap__P49415.info = {"start":8299,"length":132,"line":278,"column":8,"endLine":280,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} -function sprites_BaseSprite_z__P291282_mk(s) { +function tiles_TileMapData_isOutsideMap__P49415_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P291282, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P49415, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function sprites_BaseSprite_z__P291281(s) { +function tiles_TileMapData_height__P49406(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9267,50 +9714,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C291277_VT)) failedCast(r0); - r0 = s.arg0.fields["_z"]; + if (!checkSubtype(r0, tiles_TileMapData__C49403_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; return leaveAccessor(s, r0) default: oops() } } } -sprites_BaseSprite_z__P291281.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__P291281.isGetter = true; - -function sprites_BaseSprite_z__P291281_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: sprites_BaseSprite_z__P291281, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function helpers_arrayShift__P289507(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = pxsim_Array_.removeAt(s.arg0, 0); - return leave(s, r0) - default: oops() -} } } -helpers_arrayShift__P289507.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} +tiles_TileMapData_height__P49406.info = {"start":6453,"length":65,"line":218,"column":8,"endLine":220,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"height","argumentNames":["this"]} +tiles_TileMapData_height__P49406.isGetter = true; -function helpers_arrayShift__P289507_mk(s) { +function tiles_TileMapData_height__P49406_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P289507, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_height__P49406, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -9319,7 +9734,7 @@ function helpers_arrayShift__P289507_mk(s) { -function particles_SprayFactory_setSpeed__P292145(s) { +function tiles_TileMapData_width__P49405(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9331,40 +9746,30 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C292141_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, tiles_TileMapData__C49403_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + return leaveAccessor(s, r0) default: oops() } } } -particles_SprayFactory_setSpeed__P292145.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} +tiles_TileMapData_width__P49405.info = {"start":6380,"length":63,"line":214,"column":8,"endLine":216,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"width","argumentNames":["this"]} +tiles_TileMapData_width__P49405.isGetter = true; -function particles_SprayFactory_setSpeed__P292145_mk(s) { +function tiles_TileMapData_width__P49405_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P292145, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P49405, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ConfettiFactory_constructor__P292169(s) { +function tiles_TileMapData_isWall__P49414(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9374,99 +9779,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___300793 = undefined; - s.i___300809 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C292168_VT)) failedCast(r0); - r0 = pxsim_Array__mk(); - s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex300796); - s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex300798); - s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex300800); - s.tmp_3 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex300802); - s.tmp_4 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex300804); - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___300793 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P292164_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___300793, 0); - s.tmp_0.arg3 = r0; - s.callLocIdx = 1238; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.i___300809 = (1); - case 1: - s.tmp_1 = r0 = s.i___300809; - r0 = pxsim_Array__length(s.confetti___300793); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C49403_VT)) failedCast(r0); + r0 = s.arg0.fields["layers"]; + s.tmp_1 = r0; + r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - s.tmp_3 = particles_ShapeFactory_addShape__P292165_mk(s); - s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___300793, s.i___300809); - s.tmp_3.arg1 = r0; - s.callLocIdx = 1239; s.pc = 4; return s.tmp_3; - case 4: - r0 = s.retval; - r0 = (s.i___300809 + 1); - s.i___300809 = (r0); - { step = 1; continue; } - case 2: - r0 = (s.arg0).fields["minLifespan"] = (1000); - r0 = (s.arg0).fields["maxLifespan"] = (4500); - r0 = undefined; + r0 = (s.tmp_0 === 2); return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P292169.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"]} +tiles_TileMapData_isWall__P49414.info = {"start":8182,"length":107,"line":274,"column":8,"endLine":276,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} -function particles_ConfettiFactory_constructor__P292169_mk(s) { +function tiles_TileMapData_isWall__P49414_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P292169, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isWall__P49414, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - confetti___300793: undefined, - i___300809: undefined, arg0: undefined, arg1: undefined, arg2: undefined, } } -const _hex300796 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex300798 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex300800 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex300802 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex300804 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_addShape__P292165(s) { +function scene_SimpleLocation_constructor__P53373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9479,38 +9826,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C292163_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["sources"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.arg1); - case 1: - case 2: + if (!checkSubtype(r0, scene_SimpleLocation__C53372_VT)) failedCast(r0); + r0 = (s.arg0).fields["col"] = (s.arg1); + r0 = (s.arg0).fields["row"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P292165.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} +scene_SimpleLocation_constructor__P53373.info = {"start":707,"length":55,"line":26,"column":8,"endLine":26,"endColumn":63,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","col","row"]} -function particles_ShapeFactory_addShape__P292165_mk(s) { +function scene_SimpleLocation_constructor__P53373_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P292165, depth: s.depth + 1, + parent: s, fn: scene_SimpleLocation_constructor__P53373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function particles_ShapeFactory_constructor__P292164(s) { +function scene_PrioritizedLocation_constructor__P53358(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9528,56 +9871,21 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C292163_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P292152_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = undefined; - s.tmp_0.arg4 = undefined; - s.callLocIdx = 1228; 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); + if (!checkSubtype(r0, scene_PrioritizedLocation__C53357_VT)) failedCast(r0); + r0 = (s.arg0).fields["loc"] = (s.arg1); + r0 = (s.arg0).fields["cost"] = (s.arg2); + r0 = (s.arg0).fields["totalCost"] = (s.arg3); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P292164.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} +scene_PrioritizedLocation_constructor__P53358.info = {"start":232,"length":158,"line":6,"column":8,"endLine":10,"endColumn":13,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","loc","cost","totalCost"]} -function particles_ShapeFactory_constructor__P292164_mk(s) { +function scene_PrioritizedLocation_constructor__P53358_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P292164, depth: s.depth + 1, + parent: s, fn: scene_PrioritizedLocation_constructor__P53358, depth: s.depth + 1, pc: 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, @@ -9588,7 +9896,7 @@ function particles_ShapeFactory_constructor__P292164_mk(s) { -function particles_AreaFactory_constructor__P292152(s) { +function scene_LocationNode_constructor__P53364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9603,75 +9911,36 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C292147_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P292142_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 = 1216; 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__C292009_VT); - s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P292011_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = undefined; - s.callLocIdx = 1217; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; - r0 = (s.arg0).fields["galois"] = (s.tmp_0); + if (!checkSubtype(r0, scene_LocationNode__C53363_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() } } } -particles_AreaFactory_constructor__P292152.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"]} +scene_LocationNode_constructor__P53364.info = {"start":471,"length":189,"line":16,"column":8,"endLine":22,"endColumn":9,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","l","parent","lastCost"]} -function particles_AreaFactory_constructor__P292152_mk(s) { +function scene_LocationNode_constructor__P53364_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P292152, depth: s.depth + 1, + parent: s, fn: scene_LocationNode_constructor__P53364, 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 effects_ScreenEffect_constructor__P292217(s) { +function scene_isWalkable__P53410(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9681,49 +9950,84 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.img___53931 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C292216_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P292213_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 = 1270; s.pc = 1; return s.tmp_0; + s.tmp_1 = tiles_TileMap_isObstacle__P49442_mk(s); + s.tmp_1.arg0 = s.arg2; + r0 = s.arg0.fields["col"]; + s.tmp_1.arg1 = r0; + r0 = s.arg0.fields["row"]; + s.tmp_1.arg2 = r0; + s.callLocIdx = 99; 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; } + r0 = false; + { step = 5; continue; } 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_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = true; + { step = 5; continue; } + case 3: + case 4: + s.tmp_4 = tiles_TileMap_getTileImage__P49445_mk(s); + s.tmp_4.arg0 = s.arg2; + s.tmp_5 = tiles_TileMap_getTileIndex__P49436_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 = 100; s.pc = 8; return s.tmp_5; + case 8: r0 = s.retval; - r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); - r0 = undefined; + s.tmp_4.arg1 = r0; + s.callLocIdx = 101; s.pc = 7; return s.tmp_4; + case 7: + r0 = s.retval; + s.img___53931 = (r0); + r0 = pxsim_ImageMethods.equals(s.img___53931, s.arg1); + case 5: return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P292217.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"]} +scene_isWalkable__P53410.info = {"start":8578,"length":304,"line":230,"column":4,"endLine":235,"endColumn":5,"fileName":"a-star.ts","functionName":"isWalkable","argumentNames":["loc","onTilesOf","tm"]} -function effects_ScreenEffect_constructor__P292217_mk(s) { +function scene_isWalkable__P53410_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P292217, depth: s.depth + 1, + parent: s, fn: scene_isWalkable__P53410, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + img___53931: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function effects_ParticleEffect_constructor__P292213(s) { +function tiles_TileMap_getTileIndex__P49436(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9737,36 +10041,39 @@ 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, effects_ParticleEffect__C292212_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; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P49409_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 = 905; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_constructor__P292213.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"]} +tiles_TileMap_getTileIndex__P49436.info = {"start":11142,"length":105,"line":383,"column":8,"endLine":385,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} -function effects_ParticleEffect_constructor__P292213_mk(s) { +function tiles_TileMap_getTileIndex__P49436_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P292213, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P49436, 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 scene_Scene_init__P291864(s) { +function tiles_TileMap_data__P49426(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9781,117 +10088,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C291842_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__P291124_mk(s); - s.callLocIdx = 894; 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__P300886); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P289801_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 = 897; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P289801_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P291341; - s.callLocIdx = 898; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P300909); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P289801_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 = 900; s.pc = 7; return s.tmp_1; - case 7: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P300922); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P289801_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 = 904; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P300943); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P289801_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 = 906; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P300951); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P289801_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 = 910; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P289801_mk(s); - r0 = s.arg0.fields["eventContext"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P291182; - s.callLocIdx = 911; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P300980); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P289514_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___291862; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 913; s.pc = 12; return s.tmp_1; - case 12: - r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + return leaveAccessor(s, r0) default: oops() } } } -scene_Scene_init__P291864.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +tiles_TileMap_data__P49426.info = {"start":9388,"length":65,"line":321,"column":8,"endLine":323,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"data","argumentNames":["this"]} +tiles_TileMap_data__P49426.isGetter = true; -function scene_Scene_init__P291864_mk(s) { +function tiles_TileMap_data__P49426_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P291864, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_data__P49426, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, } } @@ -9899,7 +10108,7 @@ function scene_Scene_init__P291864_mk(s) { -function inline__P300886(s) { +function tiles_TileMapData_getTile__P49409(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9909,47 +10118,73 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = s.caps[0]; - r0 = s.tmp_0.fields["_millis"]; + 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__C49403_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P49415_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 882; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 3; continue; } + case 1: + case 2: + r0 = s.arg0.fields["data"]; s.tmp_2 = r0; - r0 = s.caps[0].fields["eventContext"]; - r0 = r0.fields["deltaTimeMillis"]; + 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 = (s.tmp_2 + s.tmp_3); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_millis"] = (s.tmp_1); - s.tmp_0 = controller___update__P291369_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 = 896; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); + case 3: return leave(s, r0) default: oops() } } } -inline__P300886.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +tiles_TileMapData_getTile__P49409.info = {"start":6716,"length":200,"line":231,"column":8,"endLine":235,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function inline__P300886_mk(s) { +function tiles_TileMapData_getTile__P49409_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300886, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P49409, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P300909(s) { +function tiles_TileMap_getTileImage__P49445(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9959,41 +10194,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = PhysicsEngine__C291587_v4_2_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P49412_mk(s); + r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - r0 = s.caps[0].fields["eventContext"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["deltaTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 / 1000); - s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C291587_VT)) failedCast(s.tmp_0.arg0); - s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; - s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 965; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P300909.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +tiles_TileMap_getTileImage__P49445.info = {"start":17461,"length":96,"line":552,"column":8,"endLine":554,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function inline__P300909_mk(s) { +function tiles_TileMap_getTileImage__P49445_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300909, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P49445, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P300922(s) { +function tiles_TileMapData_getTileImage__P49412(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10003,80 +10237,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dt___300923 = undefined; - s.s___300931 = undefined; - s.unnamed22634___U2 = undefined; - s.unnamed22635___U3 = undefined; - r0 = s.caps[0].fields["eventContext"]; + s.size___59463 = undefined; + s.cachedImage___59467 = undefined; + s.originalImage___59473 = 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__C49403_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; - r0 = s.tmp_0.fields["deltaTimeMillis"]; + r0 = (1 << s.tmp_0); + s.size___59463 = (r0); + r0 = s.arg0.fields["cachedTileView"]; + s.tmp_0 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); + s.cachedImage___59467 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___59467); s.tmp_1 = r0; - r0 = (s.tmp_1 / 1000); - s.dt___300923 = (r0); - s.tmp_0 = scene_Camera_update__P291799_mk(s); - r0 = s.caps[0].fields["camera"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 902; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.s___300931 = (undefined); - r0 = s.caps[0].fields["allSprites"]; - s.unnamed22634___U2 = (r0); - s.unnamed22635___U3 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed22635___U3; - r0 = pxsim_Array__length(s.unnamed22634___U2); + 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___59473 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___59473); + if (!r0) { step = 5; continue; } + r0 = pxsim_ImageMethods.width(s.originalImage___59473); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed22634___U2, s.unnamed22635___U3); - s.s___300931 = (r0); - s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___300931; - r0 = s.caps[0].fields["camera"]; - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___300923; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 903; 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 = 903; s.pc = 4; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 903; s.pc = 4; return s.tmp_2;; } - else { s.callLocIdx = 903; s.pc = 4; return s.tmp_2; } - } - case 4: - r0 = s.retval; - r0 = (s.unnamed22635___U3 + 1); - s.unnamed22635___U3 = (r0); - { step = 1; continue; } + r0 = (s.tmp_1 <= s.size___59463); + 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___59473); + s.tmp_2 = r0; + r0 = (s.tmp_2 <= s.size___59463); case 2: - s.unnamed22634___U2 = (undefined); - r0 = undefined; + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.cachedImage___59467 = (s.originalImage___59473); + { step = 4; continue; } + case 3: + r0 = pxsim.image.create(s.size___59463, s.size___59463); + s.cachedImage___59467 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___59467, s.originalImage___59473, 0, 0); + case 4: + r0 = s.arg0.fields["cachedTileView"]; + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___59467); + case 5: + case 6: + case 7: + case 8: + r0 = s.cachedImage___59467; return leave(s, r0) default: oops() } } } -inline__P300922.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +tiles_TileMapData_getTileImage__P49412.info = {"start":7318,"length":717,"line":251,"column":8,"endLine":268,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} -function inline__P300922_mk(s) { +function tiles_TileMapData_getTileImage__P49412_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300922, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P49412, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dt___300923: undefined, - s___300931: undefined, - unnamed22634___U2: undefined, - unnamed22635___U3: undefined, + tmp_3: undefined, + size___59463: undefined, + cachedImage___59467: undefined, + originalImage___59473: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P300943(s) { +function tiles_TileMapData_scale__P49407(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10086,30 +10334,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_Scene_render__P291869_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 905; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMapData__C49403_VT)) failedCast(r0); + r0 = s.arg0.fields["_scale"]; + return leaveAccessor(s, r0) default: oops() } } } -inline__P300943.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +tiles_TileMapData_scale__P49407.info = {"start":6528,"length":66,"line":222,"column":8,"endLine":224,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this"]} +tiles_TileMapData_scale__P49407.isGetter = true; -function inline__P300943_mk(s) { +function tiles_TileMapData_scale__P49407_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300943, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P49407, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, } } -function inline__P300951(s) { +function scene_locationOfSprite__P54258(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10119,108 +10369,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = globals.stats___291952; - 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___289796; - 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___289796; - if ((globals.control_EventContext_lastStats___289795) && (globals.control_EventContext_lastStats___289795).vtable) { - setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___289795); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___289795) + ""; } - 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: + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = tiles_getTileLocation__P49453_mk(s); + s.tmp_1 = scene_screenCoordinateToTile__P54472_mk(s); + s.tmp_2 = Sprite_x__P49096_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 172; s.pc = 3; return s.tmp_2; + case 3: 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 = 907; s.pc = 7; return s.tmp_2; - case 7: + s.tmp_1.arg0 = r0; + s.callLocIdx = 173; s.pc = 2; return s.tmp_1; + case 2: r0 = s.retval; - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___291951); - if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C291587_v3_1_mk(s); - r0 = s.caps[0].fields["physicsEngine"]; s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C291587_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; + s.tmp_3 = scene_screenCoordinateToTile__P54472_mk(s); + s.tmp_4 = Sprite_y__P49098_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 174; s.pc = 5; return s.tmp_4; case 5: - case 6: - s.tmp_0 = game_consoleOverlay_draw__P292077_mk(s); - s.callLocIdx = 908; s.pc = 12; return s.tmp_0; - case 12: r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P291125_mk(s); - s.callLocIdx = 909; s.pc = 13; return s.tmp_0; - case 13: + s.tmp_3.arg0 = r0; + s.callLocIdx = 175; s.pc = 4; return s.tmp_3; + case 4: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 176; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P300951.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +scene_locationOfSprite__P54258.info = {"start":10699,"length":156,"line":292,"column":4,"endLine":294,"endColumn":5,"fileName":"path-following.ts","functionName":"locationOfSprite","argumentNames":["s"]} -function inline__P300951_mk(s) { +function scene_locationOfSprite__P54258_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300951, depth: s.depth + 1, + parent: s, fn: scene_locationOfSprite__P54258, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, + arg0: undefined, } } -function inline__P300980(s) { +function scene_screenCoordinateToTile__P54472(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10230,29 +10431,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tm___54474 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = lambda_2_mk(s); - s.tmp_0.argL = s.arg0; - s.tmp_0.arg0 = s.caps[0]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 912; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 170; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; - r0 = undefined; + r0 = r0.fields["tileMap"]; + s.tm___54474 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tm___54474); + s.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___54474.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 >> s.tmp_3); + case 3: return leave(s, r0) default: oops() } } } -inline__P300980.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} +scene_screenCoordinateToTile__P54472.info = {"start":10521,"length":172,"line":286,"column":4,"endLine":290,"endColumn":5,"fileName":"path-following.ts","functionName":"screenCoordinateToTile","argumentNames":["value"]} -function inline__P300980_mk(s) { +function scene_screenCoordinateToTile__P54472_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300980, depth: s.depth + 1, + parent: s, fn: scene_screenCoordinateToTile__P54472, depth: s.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___54474: undefined, arg0: undefined, } } @@ -10260,7 +10479,7 @@ function inline__P300980_mk(s) { -function game_consoleOverlay_draw__P292077(s) { +function tiles_getTileLocation__P49453(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10270,191 +10489,65 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___301029 = undefined; - s.top___301034 = undefined; - s.i___301040 = undefined; - s.t___301053 = undefined; - s.tOff___301060 = undefined; - s.tab___301062 = undefined; - s.unnamed22638___U6 = undefined; - s.unnamed22639___U7 = undefined; - s.padding___301064 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___293711); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + s.scene___59665 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 969; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.scene___59665 = (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 = pxsim_numops_toBoolDecr(globals.instance___293665); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = (s.arg1 == undefined); case 2: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); if (!r0) { step = 3; continue; } - { step = 13; continue; } + r0 = s.tmp_1; + { step = 4; continue; } case 3: + r0 = s.scene___59665.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: - s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___293719; - 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 = 1121; s.pc = 14; return s.tmp_7; } - } - case 14: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_6 + 2); - s.height___301029 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___291952); + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 5; continue; } - r0 = s.height___301029; - { step = 6; continue; } + r0 = null; + { step = 7; continue; } case 5: - r0 = 0; case 6: - // jmp value (already in r0) - s.tmp_0 = r0; - r0 = (2 + s.tmp_0); - s.top___301034 = (r0); - s.i___301040 = (0); - case 7: - s.tmp_1 = r0 = s.i___301040; - r0 = pxsim_Array__length(globals.consoleStrings___293711); - 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___293711, s.i___301040); - s.tmp_5 = r0; - r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); - s.tmp_4 = r0; - r0 = (s.tmp_4 >= 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 10; continue; } - s.tmp_6 = helpers_stringSplit__P289526_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___293711, s.i___301040); - s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = "\t"; - s.tmp_6.arg2 = undefined; - s.callLocIdx = 1122; s.pc = 15; return s.tmp_6; - case 15: - r0 = s.retval; - s.t___301053 = (r0); - s.tOff___301060 = (0); - s.tab___301062 = (undefined); - s.unnamed22638___U6 = (s.t___301053); - s.unnamed22639___U7 = (0); - case 8: - s.tmp_0 = r0 = s.unnamed22639___U7; - r0 = pxsim_Array__length(s.unnamed22638___U6); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed22638___U6, s.unnamed22639___U7); - s.tab___301062 = (r0); - s.tmp_2 = r0 = globals.tabSize___293713; - s.tmp_5 = r0 = s.tOff___301060; - r0 = pxsim_String_.length(s.tab___301062); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___293713); - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.padding___301064 = (r0); - s.tmp_0 = helpers_imagePrint__P291179_mk(s); - s.tmp_0.arg0 = globals.screen___291221; - s.tmp_0.arg1 = s.tab___301062; - s.tmp_2 = r0 = s.tOff___301060; - s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___293719; - 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 = 1123; s.pc = 17; return s.tmp_4; } - } - case 17: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 * s.tmp_3); - s.tmp_1 = r0; - r0 = (4 + s.tmp_1); - s.tmp_0.arg2 = r0; - s.tmp_5 = r0 = s.top___301034; - r0 = (s.i___301040 * s.height___301029); - s.tmp_6 = r0; - r0 = (s.tmp_5 + s.tmp_6); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___293710; - s.tmp_0.arg5 = globals.consoleFont___293719; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1124; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.tmp_0 = r0 = s.tOff___301060; - r0 = pxsim_String_.length(s.tab___301062); - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___301064); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.tOff___301060 = (r0); - r0 = (s.unnamed22639___U7 + 1); - s.unnamed22639___U7 = (r0); - { step = 8; continue; } + s.tmp_5 = tiles_TileMap_getTile__P49435_mk(s); + r0 = s.scene___59665.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.tmp_5.arg2 = s.arg1; + s.callLocIdx = 970; s.pc = 9; return s.tmp_5; case 9: - s.unnamed22638___U6 = (undefined); - { step = 11; continue; } - case 10: - s.tmp_0 = helpers_imagePrint__P291179_mk(s); - s.tmp_0.arg0 = globals.screen___291221; - r0 = pxsim_Array__getAt(globals.consoleStrings___293711, s.i___301040); - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___301034; - r0 = (s.i___301040 * s.height___301029); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___293710; - s.tmp_0.arg5 = globals.consoleFont___293719; - s.tmp_0.arg6 = undefined; - s.callLocIdx = 1125; s.pc = 18; return s.tmp_0; - case 18: r0 = s.retval; - case 11: - r0 = (s.i___301040 + 1); - s.i___301040 = (r0); - { step = 7; continue; } - case 12: - case 13: - r0 = undefined; + case 7: return leave(s, r0) default: oops() } } } -game_consoleOverlay_draw__P292077.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} +tiles_getTileLocation__P49453.info = {"start":21464,"length":247,"line":662,"column":4,"endLine":666,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} -function game_consoleOverlay_draw__P292077_mk(s) { +function tiles_getTileLocation__P49453_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_draw__P292077, depth: s.depth + 1, + parent: s, fn: tiles_getTileLocation__P49453, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10462,24 +10555,16 @@ function game_consoleOverlay_draw__P292077_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - height___301029: undefined, - top___301034: undefined, - i___301040: undefined, - t___301053: undefined, - tOff___301060: undefined, - tab___301062: undefined, - unnamed22638___U6: undefined, - unnamed22639___U7: undefined, - padding___301064: undefined, + scene___59665: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_systemMenu_isVisible__P292058(s) { +function tiles_TileMap_getTile__P49435(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10489,33 +10574,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___293665); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + 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__C49421_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C49379_VT); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + s.tmp_1 = tiles_Location_constructor__P49380_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 = 903; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_isVisible__P292058.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} +tiles_TileMap_getTile__P49435.info = {"start":11021,"length":111,"line":379,"column":8,"endLine":381,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} -function scene_systemMenu_isVisible__P292058_mk(s) { +function tiles_TileMap_getTile__P49435_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_isVisible__P292058, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P49435, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function helpers_imagePrint__P291179(s) { +function scene__followPath__P50887(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10525,460 +10624,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___296974 = undefined; - s.cp___296976 = undefined; - s.mult___296977 = undefined; - s.dataW___296982 = undefined; - s.dataH___296988 = undefined; - s.byteHeight___296994 = undefined; - s.charSize___297000 = undefined; - s.dataSize___297004 = undefined; - s.fontdata___297008 = undefined; - s.lastchar___297011 = undefined; - s.imgBuf___297018 = undefined; - s.xOffset___297042 = undefined; - s.yOffset___297043 = undefined; - s.ch___297058 = undefined; - s.l___297077 = undefined; - s.r___297078 = undefined; - s.off___297080 = undefined; - s.guess___297081 = undefined; - s.m___297100 = undefined; - s.v___297109 = undefined; - s.i___297165 = undefined; - s.j___297170 = undefined; - s.mask___297171 = undefined; - s.c___297172 = undefined; - s.n___297189 = undefined; + s.store___54368 = undefined; + s.previousEl___54371 = undefined; + s.start___54381 = undefined; + s.pfs___54392 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.arg3 = (s.lambdaArgs[3]); - s.arg4 = (s.lambdaArgs[4]); - s.arg5 = (s.lambdaArgs[5]); - s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } - r0 = (s.arg2 | 0); - s.arg2 = (r0); - r0 = (s.arg3 | 0); - s.arg3 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg5); + 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; } - s.tmp_2 = image_getFontForText__P291166_mk(s); - s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 107; s.pc = 39; return s.tmp_2; - case 39: - r0 = s.retval; - s.arg5 = (r0); + { step = 19; continue; } case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.arg4); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg4 = (1); - case 3: - case 4: - s.x0___296974 = (s.arg2); - s.cp___296976 = (0); - s.tmp_1 = if_multiplier_1_mk(s); - s.tmp_1.arg0 = s.arg5; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "multiplier"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["multiplier"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["multiplier"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 108; s.pc = 40; return s.tmp_1; } - } - case 40: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = if_multiplier_1_mk(s); - s.tmp_2.arg0 = s.arg5; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 109; s.pc = 41; return s.tmp_2; } - } - case 41: - r0 = s.retval; - { step = 6; continue; } - case 5: - r0 = 1; - case 6: - // jmp value (already in r0) - s.tmp_3 = r0; - s.mult___296977 = (s.tmp_3); - s.tmp_1 = if_charWidth_1_mk(s); - s.tmp_1.arg0 = s.arg5; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charWidth"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charWidth"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charWidth"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 110; s.pc = 42; return s.tmp_1; } - } - case 42: + s.tmp_2 = scene_init__P53964_mk(s); + s.callLocIdx = 161; s.pc = 20; return s.tmp_2; + case 20: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___296977); - s.dataW___296982 = (r0); - s.tmp_1 = if_charHeight_1_mk(s); - s.tmp_1.arg0 = s.arg5; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 111; s.pc = 43; return s.tmp_1; } - } - case 43: + s.tmp_0 = scene_getPathFollowingSprites__P53985_mk(s); + s.callLocIdx = 162; s.pc = 21; return s.tmp_0; + case 21: r0 = s.retval; + s.store___54368 = (r0); + r0 = pxsim_pxtcore_mkAction(1, previousEl_inline__P54373); s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___296977); - s.dataH___296988 = (r0); - r0 = (s.dataH___296988 + 7); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 3); - s.byteHeight___296994 = (r0); - r0 = (s.byteHeight___296994 * s.dataW___296982); - s.charSize___297000 = (r0); - r0 = (2 + s.charSize___297000); - s.dataSize___297004 = (r0); - s.tmp_0 = if_data_1_mk(s); - s.tmp_0.arg0 = s.arg5; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "data"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["data"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["data"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 112; s.pc = 44; return s.tmp_0; } - } - case 44: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayFind__P47066_mk(s); + s.tmp_1.arg0 = s.store___54368; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 163; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; - s.fontdata___297008 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___297008); + s.previousEl___54371 = (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 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___297004); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.lastchar___297011 = (r0); - r0 = (s.mult___296977 == 1); + s.start___54381 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.start___54381); + s.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 = (8 + s.charSize___297000); - s.tmp_1 = r0; - r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___297018 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___297018, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___297018, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___297018, 2, s.dataW___296982); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___297018, 4, s.dataH___296988); + r0 = pxsim_numops_toBoolDecr(s.previousEl___54371); + if (!r0) { step = 5; continue; } + r0 = pxsim_Array_.removeElement(s.store___54368, s.previousEl___54371); + case 5: + case 6: + { step = 19; continue; } case 7: case 8: - case 9: - s.tmp_1 = r0 = s.cp___296976; - 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___297042 = (0); - s.yOffset___297043 = (0); - s.tmp_0 = r0 = s.arg6; + s.tmp_0 = r0 = s.previousEl___54371; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 10; continue; } + if (!r0) { step = 9; continue; } r0 = s.tmp_0; + { step = 12; continue; } + case 9: + r0 = pxsim_pxtcore_mkClassInstance(scene_PathFollowingSprite__C53950_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: - s.tmp_1 = r0 = s.cp___296976; - r0 = pxsim_Array__length(s.arg6); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = 50; case 11: // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 12; continue; } - s.tmp_4 = if_xOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___296976); - s.tmp_4.arg0 = r0; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["xOffset"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["xOffset"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 113; s.pc = 45; return s.tmp_4; } - } - case 45: - r0 = s.retval; - s.xOffset___297042 = (r0); - s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___296976); - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["yOffset"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["yOffset"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 114; s.pc = 46; return s.tmp_0; } - } - case 46: + s.tmp_4 = scene_PathFollowingSprite_constructor__P53951_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 = 164; s.pc = 23; return s.tmp_4; + case 23: r0 = s.retval; - s.yOffset___297043 = (r0); + r0 = s.tmp_1; case 12: + // jmp value (already in r0) + s.tmp_5 = r0; + s.pfs___54392 = (s.tmp_5); + r0 = pxsim_numops_toBoolDecr(s.previousEl___54371); + if (!r0) { step = 17; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 13; continue; } + r0 = (s.previousEl___54371).fields["speed"] = (s.arg2); case 13: - s.tmp_0 = r0 = s.cp___296976; - r0 = (s.tmp_0 + 1); - s.cp___296976 = (r0); - r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___297058 = (r0); - r0 = (s.ch___297058 == 10); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.arg3; - s.tmp_4 = if_charHeight_1_mk(s); - s.tmp_4.arg0 = s.arg5; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 115; s.pc = 47; return s.tmp_4; } - } - case 47: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 + 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.arg3 = (r0); - s.arg2 = (s.x0___296974); case 14: + r0 = (s.previousEl___54371).fields["path"] = (s.arg1); + r0 = (s.previousEl___54371).fields["index"] = (0); + r0 = pxsim_numops_toBoolDecr(s.arg3); + if (!r0) { step = 15; continue; } + r0 = (s.previousEl___54371).fields["onEndHandler"] = (s.arg3); case 15: - r0 = (s.ch___297058 < 32); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - { step = 9; continue; } case 16: + { step = 18; continue; } case 17: - s.l___297077 = (0); - s.r___297078 = (s.lastchar___297011); - s.off___297080 = (0); - r0 = (s.ch___297058 - 32); - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___297004); - s.guess___297081 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___297008, 4, s.guess___297081); - s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___297058); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.off___297080 = (s.guess___297081); - { step = 25; continue; } + r0 = (s.pfs___54392).fields["onEndHandler"] = (s.arg3); + r0 = pxsim_Array__push(s.store___54368, s.pfs___54392); case 18: - case 19: - r0 = (s.l___297077 <= s.r___297078); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___297077; - r0 = (s.r___297078 - s.l___297077); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); - s.m___297100 = (r0); - s.tmp_0 = r0 = s.fontdata___297008; - r0 = (s.m___297100 * s.dataSize___297004); - s.tmp_1 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___297109 = (r0); - r0 = (s.v___297109 == s.ch___297058); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.m___297100 * s.dataSize___297004); - s.off___297080 = (r0); - { step = 24; continue; } - case 20: - case 21: - r0 = (s.v___297109 < s.ch___297058); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.m___297100 + 1); - s.l___297077 = (r0); - { step = 23; continue; } - case 22: - r0 = (s.m___297100 - 1); - s.r___297078 = (r0); - case 23: - { step = 19; continue; } - case 24: - case 25: - r0 = (s.mult___296977 == 1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___297018; - s.tmp_3 = r0 = s.fontdata___297008; - r0 = (s.off___297080 + 2); - s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___297000); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P291146_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___297018; - r0 = (s.arg2 + s.xOffset___297042); - s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___297043); - s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = s.arg4; - s.callLocIdx = 116; s.pc = 48; return s.tmp_0; - case 48: - r0 = s.retval; - s.tmp_0 = r0 = s.arg2; - s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.arg5; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 117; s.pc = 49; return s.tmp_2; } - } - case 49: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.arg2 = (r0); - { step = 37; continue; } - case 26: - r0 = (s.off___297080 + 2); - s.off___297080 = (r0); - s.i___297165 = (0); - case 27: - r0 = (s.i___297165 < s.dataW___296982); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 36; continue; } - s.j___297170 = (0); - s.mask___297171 = (1); - s.tmp_0 = r0 = s.off___297080; - r0 = (s.tmp_0 + 1); - s.off___297080 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___297008, s.tmp_0); - s.c___297172 = (r0); - case 28: - r0 = (s.j___297170 < s.dataH___296988); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 35; continue; } - r0 = (s.mask___297171 == 256); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___297080; - r0 = (s.tmp_2 + 1); - s.off___297080 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___297008, s.tmp_2); - s.c___297172 = (r0); - s.mask___297171 = (1); - case 29: - case 30: - s.n___297189 = (0); - case 31: - r0 = (s.c___297172 & s.mask___297171); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 32; continue; } - r0 = (s.n___297189 + 1); - s.n___297189 = (r0); - r0 = (s.mask___297171 << 1); - s.mask___297171 = (r0); - { step = 31; continue; } - case 32: - r0 = pxsim_numops_toBoolDecr(s.n___297189); - if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P291147_mk(s); + s.tmp_0 = scene_setVelocityTowards__P54100_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___297042 * s.mult___296977); - 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___297170 + s.yOffset___297043); - s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___296977); - s.tmp_4 = r0; - r0 = (s.tmp_3 + s.tmp_4); + s.tmp_0.arg1 = s.start___54381; + r0 = s.pfs___54392.fields["speed"]; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___296977; - r0 = (s.mult___296977 * s.n___297189); - s.tmp_0.arg4 = r0; - s.tmp_0.arg5 = s.arg4; - s.callLocIdx = 118; s.pc = 50; return s.tmp_0; - case 50: + s.callLocIdx = 165; s.pc = 24; return s.tmp_0; + case 24: r0 = s.retval; - r0 = (s.j___297170 + s.n___297189); - s.j___297170 = (r0); - { step = 34; continue; } - case 33: - r0 = (s.mask___297171 << 1); - s.mask___297171 = (r0); - r0 = (s.j___297170 + 1); - s.j___297170 = (r0); - case 34: - { step = 28; continue; } - case 35: - r0 = (s.arg2 + s.mult___296977); - s.arg2 = (r0); - r0 = (s.i___297165 + 1); - s.i___297165 = (r0); - { step = 27; continue; } - case 36: - case 37: - { step = 9; continue; } - case 38: + case 19: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrint__P291179.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} +scene__followPath__P50887.info = {"start":8646,"length":1001,"line":223,"column":4,"endLine":259,"endColumn":5,"fileName":"path-following.ts","functionName":"_followPath","argumentNames":["sprite","path","speed","endCb"]} -function helpers_imagePrint__P291179_mk(s) { +function scene__followPath__P50887_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P291179, depth: s.depth + 1, + parent: s, fn: scene__followPath__P50887, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10986,45 +10764,21 @@ function helpers_imagePrint__P291179_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - x0___296974: undefined, - cp___296976: undefined, - mult___296977: undefined, - dataW___296982: undefined, - dataH___296988: undefined, - byteHeight___296994: undefined, - charSize___297000: undefined, - dataSize___297004: undefined, - fontdata___297008: undefined, - lastchar___297011: undefined, - imgBuf___297018: undefined, - xOffset___297042: undefined, - yOffset___297043: undefined, - ch___297058: undefined, - l___297077: undefined, - r___297078: undefined, - off___297080: undefined, - guess___297081: undefined, - m___297100: undefined, - v___297109: undefined, - i___297165: undefined, - j___297170: undefined, - mask___297171: undefined, - c___297172: undefined, - n___297189: undefined, + store___54368: undefined, + previousEl___54371: undefined, + start___54381: undefined, + pfs___54392: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, - arg4: undefined, - arg5: undefined, - arg6: undefined, } } -function image_getFontForText__P291166(s) { +function previousEl_inline__P54373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11034,123 +10788,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___297422 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.i___297422 = (0); - case 1: - s.tmp_1 = r0 = s.i___297422; - r0 = pxsim_String_.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.arg0.fields["sprite"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_String_.charCodeAt(s.arg0, s.i___297422); - 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___291165; - { step = 5; continue; } - case 2: - case 3: - r0 = (s.i___297422 + 1); - s.i___297422 = (r0); - { step = 1; continue; } - case 4: - r0 = globals.font8___291164; - case 5: - return leave(s, r0) - default: oops() -} } } -image_getFontForText__P291166.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__P291166_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: image_getFontForText__P291166, depth: s.depth + 1, - pc: 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___297422: undefined, - arg0: undefined, -} } - - - - - -function helpers_imageFillRect__P291147(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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; - } - s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P293152_mk(s); - s.tmp_2.arg0 = s.arg1; - s.tmp_2.arg1 = s.arg2; - s.callLocIdx = 89; s.pc = 1; return s.tmp_2; - case 1: - r0 = s.retval; - s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P293152_mk(s); - s.tmp_4.arg0 = s.arg3; - s.tmp_4.arg1 = s.arg4; - s.callLocIdx = 90; s.pc = 2; return s.tmp_4; - case 2: - r0 = s.retval; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); - r0 = undefined; + r0 = (s.tmp_0 === s.caps[0]); return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P291147.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"]} +previousEl_inline__P54373.info = {"start":8897,"length":26,"line":229,"column":38,"endLine":229,"endColumn":64,"fileName":"path-following.ts","functionName":"inline","argumentNames":["el"]} -function helpers_imageFillRect__P291147_mk(s) { +function previousEl_inline__P54373_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P291147, depth: s.depth + 1, + parent: s, fn: previousEl_inline__P54373, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, - arg5: undefined, } } -function helpers_imageDrawIcon__P291146(s) { +function scene_PathFollowingSprite_constructor__P53951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11165,46 +10828,36 @@ 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; } - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P293152_mk(s); - s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 88; s.pc = 1; return s.tmp_3; - case 1: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); + r0 = s.arg0; + if (!checkSubtype(r0, scene_PathFollowingSprite__C53950_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() } } } -helpers_imageDrawIcon__P291146.info = {"start":3500,"length":145,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} +scene_PathFollowingSprite_constructor__P53951.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 helpers_imageDrawIcon__P291146_mk(s) { +function scene_PathFollowingSprite_constructor__P53951_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P291146, depth: s.depth + 1, + parent: s, fn: scene_PathFollowingSprite_constructor__P53951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, - arg4: undefined, } } -function helpers_stringSplit__P289526(s) { +function helpers_arrayFind__P47066(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11214,186 +10867,69 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___297969 = undefined; - s.lim___297971 = undefined; - s.s___297987 = undefined; - s.p___297990 = undefined; - s.R___297991 = undefined; - s.z___298005 = undefined; - s.T___298018 = undefined; - s.q___298019 = undefined; - s.e___298025 = undefined; + s.len___59697 = undefined; + s.i___59700 = undefined; + s.v___59705 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_Array__mk(); - s.A___297969 = (r0); - s.lim___297971 = (0); - r0 = (s.arg2 === undefined); + r0 = pxsim_Array__length(s.arg0); + s.len___59697 = (r0); + s.i___59700 = (0); + case 1: + r0 = (s.i___59700 < s.len___59697); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (536870912 - 1); - s.lim___297971 = (r0); - { step = 4; continue; } - case 1: - r0 = (s.arg2 < 0); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.arg0, s.i___59700); + s.v___59705 = (r0); + s.tmp_1 = lambda_3_mk(s); + s.tmp_1.argL = s.arg1; + s.tmp_1.arg0 = s.v___59705; + s.tmp_1.arg1 = s.i___59700; + setupLambda(s.tmp_1, s.tmp_1.argL); + 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; } - s.lim___297971 = (0); - { step = 3; continue; } + r0 = s.v___59705; + { step = 5; continue; } case 2: - r0 = (s.arg2 | 0); - s.lim___297971 = (r0); case 3: + r0 = (s.i___59700 + 1); + s.i___59700 = (r0); + { step = 1; continue; } case 4: - r0 = pxsim_String_.length(s.arg0); - s.s___297987 = (r0); - s.p___297990 = (0); - s.R___297991 = (s.arg1); - r0 = (s.lim___297971 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = s.A___297969; - { step = 21; continue; } + r0 = undefined; case 5: - case 6: - r0 = (s.arg1 === undefined); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 7; continue; } - r0 = pxsim_Array_.setAt(s.A___297969, 0, s.arg0); - r0 = s.A___297969; - { step = 21; continue; } - case 7: - case 8: - r0 = (s.s___297987 == 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P293001_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___297991; - s.callLocIdx = 11; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - s.z___298005 = (r0); - r0 = (s.z___298005 > -1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.A___297969; - { step = 21; continue; } - case 9: - case 10: - r0 = pxsim_Array_.setAt(s.A___297969, 0, s.arg0); - r0 = s.A___297969; - { step = 21; continue; } - case 11: - case 12: - s.q___298019 = (s.p___297990); - case 13: - r0 = (s.q___298019 != s.s___297987); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P293001_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___298019; - s.tmp_1.arg2 = s.R___297991; - s.callLocIdx = 12; s.pc = 23; return s.tmp_1; - case 23: - r0 = s.retval; - s.e___298025 = (r0); - r0 = (s.e___298025 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.q___298019 + 1); - s.q___298019 = (r0); - { step = 19; continue; } - case 14: - r0 = (s.e___298025 == s.p___297990); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - r0 = (s.q___298019 + 1); - s.q___298019 = (r0); - { step = 18; continue; } - case 15: - s.tmp_0 = helpers_stringSlice__P289524_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___297990; - s.tmp_0.arg2 = s.q___298019; - s.callLocIdx = 13; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.T___298018 = (r0); - r0 = pxsim_Array__push(s.A___297969, s.T___298018); - r0 = pxsim_Array__length(s.A___297969); - s.tmp_1 = r0; - r0 = (s.tmp_1 == s.lim___297971); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - r0 = s.A___297969; - { step = 21; continue; } - case 16: - case 17: - s.p___297990 = (s.e___298025); - s.q___298019 = (s.p___297990); - case 18: - case 19: - { step = 13; continue; } - case 20: - s.tmp_0 = helpers_stringSlice__P289524_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___297990; - s.tmp_0.arg2 = s.q___298019; - s.callLocIdx = 14; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.T___298018 = (r0); - r0 = pxsim_Array__push(s.A___297969, s.T___298018); - r0 = s.A___297969; - case 21: return leave(s, r0) default: oops() } } } -helpers_stringSplit__P289526.info = {"start":12454,"length":1319,"line":420,"column":4,"endLine":464,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} +helpers_arrayFind__P47066.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_stringSplit__P289526_mk(s) { +function helpers_arrayFind__P47066_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P289526, depth: s.depth + 1, + parent: s, fn: helpers_arrayFind__P47066, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___297969: undefined, - lim___297971: undefined, - s___297987: undefined, - p___297990: undefined, - R___297991: undefined, - z___298005: undefined, - T___298018: undefined, - q___298019: undefined, - e___298025: undefined, + len___59697: undefined, + i___59700: undefined, + v___59705: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function helpers_splitMatch__P293001(s) { +function scene_getRemainingPath__P54235(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11403,65 +10939,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___298070 = undefined; - s.s___298073 = undefined; - s.i___298083 = undefined; + s.currentLocation___54496 = undefined; + s.i___54500 = undefined; + s.pathTile___54506 = undefined; + s.remainingPath___54521 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_String_.length(s.arg2); - s.r___298070 = (r0); - r0 = pxsim_String_.length(s.arg0); - s.s___298073 = (r0); - r0 = (s.arg1 + s.r___298070); + s.tmp_0 = scene_locationOfSprite__P54258_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 177; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.currentLocation___54496 = (r0); + r0 = pxsim_pxtrt.mklocRef(); + s.i___54500 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.i___54500, 0); + case 1: + r0 = pxsim_pxtrt_ldlocRef(s.i___54500); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___298073); + 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 = -1; - { step = 7; continue; } - case 1: + if (!r0) { step = 8; continue; } + s.tmp_3 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.i___54500); + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); + s.pathTile___54506 = (r0); + s.tmp_2 = tiles_Location_x__P49384_mk(s); + s.tmp_2.arg0 = s.currentLocation___54496; + s.callLocIdx = 178; s.pc = 11; return s.tmp_2; + case 11: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = tiles_Location_x__P49384_mk(s); + s.tmp_4.arg0 = s.pathTile___54506; + s.callLocIdx = 179; 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.i___298083 = (0); + s.tmp_6 = tiles_Location_y__P49385_mk(s); + s.tmp_6.arg0 = s.currentLocation___54496; + s.callLocIdx = 180; s.pc = 13; return s.tmp_6; + case 13: + r0 = s.retval; + s.tmp_5 = r0; + s.tmp_8 = tiles_Location_y__P49385_mk(s); + s.tmp_8.arg0 = s.pathTile___54506; + s.callLocIdx = 181; 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: - r0 = (s.i___298083 < s.r___298070); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_9); if (!r0) { step = 6; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = (s.arg1 + s.i___298083); - 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___298083); - s.tmp_5 = r0; - r0 = (s.tmp_2 != s.tmp_5); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.i___54500); + 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 = -1; - { step = 7; continue; } + r0 = s.arg1; + { step = 5; continue; } case 4: + r0 = pxsim_pxtcore_mkAction(1, remainingPath_inline__P54528); + s.tmp_12 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_12, 0, s.i___54500); + s.tmp_13 = helpers_arrayFilter__P47065_mk(s); + s.tmp_13.arg0 = s.arg1; + s.tmp_13.arg1 = s.tmp_12; + s.callLocIdx = 182; s.pc = 15; return s.tmp_13; + case 15: + r0 = s.retval; case 5: - r0 = (s.i___298083 + 1); - s.i___298083 = (r0); - { step = 3; continue; } + // jmp value (already in r0) + s.tmp_14 = r0; + s.remainingPath___54521 = (s.tmp_14); + r0 = s.remainingPath___54521; + { step = 9; continue; } case 6: - r0 = (s.arg1 + s.r___298070); case 7: + s.tmp_0 = r0 = s.i___54500; + r0 = pxsim_pxtrt_ldlocRef(s.i___54500); + 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() } } } -helpers_splitMatch__P293001.info = {"start":13779,"length":289,"line":466,"column":4,"endLine":475,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} +scene_getRemainingPath__P54235.info = {"start":10861,"length":497,"line":296,"column":4,"endLine":306,"endColumn":5,"fileName":"path-following.ts","functionName":"getRemainingPath","argumentNames":["sprite","path"]} -function helpers_splitMatch__P293001_mk(s) { +function scene_getRemainingPath__P54235_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P293001, depth: s.depth + 1, + parent: s, fn: scene_getRemainingPath__P54235, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11469,19 +11060,28 @@ function helpers_splitMatch__P293001_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - r___298070: undefined, - s___298073: undefined, - i___298083: 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___54496: undefined, + i___54500: undefined, + pathTile___54506: undefined, + remainingPath___54521: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function helpers_stringSlice__P289524(s) { +function remainingPath_inline__P54528(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11491,81 +11091,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___297723 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_String_.length(s.arg0); - s.len___297723 = (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__P289534_mk(s); - r0 = (s.len___297723 + s.arg1); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 10; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.arg1 = (r0); - case 1: - case 2: - r0 = (s.arg2 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - s.arg2 = (s.len___297723); - { step = 6; continue; } - case 3: - r0 = (s.arg2 === null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.arg2 = (0); - case 4: - case 5: - case 6: - r0 = (s.arg2 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = (s.len___297723 + s.arg2); - s.arg2 = (r0); - case 7: - case 8: - s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = (s.arg2 - s.arg1); - s.tmp_2 = r0; - r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2); + s.tmp_0 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_1 = r0; + r0 = (s.tmp_0 >= s.tmp_1); return leave(s, r0) default: oops() } } } -helpers_stringSlice__P289524.info = {"start":11496,"length":440,"line":384,"column":4,"endLine":402,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} +remainingPath_inline__P54528.info = {"start":11252,"length":16,"line":301,"column":67,"endLine":301,"endColumn":83,"fileName":"path-following.ts","functionName":"inline","argumentNames":["_","j"]} -function helpers_stringSlice__P289524_mk(s) { +function remainingPath_inline__P54528_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P289524, depth: s.depth + 1, + parent: s, fn: remainingPath_inline__P54528, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - len___297723: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_Scene_render__P291869(s) { +function tiles_TileMap_isOnWall__P49444(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11575,245 +11130,127 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___301178 = undefined; - s.unnamed22636___U1 = undefined; - s.unnamed22637___U2 = undefined; + s.hbox___59735 = undefined; + s.left___59738 = undefined; + s.right___59744 = undefined; + s.top___59750 = undefined; + s.bottom___59756 = undefined; + s.col___59762 = undefined; + s.row___59768 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C291842_VT)) failedCast(r0); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 4); + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = s.arg1.fields["_hitbox"]; + s.hbox___59735 = (r0); + s.tmp_1 = game_Hitbox_left__P48961_mk(s); + s.tmp_1.arg0 = s.hbox___59735; + s.callLocIdx = 951; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 11; continue; } - case 1: - case 2: - s.tmp_2 = r0 = s.arg0; - r0 = s.tmp_2.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 | 4); + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 8); s.tmp_3 = r0; - r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); + r0 = (s.tmp_0 >> s.tmp_3); + s.left___59738 = (r0); + s.tmp_1 = game_Hitbox_right__P48963_mk(s); + s.tmp_1.arg0 = s.hbox___59735; + s.callLocIdx = 954; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["previousScene"]; - case 4: - // jmp value (already in r0) + r0 = s.arg0.fields["_scale"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 5; continue; } - s.tmp_3 = scene_Scene_render__P291869_mk(s); - r0 = s.arg0.fields["previousScene"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 915; s.pc = 12; return s.tmp_3; - case 12: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = scene_Background_draw__P291704_mk(s); - r0 = s.arg0.fields["background"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 916; s.pc = 13; return s.tmp_0; - case 13: + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.right___59744 = (r0); + s.tmp_1 = game_Hitbox_top__P48962_mk(s); + s.tmp_1.arg0 = s.hbox___59735; + s.callLocIdx = 957; s.pc = 10; return s.tmp_1; + case 10: r0 = s.retval; - case 6: - r0 = s.arg0.fields["flags"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 & 1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P289510_mk(s); - r0 = s.arg0.fields["allSprites"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P301155; - s.callLocIdx = 921; s.pc = 14; return s.tmp_2; - case 14: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + r0 = s.arg0.fields["_scale"]; s.tmp_2 = r0; - r0 = (s.tmp_2 & -2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 7: - case 8: - s.s___301178 = (undefined); - r0 = s.arg0.fields["allSprites"]; - s.unnamed22636___U1 = (r0); - s.unnamed22637___U2 = (0); - case 9: - s.tmp_0 = r0 = s.unnamed22637___U2; - r0 = pxsim_Array__length(s.unnamed22636___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed22636___U1, s.unnamed22637___U2); - s.s___301178 = (r0); - s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___301178; - r0 = s.arg0.fields["camera"]; - s.tmp_2.arg1 = r0; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__draw"), 2); - s.callLocIdx = 922; s.pc = 15; return s.tmp_2; - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["__draw"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__draw"], 2); s.callLocIdx = 922; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 922; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 922; s.pc = 15; return s.tmp_2; } - } - case 15: + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.top___59750 = (r0); + s.tmp_1 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_1.arg0 = s.hbox___59735; + s.callLocIdx = 960; s.pc = 11; return s.tmp_1; + case 11: r0 = s.retval; - r0 = (s.unnamed22637___U2 + 1); - s.unnamed22637___U2 = (r0); - { step = 9; continue; } - case 10: - s.unnamed22636___U1 = (undefined); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["flags"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["_scale"]; s.tmp_2 = r0; - r0 = (s.tmp_2 & -5); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); - case 11: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Scene_render__P291869.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__P291869_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_render__P291869, depth: s.depth + 1, - pc: 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___301178: undefined, - unnamed22636___U1: undefined, - unnamed22637___U2: undefined, - arg0: undefined, -} } - - - - - -function inline__P301155(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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_2 = if_z_1_mk(s); + r0 = (s.tmp_2 + 8); + s.tmp_3 = r0; + r0 = (s.tmp_0 >> s.tmp_3); + s.bottom___59756 = (r0); + s.col___59762 = (s.left___59738); + case 1: + r0 = (s.col___59762 <= s.right___59744); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.row___59768 = (s.top___59750); + case 2: + r0 = (s.row___59768 <= s.bottom___59756); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = tiles_TileMap_isObstacle__P49442_mk(s); s.tmp_2.arg0 = s.arg0; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "z"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["z"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["z"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 917; s.pc = 3; return s.tmp_2; } - } - case 3: + s.tmp_2.arg1 = s.col___59762; + s.tmp_2.arg2 = s.row___59768; + s.callLocIdx = 963; s.pc = 12; return s.tmp_2; + case 12: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = if_z_1_mk(s); - s.tmp_4.arg0 = s.arg1; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "z"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["z"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["z"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 918; s.pc = 4; return s.tmp_4; } - } + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = true; + { step = 7; continue; } + case 3: 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; + r0 = (s.row___59768 + 1); + s.row___59768 = (r0); { step = 2; continue; } - case 1: - s.tmp_6 = if_id_1_mk(s); - s.tmp_6.arg0 = s.arg0; - if (!s.tmp_6.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id"); - } else { - s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; - if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } - else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 919; s.pc = 5; return s.tmp_6; } - } case 5: - r0 = s.retval; - s.tmp_5 = r0; - s.tmp_8 = if_id_1_mk(s); - s.tmp_8.arg0 = s.arg1; - if (!s.tmp_8.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "id"); - } else { - s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["id"]; - if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["id"]; } - else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 920; s.pc = 6; return s.tmp_8; } - } + r0 = (s.col___59762 + 1); + s.col___59762 = (r0); + { step = 1; continue; } case 6: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_5 - s.tmp_7); - case 2: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = s.tmp_9; + r0 = false; + case 7: return leave(s, r0) default: oops() } } } -inline__P301155.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +tiles_TileMap_isOnWall__P49444.info = {"start":16824,"length":627,"line":533,"column":8,"endLine":550,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} -function inline__P301155_mk(s) { +function tiles_TileMap_isOnWall__P49444_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P301155, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P49444, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, + hbox___59735: undefined, + left___59738: undefined, + right___59744: undefined, + top___59750: undefined, + bottom___59756: undefined, + col___59762: undefined, + row___59768: undefined, arg0: undefined, arg1: undefined, } } @@ -11822,7 +11259,7 @@ function inline__P301155_mk(s) { -function scene_Background_draw__P291704(s) { +function game_Hitbox_bottom__P48964(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11837,49 +11274,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C291695_VT)) failedCast(r0); - r0 = s.arg0.fields["color"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___291221, 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"]; + if (!checkSubtype(r0, game_Hitbox__C48953_VT)) failedCast(r0); + r0 = s.arg0.fields["height"]; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___291221, s.tmp_1, 0, 0); + s.tmp_3 = game_Hitbox_top__P48962_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 227; s.pc = 1; return s.tmp_3; 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__P301210); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P289514_mk(s); - r0 = s.arg0.fields["_layers"]; - s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 765; s.pc = 5; return s.tmp_2; - case 5: r0 = s.retval; - case 3: - case 4: - r0 = undefined; - return leave(s, r0) + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 256); + return leaveAccessor(s, r0) default: oops() } } } -scene_Background_draw__P291704.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +game_Hitbox_bottom__P48964.info = {"start":803,"length":139,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"bottom","argumentNames":["this"]} +game_Hitbox_bottom__P48964.isGetter = true; -function scene_Background_draw__P291704_mk(s) { +function game_Hitbox_bottom__P48964_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P291704, depth: s.depth + 1, + parent: s, fn: game_Hitbox_bottom__P48964, depth: s.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, } } @@ -11887,7 +11308,7 @@ function scene_Background_draw__P291704_mk(s) { -function inline__P301210(s) { +function game_Hitbox_right__P48963(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11897,58 +11318,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___301212 = undefined; - s.oy___301223 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetX"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; - s.tmp_3 = r0; - r0 = (1 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.ox___301212 = (r0); - r0 = s.caps[0].fields["camera"]; - r0 = r0.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["distance"]; - s.tmp_3 = r0; - r0 = (1 + s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 / s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim.Math_.round(s.tmp_0); - s.oy___301223 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P291713_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___301212; - s.tmp_0.arg2 = s.oy___301223; - s.callLocIdx = 764; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, game_Hitbox__C48953_VT)) failedCast(r0); + r0 = s.arg0.fields["width"]; + s.tmp_1 = r0; + s.tmp_3 = game_Hitbox_left__P48961_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 224; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; - r0 = undefined; - return leave(s, r0) + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 256); + return leaveAccessor(s, r0) default: oops() } } } -inline__P301210.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +game_Hitbox_right__P48963.info = {"start":655,"length":138,"line":26,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"right","argumentNames":["this"]} +game_Hitbox_right__P48963.isGetter = true; -function inline__P301210_mk(s) { +function game_Hitbox_right__P48963_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P301210, depth: s.depth + 1, + parent: s, fn: game_Hitbox_right__P48963, depth: s.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___301212: undefined, - oy___301223: undefined, arg0: undefined, } } @@ -11956,7 +11357,7 @@ function inline__P301210_mk(s) { -function scene_BackgroundLayer_draw__P291713(s) { +function game_Hitbox_top__P48962(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11966,251 +11367,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___301241 = undefined; - s.h___301244 = undefined; - s.pw___301247 = undefined; - s.ph___301251 = undefined; - s.rx___301260 = undefined; - s.ry___301263 = undefined; - s.y___301332 = undefined; - s.py___301333 = undefined; - s.dh___301342 = undefined; - s.x___301350 = undefined; - s.rxl___301351 = undefined; - s.px___301357 = undefined; - s.dw___301361 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C291705_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___291221); - s.w___301241 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___291221); - s.h___301244 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___301247 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___301251 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___301247); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___301251); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - { step = 23; continue; } - case 3: - case 4: - r0 = (0 - s.arg1); - s.rx___301260 = (r0); - r0 = (0 - s.arg2); - s.ry___301263 = (r0); - r0 = s.arg0.fields["alignX"]; - s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); - if (r0) { step = 5; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 5: - s.tmp_1 = r0 = s.rx___301260; - r0 = (s.w___301241 + s.pw___301247); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.rx___301260 = (r0); - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.rx___301260; - r0 = (s.w___301241 + s.pw___301247); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.rx___301260 = (r0); - case 7: - r0 = s.arg0.fields["alignY"]; + if (!checkSubtype(r0, game_Hitbox__C48953_VT)) failedCast(r0); + r0 = s.arg0.fields["oy"]; s.tmp_0 = r0; - r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); - if (r0) { step = 8; continue; } - r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); - if (r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 10; continue; } - case 8: - s.tmp_1 = r0 = s.ry___301263; - r0 = (s.h___301244 + s.ph___301251); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.ry___301263 = (r0); - { step = 10; continue; } - case 9: - s.tmp_0 = r0 = s.ry___301263; - r0 = (s.h___301244 + s.ph___301251); + r0 = s.arg0.fields["parent"]; + r0 = r0.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 - s.tmp_1); - s.ry___301263 = (r0); - case 10: - r0 = (s.rx___301260 % s.w___301241); - s.rx___301260 = (r0); - r0 = (s.rx___301260 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = (s.rx___301260 + s.w___301241); - s.rx___301260 = (r0); - case 11: - case 12: - r0 = (s.ry___301263 % s.h___301244); - s.ry___301263 = (r0); - r0 = (s.ry___301263 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (s.ry___301263 + s.h___301244); - s.ry___301263 = (r0); - case 13: - case 14: - r0 = pxsim.Math_.floor(s.rx___301260); - s.rx___301260 = (r0); - r0 = pxsim.Math_.floor(s.ry___301263); - s.ry___301263 = (r0); - s.y___301332 = (0); - s.py___301333 = (0); - case 15: - r0 = (s.y___301332 < s.h___301244); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 22; continue; } - r0 = (s.y___301332 % s.ph___301251); - s.py___301333 = (r0); - s.tmp_0 = Math_min__P289535_mk(s); - r0 = (s.ph___301251 - s.py___301333); - s.tmp_0.arg0 = r0; - r0 = (s.h___301244 - s.ry___301263); - s.tmp_0.arg1 = r0; - s.callLocIdx = 767; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.dh___301342 = (r0); - s.x___301350 = (0); - s.rxl___301351 = (s.rx___301260); - case 16: - r0 = (s.x___301350 < s.w___301241); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 19; continue; } - r0 = (s.x___301350 % s.pw___301247); - s.px___301357 = (r0); - s.tmp_0 = Math_min__P289535_mk(s); - r0 = (s.pw___301247 - s.px___301357); - s.tmp_0.arg0 = r0; - r0 = (s.w___301241 - s.rxl___301351); - s.tmp_0.arg1 = r0; - s.callLocIdx = 768; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.dw___301361 = (r0); - r0 = s.arg0.fields["img"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___291221, s.tmp_0, s.rxl___301351, s.ry___301263); - r0 = (s.rxl___301351 + s.dw___301361); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___301241); - s.rxl___301351 = (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___301361; - { step = 18; continue; } - case 17: - r0 = s.w___301241; - case 18: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = (s.x___301350 + s.tmp_1); - s.x___301350 = (r0); - { step = 16; continue; } - case 19: - r0 = (s.ry___301263 + s.dh___301342); - s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___301244); - s.ry___301263 = (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___301342; - { step = 21; continue; } - case 20: - r0 = s.h___301244; - case 21: - // jmp value (already in r0) + r0 = (s.tmp_2 & -256); s.tmp_1 = r0; - r0 = (s.y___301332 + s.tmp_1); - s.y___301332 = (r0); - { step = 15; continue; } - case 22: - case 23: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P291713.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"]} +game_Hitbox_top__P48962.info = {"start":562,"length":83,"line":22,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"top","argumentNames":["this"]} +game_Hitbox_top__P48962.isGetter = true; -function scene_BackgroundLayer_draw__P291713_mk(s) { +function game_Hitbox_top__P48962_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P291713, depth: s.depth + 1, + parent: s, fn: game_Hitbox_top__P48962, depth: s.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___301241: undefined, - h___301244: undefined, - pw___301247: undefined, - ph___301251: undefined, - rx___301260: undefined, - ry___301263: undefined, - y___301332: undefined, - py___301333: undefined, - dh___301342: undefined, - x___301350: undefined, - rxl___301351: undefined, - px___301357: undefined, - dw___301361: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function scene_Camera_update__P291799(s) { +function game_Hitbox_left__P48961(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12220,182 +11412,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___301442 = undefined; - s.percentComplete___301456 = undefined; - s.damp___301463 = undefined; - s.f___301472 = undefined; - s.x___301478 = undefined; - s.y___301485 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C291783_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__P291789_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_3 = Sprite_x__P291451_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_3.arg0 = r0; - s.callLocIdx = 876; s.pc = 10; return s.tmp_3; - case 10: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___291221); - s.tmp_5 = r0; - r0 = (s.tmp_5 >> 1); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg1 = r0; - s.callLocIdx = 877; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P291791_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P291453_mk(s); - r0 = s.arg0.fields["sprite"]; - s.tmp_2.arg0 = r0; - s.callLocIdx = 878; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___291221); - s.tmp_4 = r0; - r0 = (s.tmp_4 >> 1); - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg1 = r0; - s.callLocIdx = 879; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - case 1: - case 2: - s.tmp_0 = scene_Camera_offsetX__P291789_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - r0 = s.tmp_1.fields["_offsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_0.arg1 = r0; - s.callLocIdx = 881; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P291791_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - r0 = s.tmp_1.fields["_offsetY"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_0.arg1 = r0; - s.callLocIdx = 883; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_offsetX"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["_offsetY"]; - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - r0 = s.arg0.fields["shakeStartTime"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 !== undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim.control.millis(); - s.tmp_2 = r0; - r0 = s.arg0.fields["shakeStartTime"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 - s.tmp_3); - s.elapsed___301442 = (r0); - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_1 = r0; - r0 = (s.elapsed___301442 >= s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = (s.arg0).fields["shakeStartTime"] = (undefined); - { step = 6; continue; } - case 3: - r0 = s.arg0.fields["shakeDuration"]; - s.tmp_0 = r0; - r0 = (s.elapsed___301442 / s.tmp_0); - s.percentComplete___301456 = (r0); - s.damp___301463 = (1); - r0 = (s.percentComplete___301456 >= 0.75); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P289534_mk(s); - s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___301456); - s.tmp_1.arg1 = r0; - s.callLocIdx = 886; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.damp___301463 = (r0); - case 4: - case 5: - r0 = s.arg0.fields["shakeAmplitude"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___301463); - s.f___301472 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___301472); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.x___301478 = (r0); - r0 = pxsim.Math_.random(); - s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___301472); + if (!checkSubtype(r0, game_Hitbox__C48953_VT)) failedCast(r0); + r0 = s.arg0.fields["ox"]; s.tmp_0 = r0; - r0 = (s.tmp_0 >> 0); - s.y___301485 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["drawOffsetX"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___301478); - 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"]; + r0 = s.arg0.fields["parent"]; + r0 = r0.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.y___301485); + r0 = (s.tmp_2 & -256); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); - case 6: - case 7: - case 8: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_update__P291799.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +game_Hitbox_left__P48961.info = {"start":468,"length":84,"line":18,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"left","argumentNames":["this"]} +game_Hitbox_left__P48961.isGetter = true; -function scene_Camera_update__P291799_mk(s) { +function game_Hitbox_left__P48961_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P291799, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P48961, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - elapsed___301442: undefined, - percentComplete___301456: undefined, - damp___301463: undefined, - f___301472: undefined, - x___301478: undefined, - y___301485: undefined, arg0: undefined, } } @@ -12403,7 +11447,7 @@ function scene_Camera_update__P291799_mk(s) { -function scene_Camera_offsetY__P291791(s) { +function Fx_toIntShifted__P47111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12413,78 +11457,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___301504 = 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__C291783_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 873; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___301504 = (r0); - r0 = s.scene___301504.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___301504.fields["tileMap"]; + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 8); s.tmp_1 = r0; - r0 = s.tmp_1.fields["_map"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 3; continue; } - s.tmp_7 = r0 = s.arg0; - s.tmp_9 = tiles_TileMap_offsetY__P291752_mk(s); - r0 = s.scene___301504.fields["tileMap"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 875; s.pc = 6; return s.tmp_9; - case 6: - r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); - { step = 4; continue; } - case 3: - r0 = (s.arg0).fields["_offsetY"] = (s.arg1); - case 4: - r0 = undefined; + r0 = (s.tmp_0 >> s.tmp_1); return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P291791.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} +Fx_toIntShifted__P47111.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_Camera_offsetY__P291791_mk(s) { +function Fx_toIntShifted__P47111_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P291791, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P47111, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - scene___301504: undefined, arg0: undefined, arg1: undefined, } } @@ -12493,7 +11486,7 @@ function scene_Camera_offsetY__P291791_mk(s) { -function tiles_TileMap_enabled__P291757(s) { +function tiles_placeOnTile__P49459(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12505,42 +11498,82 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = 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: + s.tmp_6 = tiles_Location_tileMap__P49381_mk(s); + s.tmp_6.arg0 = s.arg1; + s.callLocIdx = 974; s.pc = 8; return s.tmp_6; + case 8: + r0 = s.retval; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + case 4: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + if (!r0) { step = 5; continue; } + { step = 7; continue; } + case 5: + case 6: + s.tmp_8 = tiles_Location_place__P49395_mk(s); + s.tmp_8.arg0 = s.arg1; + s.tmp_8.arg1 = s.arg0; + s.callLocIdx = 975; s.pc = 9; return s.tmp_8; + case 9: + r0 = s.retval; + case 7: + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMap_enabled__P291757.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__P291757.isGetter = true; +tiles_placeOnTile__P49459.info = {"start":24691,"length":152,"line":746,"column":4,"endLine":749,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"placeOnTile","argumentNames":["sprite","loc"]} -function tiles_TileMap_enabled__P291757_mk(s) { +function tiles_placeOnTile__P49459_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P291757, depth: s.depth + 1, + parent: s, fn: tiles_placeOnTile__P49459, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_TileMap_offsetY__P291752(s) { +function sprites_create__P49019(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12550,50 +11583,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___58388 = undefined; + s.sprite___58391 = 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__C291747_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P289531_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P289534_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P291754_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 788; s.pc = 3; return s.tmp_3; - case 3: + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 342; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___291221); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 789; s.pc = 2; return s.tmp_1; + s.scene___58388 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C49083_VT); + s.tmp_0 = r0; + s.tmp_1 = Sprite_constructor__P49130_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg0; + s.callLocIdx = 343; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 790; s.pc = 1; return s.tmp_0; - case 1: + s.sprite___58391 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P49150_mk(s); + s.tmp_0.arg0 = s.sprite___58391; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 344; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = PhysicsEngine__C49245_v0_2_mk(s); + r0 = s.scene___58388.fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.sprite___58391; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C49245_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.addSprite; + s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P58406); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P58412); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___58391); + s.tmp_2 = helpers_arrayForEach__P47064_mk(s); + s.tmp_3 = helpers_arrayFilter__P47065_mk(s); + r0 = s.scene___58388.fields["createdHandlers"]; + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.tmp_0; + s.callLocIdx = 345; 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 = 347; s.pc = 5; return s.tmp_2; + case 5: r0 = s.retval; + r0 = s.sprite___58391; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P291752.info = {"start":6560,"length":123,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +sprites_create__P49019.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 tiles_TileMap_offsetY__P291752_mk(s) { +function sprites_create__P49019_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P291752, depth: s.depth + 1, + parent: s, fn: sprites_create__P49019, depth: s.depth + 1, pc: 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___58388: undefined, + sprite___58391: undefined, arg0: undefined, arg1: undefined, } } @@ -12602,7 +11663,7 @@ function tiles_TileMap_offsetY__P291752_mk(s) { -function tiles_TileMap_areaHeight__P291754(s) { +function forEach_inline__P58406(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12616,41 +11677,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; + r0 = s.arg0.fields["kind"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_height"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = (s.tmp_0 == s.caps[0]); return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P291754.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +forEach_inline__P58406.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function tiles_TileMap_areaHeight__P291754_mk(s) { +function forEach_inline__P58406_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P291754, depth: s.depth + 1, + parent: s, fn: forEach_inline__P58406, depth: s.depth + 1, pc: 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, } } @@ -12658,7 +11698,7 @@ function tiles_TileMap_areaHeight__P291754_mk(s) { -function tiles_TileMapData_height__P291737(s) { +function sprites_create_inline__P58412(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12672,20 +11712,32 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C291734_VT)) failedCast(r0); - r0 = s.arg0.fields["_height"]; - return leaveAccessor(s, r0) + s.tmp_0 = if_handler_2_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + if (!s.tmp_0.arg0.vtable.iface) { + setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); + s.callLocIdx = 346; 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 = 346; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 346; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 346; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -tiles_TileMapData_height__P291737.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__P291737.isGetter = true; +sprites_create_inline__P58412.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function tiles_TileMapData_height__P291737_mk(s) { +function sprites_create_inline__P58412_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P291737, depth: s.depth + 1, + parent: s, fn: sprites_create_inline__P58412, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -12693,7 +11745,7 @@ function tiles_TileMapData_height__P291737_mk(s) { -function scene_Camera_offsetY__P291790(s) { +function PhysicsEngine_addSprite__P49247(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12705,30 +11757,31 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C291783_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetY"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, PhysicsEngine__C49245_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P291790.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__P291790.isGetter = true; +PhysicsEngine_addSprite__P49247.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 scene_Camera_offsetY__P291790_mk(s) { +function PhysicsEngine_addSprite__P49247_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P291790, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P49247, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function scene_Camera_offsetX__P291789(s) { +function Sprite_setKind__P49150(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12738,66 +11791,135 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___301552 = undefined; + s.spritesByKind___58430 = undefined; + s.overlapMap___58459 = 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__C291783_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 870; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.scene___301552 = (r0); - r0 = s.scene___301552.fields["tileMap"]; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = (s.arg1 == undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } + if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___301552.fields["tileMap"]; + r0 = s.arg0.fields["_kind"]; s.tmp_1 = r0; - r0 = s.tmp_1.fields["_map"]; + r0 = (s.tmp_1 === s.arg1); + case 2: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + { step = 15; continue; } + case 3: + case 4: + s.tmp_3 = game_currentScene__P49640_mk(s); + s.callLocIdx = 433; s.pc = 16; return s.tmp_3; + case 16: + r0 = s.retval; + r0 = r0.fields["spritesByKind"]; + s.spritesByKind___58430 = (r0); + r0 = s.arg0.fields["_kind"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["_kind"]; + s.tmp_2 = r0; + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___58430, 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__P49204_mk(s); + r0 = s.arg0.fields["_kind"]; s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___58430, s.tmp_5); + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.arg0; + s.callLocIdx = 434; s.pc = 17; return s.tmp_4; + case 17: + r0 = s.retval; + case 7: + case 8: + r0 = (s.arg1 >= 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___58430, s.arg1); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 3; continue; } - s.tmp_7 = r0 = s.arg0; - s.tmp_9 = tiles_TileMap_offsetX__P291751_mk(s); - r0 = s.scene___301552.fields["tileMap"]; - s.tmp_9.arg0 = r0; - s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 872; s.pc = 6; return s.tmp_9; - case 6: + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C49197_VT); + s.tmp_4 = r0; + s.tmp_5 = sprites_SpriteSet_constructor__P49199_mk(s); + s.tmp_5.arg0 = s.tmp_4; + s.callLocIdx = 435; s.pc = 18; return s.tmp_5; + case 18: r0 = s.retval; - s.tmp_8 = r0; - r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); - { step = 4; continue; } - case 3: - r0 = (s.arg0).fields["_offsetX"] = (s.arg1); - case 4: + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___58430, s.arg1, s.tmp_4); + case 9: + case 10: + s.tmp_0 = sprites_SpriteSet_add__P49202_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___58430, s.arg1); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 436; s.pc = 19; return s.tmp_0; + case 19: + r0 = s.retval; + case 11: + case 12: + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 437; s.pc = 20; return s.tmp_0; + case 20: + r0 = s.retval; + r0 = r0.fields["overlapMap"]; + s.overlapMap___58459 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___58459, s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + s.tmp_3 = r0 = s.overlapMap___58459; + s.tmp_4 = r0 = s.arg1; + r0 = pxsim_Array__mk(); + s.tmp_5 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); + case 13: + case 14: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___58459, s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); + r0 = (s.arg0).fields["_kind"] = (s.arg1); + case 15: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P291789.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +Sprite_setKind__P49150.info = {"start":13942,"length":663,"line":497,"column":4,"endLine":517,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} -function scene_Camera_offsetX__P291789_mk(s) { +function Sprite_setKind__P49150_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P291789, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P49150, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12805,11 +11927,8 @@ function scene_Camera_offsetX__P291789_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - scene___301552: undefined, + spritesByKind___58430: undefined, + overlapMap___58459: undefined, arg0: undefined, arg1: undefined, } } @@ -12818,7 +11937,7 @@ function scene_Camera_offsetX__P291789_mk(s) { -function tiles_TileMap_offsetX__P291751(s) { +function sprites_SpriteSet_add__P49202(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12834,44 +11953,50 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P289531_mk(s); - s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P289534_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P291753_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 785; s.pc = 3; return s.tmp_3; - case 3: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___291221); - s.tmp_4 = r0; - r0 = (s.tmp_2 - s.tmp_4); - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 0; - s.callLocIdx = 786; s.pc = 2; return s.tmp_1; - case 2: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 787; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, sprites_SpriteSet__C49197_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 5; continue; } case 1: - r0 = s.retval; + case 2: + r0 = s.arg0.fields["_sprites"]; + s.tmp_4 = r0; + r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); + s.tmp_3 = r0; + r0 = (s.tmp_3 > -1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 5; continue; } + case 3: + case 4: + r0 = s.arg0.fields["_sprites"]; + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_5, s.arg1); + r0 = true; + case 5: return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetX__P291751.info = {"start":6429,"length":121,"line":235,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +sprites_SpriteSet_add__P49202.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} -function tiles_TileMap_offsetX__P291751_mk(s) { +function sprites_SpriteSet_add__P49202_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P291751, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P49202, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, } } @@ -12880,7 +12005,7 @@ function tiles_TileMap_offsetX__P291751_mk(s) { -function tiles_TileMap_areaWidth__P291753(s) { +function sprites_SpriteSet_contains__P49205(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12892,51 +12017,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["_map"]; - s.tmp_2 = r0; - r0 = s.tmp_2.fields["_width"]; + if (!checkSubtype(r0, sprites_SpriteSet__C49197_VT)) failedCast(r0); + r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 << s.tmp_3); - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; + r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); + s.tmp_0 = r0; + r0 = (s.tmp_0 > -1); return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P291753.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +sprites_SpriteSet_contains__P49205.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} -function tiles_TileMap_areaWidth__P291753_mk(s) { +function sprites_SpriteSet_contains__P49205_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P291753, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P49205, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function tiles_TileMapData_width__P291736(s) { +function sprites_SpriteSet_constructor__P49199(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12951,19 +12062,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C291734_VT)) failedCast(r0); - r0 = s.arg0.fields["_width"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, sprites_SpriteSet__C49197_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() } } } -tiles_TileMapData_width__P291736.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__P291736.isGetter = true; +sprites_SpriteSet_constructor__P49199.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} -function tiles_TileMapData_width__P291736_mk(s) { +function sprites_SpriteSet_constructor__P49199_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_width__P291736, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_constructor__P49199, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -12971,7 +12087,7 @@ function tiles_TileMapData_width__P291736_mk(s) { -function scene_Camera_offsetX__P291788(s) { +function Sprite_constructor__P49130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12983,30 +12099,139 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C291783_VT)) failedCast(r0); - r0 = s.arg0.fields["_offsetX"]; - return leaveAccessor(s, r0) + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P48845_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 376; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_ImageMethods.width(globals.screen___48784); + 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___48784); + 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__P49101_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 379; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.tmp_0 = Sprite_vy__P49103_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 380; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.tmp_0 = Sprite_ax__P49105_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 381; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = Sprite_ay__P49107_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 382; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = Sprite_fx__P49109_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 383; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = Sprite_fy__P49111_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 384; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + r0 = (s.arg0).fields["_sx"] = (256); + r0 = (s.arg0).fields["_sy"] = (256); + r0 = (s.arg0).fields["flags"] = (0); + s.tmp_0 = Sprite_setImage__P49133_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 385; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.tmp_0 = Sprite_setKind__P49150_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = -1; + s.callLocIdx = 386; 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() } } } -scene_Camera_offsetX__P291788.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__P291788.isGetter = true; +Sprite_constructor__P49130.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} -function scene_Camera_offsetX__P291788_mk(s) { +function Sprite_constructor__P49130_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P291788, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P49130, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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 PhysicsEngine_move__P291593(s) { +function Sprite_fy__P49111(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13022,18 +12247,36 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C291587_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P47085_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 372; 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() } } } -PhysicsEngine_move__P291593.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +Sprite_fy__P49111.info = {"start":5109,"length":64,"line":191,"column":4,"endLine":193,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} -function PhysicsEngine_move__P291593_mk(s) { +function Sprite_fy__P49111_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P291593, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P49111, depth: s.depth + 1, pc: 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, } } @@ -13042,7 +12285,7 @@ function PhysicsEngine_move__P291593_mk(s) { -function PhysicsEngine_draw__P291592(s) { +function Sprite_fy__P49110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13057,18 +12300,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C291587_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_fy"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -PhysicsEngine_draw__P291592.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +Sprite_fy__P49110.info = {"start":4947,"length":60,"line":186,"column":4,"endLine":188,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} +Sprite_fy__P49110.isGetter = true; -function PhysicsEngine_draw__P291592_mk(s) { +function Sprite_fy__P49110_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_draw__P291592, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P49110, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -13076,7 +12323,7 @@ function PhysicsEngine_draw__P291592_mk(s) { -function controller___update__P291369(s) { +function Sprite_fx__P49109(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13086,51 +12333,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtms___301793 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 * 1000); - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - s.dtms___301793 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P301800); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___301793); - s.tmp_1 = helpers_arrayForEach__P289514_mk(s); - s.tmp_2 = controller_players__P291337_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.callLocIdx = 210; s.pc = 1; return s.tmp_1; + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_3 = Math_max__P47085_mk(s); + s.tmp_3.arg0 = 0; + s.tmp_3.arg1 = s.arg1; + s.callLocIdx = 369; 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() } } } -controller___update__P291369.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +Sprite_fx__P49109.info = {"start":4766,"length":64,"line":181,"column":4,"endLine":183,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} -function controller___update__P291369_mk(s) { +function Sprite_fx__P49109_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P291369, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P49109, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dtms___301793: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P301800(s) { +function Sprite_fx__P49108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13144,22 +12391,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___update__P291367_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 209; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_fx"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -inline__P301800.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +Sprite_fx__P49108.info = {"start":4604,"length":60,"line":176,"column":4,"endLine":178,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} +Sprite_fx__P49108.isGetter = true; -function inline__P301800_mk(s) { +function Sprite_fx__P49108_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P301800, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P49108, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -13169,7 +12415,7 @@ function inline__P301800_mk(s) { -function controller_Controller___update__P291367(s) { +function Sprite_ay__P49107(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13185,42 +12431,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); - s.arg1 = (s.tmp_0); - s.tmp_1 = r0 = s.arg1; - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, inline__P301813); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P289514_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 207; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; + 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() } } } -controller_Controller___update__P291367.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +Sprite_ay__P49107.info = {"start":4435,"length":51,"line":170,"column":4,"endLine":172,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} -function controller_Controller___update__P291367_mk(s) { +function Sprite_ay__P49107_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P291367, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P49107, depth: s.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, } } @@ -13229,7 +12460,7 @@ function controller_Controller___update__P291367_mk(s) { -function inline__P301813(s) { +function Sprite_ay__P49106(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13243,23 +12474,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P291334_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 206; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_ay"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -inline__P301813.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +Sprite_ay__P49106.info = {"start":4269,"length":60,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} +Sprite_ay__P49106.isGetter = true; -function inline__P301813_mk(s) { +function Sprite_ay__P49106_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P301813, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P49106, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -13269,7 +12498,7 @@ function inline__P301813_mk(s) { -function controller_Button___update__P291334(s) { +function Sprite_ax__P49105(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13279,115 +12508,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___301829 = undefined; - s.interval___301838 = undefined; - s.count___301851 = 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__C291322_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 11; continue; } - case 1: - case 2: - s.tmp_3 = r0 = s.arg0; - r0 = s.tmp_3.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 + s.arg1); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); - r0 = s.arg0.fields["repeatDelay"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = globals.defaultRepeatDelay___293231; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["repeatDelay"]; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.delay___301829 = (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___293233; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["repeatInterval"]; - case 6: - // jmp value (already in r0) - s.tmp_2 = r0; - s.interval___301838 = (s.tmp_2); - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___301829); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - { step = 11; continue; } - case 7: - case 8: - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 - s.delay___301829); - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___301838); - s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___301838); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.count___301851 = (r0); - r0 = s.arg0.fields["_repeatCount"]; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.count___301851 != 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__P293238_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 156; s.pc = 12; return s.tmp_2; - case 12: - r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___301851); - case 9: - case 10: - case 11: + r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button___update__P291334.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +Sprite_ax__P49105.info = {"start":4096,"length":51,"line":159,"column":4,"endLine":161,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} -function controller_Button___update__P291334_mk(s) { +function Sprite_ax__P49105_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P291334, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P49105, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - delay___301829: undefined, - interval___301838: undefined, - count___301851: undefined, arg0: undefined, arg1: undefined, } } @@ -13396,7 +12543,7 @@ function controller_Button___update__P291334_mk(s) { -function controller_Button_raiseButtonRepeat__P293238(s) { +function Sprite_ax__P49104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13411,28 +12558,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C291322_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___293229); - if (!r0) { step = 1; continue; } - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2054, s.tmp_0); - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["id"]; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_ax"]; s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2055, s.tmp_0); - case 2: - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -controller_Button_raiseButtonRepeat__P293238.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +Sprite_ax__P49104.info = {"start":3930,"length":60,"line":154,"column":4,"endLine":156,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} +Sprite_ax__P49104.isGetter = true; -function controller_Button_raiseButtonRepeat__P293238_mk(s) { +function Sprite_ax__P49104_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P293238, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P49104, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -13442,7 +12581,7 @@ function controller_Button_raiseButtonRepeat__P293238_mk(s) { -function controller_players__P291337(s) { +function sprites_BaseSprite_constructor__P48845(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13452,34 +12591,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P291336_mk(s); - s.callLocIdx = 159; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C48843_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P48848_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 130; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P289515_mk(s); - s.tmp_0.arg0 = globals._players___293242; - s.tmp_0.arg1 = inline__P301787; - s.callLocIdx = 160; s.pc = 2; return s.tmp_0; + s.tmp_0 = scene_Scene_addSprite__P49552_mk(s); + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 131; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 132; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -controller_players__P291337.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +sprites_BaseSprite_constructor__P48845.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 controller_players__P291337_mk(s) { +function sprites_BaseSprite_constructor__P48845_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P291337, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P48845, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P301787(s) { +function scene_Scene_addSprite__P49552(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13491,110 +12647,57 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C49526_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); - return leave(s, r0) - default: oops() -} } } -inline__P301787.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__P301787_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P301787, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - arg0: undefined, -} } - - - - - -function controller__player1__P291336(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_numops_toBoolDecr(globals._players___293242); + r0 = pxsim_Array__push(s.tmp_0, s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["spriteNextId"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = (s.tmp_0).fields["spriteNextId"] = (s.tmp_1); + s.tmp_3 = if_id_2_mk(s); + s.tmp_3.arg0 = s.arg1; + s.tmp_3.arg1 = s.tmp_2; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapSetByString(s.tmp_3.arg0, "id", s.tmp_3.arg1); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"]; + if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; } + else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } + else { s.callLocIdx = 1023; s.pc = 1; return s.tmp_3; } + } case 1: - r0 = pxsim_Array__getAt(globals._players___293242, 0); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C291342_VT); - s.tmp_5 = r0; - r0 = pxsim_Array__mk(); - s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___291298); - r0 = pxsim_Array__push(s.tmp_6, globals.up___291299); - r0 = pxsim_Array__push(s.tmp_6, globals.right___291300); - r0 = pxsim_Array__push(s.tmp_6, globals.down___291301); - r0 = pxsim_Array__push(s.tmp_6, globals.A___291296); - r0 = pxsim_Array__push(s.tmp_6, globals.B___291297); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___291302); - s.tmp_7 = controller_Controller_constructor__P291346_mk(s); - s.tmp_7.arg0 = s.tmp_5; - s.tmp_7.arg1 = 1; - s.tmp_7.arg2 = s.tmp_6; - 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___293242, 0); + r0 = undefined; return leave(s, r0) default: oops() } } } -controller__player1__P291336.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +scene_Scene_addSprite__P49552.info = {"start":6969,"length":128,"line":195,"column":8,"endLine":198,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function controller__player1__P291336_mk(s) { +function scene_Scene_addSprite__P49552_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P291336, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P49552, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, + arg0: undefined, + arg1: undefined, } } -function controller_Controller_constructor__P291346(s) { +function sprites_BaseSprite_z__P48848(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13604,120 +12707,91 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___299339 = undefined; - s.i___299347 = undefined; - s.i___299365 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); - r0 = (s.arg0).fields["_connected"] = (false); - r0 = (s.arg0).fields["playerIndex"] = (s.arg1); - r0 = (s.arg0).fields["analog"] = (false); - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 1; continue; } - r0 = (s.arg0).fields["buttons"] = (s.arg2); - { step = 4; continue; } - case 1: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + if (!checkSubtype(r0, sprites_BaseSprite__C48843_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; s.tmp_1 = r0; - r0 = (s.tmp_1 * 7); - s.tmp_0 = r0; - r0 = (1 + s.tmp_0); - s.leftId___299339 = (r0); - s.i___299347 = (0); - case 2: - r0 = (s.i___299347 < 7); + r0 = (s.tmp_1 !== s.arg1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C291322_VT); - s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P291328_mk(s); - s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___299339 + s.i___299347); - s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = -1; - 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___299347 + 1); - s.i___299347 = (r0); - { step = 2; continue; } + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_z"] = (s.arg1); + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 133; s.pc = 3; return s.tmp_1; case 3: - case 4: - s.i___299365 = (0); - case 5: - s.tmp_1 = r0 = s.i___299365; - r0 = s.arg0.fields["buttons"]; + r0 = s.retval; + s.tmp_0 = r0; + r0 = s.tmp_0.fields["flags"]; s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); + r0 = (s.tmp_3 | 1); s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["buttons"]; - s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___299365); - s.tmp_4 = r0; - r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___299365 + 1); - s.i___299365 = (r0); - { step = 5; continue; } - case 6: - s.tmp_0 = controller_addController__P293243_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 165; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_2); + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P291346.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"]} +sprites_BaseSprite_z__P48848.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 controller_Controller_constructor__P291346_mk(s) { +function sprites_BaseSprite_z__P48848_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P291346, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P48848, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - leftId___299339: undefined, - i___299347: undefined, - i___299365: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function controller_addController__P293243(s) { +function sprites_BaseSprite_z__P48847(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, sprites_BaseSprite__C48843_VT)) failedCast(r0); + r0 = s.arg0.fields["_z"]; + return leaveAccessor(s, r0) + default: oops() +} } } +sprites_BaseSprite_z__P48847.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__P48847.isGetter = true; + +function sprites_BaseSprite_z__P48847_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_BaseSprite_z__P48847, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function game_onUpdateInterval__P49660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13727,48 +12801,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.timer___58614 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._players___293242); + 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); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); - globals._players___293242 = (r0); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = (s.arg0 < 0); case 2: - s.tmp_0 = r0 = globals._players___293242; - r0 = s.arg0.fields["playerIndex"]; + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + { step = 5; continue; } + case 3: + case 4: + r0 = pxsim_pxtrt.mklocRef(); + s.timer___58614 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___58614, 0); + r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P58618); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___58614); + 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__P47358_mk(s); + s.tmp_2 = game_eventContext__P49643_mk(s); + s.callLocIdx = 1060; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 19; + s.tmp_1.arg2 = s.tmp_0; + s.callLocIdx = 1064; s.pc = 6; return s.tmp_1; + case 6: + r0 = s.retval; + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_addController__P293243.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +game_onUpdateInterval__P49660.info = {"start":891,"length":401,"line":28,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} -function controller_addController__P293243_mk(s) { +function game_onUpdateInterval__P49660_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P293243, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P49660, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + timer___58614: undefined, arg0: undefined, + arg1: undefined, } } -function controller__moveSprites__P291341(s) { +function game_onUpdateInterval_inline__P58618(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13778,36 +12878,55 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P289514_mk(s); - s.tmp_1 = controller_players__P291337_mk(s); - s.callLocIdx = 161; s.pc = 2; return s.tmp_1; - case 2: + s.time___58619 = undefined; + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1061; s.pc = 3; return s.tmp_1; + case 3: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P301598; - s.callLocIdx = 163; s.pc = 1; return s.tmp_0; - case 1: + s.tmp_0 = r0; + r0 = s.tmp_0.fields["_millis"]; + s.time___58619 = (r0); + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_1 = r0; + r0 = (s.tmp_1 <= s.time___58619); + 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___58619 + s.caps[1]); + s.tmp_3 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); + s.tmp_0 = lambda_1_mk(s); + s.tmp_0.argL = s.caps[2]; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 1063; s.pc = 4; return s.tmp_0; + case 4: r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -controller__moveSprites__P291341.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +game_onUpdateInterval_inline__P58618.info = {"start":1105,"length":179,"line":31,"column":81,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} -function controller__moveSprites__P291341_mk(s) { +function game_onUpdateInterval_inline__P58618_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P291341, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval_inline__P58618, depth: s.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___58619: undefined, } } -function inline__P301598(s) { +function scene_Scene_millis__P49551(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13821,23 +12940,19 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___preUpdate__P291366_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 162; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C49526_VT)) failedCast(r0); + r0 = s.arg0.fields["_millis"]; return leave(s, r0) default: oops() } } } -inline__P301598.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +scene_Scene_millis__P49551.info = {"start":6898,"length":61,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} -function inline__P301598_mk(s) { +function scene_Scene_millis__P49551_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P301598, depth: s.depth + 1, + parent: s, fn: scene_Scene_millis__P49551, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -13845,7 +12960,7 @@ function inline__P301598_mk(s) { -function controller_Controller___preUpdate__P291366(s) { +function scene_aStar__P50878(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13855,308 +12970,128 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___301605 = undefined; - s.svx___301606 = undefined; - s.svy___301607 = undefined; - s.svxInCricle___301642 = undefined; - s.svyInCircle___301644 = undefined; - s.sq___301646 = undefined; - s.scale___301661 = undefined; + s.tm___53380 = undefined; + s.end1___53393 = undefined; + s.start1___53400 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P291347_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 181; s.pc = 18; return s.tmp_3; - case 18: + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 49; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = r0.fields["tileMap"]; + s.tm___53380 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tm___53380); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 17; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - case 2: - r0 = pxsim_pxtrt.mklocRef(); - s.deadSprites___301605 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___301605, false); - r0 = pxsim_pxtrt.mklocRef(); - s.svx___301606 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___301606, 0); - r0 = pxsim_pxtrt.mklocRef(); - s.svy___301607 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___301607, 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___301606; - s.tmp_5 = controller_Button_pressureLevel__P291332_mk(s); - s.tmp_6 = controller_Controller_right__P291352_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 182; s.pc = 20; return s.tmp_6; - case 20: - r0 = s.retval; - s.tmp_5.arg0 = r0; - 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__P291332_mk(s); - s.tmp_9 = controller_Controller_left__P291351_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 184; s.pc = 22; return s.tmp_9; - case 22: - r0 = s.retval; - s.tmp_8.arg0 = r0; - s.callLocIdx = 185; s.pc = 21; return s.tmp_8; - case 21: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_4 - s.tmp_7); - s.tmp_3 = r0; - r0 = (s.tmp_3 >> 1); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.svy___301607; - s.tmp_4 = controller_Button_pressureLevel__P291332_mk(s); - s.tmp_5 = controller_Controller_down__P291354_mk(s); - s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 186; s.pc = 24; return s.tmp_5; - case 24: - r0 = s.retval; - s.tmp_4.arg0 = r0; - s.callLocIdx = 187; s.pc = 23; return s.tmp_4; - case 23: - r0 = s.retval; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P291332_mk(s); - s.tmp_8 = controller_Controller_up__P291353_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 188; s.pc = 26; return s.tmp_8; - case 26: - r0 = s.retval; - s.tmp_7.arg0 = r0; - s.callLocIdx = 189; s.pc = 25; return s.tmp_7; - case 25: - r0 = s.retval; - s.tmp_6 = r0; - r0 = (s.tmp_3 - s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - { step = 12; continue; } + r0 = pxsim_numops_toBool(s.tmp_3); + if (!r0) { step = 3; continue; } + r0 = s.tmp_3; + { step = 4; continue; } case 3: - s.tmp_1 = controller_Button__C291322_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P291352_mk(s); - s.tmp_2.arg0 = s.arg0; - 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__C291322_VT)) failedCast(s.tmp_1.arg0); - s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; - s.pc = 27; return s.tmp_1; - case 27: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = 256; - { step = 5; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); case 4: - r0 = 0; - case 5: // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_5 = controller_Button__C291322_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P291351_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 191; s.pc = 30; return s.tmp_6; - case 30: + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 5; continue; } + r0 = undefined; + { step = 9; continue; } + case 5: + case 6: + r0 = pxsim_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); + s.tmp_6 = r0; + s.tmp_7 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_7.arg0 = s.tmp_6; + s.tmp_8 = tiles_Location_col__P49391_mk(s); + s.tmp_8.arg0 = s.arg1; + s.callLocIdx = 50; s.pc = 12; return s.tmp_8; + case 12: r0 = s.retval; - s.tmp_5.arg0 = r0; - if (!checkSubtype(s.tmp_5.arg0, controller_Button__C291322_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: + s.tmp_7.arg1 = r0; + r0 = s.arg1.fields["_row"]; + s.tmp_7.arg2 = r0; + s.callLocIdx = 52; s.pc = 11; return s.tmp_7; + case 11: r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 6; continue; } - r0 = 256; - { step = 7; continue; } - case 6: - r0 = 0; - case 7: - // jmp value (already in r0) - s.tmp_7 = r0; - s.tmp_8 = r0 = s.svx___301606; - 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__C291322_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P291354_mk(s); + s.end1___53393 = (s.tmp_6); + r0 = pxsim_pxtcore_mkClassInstance(scene_SimpleLocation__C53372_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_SimpleLocation_constructor__P53373_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_2 = tiles_Location_col__P49391_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 192; s.pc = 32; return s.tmp_2; - case 32: + s.callLocIdx = 53; s.pc = 14; return s.tmp_2; + case 14: r0 = s.retval; - s.tmp_1.arg0 = r0; - if (!checkSubtype(s.tmp_1.arg0, controller_Button__C291322_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: + s.tmp_1.arg1 = r0; + r0 = s.arg0.fields["_row"]; + s.tmp_1.arg2 = r0; + s.callLocIdx = 55; s.pc = 13; return s.tmp_1; + case 13: + r0 = s.retval; + s.start1___53400 = (s.tmp_0); + s.tmp_3 = scene_isWalkable__P53410_mk(s); + s.tmp_3.arg0 = s.end1___53393; + s.tmp_3.arg1 = s.arg2; + s.tmp_3.arg2 = s.tm___53380; + s.callLocIdx = 56; s.pc = 15; return s.tmp_3; + case 15: 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 = 8; continue; } - r0 = 256; + if (!r0) { step = 7; continue; } + r0 = undefined; { step = 9; continue; } + case 7: case 8: - r0 = 0; - case 9: - // jmp value (already in r0) - s.tmp_3 = r0; - s.tmp_5 = controller_Button__C291322_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P291353_mk(s); - s.tmp_6.arg0 = s.arg0; - 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__C291322_VT)) failedCast(s.tmp_5.arg0); - s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; - s.pc = 33; return s.tmp_5; - case 33: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 10; continue; } - r0 = 256; - { step = 11; continue; } - case 10: - r0 = 0; - case 11: - // jmp value (already in r0) - s.tmp_7 = r0; - s.tmp_8 = r0 = s.svy___301607; - 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___301642 = (r0); - s.tmp_0 = r0 = s.svxInCricle___301642; - r0 = pxsim_pxtrt_ldlocRef(s.svx___301606); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___301644 = (r0); - s.tmp_0 = r0 = s.svyInCircle___301644; - r0 = pxsim_pxtrt_ldlocRef(s.svy___301607); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___301606); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___301606); - s.tmp_2 = r0; - r0 = (s.tmp_1 * s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___301607); + r0 = pxsim_pxtcore_mkAction(1, scene_aStar_inline__P53419); s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___301607); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.end1___53393); + r0 = pxsim_pxtcore_mkAction(1, scene_aStar_inline__P53425); s.tmp_5 = r0; - r0 = (s.tmp_4 * s.tmp_5); - s.tmp_3 = r0; - r0 = (s.tmp_0 + s.tmp_3); - s.sq___301646 = (r0); - r0 = (s.sq___301646 > 65536); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___301646); - s.tmp_1 = r0; - r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___301661 = (r0); - s.tmp_0 = r0 = s.svxInCricle___301642; - s.tmp_3 = r0 = s.scale___301661; - r0 = pxsim_pxtrt_ldlocRef(s.svx___301606); - 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___301644; - s.tmp_3 = r0 = s.scale___301661; - r0 = pxsim_pxtrt_ldlocRef(s.svy___301607); - s.tmp_4 = r0; - r0 = (s.tmp_3 * s.tmp_4); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - case 13: - case 14: - r0 = pxsim_pxtcore_mkAction(5, inline__P301679); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___301605); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___301606); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___301607); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___301642); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___301644); - s.tmp_1 = helpers_arrayForEach__P289514_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P291347_mk(s); - s.tmp_2.arg0 = s.arg0; - 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.callLocIdx = 202; s.pc = 35; return s.tmp_1; - case 35: - r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___301605); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P291348_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P289515_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P291347_mk(s); - s.tmp_3.arg0 = s.arg0; - 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__P301736; - s.callLocIdx = 204; s.pc = 38; return s.tmp_2; - case 38: - r0 = s.retval; - s.tmp_1.arg1 = r0; - s.callLocIdx = 205; s.pc = 37; return s.tmp_1; - case 37: - r0 = s.retval; - case 15: + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.end1___53393); + s.tmp_6 = scene_generalAStar__P50880_mk(s); + s.tmp_6.arg0 = s.tm___53380; + s.tmp_6.arg1 = s.start1___53400; + s.tmp_6.arg2 = s.arg2; + s.tmp_6.arg3 = s.tmp_4; + s.tmp_6.arg4 = s.tmp_5; + s.callLocIdx = 58; s.pc = 16; return s.tmp_6; case 16: - case 17: - r0 = undefined; + r0 = s.retval; + case 9: return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P291366.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +scene_aStar__P50878.info = {"start":1248,"length":582,"line":39,"column":4,"endLine":52,"endColumn":5,"fileName":"a-star.ts","functionName":"aStar","argumentNames":["start","end","onTilesOf"]} -function controller_Controller___preUpdate__P291366_mk(s) { +function scene_aStar__P50878_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P291366, depth: s.depth + 1, + parent: s, fn: scene_aStar__P50878, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14167,22 +13102,19 @@ function controller_Controller___preUpdate__P291366_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, - tmp_9: undefined, - deadSprites___301605: undefined, - svx___301606: undefined, - svy___301607: undefined, - svxInCricle___301642: undefined, - svyInCircle___301644: undefined, - sq___301646: undefined, - scale___301661: undefined, + tm___53380: undefined, + end1___53393: undefined, + start1___53400: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P301679(s) { +function scene_aStar_inline__P53419(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14192,156 +13124,77 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___301682 = undefined; - s.vx___301683 = undefined; - s.vy___301684 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_s_1_mk(s); - s.tmp_1 = r0 = s.arg0; - s.tmp_0.arg0 = r0; - if (!s.tmp_0.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "s"); - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["s"]; - if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["s"]; } - else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 195; s.pc = 22; return s.tmp_0; } - } - case 22: - r0 = s.retval; - s.s___301682 = (r0); - s.tmp_2 = if_vx_1_mk(s); - s.tmp_2.arg0 = s.tmp_1; - if (!s.tmp_2.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "vx"); - } else { - s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["vx"]; - if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["vx"]; } - else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 196; s.pc = 23; return s.tmp_2; } - } - case 23: + s.tmp_0 = scene_tileLocationHeuristic__P53422_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 57; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.vx___301683 = (r0); - s.tmp_3 = if_vy_1_mk(s); - s.tmp_3.arg0 = s.tmp_1; - if (!s.tmp_3.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "vy"); - } else { - s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["vy"]; - if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["vy"]; } - else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 197; s.pc = 24; return s.tmp_3; } + return leave(s, r0) + default: oops() +} } } +scene_aStar_inline__P53419.info = {"start":1728,"length":35,"line":50,"column":12,"endLine":50,"endColumn":47,"fileName":"a-star.ts","functionName":"inline","argumentNames":["t"]} + +function scene_aStar_inline__P53419_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_aStar_inline__P53419, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function scene_aStar_inline__P53425(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 24: - r0 = s.retval; - s.vy___301684 = (r0); - r0 = s.s___301682.fields["flags"]; + r0 = s.arg0.fields["col"]; s.tmp_1 = r0; - r0 = (s.tmp_1 & 2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); - { step = 21; continue; } - case 1: - case 2: - r0 = s.arg0.fields["_inputLastFrame"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.vx___301683); - if (!r0) { step = 3; continue; } - r0 = (s.s___301682).fields["_vx"] = (0); - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___301684); - if (!r0) { step = 5; continue; } - r0 = (s.s___301682).fields["_vy"] = (0); - case 5: - case 6: - case 7: - case 8: - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + 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 = 9; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; - { step = 10; continue; } - case 9: - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - case 10: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 19; continue; } - s.tmp_2 = r0 = s.vx___301683; - r0 = pxsim_numops_toBool(s.tmp_2); - if (r0) { step = 11; continue; } - r0 = s.tmp_2; - { step = 12; continue; } - case 11: - r0 = s.vy___301684; - case 12: - // jmp value (already in r0) + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["row"]; s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 13; continue; } - s.tmp_4 = r0 = s.s___301682; - r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); - s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___301683); + 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_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___301682; - r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___301684); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - { step = 18; continue; } - case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___301683); - if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___301682; - r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___301683); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); - { step = 17; continue; } - case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___301684); - if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___301682; - r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); - s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___301684); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); - case 15: - case 16: - case 17: - case 18: - r0 = (s.arg0).fields["_inputLastFrame"] = (true); - { step = 20; continue; } - case 19: - r0 = (s.arg0).fields["_inputLastFrame"] = (false); - case 20: - case 21: - r0 = undefined; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -inline__P301679.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +scene_aStar_inline__P53425.info = {"start":1778,"length":43,"line":51,"column":12,"endLine":51,"endColumn":55,"fileName":"a-star.ts","functionName":"inline","argumentNames":["l"]} -function inline__P301679_mk(s) { +function scene_aStar_inline__P53425_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P301679, depth: s.depth + 1, + parent: s, fn: scene_aStar_inline__P53425, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14349,10 +13202,6 @@ function inline__P301679_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - s___301682: undefined, - vx___301683: undefined, - vy___301684: undefined, arg0: undefined, } } @@ -14360,7 +13209,7 @@ function inline__P301679_mk(s) { -function inline__P301736(s) { +function scene_tileLocationHeuristic__P53422(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14370,39 +13219,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.xDist___53889 = undefined; + s.yDist___53897 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0.fields["s"]; - r0 = r0.fields["flags"]; + s.tmp_0 = Math_abs__P47083_mk(s); + r0 = s.arg1.fields["col"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["col"]; s.tmp_2 = r0; - r0 = (s.tmp_2 & 2); + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg0 = r0; + s.callLocIdx = 95; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.xDist___53889 = (r0); + s.tmp_0 = Math_abs__P47083_mk(s); + r0 = s.arg1.fields["row"]; s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = s.arg0.fields["row"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); + s.tmp_0.arg0 = r0; + s.callLocIdx = 96; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; + s.yDist___53897 = (r0); + s.tmp_2 = Math_max__P47085_mk(s); + s.tmp_2.arg0 = s.xDist___53889; + s.tmp_2.arg1 = s.yDist___53897; + s.callLocIdx = 97; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 * 1000); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + s.tmp_5 = Math_min__P47086_mk(s); + s.tmp_5.arg0 = s.xDist___53889; + s.tmp_5.arg1 = s.yDist___53897; + s.callLocIdx = 98; s.pc = 4; return s.tmp_5; + case 4: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_4 * 414); + s.tmp_3 = r0; + r0 = (s.tmp_0 + s.tmp_3); return leave(s, r0) default: oops() } } } -inline__P301736.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} +scene_tileLocationHeuristic__P53422.info = {"start":8248,"length":322,"line":223,"column":4,"endLine":228,"endColumn":5,"fileName":"a-star.ts","functionName":"tileLocationHeuristic","argumentNames":["tile","target"]} -function inline__P301736_mk(s) { +function scene_tileLocationHeuristic__P53422_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P301736, depth: s.depth + 1, + parent: s, fn: scene_tileLocationHeuristic__P53422, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + xDist___53889: undefined, + yDist___53897: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller_down__P291354(s) { +function Math_abs__P47083(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14416,23 +13307,27 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + r0 = (s.arg0 < 0); s.tmp_0 = r0; - r0 = (4 - 1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = (0 - s.arg0); + { step = 2; continue; } + case 1: + r0 = s.arg0; + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = s.tmp_1; + return leave(s, r0) default: oops() } } } -controller_Controller_down__P291354.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__P291354.isGetter = true; +Math_abs__P47083.info = {"start":16095,"length":77,"line":538,"column":4,"endLine":540,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} -function controller_Controller_down__P291354_mk(s) { +function Math_abs__P47083_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P291354, depth: s.depth + 1, + parent: s, fn: Math_abs__P47083, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14443,7 +13338,7 @@ function controller_Controller_down__P291354_mk(s) { -function controller_Controller_button__P293244(s) { +function tiles_getRandomTileByType__P49462(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14453,39 +13348,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___58973 = undefined; + s.index___58983 = undefined; + s.sample___58989 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (s.arg1 - 1); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 976; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.scene___58973 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.scene___58973.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 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = undefined; + { step = 5; continue; } + case 3: + case 4: + s.tmp_5 = tiles_TileMap_getImageType__P49438_mk(s); + r0 = s.scene___58973.fields["tileMap"]; + s.tmp_5.arg0 = r0; + s.tmp_5.arg1 = s.arg0; + s.callLocIdx = 977; s.pc = 7; return s.tmp_5; + case 7: + r0 = s.retval; + s.index___58983 = (r0); + s.tmp_0 = tiles_TileMap_sampleTilesByType__P49441_mk(s); + r0 = s.scene___58973.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___58983; + s.tmp_0.arg2 = 1; + s.callLocIdx = 978; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + s.sample___58989 = (r0); + r0 = pxsim_Array__getAt(s.sample___58989, 0); + case 5: return leave(s, r0) default: oops() } } } -controller_Controller_button__P293244.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +tiles_getRandomTileByType__P49462.info = {"start":26304,"length":324,"line":790,"column":4,"endLine":797,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getRandomTileByType","argumentNames":["tile"]} -function controller_Controller_button__P293244_mk(s) { +function tiles_getRandomTileByType__P49462_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P293244, depth: s.depth + 1, + parent: s, fn: tiles_getRandomTileByType__P49462, depth: s.depth + 1, pc: 0, retval: undefined, 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___58973: undefined, + index___58983: undefined, + sample___58989: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Controller_up__P291353(s) { +function tiles_TileMap_sampleTilesByType__P49441(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14495,38 +13438,188 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.count___59009 = undefined; + s.reservoir___59010 = undefined; + s.col___59012 = undefined; + s.row___59020 = undefined; + s.currTile___59027 = undefined; + s.potentialIndex___59046 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMap_isInvalidIndex__P51279_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 914; s.pc = 18; return s.tmp_1; + case 18: + r0 = s.retval; s.tmp_0 = r0; - r0 = (2 - 1); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["_map"]; + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_Boolean__bang(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_8 = r0; + r0 = pxsim_numops_toBool(s.tmp_8); + if (!r0) { step = 3; continue; } + r0 = s.tmp_8; + { step = 4; continue; } + case 3: + r0 = (s.arg2 <= 0); + case 4: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_9); + if (!r0) { step = 5; continue; } + r0 = pxsim_Array__mk(); + { step = 17; continue; } + case 5: + case 6: + s.count___59009 = (0); + r0 = pxsim_Array__mk(); + s.reservoir___59010 = (r0); + s.col___59012 = (0); + case 7: + s.tmp_1 = r0 = s.col___59012; + r0 = s.arg0.fields["_map"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_width"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + s.row___59020 = (0); + case 8: + s.tmp_1 = r0 = s.row___59020; + r0 = s.arg0.fields["_map"]; + s.tmp_3 = r0; + r0 = s.tmp_3.fields["_height"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_4 = tiles_TileMapData_getTile__P49409_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_4.arg0 = r0; + s.tmp_4.arg1 = s.col___59012; + s.tmp_4.arg2 = s.row___59020; + s.callLocIdx = 918; s.pc = 19; return s.tmp_4; + case 19: + r0 = s.retval; + s.currTile___59027 = (r0); + r0 = (s.currTile___59027 === s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (s.count___59009 < s.arg2); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C49379_VT); + s.tmp_2 = r0; + s.tmp_3 = tiles_Location_constructor__P49380_mk(s); + s.tmp_3.arg0 = s.tmp_2; + s.tmp_3.arg1 = s.col___59012; + s.tmp_3.arg2 = s.row___59020; + s.tmp_3.arg3 = s.arg0; + s.callLocIdx = 919; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + r0 = pxsim_Array__push(s.reservoir___59010, s.tmp_2); + { step = 12; continue; } + case 9: + r0 = pxsim.Math_.randomRange(0, s.count___59009); + s.potentialIndex___59046 = (r0); + r0 = (s.potentialIndex___59046 < s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C49379_VT); + s.tmp_1 = r0; + s.tmp_2 = tiles_Location_constructor__P49380_mk(s); + s.tmp_2.arg0 = s.tmp_1; + s.tmp_2.arg1 = s.col___59012; + s.tmp_2.arg2 = s.row___59020; + s.tmp_2.arg3 = s.arg0; + s.callLocIdx = 920; s.pc = 21; return s.tmp_2; + case 21: + r0 = s.retval; + r0 = pxsim_Array_.setAt(s.reservoir___59010, s.potentialIndex___59046, s.tmp_1); + case 10: + case 11: + case 12: + r0 = (s.count___59009 + 1); + s.count___59009 = (r0); + case 13: + case 14: + r0 = (s.row___59020 + 1); + s.row___59020 = (r0); + { step = 8; continue; } + case 15: + r0 = (s.col___59012 + 1); + s.col___59012 = (r0); + { step = 7; continue; } + case 16: + r0 = s.reservoir___59010; + case 17: + return leave(s, r0) default: oops() } } } -controller_Controller_up__P291353.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__P291353.isGetter = true; +tiles_TileMap_sampleTilesByType__P49441.info = {"start":12722,"length":1101,"line":427,"column":8,"endLine":451,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"sampleTilesByType","argumentNames":["this","index","maxCount"]} -function controller_Controller_up__P291353_mk(s) { +function tiles_TileMap_sampleTilesByType__P49441_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_up__P291353, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_sampleTilesByType__P49441, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, + count___59009: undefined, + reservoir___59010: undefined, + col___59012: undefined, + row___59020: undefined, + currTile___59027: undefined, + potentialIndex___59046: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function controller_Controller_right__P291352(s) { +function tiles_TileMap_isInvalidIndex__P51279(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14538,36 +13631,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, controller_Controller__C291342_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = (s.arg1 < 0); s.tmp_0 = r0; - r0 = (3 - 1); + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = (s.arg1 > 255); + case 2: + // jmp value (already in r0) s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + r0 = s.tmp_1; + return leave(s, r0) default: oops() } } } -controller_Controller_right__P291352.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__P291352.isGetter = true; +tiles_TileMap_isInvalidIndex__P51279.info = {"start":13833,"length":106,"line":453,"column":8,"endLine":455,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} -function controller_Controller_right__P291352_mk(s) { +function tiles_TileMap_isInvalidIndex__P51279_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P291352, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isInvalidIndex__P51279, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller_left__P291351(s) { +function tiles_TileMap_getImageType__P49438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14577,38 +13678,92 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.tileset___60076 = undefined; + s.i___60081 = undefined; + s.newIndex___60095 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - r0 = (1 - 1); + r0 = s.tmp_0.fields["tileset"]; + s.tileset___60076 = (r0); + s.i___60081 = (0); + case 1: + s.tmp_1 = r0 = s.i___60081; + r0 = pxsim_Array__length(s.tileset___60076); + 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___60076, s.i___60081); + 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___60081; + { step = 7; continue; } + case 2: + case 3: + r0 = (s.i___60081 + 1); + s.i___60081 = (r0); + { step = 1; continue; } + case 4: + r0 = pxsim_Array__length(s.tileset___60076); + s.newIndex___60095 = (r0); + s.tmp_3 = tiles_TileMap_isInvalidIndex__P51279_mk(s); + s.tmp_3.arg0 = s.arg0; + s.tmp_3.arg1 = s.newIndex___60095; + s.callLocIdx = 907; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + 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_Array__push(s.tileset___60076, s.arg1); + r0 = s.newIndex___60095; + { step = 7; continue; } + case 5: + case 6: + r0 = -1; + case 7: + return leave(s, r0) default: oops() } } } -controller_Controller_left__P291351.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__P291351.isGetter = true; +tiles_TileMap_getImageType__P49438.info = {"start":11476,"length":482,"line":392,"column":8,"endLine":405,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getImageType","argumentNames":["this","im"]} -function controller_Controller_left__P291351_mk(s) { +function tiles_TileMap_getImageType__P49438_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P291351, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getImageType__P49438, depth: s.depth + 1, pc: 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___60076: undefined, + i___60081: undefined, + newIndex___60095: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Controller__controlledSprites__P291348(s) { +function tiles_TileMapData_getTileset__P49411(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14620,43 +13775,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P291955_mk(s); - s.callLocIdx = 167; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); - r0 = undefined; + if (!checkSubtype(r0, tiles_TileMapData__C49403_VT)) failedCast(r0); + r0 = s.arg0.fields["tileset"]; return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P291348.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +tiles_TileMapData_getTileset__P49411.info = {"start":7251,"length":57,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileset","argumentNames":["this"]} -function controller_Controller__controlledSprites__P291348_mk(s) { +function tiles_TileMapData_getTileset__P49411_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P291348, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileset__P49411, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Controller__controlledSprites__P291347(s) { +function helpers_getTilemapByName__P49969(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14670,31 +13811,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P291955_mk(s); - s.callLocIdx = 166; s.pc = 1; return s.tmp_1; + s.tmp_0 = helpers__getFactoryInstance__P49967_mk(s); + s.tmp_0.arg0 = "tilemap"; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1405; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = r0.fields["controlledSprites"]; - s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - return leaveAccessor(s, r0) + return leave(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P291347.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__P291347.isGetter = true; +helpers_getTilemapByName__P49969.info = {"start":2525,"length":107,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getTilemapByName","argumentNames":["name"]} -function controller_Controller__controlledSprites__P291347_mk(s) { +function helpers_getTilemapByName__P49969_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P291347, depth: s.depth + 1, + parent: s, fn: helpers_getTilemapByName__P49969, 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, } } @@ -14702,7 +13835,7 @@ function controller_Controller__controlledSprites__P291347_mk(s) { -function controller_Button_pressureLevel__P291332(s) { +function helpers__getFactoryInstance__P49967(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14712,55 +13845,86 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___59135 = undefined; + s.unnamed896___U1 = undefined; + s.unnamed897___U2 = undefined; + s.data___59142 = 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__C291322_VT)) failedCast(r0); - r0 = pxsim.control.deviceDalVersion(); + r0 = pxsim_numops_toBoolDecr(globals.factories___51752); + if (!r0) { step = 7; continue; } + s.factory___59135 = (undefined); + s.unnamed896___U1 = (globals.factories___51752); + s.unnamed897___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed897___U2; + r0 = pxsim_Array__length(s.unnamed896___U1); 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__C291322_v0_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C291322_VT)) failedCast(s.tmp_3.arg0); - s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; - s.pc = 6; return s.tmp_3; - case 6: + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 6; continue; } + r0 = pxsim_Array__getAt(s.unnamed896___U1, s.unnamed897___U2); + s.factory___59135 = (r0); + s.tmp_4 = if_kind_1_mk(s); + s.tmp_4.arg0 = s.factory___59135; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "kind"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["kind"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["kind"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1403; s.pc = 10; return s.tmp_4; } + } + case 10: r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 === s.arg0); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - r0 = 512; - { step = 2; continue; } - case 1: - r0 = 0; + if (!r0) { step = 4; continue; } + s.tmp_5 = if_factory_2_mk(s); + s.tmp_5.arg0 = s.factory___59135; + s.tmp_5.arg1 = s.arg1; + if (!s.tmp_5.arg0.vtable.iface) { + setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "factory"), 2); + s.callLocIdx = 1404; s.pc = 11; return s.tmp_5; + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["factory"]; + if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["factory"], 2); s.callLocIdx = 1404; s.pc = 11; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 1404; s.pc = 11; return s.tmp_5;; } + else { s.callLocIdx = 1404; s.pc = 11; return s.tmp_5; } + } + case 11: + r0 = s.retval; + s.data___59142 = (r0); + r0 = pxsim_numops_toBoolDecr(s.data___59142); + if (!r0) { step = 2; continue; } + r0 = s.data___59142; + { step = 9; continue; } case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 5; continue; } - { step = 4; continue; } case 3: - r0 = s.arg0.fields["id"]; - s.tmp_5 = r0; - r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); - { step = 5; continue; } case 4: - r0 = undefined; case 5: + r0 = (s.unnamed897___U2 + 1); + s.unnamed897___U2 = (r0); + { step = 1; continue; } + case 6: + s.unnamed896___U1 = (undefined); + case 7: + case 8: + r0 = null; + case 9: return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P291332.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} +helpers__getFactoryInstance__P49967.info = {"start":1983,"length":348,"line":60,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_getFactoryInstance","argumentNames":["kind","name"]} -function controller_Button_pressureLevel__P291332_mk(s) { +function helpers__getFactoryInstance__P49967_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P291332, depth: s.depth + 1, + parent: s, fn: helpers__getFactoryInstance__P49967, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14768,14 +13932,19 @@ function controller_Button_pressureLevel__P291332_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, + factory___59135: undefined, + unnamed896___U1: undefined, + unnamed897___U2: undefined, + data___59142: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Button_isPressed__P291331(s) { +function tilemap__P49956(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14787,29 +13956,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C291322_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; + r0 = null; return leave(s, r0) default: oops() } } } -controller_Button_isPressed__P291331.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +tilemap__P49956.info = {"start":99,"length":78,"line":3,"column":0,"endLine":3,"endColumn":78,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"tilemap","argumentNames":["lits","args"]} -function controller_Button_isPressed__P291331_mk(s) { +function tilemap__P49956_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_isPressed__P291331, depth: s.depth + 1, + parent: s, fn: tilemap__P49956, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function Fx_imul__P289565(s) { +function tiles_setTilemap__P49449(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14821,29 +13990,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.Math_.imul(s.arg0, s.arg1); + s.tmp_0 = tiles_setCurrentTilemap__P49450_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 967; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_imul__P289565.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} +tiles_setTilemap__P49449.info = {"start":19215,"length":92,"line":599,"column":4,"endLine":601,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTilemap","argumentNames":["tilemap"]} -function Fx_imul__P289565_mk(s) { +function tiles_setTilemap__P49449_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P289565, depth: s.depth + 1, + parent: s, fn: tiles_setTilemap__P49449, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function power_checkDeepSleep__P291125(s) { +function tiles_setCurrentTilemap__P49450(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14853,94 +14026,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___300984 = undefined; - s.to___300987 = undefined; - s.tmp_0 = power_init__P293143_mk(s); - s.callLocIdx = 85; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; - s.tmp_0 = r0 = globals._poked___293141; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = scene_setTileMapLevel__P49570_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 968; s.pc = 1; return s.tmp_0; case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - s.p___300984 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___293142; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } - case 3: - r0 = 0; - case 4: - // jmp value (already in r0) - s.tmp_1 = r0; - s.to___300987 = (s.tmp_1); - r0 = (s.to___300987 > 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = pxsim.control.millis(); - s.tmp_2 = r0; - r0 = (s.tmp_2 - s.p___300984); - s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___300987); - case 6: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); - if (r0) { step = 7; continue; } - r0 = s.tmp_3; - { step = 8; continue; } - case 7: - r0 = pxsim.control.isUSBInitialized(); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - case 8: - // jmp value (already in r0) - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore.deepSleep(); - case 9: - case 10: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -power_checkDeepSleep__P291125.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +tiles_setCurrentTilemap__P49450.info = {"start":19719,"length":103,"line":613,"column":4,"endLine":615,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setCurrentTilemap","argumentNames":["tilemap"]} -function power_checkDeepSleep__P291125_mk(s) { +function tiles_setCurrentTilemap__P49450_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P291125, depth: s.depth + 1, + parent: s, fn: tiles_setCurrentTilemap__P49450, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - p___300984: undefined, - to___300987: undefined, + arg0: undefined, } } -function power_init__P293143(s) { +function scene_setTileMapLevel__P49570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14950,54 +14064,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___293142 !== undefined); + s.scene___59160 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1033; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.scene___59160 = (r0); + r0 = s.scene___59160.fields["tileMap"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 7; continue; } + r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C49421_VT); + s.tmp_3 = r0; + s.tmp_4 = tiles_TileMap_constructor__P49423_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_4.arg1 = 4; + s.callLocIdx = 1034; s.pc = 4; return s.tmp_4; + case 4: + r0 = s.retval; + r0 = (s.scene___59160).fields["tileMap"] = (s.tmp_3); case 1: case 2: - r0 = pxsim_pxtcore.getConfig(212, -1); - s.tmp_1 = r0; - r0 = (s.tmp_1 * 1000); - globals._timeout___293142 = (r0); - r0 = (globals._timeout___293142 > 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___293142 < 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___293142 = (300000); + s.tmp_0 = tiles_TileMap_setData__P49434_mk(s); + r0 = s.scene___59160.fields["tileMap"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 1035; s.pc = 5; return s.tmp_0; case 5: + r0 = s.retval; + s.tmp_0 = tiles_TileMap_scale__P49425_mk(s); + r0 = s.scene___59160.fields["tileMap"]; + s.tmp_0.arg0 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1037; s.pc = 6; return s.tmp_0; case 6: - case 7: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -power_init__P293143.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +scene_setTileMapLevel__P49570.info = {"start":3018,"length":260,"line":113,"column":4,"endLine":119,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} -function power_init__P293143_mk(s) { +function scene_setTileMapLevel__P49570_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P293143, depth: s.depth + 1, + parent: s, fn: scene_setTileMapLevel__P49570, depth: s.depth + 1, pc: 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___59160: undefined, + arg0: undefined, } } -function power_poke__P291124(s) { +function tiles_TileMap_setData__P49434(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15007,31 +14142,185 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P293143_mk(s); - s.callLocIdx = 84; s.pc = 1; return s.tmp_0; + s.previous___59207 = undefined; + s.eventHandler___59221 = undefined; + s.unnamed886___U2 = undefined; + s.unnamed887___U3 = undefined; + s.eventHandler___59245 = undefined; + s.unnamed888___U5 = undefined; + s.unnamed889___U6 = 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__C49421_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.previous___59207 = (r0); + r0 = s.arg0.fields["handlerState"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = (s.previous___59207 !== s.arg1); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 3; continue; } + r0 = s.tmp_1; + { step = 4; continue; } + case 3: + r0 = s.previous___59207; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 11; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 9; continue; } + s.eventHandler___59221 = (undefined); + r0 = s.arg0.fields["handlerState"]; + s.unnamed886___U2 = (r0); + s.unnamed887___U3 = (0); + case 5: + s.tmp_0 = r0 = s.unnamed887___U3; + r0 = pxsim_Array__length(s.unnamed886___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 8; continue; } + r0 = pxsim_Array__getAt(s.unnamed886___U2, s.unnamed887___U3); + s.eventHandler___59221 = (r0); + r0 = s.eventHandler___59221.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === 1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + s.tmp_4 = if_callback_2_mk(s); + s.tmp_4.arg0 = s.eventHandler___59221; + s.tmp_4.arg1 = s.previous___59207; + if (!s.tmp_4.arg0.vtable.iface) { + setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); + s.callLocIdx = 901; s.pc = 23; return s.tmp_4; + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; + if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 901; s.pc = 23; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 901; s.pc = 23; return s.tmp_4;; } + else { s.callLocIdx = 901; s.pc = 23; return s.tmp_4; } + } + case 23: r0 = s.retval; - r0 = pxsim.control.millis(); - globals._poked___293141 = (r0); + case 6: + case 7: + r0 = (s.unnamed887___U3 + 1); + s.unnamed887___U3 = (r0); + { step = 5; continue; } + case 8: + s.unnamed886___U2 = (undefined); + case 9: + case 10: + case 11: + case 12: + r0 = (s.arg0).fields["_map"] = (s.arg1); + r0 = s.arg0.fields["handlerState"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 13; continue; } + r0 = s.tmp_0; + { step = 14; continue; } + case 13: + r0 = (s.previous___59207 !== s.arg1); + case 14: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 15; continue; } + r0 = s.tmp_1; + { step = 16; continue; } + case 15: + r0 = s.arg1; + case 16: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 21; continue; } + s.eventHandler___59245 = (undefined); + r0 = s.arg0.fields["handlerState"]; + s.unnamed888___U5 = (r0); + s.unnamed889___U6 = (0); + case 17: + s.tmp_0 = r0 = s.unnamed889___U6; + r0 = pxsim_Array__length(s.unnamed888___U5); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 20; continue; } + r0 = pxsim_Array__getAt(s.unnamed888___U5, s.unnamed889___U6); + s.eventHandler___59245 = (r0); + r0 = s.eventHandler___59245.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === 0); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 18; continue; } + s.tmp_4 = if_callback_2_mk(s); + s.tmp_4.arg0 = s.eventHandler___59245; + s.tmp_4.arg1 = s.arg1; + if (!s.tmp_4.arg0.vtable.iface) { + setupLambda(s.tmp_4, pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "callback"), 2); + s.callLocIdx = 902; s.pc = 24; return s.tmp_4; + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["callback"]; + if (s.tmp_4.fn == null) { setupLambda(s.tmp_4, s.tmp_4.arg0.fields["callback"], 2); s.callLocIdx = 902; s.pc = 24; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 902; s.pc = 24; return s.tmp_4;; } + else { s.callLocIdx = 902; s.pc = 24; return s.tmp_4; } + } + case 24: + r0 = s.retval; + case 18: + case 19: + r0 = (s.unnamed889___U6 + 1); + s.unnamed889___U6 = (r0); + { step = 17; continue; } + case 20: + s.unnamed888___U5 = (undefined); + case 21: + case 22: r0 = undefined; return leave(s, r0) default: oops() } } } -power_poke__P291124.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +tiles_TileMap_setData__P49434.info = {"start":10217,"length":794,"line":355,"column":8,"endLine":377,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} -function power_poke__P291124_mk(s) { +function tiles_TileMap_setData__P49434_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P291124, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_setData__P49434, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + previous___59207: undefined, + eventHandler___59221: undefined, + unnamed886___U2: undefined, + unnamed887___U3: undefined, + eventHandler___59245: undefined, + unnamed888___U5: undefined, + unnamed889___U6: undefined, + arg0: undefined, + arg1: undefined, } } -function control_EventContext_deltaTime__P289798(s) { +function tiles_TileMap_scale__P49425(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15043,33 +14332,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C289793_VT)) failedCast(r0); - r0 = s.arg0.fields["deltaTimeMillis"]; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = (s.arg0).fields["_scale"] = (s.arg1); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - r0 = (s.tmp_0 / 1000); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = tiles_TileMapData_scale__P49408_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 890; s.pc = 3; return s.tmp_1; + case 3: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -control_EventContext_deltaTime__P289798.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__P289798.isGetter = true; +tiles_TileMap_scale__P49425.info = {"start":9234,"length":144,"line":314,"column":8,"endLine":319,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function control_EventContext_deltaTime__P289798_mk(s) { +function tiles_TileMap_scale__P49425_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P289798, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P49425, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, + arg1: undefined, } } -function scene_Scene_constructor__P291863(s) { +function tiles_TileMapData_scale__P49408(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15082,111 +14385,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C291842_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__C291603_VT); - s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P291604_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 = 891; 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__C291783_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P291787_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 892; 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__C291695_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P291699_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = s.arg0.fields["camera"]; - s.tmp_1.arg1 = r0; - s.callLocIdx = 893; 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); + if (!checkSubtype(r0, tiles_TileMapData__C49403_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["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.tmp_0).fields["cachedTileView"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P291863.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"]} +tiles_TileMapData_scale__P49408.info = {"start":6604,"length":102,"line":226,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} -function scene_Scene_constructor__P291863_mk(s) { +function tiles_TileMapData_scale__P49408_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P291863, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P49408, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_Camera_constructor__P291787(s) { +function tiles_TileMap_constructor__P49423(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15198,33 +14427,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C291783_VT)) failedCast(r0); - r0 = (s.arg0).fields["_offsetX"] = (0); - r0 = (s.arg0).fields["_offsetY"] = (0); - r0 = (s.arg0).fields["drawOffsetX"] = (0); - r0 = (s.arg0).fields["drawOffsetY"] = (0); + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = (s.arg0).fields["_layer"] = (1); + s.tmp_0 = tiles_TileMap_scale__P49425_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 887; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P59267); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = scene_createRenderable__P49490_mk(s); + s.tmp_3.arg0 = -1; + s.tmp_3.arg1 = s.tmp_0; + s.tmp_3.arg2 = undefined; + s.callLocIdx = 889; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1).fields["renderable"] = (s.tmp_2); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Camera_constructor__P291787.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} +tiles_TileMap_constructor__P49423.info = {"start":8891,"length":268,"line":300,"column":8,"endLine":308,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} -function scene_Camera_constructor__P291787_mk(s) { +function tiles_TileMap_constructor__P49423_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P291787, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P49423, depth: s.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_Background_constructor__P291699(s) { +function tiles_TileMap_inline__P59267(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15239,27 +14490,25 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C291695_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); + s.tmp_0 = tiles_TileMap_draw__P51280_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.arg0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 888; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_constructor__P291699.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} +tiles_TileMap_inline__P59267.info = {"start":9109,"length":25,"line":306,"column":16,"endLine":306,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} -function scene_Background_constructor__P291699_mk(s) { +function tiles_TileMap_inline__P59267_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P291699, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_inline__P59267, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -15268,7 +14517,7 @@ function scene_Background_constructor__P291699_mk(s) { -function ArcadePhysicsEngine_constructor__P291604(s) { +function tiles_TileMap_draw__P51280(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15278,70 +14527,333 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.bitmask___59278 = undefined; + s.offsetX___59284 = undefined; + s.offsetY___59289 = undefined; + s.x0___59294 = undefined; + s.xn___59301 = undefined; + s.y0___59318 = undefined; + s.yn___59325 = undefined; + s.x___59342 = undefined; + s.y___59348 = undefined; + s.index___59354 = undefined; + s.tile___59361 = undefined; + s.x___59397 = undefined; + s.xLine___59403 = undefined; + s.y___59429 = undefined; + s.yLine___59435 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - r0 = undefined; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_Boolean__bang(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C291522_VT); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P291523_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 527; s.pc = 1; return s.tmp_1; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 23; continue; } case 1: - r0 = s.retval; - r0 = (s.arg0).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P291606_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 528; s.pc = 2; return s.tmp_0; case 2: + r0 = s.arg0.fields["_scale"]; + s.tmp_8 = r0; + r0 = (1 << s.tmp_8); + s.tmp_7 = r0; + r0 = (s.tmp_7 - 1); + s.bitmask___59278 = (r0); + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___59278); + s.offsetX___59284 = (r0); + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 & s.bitmask___59278); + s.offsetY___59289 = (r0); + s.tmp_0 = Math_max__P47085_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >> s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 924; s.pc = 24; return s.tmp_0; + case 24: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P291610_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 529; s.pc = 3; return s.tmp_0; - case 3: + s.x0___59294 = (r0); + s.tmp_0 = Math_min__P47086_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["_width"]; + s.tmp_0.arg0 = r0; + r0 = s.arg2.fields["drawOffsetX"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_3 >> s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 927; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P291608_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 530; s.pc = 4; return s.tmp_0; + s.xn___59301 = (r0); + s.tmp_0 = Math_max__P47085_mk(s); + s.tmp_0.arg0 = 0; + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 >> s.tmp_2); + s.tmp_0.arg1 = r0; + s.callLocIdx = 929; s.pc = 26; return s.tmp_0; + case 26: + r0 = s.retval; + s.y0___59318 = (r0); + s.tmp_0 = Math_min__P47086_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["_height"]; + s.tmp_0.arg0 = r0; + r0 = s.arg2.fields["drawOffsetY"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_5 = r0; + r0 = (s.tmp_4 + s.tmp_5); + s.tmp_3 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_6 = r0; + r0 = (s.tmp_3 >> s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_0.arg1 = r0; + s.callLocIdx = 932; s.pc = 27; return s.tmp_0; + case 27: + r0 = s.retval; + s.yn___59325 = (r0); + s.x___59342 = (s.x0___59294); + case 3: + r0 = (s.x___59342 <= s.xn___59301); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.y___59348 = (s.y0___59318); case 4: + r0 = (s.y___59348 <= s.yn___59325); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + s.tmp_1 = tiles_TileMapData_getTile__P49409_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.x___59342; + s.tmp_1.arg2 = s.y___59348; + s.callLocIdx = 933; s.pc = 28; return s.tmp_1; + case 28: + r0 = s.retval; + s.index___59354 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P49412_mk(s); + r0 = s.arg0.fields["_map"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.index___59354; + s.callLocIdx = 934; s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + s.tile___59361 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___59361); + if (!r0) { step = 5; continue; } + s.tmp_0 = r0 = s.arg1; + s.tmp_1 = r0 = s.tile___59361; + r0 = (s.x___59342 - s.x0___59294); + 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___59284); + s.tmp_2 = r0; + r0 = (s.y___59348 - s.y0___59318); + 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___59289); + 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___59348 + 1); + s.y___59348 = (r0); + { step = 4; continue; } + case 7: + r0 = (s.x___59342 + 1); + s.x___59342 = (r0); + { step = 3; continue; } + case 8: + r0 = pxsim_numops_toBoolDecr(globals.debug___49636); + if (!r0) { step = 21; continue; } + s.x___59397 = (s.x0___59294); + case 9: + r0 = (s.x___59397 <= s.xn___59301); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.x___59397 - s.x0___59294); + 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___59284); + s.xLine___59403 = (r0); + r0 = (s.xLine___59403 >= 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___59403; + r0 = pxsim_ImageMethods.width(globals.screen___48784); + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 12; continue; } + s.tmp_4 = helpers_imageDrawLine__P48712_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = s.xLine___59403; + s.tmp_4.arg2 = 0; + s.tmp_4.arg3 = s.xLine___59403; + r0 = pxsim_ImageMethods.height(s.arg1); + s.tmp_4.arg4 = r0; + s.tmp_4.arg5 = 1; + s.callLocIdx = 938; s.pc = 30; return s.tmp_4; + case 30: + r0 = s.retval; + case 12: + case 13: + r0 = (s.x___59397 + 1); + s.x___59397 = (r0); + { step = 9; continue; } + case 14: + s.y___59429 = (s.y0___59318); + case 15: + r0 = (s.y___59429 <= s.yn___59325); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.y___59429 - s.y0___59318); + 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___59289); + s.yLine___59435 = (r0); + r0 = (s.yLine___59435 >= 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___59435; + r0 = pxsim_ImageMethods.height(globals.screen___48784); + s.tmp_2 = r0; + r0 = (s.tmp_1 <= s.tmp_2); + case 17: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 18; continue; } + s.tmp_4 = helpers_imageDrawLine__P48712_mk(s); + s.tmp_4.arg0 = s.arg1; + s.tmp_4.arg1 = 0; + s.tmp_4.arg2 = s.yLine___59435; + r0 = pxsim_ImageMethods.width(s.arg1); + s.tmp_4.arg3 = r0; + s.tmp_4.arg4 = s.yLine___59435; + s.tmp_4.arg5 = 1; + s.callLocIdx = 940; s.pc = 31; return s.tmp_4; + case 31: r0 = s.retval; + case 18: + case 19: + r0 = (s.y___59429 + 1); + s.y___59429 = (r0); + { step = 15; continue; } + case 20: + case 21: + case 22: + case 23: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P291604.info = {"start":1601,"length":277,"line":58,"column":4,"endLine":65,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} +tiles_TileMap_draw__P51280.info = {"start":13949,"length":2224,"line":457,"column":8,"endLine":512,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} -function ArcadePhysicsEngine_constructor__P291604_mk(s) { +function tiles_TileMap_draw__P51280_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P291604, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P51280, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + bitmask___59278: undefined, + offsetX___59284: undefined, + offsetY___59289: undefined, + x0___59294: undefined, + xn___59301: undefined, + y0___59318: undefined, + yn___59325: undefined, + x___59342: undefined, + y___59348: undefined, + index___59354: undefined, + tile___59361: undefined, + x___59397: undefined, + xLine___59403: undefined, + y___59429: undefined, + yLine___59435: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } -function ArcadePhysicsEngine_maxStep__P291610(s) { +function scene_createRenderable__P49490(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15351,42 +14863,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.renderable___59509 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C49485_VT); + s.tmp_0 = r0; + s.tmp_1 = r0 = s.arg2; + r0 = pxsim_numops_toBool(s.tmp_1); + if (!r0) { step = 1; continue; } + r0 = s.tmp_1; + { step = 2; continue; } + case 1: + r0 = renderable_inline__P59515; + case 2: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); - r0 = undefined; + s.tmp_3 = scene_Renderable_constructor__P49486_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 = 999; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.renderable___59509 = (s.tmp_0); + r0 = s.renderable___59509; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P291610.info = {"start":2329,"length":67,"line":88,"column":4,"endLine":90,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +scene_createRenderable__P49490.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 ArcadePhysicsEngine_maxStep__P291610_mk(s) { +function scene_createRenderable__P49490_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P291610, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P49490, depth: s.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___59509: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function ArcadePhysicsEngine_maxStep__P291609(s) { +function renderable_inline__P59515(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15396,38 +14926,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - r0 = s.arg0.fields["maxSingleStep"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + r0 = true; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P291609.info = {"start":2249,"length":74,"line":84,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} -ArcadePhysicsEngine_maxStep__P291609.isGetter = true; +renderable_inline__P59515.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function ArcadePhysicsEngine_maxStep__P291609_mk(s) { +function renderable_inline__P59515_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P291609, depth: s.depth + 1, + parent: s, fn: renderable_inline__P59515, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, } } -function Fx_toInt__P289574(s) { +function scene_Renderable_constructor__P49486(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15439,30 +14955,44 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = (s.arg0 + 128); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 8); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Renderable__C49485_VT)) failedCast(r0); + r0 = (s.arg0).fields["handler"] = (s.arg1); + r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); + s.tmp_0 = sprites_BaseSprite_constructor__P48845_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 996; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Fx_toInt__P289574.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} +scene_Renderable_constructor__P49486.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 Fx_toInt__P289574_mk(s) { +function scene_Renderable_constructor__P49486_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P289574, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P49486, 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 ArcadePhysicsEngine_minStep__P291608(s) { +function scene_setBackgroundColor__P49565(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15472,42 +15002,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___59525 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_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); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1032; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.scene___59525 = (r0); + r0 = s.scene___59525.fields["background"]; + s.tmp_0 = r0; + r0 = (s.tmp_0).fields["color"] = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P291608.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +scene_setBackgroundColor__P49565.info = {"start":1231,"length":140,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundColor","argumentNames":["color"]} -function ArcadePhysicsEngine_minStep__P291608_mk(s) { +function scene_setBackgroundColor__P49565_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P291608, depth: s.depth + 1, + parent: s, fn: scene_setBackgroundColor__P49565, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, + scene___59525: undefined, arg0: undefined, - arg1: undefined, } } -function ArcadePhysicsEngine_minStep__P291607(s) { +function tiles_createTilemap__P49448(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15519,36 +15047,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - r0 = s.arg0.fields["minSingleStep"]; + r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMapData__C49403_VT); s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + s.tmp_1 = tiles_TileMapData_constructor__P49404_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 = 966; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = s.tmp_0; + return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P291607.info = {"start":2096,"length":74,"line":76,"column":4,"endLine":78,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} -ArcadePhysicsEngine_minStep__P291607.isGetter = true; +tiles_createTilemap__P49448.info = {"start":18644,"length":170,"line":586,"column":4,"endLine":588,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"createTilemap","argumentNames":["data","layer","tiles","scale"]} -function ArcadePhysicsEngine_minStep__P291607_mk(s) { +function tiles_createTilemap__P49448_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P291607, depth: s.depth + 1, + parent: s, fn: tiles_createTilemap__P49448, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function ArcadePhysicsEngine_maxSpeed__P291606(s) { +function tiles_TileMapData_constructor__P49404(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15561,77 +15099,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, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C49403_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__P49408_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg4; + s.callLocIdx = 881; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["maxVelocity"]; - s.tmp_2 = r0; - r0 = (0 - s.tmp_2); + r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); + r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P291606.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +tiles_TileMapData_constructor__P49404.info = {"start":6012,"length":358,"line":204,"column":8,"endLine":212,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} -function ArcadePhysicsEngine_maxSpeed__P291606_mk(s) { +function tiles_TileMapData_constructor__P49404_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P291606, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P49404, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function Fx_neg__P289559(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__P289559.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__P289559_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_neg__P289559, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function ArcadePhysicsEngine_maxSpeed__P291605(s) { +function helpers_stringTrim__P47078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15641,30 +15157,86 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.start___59586 = undefined; + s.end___59587 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - r0 = s.arg0.fields["maxVelocity"]; + s.start___59586 = (0); + r0 = pxsim_String_.length(s.arg0); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.end___59587 = (r0); + case 1: + r0 = (s.start___59586 <= s.end___59587); + 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__P47079_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.start___59586); + s.tmp_1.arg0 = r0; + 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___59586 + 1); + s.start___59586 = (r0); + { step = 1; continue; } + case 4: + case 5: + r0 = (s.end___59587 > s.start___59586); s.tmp_0 = r0; - r0 = (s.tmp_0 + 128); - s.tmp_1 = r0; - r0 = (s.tmp_1 >> 8); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 6: + s.tmp_1 = helpers_isWhitespace__P47079_mk(s); + r0 = pxsim_String_.charCodeAt(s.arg0, s.end___59587); + 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___59587 - 1); + s.end___59587 = (r0); + { step = 5; continue; } + case 8: + s.tmp_0 = helpers_stringSlice__P47074_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.start___59586; + r0 = (s.end___59587 + 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() } } } -ArcadePhysicsEngine_maxSpeed__P291605.info = {"start":1884,"length":73,"line":67,"column":4,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} -ArcadePhysicsEngine_maxSpeed__P291605.isGetter = true; +helpers_stringTrim__P47078.info = {"start":14539,"length":319,"line":491,"column":4,"endLine":501,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringTrim","argumentNames":["s"]} -function ArcadePhysicsEngine_maxSpeed__P291605_mk(s) { +function helpers_stringTrim__P47078_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P291605, depth: s.depth + 1, + parent: s, fn: helpers_stringTrim__P47078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + start___59586: undefined, + end___59587: undefined, arg0: undefined, } } @@ -15672,7 +15244,7 @@ function ArcadePhysicsEngine_maxSpeed__P291605_mk(s) { -function PhysicsEngine_constructor__P291588(s) { +function helpers_isWhitespace__P47079(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15686,19 +15258,57 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C291587_VT)) failedCast(r0); + 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() } } } -PhysicsEngine_constructor__P291588.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} +helpers_isWhitespace__P47079.info = {"start":14864,"length":674,"line":503,"column":4,"endLine":520,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} -function PhysicsEngine_constructor__P291588_mk(s) { +function helpers_isWhitespace__P47079_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_constructor__P291588, depth: s.depth + 1, + parent: s, fn: helpers_isWhitespace__P47079, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, } } @@ -15706,7 +15316,7 @@ function PhysicsEngine_constructor__P291588_mk(s) { -function sprites_SpriteMap_constructor__P291523(s) { +function helpers_stringSlice__P47074(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15716,37 +15326,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___55908 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C291522_VT)) failedCast(r0); + r0 = pxsim_String_.length(s.arg0); + s.len___55908 = (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__P47085_mk(s); + r0 = (s.len___55908 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 10; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.arg1 = (r0); + case 1: + case 2: + r0 = (s.arg2 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg2 = (s.len___55908); + { step = 6; continue; } + case 3: + r0 = (s.arg2 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.arg2 = (0); + case 4: + case 5: + case 6: + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (s.len___55908 + s.arg2); + s.arg2 = (r0); + case 7: + case 8: 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; + s.tmp_1 = r0 = s.arg1; + r0 = (s.arg2 - s.arg1); + s.tmp_2 = r0; + r0 = pxsim_String_.substr(s.tmp_0, s.tmp_1, s.tmp_2); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_constructor__P291523.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +helpers_stringSlice__P47074.info = {"start":11496,"length":440,"line":384,"column":4,"endLine":402,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSlice","argumentNames":["s","start","end"]} -function sprites_SpriteMap_constructor__P291523_mk(s) { +function helpers_stringSlice__P47074_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P291523, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P47074, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + len___55908: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function music_Melody_constructor__P291010(s) { +function helpers__registerFactory__P49966(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15761,20 +15415,34 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C291007_VT)) failedCast(r0); - r0 = (s.arg0).fields["_text"] = (s.arg1); + r0 = pxsim_numops_toBoolDecr(globals.factories___51752); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = pxsim_Array__mk(); + globals.factories___51752 = (r0); + case 1: + case 2: + r0 = pxsim_pxtrt.mkMap(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "kind", s.arg0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "factory", s.arg1); + r0 = pxsim_Array__push(globals.factories___51752, s.tmp_0); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_constructor__P291010.info = {"start":6328,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} +helpers__registerFactory__P49966.info = {"start":1776,"length":201,"line":52,"column":4,"endLine":58,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_registerFactory","argumentNames":["kind","factory"]} -function music_Melody_constructor__P291010_mk(s) { +function helpers__registerFactory__P49966_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P291010, depth: s.depth + 1, + parent: s, fn: helpers__registerFactory__P49966, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -15783,7 +15451,7 @@ function music_Melody_constructor__P291010_mk(s) { -function control_pushEventContext__P289807(s) { +function game_eventContext__P49643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15793,63 +15461,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___301892 = undefined; - s.n___301898 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___293074); - s.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___293074 = (r0); + s.tmp_0 = game_init__P51343_mk(s); + s.tmp_0.arg0 = undefined; + s.callLocIdx = 1040; s.pc = 1; return s.tmp_0; case 1: - case 2: - s.tmp_0 = control_eventContext__P289806_mk(s); - s.callLocIdx = 65; s.pc = 5; return s.tmp_0; - case 5: - r0 = s.retval; - s.ctx___301892 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___301892); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P289800_mk(s); - s.tmp_0.arg0 = s.ctx___301892; - 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__C289793_VT); - s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P289797_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___301898 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___293074, s.n___301898); - r0 = s.n___301898; + r0 = globals._scene___51335.fields["eventContext"]; return leave(s, r0) default: oops() } } } -control_pushEventContext__P289807.info = {"start":7123,"length":340,"line":216,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +game_eventContext__P49643.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} -function control_pushEventContext__P289807_mk(s) { +function game_eventContext__P49643_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P289807, depth: s.depth + 1, + parent: s, fn: game_eventContext__P49643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - ctx___301892: undefined, - n___301898: undefined, } } -function control_eventContext__P289806(s) { +function game_init__P51343(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15859,42 +15494,107 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___293074); - if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___293074; - r0 = pxsim_Array__length(globals.eventContexts___293074); - s.tmp_2 = r0; - r0 = (s.tmp_2 - 1); + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(globals._scene___51335); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = undefined; + r0 = s.arg0; case 2: // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C49526_VT); s.tmp_3 = r0; - r0 = s.tmp_3; + s.tmp_4 = scene_Scene_constructor__P49548_mk(s); + s.tmp_4.arg0 = s.tmp_3; + s.tmp_5 = control_pushEventContext__P47364_mk(s); + s.callLocIdx = 1041; s.pc = 14; return s.tmp_5; + case 14: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.tmp_4.arg2 = globals._scene___51335; + s.callLocIdx = 1042; s.pc = 13; return s.tmp_4; + case 13: + r0 = s.retval; + globals._scene___51335 = (s.tmp_3); + case 3: + case 4: + s.tmp_0 = scene_Scene_init__P49549_mk(s); + s.tmp_0.arg0 = globals._scene___51335; + s.callLocIdx = 1043; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(globals.winEffect___49638); + s.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___49638 = (globals.confetti___49910); + case 5: + case 6: + r0 = pxsim_numops_toBoolDecr(globals.loseEffect___49639); + s.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___49639 = (globals.melt___49931); + case 7: + case 8: + r0 = pxsim_numops_toBoolDecr(globals.winSound___51334); + s.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___51334 = (globals.powerUp___48587); + case 9: + case 10: + r0 = pxsim_numops_toBoolDecr(globals.loseSound___51332); + s.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___51332 = (globals.wawawawaa___48584); + case 11: + case 12: + r0 = undefined; return leave(s, r0) default: oops() } } } -control_eventContext__P289806.info = {"start":6907,"length":136,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +game_init__P51343.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function control_eventContext__P289806_mk(s) { +function game_init__P51343_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P289806, depth: s.depth + 1, + parent: s, fn: game_init__P51343, depth: s.depth + 1, pc: 0, retval: undefined, 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 control_EventContext_unregister__P289800(s) { +function melt_inline__P60160(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15904,68 +15604,96 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___301927 = undefined; - s.unnamed22612___U1 = undefined; - s.unnamed22613___U2 = undefined; + s.rounds___60163 = undefined; + s.j___60171 = undefined; + s.x___60176 = undefined; + s.y___60182 = undefined; + s.c___60188 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C289793_VT)) failedCast(r0); - s.h___301927 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed22612___U1 = (r0); - s.unnamed22613___U2 = (0); - case 1: - s.tmp_0 = r0 = s.unnamed22613___U2; - r0 = pxsim_Array__length(s.unnamed22612___U1); + r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 5); + s.rounds___60163 = (r0); + s.j___60171 = (0); + case 1: + r0 = (s.j___60171 < s.rounds___60163); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed22612___U1, s.unnamed22613___U2); - s.h___301927 = (r0); - s.tmp_2 = control_EventHandler_unregister__P293068_mk(s); - s.tmp_2.arg0 = s.h___301927; - s.callLocIdx = 61; s.pc = 3; return s.tmp_2; + s.tmp_1 = Math_FastRandom_randomRange__P49699_mk(s); + s.tmp_1.arg0 = s.arg1; + s.tmp_1.arg1 = 0; + r0 = pxsim_ImageMethods.width(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1.arg2 = r0; + s.callLocIdx = 44; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - r0 = (s.unnamed22613___U2 + 1); - s.unnamed22613___U2 = (r0); - { step = 1; continue; } - case 2: - s.unnamed22612___U1 = (undefined); + s.x___60176 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P49699_mk(s); + s.tmp_0.arg0 = s.arg1; + s.tmp_0.arg1 = 0; + r0 = pxsim_ImageMethods.height(s.arg0); + s.tmp_1 = r0; + r0 = (s.tmp_1 - 3); + s.tmp_0.arg2 = r0; + s.callLocIdx = 45; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.y___60182 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___60176, s.y___60182); + s.c___60188 = (r0); s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["frameWorker"]; + s.tmp_1 = r0 = s.x___60176; + r0 = (s.y___60182 + 1); s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___60188); + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.x___60176; + r0 = (s.y___60182 + 2); + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___60188); + r0 = (s.j___60171 + 1); + s.j___60171 = (r0); + { step = 1; continue; } + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_unregister__P289800.info = {"start":4534,"length":131,"line":137,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +melt_inline__P60160.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} -function control_EventContext_unregister__P289800_mk(s) { +function melt_inline__P60160_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P289800, depth: s.depth + 1, + parent: s, fn: melt_inline__P60160, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___301927: undefined, - unnamed22612___U1: undefined, - unnamed22613___U2: undefined, + rounds___60163: undefined, + j___60171: undefined, + x___60176: undefined, + y___60182: undefined, + c___60188: undefined, arg0: undefined, + arg1: undefined, } } -function control_EventHandler_unregister__P293068(s) { +function confetti_inline__P60214(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15975,68 +15703,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.factory___60217 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C293066_VT)) failedCast(r0); - r0 = s.arg0.fields["src"]; + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C49854_VT); s.tmp_0 = r0; - r0 = s.arg0.fields["value"]; + s.tmp_2 = if_width_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "width"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["width"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["width"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 32; s.pc = 3; return s.tmp_2; } + } + case 3: + r0 = s.retval; s.tmp_1 = r0; - r0 = s.arg0.fields["flags"]; - s.tmp_2 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P293070, s.tmp_2); - r0 = undefined; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 1; continue; } + s.tmp_3 = if_width_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "width"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["width"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["width"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 33; s.pc = 4; return s.tmp_3; } + } + case 4: + r0 = s.retval; + { step = 2; continue; } + case 1: + r0 = 16; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + s.tmp_5 = particles_ConfettiFactory_constructor__P49855_mk(s); + s.tmp_5.arg0 = s.tmp_0; + s.tmp_5.arg1 = s.tmp_4; + s.tmp_5.arg2 = 16; + s.callLocIdx = 34; s.pc = 5; return s.tmp_5; + case 5: + r0 = s.retval; + s.factory___60217 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P49831_mk(s); + s.tmp_0.arg0 = s.factory___60217; + s.tmp_0.arg1 = 30; + s.callLocIdx = 35; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C49787_VT); + s.tmp_0 = r0; + s.tmp_1 = particles_ParticleSource_constructor__P49792_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___60217; + s.callLocIdx = 36; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -control_EventHandler_unregister__P293068.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +confetti_inline__P60214.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function control_EventHandler_unregister__P293068_mk(s) { +function confetti_inline__P60214_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P293068, depth: s.depth + 1, + parent: s, fn: confetti_inline__P60214, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + factory___60217: undefined, arg0: undefined, + arg1: undefined, } } -function control_doNothing__P293070(s) { -let r0 = s.r0, 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__P293070.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__P293070_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_doNothing__P293070, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function control_EventContext_constructor__P289797(s) { +function particles_ParticleSource_constructor__P49792(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16046,52 +15804,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.sources___56239 = undefined; + s.removedSource___56248 = 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_EventContext__C289793_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___289795); + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P48845_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 1235; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = particles_init__P51678_mk(s); + s.callLocIdx = 1236; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.tmp_0 = particles_particleSources__P51684_mk(s); + s.callLocIdx = 1237; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.sources___56239 = (r0); + r0 = pxsim_Array__length(s.sources___56239); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 >= globals.MAX_SOURCES___51670); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_String_.mkEmpty(); - globals.control_EventContext_lastStats___289795 = (r0); + s.tmp_2 = particles_sortSources__P51681_mk(s); + s.tmp_2.arg0 = s.sources___56239; + s.callLocIdx = 1238; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + r0 = pxsim_Array_.removeAt(s.sources___56239, 0); + s.removedSource___56248 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P49802_mk(s); + s.tmp_0.arg0 = s.removedSource___56248; + s.callLocIdx = 1240; s.pc = 9; return s.tmp_0; + case 9: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_destroy__P49801_mk(s); + s.tmp_0.arg0 = s.removedSource___56248; + s.callLocIdx = 1241; 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__P49804_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 1242; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAcceleration__P49796_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = 0; + s.tmp_0.arg2 = 0; + s.callLocIdx = 1243; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = particles_ParticleSource_setAnchor__P49803_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1244; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = (s.arg0).fields["lifespan"] = (undefined); + r0 = (s.arg0).fields["_dt"] = (0); + r0 = (s.arg0).fields["priority"] = (0); + s.tmp_0 = r0 = s.arg3; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = globals.defaultFactory___49807; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.tmp_2 = particles_ParticleSource_setFactory__P49806_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 1245; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + r0 = pxsim_Array__push(s.sources___56239, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P49800_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = true; + s.callLocIdx = 1246; s.pc = 15; return s.tmp_0; + case 15: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_constructor__P289797.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +particles_ParticleSource_constructor__P49792.info = {"start":2307,"length":899,"line":87,"column":8,"endLine":110,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} -function control_EventContext_constructor__P289797_mk(s) { +function particles_ParticleSource_constructor__P49792_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P289797, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P49792, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + sources___56239: undefined, + removedSource___56248: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function control_EventContext_registerFrameHandler__P289801(s) { +function particles_particleSources__P51684(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16101,105 +15937,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___300354 = undefined; - s.i___300363 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C289793_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_3 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_4 = r0; - r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P293072_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 62; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; + s.sources___56695 = undefined; + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1297; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C289790_VT); - s.fn___300354 = (r0); - r0 = (s.fn___300354).fields["order"] = (s.arg1); - r0 = (s.fn___300354).fields["handler"] = (s.arg2); - s.i___300363 = (0); - case 3: - s.tmp_1 = r0 = s.i___300363; - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_3 = r0; - r0 = pxsim_Array__length(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.i___300363); - r0 = r0.fields["order"]; - s.tmp_5 = r0; - r0 = (s.tmp_5 > s.arg1); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 4; continue; } - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_7 = r0; - r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___300363, s.fn___300354); - r0 = s.fn___300354; - { step = 7; continue; } - case 4: - case 5: - r0 = (s.i___300363 + 1); - s.i___300363 = (r0); - { step = 3; continue; } - case 6: - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___300354); - r0 = s.fn___300354; - case 7: + r0 = s.retval; + r0 = r0.fields["particleSources"]; + s.sources___56695 = (r0); + r0 = s.sources___56695; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P289801.info = {"start":4675,"length":643,"line":143,"column":8,"endLine":160,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} +particles_particleSources__P51684.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function control_EventContext_registerFrameHandler__P289801_mk(s) { +function particles_particleSources__P51684_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P289801, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P51684, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - fn___300354: undefined, - i___300363: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + sources___56695: undefined, } } -function control_EventContext_registerFrameCallbacks__P293072(s) { +function particles_sortSources__P51681(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16209,47 +15973,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___300397 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C289793_VT)) failedCast(r0); - r0 = s.arg0.fields["frameCallbacks"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } + s.tmp_0 = helpers_arraySort__P47060_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = particles_sortSources_inline__P56540; + s.callLocIdx = 1284; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = s.arg0.fields["frameWorker"]; - s.worker___300397 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P300403); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___300397); - r0 = pxsim.control.runInParallel(s.tmp_0); - case 3: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P293072.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +particles_sortSources__P51681.info = {"start":10026,"length":129,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} -function control_EventContext_registerFrameCallbacks__P293072_mk(s) { +function particles_sortSources__P51681_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P293072, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P51681, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - worker___300397: undefined, arg0: undefined, } } @@ -16257,83 +16002,66 @@ function control_EventContext_registerFrameCallbacks__P293072_mk(s) { -function inline__P300403(s) { +function particles_sortSources_inline__P56540(s) { let r0 = s.r0, 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.delay___300433 = 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__P300409); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P289765_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = undefined; - s.callLocIdx = 56; s.pc = 5; return s.tmp_2; - case 5: - r0 = s.retval; - case 1: - case 2: - r0 = (s.caps[0]).fields["runningCallbacks"] = (true); - r0 = (s.caps[0]).fields["framesInSample"] = (0); - r0 = (s.caps[0]).fields["timeInSample"] = (0); - r0 = (s.caps[0]).fields["deltaTimeMillis"] = (0); - s.tmp_0 = r0 = s.caps[0]; - r0 = pxsim.control.millis(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["prevTimeMillis"] = (s.tmp_1); - case 3: - r0 = s.caps[0].fields["frameWorker"]; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0.fields["priority"]; s.tmp_1 = r0; - r0 = (s.caps[1] == s.tmp_1); + r0 = s.arg1.fields["priority"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - s.tmp_2 = control_EventContext_runCallbacks__P293071_mk(s); - s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 57; s.pc = 6; return s.tmp_2; - case 6: - r0 = s.retval; - s.delay___300433 = (r0); - s.tmp_0 = pause__P289811_mk(s); - s.tmp_0.arg0 = s.delay___300433; - s.callLocIdx = 58; s.pc = 7; return s.tmp_0; - case 7: - r0 = s.retval; - { step = 3; continue; } - case 4: - r0 = (s.caps[0]).fields["runningCallbacks"] = (false); - r0 = undefined; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_3 = r0; + r0 = s.arg1.fields["id"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 - s.tmp_4); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = s.tmp_5; return leave(s, r0) default: oops() } } } -inline__P300403.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +particles_sortSources_inline__P56540.info = {"start":10097,"length":50,"line":333,"column":21,"endLine":333,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} -function inline__P300403_mk(s) { +function particles_sortSources_inline__P56540_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300403, depth: s.depth + 1, + parent: s, fn: particles_sortSources_inline__P56540, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - delay___300433: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + arg0: undefined, + arg1: undefined, } } -function inline__P300409(s) { +function helpers_arraySort__P47060(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16343,30 +16071,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["runningCallbacks"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_Boolean__bang(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_2 > 1); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + s.arg1 = (helpers_arraySort_inline__P56563); + case 3: + case 4: + s.tmp_0 = helpers_sortHelper__P50905_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 2; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P300409.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +helpers_arraySort__P47060.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]} -function inline__P300409_mk(s) { +function helpers_arraySort__P47060_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300409, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P47060, depth: s.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_runCallbacks__P293071(s) { +function helpers_arraySort_inline__P56563(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16376,234 +16134,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___300442 = undefined; - s.f___300455 = undefined; - s.unnamed22608___U2 = undefined; - s.unnamed22609___U3 = undefined; - s.runtime___300460 = undefined; - s.fps___300480 = undefined; - s.delay___300542 = undefined; + s.aIsUndef___56566 = undefined; + s.bIsUndef___56570 = undefined; + s.aIsNull___56581 = undefined; + s.bIsNull___56585 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C289793_VT)) failedCast(r0); - r0 = pxsim.control.millis(); - s.loopStart___300442 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.arg0.fields["prevTimeMillis"]; - s.tmp_2 = r0; - r0 = (s.loopStart___300442 - s.tmp_2); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___300442); - s.f___300455 = (undefined); - r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed22608___U2 = (r0); - s.unnamed22609___U3 = (0); + r0 = (s.arg0 === undefined); + s.aIsUndef___56566 = (r0); + r0 = (s.arg1 === undefined); + s.bIsUndef___56570 = (r0); + s.tmp_0 = r0 = s.aIsUndef___56566; + 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.unnamed22609___U3; - r0 = pxsim_Array__length(s.unnamed22608___U2); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed22608___U2, s.unnamed22609___U3); - s.f___300455 = (r0); - s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___300455; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); - 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.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.unnamed22609___U3 + 1); - s.unnamed22609___U3 = (r0); - { step = 1; continue; } + r0 = s.bIsUndef___56570; case 2: - s.unnamed22608___U2 = (undefined); - r0 = pxsim.control.millis(); - s.tmp_0 = r0; - r0 = (s.tmp_0 - s.loopStart___300442); - s.runtime___300460 = (r0); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["timeInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___300460); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); - s.tmp_0 = r0 = s.arg0; - r0 = s.tmp_0.fields["framesInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["framesInSample"] = (s.tmp_1); - r0 = s.arg0.fields["timeInSample"]; + // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.tmp_1 > 1000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 3; continue; } - r0 = s.tmp_0; - { step = 4; continue; } + r0 = 0; + { step = 17; continue; } + { step = 8; continue; } case 3: - r0 = s.arg0.fields["framesInSample"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 > 30); + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___56566); + if (!r0) { step = 4; continue; } + r0 = 1; + { step = 17; continue; } + { step = 7; continue; } case 4: + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___56570); + if (!r0) { step = 5; continue; } + r0 = -1; + { step = 17; continue; } + case 5: + case 6: + case 7: + case 8: + r0 = (s.arg0 === null); + s.aIsNull___56581 = (r0); + r0 = (s.arg1 === null); + s.bIsNull___56585 = (r0); + s.tmp_0 = r0 = s.aIsNull___56581; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 9: + r0 = s.bIsNull___56585; + case 10: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 11; continue; } - r0 = s.arg0.fields["framesInSample"]; - s.tmp_4 = r0; - r0 = s.arg0.fields["timeInSample"]; - s.tmp_6 = r0; - r0 = (s.tmp_6 / 1000); - s.tmp_5 = r0; - r0 = (s.tmp_4 / s.tmp_5); - s.fps___300480 = (r0); - r0 = pxsim.Math_.round(s.fps___300480); s.tmp_1 = r0; - if ((s.tmp_1) && (s.tmp_1).vtable) { - setupResume(s, 14); - pxsim_String__stringConv(s.tmp_1); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_1) + ""; } + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 11; continue; } + r0 = 0; + { step = 17; continue; } + { step = 16; continue; } + case 11: + r0 = pxsim_numops_toBoolDecr(s.aIsNull___56581); + if (!r0) { step = 12; continue; } + r0 = 1; + { step = 17; continue; } + { step = 15; continue; } + case 12: + r0 = pxsim_numops_toBoolDecr(s.bIsNull___56585); + if (!r0) { step = 13; continue; } + r0 = -1; + { step = 17; continue; } + case 13: case 14: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_String__concat("fps:", s.tmp_0); - globals.control_EventContext_lastStats___289795 = (r0); - r0 = (s.fps___300480 < 99); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___289795) && (globals.control_EventContext_lastStats___289795).vtable) { - setupResume(s, 15); - pxsim_String__stringConv(globals.control_EventContext_lastStats___289795); - checkResumeConsumed(); - return; - } else { s.retval = (globals.control_EventContext_lastStats___289795) + ""; } case 15: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.fps___300480 * 10); - s.tmp_7 = r0; - r0 = pxsim.Math_.round(s.tmp_7); - s.tmp_6 = r0; - r0 = (s.tmp_6 % 10); - s.tmp_5 = r0; - if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 16); - pxsim_String__stringConv(s.tmp_5); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_5) + ""; } case 16: - r0 = s.retval; - s.tmp_4 = r0; - r0 = pxsim_String__concat(".", s.tmp_4); - s.tmp_3 = r0; - if ((s.tmp_3) && (s.tmp_3).vtable) { - setupResume(s, 17); - pxsim_String__stringConv(s.tmp_3); + if ((s.arg0) && (s.arg0).vtable) { + setupResume(s, 18); + pxsim_String__stringConv(s.arg0); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_3) + ""; } - case 17: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - globals.control_EventContext_lastStats___289795 = (r0); - case 5: - case 6: - s.tmp_2 = control_ramSize__P289744_mk(s); - s.callLocIdx = 54; s.pc = 18; return s.tmp_2; + } else { s.retval = (s.arg0) + ""; } case 18: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 2000000); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 7; continue; } - r0 = s.tmp_0; - { step = 8; continue; } - case 7: - r0 = pxsim.control.profilingEnabled(); - case 8: - // jmp value (already in r0) s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 9; continue; } r0 = pxsim_String_.mkEmpty(); - s.tmp_8 = r0; - r0 = (s.fps___300480 * 100); - s.tmp_11 = r0; - r0 = (s.tmp_11 | 0); - s.tmp_10 = r0; - if ((s.tmp_10) && (s.tmp_10).vtable) { + s.tmp_4 = r0; + r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); + s.tmp_2 = r0; + if ((s.arg1) && (s.arg1).vtable) { setupResume(s, 19); - pxsim_String__stringConv(s.tmp_10); + pxsim_String__stringConv(s.arg1); checkResumeConsumed(); return; - } else { s.retval = (s.tmp_10) + ""; } + } else { s.retval = (s.arg1) + ""; } case 19: r0 = s.retval; - s.tmp_9 = r0; - r0 = pxsim_String__concat(s.tmp_8, s.tmp_9); - s.tmp_7 = r0; - r0 = pxsim_String__concat(s.tmp_7, "/100 fps - "); s.tmp_6 = r0; - r0 = s.arg0.fields["framesInSample"]; - s.tmp_13 = r0; - if ((s.tmp_13) && (s.tmp_13).vtable) { - setupResume(s, 20); - pxsim_String__stringConv(s.tmp_13); - checkResumeConsumed(); - return; - } else { s.retval = (s.tmp_13) + ""; } - case 20: - r0 = s.retval; - s.tmp_12 = r0; - r0 = pxsim_String__concat(s.tmp_6, s.tmp_12); + r0 = pxsim_String_.mkEmpty(); + s.tmp_7 = r0; + r0 = pxsim_String__concat(s.tmp_6, s.tmp_7); s.tmp_5 = r0; - r0 = pxsim_String__concat(s.tmp_5, " frames"); - s.tmp_4 = r0; - r0 = pxsim.control.dmesg(s.tmp_4); - r0 = pxsim.control.gc(); - r0 = pxsim_pxtcore.dumpPerfCounters(); - case 9: - case 10: - r0 = (s.arg0).fields["timeInSample"] = (0); - r0 = (s.arg0).fields["framesInSample"] = (0); - case 11: - case 12: - s.tmp_0 = Math_max__P289534_mk(s); - s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___300460); - s.tmp_0.arg1 = r0; - s.callLocIdx = 55; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.delay___300542 = (r0); - r0 = s.delay___300542; + r0 = pxsim_String_.compare(s.tmp_2, s.tmp_5); + case 17: return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P293071.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +helpers_arraySort_inline__P56563.info = {"start":5826,"length":636,"line":209,"column":25,"endLine":224,"endColumn":13,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"inline","argumentNames":["a","b"]} -function control_EventContext_runCallbacks__P293071_mk(s) { +function helpers_arraySort_inline__P56563_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P293071, depth: s.depth + 1, + parent: s, fn: helpers_arraySort_inline__P56563, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16613,27 +16257,19 @@ function control_EventContext_runCallbacks__P293071_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - loopStart___300442: undefined, - f___300455: undefined, - unnamed22608___U2: undefined, - unnamed22609___U3: undefined, - runtime___300460: undefined, - fps___300480: undefined, - delay___300542: undefined, + aIsUndef___56566: undefined, + bIsUndef___56570: undefined, + aIsNull___56581: undefined, + bIsNull___56585: undefined, arg0: undefined, + arg1: undefined, } } -function pauseUntil__P289765(s) { +function helpers_sortHelper__P50905(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16643,68 +16279,105 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.len___56620 = undefined; + s.i___56623 = undefined; + s.j___56629 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = pxsim_Array__length(s.arg0); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = lambda_1_mk(s); - s.tmp_2.argL = s.arg0; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 33; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.arg1); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - { step = 7; continue; } + r0 = s.arg0; + { step = 11; continue; } case 3: case 4: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 5; continue; } - s.arg1 = (0); + r0 = pxsim_Array__length(s.arg0); + s.len___56620 = (r0); + s.i___56623 = (0); case 5: + s.tmp_1 = r0 = s.i___56623; + r0 = (s.len___56620 - 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___56623 + 1); + s.j___56629 = (r0); case 6: - s.tmp_0 = control___queuePollEvent__P289764_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = undefined; - s.callLocIdx = 34; s.pc = 9; return s.tmp_0; - case 9: + r0 = (s.j___56629 < s.len___56620); + 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___56623); + s.tmp_3.arg0 = r0; + r0 = pxsim_Array__getAt(s.arg0, s.j___56629); + s.tmp_3.arg1 = r0; + setupLambda(s.tmp_3, s.tmp_3.argL); + s.callLocIdx = 0; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.tmp_4 = helpers_swap__P50904_mk(s); + s.tmp_4.arg0 = s.arg0; + s.tmp_4.arg1 = s.i___56623; + s.tmp_4.arg2 = s.j___56629; + s.callLocIdx = 1; s.pc = 13; return s.tmp_4; + case 13: r0 = s.retval; case 7: - r0 = undefined; + case 8: + r0 = (s.j___56629 + 1); + s.j___56629 = (r0); + { step = 6; continue; } + case 9: + r0 = (s.i___56623 + 1); + s.i___56623 = (r0); + { step = 5; continue; } + case 10: + r0 = s.arg0; + case 11: return leave(s, r0) default: oops() } } } -pauseUntil__P289765.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +helpers_sortHelper__P50905.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 pauseUntil__P289765_mk(s) { +function helpers_sortHelper__P50905_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P289765, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P50905, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, + len___56620: undefined, + i___56623: undefined, + j___56629: undefined, arg0: undefined, arg1: undefined, } } @@ -16713,7 +16386,7 @@ function pauseUntil__P289765_mk(s) { -function control___queuePollEvent__P289764(s) { +function helpers_swap__P50904(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16723,87 +16396,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___300564 = undefined; + s.temp___56658 = 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__C293045_VT); - s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P293046_mk(s); - s.tmp_1.arg0 = s.tmp_0; - r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = 1; - r0 = pxsim.control.millis(); - s.tmp_1.arg3 = r0; - s.tmp_1.arg4 = s.arg0; - s.tmp_1.arg5 = s.arg1; - r0 = pxsim_numops_toBoolDecr(s.arg2); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1.arg6 = r0; - s.callLocIdx = 31; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - s.ev___300564 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___293048); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim_Array__mk(); + r0 = pxsim_Array__getAt(s.arg0, s.arg1); + s.temp___56658 = (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__push(s.tmp_2, s.ev___300564); - globals._pollEventQueue___293048 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P293049); - { step = 2; continue; } - case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___293048, s.ev___300564); - case 2: - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P289789_mk(s); - r0 = s.ev___300564.fields["eid"]; - s.tmp_0.arg0 = r0; - r0 = s.ev___300564.fields["vid"]; - s.tmp_0.arg1 = r0; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = 16; - s.callLocIdx = 32; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - { step = 4; continue; } - case 3: - r0 = s.ev___300564.fields["eid"]; - s.tmp_0 = r0; - r0 = s.ev___300564.fields["vid"]; - s.tmp_1 = r0; - setupResume(s, 7); - pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); - checkResumeConsumed(); - return; - case 7: - r0 = s.retval; - case 4: + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.tmp_2); + r0 = pxsim_Array_.setAt(s.arg0, s.arg2, s.temp___56658); r0 = undefined; return leave(s, r0) default: oops() } } } -control___queuePollEvent__P289764.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"]} +helpers_swap__P50904.info = {"start":5030,"length":140,"line":185,"column":4,"endLine":189,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"swap","argumentNames":["arr","i","j"]} -function control___queuePollEvent__P289764_mk(s) { +function helpers_swap__P50904_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P289764, depth: s.depth + 1, + parent: s, fn: helpers_swap__P50904, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ev___300564: undefined, + temp___56658: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -16813,7 +16435,7 @@ function control___queuePollEvent__P289764_mk(s) { -function control_pollEvents__P293049(s) { +function particles_init__P51678(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16823,139 +16445,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___300606 = undefined; - s.i___300609 = undefined; - s.ev___300615 = undefined; - case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___293048); - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); + s.scene___56700 = undefined; + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1274; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.scene___56700 = (r0); + r0 = s.scene___56700.fields["particleSources"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = pxsim.control.millis(); - s.now___300606 = (r0); - s.i___300609 = (0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: case 2: - s.tmp_1 = r0 = s.i___300609; - r0 = pxsim_Array__length(globals._pollEventQueue___293048); - 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___293048, s.i___300609); - s.ev___300615 = (r0); - s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___300615; - 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; } - } - 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___300615.fields["timeOut"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 > 0); + s.tmp_1 = r0 = s.scene___56700; + r0 = pxsim_Array__mk(); 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___300615.fields["start"]; - s.tmp_5 = r0; - r0 = (s.now___300606 - s.tmp_5); - s.tmp_4 = r0; - r0 = s.ev___300615.fields["timeOut"]; - s.tmp_6 = r0; - r0 = (s.tmp_4 > s.tmp_6); + r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); + r0 = pxsim.control.millis(); + globals.lastUpdate___51673 = (r0); + s.tmp_0 = game_onUpdate__P49659_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P51679; + s.callLocIdx = 1275; s.pc = 5; return s.tmp_0; case 5: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; - case 6: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_8); - if (!r0) { step = 9; continue; } - r0 = s.ev___300615.fields["eid"]; - s.tmp_9 = r0; - r0 = s.ev___300615.fields["vid"]; - s.tmp_10 = r0; - r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___300615.fields["once"]; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P289505_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___293048; - s.tmp_1.arg1 = s.i___300609; - s.tmp_1.arg2 = 1; - s.callLocIdx = 29; s.pc = 14; return s.tmp_1; - case 14: r0 = s.retval; - r0 = (s.i___300609 - 1); - s.i___300609 = (r0); - case 7: - case 8: - case 9: - case 10: - r0 = (s.i___300609 + 1); - s.i___300609 = (r0); - { step = 2; continue; } - case 11: - s.tmp_0 = pause__P289811_mk(s); - s.tmp_0.arg0 = 50; - s.callLocIdx = 30; s.pc = 15; return s.tmp_0; - case 15: + s.tmp_0 = game_onUpdateInterval__P49660_mk(s); + s.tmp_0.arg0 = 250; + s.tmp_0.arg1 = particles_pruneParticles__P51680; + s.callLocIdx = 1276; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - { step = 1; continue; } - case 12: - globals._pollEventQueue___293048 = (undefined); + case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -control_pollEvents__P293049.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +particles_init__P51678.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} -function control_pollEvents__P293049_mk(s) { +function particles_init__P51678_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P293049, depth: s.depth + 1, + parent: s, fn: particles_init__P51678, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - now___300606: undefined, - i___300609: undefined, - ev___300615: undefined, + scene___56700: undefined, } } -function control_PollEvent_constructor__P293046(s) { +function particles_pruneParticles__P51680(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16965,49 +16507,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); - s.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__C293045_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); + s.sources___56715 = undefined; + s.tmp_0 = particles_particleSources__P51684_mk(s); + s.callLocIdx = 1280; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___56715 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___56715); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P47064_mk(s); + s.tmp_1 = helpers_arraySlice__P47070_mk(s); + s.tmp_1.arg0 = s.sources___56715; + s.tmp_1.arg1 = 0; + r0 = pxsim_Array__length(s.sources___56715); + s.tmp_1.arg2 = r0; + s.callLocIdx = 1281; s.pc = 5; return s.tmp_1; + case 5: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = particles_pruneParticles_inline__P56724; + s.callLocIdx = 1283; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 1: + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -control_PollEvent_constructor__P293046.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} +particles_pruneParticles__P51680.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} -function control_PollEvent_constructor__P293046_mk(s) { +function particles_pruneParticles__P51680_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P293046, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P51680, 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, + tmp_0: undefined, + tmp_1: undefined, + sources___56715: undefined, } } -function control_onEvent__P289789(s) { +function particles_pruneParticles_inline__P56724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17017,63 +16561,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___299189 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = control_eventContext__P289806_mk(s); - s.callLocIdx = 50; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - s.ctx___299189 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___299189); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); - { step = 2; continue; } + s.tmp_0 = particles_ParticleSource__prune__P49795_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1282; s.pc = 1; return s.tmp_0; case 1: - s.tmp_0 = control_EventContext_registerHandler__P289803_mk(s); - s.tmp_0.arg0 = s.ctx___299189; - 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() } } } -control_onEvent__P289789.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"]} +particles_pruneParticles_inline__P56724.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function control_onEvent__P289789_mk(s) { +function particles_pruneParticles_inline__P56724_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P289789, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles_inline__P56724, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - ctx___299189: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function control_EventContext_registerHandler__P289803(s) { +function particles_ParticleSource__prune__P49795(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17083,90 +16599,137 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___299212 = undefined; - s.unnamed22614___U1 = undefined; - s.unnamed22615___U2 = undefined; - s.hn___299235 = undefined; + s.scene___56487 = undefined; + s.sources___56495 = undefined; + s.current___56509 = 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__C289793_VT)) failedCast(r0); - s.h___299212 = (undefined); - r0 = s.arg0.fields["handlers"]; - s.unnamed22614___U1 = (r0); - s.unnamed22615___U2 = (0); + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); case 1: - s.tmp_0 = r0 = s.unnamed22615___U2; - r0 = pxsim_Array__length(s.unnamed22614___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed22614___U1, s.unnamed22615___U2); - s.h___299212 = (r0); - r0 = s.h___299212.fields["src"]; - s.tmp_3 = r0; - r0 = (s.tmp_3 == s.arg1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBool(s.tmp_2); + r0 = s.arg0.fields["head"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } - r0 = s.tmp_2; + r0 = s.tmp_0; { step = 3; continue; } case 2: - r0 = s.h___299212.fields["value"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 == s.arg2); + r0 = s.arg0.fields["head"]; + r0 = r0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); case 3: // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 4; continue; } - r0 = (s.h___299212).fields["flags"] = (s.arg4); - r0 = (s.h___299212).fields["handler"] = (s.arg3); - { step = 7; continue; } + r0 = s.arg0.fields["head"]; + r0 = r0.fields["next"]; + s.tmp_3 = r0; + r0 = (s.arg0).fields["head"] = (s.tmp_3); + { step = 1; continue; } case 4: + r0 = s.arg0.fields["pFlags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } case 5: - r0 = (s.unnamed22615___U2 + 1); - s.unnamed22615___U2 = (r0); - { step = 1; continue; } + r0 = s.arg0.fields["head"]; + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); case 6: - s.unnamed22614___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C293066_VT); + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 13; continue; } + s.tmp_5 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1255; s.pc = 21; return s.tmp_5; + case 21: + r0 = s.retval; + s.scene___56487 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___56487); + if (!r0) { step = 7; continue; } + r0 = s.scene___56487.fields["allSprites"]; s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P293069_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; + r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); + case 7: case 8: + s.tmp_0 = particles_particleSources__P51684_mk(s); + s.callLocIdx = 1256; s.pc = 22; return s.tmp_0; + case 22: r0 = s.retval; - s.hn___299235 = (s.tmp_0); - r0 = s.arg0.fields["handlers"]; - s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___299235); - s.tmp_0 = control_EventHandler_register__P293067_mk(s); - s.tmp_0.arg0 = s.hn___299235; - s.callLocIdx = 64; s.pc = 9; return s.tmp_0; + s.sources___56495 = (r0); + s.tmp_0 = r0 = s.sources___56495; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } case 9: - r0 = s.retval; - case 7: + r0 = pxsim_Array__length(s.sources___56495); + 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___56495, s.arg0); + case 11: + case 12: + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 == undefined); + case 13: + case 14: + r0 = s.arg0.fields["head"]; + s.current___56509 = (r0); + case 15: + s.tmp_0 = r0 = s.current___56509; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 16; continue; } + r0 = s.tmp_0; + { step = 17; continue; } + case 16: + r0 = s.current___56509.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___56509.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___56509.fields["next"]; + r0 = r0.fields["next"]; + s.tmp_4 = r0; + r0 = (s.current___56509).fields["next"] = (s.tmp_4); + { step = 19; continue; } + case 18: + r0 = s.current___56509.fields["next"]; + s.current___56509 = (r0); + case 19: + { step = 15; continue; } + case 20: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P289803.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"]} +particles_ParticleSource__prune__P49795.info = {"start":5104,"length":830,"line":166,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} -function control_EventContext_registerHandler__P289803_mk(s) { +function particles_ParticleSource__prune__P49795_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P289803, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__prune__P49795, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17174,22 +16737,17 @@ function control_EventContext_registerHandler__P289803_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - h___299212: undefined, - unnamed22614___U1: undefined, - unnamed22615___U2: undefined, - hn___299235: undefined, + scene___56487: undefined, + sources___56495: undefined, + current___56509: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function control_EventHandler_constructor__P293069(s) { +function helpers_arraySlice__P47070(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17199,91 +16757,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.res___56146 = undefined; + s.len___56148 = undefined; + s.i___56182 = 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_EventHandler__C293066_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() -} } } -control_EventHandler_constructor__P293069.info = {"start":786,"length":165,"line":23,"column":8,"endLine":28,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this","src","value","handler","flags"]} - -function control_EventHandler_constructor__P293069_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_EventHandler_constructor__P293069, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, -} } - - - - - -function control_EventHandler_register__P293067(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C293066_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P299256); + r0 = pxsim_Array__mk(); + s.res___56146 = (r0); + r0 = pxsim_Array__length(s.arg0); + s.len___56148 = (r0); + r0 = (s.arg1 === undefined); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = s.arg0.fields["src"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.arg1 = (0); + { step = 4; continue; } + case 1: + r0 = (s.arg1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = Math_max__P47085_mk(s); + r0 = (s.len___56148 + s.arg1); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + 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___56148); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.res___56146; + { step = 15; continue; } + case 5: + case 6: + r0 = (s.arg2 === undefined); s.tmp_1 = r0; - r0 = s.arg0.fields["value"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + s.arg2 = (s.len___56148); + { 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___56148 + s.arg2); + s.arg2 = (r0); + case 8: + case 9: + case 10: + r0 = (s.arg2 > s.len___56148); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.arg2 = (s.len___56148); + case 11: + case 12: + s.i___56182 = (s.arg1); + case 13: + r0 = (s.i___56182 < s.arg2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.res___56146; + r0 = pxsim_Array__getAt(s.arg0, s.i___56182); 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; + r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); + r0 = (s.i___56182 + 1); + s.i___56182 = (r0); + { step = 13; continue; } + case 14: + r0 = s.res___56146; + case 15: return leave(s, r0) default: oops() } } } -control_EventHandler_register__P293067.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +helpers_arraySlice__P47070.info = {"start":9027,"length":690,"line":303,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} -function control_EventHandler_register__P293067_mk(s) { +function helpers_arraySlice__P47070_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P293067, depth: s.depth + 1, + parent: s, fn: helpers_arraySlice__P47070, depth: s.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___56146: undefined, + len___56148: undefined, + i___56182: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function inline__P299256(s) { +function particles_updateParticles__P51679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17293,45 +16874,81 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = s.caps[0].fields["handler"]; + s.sources___56728 = undefined; + s.time___56735 = undefined; + s.dt___56738 = undefined; + s.i___56744 = undefined; + s.tmp_0 = particles_particleSources__P51684_mk(s); + s.callLocIdx = 1277; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.sources___56728 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___56728); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = 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; } - } - case 3: - r0 = s.retval; + { step = 5; continue; } case 1: case 2: + s.tmp_2 = particles_sortSources__P51681_mk(s); + s.tmp_2.arg0 = s.sources___56728; + s.callLocIdx = 1278; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + r0 = pxsim.control.millis(); + s.time___56735 = (r0); + r0 = (s.time___56735 - globals.lastUpdate___51673); + s.dt___56738 = (r0); + globals.lastUpdate___51673 = (s.time___56735); + s.i___56744 = (0); + case 3: + s.tmp_1 = r0 = s.i___56744; + r0 = pxsim_Array__length(s.sources___56728); + 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__P49794_mk(s); + r0 = pxsim_Array__getAt(s.sources___56728, s.i___56744); + s.tmp_3.arg0 = r0; + s.tmp_3.arg1 = s.dt___56738; + s.callLocIdx = 1279; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; + r0 = (s.i___56744 + 1); + s.i___56744 = (r0); + { step = 3; continue; } + case 4: + case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P299256.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +particles_updateParticles__P51679.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function inline__P299256_mk(s) { +function particles_updateParticles__P51679_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P299256, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P51679, depth: s.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___56728: undefined, + time___56735: undefined, + dt___56738: undefined, + i___56744: undefined, } } -function scene_followPath__P292976(s) { +function particles_ParticleSource__update__P49794(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17341,285 +16958,245 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pathFollowingSprites___295831 = undefined; - s.i___295835 = undefined; - s.pfs___295842 = undefined; - s.tm___295860 = undefined; - s.nearestTile___295869 = undefined; - s.minDistSquared___295871 = undefined; - s.p___295873 = undefined; - s.unnamed26482___U7 = undefined; - s.unnamed26483___U8 = undefined; - s.distSqrd___295875 = undefined; - s.remainingPath___295901 = undefined; - s.remainingPath___295912 = undefined; - s.currentLocation___295923 = undefined; - s.pathToNearest___295928 = undefined; + s.p___56807 = undefined; + s.current___56826 = undefined; + s.fixedDt___56834 = 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); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["timer"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.arg1); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_0).fields["timer"] = (s.tmp_1); + r0 = s.arg0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["lifespan"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.arg1); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["lifespan"] = (s.tmp_3); + r0 = s.arg0.fields["lifespan"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 <= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 25; continue; } + r0 = (s.arg0).fields["lifespan"] = (undefined); + s.tmp_0 = particles_ParticleSource_destroy__P49801_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1250; s.pc = 28; return s.tmp_0; + case 28: + r0 = s.retval; 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; } + { step = 10; 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); + r0 = s.arg0.fields["anchor"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 4; continue; } + r0 = s.tmp_0; + { step = 5; continue; } case 4: - // 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; } + s.tmp_2 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_2.arg0 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "flags"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1251; s.pc = 29; return s.tmp_2; } + } + case 29: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); 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__P295654_mk(s); - s.callLocIdx = 153; s.pc = 26; return s.tmp_9; - case 26: + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 6; continue; } + r0 = s.tmp_3; + { step = 7; continue; } + case 6: + s.tmp_5 = if_flags_1_mk(s); + r0 = s.arg0.fields["anchor"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "flags"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1252; s.pc = 30; return s.tmp_5; } + } + case 30: r0 = s.retval; - s.pathFollowingSprites___295831 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pathFollowingSprites___295831); - if (!r0) { step = 11; continue; } - r0 = pxsim_Array__length(s.pathFollowingSprites___295831); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.i___295835 = (r0); + s.tmp_4 = r0; + r0 = (s.tmp_4 & 2); case 7: - r0 = (s.i___295835 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.pathFollowingSprites___295831, s.i___295835); - s.pfs___295842 = (r0); - r0 = s.pfs___295842.fields["sprite"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 8; continue; } - s.tmp_2 = Sprite_vx__P291456_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = 0; - s.callLocIdx = 154; s.pc = 27; return s.tmp_2; - case 27: - r0 = s.retval; - s.tmp_0 = Sprite_vy__P291458_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 155; s.pc = 28; return s.tmp_0; - case 28: - r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.pathFollowingSprites___295831, s.i___295835); + r0 = (s.arg0).fields["lifespan"] = (750); case 8: case 9: - r0 = (s.i___295835 - 1); - s.i___295835 = (r0); - { step = 7; continue; } case 10: case 11: + r0 = s.arg0.fields["timer"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 12; continue; } + r0 = s.tmp_0; + { step = 13; continue; } case 12: - { step = 25; continue; } + s.tmp_2 = particles_ParticleSource_enabled__P49799_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 1253; s.pc = 31; return s.tmp_2; + case 31: + r0 = s.retval; case 13: - case 14: - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 156; s.pc = 29; return s.tmp_0; - case 29: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 16; continue; } + s.tmp_4 = r0 = s.arg0; + r0 = s.tmp_4.fields["timer"]; + s.tmp_6 = r0; + r0 = s.arg0.fields["period"]; + s.tmp_7 = r0; + r0 = (s.tmp_6 + s.tmp_7); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); + s.tmp_0 = particles_ParticleFactory__C49823_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__C49823_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; - r0 = r0.fields["tileMap"]; - s.tm___295860 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tm___295860); + s.p___56807 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___56807); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - { step = 25; continue; } + if (!r0) { step = 14; continue; } + { step = 11; continue; } + case 14: case 15: + r0 = s.arg0.fields["head"]; + s.tmp_2 = r0; + r0 = (s.p___56807).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___56807); + { step = 11; continue; } case 16: - s.tmp_3 = tiles_TileMap_isOnWall__P291768_mk(s); - s.tmp_3.arg0 = s.tm___295860; - s.tmp_3.arg1 = s.arg0; - s.callLocIdx = 157; s.pc = 30; return s.tmp_3; - case 30: - r0 = s.retval; + r0 = s.arg0.fields["head"]; 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___295869 = (r0); - s.minDistSquared___295871 = (999999); - s.p___295873 = (undefined); - s.unnamed26482___U7 = (s.arg1); - s.unnamed26483___U8 = (0); - case 17: - s.tmp_0 = r0 = s.unnamed26483___U8; - r0 = pxsim_Array__length(s.unnamed26482___U7); s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed26482___U7, s.unnamed26483___U8); - s.p___295873 = (r0); - s.tmp_5 = tiles_Location_x__P291723_mk(s); - s.tmp_5.arg0 = s.p___295873; - s.callLocIdx = 158; s.pc = 31; return s.tmp_5; - case 31: - r0 = s.retval; - s.tmp_4 = r0; - s.tmp_7 = Sprite_x__P291451_mk(s); - s.tmp_7.arg0 = s.arg0; - s.callLocIdx = 159; s.pc = 32; return s.tmp_7; - case 32: - 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__P291724_mk(s); - s.tmp_11.arg0 = s.p___295873; - s.callLocIdx = 160; s.pc = 33; return s.tmp_11; - case 33: - r0 = s.retval; - s.tmp_10 = r0; - s.tmp_13 = Sprite_y__P291453_mk(s); - s.tmp_13.arg0 = s.arg0; - s.callLocIdx = 161; s.pc = 34; return s.tmp_13; - case 34: - 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___295875 = (r0); - r0 = (s.distSqrd___295875 < s.minDistSquared___295871); + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 18; continue; } - s.nearestTile___295869 = (s.p___295873); - s.minDistSquared___295871 = (s.distSqrd___295875); + if (!r0) { step = 17; continue; } + { step = 27; continue; } + case 17: case 18: + r0 = s.arg0.fields["head"]; + s.current___56826 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["_dt"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_dt"] = (s.tmp_1); + r0 = s.arg0.fields["_dt"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.fixedDt___56834 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___56834); + if (!r0) { step = 23; continue; } case 19: - r0 = (s.unnamed26483___U8 + 1); - s.unnamed26483___U8 = (r0); - { step = 17; continue; } - case 20: - s.unnamed26482___U7 = (undefined); - s.tmp_0 = tiles_Location_place__P291726_mk(s); - s.tmp_0.arg0 = s.nearestTile___295869; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 162; s.pc = 35; return s.tmp_0; - case 35: - r0 = s.retval; - s.tmp_0 = scene_getRemainingPath__P295904_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 163; s.pc = 36; return s.tmp_0; - case 36: - r0 = s.retval; - s.remainingPath___295901 = (r0); - s.tmp_0 = scene__followPath__P292981_mk(s); + r0 = s.current___56826.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___56826; + 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__C49787_v4_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.remainingPath___295901; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = undefined; - s.callLocIdx = 164; s.pc = 37; return s.tmp_0; - case 37: + s.tmp_0.arg1 = s.current___56826; + s.tmp_0.arg2 = s.fixedDt___56834; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C49787_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; - { step = 25; continue; } + case 20: case 21: + r0 = s.current___56826.fields["next"]; + s.tmp_0 = r0; + s.current___56826 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + { step = 19; continue; } case 22: - s.tmp_0 = scene_getRemainingPath__P295904_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 165; s.pc = 38; return s.tmp_0; - case 38: - r0 = s.retval; - s.remainingPath___295912 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainingPath___295912); - if (!r0) { step = 23; continue; } - s.tmp_0 = scene__followPath__P292981_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.remainingPath___295912; - s.tmp_0.arg2 = s.arg2; - s.tmp_0.arg3 = undefined; - s.callLocIdx = 166; s.pc = 39; return s.tmp_0; - case 39: - r0 = s.retval; - { step = 25; continue; } + r0 = (s.arg0).fields["_dt"] = (0); + { step = 26; continue; } case 23: case 24: - s.tmp_0 = scene_locationOfSprite__P295927_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 167; s.pc = 40; return s.tmp_0; - case 40: - r0 = s.retval; - s.currentLocation___295923 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P295935); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = scene_generalAStar__P292974_mk(s); - s.tmp_1.arg0 = s.tm___295860; - s.tmp_1.arg1 = s.currentLocation___295923; - s.tmp_1.arg2 = null; - s.tmp_1.arg3 = inline__P295934; - s.tmp_1.arg4 = s.tmp_0; - s.callLocIdx = 172; s.pc = 41; return s.tmp_1; - case 41: - r0 = s.retval; - s.pathToNearest___295928 = (r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P295955); + s.tmp_0 = r0 = s.current___56826; + 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___56826.fields["next"]; 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__P292981_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.pathToNearest___295928; - s.tmp_1.arg2 = s.arg2; - s.tmp_1.arg3 = s.tmp_0; - s.callLocIdx = 175; s.pc = 42; return s.tmp_1; - case 42: - r0 = s.retval; + s.current___56826 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 25; continue; } + { step = 24; continue; } case 25: + case 26: + case 27: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_followPath__P292976.info = {"start":3893,"length":2414,"line":98,"column":4,"endLine":161,"endColumn":5,"fileName":"path-following.ts","functionName":"followPath","argumentNames":["sprite","path","speed"]} +particles_ParticleSource__update__P49794.info = {"start":3694,"length":1400,"line":124,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} -function scene_followPath__P292976_mk(s) { +function particles_ParticleSource__update__P49794_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_followPath__P292976, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P49794, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17629,26 +17206,102 @@ function scene_followPath__P292976_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, - tmp_12: undefined, - tmp_13: undefined, - pathFollowingSprites___295831: undefined, - i___295835: undefined, - pfs___295842: undefined, - tm___295860: undefined, - nearestTile___295869: undefined, - minDistSquared___295871: undefined, - p___295873: undefined, - unnamed26482___U7: undefined, - unnamed26483___U8: undefined, - distSqrd___295875: undefined, - remainingPath___295901: undefined, - remainingPath___295912: undefined, - currentLocation___295923: undefined, - pathToNearest___295928: undefined, + p___56807: undefined, + current___56826: undefined, + fixedDt___56834: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function particles_ParticleSource_updateParticle__P51675(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + r0 = (s.arg2 >> 10); + s.arg2 = (r0); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vx"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["ax"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vx"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["vy"]; + s.tmp_2 = r0; + r0 = s.arg0.fields["ay"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_x"]; + s.tmp_2 = r0; + r0 = s.arg1.fields["vx"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg1; + r0 = s.arg1.fields["_y"]; + s.tmp_2 = r0; + r0 = s.arg1.fields["vy"]; + s.tmp_4 = r0; + r0 = pxsim.Math_.imul(s.tmp_4, s.arg2); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 8); + s.tmp_3 = r0; + r0 = (s.tmp_2 + s.tmp_3); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_ParticleSource_updateParticle__P51675.info = {"start":8248,"length":357,"line":277,"column":8,"endLine":285,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} + +function particles_ParticleSource_updateParticle__P51675_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_ParticleSource_updateParticle__P51675, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -17658,7 +17311,7 @@ function scene_followPath__P292976_mk(s) { -function inline__P295934(s) { +function Fx_rightShift__P47126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17668,24 +17321,31 @@ 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.lambdaArgs = null; + } + r0 = (s.arg0 >> s.arg1); return leave(s, r0) default: oops() } } } -inline__P295934.info = {"start":5825,"length":7,"line":147,"column":70,"endLine":147,"endColumn":77,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} +Fx_rightShift__P47126.info = {"start":2266,"length":108,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} -function inline__P295934_mk(s) { +function Fx_rightShift__P47126_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P295934, depth: s.depth + 1, + parent: s, fn: Fx_rightShift__P47126, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, } } -function inline__P295935(s) { +function particles_ParticleFactory_createParticle__P49825(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17695,105 +17355,83 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pathTile___295938 = undefined; - s.unnamed26484___U1 = undefined; - s.unnamed26485___U2 = undefined; + s.p___56931 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.pathTile___295938 = (undefined); - s.unnamed26484___U1 = (s.caps[0]); - s.unnamed26485___U2 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleFactory__C49823_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C49768_VT); + s.p___56931 = (r0); + s.tmp_0 = r0 = s.p___56931; + 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 = 1304; s.pc = 1; return s.tmp_3; } + } case 1: - s.tmp_0 = r0 = s.unnamed26485___U2; - r0 = pxsim_Array__length(s.unnamed26484___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed26484___U1, s.unnamed26485___U2); - s.pathTile___295938 = (r0); - s.tmp_4 = tiles_Location_x__P291723_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 168; s.pc = 8; return s.tmp_4; - case 8: r0 = s.retval; - s.tmp_3 = r0; - s.tmp_6 = tiles_Location_x__P291723_mk(s); - s.tmp_6.arg0 = s.pathTile___295938; - s.callLocIdx = 169; s.pc = 9; return s.tmp_6; - case 9: - r0 = s.retval; - s.tmp_5 = r0; - 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; } + 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___56931; + 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 = 1306; s.pc = 2; return s.tmp_3; } + } case 2: - s.tmp_8 = tiles_Location_y__P291724_mk(s); - s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 170; s.pc = 10; return s.tmp_8; - case 10: r0 = s.retval; - s.tmp_7 = r0; - s.tmp_10 = tiles_Location_y__P291724_mk(s); - s.tmp_10.arg0 = s.pathTile___295938; - s.callLocIdx = 171; 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 = (s.unnamed26485___U2 + 1); - s.unnamed26485___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed26484___U1 = (undefined); - r0 = false; - case 7: + 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___56931).fields["vx"] = (0); + r0 = (s.p___56931).fields["vy"] = (0); + r0 = (s.p___56931).fields["lifespan"] = (500); + r0 = s.p___56931; return leave(s, r0) default: oops() } } } -inline__P295935.info = {"start":5834,"length":221,"line":147,"column":79,"endLine":154,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":["tile"]} +particles_ParticleFactory_createParticle__P49825.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function inline__P295935_mk(s) { +function particles_ParticleFactory_createParticle__P49825_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P295935, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P49825, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, - pathTile___295938: undefined, - unnamed26484___U1: undefined, - unnamed26485___U2: undefined, + p___56931: undefined, arg0: undefined, + arg1: undefined, } } -function inline__P295955(s) { +function MAX_SOURCES_inline__P56671(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17803,42 +17441,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.remainingPath___295956 = undefined; - s.tmp_0 = scene_getRemainingPath__P295904_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.caps[1]; - s.callLocIdx = 173; s.pc = 1; return s.tmp_0; - case 1: + s.sz___56672 = undefined; + s.tmp_0 = control_ramSize__P47301_mk(s); + s.callLocIdx = 28; s.pc = 6; return s.tmp_0; + case 6: r0 = s.retval; - s.remainingPath___295956 = (r0); - s.tmp_0 = scene__followPath__P292981_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.remainingPath___295956; - s.tmp_0.arg2 = s.caps[2]; - s.tmp_0.arg3 = undefined; - s.callLocIdx = 174; s.pc = 2; return s.tmp_0; + s.sz___56672 = (r0); + r0 = (s.sz___56672 <= 102400); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 8; + { step = 5; continue; } + { step = 4; continue; } + case 1: + r0 = (s.sz___56672 <= 204800); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = 16; + { step = 5; continue; } + { step = 3; continue; } case 2: - r0 = s.retval; + r0 = 50; + { step = 5; continue; } + case 3: + case 4: r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -inline__P295955.info = {"start":6109,"length":191,"line":156,"column":50,"endLine":160,"endColumn":9,"fileName":"path-following.ts","functionName":"inline","argumentNames":[]} +MAX_SOURCES_inline__P56671.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} -function inline__P295955_mk(s) { +function MAX_SOURCES_inline__P56671_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P295955, depth: s.depth + 1, + parent: s, fn: MAX_SOURCES_inline__P56671, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - remainingPath___295956: undefined, + tmp_1: undefined, + sz___56672: undefined, } } -function scene_generalAStar__P292974(s) { +function particles_SprayFactory_constructor__P49828(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17848,566 +17498,156 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.consideredTiles___295190 = undefined; - s.encountedLocations___295210 = undefined; - s.updateOrFillLocation___295213 = undefined; - s.end___295282 = undefined; - s.currLocation___295288 = undefined; - s.row___295298 = undefined; - s.col___295303 = undefined; - s.dataForCurrLocation___295308 = undefined; - s.neighbors___295320 = undefined; - s.corners___295322 = undefined; - s.left___295324 = undefined; - s.right___295330 = undefined; - s.top___295337 = undefined; - s.bottom___295343 = undefined; - s.leftIsWall___295350 = undefined; - s.rightIsWall___295357 = undefined; - s.topIsWall___295364 = undefined; - s.bottomIsWall___295371 = undefined; - s.topLeft___295386 = undefined; - s.bottomLeft___295405 = undefined; - s.topRight___295430 = undefined; - s.bottomRight___295449 = undefined; - s.neighborCost___295479 = undefined; - s.node___295485 = undefined; - s.unnamed26478___U24 = undefined; - s.unnamed26479___U25 = undefined; - s.cornerCost___295495 = undefined; - s.corner___295501 = undefined; - s.unnamed26480___U28 = undefined; - s.unnamed26481___U29 = undefined; - s.endCol___295507 = undefined; - s.endDataNode___295514 = undefined; - s.curr___295527 = undefined; - s.output___295529 = 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_3 = scene_isWalkable__P295102_mk(s); - s.tmp_3.arg0 = s.arg1; - s.tmp_3.arg1 = s.arg2; - s.tmp_3.arg2 = s.arg0; - s.callLocIdx = 68; s.pc = 52; return s.tmp_3; - case 52: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, particles_SprayFactory__C49827_VT)) failedCast(r0); r0 = undefined; - { step = 51; continue; } + s.tmp_0 = particles_initTrig__P51699_mk(s); + s.callLocIdx = 1311; s.pc = 1; return s.tmp_0; case 1: - case 2: - r0 = pxsim_pxtcore_mkClassInstance(Heap__C292963_VT); - s.tmp_4 = r0; - s.tmp_5 = Heap_constructor__P292964_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.tmp_5.arg1 = inline__P295193; - s.callLocIdx = 69; s.pc = 53; return s.tmp_5; - case 53: r0 = s.retval; - s.consideredTiles___295190 = (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___295210 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(4, updateOrFillLocation__P295213); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.encountedLocations___295210); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.arg3); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.consideredTiles___295190); - s.updateOrFillLocation___295213 = (s.tmp_0); - s.tmp_1 = lambda_4_mk(s); - s.tmp_1.argL = s.updateOrFillLocation___295213; - 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 = 77; s.pc = 54; return s.tmp_1; - case 54: + s.tmp_0 = particles_SprayFactory_setSpeed__P49831_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 1312; s.pc = 2; return s.tmp_0; + case 2: r0 = s.retval; - s.end___295282 = (null); + s.tmp_0 = particles_SprayFactory_setDirection__P49832_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.tmp_0.arg2 = s.arg3; + s.callLocIdx = 1313; s.pc = 3; return s.tmp_0; case 3: - r0 = s.consideredTiles___295190.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__P292966_mk(s); - s.tmp_3.arg0 = s.consideredTiles___295190; - s.callLocIdx = 79; s.pc = 55; return s.tmp_3; - case 55: - r0 = s.retval; - s.currLocation___295288 = (r0); - s.tmp_1 = lambda_2_mk(s); - s.tmp_1.argL = s.arg4; - r0 = s.currLocation___295288.fields["loc"]; - s.tmp_1.arg0 = r0; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 80; 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___295288.fields["loc"]; - s.end___295282 = (r0); - { step = 40; continue; } - case 4: - case 5: - s.tmp_0 = scene_locationRow__P295221_mk(s); - r0 = s.currLocation___295288.fields["loc"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 81; s.pc = 57; return s.tmp_0; - case 57: - r0 = s.retval; - s.row___295298 = (r0); - s.tmp_0 = scene_locationCol__P295226_mk(s); - r0 = s.currLocation___295288.fields["loc"]; - s.tmp_0.arg0 = r0; - s.callLocIdx = 82; s.pc = 58; return s.tmp_0; - case 58: - r0 = s.retval; - s.col___295303 = (r0); - r0 = pxsim_Array__getAt(s.encountedLocations___295210, s.col___295303); - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.row___295298); - s.dataForCurrLocation___295308 = (r0); - s.tmp_0 = r0 = s.dataForCurrLocation___295308; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 6; continue; } - r0 = s.tmp_0; - { step = 7; continue; } - case 6: - r0 = s.dataForCurrLocation___295308.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___295308).fields["visited"] = (true); - r0 = pxsim_Array__mk(); - s.neighbors___295320 = (r0); - r0 = pxsim_Array__mk(); - s.corners___295322 = (r0); - s.tmp_0 = tiles_getTileLocation__P291774_mk(s); - r0 = (s.col___295303 - 1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.row___295298; - s.callLocIdx = 83; s.pc = 59; return s.tmp_0; - case 59: - r0 = s.retval; - s.left___295324 = (r0); - s.tmp_0 = tiles_getTileLocation__P291774_mk(s); - r0 = (s.col___295303 + 1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.row___295298; - s.callLocIdx = 84; s.pc = 60; return s.tmp_0; - case 60: - r0 = s.retval; - s.right___295330 = (r0); - s.tmp_0 = tiles_getTileLocation__P291774_mk(s); - s.tmp_0.arg0 = s.col___295303; - r0 = (s.row___295298 - 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 85; s.pc = 61; return s.tmp_0; - case 61: - r0 = s.retval; - s.top___295337 = (r0); - s.tmp_0 = tiles_getTileLocation__P291774_mk(s); - s.tmp_0.arg0 = s.col___295303; - r0 = (s.row___295298 + 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 86; s.pc = 62; return s.tmp_0; - case 62: - r0 = s.retval; - s.bottom___295343 = (r0); - s.tmp_2 = scene_isWalkable__P295102_mk(s); - s.tmp_2.arg0 = s.left___295324; - s.tmp_2.arg1 = s.arg2; - s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 87; 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___295350 = (r0); - s.tmp_2 = scene_isWalkable__P295102_mk(s); - s.tmp_2.arg0 = s.right___295330; - s.tmp_2.arg1 = s.arg2; - s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 88; 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___295357 = (r0); - s.tmp_2 = scene_isWalkable__P295102_mk(s); - s.tmp_2.arg0 = s.top___295337; - s.tmp_2.arg1 = s.arg2; - s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 89; 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___295364 = (r0); - s.tmp_2 = scene_isWalkable__P295102_mk(s); - s.tmp_2.arg0 = s.bottom___295343; - s.tmp_2.arg1 = s.arg2; - s.tmp_2.arg2 = s.arg0; - s.callLocIdx = 90; 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___295371 = (r0); - r0 = pxsim_numops_toBoolDecr(s.leftIsWall___295350); - s.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___295320, s.left___295324); - r0 = pxsim_numops_toBoolDecr(s.topIsWall___295364); - s.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__P291774_mk(s); - r0 = (s.col___295303 - 1); - s.tmp_2.arg0 = r0; - r0 = (s.row___295298 - 1); - s.tmp_2.arg1 = r0; - s.callLocIdx = 91; s.pc = 67; return s.tmp_2; - case 67: - r0 = s.retval; - s.topLeft___295386 = (r0); - s.tmp_3 = scene_isWall__P295396_mk(s); - s.tmp_3.arg0 = s.topLeft___295386; - s.tmp_3.arg1 = s.arg0; - s.callLocIdx = 92; 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___295322, s.topLeft___295386); - case 10: - case 11: - case 12: - case 13: - r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___295371); - s.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__P291774_mk(s); - r0 = (s.col___295303 - 1); - s.tmp_2.arg0 = r0; - r0 = (s.row___295298 + 1); - s.tmp_2.arg1 = r0; - s.callLocIdx = 93; s.pc = 69; return s.tmp_2; - case 69: - r0 = s.retval; - s.bottomLeft___295405 = (r0); - s.tmp_3 = scene_isWall__P295396_mk(s); - s.tmp_3.arg0 = s.bottomLeft___295405; - s.tmp_3.arg1 = s.arg0; - s.callLocIdx = 94; 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___295322, s.bottomLeft___295405); - case 14: - case 15: - case 16: - case 17: - case 18: - case 19: - r0 = pxsim_numops_toBoolDecr(s.rightIsWall___295357); - s.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___295320, s.right___295330); - r0 = pxsim_numops_toBoolDecr(s.topIsWall___295364); - s.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__P291774_mk(s); - r0 = (s.col___295303 + 1); - s.tmp_2.arg0 = r0; - r0 = (s.row___295298 - 1); - s.tmp_2.arg1 = r0; - s.callLocIdx = 95; s.pc = 71; return s.tmp_2; - case 71: - r0 = s.retval; - s.topRight___295430 = (r0); - s.tmp_3 = scene_isWall__P295396_mk(s); - s.tmp_3.arg0 = s.topRight___295430; - s.tmp_3.arg1 = s.arg0; - s.callLocIdx = 96; 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___295322, s.topRight___295430); - case 20: - case 21: - case 22: - case 23: - r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___295371); - s.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__P291774_mk(s); - r0 = (s.col___295303 + 1); - s.tmp_2.arg0 = r0; - r0 = (s.row___295298 + 1); - s.tmp_2.arg1 = r0; - s.callLocIdx = 97; s.pc = 73; return s.tmp_2; - case 73: - r0 = s.retval; - s.bottomRight___295449 = (r0); - s.tmp_3 = scene_isWall__P295396_mk(s); - s.tmp_3.arg0 = s.bottomRight___295449; - s.tmp_3.arg1 = s.arg0; - s.callLocIdx = 98; 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___295322, s.bottomRight___295449); - case 24: - case 25: - case 26: - case 27: - case 28: - case 29: - r0 = pxsim_numops_toBoolDecr(s.topIsWall___295364); - s.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___295320, s.top___295337); - case 30: - case 31: - r0 = pxsim_numops_toBoolDecr(s.bottomIsWall___295371); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_SprayFactory_constructor__P49828.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__P49828_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_SprayFactory_constructor__P49828, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function particles_initTrig__P51699(s) { +let r0 = s.r0, 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___51685); s.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___295320, s.bottom___295343); - case 32: - case 33: - r0 = s.currLocation___295288.fields["cost"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.neighborCost___295479 = (r0); - s.node___295485 = (undefined); - s.unnamed26478___U24 = (s.neighbors___295320); - s.unnamed26479___U25 = (0); - case 34: - s.tmp_0 = r0 = s.unnamed26479___U25; - r0 = pxsim_Array__length(s.unnamed26478___U24); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 35; continue; } - r0 = pxsim_Array__getAt(s.unnamed26478___U24, s.unnamed26479___U25); - s.node___295485 = (r0); - s.tmp_2 = lambda_4_mk(s); - s.tmp_2.argL = s.updateOrFillLocation___295213; - s.tmp_2.arg0 = s.node___295485; - s.tmp_2.arg1 = s.dataForCurrLocation___295308; - s.tmp_2.arg2 = s.neighborCost___295479; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 99; s.pc = 75; return s.tmp_2; - case 75: + if (!r0) { step = 1; continue; } + s.tmp_2 = particles_cacheSin__P49821_mk(s); + s.tmp_2.arg0 = 100; + s.callLocIdx = 1299; s.pc = 3; return s.tmp_2; + case 3: r0 = s.retval; - r0 = (s.unnamed26479___U25 + 1); - s.unnamed26479___U25 = (r0); - { step = 34; continue; } - case 35: - s.unnamed26478___U24 = (undefined); - r0 = pxsim_Array__length(s.corners___295322); + globals.cachedSin___51685 = (r0); + s.tmp_0 = particles_cacheCos__P49822_mk(s); + s.tmp_0.arg0 = 100; + s.callLocIdx = 1300; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + globals.cachedCos___51686 = (r0); + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_initTrig__P51699.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__P51699_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_initTrig__P51699, 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__P49822(s) { +let r0 = s.r0, 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___56378 = undefined; + s.anglePerSlice___56380 = undefined; + s.i___56386 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.cos___56378 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___56380 = (r0); + s.i___56386 = (0); + case 1: + r0 = (s.i___56386 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 38; continue; } - r0 = s.currLocation___295288.fields["cost"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1.414213562373095); - s.cornerCost___295495 = (r0); - s.corner___295501 = (undefined); - s.unnamed26480___U28 = (s.corners___295322); - s.unnamed26481___U29 = (0); - case 36: - s.tmp_0 = r0 = s.unnamed26481___U29; - r0 = pxsim_Array__length(s.unnamed26480___U28); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 37; continue; } - r0 = pxsim_Array__getAt(s.unnamed26480___U28, s.unnamed26481___U29); - s.corner___295501 = (r0); - s.tmp_2 = lambda_4_mk(s); - s.tmp_2.argL = s.updateOrFillLocation___295213; - s.tmp_2.arg0 = s.corner___295501; - s.tmp_2.arg1 = s.dataForCurrLocation___295308; - s.tmp_2.arg2 = s.cornerCost___295495; - setupLambda(s.tmp_2, s.tmp_2.argL); - s.callLocIdx = 100; s.pc = 76; return s.tmp_2; - case 76: - r0 = s.retval; - r0 = (s.unnamed26481___U29 + 1); - s.unnamed26481___U29 = (r0); - { step = 36; continue; } - case 37: - s.unnamed26480___U28 = (undefined); - case 38: - case 39: - { step = 3; continue; } - case 40: - s.tmp_0 = r0 = s.end___295282; - 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___295210; - s.tmp_3 = scene_locationCol__P295226_mk(s); - s.tmp_3.arg0 = s.end___295282; - s.callLocIdx = 101; 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___295507 = (s.tmp_4); - s.tmp_0 = r0 = s.endCol___295507; - 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___295507; - s.tmp_3 = scene_locationRow__P295221_mk(s); - s.tmp_3.arg0 = s.end___295282; - s.callLocIdx = 102; 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) + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.cos___56378; + r0 = (s.i___56386 * s.anglePerSlice___56380); s.tmp_4 = r0; - s.endDataNode___295514 = (s.tmp_4); - r0 = pxsim_numops_toBoolDecr(s.end___295282); - 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___295514); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 46: - // jmp value (already in r0) + r0 = pxsim.Math_.cos(s.tmp_4); 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___295527 = (s.endDataNode___295514); - r0 = pxsim_Array__mk(); - s.output___295529 = (r0); - case 49: - r0 = pxsim_numops_toBoolDecr(s.curr___295527); - if (!r0) { step = 50; continue; } - s.tmp_0 = helpers_arrayUnshift__P289509_mk(s); - s.tmp_0.arg0 = s.output___295529; - r0 = s.curr___295527.fields["l"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 103; s.pc = 79; return s.tmp_0; - case 79: - r0 = s.retval; - r0 = s.curr___295527.fields["parent"]; - s.curr___295527 = (r0); - { step = 49; continue; } - case 50: - r0 = s.output___295529; - case 51: + 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___56386 + 1); + s.i___56386 = (r0); + { step = 1; continue; } + case 2: + r0 = s.cos___56378; return leave(s, r0) default: oops() } } } -scene_generalAStar__P292974.info = {"start":2028,"length":5198,"line":59,"column":4,"endLine":204,"endColumn":5,"fileName":"a-star.ts","functionName":"generalAStar","argumentNames":["tm","start","onTilesOf","heuristic","isEnd"]} +particles_cacheCos__P49822.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} -function scene_generalAStar__P292974_mk(s) { +function particles_cacheCos__P49822_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_generalAStar__P292974, depth: s.depth + 1, + parent: s, fn: particles_cacheCos__P49822, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18415,52 +17655,17 @@ function scene_generalAStar__P292974_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - consideredTiles___295190: undefined, - encountedLocations___295210: undefined, - updateOrFillLocation___295213: undefined, - end___295282: undefined, - currLocation___295288: undefined, - row___295298: undefined, - col___295303: undefined, - dataForCurrLocation___295308: undefined, - neighbors___295320: undefined, - corners___295322: undefined, - left___295324: undefined, - right___295330: undefined, - top___295337: undefined, - bottom___295343: undefined, - leftIsWall___295350: undefined, - rightIsWall___295357: undefined, - topIsWall___295364: undefined, - bottomIsWall___295371: undefined, - topLeft___295386: undefined, - bottomLeft___295405: undefined, - topRight___295430: undefined, - bottomRight___295449: undefined, - neighborCost___295479: undefined, - node___295485: undefined, - unnamed26478___U24: undefined, - unnamed26479___U25: undefined, - cornerCost___295495: undefined, - corner___295501: undefined, - unnamed26480___U28: undefined, - unnamed26481___U29: undefined, - endCol___295507: undefined, - endDataNode___295514: undefined, - curr___295527: undefined, - output___295529: undefined, + cos___56378: undefined, + anglePerSlice___56380: undefined, + i___56386: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function inline__P295193(s) { +function particles_cacheSin__P49821(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18470,37 +17675,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.sin___56404 = undefined; + s.anglePerSlice___56406 = undefined; + s.i___56412 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - 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); - s.tmp_1 = r0; - r0 = s.arg0.fields["extraCost"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 + s.tmp_3); + r0 = pxsim_Array__mk(); + s.sin___56404 = (r0); + r0 = (6.283185307179586 / s.arg0); + s.anglePerSlice___56406 = (r0); + s.i___56412 = (0); + case 1: + r0 = (s.i___56412 < s.arg0); 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); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.tmp_1 = r0 = s.sin___56404; + r0 = (s.i___56412 * s.anglePerSlice___56406); s.tmp_4 = r0; - r0 = (s.tmp_0 - s.tmp_4); + 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___56412 + 1); + s.i___56412 = (r0); + { step = 1; continue; } + case 2: + r0 = s.sin___56404; return leave(s, r0) default: oops() } } } -inline__P295193.info = {"start":2415,"length":67,"line":68,"column":12,"endLine":68,"endColumn":79,"fileName":"a-star.ts","functionName":"inline","argumentNames":["a","b"]} +particles_cacheSin__P49821.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} -function inline__P295193_mk(s) { +function particles_cacheSin__P49821_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P295193, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P49821, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18508,17 +17723,17 @@ function inline__P295193_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, + sin___56404: undefined, + anglePerSlice___56406: undefined, + i___56412: undefined, arg0: undefined, - arg1: undefined, } } -function updateOrFillLocation__P295213(s) { +function particles_SprayFactory_setDirection__P49832(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18528,141 +17743,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___295217 = undefined; - s.col___295222 = undefined; - s.colData___295231 = undefined; - s.lData___295241 = undefined; - s.h___295269 = 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__P295221_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 70; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - s.row___295217 = (r0); - s.tmp_0 = scene_locationCol__P295226_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 71; s.pc = 13; return s.tmp_0; - case 13: - r0 = s.retval; - s.col___295222 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P291766_mk(s); - s.tmp_1.arg0 = s.caps[0]; - s.tmp_1.arg1 = s.col___295222; - s.tmp_1.arg2 = s.row___295217; - s.callLocIdx = 72; s.pc = 14; return s.tmp_1; - case 14: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 11; continue; } + r0 = s.arg0; + if (!checkSubtype(r0, particles_SprayFactory__C49827_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + s.tmp_4 = particles_toRadians__P51704_mk(s); + s.tmp_5 = r0 = s.arg1; + r0 = (s.arg2 >> 1); + s.tmp_6 = r0; + r0 = (s.tmp_5 - s.tmp_6); + s.tmp_4.arg0 = r0; + s.callLocIdx = 1321; s.pc = 1; return s.tmp_4; case 1: - case 2: - r0 = pxsim_Array__getAt(s.caps[1], s.col___295222); + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___51698); 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___295222; - 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___295231 = (s.tmp_6); - r0 = pxsim_Array__getAt(s.colData___295231, s.row___295217); - s.lData___295241 = (r0); - r0 = pxsim_numops_toBoolDecr(s.lData___295241); + r0 = (s.tmp_2 | 0); s.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__C295074_VT); - s.tmp_2 = r0; - s.tmp_3 = scene_LocationNode_constructor__P295075_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 = 73; s.pc = 15; return s.tmp_3; - case 15: + r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + s.tmp_4 = particles_toRadians__P51704_mk(s); + s.tmp_4.arg0 = s.arg2; + s.callLocIdx = 1322; s.pc = 2; return s.tmp_4; + case 2: r0 = s.retval; - r0 = pxsim_Array_.setAt(s.colData___295231, s.row___295217, s.tmp_2); - { step = 10; continue; } - case 5: - r0 = s.lData___295241.fields["visited"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 / globals.angleSlice___51698); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = (s.tmp_2 | 0); 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___295241.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___295241).fields["lastCost"] = (s.arg2); - r0 = (s.lData___295241).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 = 74; s.pc = 16; return s.tmp_0; - case 16: - r0 = s.retval; - s.h___295269 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_PrioritizedLocation__C295068_VT); - s.tmp_0 = r0; - s.tmp_1 = scene_PrioritizedLocation_constructor__P295069_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___295269; - s.callLocIdx = 75; s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - s.tmp_2 = Heap_push__P292965_mk(s); - s.tmp_2.arg0 = s.caps[3]; - s.tmp_2.arg1 = s.tmp_0; - s.callLocIdx = 76; s.pc = 18; return s.tmp_2; - case 18: - r0 = s.retval; - case 11: + r0 = (s.tmp_0).fields["spread"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -updateOrFillLocation__P295213.info = {"start":2566,"length":1162,"line":72,"column":8,"endLine":109,"endColumn":9,"fileName":"a-star.ts","functionName":"updateOrFillLocation","argumentNames":["l","parent","cost"]} +particles_SprayFactory_setDirection__P49832.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 updateOrFillLocation__P295213_mk(s) { +function particles_SprayFactory_setDirection__P49832_mk(s) { checkStack(s.depth); return { - parent: s, fn: updateOrFillLocation__P295213, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P49832, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18671,11 +17797,6 @@ function updateOrFillLocation__P295213_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - row___295217: undefined, - col___295222: undefined, - colData___295231: undefined, - lData___295241: undefined, - h___295269: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -18685,7 +17806,7 @@ function updateOrFillLocation__P295213_mk(s) { -function helpers_arrayUnshift__P289509(s) { +function particles_toRadians__P51704(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18697,30 +17818,84 @@ 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); + r0 = (s.arg0 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_3 = Math_abs__P47083_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1303; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_2 % 360); + s.tmp_1 = r0; + r0 = (360 - s.tmp_1); + s.arg0 = (r0); + { step = 2; continue; } + case 1: + r0 = (s.arg0 % 360); + s.arg0 = (r0); + case 2: + r0 = (s.arg0 * 0.017453292519943295); return leave(s, r0) default: oops() } } } -helpers_arrayUnshift__P289509.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"]} +particles_toRadians__P51704.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} -function helpers_arrayUnshift__P289509_mk(s) { +function particles_toRadians__P51704_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayUnshift__P289509, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P51704, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function particles_ParticleFactory_constructor__P49824(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleFactory__C49823_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_ParticleFactory_constructor__P49824.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__P49824_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_ParticleFactory_constructor__P49824, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function scene_isWall__P295396(s) { +function particles_ParticleSource_setFactory__P49806(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18730,45 +17905,29 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___295580 = undefined; - s.c___295584 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_locationRow__P295221_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 110; s.pc = 1; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["_factory"] = (s.arg1); case 1: - r0 = s.retval; - s.r___295580 = (r0); - s.tmp_0 = scene_locationCol__P295226_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 111; s.pc = 2; return s.tmp_0; case 2: - r0 = s.retval; - s.c___295584 = (r0); - s.tmp_0 = tiles_TileMap_isObstacle__P291766_mk(s); - s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.c___295584; - s.tmp_0.arg2 = s.r___295580; - s.callLocIdx = 112; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_isWall__P295396.info = {"start":7878,"length":169,"line":226,"column":4,"endLine":230,"endColumn":5,"fileName":"a-star.ts","functionName":"isWall","argumentNames":["l","tm"]} +particles_ParticleSource_setFactory__P49806.info = {"start":8124,"length":114,"line":272,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} -function scene_isWall__P295396_mk(s) { +function particles_ParticleSource_setFactory__P49806_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_isWall__P295396, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P49806, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - r___295580: undefined, - c___295584: undefined, arg0: undefined, arg1: undefined, } } @@ -18777,7 +17936,7 @@ function scene_isWall__P295396_mk(s) { -function tiles_getTileLocation__P291774(s) { +function particles_ParticleSource_setRate__P49804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18787,73 +17946,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___302970 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 860; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.scene___302970 = (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) - 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___302970.fields["tileMap"]; - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (1000 / s.arg1); 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__P291759_mk(s); - r0 = s.scene___302970.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg0; - s.tmp_5.arg2 = s.arg1; - s.callLocIdx = 861; s.pc = 9; return s.tmp_5; - case 9: - r0 = s.retval; - case 7: + r0 = pxsim.Math_.ceil(s.tmp_2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["period"] = (s.tmp_1); + r0 = (s.arg0).fields["timer"] = (0); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_getTileLocation__P291774.info = {"start":16285,"length":247,"line":515,"column":4,"endLine":519,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileLocation","argumentNames":["col","row"]} +particles_ParticleSource_setRate__P49804.info = {"start":7802,"length":139,"line":259,"column":8,"endLine":262,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} -function tiles_getTileLocation__P291774_mk(s) { +function particles_ParticleSource_setRate__P49804_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileLocation__P291774, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P49804, depth: s.depth + 1, pc: 0, retval: undefined, 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___302970: undefined, arg0: undefined, arg1: undefined, } } @@ -18862,7 +17982,7 @@ function tiles_getTileLocation__P291774_mk(s) { -function tiles_TileMap_getTile__P291759(s) { +function particles_ParticleSource_setAnchor__P49803(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18875,44 +17995,31 @@ 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__C291747_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C291719_VT); - s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P291722_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 = 795; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.tmp_0; + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + r0 = (s.arg0).fields["anchor"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTile__P291759.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"]} +particles_ParticleSource_setAnchor__P49803.info = {"start":7594,"length":79,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} -function tiles_TileMap_getTile__P291759_mk(s) { +function particles_ParticleSource_setAnchor__P49803_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P291759, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P49803, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function tiles_Location_constructor__P291722(s) { +function particles_ParticleSource_clear__P49802(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18924,38 +18031,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, tiles_Location__C291719_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, particles_ParticleSource__C49787_VT)) failedCast(r0); + r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_Location_constructor__P291722.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"]} +particles_ParticleSource_clear__P49802.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} -function tiles_Location_constructor__P291722_mk(s) { +function particles_ParticleSource_clear__P49802_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P291722, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P49802, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function Heap_pop__P292966(s) { +function particles_ParticleSource_destroy__P49801(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18965,58 +18064,43 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.output___302998 = undefined; - s.nextRoot___303003 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C292963_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, 0); - s.output___302998 = (r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.pop(s.tmp_0); - s.nextRoot___303003 = (r0); - r0 = s.arg0.fields["store"]; + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P49800_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1260; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["pFlags"]; s.tmp_2 = r0; - r0 = pxsim_Array__length(s.tmp_2); + r0 = (s.tmp_2 | 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___303003); - s.tmp_0 = Heap_percolateDown__P295063_mk(s); + r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); + s.tmp_0 = particles_ParticleSource__prune__P49795_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = 0; - s.callLocIdx = 1320; s.pc = 3; return s.tmp_0; - case 3: - r0 = s.retval; - case 1: + s.callLocIdx = 1261; s.pc = 2; return s.tmp_0; case 2: - r0 = s.output___302998; + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -Heap_pop__P292966.info = {"start":1536,"length":236,"line":61,"column":4,"endLine":71,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"pop","argumentNames":["this"]} +particles_ParticleSource_destroy__P49801.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function Heap_pop__P292966_mk(s) { +function particles_ParticleSource_destroy__P49801_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_pop__P292966, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P49801, depth: s.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___302998: undefined, - nextRoot___303003: undefined, arg0: undefined, } } @@ -19024,7 +18108,7 @@ function Heap_pop__P292966_mk(s) { -function Heap_percolateDown__P295063(s) { +function particles_ParticleSource_enabled__P49800(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19034,151 +18118,118 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.data___303018 = undefined; - s.max___303021 = undefined; - s.left___303029 = undefined; - s.right___303033 = undefined; - s.curr___303037 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C292963_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; - s.data___303018 = (r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); - s.max___303021 = (r0); - case 1: - r0 = (s.arg1 < s.max___303021); + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = particles_ParticleSource_enabled__P49799_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 1259; s.pc = 5; return s.tmp_3; + case 5: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 !== s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 12; continue; } - r0 = (s.arg1 << 1); - s.tmp_1 = r0; - r0 = (s.tmp_1 + 1); - s.left___303029 = (r0); - r0 = (s.arg1 << 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 2); - s.right___303033 = (r0); - s.curr___303037 = (s.arg1); - r0 = (s.left___303029 < s.max___303021); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 2; continue; } - r0 = s.tmp_0; - { step = 3; continue; } + if (!r0) { step = 3; continue; } + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 1); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["pFlags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 ^ 1); case 2: - s.tmp_2 = if_comparator_3_mk(s); - s.tmp_2.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.data___303018, s.curr___303037); - s.tmp_2.arg1 = r0; - r0 = pxsim_Array__getAt(s.data___303018, s.left___303029); - 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 = 1314; 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 = 1314; s.pc = 13; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1314; s.pc = 13; return s.tmp_2;; } - else { s.callLocIdx = 1314; 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___303037 = (s.left___303029); + s.tmp_6 = r0; + r0 = (s.arg0).fields["pFlags"] = (s.tmp_6); + r0 = (s.arg0).fields["timer"] = (0); + case 3: case 4: - case 5: - r0 = (s.right___303033 < s.max___303021); - 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___303018, s.curr___303037); - s.tmp_2.arg1 = r0; - r0 = pxsim_Array__getAt(s.data___303018, s.right___303033); - 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 = 1315; 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 = 1315; s.pc = 14; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1315; s.pc = 14; return s.tmp_2;; } - else { s.callLocIdx = 1315; s.pc = 14; return s.tmp_2; } + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_ParticleSource_enabled__P49800.info = {"start":6816,"length":214,"line":223,"column":8,"endLine":228,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} + +function particles_ParticleSource_enabled__P49800_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_ParticleSource_enabled__P49800, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function particles_ParticleSource_enabled__P49799(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; } - case 14: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 > 0); - case 7: - // jmp value (already in r0) + r0 = s.arg0; + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + r0 = s.arg0.fields["pFlags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 1); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 8; continue; } - s.curr___303037 = (s.right___303033); - case 8: - case 9: - r0 = (s.curr___303037 == 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___303018, s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.data___303018, s.curr___303037); s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.data___303018, s.curr___303037, s.tmp_1); - r0 = pxsim_Array_.setAt(s.data___303018, s.arg1, s.tmp_2); - s.arg1 = (s.curr___303037); - { step = 1; continue; } - case 12: - r0 = undefined; - return leave(s, r0) + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leaveAccessor(s, r0) default: oops() } } } -Heap_percolateDown__P295063.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"]} +particles_ParticleSource_enabled__P49799.info = {"start":6622,"length":76,"line":216,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this"]} +particles_ParticleSource_enabled__P49799.isGetter = true; -function Heap_percolateDown__P295063_mk(s) { +function particles_ParticleSource_enabled__P49799_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_percolateDown__P295063, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P49799, depth: s.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___303018: undefined, - max___303021: undefined, - left___303029: undefined, - right___303033: undefined, - curr___303037: undefined, + tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function Heap_rightChild__P295067(s) { +function particles_ParticleSource_setAcceleration__P49796(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19191,33 +18242,47 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C292963_VT)) failedCast(r0); - r0 = (s.arg1 << 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 2); + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ax"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg2 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["ay"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -Heap_rightChild__P295067.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"]} +particles_ParticleSource_setAcceleration__P49796.info = {"start":6026,"length":113,"line":194,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} -function Heap_rightChild__P295067_mk(s) { +function particles_ParticleSource_setAcceleration__P49796_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_rightChild__P295067, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P49796, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function Heap_leftChild__P295066(s) { +function helpers_arrayShift__P47057(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19229,34 +18294,27 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Heap__C292963_VT)) failedCast(r0); - r0 = (s.arg1 << 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); + r0 = pxsim_Array_.removeAt(s.arg0, 0); return leave(s, r0) default: oops() } } } -Heap_leftChild__P295066.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"]} +helpers_arrayShift__P47057.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 Heap_leftChild__P295066_mk(s) { +function helpers_arrayShift__P47057_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_leftChild__P295066, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P47057, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function Heap_length__P292968(s) { +function particles_SprayFactory_setSpeed__P49831(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19268,33 +18326,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, Heap__C292963_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array__length(s.tmp_0); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, particles_SprayFactory__C49827_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["speed"] = (s.tmp_1); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Heap_length__P292968.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__P292968.isGetter = true; +particles_SprayFactory_setSpeed__P49831.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 Heap_length__P292968_mk(s) { +function particles_SprayFactory_setSpeed__P49831_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_length__P292968, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P49831, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, arg0: undefined, + arg1: undefined, } } -function scene_PrioritizedLocation_constructor__P295069(s) { +function particles_ConfettiFactory_constructor__P49855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19304,40 +18369,99 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.confetti___60234 = undefined; + s.i___60250 = 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_PrioritizedLocation__C295068_VT)) failedCast(r0); - r0 = (s.arg0).fields["loc"] = (s.arg1); - r0 = (s.arg0).fields["cost"] = (s.arg2); - r0 = (s.arg0).fields["extraCost"] = (s.arg3); + if (!checkSubtype(r0, particles_ConfettiFactory__C49854_VT)) failedCast(r0); + r0 = pxsim_Array__mk(); + s.tmp_0 = r0; + r0 = pxsim.image.ofBuffer(_hex60237); + s.tmp_1 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); + r0 = pxsim.image.ofBuffer(_hex60239); + s.tmp_2 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); + r0 = pxsim.image.ofBuffer(_hex60241); + s.tmp_3 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); + r0 = pxsim.image.ofBuffer(_hex60243); + s.tmp_4 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); + r0 = pxsim.image.ofBuffer(_hex60245); + s.tmp_5 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); + s.confetti___60234 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P49850_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___60234, 0); + s.tmp_0.arg3 = r0; + s.callLocIdx = 1345; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.i___60250 = (1); + case 1: + s.tmp_1 = r0 = s.i___60250; + r0 = pxsim_Array__length(s.confetti___60234); + 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__P49851_mk(s); + s.tmp_3.arg0 = s.arg0; + r0 = pxsim_Array__getAt(s.confetti___60234, s.i___60250); + s.tmp_3.arg1 = r0; + s.callLocIdx = 1346; s.pc = 4; return s.tmp_3; + case 4: + r0 = s.retval; + r0 = (s.i___60250 + 1); + s.i___60250 = (r0); + { step = 1; continue; } + case 2: + r0 = (s.arg0).fields["minLifespan"] = (1000); + r0 = (s.arg0).fields["maxLifespan"] = (4500); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_PrioritizedLocation_constructor__P295069.info = {"start":60,"length":176,"line":2,"column":8,"endLine":7,"endColumn":13,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","loc","cost","extraCost"]} +particles_ConfettiFactory_constructor__P49855.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 scene_PrioritizedLocation_constructor__P295069_mk(s) { +function particles_ConfettiFactory_constructor__P49855_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_PrioritizedLocation_constructor__P295069, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P49855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + confetti___60234: undefined, + i___60250: undefined, arg0: undefined, arg1: undefined, arg2: undefined, - arg3: undefined, } } +const _hex60237 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex60239 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex60241 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex60243 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex60245 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function Heap_push__P292965(s) { +function particles_ShapeFactory_addShape__P49851(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19353,25 +18477,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C292963_VT)) failedCast(r0); - r0 = s.arg0.fields["store"]; + if (!checkSubtype(r0, particles_ShapeFactory__C49849_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(s.arg1); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["sources"]; s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_0 = Heap_percolateUp__P295064_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1318; s.pc = 1; return s.tmp_0; case 1: - r0 = s.retval; + case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -Heap_push__P292965.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"]} +particles_ShapeFactory_addShape__P49851.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 Heap_push__P292965_mk(s) { +function particles_ShapeFactory_addShape__P49851_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_push__P292965, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P49851, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -19382,7 +18505,7 @@ function Heap_push__P292965_mk(s) { -function Heap_percolateUp__P295064(s) { +function particles_ShapeFactory_constructor__P49850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19392,98 +18515,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___303111 = undefined; - s.curr___303119 = undefined; - s.parentIndex___303124 = undefined; - s.parent___303128 = 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__C292963_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___303111 = (r0); + if (!checkSubtype(r0, particles_ShapeFactory__C49849_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P49838_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.tmp_0.arg2 = s.arg2; + s.tmp_0.arg3 = undefined; + s.tmp_0.arg4 = undefined; + s.callLocIdx = 1335; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.i___303111 > 0); - 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___303111); - s.curr___303119 = (r0); - r0 = (s.i___303111 - 1); - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); - s.parentIndex___303124 = (r0); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.parentIndex___303124); - s.parent___303128 = (r0); - s.tmp_2 = if_comparator_3_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.parent___303128; - s.tmp_2.arg2 = s.curr___303119; - if (!s.tmp_2.arg0.vtable.iface) { - setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "comparator"), 3); - s.callLocIdx = 1317; 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 = 1317; s.pc = 5; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1317; s.pc = 5; return s.tmp_2;; } - else { s.callLocIdx = 1317; s.pc = 5; return s.tmp_2; } - } - case 5: r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_1 <= 0); + r0 = pxsim_Array__mk(); 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"]; + 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 = pxsim_Array_.setAt(s.tmp_3, s.i___303111, s.parent___303128); - r0 = s.arg0.fields["store"]; - s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.parentIndex___303124, s.curr___303119); - s.i___303111 = (s.parentIndex___303124); - { step = 1; continue; } - case 4: + 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() } } } -Heap_percolateUp__P295064.info = {"start":1018,"length":432,"line":38,"column":4,"endLine":54,"endColumn":5,"fileName":"pxt_modules/pxt-heap/heap.ts","functionName":"percolateUp","argumentNames":["this"]} +particles_ShapeFactory_constructor__P49850.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 Heap_percolateUp__P295064_mk(s) { +function particles_ShapeFactory_constructor__P49850_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_percolateUp__P295064, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P49850, depth: s.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___303111: undefined, - curr___303119: undefined, - parentIndex___303124: undefined, - parent___303128: undefined, + tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Heap_parent__P295065(s) { +function particles_AreaFactory_constructor__P49838(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19496,33 +18596,77 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Heap__C292963_VT)) failedCast(r0); - r0 = (s.arg1 - 1); + if (!checkSubtype(r0, particles_AreaFactory__C49833_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P49828_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 = 1323; 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__C49695_VT); s.tmp_0 = r0; - r0 = (s.tmp_0 >> 1); + s.tmp_1 = Math_FastRandom_constructor__P49697_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = undefined; + s.callLocIdx = 1324; 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() } } } -Heap_parent__P295065.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"]} +particles_AreaFactory_constructor__P49838.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 Heap_parent__P295065_mk(s) { +function particles_AreaFactory_constructor__P49838_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_parent__P295065, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P49838, 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_LocationNode_constructor__P295075(s) { +function effects_ScreenEffect_constructor__P49903(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19537,36 +18681,44 @@ 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, scene_LocationNode__C295074_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, effects_ScreenEffect__C49902_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P49899_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 = 1377; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_LocationNode_constructor__P295075.info = {"start":317,"length":189,"line":13,"column":8,"endLine":19,"endColumn":9,"fileName":"a-star.ts","functionName":"inline","argumentNames":["this","l","parent","lastCost"]} +effects_ScreenEffect_constructor__P49903.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_LocationNode_constructor__P295075_mk(s) { +function effects_ScreenEffect_constructor__P49903_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_LocationNode_constructor__P295075, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P49903, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, arg2: undefined, arg3: undefined, + arg4: undefined, } } -function tiles_TileMap_isObstacle__P291766(s) { +function effects_ParticleEffect_constructor__P49899(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19580,85 +18732,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } - case 1: - case 2: - s.tmp_8 = tiles_TileMapData_isOutsideMap__P291746_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 = 834; s.pc = 6; return s.tmp_8; - case 6: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 3; continue; } - r0 = true; - { step = 5; continue; } - case 3: - case 4: - r0 = s.arg0.fields["_map"]; - s.tmp_9 = r0; - r0 = s.tmp_9.fields["layers"]; - s.tmp_11 = r0; - r0 = pxsim_ImageMethods.getPixel(s.tmp_11, s.arg1, s.arg2); - s.tmp_10 = r0; - r0 = (s.tmp_10 === 2); - case 5: + if (!checkSubtype(r0, effects_ParticleEffect__C49898_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() } } } -tiles_TileMap_isObstacle__P291766.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"]} +effects_ParticleEffect_constructor__P49899.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 tiles_TileMap_isObstacle__P291766_mk(s) { +function effects_ParticleEffect_constructor__P49899_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P291766, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P49899, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - tmp_10: undefined, - tmp_11: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function tiles_TileMapData_isOutsideMap__P291746(s) { +function scene_Scene_init__P49549(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19670,76 +18773,178 @@ 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__C291734_VT)) failedCast(r0); - r0 = (s.arg1 < 0); + if (!checkSubtype(r0, scene_Scene__C49526_VT)) failedCast(r0); + r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + { step = 3; continue; } case 1: - s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_width"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >= 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.arg2 < 0); + s.tmp_1 = power_poke__P48685_mk(s); + s.callLocIdx = 1003; s.pc = 4; return s.tmp_1; 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; } + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["allSprites"] = (s.tmp_1); + r0 = (s.arg0).fields["spriteNextId"] = (0); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P60327); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P47358_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 = 1006; s.pc = 5; return s.tmp_1; case 5: - s.tmp_5 = r0 = s.arg2; - r0 = s.arg0.fields["_height"]; - s.tmp_6 = r0; - r0 = (s.tmp_5 >= s.tmp_6); + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P47358_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 13; + s.tmp_0.arg2 = controller__moveSprites__P48882; + s.callLocIdx = 1007; s.pc = 6; return s.tmp_0; case 6: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = s.tmp_7; + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P60350); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P47358_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 = 1009; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P60363); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P47358_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 = 1013; s.pc = 8; return s.tmp_1; + case 8: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P60384); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P47358_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 = 1015; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P60392); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = control_EventContext_registerFrameHandler__P47358_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 = 1019; s.pc = 10; return s.tmp_1; + case 10: + r0 = s.retval; + s.tmp_0 = control_EventContext_registerFrameHandler__P47358_mk(s); + r0 = s.arg0.fields["eventContext"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 200; + s.tmp_0.arg2 = control___screen_update__P48745; + s.callLocIdx = 1020; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P60421); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___49547; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 1022; s.pc = 12; return s.tmp_1; + case 12: + r0 = s.retval; + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Scene_init__P49549.info = {"start":4278,"length":2477,"line":124,"column":8,"endLine":182,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} + +function scene_Scene_init__P49549_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_init__P49549, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, +} } + + + + + +function scene_Scene_init_inline__P60327(s) { +let r0 = s.r0, 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__P48910_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 = 1005; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P291746.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"]} +scene_Scene_init_inline__P60327.info = {"start":4568,"length":217,"line":131,"column":72,"endLine":135,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function tiles_TileMapData_isOutsideMap__P291746_mk(s) { +function scene_Scene_init_inline__P60327_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P291746, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P60327, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_TileMapData_isWall__P291745(s) { +function scene_Scene_init_inline__P60350(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19749,41 +18954,41 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C291734_VT)) failedCast(r0); - r0 = s.arg0.fields["layers"]; + s.tmp_0 = PhysicsEngine__C49245_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 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); - s.tmp_0 = r0; - r0 = (s.tmp_0 === 2); + 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__C49245_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.move; + s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P291745.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"]} +scene_Scene_init_inline__P60350.info = {"start":5080,"length":159,"line":140,"column":69,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function tiles_TileMapData_isWall__P291745_mk(s) { +function scene_Scene_init_inline__P60350_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P291745, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P60350, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, + tmp_2: undefined, } } -function scene_locationCol__P295226(s) { +function scene_Scene_init_inline__P60363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19793,37 +18998,113 @@ 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.dt___60364 = undefined; + s.s___60372 = undefined; + s.unnamed890___U2 = undefined; + s.unnamed891___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___60364 = (r0); + s.tmp_0 = scene_Camera_update__P49483_mk(s); + r0 = s.caps[0].fields["camera"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1011; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.s___60372 = (undefined); + r0 = s.caps[0].fields["allSprites"]; + s.unnamed890___U2 = (r0); + s.unnamed891___U3 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed891___U3; + r0 = pxsim_Array__length(s.unnamed890___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed890___U2, s.unnamed891___U3); + s.s___60372 = (r0); + s.tmp_2 = if___update_3_mk(s); + s.tmp_2.arg0 = s.s___60372; + r0 = s.caps[0].fields["camera"]; + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = s.dt___60364; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); + s.callLocIdx = 1012; 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 = 1012; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1012; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 1012; s.pc = 4; return s.tmp_2; } } - s.tmp_1 = tiles_Location_x__P291723_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 109; s.pc = 1; return s.tmp_1; + case 4: + r0 = s.retval; + r0 = (s.unnamed891___U3 + 1); + s.unnamed891___U3 = (r0); + { step = 1; continue; } + case 2: + s.unnamed890___U2 = (undefined); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Scene_init_inline__P60363.info = {"start":5428,"length":214,"line":149,"column":79,"endLine":155,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} + +function scene_Scene_init_inline__P60363_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_init_inline__P60363, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + dt___60364: undefined, + s___60372: undefined, + unnamed890___U2: undefined, + unnamed891___U3: undefined, +} } + + + + + +function scene_Scene_init_inline__P60384(s) { +let r0 = s.r0, 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__P49554_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.callLocIdx = 1014; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 4); + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_locationCol__P295226.info = {"start":7788,"length":82,"line":222,"column":4,"endLine":224,"endColumn":5,"fileName":"a-star.ts","functionName":"locationCol","argumentNames":["l"]} +scene_Scene_init_inline__P60384.info = {"start":5783,"length":109,"line":160,"column":76,"endLine":163,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function scene_locationCol__P295226_mk(s) { +function scene_Scene_init_inline__P60384_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_locationCol__P295226, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P60384, 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__P295221(s) { +function scene_Scene_init_inline__P60392(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19833,37 +19114,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_1 = tiles_Location_y__P291724_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 108; s.pc = 1; return s.tmp_1; + s.tmp_0 = r0 = globals.stats___49637; + 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___47353; + 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___47353; + if ((globals.control_EventContext_lastStats___47352) && (globals.control_EventContext_lastStats___47352).vtable) { + setupResume(s, 8); + pxsim_String__stringConv(globals.control_EventContext_lastStats___47352); + checkResumeConsumed(); + return; + } else { s.retval = (globals.control_EventContext_lastStats___47352) + ""; } + case 8: r0 = s.retval; - s.tmp_0 = r0; - r0 = (s.tmp_0 >> 4); + 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 = 1016; s.pc = 7; return s.tmp_2; + case 7: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(globals.debug___49636); + if (!r0) { step = 5; continue; } + s.tmp_0 = PhysicsEngine__C49245_v3_1_mk(s); + r0 = s.caps[0].fields["physicsEngine"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C49245_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__P49763_mk(s); + s.callLocIdx = 1017; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + s.tmp_0 = power_checkDeepSleep__P48686_mk(s); + s.callLocIdx = 1018; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_locationRow__P295221.info = {"start":7698,"length":82,"line":218,"column":4,"endLine":220,"endColumn":5,"fileName":"a-star.ts","functionName":"locationRow","argumentNames":["l"]} +scene_Scene_init_inline__P60392.info = {"start":6009,"length":504,"line":165,"column":80,"endLine":177,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function scene_locationRow__P295221_mk(s) { +function scene_Scene_init_inline__P60392_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_locationRow__P295221, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P60392, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - arg0: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, } } -function Heap_constructor__P292964(s) { +function scene_Scene_init_inline__P60421(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19875,38 +19227,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Heap__C292963_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.tmp_0).fields["store"] = (s.tmp_1); + 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 = 1021; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Heap_constructor__P292964.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"]} +scene_Scene_init_inline__P60421.info = {"start":6731,"length":12,"line":181,"column":39,"endLine":181,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function Heap_constructor__P292964_mk(s) { +function scene_Scene_init_inline__P60421_mk(s) { checkStack(s.depth); return { - parent: s, fn: Heap_constructor__P292964, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P60421, 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_isWalkable__P295102(s) { +function game_consoleOverlay_draw__P49763(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19916,63 +19265,191 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.img___295600 = 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 = scene_isWall__P295396_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg2; - s.callLocIdx = 113; s.pc = 6; return s.tmp_1; - case 6: - r0 = s.retval; + s.height___60470 = undefined; + s.top___60475 = undefined; + s.i___60481 = undefined; + s.t___60494 = undefined; + s.tOff___60501 = undefined; + s.tab___60503 = undefined; + s.unnamed894___U6 = undefined; + s.unnamed895___U7 = undefined; + s.padding___60505 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___51633); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: - case 2: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = pxsim_numops_toBoolDecr(globals.instance___51587); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 3; continue; } - r0 = true; - { step = 5; continue; } + { step = 13; continue; } case 3: case 4: - s.tmp_4 = tiles_TileMap_getTileImage__P291769_mk(s); - s.tmp_4.arg0 = s.arg2; - s.tmp_5 = tiles_TileMap_getTileIndex__P291760_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 = 116; s.pc = 8; return s.tmp_5; - case 8: + s.tmp_7 = if_charHeight_1_mk(s); + s.tmp_7.arg0 = globals.consoleFont___51641; + 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 = 1228; s.pc = 14; return s.tmp_7; } + } + case 14: r0 = s.retval; - s.tmp_4.arg1 = r0; - s.callLocIdx = 117; s.pc = 7; return s.tmp_4; + s.tmp_6 = r0; + r0 = (s.tmp_6 + 2); + s.height___60470 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___49637); + if (!r0) { step = 5; continue; } + r0 = s.height___60470; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = (2 + s.tmp_0); + s.top___60475 = (r0); + s.i___60481 = (0); case 7: + s.tmp_1 = r0 = s.i___60481; + r0 = pxsim_Array__length(globals.consoleStrings___51633); + 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___51633, s.i___60481); + s.tmp_5 = r0; + r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); + s.tmp_4 = r0; + r0 = (s.tmp_4 >= 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 10; continue; } + s.tmp_6 = helpers_stringSplit__P47077_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___51633, s.i___60481); + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = "\t"; + s.tmp_6.arg2 = undefined; + s.callLocIdx = 1229; s.pc = 15; return s.tmp_6; + case 15: r0 = s.retval; - s.img___295600 = (r0); - r0 = pxsim_ImageMethods.equals(s.img___295600, s.arg1); - case 5: + s.t___60494 = (r0); + s.tOff___60501 = (0); + s.tab___60503 = (undefined); + s.unnamed894___U6 = (s.t___60494); + s.unnamed895___U7 = (0); + case 8: + s.tmp_0 = r0 = s.unnamed895___U7; + r0 = pxsim_Array__length(s.unnamed894___U6); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 9; continue; } + r0 = pxsim_Array__getAt(s.unnamed894___U6, s.unnamed895___U7); + s.tab___60503 = (r0); + s.tmp_2 = r0 = globals.tabSize___51635; + s.tmp_5 = r0 = s.tOff___60501; + r0 = pxsim_String_.length(s.tab___60503); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_4 = r0; + r0 = (s.tmp_4 % globals.tabSize___51635); + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.padding___60505 = (r0); + s.tmp_0 = helpers_imagePrint__P48742_mk(s); + s.tmp_0.arg0 = globals.screen___48784; + s.tmp_0.arg1 = s.tab___60503; + s.tmp_2 = r0 = s.tOff___60501; + s.tmp_4 = if_charWidth_1_mk(s); + s.tmp_4.arg0 = globals.consoleFont___51641; + 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 = 1230; s.pc = 17; return s.tmp_4; } + } + case 17: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 * s.tmp_3); + s.tmp_1 = r0; + r0 = (4 + s.tmp_1); + s.tmp_0.arg2 = r0; + s.tmp_5 = r0 = s.top___60475; + r0 = (s.i___60481 * s.height___60470); + s.tmp_6 = r0; + r0 = (s.tmp_5 + s.tmp_6); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___51632; + s.tmp_0.arg5 = globals.consoleFont___51641; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1231; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + s.tmp_0 = r0 = s.tOff___60501; + r0 = pxsim_String_.length(s.tab___60503); + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.padding___60505); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.tOff___60501 = (r0); + r0 = (s.unnamed895___U7 + 1); + s.unnamed895___U7 = (r0); + { step = 8; continue; } + case 9: + s.unnamed894___U6 = (undefined); + { step = 11; continue; } + case 10: + s.tmp_0 = helpers_imagePrint__P48742_mk(s); + s.tmp_0.arg0 = globals.screen___48784; + r0 = pxsim_Array__getAt(globals.consoleStrings___51633, s.i___60481); + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = 4; + s.tmp_1 = r0 = s.top___60475; + r0 = (s.i___60481 * s.height___60470); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = globals.consoleColor___51632; + s.tmp_0.arg5 = globals.consoleFont___51641; + s.tmp_0.arg6 = undefined; + s.callLocIdx = 1232; s.pc = 18; return s.tmp_0; + case 18: + r0 = s.retval; + case 11: + r0 = (s.i___60481 + 1); + s.i___60481 = (r0); + { step = 7; continue; } + case 12: + case 13: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_isWalkable__P295102.info = {"start":8055,"length":280,"line":232,"column":4,"endLine":237,"endColumn":5,"fileName":"a-star.ts","functionName":"isWalkable","argumentNames":["l","onTilesOf","tm"]} +game_consoleOverlay_draw__P49763.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function scene_isWalkable__P295102_mk(s) { +function game_consoleOverlay_draw__P49763_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_isWalkable__P295102, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P49763, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19980,52 +19457,24 @@ function scene_isWalkable__P295102_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - img___295600: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function tiles_Location_row__P291721(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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_Location__C291719_VT)) failedCast(r0); - r0 = s.arg0.fields["_row"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_Location_row__P291721.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__P291721.isGetter = true; - -function tiles_Location_row__P291721_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_Location_row__P291721, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_6: undefined, + tmp_7: undefined, + height___60470: undefined, + top___60475: undefined, + i___60481: undefined, + t___60494: undefined, + tOff___60501: undefined, + tab___60503: undefined, + unnamed894___U6: undefined, + unnamed895___U7: undefined, + padding___60505: undefined, } } -function tiles_Location_col__P291720(s) { +function scene_systemMenu_isVisible__P49744(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20035,32 +19484,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C291719_VT)) failedCast(r0); - r0 = s.arg0.fields["_col"]; - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBoolDecr(globals.instance___51587); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) default: oops() } } } -tiles_Location_col__P291720.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__P291720.isGetter = true; +scene_systemMenu_isVisible__P49744.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function tiles_Location_col__P291720_mk(s) { +function scene_systemMenu_isVisible__P49744_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_col__P291720, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P49744, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, } } -function tiles_TileMap_getTileIndex__P291760(s) { +function helpers_imagePrint__P48742(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20070,43 +19520,506 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.x0___55354 = undefined; + s.cp___55356 = undefined; + s.mult___55357 = undefined; + s.dataW___55362 = undefined; + s.dataH___55368 = undefined; + s.byteHeight___55374 = undefined; + s.charSize___55380 = undefined; + s.dataSize___55384 = undefined; + s.fontdata___55388 = undefined; + s.lastchar___55391 = undefined; + s.imgBuf___55398 = undefined; + s.xOffset___55422 = undefined; + s.yOffset___55423 = undefined; + s.ch___55438 = undefined; + s.l___55457 = undefined; + s.r___55458 = undefined; + s.off___55460 = undefined; + s.guess___55461 = undefined; + s.m___55480 = undefined; + s.v___55489 = undefined; + s.i___55545 = undefined; + s.j___55550 = undefined; + s.mask___55551 = undefined; + s.c___55552 = undefined; + s.n___55569 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P291740_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 = 797; s.pc = 1; return s.tmp_0; + r0 = (s.arg2 | 0); + s.arg2 = (r0); + r0 = (s.arg3 | 0); + s.arg3 = (r0); + r0 = pxsim_numops_toBoolDecr(s.arg5); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_2 = image_getFontForText__P48729_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 100; s.pc = 39; return s.tmp_2; + case 39: + r0 = s.retval; + s.arg5 = (r0); case 1: + case 2: + r0 = pxsim_numops_toBoolDecr(s.arg4); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.arg4 = (1); + case 3: + case 4: + s.x0___55354 = (s.arg2); + s.cp___55356 = (0); + s.tmp_1 = if_multiplier_1_mk(s); + s.tmp_1.arg0 = s.arg5; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "multiplier"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["multiplier"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["multiplier"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 101; s.pc = 40; return s.tmp_1; } + } + case 40: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + s.tmp_2 = if_multiplier_1_mk(s); + s.tmp_2.arg0 = s.arg5; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "multiplier"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["multiplier"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["multiplier"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 102; s.pc = 41; return s.tmp_2; } + } + case 41: + r0 = s.retval; + { step = 6; continue; } + case 5: + r0 = 1; + case 6: + // jmp value (already in r0) + s.tmp_3 = r0; + s.mult___55357 = (s.tmp_3); + s.tmp_1 = if_charWidth_1_mk(s); + s.tmp_1.arg0 = s.arg5; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charWidth"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charWidth"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charWidth"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 103; 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___55357); + s.dataW___55362 = (r0); + s.tmp_1 = if_charHeight_1_mk(s); + s.tmp_1.arg0 = s.arg5; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "charHeight"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["charHeight"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["charHeight"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 104; 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___55357); + s.dataH___55368 = (r0); + r0 = (s.dataH___55368 + 7); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 3); + s.byteHeight___55374 = (r0); + r0 = (s.byteHeight___55374 * s.dataW___55362); + s.charSize___55380 = (r0); + r0 = (2 + s.charSize___55380); + s.dataSize___55384 = (r0); + s.tmp_0 = if_data_1_mk(s); + s.tmp_0.arg0 = s.arg5; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "data"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["data"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["data"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 105; s.pc = 44; return s.tmp_0; } + } + case 44: + r0 = s.retval; + s.fontdata___55388 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___55388); + s.tmp_1 = r0; + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___55384); + s.tmp_0 = r0; + r0 = (s.tmp_0 - 1); + s.lastchar___55391 = (r0); + r0 = (s.mult___55357 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = (8 + s.charSize___55380); + s.tmp_1 = r0; + r0 = pxsim.control.createBuffer(s.tmp_1); + s.imgBuf___55398 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___55398, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___55398, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___55398, 2, s.dataW___55362); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___55398, 4, s.dataH___55368); + case 7: + case 8: + case 9: + s.tmp_1 = r0 = s.cp___55356; + 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___55422 = (0); + s.yOffset___55423 = (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___55356; + r0 = pxsim_Array__length(s.arg6); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + case 11: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 12; continue; } + s.tmp_4 = if_xOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___55356); + s.tmp_4.arg0 = r0; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["xOffset"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["xOffset"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 106; s.pc = 45; return s.tmp_4; } + } + case 45: + r0 = s.retval; + s.xOffset___55422 = (r0); + s.tmp_0 = if_yOffset_1_mk(s); + r0 = pxsim_Array__getAt(s.arg6, s.cp___55356); + s.tmp_0.arg0 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["yOffset"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["yOffset"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 107; s.pc = 46; return s.tmp_0; } + } + case 46: + r0 = s.retval; + s.yOffset___55423 = (r0); + case 12: + case 13: + s.tmp_0 = r0 = s.cp___55356; + r0 = (s.tmp_0 + 1); + s.cp___55356 = (r0); + r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); + s.ch___55438 = (r0); + r0 = (s.ch___55438 == 10); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + s.tmp_1 = r0 = s.arg3; + s.tmp_4 = if_charHeight_1_mk(s); + s.tmp_4.arg0 = s.arg5; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charHeight"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["charHeight"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["charHeight"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 108; s.pc = 47; return s.tmp_4; } + } + case 47: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 + 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.arg3 = (r0); + s.arg2 = (s.x0___55354); + case 14: + case 15: + r0 = (s.ch___55438 < 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___55457 = (0); + s.r___55458 = (s.lastchar___55391); + s.off___55460 = (0); + r0 = (s.ch___55438 - 32); + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.dataSize___55384); + s.guess___55461 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___55388, 4, s.guess___55461); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.ch___55438); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 18; continue; } + s.off___55460 = (s.guess___55461); + { step = 25; continue; } + case 18: + case 19: + r0 = (s.l___55457 <= s.r___55458); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 24; continue; } + s.tmp_1 = r0 = s.l___55457; + r0 = (s.r___55458 - s.l___55457); + s.tmp_3 = r0; + r0 = (s.tmp_3 >> 1); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); + s.m___55480 = (r0); + s.tmp_0 = r0 = s.fontdata___55388; + r0 = (s.m___55480 * s.dataSize___55384); + s.tmp_1 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); + s.v___55489 = (r0); + r0 = (s.v___55489 == s.ch___55438); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + r0 = (s.m___55480 * s.dataSize___55384); + s.off___55460 = (r0); + { step = 24; continue; } + case 20: + case 21: + r0 = (s.v___55489 < s.ch___55438); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 22; continue; } + r0 = (s.m___55480 + 1); + s.l___55457 = (r0); + { step = 23; continue; } + case 22: + r0 = (s.m___55480 - 1); + s.r___55458 = (r0); + case 23: + { step = 19; continue; } + case 24: + case 25: + r0 = (s.mult___55357 == 1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 26; continue; } + s.tmp_1 = r0 = s.imgBuf___55398; + s.tmp_3 = r0 = s.fontdata___55388; + r0 = (s.off___55460 + 2); + s.tmp_4 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___55380); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); + s.tmp_0 = helpers_imageDrawIcon__P48709_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.imgBuf___55398; + r0 = (s.arg2 + s.xOffset___55422); + s.tmp_0.arg2 = r0; + r0 = (s.arg3 + s.yOffset___55423); + s.tmp_0.arg3 = r0; + s.tmp_0.arg4 = s.arg4; + s.callLocIdx = 109; s.pc = 48; return s.tmp_0; + case 48: + r0 = s.retval; + s.tmp_0 = r0 = s.arg2; + s.tmp_2 = if_charWidth_1_mk(s); + s.tmp_2.arg0 = s.arg5; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 110; s.pc = 49; return s.tmp_2; } + } + case 49: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.arg2 = (r0); + { step = 37; continue; } + case 26: + r0 = (s.off___55460 + 2); + s.off___55460 = (r0); + s.i___55545 = (0); + case 27: + r0 = (s.i___55545 < s.dataW___55362); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 36; continue; } + s.j___55550 = (0); + s.mask___55551 = (1); + s.tmp_0 = r0 = s.off___55460; + r0 = (s.tmp_0 + 1); + s.off___55460 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___55388, s.tmp_0); + s.c___55552 = (r0); + case 28: + r0 = (s.j___55550 < s.dataH___55368); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 35; continue; } + r0 = (s.mask___55551 == 256); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 29; continue; } + s.tmp_2 = r0 = s.off___55460; + r0 = (s.tmp_2 + 1); + s.off___55460 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___55388, s.tmp_2); + s.c___55552 = (r0); + s.mask___55551 = (1); + case 29: + case 30: + s.n___55569 = (0); + case 31: + r0 = (s.c___55552 & s.mask___55551); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 32; continue; } + r0 = (s.n___55569 + 1); + s.n___55569 = (r0); + r0 = (s.mask___55551 << 1); + s.mask___55551 = (r0); + { step = 31; continue; } + case 32: + r0 = pxsim_numops_toBoolDecr(s.n___55569); + if (!r0) { step = 33; continue; } + s.tmp_0 = helpers_imageFillRect__P48710_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg2; + r0 = (s.xOffset___55422 * s.mult___55357); + 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___55550 + s.yOffset___55423); + s.tmp_5 = r0; + r0 = (s.tmp_5 * s.mult___55357); + s.tmp_4 = r0; + r0 = (s.tmp_3 + s.tmp_4); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = s.mult___55357; + r0 = (s.mult___55357 * s.n___55569); + s.tmp_0.arg4 = r0; + s.tmp_0.arg5 = s.arg4; + s.callLocIdx = 111; s.pc = 50; return s.tmp_0; + case 50: r0 = s.retval; + r0 = (s.j___55550 + s.n___55569); + s.j___55550 = (r0); + { step = 34; continue; } + case 33: + r0 = (s.mask___55551 << 1); + s.mask___55551 = (r0); + r0 = (s.j___55550 + 1); + s.j___55550 = (r0); + case 34: + { step = 28; continue; } + case 35: + r0 = (s.arg2 + s.mult___55357); + s.arg2 = (r0); + r0 = (s.i___55545 + 1); + s.i___55545 = (r0); + { step = 27; continue; } + case 36: + case 37: + { step = 9; continue; } + case 38: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileIndex__P291760.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"]} +helpers_imagePrint__P48742.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 tiles_TileMap_getTileIndex__P291760_mk(s) { +function helpers_imagePrint__P48742_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P291760, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P48742, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + x0___55354: undefined, + cp___55356: undefined, + mult___55357: undefined, + dataW___55362: undefined, + dataH___55368: undefined, + byteHeight___55374: undefined, + charSize___55380: undefined, + dataSize___55384: undefined, + fontdata___55388: undefined, + lastchar___55391: undefined, + imgBuf___55398: undefined, + xOffset___55422: undefined, + yOffset___55423: undefined, + ch___55438: undefined, + l___55457: undefined, + r___55458: undefined, + off___55460: undefined, + guess___55461: undefined, + m___55480: undefined, + v___55489: undefined, + i___55545: undefined, + j___55550: undefined, + mask___55551: undefined, + c___55552: undefined, + n___55569: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, } } -function tiles_TileMap_data__P293358(s) { +function image_getFontForText__P48729(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20116,24 +20029,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.i___55784 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - return leaveAccessor(s, r0) + s.i___55784 = (0); + case 1: + s.tmp_1 = r0 = s.i___55784; + 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___55784); + 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___48728; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.i___55784 + 1); + s.i___55784 = (r0); + { step = 1; continue; } + case 4: + r0 = globals.font8___48727; + case 5: + return leave(s, r0) default: oops() } } } -tiles_TileMap_data__P293358.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__P293358.isGetter = true; +image_getFontForText__P48729.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} -function tiles_TileMap_data__P293358_mk(s) { +function image_getFontForText__P48729_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_data__P293358, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P48729, depth: s.depth + 1, pc: 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___55784: undefined, arg0: undefined, } } @@ -20141,7 +20082,7 @@ function tiles_TileMap_data__P293358_mk(s) { -function tiles_TileMapData_getTile__P291740(s) { +function helpers_imageFillRect__P48710(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20155,69 +20096,56 @@ 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_TileMapData__C291734_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P291746_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 776; s.pc = 4; return s.tmp_1; - case 4: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = 0; - { step = 3; continue; } + s.tmp_0 = r0 = s.arg0; + s.tmp_2 = helpers_pack__P51063_mk(s); + s.tmp_2.arg0 = s.arg1; + s.tmp_2.arg1 = s.arg2; + s.callLocIdx = 82; s.pc = 1; return s.tmp_2; case 1: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = helpers_pack__P51063_mk(s); + s.tmp_4.arg0 = s.arg3; + s.tmp_4.arg1 = s.arg4; + s.callLocIdx = 83; s.pc = 2; return s.tmp_4; 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); - s.tmp_6 = r0; - r0 = (s.tmp_4 + s.tmp_6); + r0 = s.retval; s.tmp_3 = r0; - r0 = pxsim.BufferMethods.getUint8(s.tmp_2, s.tmp_3); - case 3: + r0 = pxsim_ImageMethods._fillRect(s.tmp_0, s.tmp_1, s.tmp_3, s.arg5); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P291740.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"]} +helpers_imageFillRect__P48710.info = {"start":4834,"length":159,"line":158,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} -function tiles_TileMapData_getTile__P291740_mk(s) { +function helpers_imageFillRect__P48710_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P291740, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P48710, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, } } -function tiles_TileMap_getTileImage__P291769(s) { +function helpers_imageDrawIcon__P48709(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20230,37 +20158,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.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P291743_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 857; s.pc = 1; return s.tmp_0; + s.tmp_0 = r0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = helpers_pack__P51063_mk(s); + s.tmp_3.arg0 = s.arg2; + s.tmp_3.arg1 = s.arg3; + s.callLocIdx = 81; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods._drawIcon(s.tmp_0, s.tmp_1, s.tmp_2, s.arg4); + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P291769.info = {"start":13699,"length":96,"line":442,"column":8,"endLine":444,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +helpers_imageDrawIcon__P48709.info = {"start":4684,"length":145,"line":155,"column":4,"endLine":157,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} -function tiles_TileMap_getTileImage__P291769_mk(s) { +function helpers_imageDrawIcon__P48709_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P291769, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P48709, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, } } -function tiles_TileMapData_getTileImage__P291743(s) { +function helpers_stringSplit__P47077(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20270,191 +20209,186 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___302530 = undefined; - s.cachedImage___302534 = undefined; - s.originalImage___302540 = undefined; + s.A___55807 = undefined; + s.lim___55809 = undefined; + s.s___55825 = undefined; + s.p___55828 = undefined; + s.R___55829 = undefined; + s.z___55843 = undefined; + s.T___55856 = undefined; + s.q___55857 = undefined; + s.e___55863 = 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__C291734_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - s.tmp_0 = r0; - r0 = (1 << s.tmp_0); - s.size___302530 = (r0); - r0 = s.arg0.fields["cachedTileView"]; - s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___302534 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___302534); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = pxsim_Array__mk(); + s.A___55807 = (r0); + s.lim___55809 = (0); + r0 = (s.arg2 === undefined); 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___302540 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___302540); - if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___302540); - s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___302530); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + if (!r0) { step = 1; continue; } + r0 = (536870912 - 1); + s.lim___55809 = (r0); + { step = 4; continue; } case 1: - r0 = pxsim_ImageMethods.height(s.originalImage___302540); - s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___302530); + r0 = (s.arg2 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 2; continue; } + s.lim___55809 = (0); + { step = 3; continue; } case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.cachedImage___302534 = (s.originalImage___302540); - { step = 4; continue; } + r0 = (s.arg2 | 0); + s.lim___55809 = (r0); case 3: - r0 = pxsim.image.create(s.size___302530, s.size___302530); - s.cachedImage___302534 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___302534, s.originalImage___302540, 0, 0); case 4: - r0 = s.arg0.fields["cachedTileView"]; + r0 = pxsim_String_.length(s.arg0); + s.s___55825 = (r0); + s.p___55828 = (0); + s.R___55829 = (s.arg1); + r0 = (s.lim___55809 == 0); s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___302534); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.A___55807; + { step = 21; continue; } case 5: case 6: + r0 = (s.arg1 === undefined); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 7; continue; } + r0 = pxsim_Array_.setAt(s.A___55807, 0, s.arg0); + r0 = s.A___55807; + { step = 21; continue; } case 7: case 8: - r0 = s.cachedImage___302534; - return leave(s, r0) - default: oops() -} } } -tiles_TileMapData_getTileImage__P291743.info = {"start":4599,"length":717,"line":172,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} - -function tiles_TileMapData_getTileImage__P291743_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMapData_getTileImage__P291743, depth: s.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___302530: undefined, - cachedImage___302534: undefined, - originalImage___302540: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function tiles_TileMapData_scale__P291738(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C291734_VT)) failedCast(r0); - r0 = s.arg0.fields["_scale"]; - return leaveAccessor(s, r0) - default: oops() -} } } -tiles_TileMapData_scale__P291738.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__P291738.isGetter = true; - -function tiles_TileMapData_scale__P291738_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: tiles_TileMapData_scale__P291738, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function scene_locationOfSprite__P295927(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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 = tiles_getTileLocation__P291774_mk(s); - s.tmp_1 = scene_screenCoordinateToTile__P296141_mk(s); - s.tmp_2 = Sprite_x__P291451_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 190; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.callLocIdx = 191; s.pc = 2; return s.tmp_1; - case 2: + r0 = (s.s___55825 == 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.tmp_1 = helpers_splitMatch__P50907_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = 0; + s.tmp_1.arg2 = s.R___55829; + s.callLocIdx = 11; s.pc = 22; return s.tmp_1; + case 22: r0 = s.retval; - s.tmp_0.arg0 = r0; - s.tmp_3 = scene_screenCoordinateToTile__P296141_mk(s); - s.tmp_4 = Sprite_y__P291453_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 192; s.pc = 5; return s.tmp_4; - case 5: + s.z___55843 = (r0); + r0 = (s.z___55843 > -1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.A___55807; + { step = 21; continue; } + case 9: + case 10: + r0 = pxsim_Array_.setAt(s.A___55807, 0, s.arg0); + r0 = s.A___55807; + { step = 21; continue; } + case 11: + case 12: + s.q___55857 = (s.p___55828); + case 13: + r0 = (s.q___55857 != s.s___55825); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 20; continue; } + s.tmp_1 = helpers_splitMatch__P50907_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.q___55857; + s.tmp_1.arg2 = s.R___55829; + s.callLocIdx = 12; s.pc = 23; return s.tmp_1; + case 23: r0 = s.retval; - s.tmp_3.arg0 = r0; - s.callLocIdx = 193; s.pc = 4; return s.tmp_3; - case 4: + s.e___55863 = (r0); + r0 = (s.e___55863 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 14; continue; } + r0 = (s.q___55857 + 1); + s.q___55857 = (r0); + { step = 19; continue; } + case 14: + r0 = (s.e___55863 == s.p___55828); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + r0 = (s.q___55857 + 1); + s.q___55857 = (r0); + { step = 18; continue; } + case 15: + s.tmp_0 = helpers_stringSlice__P47074_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___55828; + s.tmp_0.arg2 = s.q___55857; + s.callLocIdx = 13; s.pc = 24; return s.tmp_0; + case 24: r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 194; s.pc = 1; return s.tmp_0; - case 1: + s.T___55856 = (r0); + r0 = pxsim_Array__push(s.A___55807, s.T___55856); + r0 = pxsim_Array__length(s.A___55807); + s.tmp_1 = r0; + r0 = (s.tmp_1 == s.lim___55809); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 16; continue; } + r0 = s.A___55807; + { step = 21; continue; } + case 16: + case 17: + s.p___55828 = (s.e___55863); + s.q___55857 = (s.p___55828); + case 18: + case 19: + { step = 13; continue; } + case 20: + s.tmp_0 = helpers_stringSlice__P47074_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.p___55828; + s.tmp_0.arg2 = s.q___55857; + s.callLocIdx = 14; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; + s.T___55856 = (r0); + r0 = pxsim_Array__push(s.A___55807, s.T___55856); + r0 = s.A___55807; + case 21: return leave(s, r0) default: oops() } } } -scene_locationOfSprite__P295927.info = {"start":10691,"length":156,"line":292,"column":4,"endLine":294,"endColumn":5,"fileName":"path-following.ts","functionName":"locationOfSprite","argumentNames":["s"]} +helpers_stringSplit__P47077.info = {"start":12919,"length":1319,"line":434,"column":4,"endLine":478,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringSplit","argumentNames":["S","separator","limit"]} -function scene_locationOfSprite__P295927_mk(s) { +function helpers_stringSplit__P47077_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_locationOfSprite__P295927, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P47077, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, + A___55807: undefined, + lim___55809: undefined, + s___55825: undefined, + p___55828: undefined, + R___55829: undefined, + z___55843: undefined, + T___55856: undefined, + q___55857: undefined, + e___55863: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene_screenCoordinateToTile__P296141(s) { +function helpers_splitMatch__P50907(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20464,55 +20398,85 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___296143 = undefined; + s.r___55943 = undefined; + s.s___55946 = undefined; + s.i___55956 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 188; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___296143 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tm___296143); + r0 = pxsim_String_.length(s.arg2); + s.r___55943 = (r0); + r0 = pxsim_String_.length(s.arg0); + s.s___55946 = (r0); + r0 = (s.arg1 + s.r___55943); s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 > s.s___55946); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (s.arg0 >> 4); - { step = 3; continue; } + r0 = -1; + { step = 7; continue; } case 1: case 2: - s.tmp_2 = r0 = s.arg0; - r0 = s.tm___296143.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 >> s.tmp_3); + s.i___55956 = (0); case 3: + r0 = (s.i___55956 < s.r___55943); + 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___55956); + 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___55956); + s.tmp_5 = r0; + r0 = (s.tmp_2 != s.tmp_5); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = -1; + { step = 7; continue; } + case 4: + case 5: + r0 = (s.i___55956 + 1); + s.i___55956 = (r0); + { step = 3; continue; } + case 6: + r0 = (s.arg1 + s.r___55943); + case 7: return leave(s, r0) default: oops() } } } -scene_screenCoordinateToTile__P296141.info = {"start":10513,"length":172,"line":286,"column":4,"endLine":290,"endColumn":5,"fileName":"path-following.ts","functionName":"screenCoordinateToTile","argumentNames":["value"]} +helpers_splitMatch__P50907.info = {"start":14244,"length":289,"line":480,"column":4,"endLine":489,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"splitMatch","argumentNames":["S","q","R"]} -function scene_screenCoordinateToTile__P296141_mk(s) { +function helpers_splitMatch__P50907_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_screenCoordinateToTile__P296141, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P50907, depth: s.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___296143: undefined, + tmp_4: undefined, + tmp_5: undefined, + r___55943: undefined, + s___55946: undefined, + i___55956: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function scene__followPath__P292981(s) { +function scene_Scene_render__P49554(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20522,188 +20486,139 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.store___296037 = undefined; - s.previousEl___296040 = undefined; - s.start___296050 = undefined; - s.pfs___296061 = undefined; + s.s___60619 = undefined; + s.unnamed892___U1 = undefined; + s.unnamed893___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); - s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Scene__C49526_VT)) failedCast(r0); + r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 & 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - { step = 19; continue; } + { step = 11; continue; } case 1: case 2: - s.tmp_2 = scene_init__P295633_mk(s); - s.callLocIdx = 179; s.pc = 20; return s.tmp_2; - case 20: - r0 = s.retval; - s.tmp_0 = scene_getPathFollowingSprites__P295654_mk(s); - s.callLocIdx = 180; s.pc = 21; return s.tmp_0; - case 21: - r0 = s.retval; - s.store___296037 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P296042); + s.tmp_2 = r0 = s.arg0; + r0 = s.tmp_2.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 | 4); + s.tmp_3 = r0; + r0 = (s.tmp_2).fields["flags"] = (s.tmp_3); + r0 = s.arg0.fields["flags"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 & 2); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFind__P289516_mk(s); - s.tmp_1.arg0 = s.store___296037; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 181; s.pc = 22; return s.tmp_1; - case 22: - r0 = s.retval; - s.previousEl___296040 = (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); + r0 = s.arg0.fields["previousScene"]; case 4: // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 5; continue; } + s.tmp_3 = scene_Scene_render__P49554_mk(s); + r0 = s.arg0.fields["previousScene"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 1024; s.pc = 12; return s.tmp_3; + case 12: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = scene_Background_draw__P49364_mk(s); + r0 = s.arg0.fields["background"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 1025; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + case 6: + r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; - s.start___296050 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.start___296050); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 & 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.previousEl___296040); - if (!r0) { step = 5; continue; } - r0 = pxsim_Array_.removeElement(s.store___296037, s.previousEl___296040); - case 5: - case 6: - { step = 19; continue; } + s.tmp_2 = helpers_arraySort__P47060_mk(s); + r0 = s.arg0.fields["allSprites"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = scene_Scene_render_inline__P60596; + s.callLocIdx = 1030; s.pc = 14; return s.tmp_2; + case 14: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -2); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); case 7: case 8: - s.tmp_0 = r0 = s.previousEl___296040; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = s.tmp_0; - { step = 12; continue; } + s.s___60619 = (undefined); + r0 = s.arg0.fields["allSprites"]; + s.unnamed892___U1 = (r0); + s.unnamed893___U2 = (0); case 9: - r0 = pxsim_pxtcore_mkClassInstance(scene_PathFollowingSprite__C295619_VT); + s.tmp_0 = r0 = s.unnamed893___U2; + r0 = pxsim_Array__length(s.unnamed892___U1); s.tmp_1 = r0; - s.tmp_2 = r0 = s.arg2; - r0 = pxsim_numops_toBool(s.tmp_2); + r0 = (s.tmp_0 < s.tmp_1); 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; - s.tmp_4 = scene_PathFollowingSprite_constructor__P295620_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 = 182; 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___296061 = (s.tmp_5); - r0 = pxsim_numops_toBoolDecr(s.previousEl___296040); - if (!r0) { step = 17; continue; } - r0 = pxsim_numops_toBoolDecr(s.arg2); - if (!r0) { step = 13; continue; } - r0 = (s.previousEl___296040).fields["speed"] = (s.arg2); - case 13: - case 14: - r0 = (s.previousEl___296040).fields["path"] = (s.arg1); - r0 = (s.previousEl___296040).fields["index"] = (0); - r0 = pxsim_numops_toBoolDecr(s.arg3); - if (!r0) { step = 15; continue; } - r0 = (s.previousEl___296040).fields["onEndHandler"] = (s.arg3); - case 15: - case 16: - { step = 18; continue; } - case 17: - r0 = (s.pfs___296061).fields["onEndHandler"] = (s.arg3); - r0 = pxsim_Array__push(s.store___296037, s.pfs___296061); - case 18: - s.tmp_0 = scene_setVelocityTowards__P295769_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.start___296050; - r0 = s.pfs___296061.fields["speed"]; - s.tmp_0.arg2 = r0; - s.callLocIdx = 183; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - case 19: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene__followPath__P292981.info = {"start":8638,"length":1001,"line":223,"column":4,"endLine":259,"endColumn":5,"fileName":"path-following.ts","functionName":"_followPath","argumentNames":["sprite","path","speed","endCb"]} - -function scene__followPath__P292981_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene__followPath__P292981, depth: s.depth + 1, - pc: 0, retval: undefined, 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___296037: undefined, - previousEl___296040: undefined, - start___296050: undefined, - pfs___296061: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function inline__P296042(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; + r0 = pxsim_Array__getAt(s.unnamed892___U1, s.unnamed893___U2); + s.s___60619 = (r0); + s.tmp_2 = if___draw_2_mk(s); + s.tmp_2.arg0 = s.s___60619; + r0 = s.arg0.fields["camera"]; + s.tmp_2.arg1 = r0; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__draw"), 2); + s.callLocIdx = 1031; s.pc = 15; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["__draw"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__draw"], 2); s.callLocIdx = 1031; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1031; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 1031; s.pc = 15; return s.tmp_2; } } - r0 = s.arg0.fields["sprite"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 === s.caps[0]); + case 15: + r0 = s.retval; + r0 = (s.unnamed893___U2 + 1); + s.unnamed893___U2 = (r0); + { step = 9; continue; } + case 10: + s.unnamed892___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -5); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); + case 11: + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P296042.info = {"start":8889,"length":26,"line":229,"column":38,"endLine":229,"endColumn":64,"fileName":"path-following.ts","functionName":"inline","argumentNames":["el"]} +scene_Scene_render__P49554.info = {"start":7954,"length":917,"line":223,"column":8,"endLine":247,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function inline__P296042_mk(s) { +function scene_Scene_render__P49554_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P296042, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P49554, depth: s.depth + 1, pc: 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___60619: undefined, + unnamed892___U1: undefined, + unnamed893___U2: undefined, arg0: undefined, } } @@ -20711,7 +20626,7 @@ function inline__P296042_mk(s) { -function scene_PathFollowingSprite_constructor__P295620(s) { +function scene_Scene_render_inline__P60596(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20724,101 +20639,92 @@ 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__C295619_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__P295620.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__P295620_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_PathFollowingSprite_constructor__P295620, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, -} } - - - - - -function helpers_arrayFind__P289516(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.len___302735 = undefined; - s.i___302738 = undefined; - s.v___302743 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; + s.tmp_2 = if_z_1_mk(s); + s.tmp_2.arg0 = s.arg0; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "z"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["z"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["z"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 1026; s.pc = 3; return s.tmp_2; } } - r0 = pxsim_Array__length(s.arg0); - s.len___302735 = (r0); - s.i___302738 = (0); - case 1: - r0 = (s.i___302738 < s.len___302735); + case 3: + r0 = s.retval; + s.tmp_1 = r0; + s.tmp_4 = if_z_1_mk(s); + s.tmp_4.arg0 = s.arg1; + if (!s.tmp_4.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "z"); + } else { + s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["z"]; + if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["z"]; } + else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } + else { s.callLocIdx = 1027; 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_toBoolDecr(s.tmp_0); - if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___302738); - s.v___302743 = (r0); - s.tmp_1 = lambda_3_mk(s); - s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___302743; - s.tmp_1.arg1 = s.i___302738; - setupLambda(s.tmp_1, s.tmp_1.argL); - s.callLocIdx = 7; s.pc = 6; return s.tmp_1; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_6 = if_id_1_mk(s); + s.tmp_6.arg0 = s.arg0; + if (!s.tmp_6.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_6.arg0, "id"); + } else { + s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; + if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } + else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } + else { s.callLocIdx = 1028; s.pc = 5; return s.tmp_6; } + } + case 5: + r0 = s.retval; + s.tmp_5 = r0; + s.tmp_8 = if_id_1_mk(s); + s.tmp_8.arg0 = s.arg1; + if (!s.tmp_8.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_8.arg0, "id"); + } else { + s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["id"]; + if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["id"]; } + else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } + else { s.callLocIdx = 1029; s.pc = 6; return s.tmp_8; } + } case 6: r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 2; continue; } - r0 = s.v___302743; - { step = 5; continue; } + s.tmp_7 = r0; + r0 = (s.tmp_5 - s.tmp_7); case 2: - case 3: - r0 = (s.i___302738 + 1); - s.i___302738 = (r0); - { step = 1; continue; } - case 4: - r0 = undefined; - case 5: + // jmp value (already in r0) + s.tmp_9 = r0; + r0 = s.tmp_9; return leave(s, r0) default: oops() } } } -helpers_arrayFind__P289516.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"]} +scene_Scene_render_inline__P60596.info = {"start":8532,"length":52,"line":237,"column":37,"endLine":237,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} -function helpers_arrayFind__P289516_mk(s) { +function scene_Scene_render_inline__P60596_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFind__P289516, depth: s.depth + 1, + parent: s, fn: scene_Scene_render_inline__P60596, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___302735: undefined, - i___302738: undefined, - v___302743: 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, } } @@ -20827,7 +20733,7 @@ function helpers_arrayFind__P289516_mk(s) { -function scene_getRemainingPath__P295904(s) { +function scene_Background_draw__P49364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20837,149 +20743,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currentLocation___296165 = undefined; - s.i___296169 = undefined; - s.pathTile___296175 = undefined; - s.remainingPath___296190 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_locationOfSprite__P295927_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 195; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - s.currentLocation___296165 = (r0); - r0 = pxsim_pxtrt.mklocRef(); - s.i___296169 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.i___296169, 0); - case 1: - r0 = pxsim_pxtrt_ldlocRef(s.i___296169); - s.tmp_1 = r0; - r0 = pxsim_Array__length(s.arg1); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Background__C49355_VT)) failedCast(r0); + r0 = s.arg0.fields["color"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.fill(globals.screen___48784, s.tmp_0); + r0 = s.arg0.fields["_image"]; 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___296169); - s.tmp_4 = r0; - r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); - s.pathTile___296175 = (r0); - s.tmp_2 = tiles_Location_x__P291723_mk(s); - s.tmp_2.arg0 = s.currentLocation___296165; - s.callLocIdx = 196; s.pc = 11; return s.tmp_2; - case 11: - r0 = s.retval; + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_image"]; s.tmp_1 = r0; - s.tmp_4 = tiles_Location_x__P291723_mk(s); - s.tmp_4.arg0 = s.pathTile___296175; - s.callLocIdx = 197; 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; } + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___48784, s.tmp_1, 0, 0); + case 1: case 2: - s.tmp_6 = tiles_Location_y__P291724_mk(s); - s.tmp_6.arg0 = s.currentLocation___296165; - s.callLocIdx = 198; s.pc = 13; return s.tmp_6; - case 13: - r0 = s.retval; - s.tmp_5 = r0; - s.tmp_8 = tiles_Location_y__P291724_mk(s); - s.tmp_8.arg0 = s.pathTile___296175; - s.callLocIdx = 199; s.pc = 14; return s.tmp_8; - case 14: + r0 = s.arg0.fields["_layers"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkAction(1, scene_Background_draw_inline__P60651); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); + s.tmp_2 = helpers_arrayForEach__P47064_mk(s); + r0 = s.arg0.fields["_layers"]; + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = s.tmp_1; + s.callLocIdx = 862; s.pc = 5; return s.tmp_2; + case 5: 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___296169); - 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__P296197); - s.tmp_12 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_12, 0, s.i___296169); - s.tmp_13 = helpers_arrayFilter__P289515_mk(s); - s.tmp_13.arg0 = s.arg1; - s.tmp_13.arg1 = s.tmp_12; - s.callLocIdx = 200; 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___296190 = (s.tmp_14); - r0 = s.remainingPath___296190; - { step = 9; continue; } - case 6: - case 7: - s.tmp_0 = r0 = s.i___296169; - r0 = pxsim_pxtrt_ldlocRef(s.i___296169); - 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: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_getRemainingPath__P295904.info = {"start":10853,"length":497,"line":296,"column":4,"endLine":306,"endColumn":5,"fileName":"path-following.ts","functionName":"getRemainingPath","argumentNames":["sprite","path"]} +scene_Background_draw__P49364.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_getRemainingPath__P295904_mk(s) { +function scene_Background_draw__P49364_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_getRemainingPath__P295904, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P49364, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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___296165: undefined, - i___296169: undefined, - pathTile___296175: undefined, - remainingPath___296190: undefined, arg0: undefined, - arg1: undefined, } } -function inline__P296197(s) { +function scene_Background_draw_inline__P60651(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20989,36 +20808,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.ox___60653 = undefined; + s.oy___60664 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg1; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + r0 = s.caps[0].fields["camera"]; + r0 = r0.fields["drawOffsetX"]; s.tmp_1 = r0; - r0 = (s.tmp_0 >= s.tmp_1); + r0 = s.arg0.fields["distance"]; + s.tmp_3 = r0; + r0 = (1 + s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + s.ox___60653 = (r0); + r0 = s.caps[0].fields["camera"]; + r0 = r0.fields["drawOffsetY"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["distance"]; + s.tmp_3 = r0; + r0 = (1 + s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 / s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim.Math_.round(s.tmp_0); + s.oy___60664 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P49373_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.ox___60653; + s.tmp_0.arg2 = s.oy___60664; + s.callLocIdx = 861; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P296197.info = {"start":11244,"length":16,"line":301,"column":67,"endLine":301,"endColumn":83,"fileName":"path-following.ts","functionName":"inline","argumentNames":["_","j"]} +scene_Background_draw_inline__P60651.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__P296197_mk(s) { +function scene_Background_draw_inline__P60651_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P296197, depth: s.depth + 1, + parent: s, fn: scene_Background_draw_inline__P60651, depth: s.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___60653: undefined, + oy___60664: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_isOnWall__P291768(s) { +function scene_BackgroundLayer_draw__P49373(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21028,136 +20877,251 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___302773 = undefined; - s.left___302776 = undefined; - s.right___302782 = undefined; - s.top___302788 = undefined; - s.bottom___302794 = undefined; - s.col___302800 = undefined; - s.row___302806 = undefined; + s.w___60682 = undefined; + s.h___60685 = undefined; + s.pw___60688 = undefined; + s.ph___60692 = undefined; + s.rx___60701 = undefined; + s.ry___60704 = undefined; + s.y___60773 = undefined; + s.py___60774 = undefined; + s.dh___60783 = undefined; + s.x___60791 = undefined; + s.rxl___60792 = undefined; + s.px___60798 = undefined; + s.dw___60802 = 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__C291747_VT)) failedCast(r0); - r0 = s.arg1.fields["_hitbox"]; - s.hbox___302773 = (r0); - s.tmp_1 = game_Hitbox_left__P291385_mk(s); - s.tmp_1.arg0 = s.hbox___302773; - s.callLocIdx = 843; s.pc = 8; return s.tmp_1; - case 8: - r0 = s.retval; + if (!checkSubtype(r0, scene_BackgroundLayer__C49365_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___48784); + s.w___60682 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___48784); + s.h___60685 = (r0); + r0 = s.arg0.fields["img"]; s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; + r0 = pxsim_ImageMethods.width(s.tmp_0); + s.pw___60688 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); + s.ph___60692 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___60688); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_numops_toBoolDecr(s.ph___60692); s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.left___302776 = (r0); - s.tmp_1 = game_Hitbox_right__P291387_mk(s); - s.tmp_1.arg0 = s.hbox___302773; - s.callLocIdx = 846; s.pc = 9; return s.tmp_1; - case 9: - r0 = s.retval; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 3; continue; } + { step = 23; continue; } + case 3: + case 4: + r0 = (0 - s.arg1); + s.rx___60701 = (r0); + r0 = (0 - s.arg2); + s.ry___60704 = (r0); + r0 = s.arg0.fields["alignX"]; s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); + if (r0) { step = 5; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 6; continue; } + r0 = s.tmp_0; + { step = 7; continue; } + case 5: + s.tmp_1 = r0 = s.rx___60701; + r0 = (s.w___60682 + s.pw___60688); s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.right___302782 = (r0); - s.tmp_1 = game_Hitbox_top__P291386_mk(s); - s.tmp_1.arg0 = s.hbox___302773; - s.callLocIdx = 849; s.pc = 10; return s.tmp_1; - case 10: - r0 = s.retval; + r0 = (s.tmp_1 - s.tmp_2); + s.rx___60701 = (r0); + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.rx___60701; + r0 = (s.w___60682 + s.pw___60688); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.rx___60701 = (r0); + case 7: + r0 = s.arg0.fields["alignY"]; s.tmp_0 = r0; - r0 = s.arg0.fields["_scale"]; + r0 = pxsim_pxtcore.switch_eq(4, s.tmp_0); + if (r0) { step = 8; continue; } + r0 = pxsim_pxtcore.switch_eq(5, s.tmp_0); + if (r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } + case 8: + s.tmp_1 = r0 = s.ry___60704; + r0 = (s.h___60685 + s.ph___60692); s.tmp_2 = r0; - r0 = (s.tmp_2 + 8); - s.tmp_3 = r0; - r0 = (s.tmp_0 >> s.tmp_3); - s.top___302788 = (r0); - s.tmp_1 = game_Hitbox_bottom__P291388_mk(s); - s.tmp_1.arg0 = s.hbox___302773; - s.callLocIdx = 852; s.pc = 11; return s.tmp_1; + r0 = (s.tmp_1 - s.tmp_2); + s.ry___60704 = (r0); + { step = 10; continue; } + case 9: + s.tmp_0 = r0 = s.ry___60704; + r0 = (s.h___60685 + s.ph___60692); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 - s.tmp_1); + s.ry___60704 = (r0); + case 10: + r0 = (s.rx___60701 % s.w___60682); + s.rx___60701 = (r0); + r0 = (s.rx___60701 < 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + r0 = (s.rx___60701 + s.w___60682); + s.rx___60701 = (r0); case 11: - r0 = s.retval; + case 12: + r0 = (s.ry___60704 % s.h___60685); + s.ry___60704 = (r0); + r0 = (s.ry___60704 < 0); 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___302794 = (r0); - s.col___302800 = (s.left___302776); - case 1: - r0 = (s.col___302800 <= s.right___302782); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (s.ry___60704 + s.h___60685); + s.ry___60704 = (r0); + case 13: + case 14: + r0 = pxsim.Math_.floor(s.rx___60701); + s.rx___60701 = (r0); + r0 = pxsim.Math_.floor(s.ry___60704); + s.ry___60704 = (r0); + s.y___60773 = (0); + s.py___60774 = (0); + case 15: + r0 = (s.y___60773 < s.h___60685); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.row___302806 = (s.top___302788); - case 2: - r0 = (s.row___302806 <= s.bottom___302794); + if (!r0) { step = 22; continue; } + r0 = (s.y___60773 % s.ph___60692); + s.py___60774 = (r0); + s.tmp_0 = Math_min__P47086_mk(s); + r0 = (s.ph___60692 - s.py___60774); + s.tmp_0.arg0 = r0; + r0 = (s.h___60685 - s.ry___60704); + s.tmp_0.arg1 = r0; + s.callLocIdx = 864; s.pc = 24; return s.tmp_0; + case 24: + r0 = s.retval; + s.dh___60783 = (r0); + s.x___60791 = (0); + s.rxl___60792 = (s.rx___60701); + case 16: + r0 = (s.x___60791 < s.w___60682); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap_isObstacle__P291766_mk(s); - s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___302800; - s.tmp_2.arg2 = s.row___302806; - s.callLocIdx = 855; s.pc = 12; return s.tmp_2; - case 12: + if (!r0) { step = 19; continue; } + r0 = (s.x___60791 % s.pw___60688); + s.px___60798 = (r0); + s.tmp_0 = Math_min__P47086_mk(s); + r0 = (s.pw___60688 - s.px___60798); + s.tmp_0.arg0 = r0; + r0 = (s.w___60682 - s.rxl___60792); + s.tmp_0.arg1 = r0; + s.callLocIdx = 865; s.pc = 25; return s.tmp_0; + case 25: r0 = s.retval; + s.dw___60802 = (r0); + r0 = s.arg0.fields["img"]; + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.drawImage(globals.screen___48784, s.tmp_0, s.rxl___60792, s.ry___60704); + r0 = (s.rxl___60792 + s.dw___60802); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.w___60682); + s.rxl___60792 = (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___60802; + { step = 18; continue; } + case 17: + r0 = s.w___60682; + case 18: + // jmp value (already in r0) 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___302806 + 1); - s.row___302806 = (r0); - { step = 2; continue; } - case 5: - r0 = (s.col___302800 + 1); - s.col___302800 = (r0); - { step = 1; continue; } - case 6: - r0 = false; - case 7: + r0 = (s.x___60791 + s.tmp_1); + s.x___60791 = (r0); + { step = 16; continue; } + case 19: + r0 = (s.ry___60704 + s.dh___60783); + s.tmp_0 = r0; + r0 = (s.tmp_0 % s.h___60685); + s.ry___60704 = (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___60783; + { step = 21; continue; } + case 20: + r0 = s.h___60685; + case 21: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = (s.y___60773 + s.tmp_1); + s.y___60773 = (r0); + { step = 15; continue; } + case 22: + case 23: + r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P291768.info = {"start":13062,"length":627,"line":423,"column":8,"endLine":440,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +scene_BackgroundLayer_draw__P49373.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 tiles_TileMap_isOnWall__P291768_mk(s) { +function scene_BackgroundLayer_draw__P49373_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P291768, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P49373, depth: s.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___302773: undefined, - left___302776: undefined, - right___302782: undefined, - top___302788: undefined, - bottom___302794: undefined, - col___302800: undefined, - row___302806: undefined, + w___60682: undefined, + h___60685: undefined, + pw___60688: undefined, + ph___60692: undefined, + rx___60701: undefined, + ry___60704: undefined, + y___60773: undefined, + py___60774: undefined, + dh___60783: undefined, + x___60791: undefined, + rxl___60792: undefined, + px___60798: undefined, + dw___60802: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function game_Hitbox_bottom__P291388(s) { +function scene_Camera_update__P49483(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21167,38 +21131,182 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.elapsed___60883 = undefined; + s.percentComplete___60897 = undefined; + s.damp___60904 = undefined; + s.f___60913 = undefined; + s.x___60919 = undefined; + s.y___60926 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C291378_VT)) failedCast(r0); - r0 = s.arg0.fields["height"]; + if (!checkSubtype(r0, scene_Camera__C49467_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__P49473_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_3 = Sprite_x__P49096_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 985; s.pc = 10; return s.tmp_3; + case 10: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___48784); + s.tmp_5 = r0; + r0 = (s.tmp_5 >> 1); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg1 = r0; + s.callLocIdx = 986; s.pc = 9; return s.tmp_1; + case 9: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P49475_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_2 = Sprite_y__P49098_mk(s); + r0 = s.arg0.fields["sprite"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 987; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P291386_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 223; s.pc = 1; return s.tmp_3; + r0 = pxsim_ImageMethods.height(globals.screen___48784); + s.tmp_4 = r0; + r0 = (s.tmp_4 >> 1); + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg1 = r0; + s.callLocIdx = 988; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; case 1: + case 2: + s.tmp_0 = scene_Camera_offsetX__P49473_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + r0 = s.tmp_1.fields["_offsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_0.arg1 = r0; + s.callLocIdx = 990; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.tmp_0 = scene_Camera_offsetY__P49475_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + r0 = s.tmp_1.fields["_offsetY"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_0.arg1 = r0; + s.callLocIdx = 992; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_offsetX"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = s.arg0.fields["_offsetY"]; + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); + r0 = s.arg0.fields["shakeStartTime"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim.control.millis(); + s.tmp_2 = r0; + r0 = s.arg0.fields["shakeStartTime"]; + s.tmp_3 = r0; + r0 = (s.tmp_2 - s.tmp_3); + s.elapsed___60883 = (r0); + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_1 = r0; + r0 = (s.elapsed___60883 >= s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = (s.arg0).fields["shakeStartTime"] = (undefined); + { step = 6; continue; } + case 3: + r0 = s.arg0.fields["shakeDuration"]; + s.tmp_0 = r0; + r0 = (s.elapsed___60883 / s.tmp_0); + s.percentComplete___60897 = (r0); + s.damp___60904 = (1); + r0 = (s.percentComplete___60897 >= 0.75); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + s.tmp_1 = Math_max__P47085_mk(s); + s.tmp_1.arg0 = 0; + r0 = (1 - s.percentComplete___60897); + s.tmp_1.arg1 = r0; + s.callLocIdx = 995; s.pc = 15; return s.tmp_1; + case 15: r0 = s.retval; + s.damp___60904 = (r0); + case 4: + case 5: + r0 = s.arg0.fields["shakeAmplitude"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 * s.damp___60904); + s.f___60913 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___60913); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.x___60919 = (r0); + r0 = pxsim.Math_.random(); + s.tmp_1 = r0; + r0 = (s.tmp_1 * s.f___60913); + s.tmp_0 = r0; + r0 = (s.tmp_0 >> 0); + s.y___60926 = (r0); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["drawOffsetX"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + s.x___60919); + 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_1 + s.tmp_2); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 256); - return leaveAccessor(s, r0) + r0 = (s.tmp_2 + s.y___60926); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); + case 6: + case 7: + case 8: + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_Hitbox_bottom__P291388.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__P291388.isGetter = true; +scene_Camera_update__P49483.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} -function game_Hitbox_bottom__P291388_mk(s) { +function scene_Camera_update__P49483_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P291388, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P49483, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + elapsed___60883: undefined, + percentComplete___60897: undefined, + damp___60904: undefined, + f___60913: undefined, + x___60919: undefined, + y___60926: undefined, arg0: undefined, } } @@ -21206,7 +21314,7 @@ function game_Hitbox_bottom__P291388_mk(s) { -function game_Hitbox_right__P291387(s) { +function scene_Camera_offsetY__P49475(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21216,46 +21324,87 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___60945 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C291378_VT)) failedCast(r0); - r0 = s.arg0.fields["width"]; - s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P291385_mk(s); - s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 220; s.pc = 1; return s.tmp_3; - case 1: + if (!checkSubtype(r0, scene_Camera__C49467_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 982; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_1 + s.tmp_2); + s.scene___60945 = (r0); + r0 = s.scene___60945.fields["tileMap"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - 256); - return leaveAccessor(s, r0) + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.scene___60945.fields["tileMap"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["_map"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 3; continue; } + s.tmp_7 = r0 = s.arg0; + s.tmp_9 = tiles_TileMap_offsetY__P49428_mk(s); + r0 = s.scene___60945.fields["tileMap"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.arg1; + s.callLocIdx = 984; s.pc = 6; return s.tmp_9; + case 6: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetY"] = (s.tmp_8); + { step = 4; continue; } + case 3: + r0 = (s.arg0).fields["_offsetY"] = (s.arg1); + case 4: + r0 = undefined; + return leave(s, r0) default: oops() } } } -game_Hitbox_right__P291387.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__P291387.isGetter = true; +scene_Camera_offsetY__P49475.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 game_Hitbox_right__P291387_mk(s) { +function scene_Camera_offsetY__P49475_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P291387, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P49475, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + scene___60945: undefined, arg0: undefined, + arg1: undefined, } } -function game_Hitbox_top__P291386(s) { +function tiles_TileMap_offsetY__P49428(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21267,37 +21416,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, game_Hitbox__C291378_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) + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P47082_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P47085_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P49430_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 894; s.pc = 3; return s.tmp_3; + case 3: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.height(globals.screen___48784); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 895; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 896; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + return leave(s, r0) default: oops() } } } -game_Hitbox_top__P291386.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__P291386.isGetter = true; +tiles_TileMap_offsetY__P49428.info = {"start":9594,"length":123,"line":329,"column":8,"endLine":331,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} -function game_Hitbox_top__P291386_mk(s) { +function tiles_TileMap_offsetY__P49428_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P291386, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P49428, depth: s.depth + 1, pc: 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 game_Hitbox_left__P291385(s) { +function tiles_TileMap_areaHeight__P49430(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21312,26 +21481,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C291378_VT)) failedCast(r0); - r0 = s.arg0.fields["ox"]; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - r0 = s.arg0.fields["parent"]; - r0 = r0.fields["_x"]; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_map"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_height"]; s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - return leaveAccessor(s, r0) + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 << s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + return leave(s, r0) default: oops() } } } -game_Hitbox_left__P291385.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__P291385.isGetter = true; +tiles_TileMap_areaHeight__P49430.info = {"start":9828,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function game_Hitbox_left__P291385_mk(s) { +function tiles_TileMap_areaHeight__P49430_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P291385, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P49430, depth: s.depth + 1, pc: 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, } } @@ -21339,7 +21522,7 @@ function game_Hitbox_left__P291385_mk(s) { -function Fx_toIntShifted__P289560(s) { +function scene_Camera_offsetY__P49474(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21351,34 +21534,30 @@ 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_1 = r0; - r0 = (s.tmp_0 >> s.tmp_1); - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C49467_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetY"]; + return leaveAccessor(s, r0) default: oops() } } } -Fx_toIntShifted__P289560.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +scene_Camera_offsetY__P49474.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__P49474.isGetter = true; -function Fx_toIntShifted__P289560_mk(s) { +function scene_Camera_offsetY__P49474_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P289560, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P49474, 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 tiles_placeOnTile__P291778(s) { +function scene_Camera_offsetX__P49473(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21388,65 +21567,66 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.scene___60983 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C49467_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 979; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.scene___60983 = (r0); + r0 = s.scene___60983.fields["tileMap"]; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } + if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.arg1); + r0 = s.scene___60983.fields["tileMap"]; + s.tmp_1 = r0; + r0 = s.tmp_1.fields["_map"]; + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); case 2: // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 3; continue; } - r0 = s.tmp_3; + s.tmp_7 = r0 = s.arg0; + s.tmp_9 = tiles_TileMap_offsetX__P49427_mk(s); + r0 = s.scene___60983.fields["tileMap"]; + s.tmp_9.arg0 = r0; + s.tmp_9.arg1 = s.arg1; + s.callLocIdx = 981; s.pc = 6; return s.tmp_9; + case 6: + r0 = s.retval; + s.tmp_8 = r0; + r0 = (s.tmp_7).fields["_offsetX"] = (s.tmp_8); { step = 4; continue; } case 3: - s.tmp_6 = game_currentScene__P291955_mk(s); - s.callLocIdx = 865; s.pc = 8; return s.tmp_6; - case 8: - r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); + r0 = (s.arg0).fields["_offsetX"] = (s.arg1); case 4: - // jmp value (already in r0) - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - if (!r0) { step = 5; continue; } - { step = 7; continue; } - case 5: - case 6: - s.tmp_8 = tiles_Location_place__P291726_mk(s); - s.tmp_8.arg0 = s.arg1; - s.tmp_8.arg1 = s.arg0; - s.callLocIdx = 866; s.pc = 9; return s.tmp_8; - case 9: - r0 = s.retval; - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_placeOnTile__P291778.info = {"start":18232,"length":168,"line":566,"column":4,"endLine":569,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"placeOnTile","argumentNames":["sprite","loc"]} +scene_Camera_offsetX__P49473.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 tiles_placeOnTile__P291778_mk(s) { +function scene_Camera_offsetX__P49473_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_placeOnTile__P291778, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P49473, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21457,6 +21637,8 @@ function tiles_placeOnTile__P291778_mk(s) { tmp_6: undefined, tmp_7: undefined, tmp_8: undefined, + tmp_9: undefined, + scene___60983: undefined, arg0: undefined, arg1: undefined, } } @@ -21465,7 +21647,7 @@ function tiles_placeOnTile__P291778_mk(s) { -function sprites_create__P291393(s) { +function tiles_TileMap_offsetX__P49427(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21475,78 +21657,50 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___300104 = undefined; - s.sprite___300107 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 232; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___300104 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C291442_VT); - s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P291479_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___300107 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P291497_mk(s); - s.tmp_0.arg0 = s.sprite___300107; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 234; s.pc = 3; return s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P47082_mk(s); + s.tmp_0.arg0 = 0; + s.tmp_1 = Math_max__P47085_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P49429_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 891; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.tmp_0 = PhysicsEngine__C291587_v0_2_mk(s); - r0 = s.scene___300104.fields["physicsEngine"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___300107; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C291587_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__P300122); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, inline__P300128); - s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___300107); - s.tmp_2 = helpers_arrayForEach__P289514_mk(s); - s.tmp_3 = helpers_arrayFilter__P289515_mk(s); - r0 = s.scene___300104.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: + s.tmp_2 = r0; + r0 = pxsim_ImageMethods.width(globals.screen___48784); + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = 0; + s.callLocIdx = 892; s.pc = 2; return s.tmp_1; + case 2: 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: + s.tmp_0.arg1 = r0; + s.tmp_0.arg2 = s.arg1; + s.callLocIdx = 893; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - r0 = s.sprite___300107; return leave(s, r0) default: oops() } } } -sprites_create__P291393.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +tiles_TileMap_offsetX__P49427.info = {"start":9463,"length":121,"line":325,"column":8,"endLine":327,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} -function sprites_create__P291393_mk(s) { +function tiles_TileMap_offsetX__P49427_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P291393, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P49427, depth: s.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___300104: undefined, - sprite___300107: undefined, + tmp_4: undefined, arg0: undefined, arg1: undefined, } } @@ -21555,7 +21709,7 @@ function sprites_create__P291393_mk(s) { -function inline__P300122(s) { +function tiles_TileMap_areaWidth__P49429(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21569,20 +21723,41 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0.fields["kind"]; + r0 = s.arg0; + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; - r0 = (s.tmp_0 == s.caps[0]); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["_map"]; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_width"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_scale"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 << s.tmp_3); + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; return leave(s, r0) default: oops() } } } -inline__P300122.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +tiles_TileMap_areaWidth__P49429.info = {"start":9727,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} -function inline__P300122_mk(s) { +function tiles_TileMap_areaWidth__P49429_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300122, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P49429, depth: s.depth + 1, pc: 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, } } @@ -21590,7 +21765,7 @@ function inline__P300122_mk(s) { -function inline__P300128(s) { +function scene_Camera_offsetX__P49472(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21604,32 +21779,20 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = if_handler_2_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - if (!s.tmp_0.arg0.vtable.iface) { - setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 2); - s.callLocIdx = 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) + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C49467_VT)) failedCast(r0); + r0 = s.arg0.fields["_offsetX"]; + return leaveAccessor(s, r0) default: oops() } } } -inline__P300128.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +scene_Camera_offsetX__P49472.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__P49472.isGetter = true; -function inline__P300128_mk(s) { +function scene_Camera_offsetX__P49472_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300128, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P49472, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -21637,7 +21800,7 @@ function inline__P300128_mk(s) { -function PhysicsEngine_addSprite__P291589(s) { +function PhysicsEngine_move__P49251(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21653,17 +21816,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C291587_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C49245_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_addSprite__P291589.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +PhysicsEngine_move__P49251.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_addSprite__P291589_mk(s) { +function PhysicsEngine_move__P49251_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P291589, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P49251, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -21673,7 +21836,7 @@ function PhysicsEngine_addSprite__P291589_mk(s) { -function Sprite_setKind__P291497(s) { +function PhysicsEngine_draw__P49250(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21683,153 +21846,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___300146 = undefined; - s.overlapMap___300175 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - r0 = (s.arg1 == undefined); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg1); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 15; continue; } - case 3: - case 4: - s.tmp_3 = game_currentScene__P291955_mk(s); - s.callLocIdx = 303; s.pc = 16; return s.tmp_3; - case 16: - r0 = s.retval; - r0 = r0.fields["spritesByKind"]; - s.spritesByKind___300146 = (r0); - r0 = s.arg0.fields["_kind"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 5; continue; } - r0 = s.tmp_0; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["_kind"]; - s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___300146, 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__P291546_mk(s); - r0 = s.arg0.fields["_kind"]; - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___300146, s.tmp_5); - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.arg0; - s.callLocIdx = 304; s.pc = 17; return s.tmp_4; - case 17: - r0 = s.retval; - case 7: - case 8: - r0 = (s.arg1 >= 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 11; continue; } - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___300146, s.arg1); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C291539_VT); - s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P291541_mk(s); - s.tmp_5.arg0 = s.tmp_4; - s.callLocIdx = 305; s.pc = 18; return s.tmp_5; - case 18: - r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___300146, s.arg1, s.tmp_4); - case 9: - case 10: - s.tmp_0 = sprites_SpriteSet_add__P291544_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___300146, s.arg1); - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 306; s.pc = 19; return s.tmp_0; - case 19: - r0 = s.retval; - case 11: - case 12: - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 307; s.pc = 20; return s.tmp_0; - case 20: - r0 = s.retval; - r0 = r0.fields["overlapMap"]; - s.overlapMap___300175 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___300175, s.arg1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.overlapMap___300175; - s.tmp_4 = r0 = s.arg1; - r0 = pxsim_Array__mk(); - s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_3, s.tmp_4, s.tmp_5); - case 13: - case 14: - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___300175, s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); - r0 = (s.arg0).fields["_kind"] = (s.arg1); - case 15: + if (!checkSubtype(r0, PhysicsEngine__C49245_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setKind__P291497.info = {"start":11155,"length":663,"line":404,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +PhysicsEngine_draw__P49250.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function Sprite_setKind__P291497_mk(s) { +function PhysicsEngine_draw__P49250_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P291497, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P49250, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - spritesByKind___300146: undefined, - overlapMap___300175: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_add__P291544(s) { +function controller___update__P48910(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21839,65 +21880,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.dtms___61220 = 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__C291539_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.arg0 * 1000); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = false; - { step = 5; continue; } - case 1: + r0 = (s.tmp_0 | 0); + s.dtms___61220 = (r0); + r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P61227); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___61220); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); + s.tmp_2 = controller_players__P48878_mk(s); + s.callLocIdx = 191; s.pc = 2; return s.tmp_2; case 2: - r0 = s.arg0.fields["_sprites"]; - s.tmp_4 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_4, s.arg1, undefined); - s.tmp_3 = r0; - r0 = (s.tmp_3 > -1); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - r0 = false; - { step = 5; continue; } - case 3: - case 4: - r0 = s.arg0.fields["_sprites"]; - s.tmp_5 = r0; - r0 = pxsim_Array__push(s.tmp_5, s.arg1); - r0 = true; - case 5: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 193; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P291544.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +controller___update__P48910.info = {"start":11751,"length":137,"line":361,"column":4,"endLine":364,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function sprites_SpriteSet_add__P291544_mk(s) { +function controller___update__P48910_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P291544, depth: s.depth + 1, + parent: s, fn: controller___update__P48910, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, + dtms___61220: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_contains__P291547(s) { +function controller___update_inline__P61227(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21909,37 +21936,34 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C291539_VT)) failedCast(r0); - r0 = s.arg0.fields["_sprites"]; - s.tmp_1 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); - s.tmp_0 = r0; - r0 = (s.tmp_0 > -1); + s.tmp_0 = controller_Controller___update__P48908_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 192; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P291547.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +controller___update_inline__P61227.info = {"start":11853,"length":27,"line":363,"column":26,"endLine":363,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function sprites_SpriteSet_contains__P291547_mk(s) { +function controller___update_inline__P61227_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P291547, depth: s.depth + 1, + parent: s, fn: controller___update_inline__P61227, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function sprites_SpriteSet_constructor__P291541(s) { +function controller_Controller___update__P48908(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21951,35 +21975,55 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C291539_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_Array__mk(); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_sprites"] = (s.tmp_1); + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + r0 = pxsim_pxtrt.mklocRef(); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); + s.arg1 = (s.tmp_0); + s.tmp_1 = r0 = s.arg1; + r0 = pxsim_pxtrt_ldlocRef(s.arg1); + s.tmp_3 = r0; + r0 = (s.tmp_3 | 0); + s.tmp_2 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); + r0 = pxsim_pxtcore_mkAction(1, controller_Controller___update_inline__P61240); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); + r0 = s.arg0.fields["buttons"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 190; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P291541.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +controller_Controller___update__P48908.info = {"start":11229,"length":124,"line":343,"column":8,"endLine":346,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} -function sprites_SpriteSet_constructor__P291541_mk(s) { +function controller_Controller___update__P48908_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P291541, depth: s.depth + 1, + parent: s, fn: controller_Controller___update__P48908, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_constructor__P291479(s) { +function controller_Controller___update_inline__P61240(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21991,137 +22035,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P291279_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; - s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___291221); - 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___291221); - 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__P291456_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__P291458_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__P291460_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__P291462_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__P291464_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__P291466_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__P291482_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__P291497_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); + s.tmp_0 = controller_Button___update__P48948_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 189; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_constructor__P291479.info = {"start":5461,"length":618,"line":208,"column":4,"endLine":228,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +controller_Controller___update_inline__P61240.info = {"start":11316,"length":25,"line":345,"column":33,"endLine":345,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} -function Sprite_constructor__P291479_mk(s) { +function controller_Controller___update_inline__P61240_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P291479, depth: s.depth + 1, + parent: s, fn: controller_Controller___update_inline__P61240, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_fy__P291466(s) { +function controller_Button___update__P48948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22131,42 +22073,115 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.delay___61256 = undefined; + s.interval___61265 = undefined; + s.count___61278 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P289534_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 256; s.pc = 1; return s.tmp_3; + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 11; continue; } case 1: - r0 = s.retval; + case 2: + s.tmp_3 = r0 = s.arg0; + r0 = s.tmp_3.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 + s.arg1); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["_pressedElasped"] = (s.tmp_4); + r0 = s.arg0.fields["repeatDelay"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = globals.defaultRepeatDelay___51159; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["repeatDelay"]; + case 4: + // jmp value (already in r0) s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); + s.delay___61256 = (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___51161; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["repeatInterval"]; + case 6: + // jmp value (already in r0) + s.tmp_2 = r0; + s.interval___61265 = (s.tmp_2); + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.delay___61256); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + { step = 11; continue; } + case 7: + case 8: + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 - s.delay___61256); s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); + r0 = (s.tmp_4 - s.interval___61265); + s.tmp_3 = r0; + r0 = (s.tmp_3 / s.interval___61265); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.count___61278 = (r0); + r0 = s.arg0.fields["_repeatCount"]; s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fy"] = (s.tmp_1); + r0 = (s.count___61278 != 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__P51148_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 207; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + r0 = (s.arg0).fields["_repeatCount"] = (s.count___61278); + case 9: + case 10: + case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_fy__P291466.info = {"start":4340,"length":64,"line":157,"column":4,"endLine":159,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +controller_Button___update__P48948.info = {"start":7291,"length":704,"line":217,"column":8,"endLine":234,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"__update","argumentNames":["this","dtms"]} -function Sprite_fy__P291466_mk(s) { +function controller_Button___update__P48948_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P291466, depth: s.depth + 1, + parent: s, fn: controller_Button___update__P48948, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, + tmp_5: undefined, + delay___61256: undefined, + interval___61265: undefined, + count___61278: undefined, arg0: undefined, arg1: undefined, } } @@ -22175,7 +22190,7 @@ function Sprite_fy__P291466_mk(s) { -function Sprite_fy__P291465(s) { +function controller_Button_raiseButtonRepeat__P51148(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22190,20 +22205,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - r0 = s.arg0.fields["_fy"]; + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___51157); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim.control.raiseEvent(2054, s.tmp_0); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2055, s.tmp_0); + case 2: + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_fy__P291465.info = {"start":4178,"length":60,"line":152,"column":4,"endLine":154,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this"]} -Sprite_fy__P291465.isGetter = true; +controller_Button_raiseButtonRepeat__P51148.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} -function Sprite_fy__P291465_mk(s) { +function controller_Button_raiseButtonRepeat__P51148_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P291465, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonRepeat__P51148, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22213,7 +22236,7 @@ function Sprite_fy__P291465_mk(s) { -function Sprite_fx__P291464(s) { +function controller_players__P48878(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22223,51 +22246,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P289534_mk(s); - s.tmp_3.arg0 = 0; - s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 253; s.pc = 1; return s.tmp_3; + s.tmp_0 = controller__player1__P48877_mk(s); + s.callLocIdx = 142; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_2 = r0; - r0 = (s.tmp_2 * 256); - s.tmp_4 = r0; - r0 = (s.tmp_4 | 0); - s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_fx"] = (s.tmp_1); - r0 = undefined; + s.tmp_0 = helpers_arrayFilter__P47065_mk(s); + s.tmp_0.arg0 = globals._players___51140; + s.tmp_0.arg1 = controller_players_inline__P61214; + s.callLocIdx = 143; s.pc = 2; return s.tmp_0; + case 2: + r0 = s.retval; return leave(s, r0) default: oops() } } } -Sprite_fx__P291464.info = {"start":3997,"length":64,"line":147,"column":4,"endLine":149,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +controller_players__P48878.info = {"start":748,"length":144,"line":29,"column":4,"endLine":32,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function Sprite_fx__P291464_mk(s) { +function controller_players__P48878_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P291464, depth: s.depth + 1, + parent: s, fn: controller_players__P48878, depth: s.depth + 1, pc: 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_fx__P291463(s) { +function controller_players_inline__P61214(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22281,23 +22287,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - r0 = s.arg0.fields["_fx"]; + r0 = pxsim_numops_toBoolDecr(s.arg0); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = pxsim_Boolean__bang(s.tmp_0); + return leave(s, r0) default: oops() } } } -Sprite_fx__P291463.info = {"start":3835,"length":60,"line":142,"column":4,"endLine":144,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this"]} -Sprite_fx__P291463.isGetter = true; +controller_players_inline__P61214.info = {"start":870,"length":14,"line":31,"column":31,"endLine":31,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function Sprite_fx__P291463_mk(s) { +function controller_players_inline__P61214_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P291463, depth: s.depth + 1, + parent: s, fn: controller_players_inline__P61214, 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, } } @@ -22305,7 +22314,7 @@ function Sprite_fx__P291463_mk(s) { -function Sprite_ay__P291462(s) { +function controller__player1__P48877(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22315,42 +22324,71 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = pxsim_numops_toBoolDecr(globals._players___51140); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ay"] = (s.tmp_1); - r0 = undefined; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__getAt(globals._players___51140, 0); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_Boolean__bang(s.tmp_2); + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C48883_VT); + s.tmp_5 = r0; + r0 = pxsim_Array__mk(); + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, globals.left___48864); + r0 = pxsim_Array__push(s.tmp_6, globals.up___48865); + r0 = pxsim_Array__push(s.tmp_6, globals.right___48866); + r0 = pxsim_Array__push(s.tmp_6, globals.down___48867); + r0 = pxsim_Array__push(s.tmp_6, globals.A___48862); + r0 = pxsim_Array__push(s.tmp_6, globals.B___48863); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___48868); + s.tmp_7 = controller_Controller_constructor__P48887_mk(s); + s.tmp_7.arg0 = s.tmp_5; + s.tmp_7.arg1 = 1; + s.tmp_7.arg2 = s.tmp_6; + s.callLocIdx = 141; s.pc = 5; return s.tmp_7; + case 5: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_Array__getAt(globals._players___51140, 0); return leave(s, r0) default: oops() } } } -Sprite_ay__P291462.info = {"start":3666,"length":51,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +controller__player1__P48877.info = {"start":484,"length":258,"line":23,"column":4,"endLine":27,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} -function Sprite_ay__P291462_mk(s) { +function controller__player1__P48877_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P291462, depth: s.depth + 1, + parent: s, fn: controller__player1__P48877, 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, } } -function Sprite_ay__P291461(s) { +function controller_Controller_constructor__P48887(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22360,35 +22398,120 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.leftId___57492 = undefined; + s.i___57500 = undefined; + s.i___57518 = 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__C291442_VT)) failedCast(r0); - r0 = s.arg0.fields["_ay"]; + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim.control.allocateNotifyEvent(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_id"] = (s.tmp_1); + r0 = (s.arg0).fields["_connected"] = (false); + r0 = (s.arg0).fields["playerIndex"] = (s.arg1); + r0 = (s.arg0).fields["analog"] = (false); + r0 = pxsim_numops_toBoolDecr(s.arg2); + if (!r0) { step = 1; continue; } + r0 = (s.arg0).fields["buttons"] = (s.arg2); + { step = 4; continue; } + case 1: + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buttons"] = (s.tmp_1); + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 - 1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 7); s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + r0 = (1 + s.tmp_0); + s.leftId___57492 = (r0); + s.i___57500 = (0); + case 2: + r0 = (s.i___57500 < 7); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C48934_VT); + s.tmp_1 = r0; + s.tmp_2 = controller_Button_constructor__P48940_mk(s); + s.tmp_2.arg0 = s.tmp_1; + r0 = (s.leftId___57492 + s.i___57500); + s.tmp_2.arg1 = r0; + s.tmp_2.arg2 = -1; + s.callLocIdx = 147; 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___57500 + 1); + s.i___57500 = (r0); + { step = 2; continue; } + case 3: + case 4: + s.i___57518 = (0); + case 5: + s.tmp_1 = r0 = s.i___57518; + r0 = s.arg0.fields["buttons"]; + s.tmp_3 = r0; + r0 = pxsim_Array__length(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + r0 = s.arg0.fields["buttons"]; + s.tmp_5 = r0; + r0 = pxsim_Array__getAt(s.tmp_5, s.i___57518); + s.tmp_4 = r0; + r0 = (s.tmp_4).fields["_owner"] = (s.arg0); + r0 = (s.i___57518 + 1); + s.i___57518 = (r0); + { step = 5; continue; } + case 6: + s.tmp_0 = controller_addController__P51141_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 148; s.pc = 8; return s.tmp_0; + case 8: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ay__P291461.info = {"start":3500,"length":60,"line":131,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this"]} -Sprite_ay__P291461.isGetter = true; +controller_Controller_constructor__P48887.info = {"start":1555,"length":696,"line":58,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} -function Sprite_ay__P291461_mk(s) { +function controller_Controller_constructor__P48887_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P291461, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P48887, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + leftId___57492: undefined, + i___57500: undefined, + i___57518: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function Sprite_ax__P291460(s) { +function controller_addController__P51141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22400,40 +22523,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 * 256); + r0 = pxsim_numops_toBoolDecr(globals._players___51140); + s.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___51140 = (r0); + case 1: + case 2: + s.tmp_0 = r0 = globals._players___51140; + r0 = s.arg0.fields["playerIndex"]; s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + r0 = (s.tmp_2 - 1); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_ax"] = (s.tmp_1); + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_1, s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_ax__P291460.info = {"start":3327,"length":51,"line":125,"column":4,"endLine":127,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +controller_addController__P51141.info = {"start":321,"length":157,"line":16,"column":4,"endLine":21,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function Sprite_ax__P291460_mk(s) { +function controller_addController__P51141_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P291460, depth: s.depth + 1, + parent: s, fn: controller_addController__P51141, 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_ax__P291459(s) { +function controller__moveSprites__P48882(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22443,35 +22572,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - r0 = s.arg0.fields["_ax"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 / 256); - return leaveAccessor(s, r0) + s.tmp_0 = helpers_arrayForEach__P47064_mk(s); + s.tmp_1 = controller_players__P48878_mk(s); + s.callLocIdx = 144; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = controller__moveSprites_inline__P61025; + s.callLocIdx = 146; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_ax__P291459.info = {"start":3161,"length":60,"line":120,"column":4,"endLine":122,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this"]} -Sprite_ax__P291459.isGetter = true; +controller__moveSprites__P48882.info = {"start":1108,"length":180,"line":43,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} -function Sprite_ax__P291459_mk(s) { +function controller__moveSprites__P48882_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P291459, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P48882, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - arg0: undefined, + tmp_1: undefined, } } -function game_onUpdateInterval__P291967(s) { +function controller__moveSprites_inline__P61025(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22481,79 +22611,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___300326 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P293421_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 950; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + s.tmp_0 = controller_Controller___preUpdate__P48907_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 145; s.pc = 1; return s.tmp_0; case 1: - r0 = (s.arg0 < 0); - case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } - { step = 5; continue; } - case 3: - case 4: - r0 = pxsim_pxtrt.mklocRef(); - s.timer___300326 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___300326, 0); - r0 = pxsim_pxtcore_mkAction(3, inline__P300330); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___300326); - 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__P289801_mk(s); - s.tmp_2 = game_eventContext__P291958_mk(s); - s.callLocIdx = 951; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = 19; - s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 955; s.pc = 7; return s.tmp_1; - case 7: r0 = s.retval; - case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P291967.info = {"start":7929,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +controller__moveSprites_inline__P61025.info = {"start":1254,"length":26,"line":46,"column":26,"endLine":46,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function game_onUpdateInterval__P291967_mk(s) { +function controller__moveSprites_inline__P61025_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P291967, depth: s.depth + 1, + parent: s, fn: controller__moveSprites_inline__P61025, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - tmp_1: undefined, - tmp_2: undefined, - timer___300326: undefined, arg0: undefined, - arg1: undefined, } } -function inline__P300330(s) { +function controller_Controller___preUpdate__P48907(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22563,81 +22649,326 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___300331 = undefined; - s.tmp_1 = game_currentScene__P291955_mk(s); - s.callLocIdx = 952; s.pc = 3; return s.tmp_1; - case 3: + s.deadSprites___61032 = undefined; + s.svx___61033 = undefined; + s.svy___61034 = undefined; + s.svxInCricle___61069 = undefined; + s.svyInCircle___61071 = undefined; + s.sq___61073 = undefined; + s.scale___61088 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P48888_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 164; s.pc = 18; return s.tmp_3; + case 18: r0 = s.retval; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["_millis"]; - s.time___300331 = (r0); - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___300331); + 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 = r0 = s.caps[0]; - r0 = (s.time___300331 + s.caps[1]); + { step = 17; continue; } + case 1: + case 2: + r0 = pxsim_pxtrt.mklocRef(); + s.deadSprites___61032 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___61032, false); + r0 = pxsim_pxtrt.mklocRef(); + s.svx___61033 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___61033, 0); + r0 = pxsim_pxtrt.mklocRef(); + s.svy___61034 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___61034, 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___61033; + s.tmp_5 = controller_Button_pressureLevel__P48946_mk(s); + s.tmp_6 = controller_Controller_right__P48893_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 165; s.pc = 20; return s.tmp_6; + case 20: + r0 = s.retval; + s.tmp_5.arg0 = r0; + s.callLocIdx = 166; s.pc = 19; return s.tmp_5; + case 19: + r0 = s.retval; + s.tmp_4 = r0; + s.tmp_8 = controller_Button_pressureLevel__P48946_mk(s); + s.tmp_9 = controller_Controller_left__P48892_mk(s); + s.tmp_9.arg0 = s.arg0; + s.callLocIdx = 167; s.pc = 22; return s.tmp_9; + case 22: + r0 = s.retval; + s.tmp_8.arg0 = r0; + s.callLocIdx = 168; s.pc = 21; return s.tmp_8; + case 21: + r0 = s.retval; + s.tmp_7 = r0; + r0 = (s.tmp_4 - s.tmp_7); s.tmp_3 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_2, s.tmp_3); - s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = s.caps[2]; - setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 954; s.pc = 4; return s.tmp_0; + 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___61034; + s.tmp_4 = controller_Button_pressureLevel__P48946_mk(s); + s.tmp_5 = controller_Controller_down__P48895_mk(s); + s.tmp_5.arg0 = s.arg0; + s.callLocIdx = 169; s.pc = 24; return s.tmp_5; + case 24: + r0 = s.retval; + s.tmp_4.arg0 = r0; + s.callLocIdx = 170; s.pc = 23; return s.tmp_4; + case 23: + r0 = s.retval; + s.tmp_3 = r0; + s.tmp_7 = controller_Button_pressureLevel__P48946_mk(s); + s.tmp_8 = controller_Controller_up__P48894_mk(s); + s.tmp_8.arg0 = s.arg0; + s.callLocIdx = 171; s.pc = 26; return s.tmp_8; + case 26: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.callLocIdx = 172; s.pc = 25; return s.tmp_7; + case 25: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_3 - s.tmp_6); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + { step = 12; continue; } + case 3: + s.tmp_1 = controller_Button__C48934_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P48893_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 173; s.pc = 28; return s.tmp_2; + case 28: + r0 = s.retval; + s.tmp_1.arg0 = r0; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C48934_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 27; return s.tmp_1; + case 27: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 4; continue; } + r0 = 256; + { step = 5; continue; } case 4: + r0 = 0; + case 5: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_5 = controller_Button__C48934_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P48892_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 174; s.pc = 30; return s.tmp_6; + case 30: + r0 = s.retval; + s.tmp_5.arg0 = r0; + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C48934_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; + s.pc = 29; return s.tmp_5; + case 29: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 6; continue; } + r0 = 256; + { step = 7; continue; } + case 6: + r0 = 0; + case 7: + // jmp value (already in r0) + s.tmp_7 = r0; + s.tmp_8 = r0 = s.svx___61033; + 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__C48934_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P48895_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 175; s.pc = 32; return s.tmp_2; + case 32: + r0 = s.retval; + s.tmp_1.arg0 = r0; + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C48934_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.isPressed; + s.pc = 31; return s.tmp_1; + case 31: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + r0 = 256; + { step = 9; continue; } + case 8: + r0 = 0; + case 9: + // jmp value (already in r0) + s.tmp_3 = r0; + s.tmp_5 = controller_Button__C48934_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P48894_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 176; s.pc = 34; return s.tmp_6; + case 34: + r0 = s.retval; + s.tmp_5.arg0 = r0; + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C48934_VT)) failedCast(s.tmp_5.arg0); + s.tmp_5.fn = s.tmp_5.arg0.vtable.methods.isPressed; + s.pc = 33; return s.tmp_5; + case 33: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 10; continue; } + r0 = 256; + { step = 11; continue; } + case 10: + r0 = 0; + case 11: + // jmp value (already in r0) + s.tmp_7 = r0; + s.tmp_8 = r0 = s.svy___61034; + 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___61069 = (r0); + s.tmp_0 = r0 = s.svxInCricle___61069; + r0 = pxsim_pxtrt_ldlocRef(s.svx___61033); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt.mklocRef(); + s.svyInCircle___61071 = (r0); + s.tmp_0 = r0 = s.svyInCircle___61071; + r0 = pxsim_pxtrt_ldlocRef(s.svy___61034); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + r0 = pxsim_pxtrt_ldlocRef(s.svx___61033); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svx___61033); + s.tmp_2 = r0; + r0 = (s.tmp_1 * s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___61034); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_ldlocRef(s.svy___61034); + s.tmp_5 = r0; + r0 = (s.tmp_4 * s.tmp_5); + s.tmp_3 = r0; + r0 = (s.tmp_0 + s.tmp_3); + s.sq___61073 = (r0); + r0 = (s.sq___61073 > 65536); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = (65536 / s.sq___61073); + s.tmp_1 = r0; + r0 = pxsim.Math_.sqrt(s.tmp_1); + s.scale___61088 = (r0); + s.tmp_0 = r0 = s.svxInCricle___61069; + s.tmp_3 = r0 = s.scale___61088; + r0 = pxsim_pxtrt_ldlocRef(s.svx___61033); + 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___61071; + s.tmp_3 = r0 = s.scale___61088; + r0 = pxsim_pxtrt_ldlocRef(s.svy___61034); + s.tmp_4 = r0; + r0 = (s.tmp_3 * s.tmp_4); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); + case 13: + case 14: + r0 = pxsim_pxtcore_mkAction(5, controller_Controller___preUpdate_inline__P61106); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___61032); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___61033); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___61034); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___61069); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___61071); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P48888_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 177; s.pc = 36; return s.tmp_2; + case 36: + r0 = s.retval; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 185; s.pc = 35; return s.tmp_1; + case 35: + r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___61032); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 15; continue; } + s.tmp_1 = controller_Controller__controlledSprites__P48889_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = helpers_arrayFilter__P47065_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P48888_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 186; s.pc = 39; return s.tmp_3; + case 39: r0 = s.retval; - case 1: - case 2: + s.tmp_2.arg0 = r0; + s.tmp_2.arg1 = controller_Controller___preUpdate_inline__P61163; + s.callLocIdx = 187; s.pc = 38; return s.tmp_2; + case 38: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.callLocIdx = 188; s.pc = 37; return s.tmp_1; + case 37: + r0 = s.retval; + case 15: + case 16: + case 17: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P300330.info = {"start":8159,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +controller_Controller___preUpdate__P48907.info = {"start":8684,"length":2535,"line":277,"column":8,"endLine":341,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function inline__P300330_mk(s) { +function controller_Controller___preUpdate__P48907_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P300330, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P48907, depth: s.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___300331: undefined, -} } - - - - - -function scene_Scene_millis__P291866(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C291842_VT)) failedCast(r0); - r0 = s.arg0.fields["_millis"]; - return leave(s, r0) - default: oops() -} } } -scene_Scene_millis__P291866.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__P291866_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_millis__P291866, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + deadSprites___61032: undefined, + svx___61033: undefined, + svy___61034: undefined, + svxInCricle___61069: undefined, + svyInCircle___61071: undefined, + sq___61073: undefined, + scale___61088: undefined, arg0: undefined, } } @@ -22645,7 +22976,7 @@ function scene_Scene_millis__P291866_mk(s) { -function scene_aStar__P292972(s) { +function controller_Controller___preUpdate_inline__P61106(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22655,95 +22986,156 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___295086 = undefined; + s.s___61109 = undefined; + s.vx___61110 = undefined; + s.vy___61111 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 60; s.pc = 10; return s.tmp_0; - case 10: + s.tmp_0 = if_s_1_mk(s); + s.tmp_1 = r0 = s.arg0; + s.tmp_0.arg0 = r0; + if (!s.tmp_0.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "s"); + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["s"]; + if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["s"]; } + else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } + else { s.callLocIdx = 178; s.pc = 22; return s.tmp_0; } + } + case 22: r0 = s.retval; - r0 = r0.fields["tileMap"]; - s.tm___295086 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tm___295086); + s.s___61109 = (r0); + s.tmp_2 = if_vx_1_mk(s); + s.tmp_2.arg0 = s.tmp_1; + if (!s.tmp_2.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "vx"); + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["vx"]; + if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["vx"]; } + else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } + else { s.callLocIdx = 179; s.pc = 23; return s.tmp_2; } + } + case 23: + r0 = s.retval; + s.vx___61110 = (r0); + s.tmp_3 = if_vy_1_mk(s); + s.tmp_3.arg0 = s.tmp_1; + if (!s.tmp_3.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "vy"); + } else { + s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["vy"]; + if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["vy"]; } + else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } + else { s.callLocIdx = 180; s.pc = 24; return s.tmp_3; } + } + case 24: + r0 = s.retval; + s.vy___61111 = (r0); + r0 = s.s___61109.fields["flags"]; s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); + r0 = (s.tmp_1 & 2); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } + r0 = pxsim_pxtrt_stlocRef(s.caps[0], true); + { step = 21; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); case 2: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBool(s.tmp_3); + r0 = s.arg0.fields["_inputLastFrame"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + r0 = pxsim_numops_toBoolDecr(s.vx___61110); if (!r0) { step = 3; continue; } - r0 = s.tmp_3; - { step = 4; continue; } + r0 = (s.s___61109).fields["_vx"] = (0); case 3: - r0 = pxsim_numops_toBoolDecr(s.arg1); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); case 4: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBool(s.tmp_5); + r0 = pxsim_numops_toBoolDecr(s.vy___61111); if (!r0) { step = 5; continue; } - r0 = s.tmp_5; - { step = 6; continue; } + r0 = (s.s___61109).fields["_vy"] = (0); case 5: - s.tmp_8 = scene_isWalkable__P295102_mk(s); - s.tmp_8.arg0 = s.arg1; - s.tmp_8.arg1 = s.arg2; - s.tmp_8.arg2 = s.tm___295086; - s.callLocIdx = 61; s.pc = 11; return s.tmp_8; - case 11: - r0 = s.retval; - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - s.tmp_6 = r0; - r0 = pxsim_Boolean__bang(s.tmp_6); case 6: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_9); - if (!r0) { step = 7; continue; } - r0 = undefined; - { step = 9; continue; } case 7: case 8: - r0 = pxsim_pxtcore_mkAction(1, inline__P295111); - s.tmp_10 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_10, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, inline__P295117); - s.tmp_11 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_11, 0, s.arg1); - s.tmp_12 = scene_generalAStar__P292974_mk(s); - s.tmp_12.arg0 = s.tm___295086; - s.tmp_12.arg1 = s.arg0; - s.tmp_12.arg2 = s.arg2; - s.tmp_12.arg3 = s.tmp_10; - s.tmp_12.arg4 = s.tmp_11; - s.callLocIdx = 67; s.pc = 12; return s.tmp_12; - case 12: - r0 = s.retval; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = s.tmp_0; + { step = 10; continue; } case 9: + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + case 10: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 19; continue; } + s.tmp_2 = r0 = s.vx___61110; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 11; continue; } + r0 = s.tmp_2; + { step = 12; continue; } + case 11: + r0 = s.vy___61111; + 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___61109; + r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); + s.tmp_6 = r0; + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___61110); + s.tmp_5 = r0; + r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); + s.tmp_0 = r0 = s.s___61109; + r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___61111); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + { step = 18; continue; } + case 13: + r0 = pxsim_numops_toBoolDecr(s.vx___61110); + if (!r0) { step = 14; continue; } + s.tmp_0 = r0 = s.s___61109; + r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___61110); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); + { step = 17; continue; } + case 14: + r0 = pxsim_numops_toBoolDecr(s.vy___61111); + if (!r0) { step = 15; continue; } + s.tmp_0 = r0 = s.s___61109; + r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); + s.tmp_2 = r0; + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___61111); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); + case 15: + case 16: + case 17: + case 18: + r0 = (s.arg0).fields["_inputLastFrame"] = (true); + { step = 20; continue; } + case 19: + r0 = (s.arg0).fields["_inputLastFrame"] = (false); + case 20: + case 21: + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_aStar__P292972.info = {"start":992,"length":403,"line":32,"column":4,"endLine":40,"endColumn":5,"fileName":"a-star.ts","functionName":"aStar","argumentNames":["start","end","onTilesOf"]} +controller_Controller___preUpdate_inline__P61106.info = {"start":9867,"length":1171,"line":308,"column":44,"endLine":336,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function scene_aStar__P292972_mk(s) { +function controller_Controller___preUpdate_inline__P61106_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_aStar__P292972, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P61106, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22752,53 +23144,9 @@ function scene_aStar__P292972_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, - tm___295086: undefined, - arg0: undefined, - arg1: undefined, - arg2: undefined, -} } - - - - - -function inline__P295111(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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_tileLocationHeuristic__P295114_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 62; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) - default: oops() -} } } -inline__P295111.info = {"start":1302,"length":34,"line":38,"column":12,"endLine":38,"endColumn":46,"fileName":"a-star.ts","functionName":"inline","argumentNames":["t"]} - -function inline__P295111_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P295111, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + s___61109: undefined, + vx___61110: undefined, + vy___61111: undefined, arg0: undefined, } } @@ -22806,7 +23154,7 @@ function inline__P295111_mk(s) { -function inline__P295117(s) { +function controller_Controller___preUpdate_inline__P61163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22820,62 +23168,27 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_2 = tiles_Location_x__P291723_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 63; s.pc = 3; return s.tmp_2; - case 3: - r0 = s.retval; + r0 = s.arg0.fields["s"]; + r0 = r0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 2); s.tmp_1 = r0; - s.tmp_4 = tiles_Location_x__P291723_mk(s); - s.tmp_4.arg0 = s.caps[0]; - s.callLocIdx = 64; s.pc = 4; return s.tmp_4; - case 4: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_1 === s.tmp_3); + r0 = pxsim_numops_toBoolDecr(s.tmp_1); s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_6 = tiles_Location_y__P291724_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 65; s.pc = 5; return s.tmp_6; - case 5: - r0 = s.retval; - s.tmp_5 = r0; - s.tmp_8 = tiles_Location_y__P291724_mk(s); - s.tmp_8.arg0 = s.caps[0]; - s.callLocIdx = 66; s.pc = 6; return s.tmp_8; - case 6: - r0 = s.retval; - s.tmp_7 = r0; - r0 = (s.tmp_5 === s.tmp_7); - case 2: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = s.tmp_9; + r0 = pxsim_Boolean__bang(s.tmp_0); return leave(s, r0) default: oops() } } } -inline__P295117.info = {"start":1351,"length":35,"line":39,"column":12,"endLine":39,"endColumn":47,"fileName":"a-star.ts","functionName":"inline","argumentNames":["l"]} +controller_Controller___preUpdate_inline__P61163.info = {"start":11165,"length":42,"line":340,"column":28,"endLine":340,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} -function inline__P295117_mk(s) { +function controller_Controller___preUpdate_inline__P61163_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P295117, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P61163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, } } @@ -22883,7 +23196,7 @@ function inline__P295117_mk(s) { -function scene_tileLocationHeuristic__P295114(s) { +function controller_Button_pressureLevel__P48946(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22893,75 +23206,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.startCol___295543 = undefined; - s.startRow___295547 = undefined; - s.endCol___295551 = undefined; - s.endRow___295555 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_locationCol__P295226_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 104; s.pc = 1; return s.tmp_0; - case 1: + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C48934_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__C48934_v0_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C48934_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 6; return s.tmp_3; + case 6: r0 = s.retval; - s.startCol___295543 = (r0); - s.tmp_0 = scene_locationRow__P295221_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 105; s.pc = 2; return s.tmp_0; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + r0 = 512; + { step = 2; continue; } + case 1: + r0 = 0; case 2: - r0 = s.retval; - s.startRow___295547 = (r0); - s.tmp_0 = scene_locationCol__P295226_mk(s); - s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 106; s.pc = 3; return s.tmp_0; + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 5; continue; } + { step = 4; continue; } case 3: - r0 = s.retval; - s.endCol___295551 = (r0); - s.tmp_0 = scene_locationRow__P295221_mk(s); - s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 107; s.pc = 4; return s.tmp_0; + r0 = s.arg0.fields["id"]; + s.tmp_5 = r0; + r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); + { step = 5; continue; } case 4: - r0 = s.retval; - s.endRow___295555 = (r0); - r0 = (s.startCol___295543 - s.endCol___295551); - s.tmp_1 = r0; - r0 = pxsim.Math_.pow(s.tmp_1, 2); - s.tmp_0 = r0; - r0 = (s.startRow___295547 - s.endRow___295555); - s.tmp_3 = r0; - r0 = pxsim.Math_.pow(s.tmp_3, 2); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); + r0 = undefined; + case 5: return leave(s, r0) default: oops() } } } -scene_tileLocationHeuristic__P295114.info = {"start":7234,"length":350,"line":206,"column":4,"endLine":214,"endColumn":5,"fileName":"a-star.ts","functionName":"tileLocationHeuristic","argumentNames":["tile","target"]} +controller_Button_pressureLevel__P48946.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} -function scene_tileLocationHeuristic__P295114_mk(s) { +function controller_Button_pressureLevel__P48946_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_tileLocationHeuristic__P295114, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P48946, depth: s.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___295543: undefined, - startRow___295547: undefined, - endCol___295551: undefined, - endRow___295555: undefined, + tmp_4: undefined, + tmp_5: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_getRandomTileByType__P291781(s) { +function controller_Button_isPressed__P48945(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22971,79 +23279,23 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___302088 = undefined; - s.index___302098 = undefined; - s.sample___302104 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 867; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.scene___302088 = (r0); - r0 = pxsim_numops_toBoolDecr(s.arg0); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.scene___302088.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 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 3; continue; } - r0 = undefined; - { step = 5; continue; } - case 3: - case 4: - s.tmp_5 = tiles_TileMap_getImageType__P291762_mk(s); - r0 = s.scene___302088.fields["tileMap"]; - s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.arg0; - s.callLocIdx = 868; s.pc = 7; return s.tmp_5; - case 7: - r0 = s.retval; - s.index___302098 = (r0); - s.tmp_0 = tiles_TileMap_sampleTilesByType__P291765_mk(s); - r0 = s.scene___302088.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___302098; - s.tmp_0.arg2 = 1; - s.callLocIdx = 869; s.pc = 8; return s.tmp_0; - case 8: - r0 = s.retval; - s.sample___302104 = (r0); - r0 = pxsim_Array__getAt(s.sample___302104, 0); - case 5: + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; return leave(s, r0) default: oops() } } } -tiles_getRandomTileByType__P291781.info = {"start":19819,"length":324,"line":608,"column":4,"endLine":615,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getRandomTileByType","argumentNames":["tile"]} +controller_Button_isPressed__P48945.info = {"start":6303,"length":57,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"isPressed","argumentNames":["this"]} -function tiles_getRandomTileByType__P291781_mk(s) { +function controller_Button_isPressed__P48945_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getRandomTileByType__P291781, depth: s.depth + 1, + parent: s, fn: controller_Button_isPressed__P48945, depth: s.depth + 1, pc: 0, retval: undefined, 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___302088: undefined, - index___302098: undefined, - sample___302104: undefined, arg0: undefined, } } @@ -23051,7 +23303,7 @@ function tiles_getRandomTileByType__P291781_mk(s) { -function tiles_TileMap_sampleTilesByType__P291765(s) { +function controller_Controller_down__P48895(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23061,188 +23313,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.count___302124 = undefined; - s.reservoir___302125 = undefined; - s.col___302127 = undefined; - s.row___302134 = undefined; - s.currTile___302141 = undefined; - s.potentialIndex___302160 = 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__C291747_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMap_isInvalidIndex__P293359_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 806; s.pc = 18; return s.tmp_1; - case 18: - r0 = s.retval; - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = s.arg0.fields["_map"]; - s.tmp_7 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_7); - s.tmp_6 = r0; - r0 = pxsim_Boolean__bang(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_Boolean__bang(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_Boolean__bang(s.tmp_2); - case 2: - // jmp value (already in r0) - s.tmp_8 = r0; - r0 = pxsim_numops_toBool(s.tmp_8); - if (!r0) { step = 3; continue; } - r0 = s.tmp_8; - { step = 4; continue; } - case 3: - r0 = (s.arg2 <= 0); - case 4: - // jmp value (already in r0) - s.tmp_9 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_9); - if (!r0) { step = 5; continue; } - r0 = pxsim_Array__mk(); - { step = 17; continue; } - case 5: - case 6: - s.count___302124 = (0); - r0 = pxsim_Array__mk(); - s.reservoir___302125 = (r0); - s.col___302127 = (0); - case 7: - s.tmp_1 = r0 = s.col___302127; - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_width"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 16; continue; } - s.row___302134 = (0); - case 8: - s.tmp_1 = r0 = s.row___302134; - r0 = s.arg0.fields["_map"]; - s.tmp_3 = r0; - r0 = s.tmp_3.fields["_height"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 15; continue; } - s.tmp_4 = tiles_TileMapData_getTile__P291740_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.col___302127; - s.tmp_4.arg2 = s.row___302134; - s.callLocIdx = 810; s.pc = 19; return s.tmp_4; - case 19: - r0 = s.retval; - s.currTile___302141 = (r0); - r0 = (s.currTile___302141 === s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 13; continue; } - r0 = (s.count___302124 < s.arg2); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C291719_VT); - s.tmp_2 = r0; - s.tmp_3 = tiles_Location_constructor__P291722_mk(s); - s.tmp_3.arg0 = s.tmp_2; - s.tmp_3.arg1 = s.col___302127; - s.tmp_3.arg2 = s.row___302134; - s.tmp_3.arg3 = s.arg0; - s.callLocIdx = 811; s.pc = 20; return s.tmp_3; - case 20: - r0 = s.retval; - r0 = pxsim_Array__push(s.reservoir___302125, s.tmp_2); - { step = 12; continue; } - case 9: - r0 = pxsim.Math_.randomRange(0, s.count___302124); - s.potentialIndex___302160 = (r0); - r0 = (s.potentialIndex___302160 < s.arg2); + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C291719_VT); + r0 = (4 - 1); s.tmp_1 = r0; - s.tmp_2 = tiles_Location_constructor__P291722_mk(s); - s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = s.col___302127; - s.tmp_2.arg2 = s.row___302134; - s.tmp_2.arg3 = s.arg0; - s.callLocIdx = 812; s.pc = 21; return s.tmp_2; - case 21: - r0 = s.retval; - r0 = pxsim_Array_.setAt(s.reservoir___302125, s.potentialIndex___302160, s.tmp_1); - case 10: - case 11: - case 12: - r0 = (s.count___302124 + 1); - s.count___302124 = (r0); - case 13: - case 14: - r0 = (s.row___302134 + 1); - s.row___302134 = (r0); - { step = 8; continue; } - case 15: - r0 = (s.col___302127 + 1); - s.col___302127 = (r0); - { step = 7; continue; } - case 16: - r0 = s.reservoir___302125; - case 17: - return leave(s, r0) + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_sampleTilesByType__P291765.info = {"start":8960,"length":1101,"line":317,"column":8,"endLine":341,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"sampleTilesByType","argumentNames":["this","index","maxCount"]} +controller_Controller_down__P48895.info = {"start":3234,"length":77,"line":121,"column":8,"endLine":123,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"down","argumentNames":["this"]} +controller_Controller_down__P48895.isGetter = true; -function tiles_TileMap_sampleTilesByType__P291765_mk(s) { +function controller_Controller_down__P48895_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_sampleTilesByType__P291765, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P48895, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: 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, - count___302124: undefined, - reservoir___302125: undefined, - col___302127: undefined, - row___302134: undefined, - currTile___302141: undefined, - potentialIndex___302160: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function tiles_TileMap_isInvalidIndex__P293359(s) { +function controller_Controller_button__P51142(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23258,28 +23360,21 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - r0 = (s.arg1 < 0); + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = (s.arg1 > 255); - case 2: - // jmp value (already in r0) + r0 = (s.arg1 - 1); s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leave(s, r0) default: oops() } } } -tiles_TileMap_isInvalidIndex__P293359.info = {"start":10071,"length":106,"line":343,"column":8,"endLine":345,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isInvalidIndex","argumentNames":["this","index"]} +controller_Controller_button__P51142.info = {"start":5274,"length":105,"line":184,"column":8,"endLine":186,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} -function tiles_TileMap_isInvalidIndex__P293359_mk(s) { +function controller_Controller_button__P51142_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isInvalidIndex__P293359, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P51142, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23291,7 +23386,7 @@ function tiles_TileMap_isInvalidIndex__P293359_mk(s) { -function tiles_TileMap_getImageType__P291762(s) { +function controller_Controller_up__P48894(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23301,92 +23396,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tileset___303243 = undefined; - s.i___303248 = undefined; - s.newIndex___303262 = 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__C291747_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_0 = r0; - r0 = s.tmp_0.fields["tileset"]; - s.tileset___303243 = (r0); - s.i___303248 = (0); - case 1: - s.tmp_1 = r0 = s.i___303248; - r0 = pxsim_Array__length(s.tileset___303243); - 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___303243, s.i___303248); - 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___303248; - { step = 7; continue; } - case 2: - case 3: - r0 = (s.i___303248 + 1); - s.i___303248 = (r0); - { step = 1; continue; } - case 4: - r0 = pxsim_Array__length(s.tileset___303243); - s.newIndex___303262 = (r0); - s.tmp_3 = tiles_TileMap_isInvalidIndex__P293359_mk(s); - s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.newIndex___303262; - s.callLocIdx = 799; s.pc = 8; return s.tmp_3; - case 8: - r0 = s.retval; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } - r0 = pxsim_Array__push(s.tileset___303243, s.arg1); - r0 = s.newIndex___303262; - { step = 7; continue; } - case 5: - case 6: - r0 = -1; - case 7: - return leave(s, r0) + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (2 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_getImageType__P291762.info = {"start":7714,"length":482,"line":282,"column":8,"endLine":295,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getImageType","argumentNames":["this","im"]} +controller_Controller_up__P48894.info = {"start":3082,"length":73,"line":113,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"up","argumentNames":["this"]} +controller_Controller_up__P48894.isGetter = true; -function tiles_TileMap_getImageType__P291762_mk(s) { +function controller_Controller_up__P48894_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getImageType__P291762, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P48894, depth: s.depth + 1, pc: 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___303243: undefined, - i___303248: undefined, - newIndex___303262: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMapData_getTileset__P291742(s) { +function controller_Controller_right__P48893(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23401,18 +23442,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C291734_VT)) failedCast(r0); - r0 = s.arg0.fields["tileset"]; - return leave(s, r0) + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (3 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_getTileset__P291742.info = {"start":4532,"length":57,"line":168,"column":8,"endLine":170,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileset","argumentNames":["this"]} +controller_Controller_right__P48893.info = {"start":2926,"length":79,"line":105,"column":8,"endLine":107,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"right","argumentNames":["this"]} +controller_Controller_right__P48893.isGetter = true; -function tiles_TileMapData_getTileset__P291742_mk(s) { +function controller_Controller_right__P48893_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileset__P291742, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P48893, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -23420,7 +23468,7 @@ function tiles_TileMapData_getTileset__P291742_mk(s) { -function helpers_getTilemapByName__P292283(s) { +function controller_Controller_left__P48892(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23434,23 +23482,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers__getFactoryInstance__P292281_mk(s); - s.tmp_0.arg0 = "tilemap"; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1309; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; + s.tmp_0 = r0; + r0 = (1 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -helpers_getTilemapByName__P292283.info = {"start":2439,"length":107,"line":75,"column":4,"endLine":77,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"getTilemapByName","argumentNames":["name"]} +controller_Controller_left__P48892.info = {"start":2769,"length":77,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"left","argumentNames":["this"]} +controller_Controller_left__P48892.isGetter = true; -function helpers_getTilemapByName__P292283_mk(s) { +function controller_Controller_left__P48892_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_getTilemapByName__P292283, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P48892, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -23458,7 +23509,7 @@ function helpers_getTilemapByName__P292283_mk(s) { -function helpers__getFactoryInstance__P292281(s) { +function controller_Controller__controlledSprites__P48889(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23468,97 +23519,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___302252 = undefined; - s.unnamed22640___U1 = undefined; - s.unnamed22641___U2 = undefined; - s.data___302259 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.factories___293896); - if (!r0) { step = 7; continue; } - s.factory___302252 = (undefined); - s.unnamed22640___U1 = (globals.factories___293896); - s.unnamed22641___U2 = (0); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 150; s.pc = 1; return s.tmp_1; case 1: - s.tmp_0 = r0 = s.unnamed22641___U2; - r0 = pxsim_Array__length(s.unnamed22640___U1); - s.tmp_1 = r0; - r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed22640___U1, s.unnamed22641___U2); - s.factory___302252 = (r0); - s.tmp_4 = if_kind_1_mk(s); - s.tmp_4.arg0 = s.factory___302252; - if (!s.tmp_4.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "kind"); - } else { - s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["kind"]; - if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["kind"]; } - else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1307; s.pc = 10; return s.tmp_4; } - } - case 10: r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_3 === s.arg0); + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 4; continue; } - s.tmp_5 = if_factory_2_mk(s); - s.tmp_5.arg0 = s.factory___302252; - s.tmp_5.arg1 = s.arg1; - if (!s.tmp_5.arg0.vtable.iface) { - setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "factory"), 2); - s.callLocIdx = 1308; s.pc = 11; return s.tmp_5; - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["factory"]; - if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["factory"], 2); s.callLocIdx = 1308; s.pc = 11; return s.tmp_5; } - else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 1308; s.pc = 11; return s.tmp_5;; } - else { s.callLocIdx = 1308; s.pc = 11; return s.tmp_5; } - } - case 11: - r0 = s.retval; - s.data___302259 = (r0); - r0 = pxsim_numops_toBoolDecr(s.data___302259); - if (!r0) { step = 2; continue; } - r0 = s.data___302259; - { step = 9; continue; } - case 2: - case 3: - case 4: - case 5: - r0 = (s.unnamed22641___U2 + 1); - s.unnamed22641___U2 = (r0); - { step = 1; continue; } - case 6: - s.unnamed22640___U1 = (undefined); - case 7: - case 8: - r0 = null; - case 9: + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -helpers__getFactoryInstance__P292281.info = {"start":1897,"length":348,"line":58,"column":4,"endLine":68,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_getFactoryInstance","argumentNames":["kind","name"]} +controller_Controller__controlledSprites__P48889.info = {"start":2403,"length":134,"line":81,"column":8,"endLine":83,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} -function helpers__getFactoryInstance__P292281_mk(s) { +function controller_Controller__controlledSprites__P48889_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers__getFactoryInstance__P292281, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P48889, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - factory___302252: undefined, - unnamed22640___U1: undefined, - unnamed22641___U2: undefined, - data___302259: undefined, arg0: undefined, arg1: undefined, } } @@ -23567,7 +23557,7 @@ function helpers__getFactoryInstance__P292281_mk(s) { -function tilemap__P292270(s) { +function controller_Controller__controlledSprites__P48888(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23579,29 +23569,41 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = null; - return leave(s, r0) + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 149; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + r0 = r0.fields["controlledSprites"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["playerIndex"]; + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); + return leaveAccessor(s, r0) default: oops() } } } -tilemap__P292270.info = {"start":58,"length":78,"line":2,"column":0,"endLine":2,"endColumn":78,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"tilemap","argumentNames":["lits","args"]} +controller_Controller__controlledSprites__P48888.info = {"start":2261,"length":132,"line":77,"column":8,"endLine":79,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this"]} +controller_Controller__controlledSprites__P48888.isGetter = true; -function tilemap__P292270_mk(s) { +function controller_Controller__controlledSprites__P48888_mk(s) { checkStack(s.depth); return { - parent: s, fn: tilemap__P292270, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P48888, 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 tiles_setTilemap__P291771(s) { +function Fx_imul__P47116(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23613,33 +23615,29 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = scene_setTileMapLevel__P291885_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 859; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; + r0 = pxsim.Math_.imul(s.arg0, s.arg1); return leave(s, r0) default: oops() } } } -tiles_setTilemap__P291771.info = {"start":14603,"length":96,"line":468,"column":4,"endLine":470,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setTilemap","argumentNames":["tilemap"]} +Fx_imul__P47116.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 tiles_setTilemap__P291771_mk(s) { +function Fx_imul__P47116_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_setTilemap__P291771, depth: s.depth + 1, + parent: s, fn: Fx_imul__P47116, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, } } -function scene_setTileMapLevel__P291885(s) { +function power_checkDeepSleep__P48686(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23649,75 +23647,94 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___302274 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 924; s.pc = 3; return s.tmp_0; - case 3: + s.p___60425 = undefined; + s.to___60428 = undefined; + s.tmp_0 = power_init__P51053_mk(s); + s.callLocIdx = 78; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.scene___302274 = (r0); - r0 = s.scene___302274.fields["tileMap"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); + s.tmp_0 = r0 = globals._poked___51051; + r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(tiles_TileMap__C291747_VT); - s.tmp_3 = r0; - s.tmp_4 = tiles_TileMap_constructor__P291748_mk(s); - s.tmp_4.arg0 = s.tmp_3; - s.tmp_4.arg1 = 4; - s.callLocIdx = 925; s.pc = 4; return s.tmp_4; - case 4: - r0 = s.retval; - r0 = (s.scene___302274).fields["tileMap"] = (s.tmp_3); + r0 = s.tmp_0; + { step = 2; continue; } case 1: + r0 = 0; case 2: - s.tmp_0 = tiles_TileMap_setData__P291758_mk(s); - r0 = s.scene___302274.fields["tileMap"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 926; s.pc = 5; return s.tmp_0; + // jmp value (already in r0) + s.tmp_1 = r0; + s.p___60425 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___51052; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 3; continue; } + r0 = s.tmp_0; + { step = 4; continue; } + case 3: + r0 = 0; + case 4: + // jmp value (already in r0) + s.tmp_1 = r0; + s.to___60428 = (s.tmp_1); + r0 = (s.to___60428 > 0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 5; continue; } + r0 = s.tmp_0; + { step = 6; continue; } case 5: - r0 = s.retval; - s.tmp_0 = tiles_TileMap_scale__P291750_mk(s); - r0 = s.scene___302274.fields["tileMap"]; - s.tmp_0.arg0 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_0.arg1 = r0; - s.callLocIdx = 928; s.pc = 6; return s.tmp_0; + r0 = pxsim.control.millis(); + s.tmp_2 = r0; + r0 = (s.tmp_2 - s.p___60425); + s.tmp_1 = r0; + r0 = (s.tmp_1 > s.to___60428); case 6: - r0 = s.retval; + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBool(s.tmp_3); + if (r0) { step = 7; continue; } + r0 = s.tmp_3; + { step = 8; continue; } + case 7: + r0 = pxsim.control.isUSBInitialized(); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + s.tmp_4 = r0; + r0 = pxsim_Boolean__bang(s.tmp_4); + case 8: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 9; continue; } + r0 = pxsim_pxtcore.deepSleep(); + case 9: + case 10: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setTileMapLevel__P291885.info = {"start":2994,"length":260,"line":113,"column":4,"endLine":119,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setTileMapLevel","argumentNames":["map"]} +power_checkDeepSleep__P48686.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function scene_setTileMapLevel__P291885_mk(s) { +function power_checkDeepSleep__P48686_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setTileMapLevel__P291885, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P48686, depth: s.depth + 1, pc: 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___302274: undefined, - arg0: undefined, + tmp_5: undefined, + tmp_6: undefined, + p___60425: undefined, + to___60428: undefined, } } -function tiles_TileMap_setData__P291758(s) { +function power_init__P51053(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23727,34 +23744,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - r0 = (s.arg0).fields["_map"] = (s.arg1); + r0 = (globals._timeout___51052 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } + case 1: + case 2: + r0 = pxsim_pxtcore.getConfig(212, -1); + s.tmp_1 = r0; + r0 = (s.tmp_1 * 1000); + globals._timeout___51052 = (r0); + r0 = (globals._timeout___51052 > 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___51052 < 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___51052 = (300000); + case 5: + case 6: + case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_setData__P291758.info = {"start":7183,"length":66,"line":265,"column":8,"endLine":267,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"setData","argumentNames":["this","map"]} +power_init__P51053.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} -function tiles_TileMap_setData__P291758_mk(s) { +function power_init__P51053_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_setData__P291758, depth: s.depth + 1, + parent: s, fn: power_init__P51053, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, + tmp_0: undefined, + tmp_1: undefined, } } -function tiles_TileMap_scale__P291750(s) { +function power_poke__P48685(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23764,49 +23801,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_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__P291739_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 784; s.pc = 3; return s.tmp_1; - case 3: - r0 = s.retval; + s.tmp_0 = power_init__P51053_mk(s); + s.callLocIdx = 77; s.pc = 1; return s.tmp_0; case 1: - case 2: + r0 = s.retval; + r0 = pxsim.control.millis(); + globals._poked___51051 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P291750.info = {"start":6190,"length":144,"line":224,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +power_poke__P48685.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} -function tiles_TileMap_scale__P291750_mk(s) { +function power_poke__P48685_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P291750, depth: s.depth + 1, + parent: s, fn: power_poke__P48685, 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 tiles_TileMapData_scale__P291739(s) { +function control_EventContext_deltaTime__P47355(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23818,38 +23837,33 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C291734_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) + if (!checkSubtype(r0, control_EventContext__C47350_VT)) failedCast(r0); + r0 = s.arg0.fields["deltaTimeMillis"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 1000); + return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_scale__P291739.info = {"start":3885,"length":102,"line":147,"column":8,"endLine":150,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +control_EventContext_deltaTime__P47355.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__P47355.isGetter = true; -function tiles_TileMapData_scale__P291739_mk(s) { +function control_EventContext_deltaTime__P47355_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P291739, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P47355, 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 tiles_TileMap_constructor__P291748(s) { +function scene_Scene_constructor__P49548(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23862,49 +23876,115 @@ 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__C291747_VT)) failedCast(r0); - r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P291750_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 781; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, scene_Scene__C49526_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__C49261_VT); + s.tmp_0 = r0; + s.tmp_1 = ArcadePhysicsEngine_constructor__P49262_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 = 1000; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P302334); + r0 = (s.arg0).fields["physicsEngine"] = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C49467_VT); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = scene_createRenderable__P291806_mk(s); - s.tmp_1.arg0 = -1; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 783; s.pc = 2; return s.tmp_1; + s.tmp_1 = scene_Camera_constructor__P49471_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 1001; 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__C49355_VT); + s.tmp_0 = r0; + s.tmp_1 = scene_Background_constructor__P49359_mk(s); + s.tmp_1.arg0 = s.tmp_0; + r0 = s.arg0.fields["camera"]; + s.tmp_1.arg1 = r0; + s.callLocIdx = 1002; 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_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buttonEventHandlers"] = (s.tmp_1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_pxtrt.mkMap(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["_data"] = (s.tmp_1); + r0 = (s.arg0).fields["_millis"] = (0); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_constructor__P291748.info = {"start":5865,"length":250,"line":210,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +scene_Scene_constructor__P49548.info = {"start":3432,"length":836,"line":103,"column":8,"endLine":122,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","eventContext","previousScene"]} -function tiles_TileMap_constructor__P291748_mk(s) { +function scene_Scene_constructor__P49548_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P291748, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P49548, 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 inline__P302334(s) { +function scene_Camera_constructor__P49471(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23916,373 +23996,77 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P293360_mk(s); - s.tmp_0.arg0 = s.caps[0]; - s.tmp_0.arg1 = s.arg0; - s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 782; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, scene_Camera__C49467_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() } } } -inline__P302334.info = {"start":6065,"length":25,"line":216,"column":16,"endLine":216,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +scene_Camera_constructor__P49471.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} -function inline__P302334_mk(s) { +function scene_Camera_constructor__P49471_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P302334, depth: s.depth + 1, + parent: s, fn: scene_Camera_constructor__P49471, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, - arg1: undefined, } } -function tiles_TileMap_draw__P293360(s) { +function scene_Background_constructor__P49359(s) { let r0 = s.r0, 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.bitmask___302345 = undefined; - s.offsetX___302351 = undefined; - s.offsetY___302356 = undefined; - s.x0___302361 = undefined; - s.xn___302368 = undefined; - s.y0___302385 = undefined; - s.yn___302392 = undefined; - s.x___302409 = undefined; - s.y___302415 = undefined; - s.index___302421 = undefined; - s.tile___302428 = undefined; - s.x___302464 = undefined; - s.xLine___302470 = undefined; - s.y___302496 = undefined; - s.yLine___302502 = 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__C291747_VT)) failedCast(r0); - r0 = s.arg0.fields["_map"]; - s.tmp_6 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_6); - s.tmp_5 = r0; - r0 = pxsim_Boolean__bang(s.tmp_5); - s.tmp_4 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_4); - s.tmp_3 = r0; - r0 = pxsim_Boolean__bang(s.tmp_3); - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 23; continue; } - case 1: - case 2: - r0 = s.arg0.fields["_scale"]; - s.tmp_8 = r0; - r0 = (1 << s.tmp_8); - s.tmp_7 = r0; - r0 = (s.tmp_7 - 1); - s.bitmask___302345 = (r0); - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___302345); - s.offsetX___302351 = (r0); - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___302345); - s.offsetY___302356 = (r0); - s.tmp_0 = Math_max__P289534_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 816; s.pc = 24; return s.tmp_0; - case 24: - r0 = s.retval; - s.x0___302361 = (r0); - s.tmp_0 = Math_min__P289535_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_width"]; - s.tmp_0.arg0 = r0; - r0 = s.arg2.fields["drawOffsetX"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 >> s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 819; s.pc = 25; return s.tmp_0; - case 25: - r0 = s.retval; - s.xn___302368 = (r0); - s.tmp_0 = Math_max__P289534_mk(s); - s.tmp_0.arg0 = 0; - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_1 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_2 = r0; - r0 = (s.tmp_1 >> s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 821; s.pc = 26; return s.tmp_0; - case 26: - r0 = s.retval; - s.y0___302385 = (r0); - s.tmp_0 = Math_min__P289535_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1 = r0; - r0 = s.tmp_1.fields["_height"]; - s.tmp_0.arg0 = r0; - r0 = s.arg2.fields["drawOffsetY"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_5 = r0; - r0 = (s.tmp_4 + s.tmp_5); - s.tmp_3 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_6 = r0; - r0 = (s.tmp_3 >> s.tmp_6); - s.tmp_2 = r0; - r0 = (s.tmp_2 + 1); - s.tmp_0.arg1 = r0; - s.callLocIdx = 824; s.pc = 27; return s.tmp_0; - case 27: - r0 = s.retval; - s.yn___302392 = (r0); - s.x___302409 = (s.x0___302361); - case 3: - r0 = (s.x___302409 <= s.xn___302368); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.y___302415 = (s.y0___302385); - case 4: - r0 = (s.y___302415 <= s.yn___302392); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P291740_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___302409; - s.tmp_1.arg2 = s.y___302415; - s.callLocIdx = 825; s.pc = 28; return s.tmp_1; - case 28: - r0 = s.retval; - s.index___302421 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P291743_mk(s); - r0 = s.arg0.fields["_map"]; - s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___302421; - s.callLocIdx = 826; s.pc = 29; return s.tmp_0; - case 29: - r0 = s.retval; - s.tile___302428 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___302428); - if (!r0) { step = 5; continue; } - s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___302428; - r0 = (s.x___302409 - s.x0___302361); - 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___302351); - s.tmp_2 = r0; - r0 = (s.y___302415 - s.y0___302385); - 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___302356); - 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___302415 + 1); - s.y___302415 = (r0); - { step = 4; continue; } - case 7: - r0 = (s.x___302409 + 1); - s.x___302409 = (r0); - { step = 3; continue; } - case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___291951); - if (!r0) { step = 21; continue; } - s.x___302464 = (s.x0___302361); - case 9: - r0 = (s.x___302464 <= s.xn___302368); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 14; continue; } - r0 = (s.x___302464 - s.x0___302361); - 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___302351); - s.xLine___302470 = (r0); - r0 = (s.xLine___302470 >= 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___302470; - r0 = pxsim_ImageMethods.width(globals.screen___291221); - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - case 11: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P291149_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___302470; - s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___302470; - r0 = pxsim_ImageMethods.height(s.arg1); - s.tmp_4.arg4 = r0; - s.tmp_4.arg5 = 1; - s.callLocIdx = 830; s.pc = 30; return s.tmp_4; - case 30: - r0 = s.retval; - case 12: - case 13: - r0 = (s.x___302464 + 1); - s.x___302464 = (r0); - { step = 9; continue; } - case 14: - s.y___302496 = (s.y0___302385); - case 15: - r0 = (s.y___302496 <= s.yn___302392); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 20; continue; } - r0 = (s.y___302496 - s.y0___302385); - s.tmp_2 = r0; - r0 = s.arg0.fields["_scale"]; - s.tmp_3 = r0; - r0 = (s.tmp_2 << s.tmp_3); +s.pc = -1; + + +while (true) { +if (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__C49355_VT)) failedCast(r0); + r0 = (s.arg0).fields["color"] = (0); + r0 = (s.arg0).fields["camera"] = (s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.offsetY___302356); - s.yLine___302502 = (r0); - r0 = (s.yLine___302502 >= 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___302502; - r0 = pxsim_ImageMethods.height(globals.screen___291221); - s.tmp_2 = r0; - r0 = (s.tmp_1 <= s.tmp_2); - case 17: - // jmp value (already in r0) - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P291149_mk(s); - s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___302502; - r0 = pxsim_ImageMethods.width(s.arg1); - s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___302502; - s.tmp_4.arg5 = 1; - s.callLocIdx = 832; s.pc = 31; return s.tmp_4; - case 31: - r0 = s.retval; - case 18: - case 19: - r0 = (s.y___302496 + 1); - s.y___302496 = (r0); - { step = 15; continue; } - case 20: - case 21: - case 22: - case 23: + r0 = (s.tmp_0).fields["_layers"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P293360.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"]} +scene_Background_constructor__P49359.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 tiles_TileMap_draw__P293360_mk(s) { +function scene_Background_constructor__P49359_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P293360, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P49359, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - tmp_7: undefined, - tmp_8: undefined, - tmp_9: undefined, - bitmask___302345: undefined, - offsetX___302351: undefined, - offsetY___302356: undefined, - x0___302361: undefined, - xn___302368: undefined, - y0___302385: undefined, - yn___302392: undefined, - x___302409: undefined, - y___302415: undefined, - index___302421: undefined, - tile___302428: undefined, - x___302464: undefined, - xLine___302470: undefined, - y___302496: undefined, - yLine___302502: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function scene_createRenderable__P291806(s) { +function ArcadePhysicsEngine_constructor__P49262(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24292,60 +24076,70 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___302576 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C291801_VT); + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); + r0 = undefined; + s.tmp_0 = r0 = s.arg0; + r0 = pxsim_Array__mk(); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["sprites"] = (s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C49180_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; } + s.tmp_1 = sprites_SpriteMap_constructor__P49181_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 624; s.pc = 1; return s.tmp_1; case 1: - r0 = inline__P302582; + r0 = s.retval; + r0 = (s.arg0).fields["map"] = (s.tmp_0); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P49264_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 625; s.pc = 2; return s.tmp_0; case 2: - // jmp value (already in r0) - s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P291802_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 = 890; s.pc = 3; return s.tmp_3; + r0 = s.retval; + s.tmp_0 = ArcadePhysicsEngine_maxStep__P49268_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg3; + s.callLocIdx = 626; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.renderable___302576 = (s.tmp_0); - r0 = s.renderable___302576; + s.tmp_0 = ArcadePhysicsEngine_minStep__P49266_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg2; + s.callLocIdx = 627; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + r0 = undefined; return leave(s, r0) default: oops() } } } -scene_createRenderable__P291806.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"]} +ArcadePhysicsEngine_constructor__P49262.info = {"start":1601,"length":277,"line":58,"column":4,"endLine":65,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","maxVelocity","minSingleStep","maxSingleStep"]} -function scene_createRenderable__P291806_mk(s) { +function ArcadePhysicsEngine_constructor__P49262_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P291806, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P49262, depth: s.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___302576: undefined, arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function inline__P302582(s) { +function ArcadePhysicsEngine_maxStep__P49268(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24355,24 +24149,42 @@ 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, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["maxSingleStep"] = (s.tmp_1); + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P302582.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +ArcadePhysicsEngine_maxStep__P49268.info = {"start":2329,"length":67,"line":88,"column":4,"endLine":90,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} -function inline__P302582_mk(s) { +function ArcadePhysicsEngine_maxStep__P49268_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P302582, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P49268, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + arg0: undefined, + arg1: undefined, } } -function scene_Renderable_constructor__P291802(s) { +function ArcadePhysicsEngine_maxStep__P49267(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24384,44 +24196,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__C291801_VT)) failedCast(r0); - r0 = (s.arg0).fields["handler"] = (s.arg1); - r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P291279_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 887; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); + r0 = s.arg0.fields["maxSingleStep"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 + 128); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + return leaveAccessor(s, r0) default: oops() } } } -scene_Renderable_constructor__P291802.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"]} +ArcadePhysicsEngine_maxStep__P49267.info = {"start":2249,"length":74,"line":84,"column":4,"endLine":86,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this"]} +ArcadePhysicsEngine_maxStep__P49267.isGetter = true; -function scene_Renderable_constructor__P291802_mk(s) { +function ArcadePhysicsEngine_maxStep__P49267_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P291802, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P49267, 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 scene_setBackgroundColor__P291880(s) { +function Fx_toInt__P47127(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24431,32 +24235,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___302592 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 923; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - s.scene___302592 = (r0); - r0 = s.scene___302592.fields["background"]; + r0 = (s.arg0 + 128); s.tmp_0 = r0; - r0 = (s.tmp_0).fields["color"] = (s.arg0); - r0 = undefined; + r0 = (s.tmp_0 >> 8); return leave(s, r0) default: oops() } } } -scene_setBackgroundColor__P291880.info = {"start":1207,"length":140,"line":53,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundColor","argumentNames":["color"]} +Fx_toInt__P47127.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} -function scene_setBackgroundColor__P291880_mk(s) { +function Fx_toInt__P47127_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setBackgroundColor__P291880, depth: s.depth + 1, + parent: s, fn: Fx_toInt__P47127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___302592: undefined, arg0: undefined, } } @@ -24464,7 +24260,7 @@ function scene_setBackgroundColor__P291880_mk(s) { -function tiles_createTilemap__P291770(s) { +function ArcadePhysicsEngine_minStep__P49266(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24477,45 +24273,80 @@ 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__C291734_VT); - s.tmp_0 = r0; - s.tmp_1 = tiles_TileMapData_constructor__P291735_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 = 858; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = s.tmp_0; + r0 = s.arg0; + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_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() } } } -tiles_createTilemap__P291770.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"]} +ArcadePhysicsEngine_minStep__P49266.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} -function tiles_createTilemap__P291770_mk(s) { +function ArcadePhysicsEngine_minStep__P49266_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_createTilemap__P291770, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P49266, 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__P291735(s) { +function ArcadePhysicsEngine_minStep__P49265(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C49261_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__P49265.info = {"start":2096,"length":74,"line":76,"column":4,"endLine":78,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this"]} +ArcadePhysicsEngine_minStep__P49265.isGetter = true; + +function ArcadePhysicsEngine_minStep__P49265_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: ArcadePhysicsEngine_minStep__P49265, 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__P49264(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24528,55 +24359,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.arg4 = (s.lambdaArgs[4]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C291734_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__P291739_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.arg4; - s.callLocIdx = 775; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 0); + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_width"] = (s.tmp_1); + r0 = (s.tmp_0).fields["maxVelocity"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - r0 = pxsim.BufferMethods.getNumber(s.arg1, 4, 2); + r0 = s.arg0.fields["maxVelocity"]; + s.tmp_2 = r0; + r0 = (0 - s.tmp_2); s.tmp_1 = r0; - r0 = (s.tmp_0).fields["_height"] = (s.tmp_1); + r0 = (s.tmp_0).fields["maxNegativeVelocity"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P291735.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"]} +ArcadePhysicsEngine_maxSpeed__P49264.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} -function tiles_TileMapData_constructor__P291735_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P49264_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P291735, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P49264, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, + tmp_2: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, - arg3: undefined, - arg4: undefined, } } -function helpers_stringTrim__P289527(s) { +function Fx_neg__P47110(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24586,86 +24407,62 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.start___302653 = undefined; - s.end___302654 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.start___302653 = (0); - r0 = pxsim_String_.length(s.arg0); - s.tmp_0 = r0; - r0 = (s.tmp_0 - 1); - s.end___302654 = (r0); - case 1: - r0 = (s.start___302653 <= s.end___302654); - 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__P289528_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.start___302653); - s.tmp_1.arg0 = r0; - 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___302653 + 1); - s.start___302653 = (r0); - { step = 1; continue; } - case 4: - case 5: - r0 = (s.end___302654 > s.start___302653); - 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__P289528_mk(s); - r0 = pxsim_String_.charCodeAt(s.arg0, s.end___302654); - 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___302654 - 1); - s.end___302654 = (r0); - { step = 5; continue; } - case 8: - s.tmp_0 = helpers_stringSlice__P289524_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.start___302653; - r0 = (s.end___302654 + 1); - s.tmp_0.arg2 = r0; - s.callLocIdx = 17; s.pc = 11; return s.tmp_0; - case 11: - r0 = s.retval; + r0 = (0 - s.arg0); return leave(s, r0) default: oops() } } } -helpers_stringTrim__P289527.info = {"start":14074,"length":319,"line":477,"column":4,"endLine":487,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"stringTrim","argumentNames":["s"]} +Fx_neg__P47110.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__P47110_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_neg__P47110, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function ArcadePhysicsEngine_maxSpeed__P49263(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C49261_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__P49263.info = {"start":1884,"length":73,"line":67,"column":4,"endLine":69,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this"]} +ArcadePhysicsEngine_maxSpeed__P49263.isGetter = true; -function helpers_stringTrim__P289527_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P49263_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringTrim__P289527, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P49263, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - start___302653: undefined, - end___302654: undefined, arg0: undefined, } } @@ -24673,7 +24470,7 @@ function helpers_stringTrim__P289527_mk(s) { -function helpers_isWhitespace__P289528(s) { +function PhysicsEngine_constructor__P49246(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24687,57 +24484,19 @@ switch (step) { 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 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C49245_VT)) failedCast(r0); r0 = undefined; - case 12: return leave(s, r0) default: oops() } } } -helpers_isWhitespace__P289528.info = {"start":14399,"length":674,"line":489,"column":4,"endLine":506,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"isWhitespace","argumentNames":["c"]} +PhysicsEngine_constructor__P49246.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} -function helpers_isWhitespace__P289528_mk(s) { +function PhysicsEngine_constructor__P49246_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_isWhitespace__P289528, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_constructor__P49246, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -24745,7 +24504,7 @@ function helpers_isWhitespace__P289528_mk(s) { -function helpers__registerFactory__P292280(s) { +function sprites_SpriteMap_constructor__P49181(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24757,46 +24516,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.factories___293896); - s.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; + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); + s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); - globals.factories___293896 = (r0); - case 1: - case 2: - r0 = pxsim_pxtrt.mkMap(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "kind", s.arg0); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "factory", s.arg1); - r0 = pxsim_Array__push(globals.factories___293896, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["buckets"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers__registerFactory__P292280.info = {"start":1690,"length":201,"line":50,"column":4,"endLine":56,"endColumn":5,"fileName":"pxt_modules/game/assetTemplates.ts","functionName":"_registerFactory","argumentNames":["kind","factory"]} +sprites_SpriteMap_constructor__P49181.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} -function helpers__registerFactory__P292280_mk(s) { +function sprites_SpriteMap_constructor__P49181_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers__registerFactory__P292280, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_constructor__P49181, 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_eventContext__P291958(s) { +function music_Melody_constructor__P48570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24806,30 +24554,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P293421_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 931; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = globals._scene___293413.fields["eventContext"]; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, music_Melody__C48567_VT)) failedCast(r0); + r0 = (s.arg0).fields["_text"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -game_eventContext__P291958.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} +music_Melody_constructor__P48570.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 game_eventContext__P291958_mk(s) { +function music_Melody_constructor__P48570_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_eventContext__P291958, depth: s.depth + 1, + parent: s, fn: music_Melody_constructor__P48570, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + arg0: undefined, + arg1: undefined, } } -function controller_pauseUntilAnyButtonIsPressed__P291372(s) { +function control_pushEventContext__P47364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24839,30 +24591,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - setupResume(s, 1); - pxsim.control.waitForEvent(2049, 0); - checkResumeConsumed(); - return; + s.ctx___61319 = undefined; + s.n___61325 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___50984); + s.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___50984 = (r0); case 1: + case 2: + s.tmp_0 = control_eventContext__P47363_mk(s); + s.callLocIdx = 58; s.pc = 5; return s.tmp_0; + case 5: r0 = s.retval; - r0 = undefined; + s.ctx___61319 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___61319); + if (!r0) { step = 3; continue; } + s.tmp_0 = control_EventContext_unregister__P47357_mk(s); + s.tmp_0.arg0 = s.ctx___61319; + s.callLocIdx = 59; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 3: + case 4: + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C47350_VT); + s.tmp_0 = r0; + s.tmp_1 = control_EventContext_constructor__P47354_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.callLocIdx = 60; s.pc = 7; return s.tmp_1; + case 7: + r0 = s.retval; + s.n___61325 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___50984, s.n___61325); + r0 = s.n___61325; return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P291372.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} +control_pushEventContext__P47364.info = {"start":7123,"length":340,"line":216,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} -function controller_pauseUntilAnyButtonIsPressed__P291372_mk(s) { +function control_pushEventContext__P47364_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P291372, depth: s.depth + 1, + parent: s, fn: control_pushEventContext__P47364, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + ctx___61319: undefined, + n___61325: undefined, } } -function game_setWaitAnyButton__P291956(s) { +function control_EventContext_unregister__P47357(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24872,22 +24657,60 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.h___61354 = undefined; + s.unnamed858___U1 = undefined; + s.unnamed859___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__waitAnyButton___293417 = (s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C47350_VT)) failedCast(r0); + s.h___61354 = (undefined); + r0 = s.arg0.fields["handlers"]; + s.unnamed858___U1 = (r0); + s.unnamed859___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed859___U2; + r0 = pxsim_Array__length(s.unnamed858___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 2; continue; } + r0 = pxsim_Array__getAt(s.unnamed858___U1, s.unnamed859___U2); + s.h___61354 = (r0); + s.tmp_2 = control_EventHandler_unregister__P50978_mk(s); + s.tmp_2.arg0 = s.h___61354; + s.callLocIdx = 54; s.pc = 3; return s.tmp_2; + case 3: + r0 = s.retval; + r0 = (s.unnamed859___U2 + 1); + s.unnamed859___U2 = (r0); + { step = 1; continue; } + case 2: + s.unnamed858___U1 = (undefined); + s.tmp_0 = r0 = s.arg0; + r0 = s.tmp_0.fields["frameWorker"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 + 1); + s.tmp_1 = r0; + r0 = (s.tmp_0).fields["frameWorker"] = (s.tmp_1); r0 = undefined; return leave(s, r0) default: oops() } } } -game_setWaitAnyButton__P291956.info = {"start":878,"length":83,"line":31,"column":4,"endLine":33,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} +control_EventContext_unregister__P47357.info = {"start":4534,"length":131,"line":137,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function game_setWaitAnyButton__P291956_mk(s) { +function control_EventContext_unregister__P47357_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_setWaitAnyButton__P291956, depth: s.depth + 1, + parent: s, fn: control_EventContext_unregister__P47357, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + h___61354: undefined, + unnamed858___U1: undefined, + unnamed859___U2: undefined, arg0: undefined, } } @@ -24895,7 +24718,7 @@ function game_setWaitAnyButton__P291956_mk(s) { -function Math_abs__P289532(s) { +function control_EventHandler_unregister__P50978(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24909,30 +24732,29 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 < 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = (0 - s.arg0); - { step = 2; continue; } - case 1: r0 = s.arg0; - case 2: - // jmp value (already in r0) + if (!checkSubtype(r0, control_EventHandler__C50976_VT)) failedCast(r0); + r0 = s.arg0.fields["src"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["value"]; s.tmp_1 = r0; - r0 = s.tmp_1; + r0 = s.arg0.fields["flags"]; + s.tmp_2 = r0; + r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P50980, s.tmp_2); + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_abs__P289532.info = {"start":15630,"length":77,"line":524,"column":4,"endLine":526,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +control_EventHandler_unregister__P50978.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function Math_abs__P289532_mk(s) { +function control_EventHandler_unregister__P50978_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P289532, depth: s.depth + 1, + parent: s, fn: control_EventHandler_unregister__P50978, 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, } } @@ -24940,7 +24762,34 @@ function Math_abs__P289532_mk(s) { -function Math_sign__P289533(s) { +function control_doNothing__P50980(s) { +let r0 = s.r0, 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__P50980.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__P50980_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_doNothing__P50980, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function control_EventContext_constructor__P47354(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24954,33 +24803,37 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = (s.arg0 == 0); + r0 = s.arg0; + if (!checkSubtype(r0, control_EventContext__C47350_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___47352); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = 0; - { step = 5; continue; } + r0 = pxsim_String_.mkEmpty(); + globals.control_EventContext_lastStats___47352 = (r0); case 1: case 2: - r0 = (s.arg0 > 0); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 3; continue; } - r0 = 1; - { step = 5; continue; } - case 3: - case 4: - r0 = -1; - case 5: + r0 = undefined; return leave(s, r0) default: oops() } } } -Math_sign__P289533.info = {"start":15865,"length":125,"line":532,"column":4,"endLine":536,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} +control_EventContext_constructor__P47354.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function Math_sign__P289533_mk(s) { +function control_EventContext_constructor__P47354_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_sign__P289533, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P47354, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -24991,7 +24844,40 @@ function Math_sign__P289533_mk(s) { -function texteffects_TextEffect_constructor__P292256(s) { +function controller_pauseUntilAnyButtonIsPressed__P48950(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + setupResume(s, 1); + pxsim.control.waitForEvent(2049, 0); + checkResumeConsumed(); + return; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_pauseUntilAnyButtonIsPressed__P48950.info = {"start":9968,"length":96,"line":287,"column":4,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} + +function controller_pauseUntilAnyButtonIsPressed__P48950_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P48950, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function game_setWaitAnyButton__P49641(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25003,32 +24889,28 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, texteffects_TextEffect__C292254_VT)) failedCast(r0); - r0 = (s.arg0).fields["getState"] = (s.arg1); + globals.__waitAnyButton___51339 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -texteffects_TextEffect_constructor__P292256.info = {"start":657,"length":133,"line":25,"column":8,"endLine":27,"endColumn":9,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":["this","getState"]} +game_setWaitAnyButton__P49641.info = {"start":878,"length":83,"line":31,"column":4,"endLine":33,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} -function texteffects_TextEffect_constructor__P292256_mk(s) { +function game_setWaitAnyButton__P49641_mk(s) { checkStack(s.depth); return { - parent: s, fn: texteffects_TextEffect_constructor__P292256, depth: s.depth + 1, + parent: s, fn: game_setWaitAnyButton__P49641, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function Math_FastRandom_constructor__P292011(s) { +function Math_FastRandom_constructor__P49697(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25044,7 +24926,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C292009_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C49695_VT)) failedCast(r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -25059,12 +24941,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_constructor__P292011.info = {"start":1425,"length":175,"line":44,"column":8,"endLine":48,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"inline","argumentNames":["this","seed"]} +Math_FastRandom_constructor__P49697.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__P292011_mk(s) { +function Math_FastRandom_constructor__P49697_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P292011, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P49697, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -25075,74 +24957,7 @@ function Math_FastRandom_constructor__P292011_mk(s) { -function control_ramSize__P289744(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = pxsim_pxtcore.getConfig(205, 0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - r0 = 33554432; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; - return leave(s, r0) - default: oops() -} } } -control_ramSize__P289744.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__P289744_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_ramSize__P289744, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, -} } - - - - - -function control__ramSize__P293037(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - r0 = 33554432; - return leave(s, r0) - default: oops() -} } } -control__ramSize__P293037.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__P293037_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control__ramSize__P293037, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function game_consoleOverlay_listener__P293746(s) { +function game_consoleOverlay_listener__P51668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25157,7 +24972,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___293711); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___51633); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -25177,39 +24992,39 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_4 = helpers_arrayForEach__P289514_mk(s); - s.tmp_5 = helpers_arrayFilter__P289515_mk(s); - s.tmp_6 = helpers_stringSplit__P289526_mk(s); + s.tmp_4 = helpers_arrayForEach__P47064_mk(s); + s.tmp_5 = helpers_arrayFilter__P47065_mk(s); + s.tmp_6 = helpers_stringSplit__P47077_mk(s); s.tmp_6.arg0 = s.arg1; s.tmp_6.arg1 = "\n"; s.tmp_6.arg2 = undefined; - s.callLocIdx = 1115; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1222; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = inline__P303377; - s.callLocIdx = 1116; s.pc = 9; return s.tmp_5; + s.tmp_5.arg1 = forEach_inline__P61548; + s.callLocIdx = 1223; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = inline__P303382; - s.callLocIdx = 1118; s.pc = 8; return s.tmp_4; + s.tmp_4.arg1 = game_consoleOverlay_listener_inline__P61553; + s.callLocIdx = 1225; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___293711); + r0 = pxsim_Array__length(globals.consoleStrings___51633); s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___293724); + r0 = (s.tmp_1 > globals.consoleLines___51646); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P289505_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___293711; + s.tmp_2 = helpers_arraySplice__P47055_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___51633; s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___293711); + r0 = pxsim_Array__length(globals.consoleStrings___51633); s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___293724); + r0 = (s.tmp_3 - globals.consoleLines___51646); s.tmp_2.arg2 = r0; - s.callLocIdx = 1119; s.pc = 11; return s.tmp_2; + s.callLocIdx = 1226; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; case 5: @@ -25219,12 +25034,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P293746.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__P51668.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__P293746_mk(s) { +function game_consoleOverlay_listener__P51668_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P293746, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P51668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25241,7 +25056,7 @@ function game_consoleOverlay_listener__P293746_mk(s) { -function inline__P303377(s) { +function forEach_inline__P61548(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25265,12 +25080,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P303377.info = {"start":985,"length":14,"line":32,"column":20,"endLine":32,"endColumn":34,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +forEach_inline__P61548.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__P303377_mk(s) { +function forEach_inline__P61548_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303377, depth: s.depth + 1, + parent: s, fn: forEach_inline__P61548, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25282,7 +25097,7 @@ function inline__P303377_mk(s) { -function inline__P303382(s) { +function game_consoleOverlay_listener_inline__P61553(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25292,45 +25107,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___303384 = undefined; + s.j___61555 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.j___303384 = (0); + s.j___61555 = (0); case 1: - s.tmp_1 = r0 = s.j___303384; + s.tmp_1 = r0 = s.j___61555; 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___293711; - s.tmp_5 = helpers_stringSlice__P289524_mk(s); + s.tmp_3 = r0 = globals.consoleStrings___51633; + s.tmp_5 = helpers_stringSlice__P47074_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___303384; - r0 = (s.j___303384 + globals.consoleColumns___293734); + s.tmp_5.arg1 = s.j___61555; + r0 = (s.j___61555 + globals.consoleColumns___51656); s.tmp_5.arg2 = r0; - s.callLocIdx = 1117; s.pc = 3; return s.tmp_5; + s.callLocIdx = 1224; 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___303384 + globals.consoleColumns___293734); - s.j___303384 = (r0); + r0 = (s.j___61555 + globals.consoleColumns___51656); + s.j___61555 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303382.info = {"start":1022,"length":189,"line":33,"column":21,"endLine":37,"endColumn":13,"fileName":"pxt_modules/game/console.ts","functionName":"inline","argumentNames":["line"]} +game_consoleOverlay_listener_inline__P61553.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__P303382_mk(s) { +function game_consoleOverlay_listener_inline__P61553_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303382, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener_inline__P61553, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25338,7 +25153,7 @@ function inline__P303382_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - j___303384: undefined, + j___61555: undefined, arg0: undefined, } } @@ -25346,7 +25161,7 @@ function inline__P303382_mk(s) { -function console_addListener__P289781(s) { +function console_addListener__P47338(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25369,7 +25184,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___293052, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals.listeners___50962, s.arg0, undefined); s.tmp_2 = r0; r0 = (s.tmp_2 > -1); case 2: @@ -25380,18 +25195,18 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_Array__push(globals.listeners___293052, s.arg0); + r0 = pxsim_Array__push(globals.listeners___50962, s.arg0); case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P289781.info = {"start":3558,"length":197,"line":121,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"addListener","argumentNames":["listener"]} +console_addListener__P47338.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__P289781_mk(s) { +function console_addListener__P47338_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P289781, depth: s.depth + 1, + parent: s, fn: console_addListener__P47338, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25404,7 +25219,7 @@ function console_addListener__P289781_mk(s) { -function inline__P293051(s) { +function listeners_inline__P50961(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25424,12 +25239,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P293051.info = {"start":534,"length":85,"line":25,"column":8,"endLine":25,"endColumn":93,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["priority","text"]} +listeners_inline__P50961.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__P293051_mk(s) { +function listeners_inline__P50961_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P293051, depth: s.depth + 1, + parent: s, fn: listeners_inline__P50961, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -25439,7 +25254,7 @@ function inline__P293051_mk(s) { -function scene_systemMenu_register__P292056(s) { +function scene_systemMenu_register__P49742(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25449,16 +25264,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___293665); + r0 = pxsim_numops_toBoolDecr(globals.instance___51587); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = controller_Button_onEvent__P291329_mk(s); - s.tmp_0.arg0 = globals.menu___291302; + s.tmp_0 = controller_Button_onEvent__P48941_mk(s); + s.tmp_0.arg0 = globals.menu___48868; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P292057; - s.callLocIdx = 1102; s.pc = 4; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P49743; + s.callLocIdx = 1209; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -25466,12 +25281,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P292056.info = {"start":12793,"length":193,"line":382,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"register","argumentNames":[]} +scene_systemMenu_register__P49742.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__P292056_mk(s) { +function scene_systemMenu_register__P49742_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P292056, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P49742, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25480,7 +25295,7 @@ function scene_systemMenu_register__P292056_mk(s) { -function scene_systemMenu_showSystemMenu__P292057(s) { +function scene_systemMenu_showSystemMenu__P49743(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25490,28 +25305,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___293665); + r0 = pxsim_numops_toBoolDecr(globals.instance___51587); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = game_pushScene__P291959_mk(s); - s.callLocIdx = 1103; s.pc = 4; return s.tmp_0; + s.tmp_0 = game_pushScene__P49644_mk(s); + s.callLocIdx = 1210; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C292045_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C49731_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P292046_mk(s); + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P49732_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P292053; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P49739; s.tmp_1.arg2 = undefined; - s.callLocIdx = 1104; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1211; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.instance___293665 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P292047_mk(s); - s.tmp_0.arg0 = globals.instance___293665; - s.callLocIdx = 1105; s.pc = 6; return s.tmp_0; + globals.instance___51587 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P49733_mk(s); + s.tmp_0.arg0 = globals.instance___51587; + s.callLocIdx = 1212; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -25519,12 +25334,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P292057.info = {"start":12992,"length":172,"line":388,"column":4,"endLine":393,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"showSystemMenu","argumentNames":[]} +scene_systemMenu_showSystemMenu__P49743.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__P292057_mk(s) { +function scene_systemMenu_showSystemMenu__P49743_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P292057, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P49743, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25534,7 +25349,7 @@ function scene_systemMenu_showSystemMenu__P292057_mk(s) { -function scene_systemMenu_buildOptionList__P292053(s) { +function scene_systemMenu_buildOptionList__P49739(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25544,136 +25359,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___304141 = undefined; + s.options___62312 = undefined; r0 = pxsim_Array__mk(); - s.options___304141 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C292037_VT); + s.options___62312 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C49723_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P292038_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P49724_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___292067; - s.tmp_1.arg2 = inline__P304149; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P293671; - s.callLocIdx = 1085; s.pc = 5; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___49753; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P62320; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P51593; + s.callLocIdx = 1192; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(s.options___304141, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C292037_VT); + r0 = pxsim_Array__push(s.options___62312, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C49723_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P292038_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P49724_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___292064; - s.tmp_1.arg2 = inline__P304163; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P293670; - s.callLocIdx = 1087; s.pc = 6; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___49750; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P62334; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P51592; + s.callLocIdx = 1194; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_Array__push(s.options___304141, s.tmp_0); + r0 = pxsim_Array__push(s.options___62312, 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__C292037_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C49723_VT); s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P292038_mk(s); + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P49724_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___292065; - s.tmp_2.arg2 = inline__P304178; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P293673; - s.callLocIdx = 1090; s.pc = 7; return s.tmp_2; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___49751; + s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P62349; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P51595; + s.callLocIdx = 1197; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___304141, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C292037_VT); + r0 = pxsim_Array__push(s.options___62312, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C49723_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P292038_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P49724_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___292070; - s.tmp_1.arg2 = inline__P304193; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P293672; - s.callLocIdx = 1092; s.pc = 8; return s.tmp_1; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___49756; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P62364; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P51594; + s.callLocIdx = 1199; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_Array__push(s.options___304141, s.tmp_0); + r0 = pxsim_Array__push(s.options___62312, s.tmp_0); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C292037_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C49723_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P292038_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P49724_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___292071; - s.tmp_1.arg2 = inline__P304208; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P293675; - s.callLocIdx = 1093; s.pc = 9; return s.tmp_1; + s.tmp_1.arg1 = globals.STATS_ICON___49757; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P62379; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P51597; + s.callLocIdx = 1200; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___304141, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C292037_VT); + r0 = pxsim_Array__push(s.options___62312, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C49723_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P292038_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P49724_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___292069; - s.tmp_1.arg2 = inline__P304217; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P293676; - s.callLocIdx = 1095; s.pc = 10; return s.tmp_1; + s.tmp_1.arg1 = globals.CONSOLE_ICON___49755; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P62388; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P51598; + s.callLocIdx = 1202; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_Array__push(s.options___304141, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C292037_VT); + r0 = pxsim_Array__push(s.options___62312, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C49723_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P292038_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P49724_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___292068; - s.tmp_1.arg2 = inline__P304226; - s.tmp_1.arg3 = scene_systemMenu_sleep__P293677; - s.callLocIdx = 1096; s.pc = 11; return s.tmp_1; + s.tmp_1.arg1 = globals.SLEEP_ICON___49754; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P62397; + s.tmp_1.arg3 = scene_systemMenu_sleep__P51599; + s.callLocIdx = 1203; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_Array__push(s.options___304141, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___293666); + r0 = pxsim_Array__push(s.options___62312, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___51588); if (!r0) { step = 3; continue; } - s.tmp_0 = helpers_arrayConcat__P289518_mk(s); - s.tmp_0.arg0 = s.options___304141; - s.tmp_0.arg1 = globals.customMenuOptions___293666; - s.callLocIdx = 1097; s.pc = 12; return s.tmp_0; + s.tmp_0 = helpers_arrayConcat__P47068_mk(s); + s.tmp_0.arg0 = s.options___62312; + s.tmp_0.arg1 = globals.customMenuOptions___51588; + s.callLocIdx = 1204; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.options___304141 = (r0); + s.options___62312 = (r0); case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C292037_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C49723_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P292038_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P49724_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___292066; - s.tmp_1.arg2 = inline__P304239; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P292052; - s.callLocIdx = 1098; s.pc = 13; return s.tmp_1; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___49752; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P62410; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P49738; + s.callLocIdx = 1205; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_Array__push(s.options___304141, s.tmp_0); - r0 = s.options___304141; + r0 = pxsim_Array__push(s.options___62312, s.tmp_0); + r0 = s.options___62312; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P292053.info = {"start":10499,"length":1149,"line":334,"column":4,"endLine":354,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildOptionList","argumentNames":[]} +scene_systemMenu_buildOptionList__P49739.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__P292053_mk(s) { +function scene_systemMenu_buildOptionList__P49739_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P292053, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P49739, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___304141: undefined, + options___62312: undefined, } } -function inline__P304149(s) { +function scene_systemMenu_buildOptionList_inline__P62320(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25683,8 +25498,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P291002_mk(s); - s.callLocIdx = 1084; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P48562_mk(s); + s.callLocIdx = 1191; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -25703,12 +25518,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304149.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P62320.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P304149_mk(s) { +function scene_systemMenu_buildOptionList_inline__P62320_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304149, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P62320, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25720,7 +25535,7 @@ function inline__P304149_mk(s) { -function inline__P304163(s) { +function scene_systemMenu_buildOptionList_inline__P62334(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25730,8 +25545,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P291002_mk(s); - s.callLocIdx = 1086; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P48562_mk(s); + s.callLocIdx = 1193; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -25750,12 +25565,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304163.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P62334.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P304163_mk(s) { +function scene_systemMenu_buildOptionList_inline__P62334_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304163, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P62334, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25767,7 +25582,7 @@ function inline__P304163_mk(s) { -function inline__P304178(s) { +function scene_systemMenu_buildOptionList_inline__P62349(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25777,7 +25592,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___291143; + r0 = globals.brightness___48705; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -25794,12 +25609,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304178.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P62349.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P304178_mk(s) { +function scene_systemMenu_buildOptionList_inline__P62349_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304178, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P62349, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25810,7 +25625,7 @@ function inline__P304178_mk(s) { -function inline__P304193(s) { +function scene_systemMenu_buildOptionList_inline__P62364(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25820,7 +25635,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___291143; + r0 = globals.brightness___48705; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -25837,12 +25652,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304193.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P62364.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P304193_mk(s) { +function scene_systemMenu_buildOptionList_inline__P62364_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304193, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P62364, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25853,7 +25668,7 @@ function inline__P304193_mk(s) { -function inline__P304208(s) { +function scene_systemMenu_buildOptionList_inline__P62379(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25863,7 +25678,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___291952); + r0 = pxsim_numops_toBoolDecr(globals.stats___49637); if (!r0) { step = 1; continue; } r0 = "HIDE STATS"; { step = 2; continue; } @@ -25876,12 +25691,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304208.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P62379.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P304208_mk(s) { +function scene_systemMenu_buildOptionList_inline__P62379_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304208, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P62379, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25890,7 +25705,7 @@ function inline__P304208_mk(s) { -function inline__P304217(s) { +function scene_systemMenu_buildOptionList_inline__P62388(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25900,7 +25715,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___293711); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___51633); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -25921,12 +25736,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304217.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P62388.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P304217_mk(s) { +function scene_systemMenu_buildOptionList_inline__P62388_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304217, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P62388, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25939,7 +25754,7 @@ function inline__P304217_mk(s) { -function inline__P304226(s) { +function scene_systemMenu_buildOptionList_inline__P62397(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25953,12 +25768,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304226.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P62397.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P304226_mk(s) { +function scene_systemMenu_buildOptionList_inline__P62397_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304226, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P62397, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -25966,7 +25781,7 @@ function inline__P304226_mk(s) { -function inline__P304239(s) { +function scene_systemMenu_buildOptionList_inline__P62410(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25980,12 +25795,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304239.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_buildOptionList_inline__P62410.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P304239_mk(s) { +function scene_systemMenu_buildOptionList_inline__P62410_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304239, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P62410, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -25993,7 +25808,7 @@ function inline__P304239_mk(s) { -function scene_systemMenu_setScreenBrightnessSupported__P293678(s) { +function scene_systemMenu_setScreenBrightnessSupported__P51600(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26007,12 +25822,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightnessSupported__P293678.info = {"start":10398,"length":95,"line":330,"column":4,"endLine":332,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} +scene_systemMenu_setScreenBrightnessSupported__P51600.info = {"start":10398,"length":95,"line":330,"column":4,"endLine":332,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightnessSupported","argumentNames":[]} -function scene_systemMenu_setScreenBrightnessSupported__P293678_mk(s) { +function scene_systemMenu_setScreenBrightnessSupported__P51600_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P293678, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P51600, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -26020,7 +25835,7 @@ function scene_systemMenu_setScreenBrightnessSupported__P293678_mk(s) { -function scene_systemMenu_sleep__P293677(s) { +function scene_systemMenu_sleep__P51599(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26035,12 +25850,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P293677.info = {"start":10072,"length":51,"line":316,"column":4,"endLine":318,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"sleep","argumentNames":[]} +scene_systemMenu_sleep__P51599.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__P293677_mk(s) { +function scene_systemMenu_sleep__P51599_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P293677, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P51599, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -26048,7 +25863,7 @@ function scene_systemMenu_sleep__P293677_mk(s) { -function scene_systemMenu_toggleConsole__P293676(s) { +function scene_systemMenu_toggleConsole__P51598(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26058,7 +25873,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___293711); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___51633); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -26068,23 +25883,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__P292076_mk(s); + s.tmp_4 = game_consoleOverlay_setVisible__P49762_mk(s); s.tmp_4.arg0 = false; s.tmp_4.arg1 = undefined; - s.callLocIdx = 1078; s.pc = 3; return s.tmp_4; + s.callLocIdx = 1185; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P292076_mk(s); + s.tmp_0 = game_consoleOverlay_setVisible__P49762_mk(s); s.tmp_0.arg0 = true; s.tmp_0.arg1 = undefined; - s.callLocIdx = 1079; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1186; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = console_log__P289778_mk(s); + s.tmp_0 = console_log__P47335_mk(s); s.tmp_0.arg0 = "console"; - s.callLocIdx = 1080; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1187; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 2: @@ -26092,12 +25907,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleConsole__P293676.info = {"start":9827,"length":239,"line":307,"column":4,"endLine":314,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleConsole","argumentNames":[]} +scene_systemMenu_toggleConsole__P51598.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__P293676_mk(s) { +function scene_systemMenu_toggleConsole__P51598_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P293676, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P51598, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26110,7 +25925,7 @@ function scene_systemMenu_toggleConsole__P293676_mk(s) { -function game_consoleOverlay_setVisible__P292076(s) { +function game_consoleOverlay_setVisible__P49762(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26126,7 +25941,7 @@ switch (step) { s.lambdaArgs = null; } s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___293711); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___51633); s.tmp_5 = r0; r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_4 = r0; @@ -26147,26 +25962,26 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_6 = r0; - globals.consoleStrings___293711 = (s.tmp_6); + globals.consoleStrings___51633 = (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___293710 = (s.arg1); + globals.consoleColor___51632 = (s.arg1); case 5: case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P292076.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]} +game_consoleOverlay_setVisible__P49762.info = {"start":562,"length":219,"line":19,"column":4,"endLine":24,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"setVisible","argumentNames":["value","col"]} -function game_consoleOverlay_setVisible__P292076_mk(s) { +function game_consoleOverlay_setVisible__P49762_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P292076, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P49762, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26183,7 +25998,7 @@ function game_consoleOverlay_setVisible__P292076_mk(s) { -function console_log__P289778(s) { +function console_log__P47335(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26197,7 +26012,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = console_add__P289774_mk(s); + s.tmp_0 = console_add__P47331_mk(s); s.tmp_0.arg0 = 1; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 37; s.pc = 1; return s.tmp_0; @@ -26207,12 +26022,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_log__P289778.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} +console_log__P47335.info = {"start":1450,"length":86,"line":58,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"log","argumentNames":["value"]} -function console_log__P289778_mk(s) { +function console_log__P47335_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P289778, depth: s.depth + 1, + parent: s, fn: console_log__P47335, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26222,7 +26037,7 @@ function console_log__P289778_mk(s) { -function console_add__P289774(s) { +function console_add__P47331(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26232,58 +26047,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___304278 = undefined; - s.i___304287 = undefined; + s.text___62449 = undefined; + s.i___62458 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < globals.minPriority___289773); + r0 = (s.arg0 < globals.minPriority___47330); 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__P289780_mk(s); + s.tmp_1 = console_inspect__P47337_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.text___304278 = (r0); - if ((s.text___304278) && (s.text___304278).vtable) { + s.text___62449 = (r0); + if ((s.text___62449) && (s.text___62449).vtable) { setupResume(s, 7); - pxsim_String__stringConv(s.text___304278); + pxsim_String__stringConv(s.text___62449); checkResumeConsumed(); return; - } else { s.retval = (s.text___304278) + ""; } + } else { s.retval = (s.text___62449) + ""; } case 7: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___304278 = (r0); - s.i___304287 = (0); + s.text___62449 = (r0); + s.i___62458 = (0); case 3: - s.tmp_1 = r0 = s.i___304287; - r0 = pxsim_Array__length(globals.listeners___293052); + s.tmp_1 = r0 = s.i___62458; + r0 = pxsim_Array__length(globals.listeners___50962); 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___293052, s.i___304287); + r0 = pxsim_Array__getAt(globals.listeners___50962, s.i___62458); s.tmp_3.argL = r0; s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___304278; + s.tmp_3.arg1 = s.text___62449; 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___304287 + 1); - s.i___304287 = (r0); + r0 = (s.i___62458 + 1); + s.i___62458 = (r0); { step = 3; continue; } case 4: case 5: @@ -26291,19 +26106,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_add__P289774.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} +console_add__P47331.info = {"start":632,"length":317,"line":28,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"add","argumentNames":["priority","message"]} -function console_add__P289774_mk(s) { +function console_add__P47331_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P289774, depth: s.depth + 1, + parent: s, fn: console_add__P47331, depth: s.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___304278: undefined, - i___304287: undefined, + text___62449: undefined, + i___62458: undefined, arg0: undefined, arg1: undefined, } } @@ -26312,7 +26127,7 @@ function console_add__P289774_mk(s) { -function console_inspect__P289780(s) { +function console_inspect__P47337(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26322,10 +26137,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___297816 = undefined; - s.asString___297834 = undefined; - s.keys___297846 = undefined; - s.snipped___297850 = undefined; + s.asArr___56047 = undefined; + s.asString___56065 = undefined; + s.keys___56077 = undefined; + s.snipped___56081 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -26366,15 +26181,15 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 5; continue; } - s.asArr___297816 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___297816); + s.asArr___56047 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___56047); 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__P289508_mk(s); - s.tmp_2.arg0 = s.asArr___297816; + s.tmp_2 = helpers_arrayJoin__P47058_mk(s); + s.tmp_2.arg0 = s.asArr___56047; s.tmp_2.arg1 = ","; s.callLocIdx = 38; s.pc = 19; return s.tmp_2; case 19: @@ -26384,9 +26199,9 @@ switch (step) { case 3: r0 = pxsim_String_.mkEmpty(); s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P289508_mk(s); - s.tmp_8 = helpers_arraySlice__P289520_mk(s); - s.tmp_8.arg0 = s.asArr___297816; + s.tmp_7 = helpers_arrayJoin__P47058_mk(s); + s.tmp_8 = helpers_arraySlice__P47070_mk(s); + s.tmp_8.arg0 = s.asArr___56047; s.tmp_8.arg1 = 0; s.tmp_8.arg2 = s.arg1; s.callLocIdx = 39; s.pc = 21; return s.tmp_8; @@ -26426,46 +26241,46 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); s.tmp_10 = r0; r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.asString___297834 = (r0); - r0 = (s.asString___297834 != "[object Object]"); + s.asString___56065 = (r0); + r0 = (s.asString___56065 != "[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___297834 != "[Object]"); + r0 = (s.asString___56065 != "[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___297834; + r0 = s.asString___56065; { step = 17; continue; } case 8: case 9: r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___297846 = (r0); - r0 = pxsim_Array__length(s.keys___297846); + s.keys___56077 = (r0); + r0 = pxsim_Array__length(s.keys___56077); s.tmp_0 = r0; r0 = (s.tmp_0 > s.arg1); - s.snipped___297850 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___297850); + s.snipped___56081 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___56081); if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P289520_mk(s); - s.tmp_0.arg0 = s.keys___297846; + s.tmp_0 = helpers_arraySlice__P47070_mk(s); + s.tmp_0.arg0 = s.keys___56077; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 41; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.keys___297846 = (r0); + s.keys___56077 = (r0); case 10: case 11: - r0 = pxsim_pxtcore_mkAction(1, inline__P297867); + r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P56098); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___297850); + r0 = pxsim_numops_toBoolDecr(s.snipped___56081); if (!r0) { step = 12; continue; } r0 = "\n ..."; { step = 13; continue; } @@ -26474,8 +26289,8 @@ switch (step) { case 13: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P289517_mk(s); - s.tmp_7.arg0 = s.keys___297846; + s.tmp_7 = helpers_arrayReduce__P47067_mk(s); + s.tmp_7.arg0 = s.keys___56077; s.tmp_7.arg1 = s.tmp_0; r0 = pxsim_String_.mkEmpty(); s.tmp_7.arg2 = r0; @@ -26524,12 +26339,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_inspect__P289780.info = {"start":2271,"length":1190,"line":81,"column":4,"endLine":114,"endColumn":5,"fileName":"pxt_modules/base/console.ts","functionName":"inspect","argumentNames":["obj","maxElements"]} +console_inspect__P47337.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__P289780_mk(s) { +function console_inspect__P47337_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P289780, depth: s.depth + 1, + parent: s, fn: console_inspect__P47337, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26542,10 +26357,10 @@ function console_inspect__P289780_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - asArr___297816: undefined, - asString___297834: undefined, - keys___297846: undefined, - snipped___297850: undefined, + asArr___56047: undefined, + asString___56065: undefined, + keys___56077: undefined, + snipped___56081: undefined, arg0: undefined, arg1: undefined, } } @@ -26554,7 +26369,7 @@ function console_inspect__P289780_mk(s) { -function inline__P297867(s) { +function console_inspect_inline__P56098(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26617,12 +26432,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P297867.info = {"start":3293,"length":61,"line":108,"column":20,"endLine":108,"endColumn":81,"fileName":"pxt_modules/base/console.ts","functionName":"inline","argumentNames":["prev","currKey"]} +console_inspect_inline__P56098.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__P297867_mk(s) { +function console_inspect_inline__P56098_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P297867, depth: s.depth + 1, + parent: s, fn: console_inspect_inline__P56098, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26640,7 +26455,7 @@ function inline__P297867_mk(s) { -function helpers_arrayReduce__P289517(s) { +function helpers_arrayReduce__P47067(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26650,8 +26465,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___297894 = undefined; - s.i___297897 = undefined; + s.len___56125 = undefined; + s.i___56128 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -26659,43 +26474,43 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__length(s.arg0); - s.len___297894 = (r0); - s.i___297897 = (0); + s.len___56125 = (r0); + s.i___56128 = (0); case 1: - r0 = (s.i___297897 < s.len___297894); + r0 = (s.i___56128 < s.len___56125); 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___297897); + r0 = pxsim_Array__getAt(s.arg0, s.i___56128); s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___297897; + s.tmp_1.arg2 = s.i___56128; setupLambda(s.tmp_1, s.tmp_1.argL); s.callLocIdx = 8; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.arg2 = (r0); - r0 = (s.i___297897 + 1); - s.i___297897 = (r0); + r0 = (s.i___56128 + 1); + s.i___56128 = (r0); { step = 1; continue; } case 2: r0 = s.arg2; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P289517.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__P47067.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__P289517_mk(s) { +function helpers_arrayReduce__P47067_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P289517, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P47067, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___297894: undefined, - i___297897: undefined, + len___56125: undefined, + i___56128: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -26705,7 +26520,7 @@ function helpers_arrayReduce__P289517_mk(s) { -function helpers_arrayJoin__P289508(s) { +function helpers_arrayJoin__P47058(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26715,9 +26530,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___298114 = undefined; - s.len___298115 = undefined; - s.i___298118 = undefined; + s.r___55987 = undefined; + s.len___55988 = undefined; + s.i___55991 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -26740,16 +26555,16 @@ switch (step) { case 3: case 4: r0 = pxsim_String_.mkEmpty(); - s.r___298114 = (r0); + s.r___55987 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___298115 = (r0); - s.i___298118 = (0); + s.len___55988 = (r0); + s.i___55991 = (0); case 5: - r0 = (s.i___298118 < s.len___298115); + r0 = (s.i___55991 < s.len___55988); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.i___298118 > 0); + r0 = (s.i___55991 > 0); s.tmp_1 = r0; r0 = pxsim_numops_toBool(s.tmp_1); if (r0) { step = 6; continue; } @@ -26762,12 +26577,12 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 8; continue; } - if ((s.r___298114) && (s.r___298114).vtable) { + if ((s.r___55987) && (s.r___55987).vtable) { setupResume(s, 15); - pxsim_String__stringConv(s.r___298114); + pxsim_String__stringConv(s.r___55987); checkResumeConsumed(); return; - } else { s.retval = (s.r___298114) + ""; } + } else { s.retval = (s.r___55987) + ""; } case 15: r0 = s.retval; s.tmp_3 = r0; @@ -26781,10 +26596,10 @@ switch (step) { r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___298114 = (r0); + s.r___55987 = (r0); case 8: case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___298118); + r0 = pxsim_Array__getAt(s.arg0, s.i___55991); s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; @@ -26793,7 +26608,7 @@ switch (step) { r0 = s.tmp_0; { step = 11; continue; } case 10: - r0 = pxsim_Array__getAt(s.arg0, s.i___298118); + r0 = pxsim_Array__getAt(s.arg0, s.i___55991); s.tmp_2 = r0; r0 = (s.tmp_2 === null); case 11: @@ -26804,16 +26619,16 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); { step = 13; continue; } case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___298118); + r0 = pxsim_Array__getAt(s.arg0, s.i___55991); case 13: // jmp value (already in r0) s.tmp_4 = r0; - if ((s.r___298114) && (s.r___298114).vtable) { + if ((s.r___55987) && (s.r___55987).vtable) { setupResume(s, 17); - pxsim_String__stringConv(s.r___298114); + pxsim_String__stringConv(s.r___55987); checkResumeConsumed(); return; - } else { s.retval = (s.r___298114) + ""; } + } else { s.retval = (s.r___55987) + ""; } case 17: r0 = s.retval; s.tmp_5 = r0; @@ -26827,21 +26642,21 @@ switch (step) { r0 = s.retval; s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___298114 = (r0); - r0 = (s.i___298118 + 1); - s.i___298118 = (r0); + s.r___55987 = (r0); + r0 = (s.i___55991 + 1); + s.i___55991 = (r0); { step = 5; continue; } case 14: - r0 = s.r___298114; + r0 = s.r___55987; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P289508.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__P47058.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__P289508_mk(s) { +function helpers_arrayJoin__P47058_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P289508, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P47058, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26850,9 +26665,9 @@ function helpers_arrayJoin__P289508_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - r___298114: undefined, - len___298115: undefined, - i___298118: undefined, + r___55987: undefined, + len___55988: undefined, + i___55991: undefined, arg0: undefined, arg1: undefined, } } @@ -26861,7 +26676,7 @@ function helpers_arrayJoin__P289508_mk(s) { -function scene_systemMenu_toggleStats__P293675(s) { +function scene_systemMenu_toggleStats__P51597(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26871,11 +26686,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___291952); + r0 = pxsim_numops_toBoolDecr(globals.stats___49637); s.tmp_0 = r0; r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___291952 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___291952); + globals.stats___49637 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___49637); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -26884,18 +26699,18 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.control_EventContext_onStats___289796; + r0 = globals.control_EventContext_onStats___47353; 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___289796; + s.tmp_3.argL = globals.control_EventContext_onStats___47353; r0 = pxsim_String_.mkEmpty(); s.tmp_3.arg0 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 1076; s.pc = 5; return s.tmp_3; + s.callLocIdx = 1183; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; case 3: @@ -26904,12 +26719,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleStats__P293675.info = {"start":9642,"length":179,"line":300,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} +scene_systemMenu_toggleStats__P51597.info = {"start":9642,"length":179,"line":300,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"toggleStats","argumentNames":[]} -function scene_systemMenu_toggleStats__P293675_mk(s) { +function scene_systemMenu_toggleStats__P51597_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P293675, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P51597, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26921,7 +26736,7 @@ function scene_systemMenu_toggleStats__P293675_mk(s) { -function scene_systemMenu_brightnessDown__P293673(s) { +function scene_systemMenu_brightnessDown__P51595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26931,24 +26746,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P293674_mk(s); - r0 = globals.brightness___291143; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P51596_mk(s); + r0 = globals.brightness___48705; s.tmp_1 = r0; r0 = (s.tmp_1 - 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 1072; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1179; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P293673.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} +scene_systemMenu_brightnessDown__P51595.info = {"start":9198,"length":87,"line":289,"column":4,"endLine":291,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessDown","argumentNames":[]} -function scene_systemMenu_brightnessDown__P293673_mk(s) { +function scene_systemMenu_brightnessDown__P51595_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P293673, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P51595, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26958,7 +26773,7 @@ function scene_systemMenu_brightnessDown__P293673_mk(s) { -function scene_systemMenu_setScreenBrightness__P293674(s) { +function scene_systemMenu_setScreenBrightness__P51596(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26972,29 +26787,29 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_setScreenBrightness__P291154_mk(s); - s.tmp_0.arg0 = globals.screen___291221; + s.tmp_0 = helpers_setScreenBrightness__P48717_mk(s); + s.tmp_0.arg0 = globals.screen___48784; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1073; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1180; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P291248_mk(s); + s.tmp_0 = settings_writeNumber__P48813_mk(s); s.tmp_0.arg0 = "#brightness"; - r0 = globals.brightness___291143; + r0 = globals.brightness___48705; s.tmp_0.arg1 = r0; - s.callLocIdx = 1075; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1182; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightness__P293674.info = {"start":9291,"length":345,"line":293,"column":4,"endLine":298,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightness","argumentNames":["b"]} +scene_systemMenu_setScreenBrightness__P51596.info = {"start":9291,"length":345,"line":293,"column":4,"endLine":298,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setScreenBrightness","argumentNames":["b"]} -function scene_systemMenu_setScreenBrightness__P293674_mk(s) { +function scene_systemMenu_setScreenBrightness__P51596_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightness__P293674, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P51596, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27004,7 +26819,7 @@ function scene_systemMenu_setScreenBrightness__P293674_mk(s) { -function settings_writeNumber__P291248(s) { +function settings_writeNumber__P48813(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27022,27 +26837,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__P291246_mk(s); + s.tmp_1 = settings_writeBuffer__P48810_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P289586_mk(s); + s.tmp_2 = msgpack_packNumberArray__P47139_mk(s); s.tmp_2.arg0 = s.tmp_0; - s.callLocIdx = 132; s.pc = 2; return s.tmp_2; + s.callLocIdx = 125; s.pc = 2; return s.tmp_2; case 2: r0 = s.retval; s.tmp_1.arg1 = r0; - s.callLocIdx = 133; s.pc = 1; return s.tmp_1; + s.callLocIdx = 126; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeNumber__P291248.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__P48813.info = {"start":2265,"length":122,"line":89,"column":4,"endLine":91,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"writeNumber","argumentNames":["key","value"]} -function settings_writeNumber__P291248_mk(s) { +function settings_writeNumber__P48813_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P291248, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P48813, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27055,7 +26870,7 @@ function settings_writeNumber__P291248_mk(s) { -function settings_writeBuffer__P291246(s) { +function settings_writeBuffer__P48810(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27082,12 +26897,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeBuffer__P291246.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__P48810.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__P291246_mk(s) { +function settings_writeBuffer__P48810_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P291246, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P48810, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27098,7 +26913,7 @@ function settings_writeBuffer__P291246_mk(s) { -function msgpack_packNumberArray__P289586(s) { +function msgpack_packNumberArray__P47139(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27108,100 +26923,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___304333 = undefined; - s.n___304335 = undefined; - s.unnamed22604___U2 = undefined; - s.unnamed22605___U3 = undefined; - s.buf___304345 = undefined; - s.n___304351 = undefined; - s.unnamed22606___U6 = undefined; - s.unnamed22607___U7 = undefined; + s.off___62504 = undefined; + s.n___62506 = undefined; + s.unnamed850___U2 = undefined; + s.unnamed851___U3 = undefined; + s.buf___62516 = undefined; + s.n___62522 = undefined; + s.unnamed852___U6 = undefined; + s.unnamed853___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.off___304333 = (0); - s.n___304335 = (undefined); - s.unnamed22604___U2 = (s.arg0); - s.unnamed22605___U3 = (0); + s.off___62504 = (0); + s.n___62506 = (undefined); + s.unnamed850___U2 = (s.arg0); + s.unnamed851___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed22605___U3; - r0 = pxsim_Array__length(s.unnamed22604___U2); + s.tmp_0 = r0 = s.unnamed851___U3; + r0 = pxsim_Array__length(s.unnamed850___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed22604___U2, s.unnamed22605___U3); - s.n___304335 = (r0); - s.tmp_2 = r0 = s.off___304333; - s.tmp_4 = msgpack_packNumberCore__P293015_mk(s); + r0 = pxsim_Array__getAt(s.unnamed850___U2, s.unnamed851___U3); + s.n___62506 = (r0); + s.tmp_2 = r0 = s.off___62504; + s.tmp_4 = msgpack_packNumberCore__P50921_mk(s); s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___304333; - s.tmp_4.arg2 = s.n___304335; + s.tmp_4.arg1 = s.off___62504; + s.tmp_4.arg2 = s.n___62506; 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___304333 = (r0); - r0 = (s.unnamed22605___U3 + 1); - s.unnamed22605___U3 = (r0); + s.off___62504 = (r0); + r0 = (s.unnamed851___U3 + 1); + s.unnamed851___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed22604___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___304333); - s.buf___304345 = (r0); - s.off___304333 = (0); - s.n___304351 = (undefined); - s.unnamed22606___U6 = (s.arg0); - s.unnamed22607___U7 = (0); + s.unnamed850___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___62504); + s.buf___62516 = (r0); + s.off___62504 = (0); + s.n___62522 = (undefined); + s.unnamed852___U6 = (s.arg0); + s.unnamed853___U7 = (0); case 3: - s.tmp_0 = r0 = s.unnamed22607___U7; - r0 = pxsim_Array__length(s.unnamed22606___U6); + s.tmp_0 = r0 = s.unnamed853___U7; + r0 = pxsim_Array__length(s.unnamed852___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed22606___U6, s.unnamed22607___U7); - s.n___304351 = (r0); - s.tmp_2 = r0 = s.off___304333; - s.tmp_4 = msgpack_packNumberCore__P293015_mk(s); - s.tmp_4.arg0 = s.buf___304345; - s.tmp_4.arg1 = s.off___304333; - s.tmp_4.arg2 = s.n___304351; + r0 = pxsim_Array__getAt(s.unnamed852___U6, s.unnamed853___U7); + s.n___62522 = (r0); + s.tmp_2 = r0 = s.off___62504; + s.tmp_4 = msgpack_packNumberCore__P50921_mk(s); + s.tmp_4.arg0 = s.buf___62516; + s.tmp_4.arg1 = s.off___62504; + s.tmp_4.arg2 = s.n___62522; 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___304333 = (r0); - r0 = (s.unnamed22607___U7 + 1); - s.unnamed22607___U7 = (r0); + s.off___62504 = (r0); + r0 = (s.unnamed853___U7 + 1); + s.unnamed853___U7 = (r0); { step = 3; continue; } case 4: - s.unnamed22606___U6 = (undefined); - r0 = s.buf___304345; + s.unnamed852___U6 = (undefined); + r0 = s.buf___62516; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P289586.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__P47139.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__P289586_mk(s) { +function msgpack_packNumberArray__P47139_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P289586, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P47139, depth: s.depth + 1, pc: 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___304333: undefined, - n___304335: undefined, - unnamed22604___U2: undefined, - unnamed22605___U3: undefined, - buf___304345: undefined, - n___304351: undefined, - unnamed22606___U6: undefined, - unnamed22607___U7: undefined, + off___62504: undefined, + n___62506: undefined, + unnamed850___U2: undefined, + unnamed851___U3: undefined, + buf___62516: undefined, + n___62522: undefined, + unnamed852___U6: undefined, + unnamed853___U7: undefined, arg0: undefined, } } @@ -27209,7 +27024,7 @@ function msgpack_packNumberArray__P289586_mk(s) { -function msgpack_packNumberCore__P293015(s) { +function msgpack_packNumberCore__P50921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27219,15 +27034,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___304365 = undefined; - s.fmt___304408 = undefined; + s.tag___62536 = undefined; + s.fmt___62579 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___304365 = (203); + s.tag___62536 = (203); s.tmp_1 = r0 = s.arg2; r0 = (s.arg2 << 0); s.tmp_2 = r0; @@ -27277,17 +27092,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 8; continue; } - s.tag___304365 = (204); + s.tag___62536 = (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___304365 = (205); + s.tag___62536 = (205); { step = 10; continue; } case 9: - s.tag___304365 = (206); + s.tag___62536 = (206); case 10: case 11: { step = 17; continue; } @@ -27296,41 +27111,41 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tag___304365 = (208); + s.tag___62536 = (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___304365 = (209); + s.tag___62536 = (209); { step = 15; continue; } case 14: - s.tag___304365 = (210); + s.tag___62536 = (210); case 15: case 16: case 17: case 18: case 19: case 20: - s.tmp_0 = msgpack_tagFormat__P293014_mk(s); - s.tmp_0.arg0 = s.tag___304365; + s.tmp_0 = msgpack_tagFormat__P50920_mk(s); + s.tmp_0.arg0 = s.tag___62536; s.callLocIdx = 21; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.fmt___304408 = (r0); + s.fmt___62579 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___304365); + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___62536); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___304408; + s.tmp_1 = r0 = s.fmt___62579; 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__P289577_mk(s); - s.tmp_1.arg0 = s.fmt___304408; + s.tmp_1 = pins_sizeOf__P47130_mk(s); + s.tmp_1.arg0 = s.fmt___62579; s.callLocIdx = 22; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; @@ -27340,12 +27155,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P293015.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__P50921.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__P293015_mk(s) { +function msgpack_packNumberCore__P50921_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P293015, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P50921, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27355,8 +27170,8 @@ function msgpack_packNumberCore__P293015_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tag___304365: undefined, - fmt___304408: undefined, + tag___62536: undefined, + fmt___62579: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -27366,7 +27181,7 @@ function msgpack_packNumberCore__P293015_mk(s) { -function msgpack_tagFormat__P293014(s) { +function msgpack_tagFormat__P50920(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27426,12 +27241,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P293014.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__P50920.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__P293014_mk(s) { +function msgpack_tagFormat__P50920_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P293014, depth: s.depth + 1, + parent: s, fn: msgpack_tagFormat__P50920, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27441,7 +27256,7 @@ function msgpack_tagFormat__P293014_mk(s) { -function pins_sizeOf__P289577(s) { +function pins_sizeOf__P47130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27455,7 +27270,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Buffer_sizeOfNumberFormat__P289613_mk(s); + s.tmp_0 = Buffer_sizeOfNumberFormat__P47170_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 20; s.pc = 1; return s.tmp_0; case 1: @@ -27463,12 +27278,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pins_sizeOf__P289577.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__P47130.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__P289577_mk(s) { +function pins_sizeOf__P47130_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P289577, depth: s.depth + 1, + parent: s, fn: pins_sizeOf__P47130, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27478,7 +27293,7 @@ function pins_sizeOf__P289577_mk(s) { -function Buffer_sizeOfNumberFormat__P289613(s) { +function Buffer_sizeOfNumberFormat__P47170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27557,12 +27372,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P289613.info = {"start":12548,"length":856,"line":427,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} +Buffer_sizeOfNumberFormat__P47170.info = {"start":14912,"length":856,"line":508,"column":4,"endLine":532,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"sizeOfNumberFormat","argumentNames":["format"]} -function Buffer_sizeOfNumberFormat__P289613_mk(s) { +function Buffer_sizeOfNumberFormat__P47170_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P289613, depth: s.depth + 1, + parent: s, fn: Buffer_sizeOfNumberFormat__P47170, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27572,7 +27387,7 @@ function Buffer_sizeOfNumberFormat__P289613_mk(s) { -function helpers_setScreenBrightness__P291154(s) { +function helpers_setScreenBrightness__P48717(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27587,27 +27402,27 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P289531_mk(s); + s.tmp_0 = Math_clamp__P47082_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; + s.callLocIdx = 90; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.arg1 = (r0); - globals.brightness___291143 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___291143); + globals.brightness___48705 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___48705); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_setScreenBrightness__P291154.info = {"start":6243,"length":210,"line":211,"column":4,"endLine":215,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} +helpers_setScreenBrightness__P48717.info = {"start":7427,"length":210,"line":238,"column":4,"endLine":242,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"setScreenBrightness","argumentNames":["img","b"]} -function helpers_setScreenBrightness__P291154_mk(s) { +function helpers_setScreenBrightness__P48717_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P291154, depth: s.depth + 1, + parent: s, fn: helpers_setScreenBrightness__P48717, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27618,7 +27433,7 @@ function helpers_setScreenBrightness__P291154_mk(s) { -function scene_systemMenu_brightnessUp__P293672(s) { +function scene_systemMenu_brightnessUp__P51594(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27628,24 +27443,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P293674_mk(s); - r0 = globals.brightness___291143; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P51596_mk(s); + r0 = globals.brightness___48705; s.tmp_1 = r0; r0 = (s.tmp_1 + 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 1070; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1177; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P293672.info = {"start":9107,"length":85,"line":285,"column":4,"endLine":287,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"brightnessUp","argumentNames":[]} +scene_systemMenu_brightnessUp__P51594.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__P293672_mk(s) { +function scene_systemMenu_brightnessUp__P51594_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P293672, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P51594, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27655,7 +27470,7 @@ function scene_systemMenu_brightnessUp__P293672_mk(s) { -function scene_systemMenu_volumeDown__P293671(s) { +function scene_systemMenu_volumeDown__P51593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27665,54 +27480,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___304681 = undefined; - s.remainder___304684 = undefined; - s.newVolume___304687 = undefined; - s.tmp_0 = music_volume__P291002_mk(s); - s.callLocIdx = 1067; s.pc = 3; return s.tmp_0; + s.v___62852 = undefined; + s.remainder___62855 = undefined; + s.newVolume___62858 = undefined; + s.tmp_0 = music_volume__P48562_mk(s); + s.callLocIdx = 1174; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.v___304681 = (r0); - r0 = (s.v___304681 % 32); - s.remainder___304684 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___304684); + s.v___62852 = (r0); + r0 = (s.v___62852 % 32); + s.remainder___62855 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___62855); if (!r0) { step = 1; continue; } - r0 = s.remainder___304684; + r0 = s.remainder___62855; { step = 2; continue; } case 1: r0 = 32; case 2: // jmp value (already in r0) s.tmp_0 = r0; - r0 = (s.v___304681 - s.tmp_0); - s.newVolume___304687 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P293669_mk(s); - s.tmp_0.arg0 = s.newVolume___304687; - s.callLocIdx = 1068; s.pc = 4; return s.tmp_0; + r0 = (s.v___62852 - s.tmp_0); + s.newVolume___62858 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P51591_mk(s); + s.tmp_0.arg0 = s.newVolume___62858; + s.callLocIdx = 1175; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P293671.info = {"start":8914,"length":187,"line":278,"column":4,"endLine":283,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"volumeDown","argumentNames":[]} +scene_systemMenu_volumeDown__P51593.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__P293671_mk(s) { +function scene_systemMenu_volumeDown__P51593_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P293671, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P51593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___304681: undefined, - remainder___304684: undefined, - newVolume___304687: undefined, + v___62852: undefined, + remainder___62855: undefined, + newVolume___62858: undefined, } } -function scene_systemMenu_setVolume__P293669(s) { +function scene_systemMenu_setVolume__P51591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27726,33 +27541,33 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = music_setVolume__P291001_mk(s); + s.tmp_0 = music_setVolume__P48561_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1062; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1169; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = music_playTone__P291003_mk(s); + s.tmp_0 = music_playTone__P48563_mk(s); s.tmp_0.arg0 = 440; s.tmp_0.arg1 = 500; - s.callLocIdx = 1063; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1170; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P291248_mk(s); + s.tmp_0 = settings_writeNumber__P48813_mk(s); s.tmp_0.arg0 = "#volume"; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 1064; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1171; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P293669.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]} +scene_systemMenu_setVolume__P51591.info = {"start":8565,"length":166,"line":265,"column":4,"endLine":269,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setVolume","argumentNames":["newVolume"]} -function scene_systemMenu_setVolume__P293669_mk(s) { +function scene_systemMenu_setVolume__P51591_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P293669, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P51591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27762,7 +27577,7 @@ function scene_systemMenu_setVolume__P293669_mk(s) { -function music_playTone__P291003(s) { +function music_playTone__P48563(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27772,7 +27587,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___304522 = undefined; + s.id___62693 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -27797,29 +27612,29 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P293110_mk(s); + s.tmp_2 = music_playNoteCore__P51020_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_2.arg2 = r0; - s.callLocIdx = 76; s.pc = 5; return s.tmp_2; + s.callLocIdx = 69; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_0 = pause__P289811_mk(s); + s.tmp_0 = pause__P47368_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_0.arg0 = r0; - s.callLocIdx = 77; s.pc = 6; return s.tmp_0; + s.callLocIdx = 70; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; { step = 4; continue; } case 3: - r0 = (globals.playToneID___293112 + 1); + r0 = (globals.playToneID___51022 + 1); s.tmp_0 = r0; - globals.playToneID___293112 = (r0); - s.id___304522 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, inline__P304528); + globals.playToneID___51022 = (r0); + s.id___62693 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P62699); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___304522); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___62693); 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); @@ -27828,17 +27643,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone__P291003.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__P48563.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__P291003_mk(s) { +function music_playTone__P48563_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P291003, depth: s.depth + 1, + parent: s, fn: music_playTone__P48563, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___304522: undefined, + id___62693: undefined, arg0: undefined, arg1: undefined, } } @@ -27847,7 +27662,7 @@ function music_playTone__P291003_mk(s) { -function inline__P304528(s) { +function music_playTone_inline__P62699(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27857,14 +27672,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___304529 = undefined; - s.now___304539 = undefined; - s.d___304542 = undefined; - s.t___304546 = undefined; + s.pos___62700 = undefined; + s.now___62710 = undefined; + s.d___62713 = undefined; + s.t___62717 = undefined; r0 = pxsim.control.millis(); - s.pos___304529 = (r0); + s.pos___62700 = (r0); case 1: - r0 = (s.caps[0] == globals.playToneID___293112); + r0 = (s.caps[0] == globals.playToneID___51022); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -27880,31 +27695,31 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } r0 = pxsim.control.millis(); - s.now___304539 = (r0); - r0 = (s.pos___304529 - s.now___304539); - s.d___304542 = (r0); - s.tmp_0 = Math_min__P289535_mk(s); + s.now___62710 = (r0); + r0 = (s.pos___62700 - s.now___62710); + s.d___62713 = (r0); + s.tmp_0 = Math_min__P47086_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 500; - s.callLocIdx = 78; s.pc = 7; return s.tmp_0; + s.callLocIdx = 71; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.t___304546 = (r0); + s.t___62717 = (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___304546); + r0 = (s.tmp_2 - s.t___62717); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___304529 + s.t___304546); - s.pos___304529 = (r0); - s.tmp_0 = music_playNoteCore__P293110_mk(s); - r0 = (s.d___304542 - 1); + r0 = (s.pos___62700 + s.t___62717); + s.pos___62700 = (r0); + s.tmp_0 = music_playNoteCore__P51020_mk(s); + r0 = (s.d___62713 - 1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___304546; - s.callLocIdx = 79; s.pc = 8; return s.tmp_0; + s.tmp_0.arg2 = s.t___62717; + s.callLocIdx = 72; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); @@ -27913,20 +27728,20 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P289811_mk(s); - r0 = (s.d___304542 + s.t___304546); + s.tmp_2 = pause__P47368_mk(s); + r0 = (s.d___62713 + s.t___62717); s.tmp_2.arg0 = r0; - s.callLocIdx = 80; s.pc = 9; return s.tmp_2; + s.callLocIdx = 73; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = pause__P289811_mk(s); - r0 = (s.d___304542 + s.t___304546); + s.tmp_0 = pause__P47368_mk(s); + r0 = (s.d___62713 + s.t___62717); s.tmp_1 = r0; r0 = (s.tmp_1 - 100); s.tmp_0.arg0 = r0; - s.callLocIdx = 81; s.pc = 10; return s.tmp_0; + s.callLocIdx = 74; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 5: @@ -27936,27 +27751,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P304528.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} +music_playTone_inline__P62699.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P304528_mk(s) { +function music_playTone_inline__P62699_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304528, depth: s.depth + 1, + parent: s, fn: music_playTone_inline__P62699, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___304529: undefined, - now___304539: undefined, - d___304542: undefined, - t___304546: undefined, + pos___62700: undefined, + now___62710: undefined, + d___62713: undefined, + t___62717: undefined, } } -function music_playNoteCore__P293110(s) { +function music_playNoteCore__P51020(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27966,7 +27781,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___304576 = undefined; + s.buf___62747 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -27974,39 +27789,39 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim.control.createBuffer(12); - s.buf___304576 = (r0); - s.tmp_0 = music_addNote__P293117_mk(s); - s.tmp_0.arg0 = s.buf___304576; + s.buf___62747 = (r0); + s.tmp_0 = music_addNote__P51027_mk(s); + s.tmp_0.arg0 = s.buf___62747; 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__P291002_mk(s); - s.callLocIdx = 74; s.pc = 2; return s.tmp_1; + s.tmp_1 = music_volume__P48562_mk(s); + s.callLocIdx = 67; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg7 = r0; s.tmp_0.arg8 = s.arg1; - s.callLocIdx = 75; s.pc = 1; return s.tmp_0; + s.callLocIdx = 68; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___304576); + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___62747); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P293110.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__P51020.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__P293110_mk(s) { +function music_playNoteCore__P51020_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P293110, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P51020, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___304576: undefined, + buf___62747: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28016,7 +27831,7 @@ function music_playNoteCore__P293110_mk(s) { -function music_addNote__P293117(s) { +function music_addNote__P51027(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28084,12 +27899,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_addNote__P293117.info = {"start":10086,"length":904,"line":315,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} +music_addNote__P51027.info = {"start":10086,"length":904,"line":315,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"addNote","argumentNames":["sndInstr","sndInstrPtr","ms","beg","end","soundWave","hz","volume","endHz"]} -function music_addNote__P293117_mk(s) { +function music_addNote__P51027_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P293117, depth: s.depth + 1, + parent: s, fn: music_addNote__P51027, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28110,7 +27925,7 @@ function music_addNote__P293117_mk(s) { -function music_setVolume__P291001(s) { +function music_setVolume__P48561(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28124,16 +27939,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P289531_mk(s); + s.tmp_0 = Math_clamp__P47082_mk(s); s.tmp_0.arg0 = 0; s.tmp_0.arg1 = 255; r0 = (s.arg0 | 0); s.tmp_0.arg2 = r0; - s.callLocIdx = 71; s.pc = 3; return s.tmp_0; + s.callLocIdx = 64; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.globalVolume___293105 = (r0); - r0 = (globals.globalVolume___293105 > 0); + globals.globalVolume___51015 = (r0); + r0 = (globals.globalVolume___51015 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -28149,12 +27964,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_setVolume__P291001.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__P48561.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__P291001_mk(s) { +function music_setVolume__P48561_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P291001, depth: s.depth + 1, + parent: s, fn: music_setVolume__P48561, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28165,7 +27980,7 @@ function music_setVolume__P291001_mk(s) { -function music_enableAmp__P293108(s) { +function music_enableAmp__P51018(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28183,12 +27998,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_enableAmp__P293108.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__P51018.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__P293108_mk(s) { +function music_enableAmp__P51018_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P293108, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P51018, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28197,7 +28012,7 @@ function music_enableAmp__P293108_mk(s) { -function scene_systemMenu_volumeUp__P293670(s) { +function scene_systemMenu_volumeUp__P51592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28207,47 +28022,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___304490 = undefined; - s.remainder___304493 = undefined; - s.newVolume___304496 = undefined; - s.tmp_0 = music_volume__P291002_mk(s); - s.callLocIdx = 1065; s.pc = 1; return s.tmp_0; + s.v___62661 = undefined; + s.remainder___62664 = undefined; + s.newVolume___62667 = undefined; + s.tmp_0 = music_volume__P48562_mk(s); + s.callLocIdx = 1172; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.v___304490 = (r0); - r0 = (s.v___304490 % 32); - s.remainder___304493 = (r0); - r0 = (s.v___304490 + 32); + s.v___62661 = (r0); + r0 = (s.v___62661 % 32); + s.remainder___62664 = (r0); + r0 = (s.v___62661 + 32); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___304493); - s.newVolume___304496 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P293669_mk(s); - s.tmp_0.arg0 = s.newVolume___304496; - s.callLocIdx = 1066; s.pc = 2; return s.tmp_0; + r0 = (s.tmp_0 - s.remainder___62664); + s.newVolume___62667 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P51591_mk(s); + s.tmp_0.arg0 = s.newVolume___62667; + s.callLocIdx = 1173; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P293670.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__P51592.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__P293670_mk(s) { +function scene_systemMenu_volumeUp__P51592_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P293670, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P51592, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___304490: undefined, - remainder___304493: undefined, - newVolume___304496: undefined, + v___62661: undefined, + remainder___62664: undefined, + newVolume___62667: undefined, } } -function game_consoleOverlay_isVisible__P292074(s) { +function game_consoleOverlay_isVisible__P49760(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28257,7 +28072,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___293711); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___51633); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -28267,12 +28082,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_isVisible__P292074.info = {"start":422,"length":68,"line":11,"column":4,"endLine":13,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"isVisible","argumentNames":[]} +game_consoleOverlay_isVisible__P49760.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__P292074_mk(s) { +function game_consoleOverlay_isVisible__P49760_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_isVisible__P292074, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_isVisible__P49760, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28283,7 +28098,7 @@ function game_consoleOverlay_isVisible__P292074_mk(s) { -function scene_systemMenu_closeMenu__P292052(s) { +function scene_systemMenu_closeMenu__P49738(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28293,21 +28108,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___293665); + r0 = pxsim_numops_toBoolDecr(globals.instance___51587); if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P292051_mk(s); - s.tmp_0.arg0 = globals.instance___293665; - s.callLocIdx = 1081; s.pc = 3; return s.tmp_0; + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P49737_mk(s); + s.tmp_0.arg0 = globals.instance___51587; + s.callLocIdx = 1188; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.instance___293665 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P291373_mk(s); + globals.instance___51587 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P48951_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 1082; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1189; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = game_popScene__P291960_mk(s); - s.callLocIdx = 1083; s.pc = 5; return s.tmp_0; + s.tmp_0 = game_popScene__P49645_mk(s); + s.callLocIdx = 1190; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -28316,12 +28131,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_closeMenu__P292052.info = {"start":10129,"length":216,"line":320,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} +scene_systemMenu_closeMenu__P49738.info = {"start":10129,"length":216,"line":320,"column":4,"endLine":327,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"closeMenu","argumentNames":[]} -function scene_systemMenu_closeMenu__P292052_mk(s) { +function scene_systemMenu_closeMenu__P49738_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_closeMenu__P292052, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P49738, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -28330,7 +28145,7 @@ function scene_systemMenu_closeMenu__P292052_mk(s) { -function scene_systemMenu_PauseMenu_dispose__P292051(s) { +function scene_systemMenu_PauseMenu_dispose__P49737(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28345,16 +28160,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C292045_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C49731_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__P289514_mk(s); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); r0 = s.arg0.fields["options"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = inline__P304001; - s.callLocIdx = 1058; s.pc = 3; return s.tmp_1; + s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P62172; + s.callLocIdx = 1165; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["options"] = (undefined); @@ -28364,12 +28179,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose__P292051.info = {"start":7732,"length":165,"line":243,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} +scene_systemMenu_PauseMenu_dispose__P49737.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__P292051_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P49737_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P292051, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P49737, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28380,7 +28195,7 @@ function scene_systemMenu_PauseMenu_dispose__P292051_mk(s) { -function inline__P304001(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P62172(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28394,21 +28209,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_systemMenu_MenuOption_dispose__P292044_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_dispose__P49730_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1057; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1164; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P304001.info = {"start":7813,"length":16,"line":245,"column":37,"endLine":245,"endColumn":53,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["o"]} +scene_systemMenu_PauseMenu_dispose_inline__P62172.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__P304001_mk(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P62172_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304001, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P62172, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28418,7 +28233,7 @@ function inline__P304001_mk(s) { -function scene_systemMenu_MenuOption_dispose__P292044(s) { +function scene_systemMenu_MenuOption_dispose__P49730(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28433,25 +28248,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C292037_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C49723_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__P291515_mk(s); + s.tmp_1 = Sprite_destroy__P49170_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; s.tmp_1.arg2 = undefined; - s.callLocIdx = 977; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1084; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.tmp_0 = Sprite_destroy__P291515_mk(s); + s.tmp_0 = Sprite_destroy__P49170_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 978; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1085; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = (s.arg0).fields["card"] = (undefined); @@ -28462,12 +28277,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_dispose__P292044.info = {"start":1812,"length":216,"line":77,"column":8,"endLine":84,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"dispose","argumentNames":["this"]} +scene_systemMenu_MenuOption_dispose__P49730.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__P292044_mk(s) { +function scene_systemMenu_MenuOption_dispose__P49730_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P292044, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P49730, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28478,7 +28293,7 @@ function scene_systemMenu_MenuOption_dispose__P292044_mk(s) { -function game_popScene__P291960(s) { +function game_popScene__P49645(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28488,59 +28303,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___303930 = undefined; - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 941; s.pc = 11; return s.tmp_0; + s.oldScene___62101 = undefined; + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1050; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.oldScene___303930 = (r0); - s.tmp_0 = r0 = globals._sceneStack___293414; + s.oldScene___62101 = (r0); + s.tmp_0 = r0 = globals._sceneStack___51336; 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___293414); + r0 = pxsim_Array__length(globals._sceneStack___51336); 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___293414); - globals._scene___293413 = (r0); - s.tmp_0 = control_popEventContext__P289808_mk(s); - s.callLocIdx = 942; s.pc = 12; return s.tmp_0; + r0 = pxsim_Array_.pop(globals._sceneStack___51336); + globals._scene___51335 = (r0); + s.tmp_0 = control_popEventContext__P47365_mk(s); + s.callLocIdx = 1051; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; { step = 6; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___293413); + r0 = pxsim_numops_toBoolDecr(globals._scene___51335); if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P289808_mk(s); - s.callLocIdx = 943; s.pc = 13; return s.tmp_0; + s.tmp_0 = control_popEventContext__P47365_mk(s); + s.callLocIdx = 1052; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - globals._scene___293413 = (undefined); + globals._scene___51335 = (undefined); case 4: case 5: case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___293413); + r0 = pxsim_numops_toBoolDecr(globals._scene___51335); if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P292133_mk(s); - s.callLocIdx = 944; s.pc = 14; return s.tmp_0; + s.tmp_0 = particles_enableAll__P49819_mk(s); + s.callLocIdx = 1053; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 7: case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___293416); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___51338); if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P303951); + r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P62122); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___303930); - s.tmp_1 = helpers_arrayForEach__P289514_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___293416; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___62101); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___51338; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 946; s.pc = 15; return s.tmp_1; + s.callLocIdx = 1055; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; case 9: @@ -28549,23 +28364,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_popScene__P291960.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +game_popScene__P49645.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__P291960_mk(s) { +function game_popScene__P49645_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P291960, depth: s.depth + 1, + parent: s, fn: game_popScene__P49645, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___303930: undefined, + oldScene___62101: undefined, } } -function inline__P303951(s) { +function game_popScene_inline__P62122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28583,19 +28398,19 @@ switch (step) { s.tmp_0.argL = s.arg0; s.tmp_0.arg0 = s.caps[0]; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 945; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1054; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303951.info = {"start":2545,"length":18,"line":91,"column":38,"endLine":91,"endColumn":56,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +game_popScene_inline__P62122.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__P303951_mk(s) { +function game_popScene_inline__P62122_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303951, depth: s.depth + 1, + parent: s, fn: game_popScene_inline__P62122, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28605,7 +28420,7 @@ function inline__P303951_mk(s) { -function particles_enableAll__P292133(s) { +function particles_enableAll__P49819(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28615,22 +28430,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___303955 = undefined; - s.tmp_0 = particles_particleSources__P293777_mk(s); - s.callLocIdx = 1186; s.pc = 3; return s.tmp_0; + s.sources___62126 = undefined; + s.tmp_0 = particles_particleSources__P51684_mk(s); + s.callLocIdx = 1293; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___303955 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___303955); + s.sources___62126 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___62126); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P289514_mk(s); - s.tmp_0.arg0 = s.sources___303955; - s.tmp_0.arg1 = inline__P303961; - s.callLocIdx = 1188; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P47064_mk(s); + s.tmp_0.arg0 = s.sources___62126; + s.tmp_0.arg1 = particles_enableAll_inline__P62132; + s.callLocIdx = 1295; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P293773_mk(s); - s.callLocIdx = 1189; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P51680_mk(s); + s.callLocIdx = 1296; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -28639,22 +28454,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_enableAll__P292133.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +particles_enableAll__P49819.info = {"start":12649,"length":193,"line":413,"column":4,"endLine":419,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} -function particles_enableAll__P292133_mk(s) { +function particles_enableAll__P49819_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P292133, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P49819, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___303955: undefined, + sources___62126: undefined, } } -function inline__P303961(s) { +function particles_enableAll_inline__P62132(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28668,22 +28483,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P292114_mk(s); + s.tmp_0 = particles_ParticleSource_enabled__P49800_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; - s.callLocIdx = 1187; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1294; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = true; return leave(s, r0) default: oops() } } } -inline__P303961.info = {"start":12756,"length":21,"line":415,"column":28,"endLine":415,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_enableAll_inline__P62132.info = {"start":12773,"length":21,"line":416,"column":28,"endLine":416,"endColumn":49,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P303961_mk(s) { +function particles_enableAll_inline__P62132_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303961, depth: s.depth + 1, + parent: s, fn: particles_enableAll_inline__P62132, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28693,7 +28508,7 @@ function inline__P303961_mk(s) { -function control_popEventContext__P289808(s) { +function control_popEventContext__P47365(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28703,9 +28518,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___303968 = undefined; - s.context___303976 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___293074); + s.ctx___62139 = undefined; + s.context___62147 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___50984); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -28714,9 +28529,9 @@ switch (step) { { step = 7; continue; } case 1: case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___293074); - s.ctx___303968 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___303968); + r0 = pxsim_Array_.pop(globals.eventContexts___50984); + s.ctx___62139 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___62139); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -28725,53 +28540,53 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_2 = control_EventContext_unregister__P289800_mk(s); - s.tmp_2.arg0 = s.ctx___303968; - s.callLocIdx = 68; s.pc = 8; return s.tmp_2; + s.tmp_2 = control_EventContext_unregister__P47357_mk(s); + s.tmp_2.arg0 = s.ctx___62139; + s.callLocIdx = 61; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___293074; - r0 = pxsim_Array__length(globals.eventContexts___293074); + s.tmp_0 = r0 = globals.eventContexts___50984; + r0 = pxsim_Array__length(globals.eventContexts___50984); 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___303976 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___303976); + s.context___62147 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___62147); if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P289799_mk(s); - s.tmp_0.arg0 = s.context___303976; - s.callLocIdx = 69; s.pc = 9; return s.tmp_0; + s.tmp_0 = control_EventContext_register__P47356_mk(s); + s.tmp_0.arg0 = s.context___62147; + s.callLocIdx = 62; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; { step = 6; continue; } case 5: - globals.eventContexts___293074 = (undefined); + globals.eventContexts___50984 = (undefined); case 6: case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_popEventContext__P289808.info = {"start":7568,"length":413,"line":232,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +control_popEventContext__P47365.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__P289808_mk(s) { +function control_popEventContext__P47365_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P289808, depth: s.depth + 1, + parent: s, fn: control_popEventContext__P47365, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ctx___303968: undefined, - context___303976: undefined, + ctx___62139: undefined, + context___62147: undefined, } } -function control_EventContext_register__P289799(s) { +function control_EventContext_register__P47356(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28781,59 +28596,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___303989 = undefined; - s.unnamed22610___U1 = undefined; - s.unnamed22611___U2 = undefined; + s.h___62160 = undefined; + s.unnamed856___U1 = undefined; + s.unnamed857___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C289793_VT)) failedCast(r0); - s.h___303989 = (undefined); + if (!checkSubtype(r0, control_EventContext__C47350_VT)) failedCast(r0); + s.h___62160 = (undefined); r0 = s.arg0.fields["handlers"]; - s.unnamed22610___U1 = (r0); - s.unnamed22611___U2 = (0); + s.unnamed856___U1 = (r0); + s.unnamed857___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed22611___U2; - r0 = pxsim_Array__length(s.unnamed22610___U1); + s.tmp_0 = r0 = s.unnamed857___U2; + r0 = pxsim_Array__length(s.unnamed856___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed22610___U1, s.unnamed22611___U2); - s.h___303989 = (r0); - s.tmp_2 = control_EventHandler_register__P293067_mk(s); - s.tmp_2.arg0 = s.h___303989; - s.callLocIdx = 59; s.pc = 3; return s.tmp_2; + r0 = pxsim_Array__getAt(s.unnamed856___U1, s.unnamed857___U2); + s.h___62160 = (r0); + s.tmp_2 = control_EventHandler_register__P50977_mk(s); + s.tmp_2.arg0 = s.h___62160; + s.callLocIdx = 52; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - r0 = (s.unnamed22611___U2 + 1); - s.unnamed22611___U2 = (r0); + r0 = (s.unnamed857___U2 + 1); + s.unnamed857___U2 = (r0); { step = 1; continue; } case 2: - s.unnamed22610___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P293072_mk(s); + s.unnamed856___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P50982_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 60; s.pc = 4; return s.tmp_0; + s.callLocIdx = 53; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_register__P289799.info = {"start":4386,"length":138,"line":131,"column":8,"endLine":135,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +control_EventContext_register__P47356.info = {"start":4386,"length":138,"line":131,"column":8,"endLine":135,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function control_EventContext_register__P289799_mk(s) { +function control_EventContext_register__P47356_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P289799, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P47356, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___303989: undefined, - unnamed22610___U1: undefined, - unnamed22611___U2: undefined, + h___62160: undefined, + unnamed856___U1: undefined, + unnamed857___U2: undefined, arg0: undefined, } } @@ -28841,7 +28656,7 @@ function control_EventContext_register__P289799_mk(s) { -function controller__setUserEventsEnabled__P291373(s) { +function controller__setUserEventsEnabled__P48951(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28855,17 +28670,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals._userEventsEnabled___293229 = (s.arg0); + globals._userEventsEnabled___51157 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller__setUserEventsEnabled__P291373.info = {"start":19246,"length":101,"line":587,"column":4,"endLine":589,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} +controller__setUserEventsEnabled__P48951.info = {"start":10070,"length":101,"line":291,"column":4,"endLine":293,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"_setUserEventsEnabled","argumentNames":["enabled"]} -function controller__setUserEventsEnabled__P291373_mk(s) { +function controller__setUserEventsEnabled__P48951_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__setUserEventsEnabled__P291373, depth: s.depth + 1, + parent: s, fn: controller__setUserEventsEnabled__P48951, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28874,7 +28689,7 @@ function controller__setUserEventsEnabled__P291373_mk(s) { -function scene_systemMenu_MenuOption_constructor__P292038(s) { +function scene_systemMenu_MenuOption_constructor__P49724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28892,7 +28707,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C292037_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C49723_VT)) failedCast(r0); r0 = (s.arg0).fields["iconImage"] = (s.arg1); r0 = (s.arg0).fields["getText"] = (s.arg2); r0 = (s.arg0).fields["action"] = (s.arg3); @@ -28900,12 +28715,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_constructor__P292038.info = {"start":786,"length":108,"line":38,"column":8,"endLine":39,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","iconImage","getText","action"]} +scene_systemMenu_MenuOption_constructor__P49724.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__P292038_mk(s) { +function scene_systemMenu_MenuOption_constructor__P49724_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P292038, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_constructor__P49724, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -28917,7 +28732,7 @@ function scene_systemMenu_MenuOption_constructor__P292038_mk(s) { -function helpers_screenBrightness__P291155(s) { +function helpers_screenBrightness__P48718(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28931,16 +28746,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = globals.brightness___291143; + r0 = globals.brightness___48705; return leave(s, r0) default: oops() } } } -helpers_screenBrightness__P291155.info = {"start":6459,"length":98,"line":217,"column":4,"endLine":219,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} +helpers_screenBrightness__P48718.info = {"start":7643,"length":98,"line":244,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"screenBrightness","argumentNames":["img"]} -function helpers_screenBrightness__P291155_mk(s) { +function helpers_screenBrightness__P48718_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P291155, depth: s.depth + 1, + parent: s, fn: helpers_screenBrightness__P48718, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -28949,7 +28764,7 @@ function helpers_screenBrightness__P291155_mk(s) { -function music_volume__P291002(s) { +function music_volume__P48562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28959,20 +28774,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P293109_mk(s); - s.callLocIdx = 73; s.pc = 1; return s.tmp_0; + s.tmp_0 = music_initVolume__P51019_mk(s); + s.callLocIdx = 66; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals.globalVolume___293105; + r0 = globals.globalVolume___51015; return leave(s, r0) default: oops() } } } -music_volume__P291002.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +music_volume__P48562.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} -function music_volume__P291002_mk(s) { +function music_volume__P48562_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P291002, depth: s.depth + 1, + parent: s, fn: music_volume__P48562, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -28981,7 +28796,7 @@ function music_volume__P291002_mk(s) { -function music_initVolume__P293109(s) { +function music_initVolume__P51019(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28991,15 +28806,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___293105 === null); + r0 = (globals.globalVolume___51015 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.globalVolume___293105 = (0); - s.tmp_0 = music_setVolume__P291001_mk(s); + globals.globalVolume___51015 = (0); + s.tmp_0 = music_setVolume__P48561_mk(s); r0 = pxsim_pxtcore.getConfig(59, 128); s.tmp_0.arg0 = r0; - s.callLocIdx = 70; s.pc = 3; return s.tmp_0; + s.callLocIdx = 63; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: @@ -29008,12 +28823,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_initVolume__P293109.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +music_initVolume__P51019.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__P293109_mk(s) { +function music_initVolume__P51019_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P293109, depth: s.depth + 1, + parent: s, fn: music_initVolume__P51019, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29022,7 +28837,7 @@ function music_initVolume__P293109_mk(s) { -function helpers_arrayConcat__P289518(s) { +function helpers_arrayConcat__P47068(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29032,74 +28847,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___304244 = undefined; - s.value___304247 = undefined; - s.unnamed22600___U2 = undefined; - s.unnamed22601___U3 = undefined; - s.value___304254 = undefined; - s.unnamed22602___U5 = undefined; - s.unnamed22603___U6 = undefined; + s.out___62415 = undefined; + s.value___62418 = undefined; + s.unnamed846___U2 = undefined; + s.unnamed847___U3 = undefined; + s.value___62425 = undefined; + s.unnamed848___U5 = undefined; + s.unnamed849___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.out___304244 = (r0); - s.value___304247 = (undefined); - s.unnamed22600___U2 = (s.arg0); - s.unnamed22601___U3 = (0); + s.out___62415 = (r0); + s.value___62418 = (undefined); + s.unnamed846___U2 = (s.arg0); + s.unnamed847___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed22601___U3; - r0 = pxsim_Array__length(s.unnamed22600___U2); + s.tmp_0 = r0 = s.unnamed847___U3; + r0 = pxsim_Array__length(s.unnamed846___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed22600___U2, s.unnamed22601___U3); - s.value___304247 = (r0); - r0 = pxsim_Array__push(s.out___304244, s.value___304247); - r0 = (s.unnamed22601___U3 + 1); - s.unnamed22601___U3 = (r0); + r0 = pxsim_Array__getAt(s.unnamed846___U2, s.unnamed847___U3); + s.value___62418 = (r0); + r0 = pxsim_Array__push(s.out___62415, s.value___62418); + r0 = (s.unnamed847___U3 + 1); + s.unnamed847___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed22600___U2 = (undefined); - s.value___304254 = (undefined); - s.unnamed22602___U5 = (s.arg1); - s.unnamed22603___U6 = (0); + s.unnamed846___U2 = (undefined); + s.value___62425 = (undefined); + s.unnamed848___U5 = (s.arg1); + s.unnamed849___U6 = (0); case 3: - s.tmp_0 = r0 = s.unnamed22603___U6; - r0 = pxsim_Array__length(s.unnamed22602___U5); + s.tmp_0 = r0 = s.unnamed849___U6; + r0 = pxsim_Array__length(s.unnamed848___U5); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed22602___U5, s.unnamed22603___U6); - s.value___304254 = (r0); - r0 = pxsim_Array__push(s.out___304244, s.value___304254); - r0 = (s.unnamed22603___U6 + 1); - s.unnamed22603___U6 = (r0); + r0 = pxsim_Array__getAt(s.unnamed848___U5, s.unnamed849___U6); + s.value___62425 = (r0); + r0 = pxsim_Array__push(s.out___62415, s.value___62425); + r0 = (s.unnamed849___U6 + 1); + s.unnamed849___U6 = (r0); { step = 3; continue; } case 4: - s.unnamed22602___U5 = (undefined); - r0 = s.out___304244; + s.unnamed848___U5 = (undefined); + r0 = s.out___62415; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P289518.info = {"start":8639,"length":264,"line":288,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayConcat","argumentNames":["arr","otherArr"]} +helpers_arrayConcat__P47068.info = {"start":8639,"length":264,"line":288,"column":4,"endLine":297,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayConcat","argumentNames":["arr","otherArr"]} -function helpers_arrayConcat__P289518_mk(s) { +function helpers_arrayConcat__P47068_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P289518, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P47068, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___304244: undefined, - value___304247: undefined, - unnamed22600___U2: undefined, - unnamed22601___U3: undefined, - value___304254: undefined, - unnamed22602___U5: undefined, - unnamed22603___U6: undefined, + out___62415: undefined, + value___62418: undefined, + unnamed846___U2: undefined, + unnamed847___U3: undefined, + value___62425: undefined, + unnamed848___U5: undefined, + unnamed849___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -29108,7 +28923,7 @@ function helpers_arrayConcat__P289518_mk(s) { -function scene_systemMenu_PauseMenu_show__P292047(s) { +function scene_systemMenu_PauseMenu_show__P49733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29118,34 +28933,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___303461 = undefined; - s.i___303462 = undefined; + s.current___61632 = undefined; + s.i___61633 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C292045_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C49731_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; s.tmp_2 = if_generator_1_mk(s); s.tmp_2.arg0 = s.arg0; if (!s.tmp_2.arg0.vtable.iface) { setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "generator"), 1); - s.callLocIdx = 990; s.pc = 3; return s.tmp_2; + s.callLocIdx = 1097; s.pc = 3; return s.tmp_2; } else { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["generator"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["generator"], 1); s.callLocIdx = 990; s.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 990; s.pc = 3; return s.tmp_2;; } - else { s.callLocIdx = 990; 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 = 1097; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 1097; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 1097; 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___303462 = (0); + s.i___61633 = (0); case 1: - s.tmp_1 = r0 = s.i___303462; + s.tmp_1 = r0 = s.i___61633; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -29156,22 +28971,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___303462); - s.current___303461 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P292039_mk(s); - s.tmp_0.arg0 = s.current___303461; - s.callLocIdx = 991; s.pc = 4; return s.tmp_0; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___61633); + s.current___61632 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P49725_mk(s); + s.tmp_0.arg0 = s.current___61632; + s.callLocIdx = 1098; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P292042_mk(s); - s.tmp_0.arg0 = s.current___303461; + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P49728_mk(s); + s.tmp_0.arg0 = s.current___61632; r0 = s.arg0.fields["theme"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 992; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1099; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_position__P292040_mk(s); - s.tmp_0.arg0 = s.current___303461; + s.tmp_0 = scene_systemMenu_MenuOption_position__P49726_mk(s); + s.tmp_0.arg0 = s.current___61632; s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; @@ -29181,12 +28996,12 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["padding"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["padding"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 993; s.pc = 7; return s.tmp_2; } + else { s.callLocIdx = 1100; s.pc = 7; return s.tmp_2; } } case 7: r0 = s.retval; s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___303462; + s.tmp_5 = r0 = s.i___61633; s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_7.arg0 = r0; @@ -29196,7 +29011,7 @@ switch (step) { s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["cardsPerRow"]; } else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 994; s.pc = 8; return s.tmp_7; } + else { s.callLocIdx = 1101; s.pc = 8; return s.tmp_7; } } case 8: r0 = s.retval; @@ -29212,7 +29027,7 @@ switch (step) { s.tmp_10.fn = s.tmp_10.arg0.vtable.iface["cardWidth"]; if (s.tmp_10.fn == null) { s.retval = s.tmp_10.arg0.fields["cardWidth"]; } else if (!s.tmp_10.fn.isGetter) { s.retval = bind(s.tmp_10); } - else { s.callLocIdx = 995; s.pc = 9; return s.tmp_10; } + else { s.callLocIdx = 1102; s.pc = 9; return s.tmp_10; } } case 9: r0 = s.retval; @@ -29226,7 +29041,7 @@ switch (step) { s.tmp_12.fn = s.tmp_12.arg0.vtable.iface["cardSpacing"]; if (s.tmp_12.fn == null) { s.retval = s.tmp_12.arg0.fields["cardSpacing"]; } else if (!s.tmp_12.fn.isGetter) { s.retval = bind(s.tmp_12); } - else { s.callLocIdx = 996; s.pc = 10; return s.tmp_12; } + else { s.callLocIdx = 1103; s.pc = 10; return s.tmp_12; } } case 10: r0 = s.retval; @@ -29246,12 +29061,12 @@ switch (step) { s.tmp_14.fn = s.tmp_14.arg0.vtable.iface["cardsTop"]; if (s.tmp_14.fn == null) { s.retval = s.tmp_14.arg0.fields["cardsTop"]; } else if (!s.tmp_14.fn.isGetter) { s.retval = bind(s.tmp_14); } - else { s.callLocIdx = 997; s.pc = 11; return s.tmp_14; } + else { s.callLocIdx = 1104; s.pc = 11; return s.tmp_14; } } case 11: r0 = s.retval; s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___303462; + s.tmp_17 = r0 = s.i___61633; s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_19.arg0 = r0; @@ -29261,7 +29076,7 @@ switch (step) { s.tmp_19.fn = s.tmp_19.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_19.fn == null) { s.retval = s.tmp_19.arg0.fields["cardsPerRow"]; } else if (!s.tmp_19.fn.isGetter) { s.retval = bind(s.tmp_19); } - else { s.callLocIdx = 998; s.pc = 12; return s.tmp_19; } + else { s.callLocIdx = 1105; s.pc = 12; return s.tmp_19; } } case 12: r0 = s.retval; @@ -29277,7 +29092,7 @@ switch (step) { s.tmp_22.fn = s.tmp_22.arg0.vtable.iface["cardWidth"]; if (s.tmp_22.fn == null) { s.retval = s.tmp_22.arg0.fields["cardWidth"]; } else if (!s.tmp_22.fn.isGetter) { s.retval = bind(s.tmp_22); } - else { s.callLocIdx = 999; s.pc = 13; return s.tmp_22; } + else { s.callLocIdx = 1106; s.pc = 13; return s.tmp_22; } } case 13: r0 = s.retval; @@ -29291,7 +29106,7 @@ switch (step) { s.tmp_24.fn = s.tmp_24.arg0.vtable.iface["cardSpacing"]; if (s.tmp_24.fn == null) { s.retval = s.tmp_24.arg0.fields["cardSpacing"]; } else if (!s.tmp_24.fn.isGetter) { s.retval = bind(s.tmp_24); } - else { s.callLocIdx = 1000; s.pc = 14; return s.tmp_24; } + else { s.callLocIdx = 1107; s.pc = 14; return s.tmp_24; } } case 14: r0 = s.retval; @@ -29302,116 +29117,116 @@ switch (step) { s.tmp_15 = r0; r0 = (s.tmp_13 + s.tmp_15); s.tmp_0.arg2 = r0; - s.callLocIdx = 1001; s.pc = 6; return s.tmp_0; + s.callLocIdx = 1108; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___303462 + 1); - s.i___303462 = (r0); + r0 = (s.i___61633 + 1); + s.i___61633 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = controller__setUserEventsEnabled__P291373_mk(s); + s.tmp_0 = controller__setUserEventsEnabled__P48951_mk(s); s.tmp_0.arg0 = false; - s.callLocIdx = 1002; s.pc = 15; return s.tmp_0; + s.callLocIdx = 1109; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P303525); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P61696); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P291329_mk(s); - s.tmp_1.arg0 = globals.A___291296; + s.tmp_1 = controller_Button_onEvent__P48941_mk(s); + s.tmp_1.arg0 = globals.A___48862; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1004; s.pc = 16; return s.tmp_1; + s.callLocIdx = 1111; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P303545); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P61716); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P291329_mk(s); - s.tmp_1.arg0 = globals.A___291296; + s.tmp_1 = controller_Button_onEvent__P48941_mk(s); + s.tmp_1.arg0 = globals.A___48862; s.tmp_1.arg1 = 2052; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1006; s.pc = 17; return s.tmp_1; + s.callLocIdx = 1113; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P291329_mk(s); - s.tmp_0.arg0 = globals.B___291297; + s.tmp_0 = controller_Button_onEvent__P48941_mk(s); + s.tmp_0.arg0 = globals.B___48863; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P303574; - s.callLocIdx = 1008; s.pc = 18; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P61745; + s.callLocIdx = 1115; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P291329_mk(s); - s.tmp_0.arg0 = globals.menu___291302; + s.tmp_0 = controller_Button_onEvent__P48941_mk(s); + s.tmp_0.arg0 = globals.menu___48868; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P303579; - s.callLocIdx = 1010; s.pc = 19; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P61750; + s.callLocIdx = 1117; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P303584); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P61755); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P291329_mk(s); - s.tmp_1.arg0 = globals.up___291299; + s.tmp_1 = controller_Button_onEvent__P48941_mk(s); + s.tmp_1.arg0 = globals.up___48865; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1014; s.pc = 20; return s.tmp_1; + s.callLocIdx = 1121; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P303596); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P61767); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P291329_mk(s); - s.tmp_1.arg0 = globals.left___291298; + s.tmp_1 = controller_Button_onEvent__P48941_mk(s); + s.tmp_1.arg0 = globals.left___48864; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1017; s.pc = 21; return s.tmp_1; + s.callLocIdx = 1124; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P303605); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P61776); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P291329_mk(s); - s.tmp_1.arg0 = globals.down___291301; + s.tmp_1 = controller_Button_onEvent__P48941_mk(s); + s.tmp_1.arg0 = globals.down___48867; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1021; s.pc = 22; return s.tmp_1; + s.callLocIdx = 1128; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P303621); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P61792); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P291329_mk(s); - s.tmp_1.arg0 = globals.right___291300; + s.tmp_1 = controller_Button_onEvent__P48941_mk(s); + s.tmp_1.arg0 = globals.right___48866; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 1024; s.pc = 23; return s.tmp_1; + s.callLocIdx = 1131; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P303633); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P61804); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P291970_mk(s); + s.tmp_1 = game_onShade__P49653_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 1027; s.pc = 24; return s.tmp_1; + s.callLocIdx = 1134; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P292049_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P49735_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 1028; s.pc = 25; return s.tmp_0; + s.callLocIdx = 1135; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P292047.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__P49733.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__P292047_mk(s) { +function scene_systemMenu_PauseMenu_show__P49733_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P292047, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P49733, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29438,8 +29253,8 @@ function scene_systemMenu_PauseMenu_show__P292047_mk(s) { tmp_22: undefined, tmp_23: undefined, tmp_24: undefined, - current___303461: undefined, - i___303462: undefined, + current___61632: undefined, + i___61633: undefined, arg0: undefined, } } @@ -29447,7 +29262,7 @@ function scene_systemMenu_PauseMenu_show__P292047_mk(s) { -function inline__P303525(s) { +function scene_systemMenu_PauseMenu_show_inline__P61696(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29485,7 +29300,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P292043_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P49729_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -29493,7 +29308,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); s.tmp_8.arg0 = r0; s.tmp_8.arg1 = 1; - s.callLocIdx = 1003; s.pc = 6; return s.tmp_8; + s.callLocIdx = 1110; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; case 5: @@ -29501,12 +29316,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P303525.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61696.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303525_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61696_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303525, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61696, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29525,7 +29340,7 @@ function inline__P303525_mk(s) { -function inline__P303545(s) { +function scene_systemMenu_PauseMenu_show_inline__P61716(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29563,7 +29378,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P292043_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P49729_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -29571,7 +29386,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_9, s.tmp_10); s.tmp_8.arg0 = r0; s.tmp_8.arg1 = 0; - s.callLocIdx = 1005; s.pc = 6; return s.tmp_8; + s.callLocIdx = 1112; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; r0 = s.caps[0].fields["options"]; @@ -29587,12 +29402,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P303545.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61716.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303545_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61716_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303545, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61716, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29611,7 +29426,7 @@ function inline__P303545_mk(s) { -function inline__P303574(s) { +function scene_systemMenu_PauseMenu_show_inline__P61745(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29621,20 +29436,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P292052_mk(s); - s.callLocIdx = 1007; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P49738_mk(s); + s.callLocIdx = 1114; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303574.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61745.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303574_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61745_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303574, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61745, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29643,7 +29458,7 @@ function inline__P303574_mk(s) { -function inline__P303579(s) { +function scene_systemMenu_PauseMenu_show_inline__P61750(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29653,20 +29468,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P292052_mk(s); - s.callLocIdx = 1009; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P49738_mk(s); + s.callLocIdx = 1116; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303579.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61750.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303579_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61750_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303579, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61750, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29675,7 +29490,7 @@ function inline__P303579_mk(s) { -function inline__P303584(s) { +function scene_systemMenu_PauseMenu_show_inline__P61755(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29685,9 +29500,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P292049_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P49735_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P289534_mk(s); + s.tmp_1 = Math_max__P47085_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; @@ -29700,30 +29515,30 @@ switch (step) { s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["cardsPerRow"]; } else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 1011; s.pc = 3; return s.tmp_4; } + else { s.callLocIdx = 1118; s.pc = 3; return s.tmp_4; } } case 3: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); s.tmp_1.arg1 = r0; - s.callLocIdx = 1012; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1119; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1013; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1120; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303584.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61755.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303584_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61755_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303584, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61755, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29736,7 +29551,7 @@ function inline__P303584_mk(s) { -function inline__P303596(s) { +function scene_systemMenu_PauseMenu_show_inline__P61767(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29746,31 +29561,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P292049_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P49735_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P289534_mk(s); + s.tmp_1 = Math_max__P47085_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 1015; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1122; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1016; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1123; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303596.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61767.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303596_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61767_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303596, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61767, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29781,7 +29596,7 @@ function inline__P303596_mk(s) { -function inline__P303605(s) { +function scene_systemMenu_PauseMenu_show_inline__P61776(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29791,9 +29606,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P292049_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P49735_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P289535_mk(s); + s.tmp_1 = Math_min__P47086_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -29811,30 +29626,30 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["cardsPerRow"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1018; s.pc = 3; return s.tmp_6; } + else { s.callLocIdx = 1125; s.pc = 3; return s.tmp_6; } } case 3: r0 = s.retval; s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_1.arg1 = r0; - s.callLocIdx = 1019; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1126; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1020; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1127; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303605.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61776.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303605_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61776_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303605, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61776, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29849,7 +29664,7 @@ function inline__P303605_mk(s) { -function inline__P303621(s) { +function scene_systemMenu_PauseMenu_show_inline__P61792(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29859,9 +29674,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P292049_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P49735_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P289535_mk(s); + s.tmp_1 = Math_min__P47086_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -29872,23 +29687,23 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 1022; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1129; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 1023; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1130; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303621.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61792.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303621_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61792_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303621, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61792, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29901,7 +29716,7 @@ function inline__P303621_mk(s) { -function inline__P303633(s) { +function scene_systemMenu_PauseMenu_show_inline__P61804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29911,26 +29726,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P292048_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P49734_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1025; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1132; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P292050_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P49736_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 1026; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1133; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P303633.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} +scene_systemMenu_PauseMenu_show_inline__P61804.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P303633_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P61804_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P303633, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P61804, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29939,7 +29754,7 @@ function inline__P303633_mk(s) { -function scene_systemMenu_PauseMenu_drawText__P292050(s) { +function scene_systemMenu_PauseMenu_drawText__P49736(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29954,7 +29769,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C292045_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C49731_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -29966,11 +29781,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_3 = helpers_imageFillRect__P291147_mk(s); - s.tmp_3.arg0 = globals.screen___291221; + s.tmp_3 = helpers_imageFillRect__P48710_mk(s); + s.tmp_3.arg0 = globals.screen___48784; s.tmp_3.arg1 = 0; s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_3.arg3 = r0; s.tmp_5 = if_cardsTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -29981,7 +29796,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["cardsTop"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["cardsTop"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1039; s.pc = 5; return s.tmp_5; } + else { s.callLocIdx = 1146; s.pc = 5; return s.tmp_5; } } case 5: r0 = s.retval; @@ -29989,11 +29804,11 @@ switch (step) { r0 = (s.tmp_4 - 2); s.tmp_3.arg4 = r0; s.tmp_3.arg5 = 15; - s.callLocIdx = 1040; s.pc = 4; return s.tmp_3; + s.callLocIdx = 1147; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P291178_mk(s); - s.tmp_0.arg0 = globals.screen___291221; + s.tmp_0 = helpers_imagePrintCenter__P48741_mk(s); + s.tmp_0.arg0 = globals.screen___48784; s.tmp_1 = if_headerText_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -30003,7 +29818,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["headerText"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["headerText"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1041; s.pc = 7; return s.tmp_1; } + else { s.callLocIdx = 1148; s.pc = 7; return s.tmp_1; } } case 7: r0 = s.retval; @@ -30019,16 +29834,16 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["headerFont"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["headerFont"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1042; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1149; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 1043; s.pc = 6; return s.tmp_0; + s.callLocIdx = 1150; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P291147_mk(s); - s.tmp_0.arg0 = globals.screen___291221; + s.tmp_0 = helpers_imageFillRect__P48710_mk(s); + s.tmp_0.arg0 = globals.screen___48784; s.tmp_0.arg1 = 0; s.tmp_2 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -30039,16 +29854,16 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["infoTop"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["infoTop"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1044; s.pc = 10; return s.tmp_2; } + else { s.callLocIdx = 1151; 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___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___291221); + r0 = pxsim_ImageMethods.height(globals.screen___48784); s.tmp_4 = r0; s.tmp_6 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -30059,7 +29874,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["infoTop"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["infoTop"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1045; s.pc = 11; return s.tmp_6; } + else { s.callLocIdx = 1152; s.pc = 11; return s.tmp_6; } } case 11: r0 = s.retval; @@ -30069,11 +29884,11 @@ switch (step) { r0 = (s.tmp_3 + 6); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 15; - s.callLocIdx = 1046; s.pc = 9; return s.tmp_0; + s.callLocIdx = 1153; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P291147_mk(s); - s.tmp_0.arg0 = globals.screen___291221; + s.tmp_0 = helpers_imageFillRect__P48710_mk(s); + s.tmp_0.arg0 = globals.screen___48784; s.tmp_1 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -30083,7 +29898,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["padding"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["padding"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1047; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 1154; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; @@ -30097,12 +29912,12 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["infoTop"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["infoTop"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1048; s.pc = 14; return s.tmp_2; } + else { s.callLocIdx = 1155; s.pc = 14; return s.tmp_2; } } case 14: r0 = s.retval; s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_3 = r0; s.tmp_6 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -30113,7 +29928,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["padding"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["padding"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1049; s.pc = 15; return s.tmp_6; } + else { s.callLocIdx = 1156; s.pc = 15; return s.tmp_6; } } case 15: r0 = s.retval; @@ -30132,7 +29947,7 @@ switch (step) { s.tmp_9.fn = s.tmp_9.arg0.vtable.iface["infoFont"]; if (s.tmp_9.fn == null) { s.retval = s.tmp_9.arg0.fields["infoFont"]; } else if (!s.tmp_9.fn.isGetter) { s.retval = bind(s.tmp_9); } - else { s.callLocIdx = 1050; s.pc = 17; return s.tmp_9; } + else { s.callLocIdx = 1157; s.pc = 17; return s.tmp_9; } } case 17: r0 = s.retval; @@ -30143,7 +29958,7 @@ switch (step) { s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["charHeight"]; if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["charHeight"]; } else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 1051; s.pc = 16; return s.tmp_8; } + else { s.callLocIdx = 1158; s.pc = 16; return s.tmp_8; } } case 16: r0 = s.retval; @@ -30151,11 +29966,11 @@ switch (step) { r0 = (s.tmp_7 + 1); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 1052; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1159; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P291178_mk(s); - s.tmp_0.arg0 = globals.screen___291221; + s.tmp_0 = helpers_imagePrintCenter__P48741_mk(s); + s.tmp_0.arg0 = globals.screen___48784; s.tmp_1 = if_getText_1_mk(s); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; @@ -30165,12 +29980,12 @@ switch (step) { s.tmp_1.arg0 = r0; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "getText"), 1); - s.callLocIdx = 1053; s.pc = 19; return s.tmp_1; + s.callLocIdx = 1160; s.pc = 19; return s.tmp_1; } else { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["getText"]; - if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["getText"], 1); s.callLocIdx = 1053; s.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1053; s.pc = 19; return s.tmp_1;; } - else { s.callLocIdx = 1053; 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 = 1160; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1160; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 1160; s.pc = 19; return s.tmp_1; } } case 19: r0 = s.retval; @@ -30184,7 +29999,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["infoTop"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["infoTop"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1054; s.pc = 20; return s.tmp_5; } + else { s.callLocIdx = 1161; s.pc = 20; return s.tmp_5; } } case 20: r0 = s.retval; @@ -30201,12 +30016,12 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["infoFont"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["infoFont"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 1055; s.pc = 21; return s.tmp_6; } + else { s.callLocIdx = 1162; s.pc = 21; return s.tmp_6; } } case 21: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 1056; s.pc = 18; return s.tmp_0; + s.callLocIdx = 1163; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 3: @@ -30214,12 +30029,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P292050.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__P49736.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__P292050_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P49736_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P292050, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P49736, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30238,7 +30053,7 @@ function scene_systemMenu_PauseMenu_drawText__P292050_mk(s) { -function helpers_imagePrintCenter__P291178(s) { +function helpers_imagePrintCenter__P48741(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30248,8 +30063,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___303720 = undefined; - s.x___303726 = undefined; + s.w___61891 = undefined; + s.x___61897 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -30264,9 +30079,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P291166_mk(s); + s.tmp_2 = image_getFontForText__P48729_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 104; s.pc = 3; return s.tmp_2; + s.callLocIdx = 97; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.arg4 = (r0); @@ -30282,46 +30097,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.callLocIdx = 105; s.pc = 4; return s.tmp_2; } + else { s.callLocIdx = 98; 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___303720 = (r0); + s.w___61891 = (r0); r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___303720); + r0 = (s.tmp_1 - s.w___61891); s.tmp_0 = r0; r0 = (s.tmp_0 / 2); - s.x___303726 = (r0); - s.tmp_0 = helpers_imagePrint__P291179_mk(s); + s.x___61897 = (r0); + s.tmp_0 = helpers_imagePrint__P48742_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___303726; + s.tmp_0.arg2 = s.x___61897; s.tmp_0.arg3 = s.arg2; s.tmp_0.arg4 = s.arg3; s.tmp_0.arg5 = s.arg4; s.tmp_0.arg6 = undefined; - s.callLocIdx = 106; s.pc = 5; return s.tmp_0; + s.callLocIdx = 99; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P291178.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__P48741.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__P291178_mk(s) { +function helpers_imagePrintCenter__P48741_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P291178, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P48741, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - w___303720: undefined, - x___303726: undefined, + w___61891: undefined, + x___61897: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -30333,7 +30148,7 @@ function helpers_imagePrintCenter__P291178_mk(s) { -function scene_systemMenu_PauseMenu_setSelection__P292049(s) { +function scene_systemMenu_PauseMenu_setSelection__P49735(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30349,7 +30164,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C292045_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C49731_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -30369,7 +30184,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__P292043_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P49729_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -30377,7 +30192,7 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); s.tmp_6.arg0 = r0; s.tmp_6.arg1 = 2; - s.callLocIdx = 1036; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1143; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; case 3: @@ -30391,9 +30206,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C291322_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___291296; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C291322_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = controller_Button__C48934_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___48862; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C48934_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: @@ -30408,7 +30223,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P292043_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P49729_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -30416,14 +30231,14 @@ switch (step) { r0 = pxsim_Array__getAt(s.tmp_7, s.tmp_8); s.tmp_6.arg0 = r0; s.tmp_6.arg1 = s.tmp_5; - s.callLocIdx = 1037; s.pc = 12; return s.tmp_6; + s.callLocIdx = 1144; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; case 7: case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P293668_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P51590_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1038; s.pc = 13; return s.tmp_0; + s.callLocIdx = 1145; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 9: @@ -30431,12 +30246,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P292049.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__P49735.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__P292049_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P49735_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P292049, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P49735, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30455,7 +30270,7 @@ function scene_systemMenu_PauseMenu_setSelection__P292049_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P293668(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P51590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30465,13 +30280,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___303882 = undefined; + s.row___62053 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C292045_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C49731_VT)) failedCast(r0); r0 = s.arg0.fields["selection"]; s.tmp_0 = r0; s.tmp_2 = if_cardsPerRow_1_mk(s); @@ -30483,23 +30298,23 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["cardsPerRow"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1059; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1166; 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___303882 = (r0); + s.row___62053 = (r0); r0 = s.arg0.fields["scrollRow"]; s.tmp_1 = r0; - r0 = (s.row___303882 === s.tmp_1); + r0 = (s.row___62053 === 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___303882 - 1); + r0 = (s.row___62053 - 1); s.tmp_2 = r0; r0 = s.arg0.fields["scrollRow"]; s.tmp_3 = r0; @@ -30514,7 +30329,7 @@ switch (step) { case 4: r0 = s.arg0.fields["scrollRow"]; s.tmp_6 = r0; - r0 = (s.row___303882 > s.tmp_6); + r0 = (s.row___62053 > s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } @@ -30545,7 +30360,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["cardSpacing"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["cardSpacing"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1060; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 1167; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; @@ -30559,7 +30374,7 @@ switch (step) { s.tmp_7.fn = s.tmp_7.arg0.vtable.iface["cardWidth"]; if (s.tmp_7.fn == null) { s.retval = s.tmp_7.arg0.fields["cardWidth"]; } else if (!s.tmp_7.fn.isGetter) { s.retval = bind(s.tmp_7); } - else { s.callLocIdx = 1061; s.pc = 10; return s.tmp_7; } + else { s.callLocIdx = 1168; s.pc = 10; return s.tmp_7; } } case 10: r0 = s.retval; @@ -30574,12 +30389,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P293668.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__P51590.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__P293668_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P51590_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P293668, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P51590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30591,7 +30406,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P293668_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___303882: undefined, + row___62053: undefined, arg0: undefined, } } @@ -30599,7 +30414,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P293668_mk(s) { -function scene_systemMenu_PauseMenu_onUpdate__P292048(s) { +function scene_systemMenu_PauseMenu_onUpdate__P49734(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30609,22 +30424,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___303742 = undefined; - s.i___303746 = undefined; - s.dt___303775 = undefined; + s.t___61913 = undefined; + s.i___61917 = undefined; + s.dt___61946 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C292045_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C49731_VT)) failedCast(r0); r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 / 250); - s.t___303742 = (r0); - s.i___303746 = (0); + s.t___61913 = (r0); + s.i___61917 = (0); case 1: - s.tmp_1 = r0 = s.i___303746; + s.tmp_1 = r0 = s.i___61917; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -30633,13 +30448,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__P292041_mk(s); + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P49727_mk(s); r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___303746); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___61917); s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___303742; - s.tmp_11 = r0 = s.i___303746; + s.tmp_8 = r0 = s.t___61913; + s.tmp_11 = r0 = s.i___61917; s.tmp_13 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_13.arg0 = r0; @@ -30649,7 +30464,7 @@ switch (step) { s.tmp_13.fn = s.tmp_13.arg0.vtable.iface["cardsPerRow"]; if (s.tmp_13.fn == null) { s.retval = s.tmp_13.arg0.fields["cardsPerRow"]; } else if (!s.tmp_13.fn.isGetter) { s.retval = bind(s.tmp_13); } - else { s.callLocIdx = 1029; s.pc = 11; return s.tmp_13; } + else { s.callLocIdx = 1136; s.pc = 11; return s.tmp_13; } } case 11: r0 = s.retval; @@ -30664,15 +30479,15 @@ switch (step) { s.tmp_6 = r0; r0 = (2 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 1030; s.pc = 10; return s.tmp_4; + s.callLocIdx = 1137; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - r0 = (s.i___303746 + 1); - s.i___303746 = (r0); + r0 = (s.i___61917 + 1); + s.i___61917 = (r0); { step = 1; continue; } case 2: - s.tmp_1 = game_currentScene__P291955_mk(s); - s.callLocIdx = 1031; s.pc = 12; return s.tmp_1; + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1138; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; r0 = r0.fields["eventContext"]; @@ -30680,7 +30495,7 @@ switch (step) { r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); - s.dt___303775 = (r0); + s.dt___61946 = (r0); r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -30692,7 +30507,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___303775 * 100); + r0 = (s.dt___61946 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; @@ -30710,7 +30525,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___303775 * 100); + r0 = (s.dt___61946 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 - s.tmp_6); s.tmp_4 = r0; @@ -30720,14 +30535,14 @@ switch (step) { { step = 9; continue; } case 5: case 6: - s.tmp_2 = Math_abs__P289532_mk(s); + s.tmp_2 = Math_abs__P47083_mk(s); r0 = s.arg0.fields["scrollOffset"]; s.tmp_3 = r0; r0 = s.arg0.fields["scrollTarget"]; s.tmp_4 = r0; r0 = (s.tmp_3 - s.tmp_4); s.tmp_2.arg0 = r0; - s.callLocIdx = 1033; s.pc = 13; return s.tmp_2; + s.callLocIdx = 1140; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -30740,16 +30555,16 @@ switch (step) { r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); case 7: case 8: - s.tmp_0 = scene_Camera_offsetY__P291791_mk(s); - s.tmp_1 = game_currentScene__P291955_mk(s); - s.callLocIdx = 1034; s.pc = 15; return s.tmp_1; + s.tmp_0 = scene_Camera_offsetY__P49475_mk(s); + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1141; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; r0 = r0.fields["camera"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["scrollOffset"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 1035; s.pc = 14; return s.tmp_0; + s.callLocIdx = 1142; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 9: @@ -30757,12 +30572,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_onUpdate__P292048.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__P49734.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__P292048_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P49734_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P292048, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P49734, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30778,9 +30593,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P292048_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - t___303742: undefined, - i___303746: undefined, - dt___303775: undefined, + t___61913: undefined, + i___61917: undefined, + dt___61946: undefined, arg0: undefined, } } @@ -30788,7 +30603,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P292048_mk(s) { -function scene_systemMenu_MenuOption_setOffset__P292041(s) { +function scene_systemMenu_MenuOption_setOffset__P49727(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30804,40 +30619,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C292037_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P291493_mk(s); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C49723_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P49146_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["top"]; s.tmp_1 = r0; r0 = (s.tmp_1 + s.arg1); s.tmp_0.arg1 = r0; - s.callLocIdx = 972; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1079; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P291454_mk(s); + s.tmp_0 = Sprite_y__P49099_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P291453_mk(s); + s.tmp_1 = Sprite_y__P49098_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 973; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1080; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 974; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1081; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P292041.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__P49727.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__P292041_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P49727_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P292041, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P49727, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30849,7 +30664,7 @@ function scene_systemMenu_MenuOption_setOffset__P292041_mk(s) { -function Sprite_top__P291493(s) { +function Sprite_top__P49146(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30859,22 +30674,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___297381 = undefined; + s.physics___55752 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 296; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 426; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___297381 = (r0); - s.tmp_0 = PhysicsEngine__C291587_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___297381; + s.physics___55752 = (r0); + s.tmp_0 = PhysicsEngine__C49245_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___55752; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = 0; r0 = (s.arg1 * 256); @@ -30885,7 +30700,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__C291587_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C49245_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: @@ -30894,18 +30709,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_top__P291493.info = {"start":10016,"length":256,"line":361,"column":4,"endLine":371,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} +Sprite_top__P49146.info = {"start":12788,"length":256,"line":454,"column":4,"endLine":464,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this","value"]} -function Sprite_top__P291493_mk(s) { +function Sprite_top__P49146_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P291493, depth: s.depth + 1, + parent: s, fn: Sprite_top__P49146, depth: s.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___297381: undefined, + physics___55752: undefined, arg0: undefined, arg1: undefined, } } @@ -30914,7 +30729,7 @@ function Sprite_top__P291493_mk(s) { -function Sprite_top__P291492(s) { +function Sprite_top__P49145(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30929,20 +30744,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["_y"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_top__P291492.info = {"start":9873,"length":53,"line":356,"column":4,"endLine":358,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} -Sprite_top__P291492.isGetter = true; +Sprite_top__P49145.info = {"start":12645,"length":53,"line":449,"column":4,"endLine":451,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"top","argumentNames":["this"]} +Sprite_top__P49145.isGetter = true; -function Sprite_top__P291492_mk(s) { +function Sprite_top__P49145_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P291492, depth: s.depth + 1, + parent: s, fn: Sprite_top__P49145, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30952,7 +30767,7 @@ function Sprite_top__P291492_mk(s) { -function Sprite_y__P291454(s) { +function Sprite_y__P49099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30968,31 +30783,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P291493_mk(s); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P49146_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_4 = Sprite_height__P49140_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 358; s.pc = 2; return s.tmp_4; + case 2: + r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_3 / 2); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 243; s.pc = 1; return s.tmp_0; + s.callLocIdx = 359; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_y__P291454.info = {"start":2305,"length":72,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} +Sprite_y__P49099.info = {"start":3081,"length":65,"line":126,"column":4,"endLine":128,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} -function Sprite_y__P291454_mk(s) { +function Sprite_y__P49099_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P291454, depth: s.depth + 1, + parent: s, fn: Sprite_y__P49099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31007,7 +30824,253 @@ function Sprite_y__P291454_mk(s) { -function scene_systemMenu_MenuOption_setState__P292043(s) { +function Sprite_height__P49140(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_height__P49140.info = {"start":11642,"length":61,"line":413,"column":4,"endLine":415,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} +Sprite_height__P49140.isGetter = true; + +function Sprite_height__P49140_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_height__P49140, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function scene_systemMenu_MenuOption_setState__P49729(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C49723_VT)) failedCast(r0); + r0 = s.arg0.fields["state"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 === s.arg1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 3; continue; } + case 1: + case 2: + r0 = (s.arg0).fields["state"] = (s.arg1); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P51589_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 1083; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + case 3: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_MenuOption_setState__P49729.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__P49729_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_MenuOption_setState__P49729, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_systemMenu_MenuOption_updateCard__P51589(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C49723_VT)) failedCast(r0); + r0 = s.arg0.fields["theme"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + { step = 7; continue; } + case 1: + case 2: + r0 = s.arg0.fields["state"]; + s.tmp_3 = r0; + r0 = pxsim_pxtcore.switch_eq(2, s.tmp_3); + if (r0) { step = 3; continue; } + r0 = pxsim_pxtcore.switch_eq(0, s.tmp_3); + if (r0) { step = 4; continue; } + r0 = pxsim_pxtcore.switch_eq(1, s.tmp_3); + if (r0) { step = 5; continue; } + r0 = s.tmp_3; + { step = 6; continue; } + case 3: + s.tmp_4 = Sprite_setImage__P49133_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_4.arg0 = r0; + s.tmp_5 = if_basicCard_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_5.arg0 = r0; + if (!s.tmp_5.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "basicCard"); + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["basicCard"]; + if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["basicCard"]; } + else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } + else { s.callLocIdx = 1086; s.pc = 9; return s.tmp_5; } + } + case 9: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.callLocIdx = 1087; s.pc = 8; return s.tmp_4; + case 8: + r0 = s.retval; + { step = 6; continue; } + case 4: + s.tmp_0 = Sprite_setImage__P49133_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = if_selectedCard_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "selectedCard"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["selectedCard"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["selectedCard"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1088; s.pc = 11; return s.tmp_1; } + } + case 11: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1089; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = Sprite_setImage__P49133_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = if_activeCard_1_mk(s); + r0 = s.arg0.fields["theme"]; + s.tmp_1.arg0 = r0; + if (!s.tmp_1.arg0.vtable.iface) { + s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "activeCard"); + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["activeCard"]; + if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["activeCard"]; } + else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } + else { s.callLocIdx = 1090; s.pc = 13; return s.tmp_1; } + } + case 13: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1091; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + case 6: + s.tmp_0 = Sprite_x__P49097_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P49096_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1092; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1093; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = Sprite_y__P49099_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P49098_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 1094; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 1095; s.pc = 16; return s.tmp_0; + case 16: + r0 = s.retval; + case 7: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_MenuOption_updateCard__P51589.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__P51589_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P51589, depth: s.depth + 1, + pc: 0, retval: undefined, 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_x__P49097(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31023,199 +31086,48 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C292037_VT)) failedCast(r0); - r0 = s.arg0.fields["state"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 === s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 3; continue; } - case 1: - case 2: - r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P293667_mk(s); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P49142_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 976; s.pc = 4; return s.tmp_0; - case 4: - r0 = s.retval; - case 3: - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_systemMenu_MenuOption_setState__P292043.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__P292043_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P292043, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function scene_systemMenu_MenuOption_updateCard__P293667(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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__C292037_VT)) failedCast(r0); - r0 = s.arg0.fields["theme"]; - s.tmp_2 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - { step = 7; continue; } - case 1: + s.tmp_1 = r0 = s.arg1; + s.tmp_4 = Sprite_width__P49139_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 353; s.pc = 2; return s.tmp_4; case 2: - r0 = s.arg0.fields["state"]; - s.tmp_3 = r0; - r0 = pxsim_pxtcore.switch_eq(2, s.tmp_3); - if (r0) { step = 3; continue; } - r0 = pxsim_pxtcore.switch_eq(0, s.tmp_3); - if (r0) { step = 4; continue; } - r0 = pxsim_pxtcore.switch_eq(1, s.tmp_3); - if (r0) { step = 5; continue; } - r0 = s.tmp_3; - { step = 6; continue; } - case 3: - s.tmp_4 = Sprite_setImage__P291482_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_4.arg0 = r0; - s.tmp_5 = if_basicCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_5.arg0 = r0; - if (!s.tmp_5.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "basicCard"); - } else { - s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["basicCard"]; - if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["basicCard"]; } - else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 979; s.pc = 9; return s.tmp_5; } - } - case 9: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.callLocIdx = 980; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; - { step = 6; continue; } - case 4: - s.tmp_0 = Sprite_setImage__P291482_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = if_selectedCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "selectedCard"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["selectedCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["selectedCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 981; s.pc = 11; return s.tmp_1; } - } - case 11: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 982; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = Sprite_setImage__P291482_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = if_activeCard_1_mk(s); - r0 = s.arg0.fields["theme"]; - s.tmp_1.arg0 = r0; - if (!s.tmp_1.arg0.vtable.iface) { - s.retval = pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "activeCard"); - } else { - s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["activeCard"]; - if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["activeCard"]; } - else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 983; s.pc = 13; return s.tmp_1; } - } - case 13: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 984; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - case 6: - s.tmp_0 = Sprite_x__P291452_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P291451_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 985; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 986; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = Sprite_y__P291454_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P291453_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 987; s.pc = 17; return s.tmp_1; - case 17: r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_3 / 2); + s.tmp_2 = r0; + r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 988; s.pc = 16; return s.tmp_0; - case 16: + s.callLocIdx = 354; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_updateCard__P293667.info = {"start":2038,"length":497,"line":86,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"updateCard","argumentNames":["this"]} +Sprite_x__P49097.info = {"start":2724,"length":65,"line":115,"column":4,"endLine":117,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} -function scene_systemMenu_MenuOption_updateCard__P293667_mk(s) { +function Sprite_x__P49097_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P293667, depth: s.depth + 1, + parent: s, fn: Sprite_x__P49097, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - tmp_5: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_x__P291452(s) { +function Sprite_left__P49142(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31225,43 +31137,53 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.physics___55649 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P291489_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 241; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 418; s.pc = 1; return s.tmp_0; case 1: + r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___55649 = (r0); + s.tmp_0 = PhysicsEngine__C49245_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___55649; + s.tmp_0.arg1 = s.arg0; + r0 = (s.arg1 * 256); + s.tmp_2 = r0; + r0 = (s.tmp_2 | 0); + s.tmp_1 = r0; + r0 = s.arg0.fields["_x"]; + s.tmp_3 = r0; + r0 = (s.tmp_1 - s.tmp_3); + s.tmp_0.arg2 = r0; + s.tmp_0.arg3 = 0; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C49245_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() } } } -Sprite_x__P291452.info = {"start":1956,"length":72,"line":81,"column":4,"endLine":83,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} +Sprite_left__P49142.info = {"start":11954,"length":257,"line":424,"column":4,"endLine":434,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} -function Sprite_x__P291452_mk(s) { +function Sprite_left__P49142_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P291452, depth: s.depth + 1, + parent: s, fn: Sprite_left__P49142, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - tmp_4: undefined, + physics___55649: undefined, arg0: undefined, arg1: undefined, } } @@ -31270,7 +31192,7 @@ function Sprite_x__P291452_mk(s) { -function Sprite_left__P291489(s) { +function Sprite_left__P49141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31280,62 +31202,35 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___297270 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 288; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___297270 = (r0); - s.tmp_0 = PhysicsEngine__C291587_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___297270; - s.tmp_0.arg1 = s.arg0; - r0 = (s.arg1 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); - s.tmp_1 = r0; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["_x"]; - s.tmp_3 = r0; - r0 = (s.tmp_1 - s.tmp_3); - s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = 0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C291587_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) + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -Sprite_left__P291489.info = {"start":9212,"length":257,"line":331,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} +Sprite_left__P49141.info = {"start":11810,"length":53,"line":419,"column":4,"endLine":421,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} +Sprite_left__P49141.isGetter = true; -function Sprite_left__P291489_mk(s) { +function Sprite_left__P49141_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P291489, depth: s.depth + 1, + parent: s, fn: Sprite_left__P49141, depth: s.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___297270: undefined, arg0: undefined, - arg1: undefined, } } -function Sprite_left__P291488(s) { +function Sprite_width__P49139(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31350,20 +31245,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_left__P291488.info = {"start":9068,"length":53,"line":326,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this"]} -Sprite_left__P291488.isGetter = true; +Sprite_width__P49139.info = {"start":11475,"length":59,"line":408,"column":4,"endLine":410,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} +Sprite_width__P49139.isGetter = true; -function Sprite_left__P291488_mk(s) { +function Sprite_width__P49139_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P291488, depth: s.depth + 1, + parent: s, fn: Sprite_width__P49139, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31373,7 +31268,7 @@ function Sprite_left__P291488_mk(s) { -function scene_systemMenu_MenuOption_setTheme__P292042(s) { +function scene_systemMenu_MenuOption_setTheme__P49728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31389,23 +31284,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C292037_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C49723_VT)) failedCast(r0); r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P293667_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P51589_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 975; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1082; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setTheme__P292042.info = {"start":1544,"length":101,"line":66,"column":8,"endLine":69,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"setTheme","argumentNames":["this","theme"]} +scene_systemMenu_MenuOption_setTheme__P49728.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__P292042_mk(s) { +function scene_systemMenu_MenuOption_setTheme__P49728_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P292042, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P49728, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31416,7 +31311,7 @@ function scene_systemMenu_MenuOption_setTheme__P292042_mk(s) { -function scene_systemMenu_MenuOption_position__P292040(s) { +function scene_systemMenu_MenuOption_position__P49726(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31433,58 +31328,58 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C292037_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C49723_VT)) failedCast(r0); r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P291489_mk(s); + s.tmp_0 = Sprite_left__P49142_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 966; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1073; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_top__P291493_mk(s); + s.tmp_0 = Sprite_top__P49146_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 967; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1074; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_x__P291452_mk(s); + s.tmp_0 = Sprite_x__P49097_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P291451_mk(s); + s.tmp_1 = Sprite_x__P49096_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 968; s.pc = 4; return s.tmp_1; + s.callLocIdx = 1075; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 969; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1076; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P291454_mk(s); + s.tmp_0 = Sprite_y__P49099_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P291453_mk(s); + s.tmp_1 = Sprite_y__P49098_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 970; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1077; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 971; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1078; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_position__P292040.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]} +scene_systemMenu_MenuOption_position__P49726.info = {"start":1178,"length":223,"line":51,"column":8,"endLine":59,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"position","argumentNames":["this","left","top"]} -function scene_systemMenu_MenuOption_position__P292040_mk(s) { +function scene_systemMenu_MenuOption_position__P49726_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_position__P292040, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P49726, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31497,7 +31392,7 @@ function scene_systemMenu_MenuOption_position__P292040_mk(s) { -function scene_systemMenu_MenuOption_show__P292039(s) { +function scene_systemMenu_MenuOption_show__P49725(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31512,7 +31407,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C292037_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C49723_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -31526,21 +31421,21 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["basicCard"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["basicCard"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 961; s.pc = 3; return s.tmp_1; } + else { s.callLocIdx = 1068; s.pc = 3; return s.tmp_1; } } case 3: r0 = s.retval; { step = 2; continue; } case 1: - r0 = globals.CARD_NORMAL___292061; + r0 = globals.CARD_NORMAL___49747; case 2: // jmp value (already in r0) s.tmp_2 = r0; s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P291393_mk(s); + s.tmp_5 = sprites_create__P49019_mk(s); s.tmp_5.arg0 = s.tmp_2; s.tmp_5.arg1 = undefined; - s.callLocIdx = 962; s.pc = 4; return s.tmp_5; + s.callLocIdx = 1069; s.pc = 4; return s.tmp_5; case 4: r0 = s.retval; s.tmp_4 = r0; @@ -31555,16 +31450,16 @@ switch (step) { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 963; s.pc = 5; return s.tmp_0; } + else { s.callLocIdx = 1070; s.pc = 5; return s.tmp_0; } } case 5: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P291393_mk(s); + s.tmp_2 = sprites_create__P49019_mk(s); r0 = s.arg0.fields["iconImage"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = undefined; - s.callLocIdx = 964; s.pc = 6; return s.tmp_2; + s.callLocIdx = 1071; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; @@ -31579,7 +31474,7 @@ switch (step) { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["set/z"]; if (s.tmp_0.fn === null) { s.tmp_0.arg0.fields["z"] = s.tmp_0.arg1; } else if (s.tmp_0.fn === undefined) { failedCast(s.tmp_0.arg0) } - else { s.callLocIdx = 965; s.pc = 7; return s.tmp_0; } + else { s.callLocIdx = 1072; s.pc = 7; return s.tmp_0; } } case 7: r0 = s.retval; @@ -31588,12 +31483,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_show__P292039.info = {"start":904,"length":264,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"show","argumentNames":["this"]} +scene_systemMenu_MenuOption_show__P49725.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__P292039_mk(s) { +function scene_systemMenu_MenuOption_show__P49725_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P292039, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_show__P49725, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31608,7 +31503,7 @@ function scene_systemMenu_MenuOption_show__P292039_mk(s) { -function game_onShade__P291970(s) { +function game_onShade__P49653(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31622,9 +31517,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P293421_mk(s); + s.tmp_0 = game_init__P51343_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 956; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1056; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -31636,11 +31531,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P291806_mk(s); + s.tmp_2 = scene_createRenderable__P49490_mk(s); s.tmp_2.arg0 = 80; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; - s.callLocIdx = 957; s.pc = 5; return s.tmp_2; + s.callLocIdx = 1057; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -31648,12 +31543,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onShade__P291970.info = {"start":9934,"length":145,"line":320,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} +game_onShade__P49653.info = {"start":8745,"length":145,"line":286,"column":4,"endLine":290,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onShade","argumentNames":["a"]} -function game_onShade__P291970_mk(s) { +function game_onShade__P49653_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P291970, depth: s.depth + 1, + parent: s, fn: game_onShade__P49653, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31665,7 +31560,7 @@ function game_onShade__P291970_mk(s) { -function scene_systemMenu_PauseMenu_constructor__P292046(s) { +function scene_systemMenu_PauseMenu_constructor__P49732(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31682,7 +31577,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C292045_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C49731_VT)) failedCast(r0); r0 = (s.arg0).fields["generator"] = (s.arg1); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); @@ -31690,13 +31585,13 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P292054_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___292061); + s.tmp_1 = scene_systemMenu_buildMenuTheme__P49740_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___49747); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; s.tmp_1.arg3 = undefined; - s.callLocIdx = 989; s.pc = 3; return s.tmp_1; + s.callLocIdx = 1096; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 2: @@ -31710,12 +31605,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P292046.info = {"start":3029,"length":257,"line":116,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","generator","theme"]} +scene_systemMenu_PauseMenu_constructor__P49732.info = {"start":3029,"length":257,"line":116,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":["this","generator","theme"]} -function scene_systemMenu_PauseMenu_constructor__P292046_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P49732_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P292046, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P49732, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31729,7 +31624,7 @@ function scene_systemMenu_PauseMenu_constructor__P292046_mk(s) { -function scene_systemMenu_buildMenuTheme__P292054(s) { +function scene_systemMenu_buildMenuTheme__P49740(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31739,7 +31634,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___304726 = undefined; + s.cardsPerRow___62897 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31747,19 +31642,19 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_0 = r0; r0 = (s.arg0 + s.arg1); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_1); - s.cardsPerRow___304726 = (r0); + s.cardsPerRow___62897 = (r0); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.font8___291164; + r0 = globals.font8___48727; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -31770,9 +31665,9 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = image_doubledFont__P291167_mk(s); + s.tmp_1 = image_doubledFont__P48730_mk(s); s.tmp_1.arg0 = s.arg2; - s.callLocIdx = 1099; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1206; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; case 4: @@ -31783,12 +31678,12 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardSpacing", s.arg1); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardWidth", s.arg0); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___304726); - r0 = pxsim_ImageMethods.width(globals.screen___291221); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___62897); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_3 = r0; - r0 = (s.cardsPerRow___304726 * s.arg0); + r0 = (s.cardsPerRow___62897 * s.arg0); s.tmp_5 = r0; - r0 = (s.cardsPerRow___304726 - 1); + r0 = (s.cardsPerRow___62897 - 1); s.tmp_7 = r0; r0 = (s.tmp_7 * s.arg1); s.tmp_6 = r0; @@ -31809,7 +31704,7 @@ switch (step) { s.tmp_11.fn = s.tmp_11.arg0.vtable.iface["charHeight"]; if (s.tmp_11.fn == null) { s.retval = s.tmp_11.arg0.fields["charHeight"]; } else if (!s.tmp_11.fn.isGetter) { s.retval = bind(s.tmp_11); } - else { s.callLocIdx = 1100; s.pc = 6; return s.tmp_11; } + else { s.callLocIdx = 1207; s.pc = 6; return s.tmp_11; } } case 6: r0 = s.retval; @@ -31819,7 +31714,7 @@ switch (step) { r0 = (s.tmp_9 + s.arg1); s.tmp_8 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsTop", s.tmp_8); - r0 = pxsim_ImageMethods.height(globals.screen___291221); + r0 = pxsim_ImageMethods.height(globals.screen___48784); s.tmp_14 = r0; s.tmp_16 = if_charHeight_1_mk(s); s.tmp_16.arg0 = s.arg2; @@ -31829,7 +31724,7 @@ switch (step) { s.tmp_16.fn = s.tmp_16.arg0.vtable.iface["charHeight"]; if (s.tmp_16.fn == null) { s.retval = s.tmp_16.arg0.fields["charHeight"]; } else if (!s.tmp_16.fn.isGetter) { s.retval = bind(s.tmp_16); } - else { s.callLocIdx = 1101; s.pc = 7; return s.tmp_16; } + else { s.callLocIdx = 1208; s.pc = 7; return s.tmp_16; } } case 7: r0 = s.retval; @@ -31840,19 +31735,19 @@ switch (step) { s.tmp_12 = r0; r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "infoTop", s.tmp_12); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "headerText", "PAUSED"); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___292062); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___292063); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___292061); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___49748); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___49749); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___49747); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P292054.info = {"start":11654,"length":906,"line":356,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} +scene_systemMenu_buildMenuTheme__P49740.info = {"start":11654,"length":906,"line":356,"column":4,"endLine":375,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"buildMenuTheme","argumentNames":["cardWidth","cardSpacing","infoFont","headerFont"]} -function scene_systemMenu_buildMenuTheme__P292054_mk(s) { +function scene_systemMenu_buildMenuTheme__P49740_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P292054, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P49740, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31871,7 +31766,7 @@ function scene_systemMenu_buildMenuTheme__P292054_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, - cardsPerRow___304726: undefined, + cardsPerRow___62897: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31882,7 +31777,7 @@ function scene_systemMenu_buildMenuTheme__P292054_mk(s) { -function image_doubledFont__P291167(s) { +function image_doubledFont__P48730(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31896,21 +31791,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P291168_mk(s); + s.tmp_0 = image_scaledFont__P48731_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; - s.callLocIdx = 98; s.pc = 1; return s.tmp_0; + s.callLocIdx = 91; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -image_doubledFont__P291167.info = {"start":12008,"length":82,"line":146,"column":4,"endLine":148,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"doubledFont","argumentNames":["f"]} +image_doubledFont__P48730.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__P291167_mk(s) { +function image_doubledFont__P48730_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P291167, depth: s.depth + 1, + parent: s, fn: image_doubledFont__P48730, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31920,7 +31815,7 @@ function image_doubledFont__P291167_mk(s) { -function image_scaledFont__P291168(s) { +function image_scaledFont__P48731(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31955,7 +31850,7 @@ switch (step) { 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; } + else { s.callLocIdx = 92; s.pc = 6; return s.tmp_4; } } case 6: r0 = s.retval; @@ -31971,7 +31866,7 @@ switch (step) { 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; } + else { s.callLocIdx = 93; s.pc = 7; return s.tmp_7; } } case 7: r0 = s.retval; @@ -31987,7 +31882,7 @@ switch (step) { 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; } + else { s.callLocIdx = 94; s.pc = 8; return s.tmp_9; } } case 8: r0 = s.retval; @@ -32001,7 +31896,7 @@ switch (step) { 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; } + else { s.callLocIdx = 95; s.pc = 9; return s.tmp_11; } } case 9: r0 = s.retval; @@ -32017,7 +31912,7 @@ switch (step) { 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; } + else { s.callLocIdx = 96; s.pc = 10; return s.tmp_14; } } case 10: r0 = s.retval; @@ -32035,12 +31930,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_scaledFont__P291168.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} +image_scaledFont__P48731.info = {"start":12096,"length":331,"line":150,"column":4,"endLine":160,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"scaledFont","argumentNames":["f","size"]} -function image_scaledFont__P291168_mk(s) { +function image_scaledFont__P48731_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P291168, depth: s.depth + 1, + parent: s, fn: image_scaledFont__P48731, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32066,7 +31961,7 @@ function image_scaledFont__P291168_mk(s) { -function game_pushScene__P291959(s) { +function game_pushScene__P49644(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32076,45 +31971,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___304805 = undefined; - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 935; s.pc = 5; return s.tmp_0; + s.oldScene___62976 = undefined; + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 1044; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.oldScene___304805 = (r0); - s.tmp_0 = particles_clearAll__P292131_mk(s); - s.callLocIdx = 936; s.pc = 6; return s.tmp_0; + s.oldScene___62976 = (r0); + s.tmp_0 = particles_clearAll__P49817_mk(s); + s.callLocIdx = 1045; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_disableAll__P292132_mk(s); - s.callLocIdx = 937; s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_disableAll__P49818_mk(s); + s.callLocIdx = 1046; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___293414); + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___51336); s.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___293414 = (r0); + globals._sceneStack___51336 = (r0); case 1: case 2: - r0 = pxsim_Array__push(globals._sceneStack___293414, globals._scene___293413); - s.tmp_0 = game_init__P293421_mk(s); + r0 = pxsim_Array__push(globals._sceneStack___51336, globals._scene___51335); + s.tmp_0 = game_init__P51343_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 938; s.pc = 8; return s.tmp_0; + s.callLocIdx = 1047; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___293415); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___51337); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P304822); + r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P62993); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___304805); - s.tmp_1 = helpers_arrayForEach__P289514_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___293415; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___62976); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___51337; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 940; s.pc = 9; return s.tmp_1; + s.callLocIdx = 1049; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; case 3: @@ -32123,23 +32018,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_pushScene__P291959.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +game_pushScene__P49644.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__P291959_mk(s) { +function game_pushScene__P49644_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P291959, depth: s.depth + 1, + parent: s, fn: game_pushScene__P49644, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___304805: undefined, + oldScene___62976: undefined, } } -function inline__P304822(s) { +function game_pushScene_inline__P62993(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32157,19 +32052,107 @@ switch (step) { s.tmp_0.argL = s.arg0; s.tmp_0.arg0 = s.caps[0]; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 939; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1048; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P304822.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} +game_pushScene_inline__P62993.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} + +function game_pushScene_inline__P62993_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_pushScene_inline__P62993, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function particles_disableAll__P49818(s) { +let r0 = s.r0, 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___62997 = undefined; + s.tmp_0 = particles_particleSources__P51684_mk(s); + s.callLocIdx = 1289; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.sources___62997 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___62997); + if (!r0) { step = 1; continue; } + s.tmp_0 = helpers_arrayForEach__P47064_mk(s); + s.tmp_0.arg0 = s.sources___62997; + s.tmp_0.arg1 = particles_disableAll_inline__P63003; + s.callLocIdx = 1291; s.pc = 4; return s.tmp_0; + case 4: + r0 = s.retval; + s.tmp_0 = particles_pruneParticles__P51680_mk(s); + s.callLocIdx = 1292; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +particles_disableAll__P49818.info = {"start":12370,"length":195,"line":402,"column":4,"endLine":408,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} + +function particles_disableAll__P49818_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: particles_disableAll__P49818, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + sources___62997: undefined, +} } + + + + + +function particles_disableAll_inline__P63003(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = particles_ParticleSource_enabled__P49800_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = false; + s.callLocIdx = 1290; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = false; + return leave(s, r0) + default: oops() +} } } +particles_disableAll_inline__P63003.info = {"start":12495,"length":22,"line":405,"column":28,"endLine":405,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P304822_mk(s) { +function particles_disableAll_inline__P63003_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304822, depth: s.depth + 1, + parent: s, fn: particles_disableAll_inline__P63003, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32179,7 +32162,7 @@ function inline__P304822_mk(s) { -function particles_disableAll__P292132(s) { +function particles_clearAll__P49817(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32189,22 +32172,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___304826 = undefined; - s.tmp_0 = particles_particleSources__P293777_mk(s); - s.callLocIdx = 1182; s.pc = 3; return s.tmp_0; + s.sources___63008 = undefined; + s.tmp_0 = particles_particleSources__P51684_mk(s); + s.callLocIdx = 1285; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___304826 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___304826); + s.sources___63008 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___63008); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P289514_mk(s); - s.tmp_0.arg0 = s.sources___304826; - s.tmp_0.arg1 = inline__P304832; - s.callLocIdx = 1184; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P47064_mk(s); + s.tmp_0.arg0 = s.sources___63008; + s.tmp_0.arg1 = particles_clearAll_inline__P63014; + s.callLocIdx = 1287; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P293773_mk(s); - s.callLocIdx = 1185; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P51680_mk(s); + s.callLocIdx = 1288; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -32213,22 +32196,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_disableAll__P292132.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} +particles_clearAll__P49817.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} -function particles_disableAll__P292132_mk(s) { +function particles_clearAll__P49817_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll__P292132, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P49817, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___304826: undefined, + sources___63008: undefined, } } -function inline__P304832(s) { +function particles_clearAll_inline__P63014(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32242,22 +32225,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P292114_mk(s); + s.tmp_0 = particles_ParticleSource_clear__P49802_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = false; - s.callLocIdx = 1183; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1286; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = false; + r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P304832.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_clearAll_inline__P63014.info = {"start":12221,"length":14,"line":394,"column":28,"endLine":394,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P304832_mk(s) { +function particles_clearAll_inline__P63014_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304832, depth: s.depth + 1, + parent: s, fn: particles_clearAll_inline__P63014, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32267,7 +32249,7 @@ function inline__P304832_mk(s) { -function particles_clearAll__P292131(s) { +function controller_Button_onEvent__P48941(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32277,46 +32259,238 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___304837 = undefined; - s.tmp_0 = particles_particleSources__P293777_mk(s); - s.callLocIdx = 1178; s.pc = 3; return s.tmp_0; - case 3: + s.eventHandler___57236 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); + s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P51150_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 202; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.eventHandler___57236 = (r0); + r0 = (s.eventHandler___57236).fields["callback"] = (s.arg2); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Button_onEvent__P48941.info = {"start":3784,"length":188,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} + +function controller_Button_onEvent__P48941_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_onEvent__P48941, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + eventHandler___57236: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function controller_Button_getOrCreateHandlerForEvent__P51150(s) { +let r0 = s.r0, 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.handlerState___57257 = undefined; + s.eventHandler___57266 = undefined; + s.unnamed868___U2 = undefined; + s.unnamed869___U3 = undefined; + s.newHandler___57282 = 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__C48934_VT)) failedCast(r0); + s.tmp_3 = controller_Button_handlerState__P51145_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 212; s.pc = 10; return s.tmp_3; + case 10: r0 = s.retval; - s.sources___304837 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___304837); + 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_0 = helpers_arrayForEach__P289514_mk(s); - s.tmp_0.arg0 = s.sources___304837; - s.tmp_0.arg1 = inline__P304843; - s.callLocIdx = 1180; s.pc = 4; return s.tmp_0; - case 4: + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonEventHandlerState__C48930_VT); + s.tmp_4 = r0; + s.tmp_5 = controller_ButtonEventHandlerState_constructor__P48931_mk(s); + s.tmp_5.arg0 = s.tmp_4; + r0 = s.arg0.fields["id"]; + s.tmp_5.arg1 = r0; + s.callLocIdx = 214; s.pc = 11; return s.tmp_5; + case 11: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P293773_mk(s); - s.callLocIdx = 1181; s.pc = 5; return s.tmp_0; - case 5: + s.tmp_7 = game_currentScene__P49640_mk(s); + s.callLocIdx = 213; s.pc = 12; return s.tmp_7; + case 12: r0 = s.retval; + r0 = r0.fields["buttonEventHandlers"]; + s.tmp_6 = r0; + r0 = pxsim_Array__push(s.tmp_6, s.tmp_4); case 1: case 2: + s.tmp_0 = controller_Button_handlerState__P51145_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 215; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.handlerState___57257 = (r0); + r0 = s.handlerState___57257.fields["user"]; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_3 = r0 = s.handlerState___57257; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["user"] = (s.tmp_4); + case 3: + case 4: + s.eventHandler___57266 = (undefined); + r0 = s.handlerState___57257.fields["user"]; + s.unnamed868___U2 = (r0); + s.unnamed869___U3 = (0); + case 5: + s.tmp_0 = r0 = s.unnamed869___U3; + r0 = pxsim_Array__length(s.unnamed868___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 8; continue; } + r0 = pxsim_Array__getAt(s.unnamed868___U2, s.unnamed869___U3); + s.eventHandler___57266 = (r0); + r0 = s.eventHandler___57266.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 6; continue; } + r0 = s.eventHandler___57266; + { step = 9; continue; } + case 6: + case 7: + r0 = (s.unnamed869___U3 + 1); + s.unnamed869___U3 = (r0); + { step = 5; continue; } + case 8: + s.unnamed868___U2 = (undefined); + r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P57279); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.arg0); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.arg1); + s.tmp_5 = control_onEvent__P47346_mk(s); + s.tmp_5.arg0 = s.arg1; + r0 = s.arg0.fields["id"]; + s.tmp_5.arg1 = r0; + s.tmp_5.arg2 = s.tmp_4; + s.tmp_5.arg3 = 16; + s.callLocIdx = 217; s.pc = 14; return s.tmp_5; + case 14: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C48928_VT); + s.tmp_0 = r0; + s.tmp_1 = controller_ButtonHandler_constructor__P48929_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 218; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.newHandler___57282 = (s.tmp_0); + r0 = s.handlerState___57257.fields["user"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.newHandler___57282); + r0 = s.newHandler___57282; + case 9: + return leave(s, r0) + default: oops() +} } } +controller_Button_getOrCreateHandlerForEvent__P51150.info = {"start":8550,"length":829,"line":250,"column":8,"endLine":270,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"getOrCreateHandlerForEvent","argumentNames":["this","event"]} + +function controller_Button_getOrCreateHandlerForEvent__P51150_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P51150, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + handlerState___57257: undefined, + eventHandler___57266: undefined, + unnamed868___U2: undefined, + unnamed869___U3: undefined, + newHandler___57282: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_Button_getOrCreateHandlerForEvent_inline__P57279(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = controller_Button_runButtonEvents__P51149_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.caps[1]; + s.callLocIdx = 216; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_clearAll__P292131.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} +controller_Button_getOrCreateHandlerForEvent_inline__P57279.info = {"start":9186,"length":33,"line":265,"column":44,"endLine":265,"endColumn":77,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function particles_clearAll__P292131_mk(s) { +function controller_Button_getOrCreateHandlerForEvent_inline__P57279_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll__P292131, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P57279, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___304837: undefined, } } -function inline__P304843(s) { +function controller_Button_runButtonEvents__P51149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32326,35 +32500,261 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.handlerState___57296 = undefined; + s.userHandler___57300 = undefined; + s.eventHandler___57311 = undefined; + s.unnamed866___U3 = undefined; + s.unnamed867___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P292116_mk(s); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); + s.tmp_0 = controller_Button_handlerState__P51145_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1179; s.pc = 1; return s.tmp_0; + s.callLocIdx = 208; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.handlerState___57296 = (r0); + r0 = pxsim_numops_toBoolDecr(s.handlerState___57296); + s.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 = 13; continue; } case 1: + case 2: + s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P51150_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 209; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.userHandler___57300 = (r0); + r0 = s.userHandler___57300.fields["callback"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 3; continue; } + s.tmp_1 = if_callback_1_mk(s); + s.tmp_1.arg0 = s.userHandler___57300; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "callback"), 1); + s.callLocIdx = 210; s.pc = 16; return s.tmp_1; + } else { + s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["callback"]; + if (s.tmp_1.fn == null) { setupLambda(s.tmp_1, s.tmp_1.arg0.fields["callback"], 1); s.callLocIdx = 210; s.pc = 16; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 210; s.pc = 16; return s.tmp_1;; } + else { s.callLocIdx = 210; s.pc = 16; return s.tmp_1; } + } + case 16: r0 = s.retval; + case 3: + case 4: + r0 = s.handlerState___57296.fields["system"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.eventHandler___57311 = (undefined); + r0 = s.handlerState___57296.fields["system"]; + s.unnamed866___U3 = (r0); + s.unnamed867___U4 = (0); + case 5: + s.tmp_0 = r0 = s.unnamed867___U4; + r0 = pxsim_Array__length(s.unnamed866___U3); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed866___U3, s.unnamed867___U4); + s.eventHandler___57311 = (r0); + r0 = s.eventHandler___57311.fields["event"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 === s.arg1); + s.tmp_2 = r0; + r0 = pxsim_numops_toBool(s.tmp_2); + if (r0) { step = 6; continue; } + r0 = s.tmp_2; + { step = 7; continue; } + case 6: + r0 = s.eventHandler___57311.fields["callback"]; + case 7: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + if (!r0) { step = 8; continue; } + s.tmp_5 = if_callback_1_mk(s); + s.tmp_5.arg0 = s.eventHandler___57311; + if (!s.tmp_5.arg0.vtable.iface) { + setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "callback"), 1); + s.callLocIdx = 211; s.pc = 17; return s.tmp_5; + } else { + s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["callback"]; + if (s.tmp_5.fn == null) { setupLambda(s.tmp_5, s.tmp_5.arg0.fields["callback"], 1); s.callLocIdx = 211; s.pc = 17; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 211; s.pc = 17; return s.tmp_5;; } + else { s.callLocIdx = 211; s.pc = 17; return s.tmp_5; } + } + case 17: + r0 = s.retval; + case 8: + case 9: + r0 = (s.unnamed867___U4 + 1); + s.unnamed867___U4 = (r0); + { step = 5; continue; } + case 10: + s.unnamed866___U3 = (undefined); + case 11: + case 12: + case 13: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P304843.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +controller_Button_runButtonEvents__P51149.info = {"start":8005,"length":535,"line":236,"column":8,"endLine":248,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"runButtonEvents","argumentNames":["this","event"]} -function inline__P304843_mk(s) { +function controller_Button_runButtonEvents__P51149_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P304843, depth: s.depth + 1, + parent: s, fn: controller_Button_runButtonEvents__P51149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + handlerState___57296: undefined, + userHandler___57300: undefined, + eventHandler___57311: undefined, + unnamed866___U3: undefined, + unnamed867___U4: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Button_onEvent__P291329(s) { +function controller_Button_handlerState__P51145(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.state___57411 = undefined; + s.unnamed864___U1 = undefined; + s.unnamed865___U2 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); + s.state___57411 = (undefined); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 198; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = r0.fields["buttonEventHandlers"]; + s.unnamed864___U1 = (r0); + s.unnamed865___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed865___U2; + r0 = pxsim_Array__length(s.unnamed864___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed864___U1, s.unnamed865___U2); + s.state___57411 = (r0); + r0 = s.state___57411.fields["id"]; + s.tmp_3 = r0; + r0 = s.arg0.fields["id"]; + s.tmp_4 = r0; + r0 = (s.tmp_3 === s.tmp_4); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 2; continue; } + r0 = s.state___57411; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.unnamed865___U2 + 1); + s.unnamed865___U2 = (r0); + { step = 1; continue; } + case 4: + s.unnamed864___U1 = (undefined); + r0 = undefined; + case 5: + return leaveAccessor(s, r0) + default: oops() +} } } +controller_Button_handlerState__P51145.info = {"start":1644,"length":240,"line":66,"column":8,"endLine":71,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"handlerState","argumentNames":["this"]} +controller_Button_handlerState__P51145.isGetter = true; + +function controller_Button_handlerState__P51145_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_handlerState__P51145, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + state___57411: undefined, + unnamed864___U1: undefined, + unnamed865___U2: undefined, + arg0: undefined, +} } + + + + + +function controller_ButtonEventHandlerState_constructor__P48931(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_ButtonEventHandlerState__C48930_VT)) failedCast(r0); + r0 = (s.arg0).fields["id"] = (s.arg1); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_ButtonEventHandlerState_constructor__P48931.info = {"start":1122,"length":33,"line":48,"column":8,"endLine":48,"endColumn":41,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id"]} + +function controller_ButtonEventHandlerState_constructor__P48931_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_ButtonEventHandlerState_constructor__P48931, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_ButtonHandler_constructor__P48929(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32371,28 +32771,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C291322_VT)) failedCast(r0); - s.tmp_0 = control_onEvent__P289789_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; + if (!checkSubtype(r0, controller_ButtonHandler__C48928_VT)) failedCast(r0); + r0 = (s.arg0).fields["event"] = (s.arg1); + r0 = (s.arg0).fields["callback"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_onEvent__P291329.info = {"start":3368,"length":124,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} +controller_ButtonHandler_constructor__P48929.info = {"start":997,"length":66,"line":44,"column":8,"endLine":44,"endColumn":74,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","event","callback"]} -function controller_Button_onEvent__P291329_mk(s) { +function controller_ButtonHandler_constructor__P48929_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_onEvent__P291329, depth: s.depth + 1, + parent: s, fn: controller_ButtonHandler_constructor__P48929, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -32402,7 +32794,7 @@ function controller_Button_onEvent__P291329_mk(s) { -function scene_systemMenu_initScreen__P293680(s) { +function scene_systemMenu_initScreen__P51602(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32412,21 +32804,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.brightness___304849 = undefined; - s.tmp_0 = settings_readNumber__P291252_mk(s); + s.brightness___63020 = undefined; + s.tmp_0 = settings_readNumber__P48818_mk(s); s.tmp_0.arg0 = "#brightness"; - s.callLocIdx = 1108; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1215; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.brightness___304849 = (r0); - r0 = (s.brightness___304849 !== undefined); + s.brightness___63020 = (r0); + r0 = (s.brightness___63020 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_setScreenBrightness__P291154_mk(s); - s.tmp_1.arg0 = globals.screen___291221; - s.tmp_1.arg1 = s.brightness___304849; - s.callLocIdx = 1109; s.pc = 4; return s.tmp_1; + s.tmp_1 = helpers_setScreenBrightness__P48717_mk(s); + s.tmp_1.arg0 = globals.screen___48784; + s.tmp_1.arg1 = s.brightness___63020; + s.callLocIdx = 1216; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -32435,23 +32827,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initScreen__P293680.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} +scene_systemMenu_initScreen__P51602.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} -function scene_systemMenu_initScreen__P293680_mk(s) { +function scene_systemMenu_initScreen__P51602_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initScreen__P293680, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P51602, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - brightness___304849: undefined, + brightness___63020: undefined, } } -function settings_readNumber__P291252(s) { +function settings_readNumber__P48818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32461,15 +32853,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___304860 = undefined; - s.nums___304867 = undefined; + s.buf___63031 = undefined; + s.nums___63038 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___304860 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___304860); + s.buf___63031 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___63031); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -32479,20 +32871,20 @@ switch (step) { { step = 7; continue; } { step = 6; continue; } case 1: - s.tmp_2 = msgpack_unpackNumberArray__P289585_mk(s); - s.tmp_2.arg0 = s.buf___304860; + s.tmp_2 = msgpack_unpackNumberArray__P47138_mk(s); + s.tmp_2.arg0 = s.buf___63031; s.tmp_2.arg1 = 0; - s.callLocIdx = 136; s.pc = 8; return s.tmp_2; + s.callLocIdx = 129; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.nums___304867 = (r0); - s.tmp_0 = r0 = s.nums___304867; + s.nums___63038 = (r0); + s.tmp_0 = r0 = s.nums___63038; 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___304867); + r0 = pxsim_Array__length(s.nums___63038); s.tmp_1 = r0; r0 = (s.tmp_1 >= 1); case 3: @@ -32500,7 +32892,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___304867, 0); + r0 = pxsim_Array__getAt(s.nums___63038, 0); { step = 7; continue; } case 4: case 5: @@ -32512,18 +32904,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readNumber__P291252.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__P48818.info = {"start":3283,"length":313,"line":131,"column":4,"endLine":141,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} -function settings_readNumber__P291252_mk(s) { +function settings_readNumber__P48818_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P291252, depth: s.depth + 1, + parent: s, fn: settings_readNumber__P48818, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - buf___304860: undefined, - nums___304867: undefined, + buf___63031: undefined, + nums___63038: undefined, arg0: undefined, } } @@ -32531,7 +32923,7 @@ function settings_readNumber__P291252_mk(s) { -function settings_readBuffer__P291250(s) { +function settings_readBuffer__P48815(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32549,12 +32941,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readBuffer__P291250.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__P48815.info = {"start":2694,"length":72,"line":103,"column":4,"endLine":105,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} -function settings_readBuffer__P291250_mk(s) { +function settings_readBuffer__P48815_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readBuffer__P291250, depth: s.depth + 1, + parent: s, fn: settings_readBuffer__P48815, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -32563,7 +32955,7 @@ function settings_readBuffer__P291250_mk(s) { -function msgpack_unpackNumberArray__P289585(s) { +function msgpack_unpackNumberArray__P47138(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32573,16 +32965,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___304880 = undefined; - s.fmt___304887 = undefined; - s.v___304896 = undefined; + s.res___63051 = undefined; + s.fmt___63058 = undefined; + s.v___63067 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___304880 = (r0); + s.res___63051 = (r0); case 1: s.tmp_1 = r0 = s.arg1; r0 = pxsim.BufferMethods.length(s.arg0); @@ -32594,14 +32986,14 @@ switch (step) { s.tmp_3 = r0 = s.arg1; r0 = (s.tmp_3 + 1); s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P293014_mk(s); + s.tmp_4 = msgpack_tagFormat__P50920_mk(s); r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); s.tmp_4.arg0 = r0; s.callLocIdx = 23; s.pc = 12; return s.tmp_4; case 12: r0 = s.retval; - s.fmt___304887 = (r0); - r0 = (s.fmt___304887 === null); + s.fmt___63058 = (r0); + r0 = (s.fmt___63058 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } @@ -32609,21 +33001,21 @@ switch (step) { r0 = (s.arg1 - 1); s.tmp_2 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___304896 = (r0); - r0 = (-31 <= s.v___304896); + s.v___63067 = (r0); + r0 = (-31 <= s.v___63067); 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___304896 <= 127); + r0 = (s.v___63067 <= 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___304880, s.v___304896); + r0 = pxsim_Array__push(s.res___63051, s.v___63067); { step = 5; continue; } case 4: r0 = null; @@ -32631,13 +33023,13 @@ switch (step) { case 5: { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.res___304880; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___304887, s.arg1); + s.tmp_0 = r0 = s.res___63051; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___63058, 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__P289577_mk(s); - s.tmp_2.arg0 = s.fmt___304887; + s.tmp_2 = pins_sizeOf__P47130_mk(s); + s.tmp_2.arg0 = s.fmt___63058; s.callLocIdx = 24; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; @@ -32658,26 +33050,26 @@ switch (step) { case 9: { step = 1; continue; } case 10: - r0 = s.res___304880; + r0 = s.res___63051; case 11: return leave(s, r0) default: oops() } } } -msgpack_unpackNumberArray__P289585.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__P47138.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__P289585_mk(s) { +function msgpack_unpackNumberArray__P47138_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P289585, depth: s.depth + 1, + parent: s, fn: msgpack_unpackNumberArray__P47138, depth: s.depth + 1, pc: 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___304880: undefined, - fmt___304887: undefined, - v___304896: undefined, + res___63051: undefined, + fmt___63058: undefined, + v___63067: undefined, arg0: undefined, arg1: undefined, } } @@ -32686,7 +33078,7 @@ function msgpack_unpackNumberArray__P289585_mk(s) { -function scene_systemMenu_initVolume__P293679(s) { +function scene_systemMenu_initVolume__P51601(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32696,20 +33088,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___304941 = undefined; - s.tmp_0 = settings_readNumber__P291252_mk(s); + s.vol___63112 = undefined; + s.tmp_0 = settings_readNumber__P48818_mk(s); s.tmp_0.arg0 = "#volume"; - s.callLocIdx = 1106; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1213; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.vol___304941 = (r0); - r0 = (s.vol___304941 !== undefined); + s.vol___63112 = (r0); + r0 = (s.vol___63112 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P291001_mk(s); - s.tmp_1.arg0 = s.vol___304941; - s.callLocIdx = 1107; s.pc = 4; return s.tmp_1; + s.tmp_1 = music_setVolume__P48561_mk(s); + s.tmp_1.arg0 = s.vol___63112; + s.callLocIdx = 1214; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -32718,23 +33110,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P293679.info = {"start":13238,"length":144,"line":399,"column":4,"endLine":403,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} +scene_systemMenu_initVolume__P51601.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__P293679_mk(s) { +function scene_systemMenu_initVolume__P51601_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P293679, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initVolume__P51601, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___304941: undefined, + vol___63112: undefined, } } -function game_currentScene__P291955(s) { +function game_currentScene__P49640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32744,21 +33136,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P293421_mk(s); + s.tmp_0 = game_init__P51343_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 930; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1039; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___293413; + r0 = globals._scene___51335; return leave(s, r0) default: oops() } } } -game_currentScene__P291955.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} +game_currentScene__P49640.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__P291955_mk(s) { +function game_currentScene__P49640_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_currentScene__P291955, depth: s.depth + 1, + parent: s, fn: game_currentScene__P49640, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -32767,7 +33159,7 @@ function game_currentScene__P291955_mk(s) { -function game_addScenePopHandler__P291974(s) { +function game_addScenePopHandler__P49656(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32781,35 +33173,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___293416); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___51338); s.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___293416 = (r0); + globals._scenePopHandlers___51338 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___293416, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___51338, 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___293416, s.arg0); + r0 = pxsim_Array__push(globals._scenePopHandlers___51338, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePopHandler__P291974.info = {"start":11754,"length":237,"line":368,"column":4,"endLine":372,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} +game_addScenePopHandler__P49656.info = {"start":10273,"length":237,"line":325,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePopHandler","argumentNames":["handler"]} -function game_addScenePopHandler__P291974_mk(s) { +function game_addScenePopHandler__P49656_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePopHandler__P291974, depth: s.depth + 1, + parent: s, fn: game_addScenePopHandler__P49656, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32820,7 +33212,7 @@ function game_addScenePopHandler__P291974_mk(s) { -function game_addScenePushHandler__P291972(s) { +function game_addScenePushHandler__P49654(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32834,35 +33226,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___293415); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___51337); s.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___293415 = (r0); + globals._scenePushHandlers___51337 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___293415, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___51337, 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___293415, s.arg0); + r0 = pxsim_Array__push(globals._scenePushHandlers___51337, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePushHandler__P291972.info = {"start":10753,"length":242,"line":344,"column":4,"endLine":348,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} +game_addScenePushHandler__P49654.info = {"start":9272,"length":242,"line":301,"column":4,"endLine":305,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"addScenePushHandler","argumentNames":["handler"]} -function game_addScenePushHandler__P291972_mk(s) { +function game_addScenePushHandler__P49654_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePushHandler__P291972, depth: s.depth + 1, + parent: s, fn: game_addScenePushHandler__P49654, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32873,7 +33265,7 @@ function game_addScenePushHandler__P291972_mk(s) { -function Fx8__P289553(s) { +function Fx8__P47104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32893,12 +33285,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx8__P289553.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} +Fx8__P47104.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__P289553_mk(s) { +function Fx8__P47104_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx8__P289553, depth: s.depth + 1, + parent: s, fn: Fx8__P47104, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -32908,7 +33300,7 @@ function Fx8__P289553_mk(s) { -function SpriteKind_create__P291555(s) { +function SpriteKind_create__P49213(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32918,26 +33310,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___293253 === undefined); + r0 = (globals.nextKind___51174 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___293253 = (1000); + globals.nextKind___51174 = (1000); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___293253; + s.tmp_0 = r0 = globals.nextKind___51174; r0 = (s.tmp_0 + 1); - globals.nextKind___293253 = (r0); + globals.nextKind___51174 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -SpriteKind_create__P291555.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} +SpriteKind_create__P49213.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__P291555_mk(s) { +function SpriteKind_create__P49213_mk(s) { checkStack(s.depth); return { - parent: s, fn: SpriteKind_create__P291555, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P49213, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -32946,7 +33338,7 @@ function SpriteKind_create__P291555_mk(s) { -function controller_Button_constructor__P291328(s) { +function controller_Button_constructor__P48940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32963,7 +33355,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C291322_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = (s.arg0).fields["_pressed"] = (false); r0 = (s.arg0).fields["repeatDelay"] = (undefined); @@ -32973,13 +33365,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__P305017); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P63188); 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__P305024); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P63195); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["id"]; @@ -32998,12 +33390,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_constructor__P291328.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__P48940.info = {"start":2004,"length":864,"line":77,"column":8,"endLine":94,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":["this","id","configKey"]} -function controller_Button_constructor__P291328_mk(s) { +function controller_Button_constructor__P48940_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_constructor__P291328, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P48940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33017,7 +33409,7 @@ function controller_Button_constructor__P291328_mk(s) { -function inline__P305017(s) { +function controller_Button_inline__P63188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33027,22 +33419,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P291333_mk(s); + s.tmp_0 = controller_Button_setPressed__P48947_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; - s.callLocIdx = 148; s.pc = 1; return s.tmp_0; + s.callLocIdx = 199; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P305017.info = {"start":2211,"length":28,"line":77,"column":66,"endLine":77,"endColumn":94,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +controller_Button_inline__P63188.info = {"start":2627,"length":28,"line":88,"column":66,"endLine":88,"endColumn":94,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function inline__P305017_mk(s) { +function controller_Button_inline__P63188_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P305017, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P63188, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -33051,7 +33443,7 @@ function inline__P305017_mk(s) { -function inline__P305024(s) { +function controller_Button_inline__P63195(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33061,22 +33453,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P291333_mk(s); + s.tmp_0 = controller_Button_setPressed__P48947_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = true; - s.callLocIdx = 149; s.pc = 1; return s.tmp_0; + s.callLocIdx = 200; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P305024.info = {"start":2313,"length":27,"line":78,"column":68,"endLine":78,"endColumn":95,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":[]} +controller_Button_inline__P63195.info = {"start":2729,"length":27,"line":89,"column":68,"endLine":89,"endColumn":95,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function inline__P305024_mk(s) { +function controller_Button_inline__P63195_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P305024, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P63195, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -33085,7 +33477,7 @@ function inline__P305024_mk(s) { -function controller_setupButton__P293235(s) { +function controller_setupButton__P51163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33104,12 +33496,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_setupButton__P293235.info = {"start":983,"length":93,"line":47,"column":4,"endLine":49,"endColumn":6,"fileName":"pxt_modules/game/controller.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} +controller_setupButton__P51163.info = {"start":861,"length":93,"line":39,"column":4,"endLine":41,"endColumn":6,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setupButton","argumentNames":["buttonId","key"]} -function controller_setupButton__P293235_mk(s) { +function controller_setupButton__P51163_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P293235, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P51163, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -33119,7 +33511,7 @@ function controller_setupButton__P293235_mk(s) { -function controller_Button_setPressed__P291333(s) { +function controller_Button_setPressed__P48947(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33135,26 +33527,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C291322_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C48934_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__P291124_mk(s); - s.callLocIdx = 152; s.pc = 7; return s.tmp_2; + s.tmp_2 = power_poke__P48685_mk(s); + s.callLocIdx = 203; 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__P291362_mk(s); + s.tmp_1 = controller_Controller_connected__P48903_mk(s); r0 = s.arg0.fields["_owner"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = true; - s.callLocIdx = 153; s.pc = 8; return s.tmp_1; + s.callLocIdx = 204; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; case 1: @@ -33165,17 +33557,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__P293237_mk(s); + s.tmp_0 = controller_Button_raiseButtonDown__P51147_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 154; s.pc = 9; return s.tmp_0; + s.callLocIdx = 205; 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__P293236_mk(s); + s.tmp_0 = controller_Button_raiseButtonUp__P51146_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 155; s.pc = 10; return s.tmp_0; + s.callLocIdx = 206; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 4: @@ -33185,12 +33577,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P291333.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__P48947.info = {"start":6774,"length":507,"line":201,"column":8,"endLine":215,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"setPressed","argumentNames":["this","pressed"]} -function controller_Button_setPressed__P291333_mk(s) { +function controller_Button_setPressed__P48947_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P291333, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P48947, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33203,7 +33595,7 @@ function controller_Button_setPressed__P291333_mk(s) { -function controller_Button_raiseButtonDown__P293237(s) { +function controller_Button_raiseButtonDown__P51147(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33218,8 +33610,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C291322_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___293229); + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___51157); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -33234,12 +33626,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P293237.info = {"start":2672,"length":205,"line":92,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonDown","argumentNames":["this"]} +controller_Button_raiseButtonDown__P51147.info = {"start":3088,"length":205,"line":103,"column":8,"endLine":108,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonDown","argumentNames":["this"]} -function controller_Button_raiseButtonDown__P293237_mk(s) { +function controller_Button_raiseButtonDown__P51147_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P293237, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P51147, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33249,7 +33641,7 @@ function controller_Button_raiseButtonDown__P293237_mk(s) { -function controller_Button_raiseButtonUp__P293236(s) { +function controller_Button_raiseButtonUp__P51146(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33264,8 +33656,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C291322_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___293229); + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___51157); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -33280,12 +33672,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P293236.info = {"start":2462,"length":200,"line":85,"column":8,"endLine":90,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonUp","argumentNames":["this"]} +controller_Button_raiseButtonUp__P51146.info = {"start":2878,"length":200,"line":96,"column":8,"endLine":101,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonUp","argumentNames":["this"]} -function controller_Button_raiseButtonUp__P293236_mk(s) { +function controller_Button_raiseButtonUp__P51146_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P293236, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P51146, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33295,7 +33687,7 @@ function controller_Button_raiseButtonUp__P293236_mk(s) { -function controller_Controller_connected__P291362(s) { +function controller_Controller_connected__P48903(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33311,7 +33703,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); r0 = s.arg0.fields["_connected"]; s.tmp_1 = r0; r0 = (s.arg1 != s.tmp_1); @@ -33339,12 +33731,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller_connected__P291362.info = {"start":12550,"length":261,"line":405,"column":8,"endLine":410,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} +controller_Controller_connected__P48903.info = {"start":6340,"length":261,"line":216,"column":8,"endLine":221,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this","value"]} -function controller_Controller_connected__P291362_mk(s) { +function controller_Controller_connected__P48903_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P291362, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P48903, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33357,7 +33749,7 @@ function controller_Controller_connected__P291362_mk(s) { -function controller_Controller_id__P291349(s) { +function controller_Controller_id__P48890(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33372,18 +33764,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); r0 = s.arg0.fields["_id"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_id__P291349.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__P291349.isGetter = true; +controller_Controller_id__P48890.info = {"start":2547,"length":49,"line":85,"column":8,"endLine":87,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"id","argumentNames":["this"]} +controller_Controller_id__P48890.isGetter = true; -function controller_Controller_id__P291349_mk(s) { +function controller_Controller_id__P48890_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_id__P291349, depth: s.depth + 1, + parent: s, fn: controller_Controller_id__P48890, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33392,7 +33784,7 @@ function controller_Controller_id__P291349_mk(s) { -function controller_Controller_connected__P291361(s) { +function controller_Controller_connected__P48902(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33407,18 +33799,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C291342_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C48883_VT)) failedCast(r0); r0 = s.arg0.fields["_connected"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_connected__P291361.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__P291361.isGetter = true; +controller_Controller_connected__P48902.info = {"start":6267,"length":63,"line":212,"column":8,"endLine":214,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"connected","argumentNames":["this"]} +controller_Controller_connected__P48902.isGetter = true; -function controller_Controller_connected__P291361_mk(s) { +function controller_Controller_connected__P48902_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P291361, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P48902, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33427,7 +33819,7 @@ function controller_Controller_connected__P291361_mk(s) { -function settings_initScopes__P293202(s) { +function settings_initScopes__P51114(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33437,18 +33829,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___305102 = undefined; - s.tmp_1 = settings_runNumber__P291244_mk(s); - s.callLocIdx = 127; s.pc = 1; return s.tmp_1; + s.rn___63273 = undefined; + s.tmp_1 = settings_runNumber__P48808_mk(s); + s.callLocIdx = 120; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.rn___305102 = (r0); - s.tmp_0 = settings_writeNumber__P291248_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___293190; - s.tmp_0.arg1 = s.rn___305102; - s.callLocIdx = 128; s.pc = 2; return s.tmp_0; + s.rn___63273 = (r0); + s.tmp_0 = settings_writeNumber__P48813_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___51102; + s.tmp_0.arg1 = s.rn___63273; + s.callLocIdx = 121; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = pxsim.control.deviceSerialNumber(); @@ -33456,34 +33848,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___305102); - s.tmp_0 = settings_setScope__P293201_mk(s); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___63273); + s.tmp_0 = settings_setScope__P51113_mk(s); r0 = pxsim_pxtcore.programName(); s.tmp_0.arg0 = r0; - s.callLocIdx = 129; s.pc = 3; return s.tmp_0; + s.callLocIdx = 122; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_initScopes__P293202.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +settings_initScopes__P51114.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__P293202_mk(s) { +function settings_initScopes__P51114_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P293202, depth: s.depth + 1, + parent: s, fn: settings_initScopes__P51114, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___305102: undefined, + rn___63273: undefined, } } -function settings_setScope__P293201(s) { +function settings_setScope__P51113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33493,7 +33885,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___305131 = undefined; + s.currScope___63302 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -33518,21 +33910,21 @@ switch (step) { r0 = pxsim_pxtrt.panic(922); case 3: case 4: - s.tmp_0 = settings_readString__P291251_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___293191; - s.callLocIdx = 125; s.pc = 7; return s.tmp_0; + s.tmp_0 = settings_readString__P48816_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___51103; + s.callLocIdx = 118; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.currScope___305131 = (r0); - r0 = (s.currScope___305131 != s.arg0); + s.currScope___63302 = (r0); + r0 = (s.currScope___63302 != 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__P291247_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___293191; + s.tmp_0 = settings_writeString__P48811_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___51103; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 126; s.pc = 8; return s.tmp_0; + s.callLocIdx = 119; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; case 5: @@ -33541,18 +33933,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_setScope__P293201.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__P51113.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__P293201_mk(s) { +function settings_setScope__P51113_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P293201, depth: s.depth + 1, + parent: s, fn: settings_setScope__P51113, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - currScope___305131: undefined, + currScope___63302: undefined, arg0: undefined, } } @@ -33560,7 +33952,7 @@ function settings_setScope__P293201_mk(s) { -function settings_readString__P291251(s) { +function settings_readString__P48816(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33570,14 +33962,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___305152 = undefined; + s.buf___63323 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___305152 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___305152); + s.buf___63323 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___63323); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -33587,7 +33979,7 @@ switch (step) { { step = 3; continue; } { step = 2; continue; } case 1: - r0 = pxsim.BufferMethods.toString(s.buf___305152); + r0 = pxsim.BufferMethods.toString(s.buf___63323); { step = 3; continue; } case 2: r0 = undefined; @@ -33595,16 +33987,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readString__P291251.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__P48816.info = {"start":2827,"length":177,"line":110,"column":4,"endLine":116,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readString","argumentNames":["key"]} -function settings_readString__P291251_mk(s) { +function settings_readString__P48816_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readString__P291251, depth: s.depth + 1, + parent: s, fn: settings_readString__P48816, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___305152: undefined, + buf___63323: undefined, arg0: undefined, } } @@ -33612,7 +34004,7 @@ function settings_readString__P291251_mk(s) { -function settings_writeString__P291247(s) { +function settings_writeString__P48811(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33627,23 +34019,23 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P291246_mk(s); + s.tmp_0 = settings_writeBuffer__P48810_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim.control.createBufferFromUTF8(s.arg1); s.tmp_0.arg1 = r0; - s.callLocIdx = 131; s.pc = 1; return s.tmp_0; + s.callLocIdx = 124; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -settings_writeString__P291247.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__P48811.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__P291247_mk(s) { +function settings_writeString__P48811_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P291247, depth: s.depth + 1, + parent: s, fn: settings_writeString__P48811, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33654,7 +34046,7 @@ function settings_writeString__P291247_mk(s) { -function settings_runNumber__P291244(s) { +function settings_runNumber__P48808(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33664,9 +34056,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P291252_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___293190; - s.callLocIdx = 124; s.pc = 3; return s.tmp_1; + s.tmp_1 = settings_readNumber__P48818_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___51102; + s.callLocIdx = 117; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -33683,12 +34075,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_runNumber__P291244.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} +settings_runNumber__P48808.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__P291244_mk(s) { +function settings_runNumber__P48808_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_runNumber__P291244, depth: s.depth + 1, + parent: s, fn: settings_runNumber__P48808, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33699,7 +34091,7 @@ function settings_runNumber__P291244_mk(s) { -function control___screen_setupUpdate__P291183(s) { +function control___screen_setupUpdate__P48746(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33713,24 +34105,24 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___293159 = (true); - globals.__update___293157 = (s.arg0); + globals.__updated___51071 = (true); + globals.__update___51069 = (s.arg0); s.tmp_0 = lambda_1_mk(s); s.tmp_0.argL = s.arg0; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 120; s.pc = 1; return s.tmp_0; + s.callLocIdx = 113; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P291183.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__P48746.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__P291183_mk(s) { +function control___screen_setupUpdate__P48746_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P291183, depth: s.depth + 1, + parent: s, fn: control___screen_setupUpdate__P48746, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33740,7 +34132,7 @@ function control___screen_setupUpdate__P291183_mk(s) { -function control___screen_update__P291182(s) { +function control___screen_update__P48745(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33750,27 +34142,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___293157); + r0 = pxsim_numops_toBoolDecr(globals.__update___51069); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___293157; + s.tmp_0.argL = globals.__update___51069; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 119; s.pc = 3; return s.tmp_0; + s.callLocIdx = 112; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: case 2: - globals.__updated___293159 = (true); + globals.__updated___51071 = (true); r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_update__P291182.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__P48745.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__P291182_mk(s) { +function control___screen_update__P48745_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P291182, depth: s.depth + 1, + parent: s, fn: control___screen_update__P48745, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -33779,7 +34171,7 @@ function control___screen_update__P291182_mk(s) { -function pause__P289811(s) { +function pause__P47368(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33803,12 +34195,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pause__P289811.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +pause__P47368.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__P289811_mk(s) { +function pause__P47368_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P289811, depth: s.depth + 1, + parent: s, fn: pause__P47368, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33817,7 +34209,7 @@ function pause__P289811_mk(s) { -function music_Melody_toString__P291016(s) { +function music_Melody_toString__P48576(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33832,17 +34224,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C291007_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C48567_VT)) failedCast(r0); r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -music_Melody_toString__P291016.info = {"start":10021,"length":53,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} +music_Melody_toString__P48576.info = {"start":10021,"length":53,"line":310,"column":8,"endLine":312,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"toString","argumentNames":["this"]} -function music_Melody_toString__P291016_mk(s) { +function music_Melody_toString__P48576_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P291016, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P48576, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33851,7 +34243,7 @@ function music_Melody_toString__P291016_mk(s) { -function sprites_SpriteMap_toString__P291530(s) { +function sprites_SpriteMap_toString__P49188(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33866,7 +34258,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C291522_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; r0 = s.arg0.fields["buckets"]; @@ -33886,11 +34278,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, " buckets, "); s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P289515_mk(s); + s.tmp_10 = helpers_arrayFilter__P47065_mk(s); r0 = s.arg0.fields["buckets"]; s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = inline__P305192; - s.callLocIdx = 515; s.pc = 2; return s.tmp_10; + s.tmp_10.arg1 = length_inline__P63363; + s.callLocIdx = 612; s.pc = 2; return s.tmp_10; case 2: r0 = s.retval; s.tmp_9 = r0; @@ -33911,12 +34303,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_toString__P291530.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__P49188.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__P291530_mk(s) { +function sprites_SpriteMap_toString__P49188_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_toString__P291530, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P49188, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33936,7 +34328,7 @@ function sprites_SpriteMap_toString__P291530_mk(s) { -function inline__P305192(s) { +function length_inline__P63363(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33960,12 +34352,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P305192.info = {"start":4196,"length":8,"line":113,"column":74,"endLine":113,"endColumn":82,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["b"]} +length_inline__P63363.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__P305192_mk(s) { +function length_inline__P63363_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P305192, depth: s.depth + 1, + parent: s, fn: length_inline__P63363, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33977,7 +34369,7 @@ function inline__P305192_mk(s) { -function ArcadePhysicsEngine_moveSprite__P291617(s) { +function ArcadePhysicsEngine_moveSprite__P49275(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33987,9 +34379,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___305224 = undefined; - s.maxDist___305232 = undefined; - s.ms___305252 = undefined; + s.tm___63395 = undefined; + s.maxDist___63403 = undefined; + s.ms___63423 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -33998,7 +34390,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -34017,19 +34409,19 @@ switch (step) { r0 = (s.tmp_2 + s.arg3); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 722; s.pc = 13; return s.tmp_0; + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 819; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___305224 = (r0); - s.tmp_0 = r0 = s.tm___305224; + s.tm___63395 = (r0); + s.tmp_0 = r0 = s.tm___63395; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.tm___305224.fields["_map"]; + r0 = s.tm___63395.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -34048,41 +34440,41 @@ switch (step) { r0 = (s.tmp_6 + 128); s.tmp_7 = r0; r0 = (s.tmp_7 >> 8); - s.maxDist___305232 = (r0); - s.tmp_2 = Math_abs__P289532_mk(s); + s.maxDist___63403 = (r0); + s.tmp_2 = Math_abs__P47083_mk(s); r0 = (s.arg2 + 128); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_2.arg0 = r0; - s.callLocIdx = 726; s.pc = 14; return s.tmp_2; + s.callLocIdx = 823; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___305232); + r0 = (s.tmp_1 <= s.maxDist___63403); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 3; continue; } r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_5 = Math_abs__P289532_mk(s); + s.tmp_5 = Math_abs__P47083_mk(s); r0 = (s.arg3 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); s.tmp_5.arg0 = r0; - s.callLocIdx = 728; s.pc = 15; return s.tmp_5; + s.callLocIdx = 825; s.pc = 15; return s.tmp_5; case 15: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___305232); + r0 = (s.tmp_4 <= s.maxDist___63403); case 4: // jmp value (already in r0) s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 5; continue; } - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C291601_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C49259_VT); s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P291602_mk(s); + s.tmp_9 = MovingSprite_constructor__P49260_mk(s); s.tmp_9.arg0 = s.tmp_8; s.tmp_9.arg1 = s.arg1; r0 = s.arg1.fields["_vx"]; @@ -34093,23 +34485,23 @@ switch (step) { s.tmp_9.arg5 = s.arg3; s.tmp_9.arg6 = s.arg2; s.tmp_9.arg7 = s.arg3; - s.callLocIdx = 729; s.pc = 16; return s.tmp_9; + s.callLocIdx = 826; s.pc = 16; return s.tmp_9; case 16: r0 = s.retval; - s.ms___305252 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P293289_mk(s); + s.ms___63423 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P51210_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___305252; - s.tmp_0.arg2 = s.tm___305224; - s.callLocIdx = 730; s.pc = 17; return s.tmp_0; + s.tmp_0.arg1 = s.ms___63423; + s.tmp_0.arg2 = s.tm___63395; + s.callLocIdx = 827; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; { step = 10; continue; } case 5: - s.tmp_1 = tiles_TileMap_isOnWall__P291768_mk(s); - s.tmp_1.arg0 = s.tm___305224; + s.tmp_1 = tiles_TileMap_isOnWall__P49444_mk(s); + s.tmp_1.arg0 = s.tm___63395; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 731; s.pc = 18; return s.tmp_1; + s.callLocIdx = 828; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; s.tmp_0 = r0; @@ -34118,11 +34510,11 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P293291_mk(s); + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P51212_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___305224; - s.callLocIdx = 732; s.pc = 19; return s.tmp_4; + s.tmp_4.arg2 = s.tm___63395; + s.callLocIdx = 829; s.pc = 19; return s.tmp_4; case 19: r0 = s.retval; s.tmp_3 = r0; @@ -34156,12 +34548,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P291617.info = {"start":22399,"length":1208,"line":619,"column":4,"endLine":650,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} +ArcadePhysicsEngine_moveSprite__P49275.info = {"start":22609,"length":1208,"line":623,"column":4,"endLine":654,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"moveSprite","argumentNames":["this","s","dx","dy"]} -function ArcadePhysicsEngine_moveSprite__P291617_mk(s) { +function ArcadePhysicsEngine_moveSprite__P49275_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P291617, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P49275, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34173,9 +34565,9 @@ function ArcadePhysicsEngine_moveSprite__P291617_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___305224: undefined, - maxDist___305232: undefined, - ms___305252: undefined, + tm___63395: undefined, + maxDist___63403: undefined, + ms___63423: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34186,7 +34578,7 @@ function ArcadePhysicsEngine_moveSprite__P291617_mk(s) { -function ArcadePhysicsEngine_canResolveClipping__P293291(s) { +function ArcadePhysicsEngine_canResolveClipping__P51212(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34196,19 +34588,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___305297 = undefined; - s.sz___305300 = undefined; - s.maxMove___305305 = undefined; - s.origY___305307 = undefined; - s.origX___305310 = undefined; - s.l___305313 = undefined; - s.r___305318 = undefined; - s.t___305323 = undefined; - s.b___305328 = undefined; - s.offset___305333 = undefined; - s.offset___305358 = undefined; - s.offset___305389 = undefined; - s.offset___305414 = undefined; + s.hbox___63468 = undefined; + s.sz___63471 = undefined; + s.maxMove___63476 = undefined; + s.origY___63478 = undefined; + s.origX___63481 = undefined; + s.l___63484 = undefined; + s.r___63489 = undefined; + s.t___63494 = undefined; + s.b___63499 = undefined; + s.offset___63504 = undefined; + s.offset___63529 = undefined; + s.offset___63560 = undefined; + s.offset___63585 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34216,7 +34608,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); @@ -34227,91 +34619,91 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite_setHitbox__P291483_mk(s); + s.tmp_4 = Sprite_setHitbox__P49136_mk(s); s.tmp_4.arg0 = s.arg1; - s.callLocIdx = 734; s.pc = 20; return s.tmp_4; + s.callLocIdx = 831; s.pc = 20; return s.tmp_4; case 20: r0 = s.retval; case 1: case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___305297 = (r0); + s.hbox___63468 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___305300 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P291609_mk(s); + s.sz___63471 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P49267_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 736; s.pc = 21; return s.tmp_0; + s.callLocIdx = 833; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.maxMove___305305 = (r0); + s.maxMove___63476 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___305307 = (r0); + s.origY___63478 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___305310 = (r0); - s.tmp_1 = game_Hitbox_left__P291385_mk(s); - s.tmp_1.arg0 = s.hbox___305297; - s.callLocIdx = 737; s.pc = 22; return s.tmp_1; + s.origX___63481 = (r0); + s.tmp_1 = game_Hitbox_left__P48961_mk(s); + s.tmp_1.arg0 = s.hbox___63468; + s.callLocIdx = 834; 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___305313 = (r0); - s.tmp_1 = game_Hitbox_right__P291387_mk(s); - s.tmp_1.arg0 = s.hbox___305297; - s.callLocIdx = 739; s.pc = 23; return s.tmp_1; + s.l___63484 = (r0); + s.tmp_1 = game_Hitbox_right__P48963_mk(s); + s.tmp_1.arg0 = s.hbox___63468; + s.callLocIdx = 836; 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___305318 = (r0); - s.tmp_1 = game_Hitbox_top__P291386_mk(s); - s.tmp_1.arg0 = s.hbox___305297; - s.callLocIdx = 741; s.pc = 24; return s.tmp_1; + s.r___63489 = (r0); + s.tmp_1 = game_Hitbox_top__P48962_mk(s); + s.tmp_1.arg0 = s.hbox___63468; + s.callLocIdx = 838; 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___305323 = (r0); - s.tmp_1 = game_Hitbox_bottom__P291388_mk(s); - s.tmp_1.arg0 = s.hbox___305297; - s.callLocIdx = 743; s.pc = 25; return s.tmp_1; + s.t___63494 = (r0); + s.tmp_1 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_1.arg0 = s.hbox___63468; + s.callLocIdx = 840; 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___305328 = (r0); - r0 = (s.b___305328 + 1); + s.b___63499 = (r0); + r0 = (s.b___63499 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___305300); - s.offset___305333 = (r0); - r0 = (s.offset___305333 <= s.maxMove___305305); + r0 = (s.tmp_0 % s.sz___63471); + s.offset___63504 = (r0); + r0 = (s.offset___63504 <= s.maxMove___63476); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } s.tmp_1 = r0 = s.arg1; r0 = s.arg1.fields["_y"]; s.tmp_3 = r0; - r0 = (s.offset___305333 * 256); + r0 = (s.offset___63504 * 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__P291768_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P49444_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 747; s.pc = 26; return s.tmp_3; + s.callLocIdx = 844; s.pc = 26; return s.tmp_3; case 26: r0 = s.retval; s.tmp_2 = r0; @@ -34325,38 +34717,38 @@ switch (step) { { step = 19; continue; } { step = 4; continue; } case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___305307); + r0 = (s.arg1).fields["_y"] = (s.origY___63478); case 4: case 5: case 6: - r0 = (s.t___305323 / s.sz___305300); + r0 = (s.t___63494 / s.sz___63471); 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___305300); + r0 = (s.tmp_1 * s.sz___63471); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___305323); - s.offset___305358 = (r0); - r0 = (s.offset___305358 <= s.maxMove___305305); + r0 = (s.tmp_0 - s.t___63494); + s.offset___63529 = (r0); + r0 = (s.offset___63529 <= s.maxMove___63476); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } s.tmp_1 = r0 = s.arg1; r0 = s.arg1.fields["_y"]; s.tmp_3 = r0; - r0 = (s.offset___305358 * 256); + r0 = (s.offset___63529 * 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__P291768_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P49444_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 750; s.pc = 27; return s.tmp_3; + s.callLocIdx = 847; s.pc = 27; return s.tmp_3; case 27: r0 = s.retval; s.tmp_2 = r0; @@ -34370,32 +34762,32 @@ switch (step) { { step = 19; continue; } { step = 8; continue; } case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___305307); + r0 = (s.arg1).fields["_y"] = (s.origY___63478); case 8: case 9: case 10: - r0 = (s.r___305318 + 1); + r0 = (s.r___63489 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___305300); - s.offset___305389 = (r0); - r0 = (s.offset___305389 <= s.maxMove___305305); + r0 = (s.tmp_0 % s.sz___63471); + s.offset___63560 = (r0); + r0 = (s.offset___63560 <= s.maxMove___63476); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } s.tmp_1 = r0 = s.arg1; r0 = s.arg1.fields["_x"]; s.tmp_3 = r0; - r0 = (s.offset___305389 * 256); + r0 = (s.offset___63560 * 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__P291768_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P49444_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 753; s.pc = 28; return s.tmp_3; + s.callLocIdx = 850; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -34409,38 +34801,38 @@ switch (step) { { step = 19; continue; } { step = 12; continue; } case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___305310); + r0 = (s.arg1).fields["_x"] = (s.origX___63481); case 12: case 13: case 14: - r0 = (s.l___305313 / s.sz___305300); + r0 = (s.l___63484 / s.sz___63471); 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___305300); + r0 = (s.tmp_1 * s.sz___63471); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___305313); - s.offset___305414 = (r0); - r0 = (s.offset___305414 <= s.maxMove___305305); + r0 = (s.tmp_0 - s.l___63484); + s.offset___63585 = (r0); + r0 = (s.offset___63585 <= s.maxMove___63476); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 17; continue; } s.tmp_1 = r0 = s.arg1; r0 = s.arg1.fields["_x"]; s.tmp_3 = r0; - r0 = (s.offset___305414 * 256); + r0 = (s.offset___63585 * 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__P291768_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P49444_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 756; s.pc = 29; return s.tmp_3; + s.callLocIdx = 853; s.pc = 29; return s.tmp_3; case 29: r0 = s.retval; s.tmp_2 = r0; @@ -34454,7 +34846,7 @@ switch (step) { { step = 19; continue; } { step = 16; continue; } case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___305310); + r0 = (s.arg1).fields["_x"] = (s.origX___63481); case 16: case 17: case 18: @@ -34463,12 +34855,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P293291.info = {"start":23703,"length":2135,"line":653,"column":4,"endLine":724,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} +ArcadePhysicsEngine_canResolveClipping__P51212.info = {"start":23913,"length":2135,"line":657,"column":4,"endLine":728,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"canResolveClipping","argumentNames":["this","s","tm"]} -function ArcadePhysicsEngine_canResolveClipping__P293291_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P51212_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P293291, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P51212, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34476,19 +34868,19 @@ function ArcadePhysicsEngine_canResolveClipping__P293291_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___305297: undefined, - sz___305300: undefined, - maxMove___305305: undefined, - origY___305307: undefined, - origX___305310: undefined, - l___305313: undefined, - r___305318: undefined, - t___305323: undefined, - b___305328: undefined, - offset___305333: undefined, - offset___305358: undefined, - offset___305389: undefined, - offset___305414: undefined, + hbox___63468: undefined, + sz___63471: undefined, + maxMove___63476: undefined, + origY___63478: undefined, + origX___63481: undefined, + l___63484: undefined, + r___63489: undefined, + t___63494: undefined, + b___63499: undefined, + offset___63504: undefined, + offset___63529: undefined, + offset___63560: undefined, + offset___63585: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34498,7 +34890,7 @@ function ArcadePhysicsEngine_canResolveClipping__P293291_mk(s) { -function Sprite_isStatic__P291484(s) { +function Sprite_isStatic__P49137(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34513,19 +34905,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_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__P291484.info = {"start":8549,"length":57,"line":305,"column":4,"endLine":307,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} +Sprite_isStatic__P49137.info = {"start":10944,"length":57,"line":388,"column":4,"endLine":390,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isStatic","argumentNames":["this"]} -function Sprite_isStatic__P291484_mk(s) { +function Sprite_isStatic__P49137_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isStatic__P291484, depth: s.depth + 1, + parent: s, fn: Sprite_isStatic__P49137, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34535,7 +34927,7 @@ function Sprite_isStatic__P291484_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P293289(s) { +function ArcadePhysicsEngine_tilemapCollisions__P51210(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34545,37 +34937,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___305453 = undefined; - s.hbox___305478 = undefined; - s.tileScale___305481 = undefined; - s.tileSize___305484 = undefined; - s.xDiff___305488 = undefined; - s.yDiff___305495 = undefined; - s.right___305511 = undefined; - s.x0___305515 = undefined; - s.collidedTiles___305530 = undefined; - s.y___305532 = undefined; - s.y0___305546 = undefined; - s.obstacle___305562 = undefined; - s.collisionDirection___305589 = undefined; - s.tile___305615 = undefined; - s.unnamed22628___U14 = undefined; - s.unnamed22629___U15 = undefined; - s.down___305693 = undefined; - s.y0___305697 = undefined; - s.collidedTiles___305712 = undefined; - s.x___305714 = undefined; - s.x0___305724 = undefined; - s.obstacle___305738 = undefined; - s.collisionDirection___305765 = undefined; - s.tile___305791 = undefined; - s.unnamed22630___U24 = undefined; - s.unnamed22631___U25 = undefined; - s.overlappedTiles___305872 = undefined; - s.x___305874 = undefined; - s.x0___305884 = undefined; - s.y___305894 = undefined; - s.y0___305904 = undefined; + s.s___63624 = undefined; + s.hbox___63649 = undefined; + s.tileScale___63652 = undefined; + s.tileSize___63655 = undefined; + s.xDiff___63659 = undefined; + s.yDiff___63666 = undefined; + s.right___63682 = undefined; + s.x0___63686 = undefined; + s.collidedTiles___63701 = undefined; + s.y___63703 = undefined; + s.y0___63717 = undefined; + s.obstacle___63733 = undefined; + s.collisionDirection___63760 = undefined; + s.tile___63786 = undefined; + s.unnamed880___U14 = undefined; + s.unnamed881___U15 = undefined; + s.down___63870 = undefined; + s.y0___63874 = undefined; + s.collidedTiles___63889 = undefined; + s.x___63891 = undefined; + s.x0___63901 = undefined; + s.obstacle___63915 = undefined; + s.collisionDirection___63942 = undefined; + s.tile___63968 = undefined; + s.unnamed882___U24 = undefined; + s.unnamed883___U25 = undefined; + s.overlappedTiles___64055 = undefined; + s.x___64057 = undefined; + s.x0___64067 = undefined; + s.y___64077 = undefined; + s.y0___64087 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34583,20 +34975,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___305453 = (r0); - r0 = s.s___305453.fields["flags"]; + s.s___63624 = (r0); + r0 = s.s___63624.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 256); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_5 = tiles_TileMap_isOnWall__P291768_mk(s); + s.tmp_5 = tiles_TileMap_isOnWall__P49444_mk(s); s.tmp_5.arg0 = s.arg2; - s.tmp_5.arg1 = s.s___305453; - s.callLocIdx = 617; s.pc = 89; return s.tmp_5; - case 89: + s.tmp_5.arg1 = s.s___63624; + s.callLocIdx = 714; s.pc = 93; return s.tmp_5; + case 93: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); @@ -34605,7 +34997,7 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 1; continue; } - s.tmp_6 = r0 = s.s___305453; + s.tmp_6 = r0 = s.s___63624; r0 = s.tmp_6.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & -257); @@ -34615,7 +35007,7 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___305453.fields["_image"]; + r0 = s.s___63624.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -34625,32 +35017,32 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_4 = Sprite_setHitbox__P291483_mk(s); - s.tmp_4.arg0 = s.s___305453; - s.callLocIdx = 619; s.pc = 90; return s.tmp_4; - case 90: + s.tmp_4 = Sprite_setHitbox__P49136_mk(s); + s.tmp_4.arg0 = s.s___63624; + s.callLocIdx = 716; s.pc = 94; return s.tmp_4; + case 94: r0 = s.retval; case 5: case 6: - r0 = s.s___305453.fields["_hitbox"]; - s.hbox___305478 = (r0); + r0 = s.s___63624.fields["_hitbox"]; + s.hbox___63649 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___305481 = (r0); - r0 = (1 << s.tileScale___305481); - s.tileSize___305484 = (r0); - r0 = s.s___305453.fields["_x"]; + s.tileScale___63652 = (r0); + r0 = (1 << s.tileScale___63652); + s.tileSize___63655 = (r0); + r0 = s.s___63624.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___305453.fields["_lastX"]; + r0 = s.s___63624.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___305488 = (r0); - r0 = s.s___305453.fields["_y"]; + s.xDiff___63659 = (r0); + r0 = s.s___63624.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___305453.fields["_lastY"]; + r0 = s.s___63624.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___305495 = (r0); - r0 = s.s___305453.fields["flags"]; + s.yDiff___63666 = (r0); + r0 = s.s___63624.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 2818); s.tmp_2 = r0; @@ -34659,28 +35051,28 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 75; continue; } - r0 = (s.xDiff___305488 !== 0); + if (!r0) { step = 79; continue; } + r0 = (s.xDiff___63659 !== 0); s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 39; continue; } - r0 = (s.xDiff___305488 > 0); - s.right___305511 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___305511); + if (!r0) { step = 41; continue; } + r0 = (s.xDiff___63659 > 0); + s.right___63682 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___63682); if (!r0) { step = 7; continue; } - s.tmp_1 = game_Hitbox_right__P291387_mk(s); - s.tmp_1.arg0 = s.hbox___305478; - s.callLocIdx = 623; s.pc = 91; return s.tmp_1; - case 91: + s.tmp_1 = game_Hitbox_right__P48963_mk(s); + s.tmp_1.arg0 = s.hbox___63649; + s.callLocIdx = 720; s.pc = 95; return s.tmp_1; + case 95: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 256); { step = 8; continue; } case 7: - s.tmp_3 = game_Hitbox_left__P291385_mk(s); - s.tmp_3.arg0 = s.hbox___305478; - s.callLocIdx = 625; s.pc = 92; return s.tmp_3; - case 92: + s.tmp_3 = game_Hitbox_left__P48961_mk(s); + s.tmp_3.arg0 = s.hbox___63649; + s.callLocIdx = 722; s.pc = 96; return s.tmp_3; + case 96: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_2 - 256); @@ -34689,30 +35081,30 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___305481 + 8); + r0 = (s.tileScale___63652 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___305515 = (r0); + s.x0___63686 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___305530 = (r0); - s.tmp_1 = game_Hitbox_top__P291386_mk(s); - s.tmp_1.arg0 = s.hbox___305478; - s.callLocIdx = 629; s.pc = 93; return s.tmp_1; - case 93: + s.collidedTiles___63701 = (r0); + s.tmp_1 = game_Hitbox_top__P48962_mk(s); + s.tmp_1.arg0 = s.hbox___63649; + s.callLocIdx = 726; s.pc = 97; return s.tmp_1; + case 97: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___305495); - s.y___305532 = (r0); + r0 = (s.tmp_0 - s.yDiff___63666); + s.y___63703 = (r0); case 9: - s.tmp_1 = r0 = s.y___305532; - s.tmp_3 = r0 = s.tileSize___305484; - s.tmp_6 = game_Hitbox_bottom__P291388_mk(s); - s.tmp_6.arg0 = s.hbox___305478; - s.callLocIdx = 631; s.pc = 94; return s.tmp_6; - case 94: + s.tmp_1 = r0 = s.y___63703; + s.tmp_3 = r0 = s.tileSize___63655; + s.tmp_6 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_6.arg0 = s.hbox___63649; + s.callLocIdx = 728; s.pc = 98; return s.tmp_6; + case 98: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___305495); + r0 = (s.tmp_5 - s.yDiff___63666); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -34722,52 +35114,52 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_10 = Fx_min__P289570_mk(s); - s.tmp_10.arg0 = s.y___305532; - s.tmp_12 = game_Hitbox_bottom__P291388_mk(s); - s.tmp_12.arg0 = s.hbox___305478; - s.callLocIdx = 634; s.pc = 96; return s.tmp_12; - case 96: + s.tmp_10 = Fx_min__P47121_mk(s); + s.tmp_10.arg0 = s.y___63703; + s.tmp_12 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_12.arg0 = s.hbox___63649; + s.callLocIdx = 731; s.pc = 100; return s.tmp_12; + case 100: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___305495); + r0 = (s.tmp_11 - s.yDiff___63666); s.tmp_10.arg1 = r0; - s.callLocIdx = 636; s.pc = 95; return s.tmp_10; - case 95: + s.callLocIdx = 733; s.pc = 99; return s.tmp_10; + case 99: r0 = s.retval; s.tmp_9 = r0; r0 = (s.tmp_9 + 128); s.tmp_8 = r0; - r0 = (s.tileScale___305481 + 8); + r0 = (s.tileScale___63652 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___305546 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P291766_mk(s); + s.y0___63717 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P49442_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___305515; - s.tmp_1.arg2 = s.y0___305546; - s.callLocIdx = 639; s.pc = 97; return s.tmp_1; - case 97: + s.tmp_1.arg1 = s.x0___63686; + s.tmp_1.arg2 = s.y0___63717; + s.callLocIdx = 736; s.pc = 101; return s.tmp_1; + case 101: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 12; continue; } - s.tmp_2 = tiles_TileMap_getObstacle__P291767_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P49443_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___305515; - s.tmp_2.arg2 = s.y0___305546; - s.callLocIdx = 640; s.pc = 98; return s.tmp_2; - case 98: + s.tmp_2.arg1 = s.x0___63686; + s.tmp_2.arg2 = s.y0___63717; + s.callLocIdx = 737; s.pc = 102; return s.tmp_2; + case 102: r0 = s.retval; - s.obstacle___305562 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P305570); + s.obstacle___63733 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P63741); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___305562); - s.tmp_4 = helpers_arraySome__P289512_mk(s); - s.tmp_4.arg0 = s.collidedTiles___305530; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___63733); + s.tmp_4 = helpers_arraySome__P47062_mk(s); + s.tmp_4.arg0 = s.collidedTiles___63701; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 641; s.pc = 99; return s.tmp_4; - case 99: + s.callLocIdx = 738; s.pc = 103; return s.tmp_4; + case 103: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -34776,22 +35168,22 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__push(s.collidedTiles___305530, s.obstacle___305562); + r0 = pxsim_Array__push(s.collidedTiles___63701, s.obstacle___63733); case 10: case 11: case 12: case 13: - r0 = (s.tileSize___305484 << 8); + r0 = (s.tileSize___63655 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___305532); - s.y___305532 = (r0); + r0 = (s.tmp_0 + s.y___63703); + s.y___63703 = (r0); { step = 9; continue; } case 14: - r0 = pxsim_Array__length(s.collidedTiles___305530); + r0 = pxsim_Array__length(s.collidedTiles___63701); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 37; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___305511); + if (!r0) { step = 39; continue; } + r0 = pxsim_numops_toBoolDecr(s.right___63682); if (!r0) { step = 15; continue; } r0 = 2; { step = 16; continue; } @@ -34800,23 +35192,23 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___305589 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___305511); + s.collisionDirection___63760 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___63682); if (!r0) { step = 17; continue; } - r0 = (s.x0___305515 << s.tileScale___305481); + r0 = (s.x0___63686 << s.tileScale___63652); 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___305478.fields["width"]; + r0 = s.hbox___63649.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 18; continue; } case 17: - r0 = (s.x0___305515 + 1); + r0 = (s.x0___63686 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___305481); + r0 = (s.tmp_5 << s.tileScale___63652); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -34824,113 +35216,125 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___305453; - r0 = s.hbox___305478.fields["ox"]; + s.tmp_8 = r0 = s.s___63624; + r0 = s.hbox___63649.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___305615 = (undefined); - s.unnamed22628___U14 = (s.collidedTiles___305530); - s.unnamed22629___U15 = (0); + s.tile___63786 = (undefined); + s.unnamed880___U14 = (s.collidedTiles___63701); + s.unnamed881___U15 = (0); case 19: - s.tmp_0 = r0 = s.unnamed22629___U15; - r0 = pxsim_Array__length(s.unnamed22628___U14); + s.tmp_0 = r0 = s.unnamed881___U15; + r0 = pxsim_Array__length(s.unnamed880___U14); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 22; continue; } + r0 = pxsim_Array__getAt(s.unnamed880___U14, s.unnamed881___U15); + s.tile___63786 = (r0); + r0 = s.s___63624.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 2818); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed22628___U14, s.unnamed22629___U15); - s.tile___305615 = (r0); - s.tmp_2 = Sprite_registerObstacle__P291513_mk(s); - s.tmp_2.arg0 = s.s___305453; - s.tmp_2.arg1 = s.collisionDirection___305589; - s.tmp_2.arg2 = s.tile___305615; - s.tmp_2.arg3 = s.arg2; - s.callLocIdx = 647; s.pc = 100; return s.tmp_2; - case 100: + s.tmp_6 = Sprite_registerObstacle__P49168_mk(s); + s.tmp_6.arg0 = s.s___63624; + s.tmp_6.arg1 = s.collisionDirection___63760; + s.tmp_6.arg2 = s.tile___63786; + s.tmp_6.arg3 = s.arg2; + s.callLocIdx = 744; s.pc = 104; return s.tmp_6; + case 104: r0 = s.retval; - r0 = (s.unnamed22629___U15 + 1); - s.unnamed22629___U15 = (r0); - { step = 19; continue; } case 20: - s.unnamed22628___U14 = (undefined); - r0 = s.s___305453.fields["flags"]; + case 21: + r0 = (s.unnamed881___U15 + 1); + s.unnamed881___U15 = (r0); + { step = 19; continue; } + case 22: + s.unnamed880___U14 = (undefined); + r0 = s.s___63624.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 16); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 21; continue; } - s.tmp_2 = Sprite_destroy__P291515_mk(s); - s.tmp_2.arg0 = s.s___305453; + if (!r0) { step = 23; continue; } + s.tmp_2 = Sprite_destroy__P49170_mk(s); + s.tmp_2.arg0 = s.s___63624; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 648; s.pc = 101; return s.tmp_2; - case 101: + s.callLocIdx = 745; s.pc = 105; return s.tmp_2; + case 105: r0 = s.retval; - { step = 36; continue; } - case 21: - r0 = s.s___305453.fields["_vx"]; + { step = 38; continue; } + case 23: + r0 = s.s___63624.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 = 32; continue; } - r0 = s.s___305453.fields["flags"]; + if (!r0) { step = 34; continue; } + r0 = s.s___63624.fields["flags"]; s.tmp_4 = r0; r0 = (s.tmp_4 & 32); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 30; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___305511); + if (!r0) { step = 32; continue; } + r0 = pxsim_numops_toBoolDecr(s.right___63682); 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 = 22; continue; } + if (r0) { step = 24; continue; } r0 = s.tmp_5; - { step = 23; continue; } - case 22: - s.tmp_8 = Sprite_vx__P291455_mk(s); - s.tmp_8.arg0 = s.s___305453; - s.callLocIdx = 649; s.pc = 102; return s.tmp_8; - case 102: + { step = 25; continue; } + case 24: + s.tmp_8 = Sprite_vx__P49100_mk(s); + s.tmp_8.arg0 = s.s___63624; + s.callLocIdx = 746; s.pc = 106; return s.tmp_8; + case 106: r0 = s.retval; s.tmp_7 = r0; r0 = (s.tmp_7 < 0); - case 23: + case 25: // jmp value (already in r0) s.tmp_9 = r0; r0 = pxsim_numops_toBool(s.tmp_9); - if (!r0) { step = 24; continue; } + if (!r0) { step = 26; continue; } r0 = s.tmp_9; - { step = 27; continue; } - case 24: - s.tmp_10 = r0 = s.right___305511; + { step = 29; continue; } + case 26: + s.tmp_10 = r0 = s.right___63682; r0 = pxsim_numops_toBool(s.tmp_10); - if (r0) { step = 25; continue; } + if (r0) { step = 27; continue; } r0 = s.tmp_10; - { step = 26; continue; } - case 25: - s.tmp_12 = Sprite_vx__P291455_mk(s); - s.tmp_12.arg0 = s.s___305453; - s.callLocIdx = 650; s.pc = 103; return s.tmp_12; - case 103: + { step = 28; continue; } + case 27: + s.tmp_12 = Sprite_vx__P49100_mk(s); + s.tmp_12.arg0 = s.s___63624; + s.callLocIdx = 747; s.pc = 107; return s.tmp_12; + case 107: r0 = s.retval; s.tmp_11 = r0; r0 = (s.tmp_11 > 0); - case 26: + case 28: // jmp value (already in r0) s.tmp_13 = r0; r0 = s.tmp_13; - case 27: + case 29: // jmp value (already in r0) s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); - if (!r0) { step = 28; continue; } - s.tmp_15 = r0 = s.s___305453; - r0 = s.s___305453.fields["_vx"]; + if (!r0) { step = 30; continue; } + s.tmp_15 = r0 = s.s___63624; + r0 = s.s___63624.fields["_vx"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -34947,98 +35351,98 @@ switch (step) { r0 = (0 - s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - case 28: - case 29: - { step = 31; continue; } case 30: - r0 = (s.arg1).fields["dx"] = (0); - r0 = (s.s___305453).fields["_vx"] = (0); case 31: - { step = 35; continue; } + { step = 33; continue; } case 32: - s.tmp_2 = Math_sign__P289533_mk(s); - r0 = s.s___305453.fields["_vx"]; + r0 = (s.arg1).fields["dx"] = (0); + r0 = (s.s___63624).fields["_vx"] = (0); + case 33: + { step = 37; continue; } + case 34: + s.tmp_2 = Math_sign__P47084_mk(s); + r0 = s.s___63624.fields["_vx"]; s.tmp_3 = r0; r0 = (s.tmp_3 + 128); s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_2.arg0 = r0; - s.callLocIdx = 655; s.pc = 104; return s.tmp_2; - case 104: + s.callLocIdx = 752; s.pc = 108; return s.tmp_2; + case 108: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P289533_mk(s); + s.tmp_6 = Math_sign__P47084_mk(s); r0 = s.arg1.fields["cachedVx"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_6.arg0 = r0; - s.callLocIdx = 657; s.pc = 105; return s.tmp_6; - case 105: + s.callLocIdx = 754; s.pc = 109; return s.tmp_6; + case 109: 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 = 33; continue; } + if (!r0) { step = 35; continue; } r0 = (s.arg1).fields["dx"] = (0); - case 33: - case 34: case 35: case 36: case 37: case 38: case 39: case 40: - r0 = (s.yDiff___305495 !== 0); + case 41: + case 42: + r0 = (s.yDiff___63666 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 73; continue; } - r0 = (s.yDiff___305495 > 0); - s.down___305693 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___305693); - if (!r0) { step = 41; continue; } - s.tmp_1 = game_Hitbox_bottom__P291388_mk(s); - s.tmp_1.arg0 = s.hbox___305478; - s.callLocIdx = 658; s.pc = 106; return s.tmp_1; - case 106: + if (!r0) { step = 77; continue; } + r0 = (s.yDiff___63666 > 0); + s.down___63870 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___63870); + if (!r0) { step = 43; continue; } + s.tmp_1 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_1.arg0 = s.hbox___63649; + s.callLocIdx = 755; s.pc = 110; return s.tmp_1; + case 110: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 256); - { step = 42; continue; } - case 41: - s.tmp_3 = game_Hitbox_top__P291386_mk(s); - s.tmp_3.arg0 = s.hbox___305478; - s.callLocIdx = 660; s.pc = 107; return s.tmp_3; - case 107: + { step = 44; continue; } + case 43: + s.tmp_3 = game_Hitbox_top__P48962_mk(s); + s.tmp_3.arg0 = s.hbox___63649; + s.callLocIdx = 757; s.pc = 111; return s.tmp_3; + case 111: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_2 - 256); - case 42: + case 44: // jmp value (already in r0) s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___305481 + 8); + r0 = (s.tileScale___63652 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___305697 = (r0); + s.y0___63874 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___305712 = (r0); - s.tmp_0 = game_Hitbox_left__P291385_mk(s); - s.tmp_0.arg0 = s.hbox___305478; - s.callLocIdx = 664; s.pc = 108; return s.tmp_0; - case 108: + s.collidedTiles___63889 = (r0); + s.tmp_0 = game_Hitbox_left__P48961_mk(s); + s.tmp_0.arg0 = s.hbox___63649; + s.callLocIdx = 761; s.pc = 112; return s.tmp_0; + case 112: r0 = s.retval; - s.x___305714 = (r0); - case 43: - s.tmp_1 = r0 = s.x___305714; - s.tmp_3 = r0 = s.tileSize___305484; - s.tmp_5 = game_Hitbox_right__P291387_mk(s); - s.tmp_5.arg0 = s.hbox___305478; - s.callLocIdx = 665; s.pc = 109; return s.tmp_5; - case 109: + s.x___63891 = (r0); + case 45: + s.tmp_1 = r0 = s.x___63891; + s.tmp_3 = r0 = s.tileSize___63655; + s.tmp_5 = game_Hitbox_right__P48963_mk(s); + s.tmp_5.arg0 = s.hbox___63649; + s.callLocIdx = 762; s.pc = 113; return s.tmp_5; + case 113: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 << 8); @@ -35048,51 +35452,51 @@ switch (step) { r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 48; continue; } - s.tmp_9 = Fx_min__P289570_mk(s); - s.tmp_9.arg0 = s.x___305714; - s.tmp_10 = game_Hitbox_right__P291387_mk(s); - s.tmp_10.arg0 = s.hbox___305478; - s.callLocIdx = 667; s.pc = 111; return s.tmp_10; - case 111: + if (!r0) { step = 50; continue; } + s.tmp_9 = Fx_min__P47121_mk(s); + s.tmp_9.arg0 = s.x___63891; + s.tmp_10 = game_Hitbox_right__P48963_mk(s); + s.tmp_10.arg0 = s.hbox___63649; + s.callLocIdx = 764; s.pc = 115; return s.tmp_10; + case 115: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 668; s.pc = 110; return s.tmp_9; - case 110: + s.callLocIdx = 765; s.pc = 114; return s.tmp_9; + case 114: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___305481 + 8); + r0 = (s.tileScale___63652 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___305724 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P291766_mk(s); + s.x0___63901 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P49442_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___305724; - s.tmp_1.arg2 = s.y0___305697; - s.callLocIdx = 671; s.pc = 112; return s.tmp_1; - case 112: + s.tmp_1.arg1 = s.x0___63901; + s.tmp_1.arg2 = s.y0___63874; + s.callLocIdx = 768; s.pc = 116; return s.tmp_1; + case 116: 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__P291767_mk(s); + if (!r0) { step = 48; continue; } + s.tmp_2 = tiles_TileMap_getObstacle__P49443_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___305724; - s.tmp_2.arg2 = s.y0___305697; - s.callLocIdx = 672; s.pc = 113; return s.tmp_2; - case 113: + s.tmp_2.arg1 = s.x0___63901; + s.tmp_2.arg2 = s.y0___63874; + s.callLocIdx = 769; s.pc = 117; return s.tmp_2; + case 117: r0 = s.retval; - s.obstacle___305738 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P305746); + s.obstacle___63915 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P63923); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___305738); - s.tmp_4 = helpers_arraySome__P289512_mk(s); - s.tmp_4.arg0 = s.collidedTiles___305712; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___63915); + s.tmp_4 = helpers_arraySome__P47062_mk(s); + s.tmp_4.arg0 = s.collidedTiles___63889; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 673; s.pc = 114; return s.tmp_4; - case 114: + s.callLocIdx = 770; s.pc = 118; return s.tmp_4; + case 118: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -35100,162 +35504,174 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); - if (!r0) { step = 44; continue; } - r0 = pxsim_Array__push(s.collidedTiles___305712, s.obstacle___305738); - case 44: - case 45: + if (!r0) { step = 46; continue; } + r0 = pxsim_Array__push(s.collidedTiles___63889, s.obstacle___63915); case 46: case 47: - r0 = (s.tileSize___305484 << 8); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___305714); - s.x___305714 = (r0); - { step = 43; continue; } case 48: - r0 = pxsim_Array__length(s.collidedTiles___305712); + case 49: + r0 = (s.tileSize___63655 << 8); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.x___63891); + s.x___63891 = (r0); + { step = 45; continue; } + case 50: + r0 = pxsim_Array__length(s.collidedTiles___63889); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 71; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___305693); - if (!r0) { step = 49; continue; } + if (!r0) { step = 75; continue; } + r0 = pxsim_numops_toBoolDecr(s.down___63870); + if (!r0) { step = 51; continue; } r0 = 3; - { step = 50; continue; } - case 49: + { step = 52; continue; } + case 51: r0 = 1; - case 50: + case 52: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___305765 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___305693); - if (!r0) { step = 51; continue; } - r0 = (s.y0___305697 << s.tileScale___305481); + s.collisionDirection___63942 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___63870); + if (!r0) { step = 53; continue; } + r0 = (s.y0___63874 << s.tileScale___63652); 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___305478.fields["height"]; + r0 = s.hbox___63649.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); - { step = 52; continue; } - case 51: - r0 = (s.y0___305697 + 1); + { step = 54; continue; } + case 53: + r0 = (s.y0___63874 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___305481); + r0 = (s.tmp_5 << s.tileScale___63652); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; r0 = (s.tmp_6 | 0); - case 52: + case 54: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___305453; - r0 = s.hbox___305478.fields["oy"]; + s.tmp_8 = r0 = s.s___63624; + r0 = s.hbox___63649.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___305791 = (undefined); - s.unnamed22630___U24 = (s.collidedTiles___305712); - s.unnamed22631___U25 = (0); - case 53: - s.tmp_0 = r0 = s.unnamed22631___U25; - r0 = pxsim_Array__length(s.unnamed22630___U24); + s.tile___63968 = (undefined); + s.unnamed882___U24 = (s.collidedTiles___63889); + s.unnamed883___U25 = (0); + case 55: + s.tmp_0 = r0 = s.unnamed883___U25; + r0 = pxsim_Array__length(s.unnamed882___U24); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 54; continue; } - r0 = pxsim_Array__getAt(s.unnamed22630___U24, s.unnamed22631___U25); - s.tile___305791 = (r0); - s.tmp_2 = Sprite_registerObstacle__P291513_mk(s); - s.tmp_2.arg0 = s.s___305453; - s.tmp_2.arg1 = s.collisionDirection___305765; - s.tmp_2.arg2 = s.tile___305791; - s.tmp_2.arg3 = s.arg2; - s.callLocIdx = 679; s.pc = 115; return s.tmp_2; - case 115: + if (!r0) { step = 58; continue; } + r0 = pxsim_Array__getAt(s.unnamed882___U24, s.unnamed883___U25); + s.tile___63968 = (r0); + r0 = s.s___63624.fields["flags"]; + s.tmp_5 = r0; + r0 = (s.tmp_5 & 2818); + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); + s.tmp_3 = r0; + r0 = pxsim_Boolean__bang(s.tmp_3); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 56; continue; } + s.tmp_6 = Sprite_registerObstacle__P49168_mk(s); + s.tmp_6.arg0 = s.s___63624; + s.tmp_6.arg1 = s.collisionDirection___63942; + s.tmp_6.arg2 = s.tile___63968; + s.tmp_6.arg3 = s.arg2; + s.callLocIdx = 776; s.pc = 119; return s.tmp_6; + case 119: r0 = s.retval; - r0 = (s.unnamed22631___U25 + 1); - s.unnamed22631___U25 = (r0); - { step = 53; continue; } - case 54: - s.unnamed22630___U24 = (undefined); - r0 = s.s___305453.fields["flags"]; + case 56: + case 57: + r0 = (s.unnamed883___U25 + 1); + s.unnamed883___U25 = (r0); + { step = 55; continue; } + case 58: + s.unnamed882___U24 = (undefined); + r0 = s.s___63624.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__P291515_mk(s); - s.tmp_2.arg0 = s.s___305453; + if (!r0) { step = 59; continue; } + s.tmp_2 = Sprite_destroy__P49170_mk(s); + s.tmp_2.arg0 = s.s___63624; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 680; s.pc = 116; return s.tmp_2; - case 116: + s.callLocIdx = 777; s.pc = 120; return s.tmp_2; + case 120: r0 = s.retval; - { step = 70; continue; } - case 55: - r0 = s.s___305453.fields["_vy"]; + { step = 74; continue; } + case 59: + r0 = s.s___63624.fields["_vy"]; s.tmp_1 = r0; r0 = s.arg1.fields["cachedVy"]; 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 = 66; continue; } - r0 = s.s___305453.fields["flags"]; + if (!r0) { step = 70; continue; } + r0 = s.s___63624.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___305693); + if (!r0) { step = 68; continue; } + r0 = pxsim_numops_toBoolDecr(s.down___63870); 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 = 56; continue; } + if (r0) { step = 60; continue; } r0 = s.tmp_5; - { step = 57; continue; } - case 56: - s.tmp_8 = Sprite_vy__P291457_mk(s); - s.tmp_8.arg0 = s.s___305453; - s.callLocIdx = 681; s.pc = 117; return s.tmp_8; - case 117: + { step = 61; continue; } + case 60: + s.tmp_8 = Sprite_vy__P49102_mk(s); + s.tmp_8.arg0 = s.s___63624; + s.callLocIdx = 778; s.pc = 121; return s.tmp_8; + case 121: r0 = s.retval; s.tmp_7 = r0; r0 = (s.tmp_7 < 0); - case 57: + case 61: // jmp value (already in r0) s.tmp_9 = r0; r0 = pxsim_numops_toBool(s.tmp_9); - if (!r0) { step = 58; continue; } + if (!r0) { step = 62; continue; } r0 = s.tmp_9; - { step = 61; continue; } - case 58: - s.tmp_10 = r0 = s.down___305693; + { step = 65; continue; } + case 62: + s.tmp_10 = r0 = s.down___63870; r0 = pxsim_numops_toBool(s.tmp_10); - if (r0) { step = 59; continue; } + if (r0) { step = 63; continue; } r0 = s.tmp_10; - { step = 60; continue; } - case 59: - s.tmp_12 = Sprite_vy__P291457_mk(s); - s.tmp_12.arg0 = s.s___305453; - s.callLocIdx = 682; s.pc = 118; return s.tmp_12; - case 118: + { step = 64; continue; } + case 63: + s.tmp_12 = Sprite_vy__P49102_mk(s); + s.tmp_12.arg0 = s.s___63624; + s.callLocIdx = 779; s.pc = 122; return s.tmp_12; + case 122: r0 = s.retval; s.tmp_11 = r0; r0 = (s.tmp_11 > 0); - case 60: + case 64: // jmp value (already in r0) s.tmp_13 = r0; r0 = s.tmp_13; - case 61: + case 65: // jmp value (already in r0) s.tmp_14 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_14); - if (!r0) { step = 62; continue; } - s.tmp_15 = r0 = s.s___305453; - r0 = s.s___305453.fields["_vy"]; + if (!r0) { step = 66; continue; } + s.tmp_15 = r0 = s.s___63624; + r0 = s.s___63624.fields["_vy"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -35272,53 +35688,53 @@ switch (step) { r0 = (0 - s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - case 62: - case 63: - { step = 65; continue; } - case 64: - r0 = (s.arg1).fields["dy"] = (0); - r0 = (s.s___305453).fields["_vy"] = (0); - case 65: - { step = 69; continue; } case 66: - s.tmp_2 = Math_sign__P289533_mk(s); - r0 = s.s___305453.fields["_vy"]; + case 67: + { step = 69; continue; } + case 68: + r0 = (s.arg1).fields["dy"] = (0); + r0 = (s.s___63624).fields["_vy"] = (0); + case 69: + { step = 73; continue; } + case 70: + s.tmp_2 = Math_sign__P47084_mk(s); + r0 = s.s___63624.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.callLocIdx = 687; s.pc = 119; return s.tmp_2; - case 119: + s.callLocIdx = 784; s.pc = 123; return s.tmp_2; + case 123: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P289533_mk(s); + s.tmp_6 = Math_sign__P47084_mk(s); r0 = s.arg1.fields["cachedVy"]; s.tmp_7 = r0; r0 = (s.tmp_7 + 128); s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_6.arg0 = r0; - s.callLocIdx = 689; s.pc = 120; return s.tmp_6; - case 120: + s.callLocIdx = 786; s.pc = 124; return s.tmp_6; + case 124: 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 = 67; continue; } + if (!r0) { step = 71; continue; } r0 = (s.arg1).fields["dy"] = (0); - case 67: - case 68: - case 69: - case 70: case 71: case 72: case 73: case 74: case 75: case 76: - r0 = s.s___305453.fields["flags"]; + case 77: + case 78: + case 79: + case 80: + r0 = s.s___63624.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 1538); s.tmp_2 = r0; @@ -35327,22 +35743,22 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 87; continue; } + if (!r0) { step = 91; continue; } r0 = pxsim_Array__mk(); - s.overlappedTiles___305872 = (r0); - s.tmp_0 = game_Hitbox_left__P291385_mk(s); - s.tmp_0.arg0 = s.hbox___305478; - s.callLocIdx = 690; s.pc = 121; return s.tmp_0; - case 121: + s.overlappedTiles___64055 = (r0); + s.tmp_0 = game_Hitbox_left__P48961_mk(s); + s.tmp_0.arg0 = s.hbox___63649; + s.callLocIdx = 787; s.pc = 125; return s.tmp_0; + case 125: r0 = s.retval; - s.x___305874 = (r0); - case 77: - s.tmp_1 = r0 = s.x___305874; - s.tmp_3 = r0 = s.tileSize___305484; - s.tmp_5 = game_Hitbox_right__P291387_mk(s); - s.tmp_5.arg0 = s.hbox___305478; - s.callLocIdx = 691; s.pc = 122; return s.tmp_5; - case 122: + s.x___64057 = (r0); + case 81: + s.tmp_1 = r0 = s.x___64057; + s.tmp_3 = r0 = s.tileSize___63655; + s.tmp_5 = game_Hitbox_right__P48963_mk(s); + s.tmp_5.arg0 = s.hbox___63649; + s.callLocIdx = 788; s.pc = 126; return s.tmp_5; + case 126: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 << 8); @@ -35352,38 +35768,38 @@ switch (step) { r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 84; continue; } - s.tmp_9 = Fx_min__P289570_mk(s); - s.tmp_9.arg0 = s.x___305874; - s.tmp_10 = game_Hitbox_right__P291387_mk(s); - s.tmp_10.arg0 = s.hbox___305478; - s.callLocIdx = 693; s.pc = 124; return s.tmp_10; - case 124: + if (!r0) { step = 88; continue; } + s.tmp_9 = Fx_min__P47121_mk(s); + s.tmp_9.arg0 = s.x___64057; + s.tmp_10 = game_Hitbox_right__P48963_mk(s); + s.tmp_10.arg0 = s.hbox___63649; + s.callLocIdx = 790; s.pc = 128; return s.tmp_10; + case 128: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 694; s.pc = 123; return s.tmp_9; - case 123: + s.callLocIdx = 791; s.pc = 127; return s.tmp_9; + case 127: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___305481 + 8); + r0 = (s.tileScale___63652 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___305884 = (r0); - s.tmp_0 = game_Hitbox_top__P291386_mk(s); - s.tmp_0.arg0 = s.hbox___305478; - s.callLocIdx = 697; s.pc = 125; return s.tmp_0; - case 125: + s.x0___64067 = (r0); + s.tmp_0 = game_Hitbox_top__P48962_mk(s); + s.tmp_0.arg0 = s.hbox___63649; + s.callLocIdx = 794; s.pc = 129; return s.tmp_0; + case 129: r0 = s.retval; - s.y___305894 = (r0); - case 78: - s.tmp_1 = r0 = s.y___305894; - s.tmp_3 = r0 = s.tileSize___305484; - s.tmp_5 = game_Hitbox_bottom__P291388_mk(s); - s.tmp_5.arg0 = s.hbox___305478; - s.callLocIdx = 698; s.pc = 126; return s.tmp_5; - case 126: + s.y___64077 = (r0); + case 82: + s.tmp_1 = r0 = s.y___64077; + s.tmp_3 = r0 = s.tileSize___63655; + s.tmp_5 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_5.arg0 = s.hbox___63649; + s.callLocIdx = 795; s.pc = 130; return s.tmp_5; + case 130: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 << 8); @@ -35393,31 +35809,31 @@ switch (step) { r0 = (s.tmp_1 < s.tmp_2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 83; continue; } - s.tmp_9 = Fx_min__P289570_mk(s); - s.tmp_9.arg0 = s.y___305894; - s.tmp_10 = game_Hitbox_bottom__P291388_mk(s); - s.tmp_10.arg0 = s.hbox___305478; - s.callLocIdx = 700; s.pc = 128; return s.tmp_10; - case 128: + if (!r0) { step = 87; continue; } + s.tmp_9 = Fx_min__P47121_mk(s); + s.tmp_9.arg0 = s.y___64077; + s.tmp_10 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_10.arg0 = s.hbox___63649; + s.callLocIdx = 797; s.pc = 132; return s.tmp_10; + case 132: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 701; s.pc = 127; return s.tmp_9; - case 127: + s.callLocIdx = 798; s.pc = 131; return s.tmp_9; + case 131: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_8 + 128); s.tmp_7 = r0; - r0 = (s.tileScale___305481 + 8); + r0 = (s.tileScale___63652 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.y0___305904 = (r0); - s.tmp_3 = tiles_TileMap_isObstacle__P291766_mk(s); + s.y0___64087 = (r0); + s.tmp_3 = tiles_TileMap_isObstacle__P49442_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___305884; - s.tmp_3.arg2 = s.y0___305904; - s.callLocIdx = 704; s.pc = 129; return s.tmp_3; - case 129: + s.tmp_3.arg1 = s.x0___64067; + s.tmp_3.arg2 = s.y0___64087; + s.callLocIdx = 801; s.pc = 133; return s.tmp_3; + case 133: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -35425,11 +35841,11 @@ switch (step) { r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 79; continue; } + if (!r0) { step = 83; continue; } r0 = s.tmp_0; - { step = 80; continue; } - case 79: - r0 = s.s___305453.fields["flags"]; + { step = 84; continue; } + case 83: + r0 = s.s___63624.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & 2048); s.tmp_7 = r0; @@ -35440,60 +35856,60 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_5); s.tmp_4 = r0; r0 = pxsim_Boolean__bang(s.tmp_4); - case 80: + case 84: // jmp value (already in r0) s.tmp_9 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_9); - if (!r0) { step = 81; continue; } - s.tmp_10 = r0 = s.overlappedTiles___305872; - s.tmp_12 = tiles_TileMap_getTile__P291759_mk(s); + if (!r0) { step = 85; continue; } + s.tmp_10 = r0 = s.overlappedTiles___64055; + s.tmp_12 = tiles_TileMap_getTile__P49435_mk(s); s.tmp_12.arg0 = s.arg2; - s.tmp_12.arg1 = s.x0___305884; - s.tmp_12.arg2 = s.y0___305904; - s.callLocIdx = 705; s.pc = 130; return s.tmp_12; - case 130: + s.tmp_12.arg1 = s.x0___64067; + s.tmp_12.arg2 = s.y0___64087; + s.callLocIdx = 802; s.pc = 134; return s.tmp_12; + case 134: r0 = s.retval; s.tmp_11 = r0; r0 = pxsim_Array__push(s.tmp_10, s.tmp_11); - case 81: - case 82: - r0 = (s.tileSize___305484 << 8); + case 85: + case 86: + r0 = (s.tileSize___63655 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___305894); - s.y___305894 = (r0); - { step = 78; continue; } - case 83: - r0 = (s.tileSize___305484 << 8); + r0 = (s.tmp_0 + s.y___64077); + s.y___64077 = (r0); + { step = 82; continue; } + case 87: + r0 = (s.tileSize___63655 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___305874); - s.x___305874 = (r0); - { step = 77; continue; } - case 84: - r0 = pxsim_Array__length(s.overlappedTiles___305872); + r0 = (s.tmp_0 + s.x___64057); + s.x___64057 = (r0); + { step = 81; continue; } + case 88: + r0 = pxsim_Array__length(s.overlappedTiles___64055); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 85; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P293290_mk(s); + if (!r0) { step = 89; continue; } + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P51211_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___305453; - s.tmp_1.arg2 = s.overlappedTiles___305872; - s.callLocIdx = 708; s.pc = 131; return s.tmp_1; - case 131: + s.tmp_1.arg1 = s.s___63624; + s.tmp_1.arg2 = s.overlappedTiles___64055; + s.callLocIdx = 805; s.pc = 135; return s.tmp_1; + case 135: r0 = s.retval; - case 85: - case 86: - case 87: - case 88: + case 89: + case 90: + case 91: + case 92: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapCollisions__P293289.info = {"start":11718,"length":9374,"line":348,"column":4,"endLine":583,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} +ArcadePhysicsEngine_tilemapCollisions__P51210.info = {"start":11722,"length":9572,"line":348,"column":4,"endLine":587,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapCollisions","argumentNames":["this","movingSprite","tm"]} -function ArcadePhysicsEngine_tilemapCollisions__P293289_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P51210_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P293289, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P51210, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35513,37 +35929,37 @@ function ArcadePhysicsEngine_tilemapCollisions__P293289_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - s___305453: undefined, - hbox___305478: undefined, - tileScale___305481: undefined, - tileSize___305484: undefined, - xDiff___305488: undefined, - yDiff___305495: undefined, - right___305511: undefined, - x0___305515: undefined, - collidedTiles___305530: undefined, - y___305532: undefined, - y0___305546: undefined, - obstacle___305562: undefined, - collisionDirection___305589: undefined, - tile___305615: undefined, - unnamed22628___U14: undefined, - unnamed22629___U15: undefined, - down___305693: undefined, - y0___305697: undefined, - collidedTiles___305712: undefined, - x___305714: undefined, - x0___305724: undefined, - obstacle___305738: undefined, - collisionDirection___305765: undefined, - tile___305791: undefined, - unnamed22630___U24: undefined, - unnamed22631___U25: undefined, - overlappedTiles___305872: undefined, - x___305874: undefined, - x0___305884: undefined, - y___305894: undefined, - y0___305904: undefined, + s___63624: undefined, + hbox___63649: undefined, + tileScale___63652: undefined, + tileSize___63655: undefined, + xDiff___63659: undefined, + yDiff___63666: undefined, + right___63682: undefined, + x0___63686: undefined, + collidedTiles___63701: undefined, + y___63703: undefined, + y0___63717: undefined, + obstacle___63733: undefined, + collisionDirection___63760: undefined, + tile___63786: undefined, + unnamed880___U14: undefined, + unnamed881___U15: undefined, + down___63870: undefined, + y0___63874: undefined, + collidedTiles___63889: undefined, + x___63891: undefined, + x0___63901: undefined, + obstacle___63915: undefined, + collisionDirection___63942: undefined, + tile___63968: undefined, + unnamed882___U24: undefined, + unnamed883___U25: undefined, + overlappedTiles___64055: undefined, + x___64057: undefined, + x0___64067: undefined, + y___64077: undefined, + y0___64087: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -35553,7 +35969,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P293289_mk(s) { -function inline__P305570(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P63741(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35575,12 +35991,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P305570.info = {"start":13934,"length":39,"line":410,"column":48,"endLine":410,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P63741.info = {"start":13940,"length":39,"line":410,"column":48,"endLine":410,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function inline__P305570_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P63741_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P305570, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P63741, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35591,7 +36007,7 @@ function inline__P305570_mk(s) { -function inline__P305746(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P63923(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35613,12 +36029,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P305746.info = {"start":17316,"length":39,"line":489,"column":48,"endLine":489,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} +ArcadePhysicsEngine_tilemapCollisions_inline__P63923.info = {"start":17420,"length":39,"line":491,"column":48,"endLine":491,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["o"]} -function inline__P305746_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P63923_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P305746, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P63923, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35629,7 +36045,7 @@ function inline__P305746_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps__P293290(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P51211(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35639,11 +36055,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___305951 = undefined; - s.tile___305954 = undefined; - s.unnamed22632___U2 = undefined; - s.unnamed22633___U3 = undefined; - s.tileOverlapHandlers___305975 = undefined; + s.alreadyHandled___64134 = undefined; + s.tile___64137 = undefined; + s.unnamed884___U2 = undefined; + s.unnamed885___U3 = undefined; + s.tileOverlapHandlers___64158 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -35651,27 +36067,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.alreadyHandled___305951 = (r0); - s.tile___305954 = (undefined); - s.unnamed22632___U2 = (s.arg2); - s.unnamed22633___U3 = (0); + s.alreadyHandled___64134 = (r0); + s.tile___64137 = (undefined); + s.unnamed884___U2 = (s.arg2); + s.unnamed885___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed22633___U3; - r0 = pxsim_Array__length(s.unnamed22632___U2); + s.tmp_0 = r0 = s.unnamed885___U3; + r0 = pxsim_Array__length(s.unnamed884___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array__getAt(s.unnamed22632___U2, s.unnamed22633___U3); - s.tile___305954 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P305958); + r0 = pxsim_Array__getAt(s.unnamed884___U2, s.unnamed885___U3); + s.tile___64137 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P64141); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___305954); - s.tmp_4 = helpers_arraySome__P289512_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___305951; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___64137); + s.tmp_4 = helpers_arraySome__P47062_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___64134; s.tmp_4.arg1 = s.tmp_2; - s.callLocIdx = 713; s.pc = 8; return s.tmp_4; + s.callLocIdx = 810; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; s.tmp_3 = r0; @@ -35680,64 +36096,64 @@ switch (step) { { step = 6; continue; } case 2: case 3: - r0 = pxsim_Array__push(s.alreadyHandled___305951, s.tile___305954); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 714; s.pc = 9; return s.tmp_0; + r0 = pxsim_Array__push(s.alreadyHandled___64134, s.tile___64137); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 811; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___305975 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___305975); + s.tileOverlapHandlers___64158 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___64158); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P305983); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P64166); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___305954); - r0 = pxsim_pxtcore_mkAction(2, inline__P305999); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___64137); + r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P64182); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___305954); - s.tmp_2 = helpers_arrayForEach__P289514_mk(s); - s.tmp_3 = helpers_arrayFilter__P289515_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___305975; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___64137); + s.tmp_2 = helpers_arrayForEach__P47064_mk(s); + s.tmp_3 = helpers_arrayFilter__P47065_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___64158; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 717; s.pc = 11; return s.tmp_3; + s.callLocIdx = 814; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 719; s.pc = 10; return s.tmp_2; + s.callLocIdx = 816; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 4: case 5: case 6: - r0 = (s.unnamed22633___U3 + 1); - s.unnamed22633___U3 = (r0); + r0 = (s.unnamed885___U3 + 1); + s.unnamed885___U3 = (r0); { step = 1; continue; } case 7: - s.unnamed22632___U2 = (undefined); + s.unnamed884___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P293290.info = {"start":21369,"length":699,"line":591,"column":4,"endLine":607,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} +ArcadePhysicsEngine_tilemapOverlaps__P51211.info = {"start":21571,"length":707,"line":595,"column":4,"endLine":611,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"tilemapOverlaps","argumentNames":["this","sprite","overlappedTiles"]} -function ArcadePhysicsEngine_tilemapOverlaps__P293290_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P51211_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P293290, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P51211, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, tmp_4: undefined, - alreadyHandled___305951: undefined, - tile___305954: undefined, - unnamed22632___U2: undefined, - unnamed22633___U3: undefined, - tileOverlapHandlers___305975: undefined, + alreadyHandled___64134: undefined, + tile___64137: undefined, + unnamed884___U2: undefined, + unnamed885___U3: undefined, + tileOverlapHandlers___64158: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -35747,7 +36163,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P293290_mk(s) { -function inline__P305958(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P64141(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35784,12 +36200,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P305958.info = {"start":21582,"length":45,"line":595,"column":36,"endLine":595,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P64141.info = {"start":21786,"length":51,"line":599,"column":36,"endLine":599,"endColumn":87,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["l"]} -function inline__P305958_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P64141_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P305958, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P64141, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35804,7 +36220,7 @@ function inline__P305958_mk(s) { -function inline__P305983(s) { +function forEach_inline__P64166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35831,9 +36247,9 @@ switch (step) { case 1: r0 = s.arg0.fields["tileKind"]; s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P291775_mk(s); + s.tmp_5 = tiles_getTileImage__P49454_mk(s); s.tmp_5.arg0 = s.caps[1]; - s.callLocIdx = 716; s.pc = 3; return s.tmp_5; + s.callLocIdx = 813; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -35845,12 +36261,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P305983.info = {"start":21896,"length":81,"line":603,"column":28,"endLine":603,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P64166.info = {"start":22106,"length":81,"line":607,"column":28,"endLine":607,"endColumn":109,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P305983_mk(s) { +function forEach_inline__P64166_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P305983, depth: s.depth + 1, + parent: s, fn: forEach_inline__P64166, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35866,7 +36282,7 @@ function inline__P305983_mk(s) { -function inline__P305999(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P64182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35886,12 +36302,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.callLocIdx = 718; s.pc = 1; return s.tmp_0; + s.callLocIdx = 815; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 718; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 718; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 718; 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 = 815; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 815; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 815; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -35899,12 +36315,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P305999.info = {"start":22008,"length":28,"line":604,"column":29,"endLine":604,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +ArcadePhysicsEngine_tilemapOverlaps_inline__P64182.info = {"start":22218,"length":28,"line":608,"column":29,"endLine":608,"endColumn":57,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P305999_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P64182_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P305999, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P64182, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35914,7 +36330,7 @@ function inline__P305999_mk(s) { -function tiles_getTileImage__P291775(s) { +function tiles_getTileImage__P49454(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35924,16 +36340,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___306007 = undefined; + s.scene___64190 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 862; s.pc = 6; return s.tmp_0; + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 971; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___306007 = (r0); + s.scene___64190 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -35943,7 +36359,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___306007.fields["tileMap"]; + r0 = s.scene___64190.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -35953,32 +36369,32 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex306017); + r0 = pxsim.image.ofBuffer(_hex64200); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getTileImage__P291769_mk(s); - r0 = s.scene___306007.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTileImage__P49445_mk(s); + r0 = s.scene___64190.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P291725_mk(s); + s.tmp_6 = tiles_Location_tileSet__P49390_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 863; s.pc = 8; return s.tmp_6; + s.callLocIdx = 972; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5.arg1 = r0; - s.callLocIdx = 864; s.pc = 7; return s.tmp_5; + s.callLocIdx = 973; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; case 5: return leave(s, r0) default: oops() } } } -tiles_getTileImage__P291775.info = {"start":16636,"length":207,"line":525,"column":4,"endLine":529,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} +tiles_getTileImage__P49454.info = {"start":21815,"length":207,"line":672,"column":4,"endLine":676,"endColumn":5,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["loc"]} -function tiles_getTileImage__P291775_mk(s) { +function tiles_getTileImage__P49454_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P291775, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P49454, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35987,16 +36403,16 @@ function tiles_getTileImage__P291775_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___306007: undefined, + scene___64190: undefined, arg0: undefined, } } -const _hex306017 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex64200 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_Location_tileSet__P291725(s) { +function tiles_Location_tileSet__P49390(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36011,29 +36427,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C291719_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_getTileIndex__P291760_mk(s); - r0 = s.arg0.fields["tileMap"]; + if (!checkSubtype(r0, tiles_Location__C49379_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_getTileIndex__P49436_mk(s); + s.tmp_1 = tiles_Location_tileMap__P49381_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 875; s.pc = 2; return s.tmp_1; + case 2: + r0 = s.retval; 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 = 771; s.pc = 1; return s.tmp_0; + s.callLocIdx = 876; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P291725.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__P291725.isGetter = true; +tiles_Location_tileSet__P49390.info = {"start":2323,"length":101,"line":86,"column":8,"endLine":88,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"tileSet","argumentNames":["this"]} +tiles_Location_tileSet__P49390.isGetter = true; -function tiles_Location_tileSet__P291725_mk(s) { +function tiles_Location_tileSet__P49390_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P291725, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileSet__P49390, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -36041,7 +36462,7 @@ function tiles_Location_tileSet__P291725_mk(s) { -function tiles_TileMap_getObstacle__P291767(s) { +function tiles_TileMap_getObstacle__P49443(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36051,8 +36472,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___306110 = undefined; - s.tile___306122 = undefined; + s.index___64299 = undefined; + s.tile___64311 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36060,13 +36481,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P291746_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P49415_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 836; s.pc = 3; return s.tmp_1; + s.callLocIdx = 944; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -36075,31 +36496,31 @@ switch (step) { r0 = 0; { step = 2; continue; } case 1: - s.tmp_2 = tiles_TileMapData_getTile__P291740_mk(s); + s.tmp_2 = tiles_TileMapData_getTile__P49409_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 = 837; s.pc = 4; return s.tmp_2; + s.callLocIdx = 945; 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___306110 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P291743_mk(s); + s.index___64299 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P49412_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___306110; - s.callLocIdx = 838; s.pc = 5; return s.tmp_0; + s.tmp_0.arg1 = s.index___64299; + s.callLocIdx = 946; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tile___306122 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C291574_VT); + s.tile___64311 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C49232_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P291580_mk(s); + s.tmp_1 = sprites_StaticObstacle_constructor__P49238_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___306122; + s.tmp_1.arg1 = s.tile___64311; s.tmp_2 = r0 = s.arg2; r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; @@ -36112,20 +36533,20 @@ switch (step) { s.tmp_1.arg3 = r0; r0 = s.arg0.fields["_layer"]; s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___306110; - s.callLocIdx = 842; s.pc = 6; return s.tmp_1; + s.tmp_1.arg5 = s.index___64299; + s.callLocIdx = 950; 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__P291767.info = {"start":12642,"length":410,"line":411,"column":8,"endLine":421,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} +tiles_TileMap_getObstacle__P49443.info = {"start":16404,"length":410,"line":521,"column":8,"endLine":531,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getObstacle","argumentNames":["this","col","row"]} -function tiles_TileMap_getObstacle__P291767_mk(s) { +function tiles_TileMap_getObstacle__P49443_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getObstacle__P291767, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getObstacle__P49443, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36133,8 +36554,8 @@ function tiles_TileMap_getObstacle__P291767_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - index___306110: undefined, - tile___306122: undefined, + index___64299: undefined, + tile___64311: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36144,7 +36565,7 @@ function tiles_TileMap_getObstacle__P291767_mk(s) { -function tiles_TileMap_layer__P291755(s) { +function tiles_TileMap_layer__P49431(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36159,18 +36580,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C291747_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C49421_VT)) failedCast(r0); r0 = s.arg0.fields["_layer"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_layer__P291755.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__P291755.isGetter = true; +tiles_TileMap_layer__P49431.info = {"start":9931,"length":63,"line":341,"column":8,"endLine":343,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"layer","argumentNames":["this"]} +tiles_TileMap_layer__P49431.isGetter = true; -function tiles_TileMap_layer__P291755_mk(s) { +function tiles_TileMap_layer__P49431_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_layer__P291755, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_layer__P49431, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -36179,7 +36600,7 @@ function tiles_TileMap_layer__P291755_mk(s) { -function sprites_StaticObstacle_constructor__P291580(s) { +function sprites_StaticObstacle_constructor__P49238(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36199,7 +36620,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C291574_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C49232_VT)) failedCast(r0); r0 = (s.arg0).fields["image"] = (s.arg1); r0 = (s.arg0).fields["layer"] = (s.arg4); r0 = (s.arg0).fields["top"] = (s.arg2); @@ -36209,12 +36630,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_constructor__P291580.info = {"start":563,"length":261,"line":28,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/game/obstacle.ts","functionName":"inline","argumentNames":["this","image","top","left","layer","tileIndex"]} +sprites_StaticObstacle_constructor__P49238.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__P291580_mk(s) { +function sprites_StaticObstacle_constructor__P49238_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_constructor__P291580, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_constructor__P49238, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -36228,7 +36649,7 @@ function sprites_StaticObstacle_constructor__P291580_mk(s) { -function Sprite_registerObstacle__P291513(s) { +function Sprite_registerObstacle__P49168(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36238,10 +36659,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___306040 = undefined; - s.wallCollisionHandlers___306047 = undefined; - s.wallHandlersToRun___306072 = undefined; - s.asTileLocation___306085 = undefined; + s.collisionHandlers___64229 = undefined; + s.wallCollisionHandlers___64236 = undefined; + s.wallHandlersToRun___64261 = undefined; + s.asTileLocation___64274 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36250,12 +36671,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_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__P291955_mk(s); - s.callLocIdx = 442; s.pc = 9; return s.tmp_1; + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 540; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; r0 = r0.fields["collisionHandlers"]; @@ -36268,42 +36689,42 @@ 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.callLocIdx = 443; s.pc = 10; return s.tmp_3; } + else { s.callLocIdx = 541; s.pc = 10; return s.tmp_3; } } case 10: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); - s.collisionHandlers___306040 = (r0); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 444; s.pc = 11; return s.tmp_0; + s.collisionHandlers___64229 = (r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 542; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___306047 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___306040); + s.wallCollisionHandlers___64236 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___64229); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P306055); + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P64244); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P306061); + r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P64250); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P289514_mk(s); - s.tmp_3 = helpers_arrayFilter__P289515_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___306040; + s.tmp_2 = helpers_arrayForEach__P47064_mk(s); + s.tmp_3 = helpers_arrayFilter__P47065_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___64229; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 446; s.pc = 13; return s.tmp_3; + s.callLocIdx = 544; s.pc = 13; return s.tmp_3; case 13: r0 = s.retval; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 448; s.pc = 12; return s.tmp_2; + s.callLocIdx = 546; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___306047); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___64236); if (!r0) { step = 7; continue; } s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); @@ -36311,8 +36732,8 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = game_currentScene__P291955_mk(s); - s.callLocIdx = 449; s.pc = 14; return s.tmp_1; + s.tmp_1 = game_currentScene__P49640_mk(s); + s.callLocIdx = 547; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; r0 = r0.fields["tileMap"]; @@ -36320,21 +36741,21 @@ switch (step) { // jmp value (already in r0) s.tmp_2 = r0; s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, inline__P306074); + r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P64263); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFilter__P289515_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___306047; + s.tmp_1 = helpers_arrayFilter__P47065_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___64236; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 451; s.pc = 15; return s.tmp_1; + s.callLocIdx = 549; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.wallHandlersToRun___306072 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___306072); + s.wallHandlersToRun___64261 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___64261); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = tiles_TileMap_getTile__P291759_mk(s); + s.tmp_1 = tiles_TileMap_getTile__P49435_mk(s); s.tmp_1.arg0 = s.arg3; s.tmp_3 = if_left_1_mk(s); s.tmp_3.arg0 = s.arg2; @@ -36344,7 +36765,7 @@ switch (step) { 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; } + else { s.callLocIdx = 550; s.pc = 17; return s.tmp_3; } } case 17: r0 = s.retval; @@ -36361,7 +36782,7 @@ switch (step) { 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; } + else { s.callLocIdx = 552; s.pc = 18; return s.tmp_6; } } case 18: r0 = s.retval; @@ -36370,18 +36791,18 @@ switch (step) { 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; + s.callLocIdx = 554; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.asTileLocation___306085 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P306101); + s.asTileLocation___64274 = (r0); + r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P64290); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___306085); - s.tmp_1 = helpers_arrayForEach__P289514_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___306072; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___64274); + s.tmp_1 = helpers_arrayForEach__P47064_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___64261; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 458; s.pc = 19; return s.tmp_1; + s.callLocIdx = 556; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; case 5: @@ -36392,12 +36813,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P291513.info = {"start":28066,"length":965,"line":847,"column":4,"endLine":867,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} +Sprite_registerObstacle__P49168.info = {"start":28620,"length":965,"line":922,"column":4,"endLine":942,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"registerObstacle","argumentNames":["this","direction","other","tm"]} -function Sprite_registerObstacle__P291513_mk(s) { +function Sprite_registerObstacle__P49168_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P291513, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P49168, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36407,10 +36828,10 @@ function Sprite_registerObstacle__P291513_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - collisionHandlers___306040: undefined, - wallCollisionHandlers___306047: undefined, - wallHandlersToRun___306072: undefined, - asTileLocation___306085: undefined, + collisionHandlers___64229: undefined, + wallCollisionHandlers___64236: undefined, + wallHandlersToRun___64261: undefined, + asTileLocation___64274: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36421,7 +36842,7 @@ function Sprite_registerObstacle__P291513_mk(s) { -function inline__P306055(s) { +function forEach_inline__P64244(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36443,12 +36864,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P306055.info = {"start":28464,"length":26,"line":854,"column":24,"endLine":854,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P64244.info = {"start":29018,"length":26,"line":929,"column":24,"endLine":929,"endColumn":50,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P306055_mk(s) { +function forEach_inline__P64244_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306055, depth: s.depth + 1, + parent: s, fn: forEach_inline__P64244, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36459,7 +36880,7 @@ function inline__P306055_mk(s) { -function inline__P306061(s) { +function Sprite_registerObstacle_inline__P64250(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36478,12 +36899,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.callLocIdx = 447; s.pc = 1; return s.tmp_0; + s.callLocIdx = 545; 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 = 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; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 2); s.callLocIdx = 545; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 545; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 545; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -36491,12 +36912,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P306061.info = {"start":28517,"length":20,"line":855,"column":25,"endLine":855,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite_registerObstacle_inline__P64250.info = {"start":29071,"length":20,"line":930,"column":25,"endLine":930,"endColumn":45,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P306061_mk(s) { +function Sprite_registerObstacle_inline__P64250_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306061, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P64250, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36506,7 +36927,7 @@ function inline__P306061_mk(s) { -function inline__P306074(s) { +function wallHandlersToRun_inline__P64263(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36528,12 +36949,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P306074.info = {"start":28723,"length":32,"line":860,"column":24,"endLine":860,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +wallHandlersToRun_inline__P64263.info = {"start":29277,"length":32,"line":935,"column":24,"endLine":935,"endColumn":56,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P306074_mk(s) { +function wallHandlersToRun_inline__P64263_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306074, depth: s.depth + 1, + parent: s, fn: wallHandlersToRun_inline__P64263, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36544,7 +36965,7 @@ function inline__P306074_mk(s) { -function inline__P306101(s) { +function Sprite_registerObstacle_inline__P64290(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36564,12 +36985,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.callLocIdx = 457; s.pc = 1; return s.tmp_0; + s.callLocIdx = 555; s.pc = 1; return s.tmp_0; } else { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 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; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 555; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 555; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 555; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -36577,12 +36998,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P306101.info = {"start":28963,"length":36,"line":864,"column":29,"endLine":864,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} +Sprite_registerObstacle_inline__P64290.info = {"start":29517,"length":36,"line":939,"column":29,"endLine":939,"endColumn":65,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["h"]} -function inline__P306101_mk(s) { +function Sprite_registerObstacle_inline__P64290_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306101, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P64290, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36592,7 +37013,7 @@ function inline__P306101_mk(s) { -function Fx_min__P289570(s) { +function Fx_iadd__P47113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36607,28 +37028,18 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < s.arg1); + r0 = (s.arg0 << 8); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 3; continue; } - { step = 2; continue; } - case 1: - r0 = s.arg1; - { step = 3; continue; } - case 2: - r0 = undefined; - case 3: + r0 = (s.tmp_0 + s.arg1); return leave(s, r0) default: oops() } } } -Fx_min__P289570.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_iadd__P47113.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_min__P289570_mk(s) { +function Fx_iadd__P47113_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P289570, depth: s.depth + 1, + parent: s, fn: Fx_iadd__P47113, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36639,7 +37050,7 @@ function Fx_min__P289570_mk(s) { -function Fx_iadd__P289562(s) { +function Math_sign__P47084(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36651,32 +37062,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 << 8); + r0 = (s.arg0 == 0); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.arg1); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = 0; + { step = 5; continue; } + case 1: + case 2: + r0 = (s.arg0 > 0); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = 1; + { step = 5; continue; } + case 3: + case 4: + r0 = -1; + case 5: return leave(s, r0) default: oops() } } } -Fx_iadd__P289562.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} +Math_sign__P47084.info = {"start":16330,"length":125,"line":546,"column":4,"endLine":550,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} -function Fx_iadd__P289562_mk(s) { +function Math_sign__P47084_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P289562, depth: s.depth + 1, + parent: s, fn: Math_sign__P47084, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function helpers_arraySome__P289512(s) { +function helpers_arraySome__P47062(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36686,26 +37111,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___302756 = undefined; - s.i___302759 = undefined; + s.len___59718 = undefined; + s.i___59721 = 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___302756 = (r0); - s.i___302759 = (0); + s.len___59718 = (r0); + s.i___59721 = (0); case 1: - r0 = (s.i___302759 < s.len___302756); + r0 = (s.i___59721 < s.len___59718); 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___302759); + r0 = pxsim_Array__getAt(s.arg0, s.i___59721); s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___302759; + s.tmp_2.arg1 = s.i___59721; setupLambda(s.tmp_2, s.tmp_2.argL); s.callLocIdx = 4; s.pc = 6; return s.tmp_2; case 6: @@ -36717,8 +37142,8 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___302759 + 1); - s.i___302759 = (r0); + r0 = (s.i___59721 + 1); + s.i___59721 = (r0); { step = 1; continue; } case 4: r0 = false; @@ -36726,18 +37151,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySome__P289512.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__P47062.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__P289512_mk(s) { +function helpers_arraySome__P47062_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P289512, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P47062, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___302756: undefined, - i___302759: undefined, + len___59718: undefined, + i___59721: undefined, arg0: undefined, arg1: undefined, } } @@ -36746,7 +37171,7 @@ function helpers_arraySome__P289512_mk(s) { -function MovingSprite_constructor__P291602(s) { +function MovingSprite_constructor__P49260(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36768,7 +37193,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C291601_VT)) failedCast(r0); + if (!checkSubtype(r0, MovingSprite__C49259_VT)) failedCast(r0); r0 = (s.arg0).fields["sprite"] = (s.arg1); r0 = (s.arg0).fields["cachedVx"] = (s.arg2); r0 = (s.arg0).fields["cachedVy"] = (s.arg3); @@ -36780,12 +37205,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -MovingSprite_constructor__P291602.info = {"start":949,"length":313,"line":33,"column":4,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} +MovingSprite_constructor__P49260.info = {"start":949,"length":313,"line":33,"column":4,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this","sprite","cachedVx","cachedVy","dx","dy","xStep","yStep"]} -function MovingSprite_constructor__P291602_mk(s) { +function MovingSprite_constructor__P49260_mk(s) { checkStack(s.depth); return { - parent: s, fn: MovingSprite_constructor__P291602, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P49260, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -36801,7 +37226,7 @@ function MovingSprite_constructor__P291602_mk(s) { -function ArcadePhysicsEngine_move__P291615(s) { +function ArcadePhysicsEngine_move__P49273(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36811,80 +37236,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtMs___306181 = undefined; - s.dt2___306187 = undefined; - s.scene___306191 = undefined; - s.tileMap___306194 = undefined; - s.movingSprites___306197 = undefined; - s.MAX_STEP_COUNT___306228 = undefined; - s.overlapHandlers___306240 = undefined; - s.selected___306247 = undefined; - s.buffers___306248 = undefined; - s.count___306252 = undefined; - s.currMovers___306262 = undefined; - s.remainingMovers___306269 = undefined; - s.ms___306274 = undefined; - s.unnamed22622___U13 = undefined; - s.unnamed22623___U14 = undefined; - s.s___306276 = undefined; - s.stepX___306369 = undefined; - s.stepY___306383 = undefined; + s.dtMs___64363 = undefined; + s.dt2___64369 = undefined; + s.scene___64373 = undefined; + s.tileMap___64376 = undefined; + s.movingSprites___64379 = undefined; + s.MAX_STEP_COUNT___64410 = undefined; + s.overlapHandlers___64422 = undefined; + s.selected___64429 = undefined; + s.buffers___64430 = undefined; + s.count___64434 = undefined; + s.currMovers___64444 = undefined; + s.remainingMovers___64451 = undefined; + s.ms___64456 = undefined; + s.unnamed874___U13 = undefined; + s.unnamed875___U14 = undefined; + s.s___64458 = undefined; + s.stepX___64551 = undefined; + s.stepY___64565 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - s.tmp_0 = Math_min__P289535_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); + s.tmp_0 = Math_min__P47086_mk(s); s.tmp_0.arg0 = 100; r0 = (s.arg1 * 1000); s.tmp_0.arg1 = r0; - s.callLocIdx = 541; s.pc = 47; return s.tmp_0; + s.callLocIdx = 638; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - s.dtMs___306181 = (r0); - r0 = pxsim.Math_.idiv(s.dtMs___306181, 2); - s.dt2___306187 = (r0); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 542; s.pc = 48; return s.tmp_0; + s.dtMs___64363 = (r0); + r0 = pxsim.Math_.idiv(s.dtMs___64363, 2); + s.dt2___64369 = (r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 639; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - s.scene___306191 = (r0); - r0 = s.scene___306191.fields["tileMap"]; - s.tileMap___306194 = (r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P306199); + s.scene___64373 = (r0); + r0 = s.scene___64373.fields["tileMap"]; + s.tileMap___64376 = (r0); + r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P64381); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___306181); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___306187); - s.tmp_1 = helpers_arrayMap__P289511_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___64363); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___64369); + s.tmp_1 = helpers_arrayMap__P47061_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 544; s.pc = 49; return s.tmp_1; + s.callLocIdx = 641; s.pc = 49; return s.tmp_1; case 49: r0 = s.retval; - s.movingSprites___306197 = (r0); - s.tmp_0 = helpers_arrayForEach__P289514_mk(s); + s.movingSprites___64379 = (r0); + s.tmp_0 = helpers_arrayForEach__P47064_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P306211; - s.callLocIdx = 548; s.pc = 50; return s.tmp_0; + s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P64393; + s.callLocIdx = 645; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P291528_mk(s); + s.tmp_0 = sprites_SpriteMap_clear__P49186_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 549; s.pc = 51; return s.tmp_0; + s.callLocIdx = 646; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P291527_mk(s); + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P49185_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 550; s.pc = 52; return s.tmp_0; + s.callLocIdx = 647; s.pc = 52; return s.tmp_0; case 52: r0 = s.retval; r0 = s.arg0.fields["maxVelocity"]; @@ -36895,41 +37320,41 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_5, s.tmp_4); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___306181); + r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___64363); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); s.tmp_0 = r0; r0 = (s.tmp_0 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); - s.MAX_STEP_COUNT___306228 = (r0); - s.tmp_0 = helpers_arraySlice__P289520_mk(s); - r0 = s.scene___306191.fields["overlapHandlers"]; + s.MAX_STEP_COUNT___64410 = (r0); + s.tmp_0 = helpers_arraySlice__P47070_mk(s); + r0 = s.scene___64373.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 555; s.pc = 53; return s.tmp_0; + s.callLocIdx = 652; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.overlapHandlers___306240 = (r0); - s.selected___306247 = (0); + s.overlapHandlers___64422 = (r0); + s.selected___64429 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___306197); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___64379); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___306248 = (s.tmp_0); - s.count___306252 = (0); + s.buffers___64430 = (s.tmp_0); + s.count___64434 = (0); case 1: - r0 = (s.count___306252 < s.MAX_STEP_COUNT___306228); + r0 = (s.count___64434 < s.MAX_STEP_COUNT___64410); 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___306248, s.selected___306247); + r0 = pxsim_Array__getAt(s.buffers___64430, s.selected___64429); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -36939,43 +37364,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___306248, s.selected___306247); - s.currMovers___306262 = (r0); - r0 = (s.selected___306247 ^ 1); - s.selected___306247 = (r0); - r0 = pxsim_Array__getAt(s.buffers___306248, s.selected___306247); - s.remainingMovers___306269 = (r0); - s.ms___306274 = (undefined); - s.unnamed22622___U13 = (s.currMovers___306262); - s.unnamed22623___U14 = (0); + r0 = pxsim_Array__getAt(s.buffers___64430, s.selected___64429); + s.currMovers___64444 = (r0); + r0 = (s.selected___64429 ^ 1); + s.selected___64429 = (r0); + r0 = pxsim_Array__getAt(s.buffers___64430, s.selected___64429); + s.remainingMovers___64451 = (r0); + s.ms___64456 = (undefined); + s.unnamed874___U13 = (s.currMovers___64444); + s.unnamed875___U14 = (0); case 4: - s.tmp_0 = r0 = s.unnamed22623___U14; - r0 = pxsim_Array__length(s.unnamed22622___U13); + s.tmp_0 = r0 = s.unnamed875___U14; + r0 = pxsim_Array__length(s.unnamed874___U13); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 43; continue; } - r0 = pxsim_Array__getAt(s.unnamed22622___U13, s.unnamed22623___U14); - s.ms___306274 = (r0); - r0 = s.ms___306274.fields["sprite"]; - s.s___306276 = (r0); - r0 = s.ms___306274.fields["cachedVx"]; + r0 = pxsim_Array__getAt(s.unnamed874___U13, s.unnamed875___U14); + s.ms___64456 = (r0); + r0 = s.ms___64456.fields["sprite"]; + s.s___64458 = (r0); + r0 = s.ms___64456.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___306276.fields["_vx"]; + r0 = s.s___64458.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___306276.fields["_vx"]; + r0 = s.s___64458.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___306274).fields["dx"] = (0); + r0 = (s.ms___64456).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___306276.fields["_vx"]; + r0 = s.s___64458.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -36984,7 +37409,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___306274.fields["cachedVx"]; + r0 = s.ms___64456.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -36995,7 +37420,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___306276.fields["_vx"]; + r0 = s.s___64458.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -37004,7 +37429,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___306274.fields["cachedVx"]; + r0 = s.ms___64456.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -37016,14 +37441,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___306274; - r0 = s.ms___306274.fields["dx"]; + s.tmp_9 = r0 = s.ms___64456; + r0 = s.ms___64456.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___306274; - r0 = s.ms___306274.fields["xStep"]; + s.tmp_0 = r0 = s.ms___64456; + r0 = s.ms___64456.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -37031,29 +37456,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___306276.fields["_vx"]; + r0 = s.s___64458.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___306274).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___64456).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___306274.fields["cachedVy"]; + r0 = s.ms___64456.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___306276.fields["_vy"]; + r0 = s.s___64458.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___306276.fields["_vy"]; + r0 = s.s___64458.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___306274).fields["dy"] = (0); + r0 = (s.ms___64456).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___306276.fields["_vy"]; + r0 = s.s___64458.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -37062,7 +37487,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___306274.fields["cachedVy"]; + r0 = s.ms___64456.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -37073,7 +37498,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___306276.fields["_vy"]; + r0 = s.s___64458.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -37082,7 +37507,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___306274.fields["cachedVy"]; + r0 = s.ms___64456.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -37094,14 +37519,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___306274; - r0 = s.ms___306274.fields["dy"]; + s.tmp_9 = r0 = s.ms___64456; + r0 = s.ms___64456.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___306274; - r0 = s.ms___306274.fields["yStep"]; + s.tmp_0 = r0 = s.ms___64456; + r0 = s.ms___64456.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -37109,22 +37534,22 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___306276.fields["_vy"]; + r0 = s.s___64458.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___306274).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___64456).fields["cachedVy"] = (s.tmp_0); case 27: case 28: - s.tmp_2 = Fx_abs__P289569_mk(s); - r0 = s.ms___306274.fields["xStep"]; + s.tmp_2 = Fx_abs__P47120_mk(s); + r0 = s.ms___64456.fields["xStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 560; s.pc = 54; return s.tmp_2; + s.callLocIdx = 657; s.pc = 54; return s.tmp_2; case 54: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P289569_mk(s); - r0 = s.ms___306274.fields["dx"]; + s.tmp_4 = Fx_abs__P47120_mk(s); + r0 = s.ms___64456.fields["dx"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 561; s.pc = 55; return s.tmp_4; + s.callLocIdx = 658; s.pc = 55; return s.tmp_4; case 55: r0 = s.retval; s.tmp_3 = r0; @@ -37132,25 +37557,25 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___306274.fields["dx"]; + r0 = s.ms___64456.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___306274.fields["xStep"]; + r0 = s.ms___64456.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___306369 = (s.tmp_5); - s.tmp_2 = Fx_abs__P289569_mk(s); - r0 = s.ms___306274.fields["yStep"]; + s.stepX___64551 = (s.tmp_5); + s.tmp_2 = Fx_abs__P47120_mk(s); + r0 = s.ms___64456.fields["yStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 562; s.pc = 56; return s.tmp_2; + s.callLocIdx = 659; s.pc = 56; return s.tmp_2; case 56: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P289569_mk(s); - r0 = s.ms___306274.fields["dy"]; + s.tmp_4 = Fx_abs__P47120_mk(s); + r0 = s.ms___64456.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 563; s.pc = 57; return s.tmp_4; + s.callLocIdx = 660; s.pc = 57; return s.tmp_4; case 57: r0 = s.retval; s.tmp_3 = r0; @@ -37158,45 +37583,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___306274.fields["dy"]; + r0 = s.ms___64456.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___306274.fields["yStep"]; + r0 = s.ms___64456.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___306383 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___306274; - r0 = s.ms___306274.fields["dx"]; + s.stepY___64565 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___64456; + r0 = s.ms___64456.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___306369); + r0 = (s.tmp_2 - s.stepX___64551); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___306274; - r0 = s.ms___306274.fields["dy"]; + s.tmp_0 = r0 = s.ms___64456; + r0 = s.ms___64456.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___306383); + r0 = (s.tmp_2 - s.stepY___64565); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___306276.fields["_x"]; + r0 = s.s___64458.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___306276).fields["_lastX"] = (s.tmp_0); - r0 = s.s___306276.fields["_y"]; + r0 = (s.s___64458).fields["_lastX"] = (s.tmp_0); + r0 = s.s___64458.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___306276).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___306276; - r0 = s.s___306276.fields["_x"]; + r0 = (s.s___64458).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___64458; + r0 = s.s___64458.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___306369); + r0 = (s.tmp_2 + s.stepX___64551); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___306276; - r0 = s.s___306276.fields["_y"]; + s.tmp_0 = r0 = s.s___64458; + r0 = s.s___64458.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___306383); + r0 = (s.tmp_2 + s.stepY___64565); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___306276.fields["flags"]; + r0 = s.s___64458.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -37206,22 +37631,22 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 33; continue; } - s.tmp_4 = sprites_SpriteMap_insertAABB__P291529_mk(s); + s.tmp_4 = sprites_SpriteMap_insertAABB__P49187_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___306276; - s.callLocIdx = 568; s.pc = 58; return s.tmp_4; + s.tmp_4.arg1 = s.s___64458; + s.callLocIdx = 665; s.pc = 58; return s.tmp_4; case 58: r0 = s.retval; case 33: case 34: - s.tmp_0 = r0 = s.tileMap___306194; + s.tmp_0 = r0 = s.tileMap___64376; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 35; continue; } r0 = s.tmp_0; { step = 36; continue; } case 35: - r0 = s.tileMap___306194.fields["_map"]; + r0 = s.tileMap___64376.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -37235,79 +37660,79 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 37; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P293289_mk(s); + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P51210_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___306274; - s.tmp_6.arg2 = s.tileMap___306194; - s.callLocIdx = 570; s.pc = 59; return s.tmp_6; + s.tmp_6.arg1 = s.ms___64456; + s.tmp_6.arg2 = s.tileMap___64376; + s.callLocIdx = 667; s.pc = 59; return s.tmp_6; case 59: r0 = s.retval; case 37: case 38: - s.tmp_2 = Fx_abs__P289569_mk(s); - r0 = s.ms___306274.fields["dx"]; + s.tmp_2 = Fx_abs__P47120_mk(s); + r0 = s.ms___64456.fields["dx"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 571; s.pc = 60; return s.tmp_2; + s.callLocIdx = 668; s.pc = 60; return s.tmp_2; case 60: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___291597); + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___49255); 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__P289569_mk(s); - r0 = s.ms___306274.fields["dy"]; + s.tmp_4 = Fx_abs__P47120_mk(s); + r0 = s.ms___64456.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 572; s.pc = 61; return s.tmp_4; + s.callLocIdx = 669; s.pc = 61; return s.tmp_4; case 61: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___291597); + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___49255); 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___306269, s.ms___306274); + r0 = pxsim_Array__push(s.remainingMovers___64451, s.ms___64456); case 41: case 42: - r0 = (s.unnamed22623___U14 + 1); - s.unnamed22623___U14 = (r0); + r0 = (s.unnamed875___U14 + 1); + s.unnamed875___U14 = (r0); { step = 4; continue; } case 43: - s.unnamed22622___U13 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P293288_mk(s); + s.unnamed874___U13 = (undefined); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P51209_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___306262; - s.tmp_0.arg2 = s.overlapHandlers___306240; - s.callLocIdx = 573; s.pc = 62; return s.tmp_0; + s.tmp_0.arg1 = s.currMovers___64444; + s.tmp_0.arg2 = s.overlapHandlers___64422; + s.callLocIdx = 670; s.pc = 62; return s.tmp_0; case 62: r0 = s.retval; case 44: - r0 = pxsim_Array__length(s.currMovers___306262); + r0 = pxsim_Array__length(s.currMovers___64444); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 45; continue; } - r0 = pxsim_Array_.pop(s.currMovers___306262); + r0 = pxsim_Array_.pop(s.currMovers___64444); { step = 44; continue; } case 45: - r0 = (s.count___306252 + 1); - s.count___306252 = (r0); + r0 = (s.count___64434 + 1); + s.count___64434 = (r0); { step = 1; continue; } case 46: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P291615.info = {"start":2822,"length":3809,"line":112,"column":4,"endLine":208,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +ArcadePhysicsEngine_move__P49273.info = {"start":2822,"length":3809,"line":112,"column":4,"endLine":208,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function ArcadePhysicsEngine_move__P291615_mk(s) { +function ArcadePhysicsEngine_move__P49273_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P291615, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P49273, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37321,24 +37746,24 @@ function ArcadePhysicsEngine_move__P291615_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtMs___306181: undefined, - dt2___306187: undefined, - scene___306191: undefined, - tileMap___306194: undefined, - movingSprites___306197: undefined, - MAX_STEP_COUNT___306228: undefined, - overlapHandlers___306240: undefined, - selected___306247: undefined, - buffers___306248: undefined, - count___306252: undefined, - currMovers___306262: undefined, - remainingMovers___306269: undefined, - ms___306274: undefined, - unnamed22622___U13: undefined, - unnamed22623___U14: undefined, - s___306276: undefined, - stepX___306369: undefined, - stepY___306383: undefined, + dtMs___64363: undefined, + dt2___64369: undefined, + scene___64373: undefined, + tileMap___64376: undefined, + movingSprites___64379: undefined, + MAX_STEP_COUNT___64410: undefined, + overlapHandlers___64422: undefined, + selected___64429: undefined, + buffers___64430: undefined, + count___64434: undefined, + currMovers___64444: undefined, + remainingMovers___64451: undefined, + ms___64456: undefined, + unnamed874___U13: undefined, + unnamed875___U14: undefined, + s___64458: undefined, + stepX___64551: undefined, + stepY___64565: undefined, arg0: undefined, arg1: undefined, } } @@ -37347,7 +37772,7 @@ function ArcadePhysicsEngine_move__P291615_mk(s) { -function inline__P306199(s) { +function movingSprites_inline__P64381(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37361,23 +37786,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P293287_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P51208_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.caps[1]; s.tmp_0.arg3 = s.caps[2]; - s.callLocIdx = 543; s.pc = 1; return s.tmp_0; + s.callLocIdx = 640; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P306199.info = {"start":3181,"length":52,"line":121,"column":17,"endLine":121,"endColumn":69,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} +movingSprites_inline__P64381.info = {"start":3181,"length":52,"line":121,"column":17,"endLine":121,"endColumn":69,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["sprite"]} -function inline__P306199_mk(s) { +function movingSprites_inline__P64381_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306199, depth: s.depth + 1, + parent: s, fn: movingSprites_inline__P64381, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37387,7 +37812,7 @@ function inline__P306199_mk(s) { -function inline__P306211(s) { +function ArcadePhysicsEngine_move_inline__P64393(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37401,9 +37826,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P291455_mk(s); + s.tmp_1 = Sprite_vx__P49100_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 545; s.pc = 5; return s.tmp_1; + s.callLocIdx = 642; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; @@ -37412,9 +37837,9 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P291457_mk(s); + s.tmp_2 = Sprite_vy__P49102_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 546; s.pc = 6; return s.tmp_2; + s.callLocIdx = 643; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; case 2: @@ -37422,9 +37847,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P291512_mk(s); + s.tmp_4 = Sprite_clearObstacles__P49167_mk(s); s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 547; s.pc = 7; return s.tmp_4; + s.callLocIdx = 644; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; case 3: @@ -37433,12 +37858,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P306211.info = {"start":3316,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} +ArcadePhysicsEngine_move_inline__P64393.info = {"start":3316,"length":66,"line":124,"column":29,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["s"]} -function inline__P306211_mk(s) { +function ArcadePhysicsEngine_move_inline__P64393_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306211, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move_inline__P64393, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37452,7 +37877,7 @@ function inline__P306211_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P293288(s) { +function ArcadePhysicsEngine_spriteCollisions__P51209(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37462,18 +37887,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___306484 = undefined; - s.unnamed22624___U1 = undefined; - s.unnamed22625___U2 = undefined; - s.sprite___306486 = undefined; - s.overSprites___306493 = undefined; - s.overlapper___306501 = undefined; - s.unnamed22626___U6 = undefined; - s.unnamed22627___U7 = undefined; - s.thisKind___306507 = undefined; - s.otherKind___306511 = undefined; - s.higher___306524 = undefined; - s.lower___306533 = undefined; + s.ms___64666 = undefined; + s.unnamed876___U1 = undefined; + s.unnamed877___U2 = undefined; + s.sprite___64668 = undefined; + s.overSprites___64675 = undefined; + s.overlapper___64683 = undefined; + s.unnamed878___U6 = undefined; + s.unnamed879___U7 = undefined; + s.thisKind___64689 = undefined; + s.otherKind___64693 = undefined; + s.higher___64706 = undefined; + s.lower___64715 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -37481,7 +37906,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -37493,20 +37918,20 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___306484 = (undefined); - s.unnamed22624___U1 = (s.arg1); - s.unnamed22625___U2 = (0); + s.ms___64666 = (undefined); + s.unnamed876___U1 = (s.arg1); + s.unnamed877___U2 = (0); case 3: - s.tmp_0 = r0 = s.unnamed22625___U2; - r0 = pxsim_Array__length(s.unnamed22624___U1); + s.tmp_0 = r0 = s.unnamed877___U2; + r0 = pxsim_Array__length(s.unnamed876___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed22624___U1, s.unnamed22625___U2); - s.ms___306484 = (r0); - r0 = s.ms___306484.fields["sprite"]; - s.sprite___306486 = (r0); - r0 = s.sprite___306486.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed876___U1, s.unnamed877___U2); + s.ms___64666 = (r0); + r0 = s.ms___64666.fields["sprite"]; + s.sprite___64668 = (r0); + r0 = s.sprite___64668.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4610); s.tmp_0 = r0; @@ -37515,27 +37940,27 @@ switch (step) { { step = 19; continue; } case 4: case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P291525_mk(s); + s.tmp_2 = sprites_SpriteMap_overlaps__P49183_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___306484.fields["sprite"]; + r0 = s.ms___64666.fields["sprite"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 611; s.pc = 22; return s.tmp_2; + s.callLocIdx = 708; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___306493 = (r0); - s.overlapper___306501 = (undefined); - s.unnamed22626___U6 = (s.overSprites___306493); - s.unnamed22627___U7 = (0); + s.overSprites___64675 = (r0); + s.overlapper___64683 = (undefined); + s.unnamed878___U6 = (s.overSprites___64675); + s.unnamed879___U7 = (0); case 6: - s.tmp_0 = r0 = s.unnamed22627___U7; - r0 = pxsim_Array__length(s.unnamed22626___U6); + s.tmp_0 = r0 = s.unnamed879___U7; + r0 = pxsim_Array__length(s.unnamed878___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed22626___U6, s.unnamed22627___U7); - s.overlapper___306501 = (r0); - r0 = s.overlapper___306501.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed878___U6, s.unnamed879___U7); + s.overlapper___64683 = (r0); + r0 = s.overlapper___64683.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -37544,13 +37969,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___306486.fields["_kind"]; - s.thisKind___306507 = (r0); - r0 = s.overlapper___306501.fields["_kind"]; - s.otherKind___306511 = (r0); - r0 = s.sprite___306486.fields["_kindsOverlappedWith"]; + r0 = s.sprite___64668.fields["_kind"]; + s.thisKind___64689 = (r0); + r0 = s.overlapper___64683.fields["_kind"]; + s.otherKind___64693 = (r0); + r0 = s.sprite___64668.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___306511, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___64693, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -37559,37 +37984,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___306486.fields["id"]; + r0 = s.sprite___64668.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___306501.fields["id"]; + r0 = s.overlapper___64683.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___306486; + r0 = s.sprite___64668; { step = 12; continue; } case 11: - r0 = s.overlapper___306501; + r0 = s.overlapper___64683; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___306524 = (s.tmp_6); - r0 = (s.higher___306524 === s.sprite___306486); + s.higher___64706 = (s.tmp_6); + r0 = (s.higher___64706 === s.sprite___64668); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___306501; + r0 = s.overlapper___64683; { step = 14; continue; } case 13: - r0 = s.sprite___306486; + r0 = s.sprite___64668; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___306533 = (s.tmp_1); - r0 = s.higher___306524.fields["_overlappers"]; + s.lower___64715 = (s.tmp_1); + r0 = s.higher___64706.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___306533.fields["id"]; + r0 = s.lower___64715.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -37597,54 +38022,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__P306553); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P64735); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___306507); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___306511); - r0 = pxsim_pxtcore_mkAction(5, inline__P306577); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___64689); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___64693); + r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P64759); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___306524); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___306533); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___306486); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___306501); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___306507); - s.tmp_6 = helpers_arrayForEach__P289514_mk(s); - s.tmp_7 = helpers_arrayFilter__P289515_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___64706); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___64715); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___64668); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___64683); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___64689); + s.tmp_6 = helpers_arrayForEach__P47064_mk(s); + s.tmp_7 = helpers_arrayFilter__P47065_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; - s.callLocIdx = 614; s.pc = 24; return s.tmp_7; + s.callLocIdx = 711; 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.callLocIdx = 616; s.pc = 23; return s.tmp_6; + s.callLocIdx = 713; s.pc = 23; return s.tmp_6; case 23: r0 = s.retval; case 15: case 16: case 17: - r0 = (s.unnamed22627___U7 + 1); - s.unnamed22627___U7 = (r0); + r0 = (s.unnamed879___U7 + 1); + s.unnamed879___U7 = (r0); { step = 6; continue; } case 18: - s.unnamed22626___U6 = (undefined); + s.unnamed878___U6 = (undefined); case 19: - r0 = (s.unnamed22625___U2 + 1); - s.unnamed22625___U2 = (r0); + r0 = (s.unnamed877___U2 + 1); + s.unnamed877___U2 = (r0); { step = 3; continue; } case 20: - s.unnamed22624___U1 = (undefined); + s.unnamed876___U1 = (undefined); case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P293288.info = {"start":9446,"length":2266,"line":302,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} +ArcadePhysicsEngine_spriteCollisions__P51209.info = {"start":9448,"length":2268,"line":302,"column":4,"endLine":346,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"spriteCollisions","argumentNames":["this","movedSprites","handlers"]} -function ArcadePhysicsEngine_spriteCollisions__P293288_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P51209_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P293288, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P51209, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37654,18 +38079,18 @@ function ArcadePhysicsEngine_spriteCollisions__P293288_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___306484: undefined, - unnamed22624___U1: undefined, - unnamed22625___U2: undefined, - sprite___306486: undefined, - overSprites___306493: undefined, - overlapper___306501: undefined, - unnamed22626___U6: undefined, - unnamed22627___U7: undefined, - thisKind___306507: undefined, - otherKind___306511: undefined, - higher___306524: undefined, - lower___306533: undefined, + ms___64666: undefined, + unnamed876___U1: undefined, + unnamed877___U2: undefined, + sprite___64668: undefined, + overSprites___64675: undefined, + overlapper___64683: undefined, + unnamed878___U6: undefined, + unnamed879___U7: undefined, + thisKind___64689: undefined, + otherKind___64693: undefined, + higher___64706: undefined, + lower___64715: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37675,7 +38100,7 @@ function ArcadePhysicsEngine_spriteCollisions__P293288_mk(s) { -function inline__P306553(s) { +function forEach_inline__P64735(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37732,12 +38157,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P306553.info = {"start":10813,"length":137,"line":328,"column":32,"endLine":329,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P64735.info = {"start":10817,"length":137,"line":328,"column":32,"endLine":329,"endColumn":81,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P306553_mk(s) { +function forEach_inline__P64735_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306553, depth: s.depth + 1, + parent: s, fn: forEach_inline__P64735, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37755,7 +38180,7 @@ function inline__P306553_mk(s) { -function inline__P306577(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P64759(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37774,7 +38199,7 @@ switch (step) { r0 = s.caps[1].fields["id"]; s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtcore_mkAction(6, inline__P306587); + r0 = pxsim_pxtcore_mkAction(6, ArcadePhysicsEngine_spriteCollisions_inline__P64769); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.caps[2]); r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.caps[3]); @@ -37787,12 +38212,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P306577.info = {"start":11010,"length":652,"line":331,"column":33,"endLine":342,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} +ArcadePhysicsEngine_spriteCollisions_inline__P64759.info = {"start":11014,"length":652,"line":331,"column":33,"endLine":342,"endColumn":25,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["h"]} -function inline__P306577_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P64759_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306577, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P64759, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37803,7 +38228,7 @@ function inline__P306577_mk(s) { -function inline__P306587(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P64769(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37859,12 +38284,12 @@ switch (step) { 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 = 615; s.pc = 7; return s.tmp_12; + s.callLocIdx = 712; s.pc = 7; return s.tmp_12; } else { s.tmp_12.fn = s.tmp_12.arg0.vtable.iface["handler"]; - if (s.tmp_12.fn == null) { setupLambda(s.tmp_12, s.tmp_12.arg0.fields["handler"], 3); s.callLocIdx = 615; s.pc = 7; return s.tmp_12; } - else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 615; s.pc = 7; return s.tmp_12;; } - else { s.callLocIdx = 615; s.pc = 7; return s.tmp_12; } + if (s.tmp_12.fn == null) { setupLambda(s.tmp_12, s.tmp_12.arg0.fields["handler"], 3); s.callLocIdx = 712; s.pc = 7; return s.tmp_12; } + else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 712; s.pc = 7; return s.tmp_12;; } + else { s.callLocIdx = 712; s.pc = 7; return s.tmp_12; } } case 7: r0 = s.retval; @@ -37879,12 +38304,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P306587.info = {"start":11131,"length":503,"line":333,"column":50,"endLine":341,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} +ArcadePhysicsEngine_spriteCollisions_inline__P64769.info = {"start":11135,"length":503,"line":333,"column":50,"endLine":341,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function inline__P306587_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P64769_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306587, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P64769, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37905,7 +38330,7 @@ function inline__P306587_mk(s) { -function sprites_SpriteMap_overlaps__P291525(s) { +function sprites_SpriteMap_overlaps__P49183(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37915,47 +38340,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___306621 = undefined; - s.o___306625 = undefined; + s.n___64803 = undefined; + s.o___64807 = 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__C291522_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P291524_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P49182_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 488; s.pc = 1; return s.tmp_0; + s.callLocIdx = 585; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___306621 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P306627); + s.n___64803 = (r0); + r0 = pxsim_pxtcore_mkAction(1, o_inline__P64809); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P289515_mk(s); - s.tmp_1.arg0 = s.n___306621; + s.tmp_1 = helpers_arrayFilter__P47065_mk(s); + s.tmp_1.arg0 = s.n___64803; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 490; s.pc = 2; return s.tmp_1; + s.callLocIdx = 587; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___306625 = (r0); - r0 = s.o___306625; + s.o___64807 = (r0); + r0 = s.o___64807; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P291525.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__P49183.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__P291525_mk(s) { +function sprites_SpriteMap_overlaps__P49183_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P291525, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_overlaps__P49183, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___306621: undefined, - o___306625: undefined, + n___64803: undefined, + o___64807: undefined, arg0: undefined, arg1: undefined, } } @@ -37964,7 +38389,7 @@ function sprites_SpriteMap_overlaps__P291525_mk(s) { -function inline__P306627(s) { +function o_inline__P64809(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37978,21 +38403,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P291508_mk(s); + s.tmp_0 = Sprite_overlapsWith__P49162_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 489; s.pc = 1; return s.tmp_0; + s.callLocIdx = 586; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P306627.info = {"start":1037,"length":41,"line":32,"column":31,"endLine":32,"endColumn":72,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["neighbor"]} +o_inline__P64809.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__P306627_mk(s) { +function o_inline__P64809_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P306627, depth: s.depth + 1, + parent: s, fn: o_inline__P64809, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38002,7 +38427,7 @@ function inline__P306627_mk(s) { -function sprites_SpriteMap_neighbors__P291524(s) { +function sprites_SpriteMap_neighbors__P49182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38012,112 +38437,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___306669 = undefined; - s.layer___306671 = undefined; + s.n___65057 = undefined; + s.layer___65059 = 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__C291522_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___306669 = (r0); + s.n___65057 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___306671 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P293252_mk(s); + s.layer___65059 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P51173_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P291488_mk(s); + s.tmp_1 = Sprite_left__P49141_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 476; s.pc = 2; return s.tmp_1; + s.callLocIdx = 573; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P291492_mk(s); + s.tmp_2 = Sprite_top__P49145_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 477; s.pc = 3; return s.tmp_2; + s.callLocIdx = 574; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___306671; - s.tmp_0.arg4 = s.n___306669; - s.callLocIdx = 478; s.pc = 1; return s.tmp_0; + s.tmp_0.arg3 = s.layer___65059; + s.tmp_0.arg4 = s.n___65057; + s.callLocIdx = 575; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P293252_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P51173_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P291488_mk(s); + s.tmp_1 = Sprite_left__P49141_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 479; s.pc = 5; return s.tmp_1; + s.callLocIdx = 576; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P291494_mk(s); + s.tmp_2 = Sprite_bottom__P49147_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 480; s.pc = 6; return s.tmp_2; + s.callLocIdx = 577; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___306671; - s.tmp_0.arg4 = s.n___306669; - s.callLocIdx = 481; s.pc = 4; return s.tmp_0; + s.tmp_0.arg3 = s.layer___65059; + s.tmp_0.arg4 = s.n___65057; + s.callLocIdx = 578; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P293252_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P51173_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P291490_mk(s); + s.tmp_1 = Sprite_right__P49143_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 482; s.pc = 8; return s.tmp_1; + s.callLocIdx = 579; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P291492_mk(s); + s.tmp_2 = Sprite_top__P49145_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 483; s.pc = 9; return s.tmp_2; + s.callLocIdx = 580; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___306671; - s.tmp_0.arg4 = s.n___306669; - s.callLocIdx = 484; s.pc = 7; return s.tmp_0; + s.tmp_0.arg3 = s.layer___65059; + s.tmp_0.arg4 = s.n___65057; + s.callLocIdx = 581; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P293252_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P51173_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P291490_mk(s); + s.tmp_1 = Sprite_right__P49143_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 485; s.pc = 11; return s.tmp_1; + s.callLocIdx = 582; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P291494_mk(s); + s.tmp_2 = Sprite_bottom__P49147_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 486; s.pc = 12; return s.tmp_2; + s.callLocIdx = 583; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___306671; - s.tmp_0.arg4 = s.n___306669; - s.callLocIdx = 487; s.pc = 10; return s.tmp_0; + s.tmp_0.arg3 = s.layer___65059; + s.tmp_0.arg4 = s.n___65057; + s.callLocIdx = 584; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___306669, s.arg1); - r0 = s.n___306669; + r0 = pxsim_Array_.removeElement(s.n___65057, s.arg1); + r0 = s.n___65057; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P291524.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__P49182.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__P291524_mk(s) { +function sprites_SpriteMap_neighbors__P49182_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P291524, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P49182, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___306669: undefined, - layer___306671: undefined, + n___65057: undefined, + layer___65059: undefined, arg0: undefined, arg1: undefined, } } @@ -38126,7 +38551,7 @@ function sprites_SpriteMap_neighbors__P291524_mk(s) { -function sprites_SpriteMap_mergeAtKey__P293252(s) { +function sprites_SpriteMap_mergeAtKey__P51173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38136,11 +38561,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___306712 = undefined; - s.bucket___306717 = undefined; - s.sprite___306724 = undefined; - s.unnamed22620___U3 = undefined; - s.unnamed22621___U4 = undefined; + s.k___65100 = undefined; + s.bucket___65105 = undefined; + s.sprite___65112 = undefined; + s.unnamed872___U3 = undefined; + s.unnamed873___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -38150,33 +38575,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C291522_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P293250_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P51171_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 514; s.pc = 9; return s.tmp_0; + s.callLocIdx = 611; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___306712 = (r0); + s.k___65100 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___306712); - s.bucket___306717 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___306717); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___65100); + s.bucket___65105 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___65105); if (!r0) { step = 7; continue; } - s.sprite___306724 = (undefined); - s.unnamed22620___U3 = (s.bucket___306717); - s.unnamed22621___U4 = (0); + s.sprite___65112 = (undefined); + s.unnamed872___U3 = (s.bucket___65105); + s.unnamed873___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed22621___U4; - r0 = pxsim_Array__length(s.unnamed22620___U3); + s.tmp_0 = r0 = s.unnamed873___U4; + r0 = pxsim_Array__length(s.unnamed872___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed22620___U3, s.unnamed22621___U4); - s.sprite___306724 = (r0); - r0 = s.sprite___306724.fields["layer"]; + r0 = pxsim_Array__getAt(s.unnamed872___U3, s.unnamed873___U4); + s.sprite___65112 = (r0); + r0 = s.sprite___65112.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -38185,7 +38610,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___306724, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___65112, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -38193,26 +38618,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___306724); + r0 = pxsim_Array__push(s.arg4, s.sprite___65112); case 4: case 5: - r0 = (s.unnamed22621___U4 + 1); - s.unnamed22621___U4 = (r0); + r0 = (s.unnamed873___U4 + 1); + s.unnamed873___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed22620___U3 = (undefined); + s.unnamed872___U3 = (undefined); case 7: case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P293252.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__P51173.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__P293252_mk(s) { +function sprites_SpriteMap_mergeAtKey__P51173_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P293252, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P51173, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38220,11 +38645,11 @@ function sprites_SpriteMap_mergeAtKey__P293252_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___306712: undefined, - bucket___306717: undefined, - sprite___306724: undefined, - unnamed22620___U3: undefined, - unnamed22621___U4: undefined, + k___65100: undefined, + bucket___65105: undefined, + sprite___65112: undefined, + unnamed872___U3: undefined, + unnamed873___U4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -38236,7 +38661,7 @@ function sprites_SpriteMap_mergeAtKey__P293252_mk(s) { -function sprites_SpriteMap_key__P293250(s) { +function sprites_SpriteMap_key__P51171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38246,8 +38671,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___306745 = undefined; - s.yi___306757 = undefined; + s.xi___65133 = undefined; + s.yi___65145 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -38255,8 +38680,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C291522_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P289531_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P47082_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["columnCount"]; s.tmp_0.arg1 = r0; @@ -38264,11 +38689,11 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg1, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 502; s.pc = 1; return s.tmp_0; + s.callLocIdx = 599; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___306745 = (r0); - s.tmp_0 = Math_clamp__P289531_mk(s); + s.xi___65133 = (r0); + s.tmp_0 = Math_clamp__P47082_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; s.tmp_0.arg1 = r0; @@ -38276,31 +38701,31 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg2, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 503; s.pc = 2; return s.tmp_0; + s.callLocIdx = 600; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___306757 = (r0); - s.tmp_0 = r0 = s.xi___306745; + s.yi___65145 = (r0); + s.tmp_0 = r0 = s.xi___65133; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___306757 * s.tmp_2); + r0 = (s.yi___65145 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P293250.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__P51171.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__P293250_mk(s) { +function sprites_SpriteMap_key__P51171_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P293250, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P51171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___306745: undefined, - yi___306757: undefined, + xi___65133: undefined, + yi___65145: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -38310,7 +38735,7 @@ function sprites_SpriteMap_key__P293250_mk(s) { -function Sprite_bottom__P291494(s) { +function Sprite_bottom__P49147(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38325,28 +38750,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P291492_mk(s); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P49145_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 299; s.pc = 1; return s.tmp_1; + s.callLocIdx = 429; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); + s.tmp_3 = Sprite_height__P49140_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 430; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_0 + s.tmp_2); return leaveAccessor(s, r0) default: oops() } } } -Sprite_bottom__P291494.info = {"start":10366,"length":59,"line":375,"column":4,"endLine":377,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} -Sprite_bottom__P291494.isGetter = true; +Sprite_bottom__P49147.info = {"start":13153,"length":59,"line":468,"column":4,"endLine":470,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this"]} +Sprite_bottom__P49147.isGetter = true; -function Sprite_bottom__P291494_mk(s) { +function Sprite_bottom__P49147_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P291494, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P49147, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38359,7 +38786,7 @@ function Sprite_bottom__P291494_mk(s) { -function Sprite_height__P291487(s) { +function Sprite_right__P49143(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38374,22 +38801,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P49141_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 421; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); + s.tmp_3 = Sprite_width__P49139_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 422; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_0 + s.tmp_2); return leaveAccessor(s, r0) default: oops() } } } -Sprite_height__P291487.info = {"start":8922,"length":54,"line":320,"column":4,"endLine":322,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"height","argumentNames":["this"]} -Sprite_height__P291487.isGetter = true; +Sprite_right__P49143.info = {"start":12319,"length":57,"line":438,"column":4,"endLine":440,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} +Sprite_right__P49143.isGetter = true; -function Sprite_height__P291487_mk(s) { +function Sprite_right__P49143_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P291487, depth: s.depth + 1, + parent: s, fn: Sprite_right__P49143, depth: s.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, } } @@ -38397,7 +38837,7 @@ function Sprite_height__P291487_mk(s) { -function Sprite_right__P291490(s) { +function Sprite_overlapsWith__P49162(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38407,46 +38847,447 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.A___64873 = undefined; + s.B___64874 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P291488_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 291; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = (s.arg1 == s.arg0); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = false; + { step = 23; continue; } case 1: + case 2: + r0 = s.arg0.fields["flags"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & 4610); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = false; + { step = 23; continue; } + case 3: + case 4: + r0 = s.arg1.fields["flags"]; + s.tmp_4 = r0; + r0 = (s.tmp_4 & 4610); + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = false; + { step = 23; continue; } + case 5: + case 6: + s.tmp_8 = game_Hitbox_overlapsWith__P48967_mk(s); + r0 = s.arg1.fields["_hitbox"]; + s.tmp_8.arg0 = r0; + r0 = s.arg0.fields["_hitbox"]; + s.tmp_8.arg1 = r0; + s.callLocIdx = 510; s.pc = 24; return s.tmp_8; + case 24: r0 = s.retval; - s.tmp_0 = r0; + s.tmp_7 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_7); + s.tmp_6 = r0; + r0 = pxsim_Boolean__bang(s.tmp_6); + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 7; continue; } + r0 = false; + { step = 23; continue; } + case 7: + case 8: + s.tmp_12 = Sprite_isScaled__P51170_mk(s); + s.tmp_12.arg0 = s.arg0; + s.callLocIdx = 511; s.pc = 25; return s.tmp_12; + case 25: + r0 = s.retval; + s.tmp_11 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_11); + s.tmp_10 = r0; + r0 = pxsim_Boolean__bang(s.tmp_10); + s.tmp_9 = r0; + r0 = pxsim_numops_toBool(s.tmp_9); + if (r0) { step = 9; continue; } + r0 = s.tmp_9; + { step = 10; continue; } + case 9: + s.tmp_15 = Sprite_isScaled__P51170_mk(s); + s.tmp_15.arg0 = s.arg1; + s.callLocIdx = 512; s.pc = 26; return s.tmp_15; + case 26: + r0 = s.retval; + s.tmp_14 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_14); + s.tmp_13 = r0; + r0 = pxsim_Boolean__bang(s.tmp_13); + case 10: + // jmp value (already in r0) + s.tmp_16 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_16); + if (!r0) { step = 11; continue; } + r0 = s.arg1.fields["_image"]; + s.tmp_17 = r0; r0 = s.arg0.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_18 = r0; + s.tmp_21 = Sprite_left__P49141_mk(s); + s.tmp_21.arg0 = s.arg0; + s.callLocIdx = 513; s.pc = 27; return s.tmp_21; + case 27: + r0 = s.retval; + s.tmp_20 = r0; + s.tmp_23 = Sprite_left__P49141_mk(s); + s.tmp_23.arg0 = s.arg1; + s.callLocIdx = 514; s.pc = 28; return s.tmp_23; + case 28: + r0 = s.retval; + s.tmp_22 = r0; + r0 = (s.tmp_20 - s.tmp_22); + s.tmp_19 = r0; + s.tmp_26 = Sprite_top__P49145_mk(s); + s.tmp_26.arg0 = s.arg0; + s.callLocIdx = 515; s.pc = 29; return s.tmp_26; + case 29: + r0 = s.retval; + s.tmp_25 = r0; + s.tmp_28 = Sprite_top__P49145_mk(s); + s.tmp_28.arg0 = s.arg1; + s.callLocIdx = 516; s.pc = 30; return s.tmp_28; + case 30: + r0 = s.retval; + s.tmp_27 = r0; + r0 = (s.tmp_25 - s.tmp_27); + s.tmp_24 = r0; + r0 = pxsim_ImageMethods.overlapsWith(s.tmp_17, s.tmp_18, s.tmp_19, s.tmp_24); + { step = 23; continue; } + { step = 22; continue; } + case 11: + s.tmp_31 = Sprite_sx__P49112_mk(s); + s.tmp_31.arg0 = s.arg0; + s.callLocIdx = 517; s.pc = 31; return s.tmp_31; + case 31: + r0 = s.retval; + s.tmp_30 = r0; + r0 = (s.tmp_30 == 0); + s.tmp_29 = r0; + r0 = pxsim_numops_toBool(s.tmp_29); + if (!r0) { step = 12; continue; } + r0 = s.tmp_29; + { step = 13; continue; } + case 12: + s.tmp_33 = Sprite_sy__P49114_mk(s); + s.tmp_33.arg0 = s.arg0; + s.callLocIdx = 518; s.pc = 32; return s.tmp_33; + case 32: + r0 = s.retval; + s.tmp_32 = r0; + r0 = (s.tmp_32 == 0); + case 13: + // jmp value (already in r0) + s.tmp_34 = r0; + r0 = pxsim_numops_toBool(s.tmp_34); + if (!r0) { step = 14; continue; } + r0 = s.tmp_34; + { step = 15; continue; } + case 14: + s.tmp_36 = Sprite_sx__P49112_mk(s); + s.tmp_36.arg0 = s.arg1; + s.callLocIdx = 519; s.pc = 33; return s.tmp_36; + case 33: + r0 = s.retval; + s.tmp_35 = r0; + r0 = (s.tmp_35 == 0); + case 15: + // jmp value (already in r0) + s.tmp_37 = r0; + r0 = pxsim_numops_toBool(s.tmp_37); + if (!r0) { step = 16; continue; } + r0 = s.tmp_37; + { step = 17; continue; } + case 16: + s.tmp_39 = Sprite_sy__P49114_mk(s); + s.tmp_39.arg0 = s.arg1; + s.callLocIdx = 520; s.pc = 34; return s.tmp_39; + case 34: + r0 = s.retval; + s.tmp_38 = r0; + r0 = (s.tmp_38 == 0); + case 17: + // jmp value (already in r0) + s.tmp_40 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_40); + if (!r0) { step = 18; continue; } + r0 = false; + { step = 23; continue; } + case 18: + case 19: + s.tmp_44 = Sprite_sx__P49112_mk(s); + s.tmp_44.arg0 = s.arg0; + s.callLocIdx = 521; s.pc = 35; return s.tmp_44; + case 35: + r0 = s.retval; + s.tmp_43 = r0; + s.tmp_46 = Sprite_sy__P49114_mk(s); + s.tmp_46.arg0 = s.arg0; + s.callLocIdx = 522; s.pc = 36; return s.tmp_46; + case 36: + r0 = s.retval; + s.tmp_45 = r0; + r0 = (s.tmp_43 * s.tmp_45); + s.tmp_42 = r0; + s.tmp_49 = Sprite_sx__P49112_mk(s); + s.tmp_49.arg0 = s.arg1; + s.callLocIdx = 523; s.pc = 37; return s.tmp_49; + case 37: + r0 = s.retval; + s.tmp_48 = r0; + s.tmp_51 = Sprite_sy__P49114_mk(s); + s.tmp_51.arg0 = s.arg1; + s.callLocIdx = 524; s.pc = 38; return s.tmp_51; + case 38: + r0 = s.retval; + s.tmp_50 = r0; + r0 = (s.tmp_48 * s.tmp_50); + s.tmp_47 = r0; + r0 = (s.tmp_42 < s.tmp_47); + s.tmp_41 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_41); + if (!r0) { step = 20; continue; } + s.A___64873 = (s.arg0); + s.B___64874 = (s.arg1); + { step = 21; continue; } + case 20: + s.A___64873 = (s.arg1); + s.B___64874 = (s.arg0); + case 21: + s.tmp_0 = helpers_imageBlit__P48707_mk(s); + r0 = s.A___64873.fields["_image"]; + s.tmp_0.arg0 = r0; + s.tmp_3 = Sprite_left__P49141_mk(s); + s.tmp_3.arg0 = s.B___64874; + s.callLocIdx = 526; s.pc = 40; return s.tmp_3; + case 40: + r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) + s.tmp_5 = Sprite_left__P49141_mk(s); + s.tmp_5.arg0 = s.A___64873; + s.callLocIdx = 527; s.pc = 41; return s.tmp_5; + case 41: + r0 = s.retval; + s.tmp_4 = r0; + r0 = (s.tmp_2 - s.tmp_4); + s.tmp_1 = r0; + s.tmp_7 = Sprite_sx__P49112_mk(s); + s.tmp_7.arg0 = s.A___64873; + s.callLocIdx = 528; s.pc = 42; return s.tmp_7; + case 42: + r0 = s.retval; + s.tmp_6 = r0; + r0 = (s.tmp_1 / s.tmp_6); + s.tmp_0.arg1 = r0; + s.tmp_10 = Sprite_top__P49145_mk(s); + s.tmp_10.arg0 = s.B___64874; + s.callLocIdx = 529; s.pc = 43; return s.tmp_10; + case 43: + r0 = s.retval; + s.tmp_9 = r0; + s.tmp_12 = Sprite_top__P49145_mk(s); + s.tmp_12.arg0 = s.A___64873; + s.callLocIdx = 530; s.pc = 44; return s.tmp_12; + case 44: + r0 = s.retval; + s.tmp_11 = r0; + r0 = (s.tmp_9 - s.tmp_11); + s.tmp_8 = r0; + s.tmp_14 = Sprite_sy__P49114_mk(s); + s.tmp_14.arg0 = s.A___64873; + s.callLocIdx = 531; s.pc = 45; return s.tmp_14; + case 45: + r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_8 / s.tmp_13); + s.tmp_0.arg2 = r0; + s.tmp_16 = Sprite_width__P49139_mk(s); + s.tmp_16.arg0 = s.B___64874; + s.callLocIdx = 532; s.pc = 46; return s.tmp_16; + case 46: + r0 = s.retval; + s.tmp_15 = r0; + s.tmp_18 = Sprite_sx__P49112_mk(s); + s.tmp_18.arg0 = s.A___64873; + s.callLocIdx = 533; s.pc = 47; return s.tmp_18; + case 47: + r0 = s.retval; + s.tmp_17 = r0; + r0 = (s.tmp_15 / s.tmp_17); + s.tmp_0.arg3 = r0; + s.tmp_20 = Sprite_height__P49140_mk(s); + s.tmp_20.arg0 = s.B___64874; + s.callLocIdx = 534; s.pc = 48; return s.tmp_20; + case 48: + r0 = s.retval; + s.tmp_19 = r0; + s.tmp_22 = Sprite_sy__P49114_mk(s); + s.tmp_22.arg0 = s.A___64873; + s.callLocIdx = 535; s.pc = 49; return s.tmp_22; + case 49: + r0 = s.retval; + s.tmp_21 = r0; + r0 = (s.tmp_19 / s.tmp_21); + s.tmp_0.arg4 = r0; + r0 = s.B___64874.fields["_image"]; + s.tmp_0.arg5 = r0; + s.tmp_0.arg6 = 0; + s.tmp_0.arg7 = 0; + r0 = s.B___64874.fields["_image"]; + s.tmp_23 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_23); + s.tmp_0.arg8 = r0; + r0 = s.B___64874.fields["_image"]; + s.tmp_24 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_24); + s.tmp_0.arg9 = r0; + s.tmp_0.arg10 = true; + s.tmp_0.arg11 = true; + s.callLocIdx = 539; s.pc = 39; return s.tmp_0; + case 39: + r0 = s.retval; + { step = 23; continue; } + case 22: + r0 = undefined; + case 23: + return leave(s, r0) default: oops() } } } -Sprite_right__P291490.info = {"start":9562,"length":57,"line":345,"column":4,"endLine":347,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this"]} -Sprite_right__P291490.isGetter = true; +Sprite_overlapsWith__P49162.info = {"start":24447,"length":1575,"line":797,"column":4,"endLine":844,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function Sprite_right__P291490_mk(s) { +function Sprite_overlapsWith__P49162_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P291490, depth: s.depth + 1, + parent: s, fn: Sprite_overlapsWith__P49162, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, + tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + tmp_22: undefined, + tmp_23: undefined, + tmp_24: undefined, + tmp_25: undefined, + tmp_26: undefined, + tmp_27: undefined, + tmp_28: undefined, + tmp_29: undefined, + tmp_30: undefined, + tmp_31: undefined, + tmp_32: undefined, + tmp_33: undefined, + tmp_34: undefined, + tmp_35: undefined, + tmp_36: undefined, + tmp_37: undefined, + tmp_38: undefined, + tmp_39: undefined, + tmp_40: undefined, + tmp_41: undefined, + tmp_42: undefined, + tmp_43: undefined, + tmp_44: undefined, + tmp_45: undefined, + tmp_46: undefined, + tmp_47: undefined, + tmp_48: undefined, + tmp_49: undefined, + tmp_50: undefined, + tmp_51: undefined, + A___64873: undefined, + B___64874: undefined, arg0: undefined, + arg1: undefined, } } -function Sprite_overlapsWith__P291508(s) { +function Sprite_isScaled__P51170(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 !== 256); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["_sy"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 !== 256); + case 2: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = s.tmp_3; + return leave(s, r0) + default: oops() +} } } +Sprite_isScaled__P51170.info = {"start":11267,"length":100,"line":402,"column":4,"endLine":404,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isScaled","argumentNames":["this"]} + +function Sprite_isScaled__P51170_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_isScaled__P51170, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function game_Hitbox_overlapsWith__P48967(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38462,78 +39303,210 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - r0 = (s.arg1 == s.arg0); + if (!checkSubtype(r0, game_Hitbox__C48953_VT)) failedCast(r0); + s.tmp_1 = game_Hitbox_contains__P48966_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = game_Hitbox_left__P48961_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 235; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.tmp_3 = game_Hitbox_top__P48962_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 236; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.tmp_1.arg2 = r0; + s.callLocIdx = 237; s.pc = 18; return s.tmp_1; + case 18: + r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = false; - { step = 7; continue; } + r0 = true; + { step = 17; continue; } case 1: case 2: - r0 = s.arg0.fields["flags"]; - s.tmp_2 = r0; - r0 = (s.tmp_2 & 4608); - s.tmp_1 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_1); + s.tmp_5 = game_Hitbox_contains__P48966_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_6 = game_Hitbox_left__P48961_mk(s); + s.tmp_6.arg0 = s.arg1; + s.callLocIdx = 238; s.pc = 22; return s.tmp_6; + case 22: + r0 = s.retval; + s.tmp_5.arg1 = r0; + s.tmp_7 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_7.arg0 = s.arg1; + s.callLocIdx = 239; s.pc = 23; return s.tmp_7; + case 23: + r0 = s.retval; + s.tmp_5.arg2 = r0; + s.callLocIdx = 240; s.pc = 21; return s.tmp_5; + case 21: + r0 = s.retval; + s.tmp_4 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = false; - { step = 7; continue; } + r0 = true; + { step = 17; continue; } case 3: case 4: - r0 = s.arg1.fields["flags"]; - s.tmp_4 = r0; - r0 = (s.tmp_4 & 4608); - s.tmp_3 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_3); + s.tmp_9 = game_Hitbox_contains__P48966_mk(s); + s.tmp_9.arg0 = s.arg0; + s.tmp_10 = game_Hitbox_right__P48963_mk(s); + s.tmp_10.arg0 = s.arg1; + s.callLocIdx = 241; s.pc = 25; return s.tmp_10; + case 25: + r0 = s.retval; + s.tmp_9.arg1 = r0; + s.tmp_11 = game_Hitbox_top__P48962_mk(s); + s.tmp_11.arg0 = s.arg1; + s.callLocIdx = 242; s.pc = 26; return s.tmp_11; + case 26: + r0 = s.retval; + s.tmp_9.arg2 = r0; + s.callLocIdx = 243; s.pc = 24; return s.tmp_9; + case 24: + r0 = s.retval; + s.tmp_8 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 5; continue; } - r0 = false; - { step = 7; continue; } + r0 = true; + { step = 17; continue; } case 5: case 6: - r0 = s.arg1.fields["_image"]; - s.tmp_5 = r0; - r0 = s.arg0.fields["_image"]; - s.tmp_6 = r0; - s.tmp_9 = Sprite_left__P291488_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 438; s.pc = 8; return s.tmp_9; + s.tmp_13 = game_Hitbox_contains__P48966_mk(s); + s.tmp_13.arg0 = s.arg0; + s.tmp_14 = game_Hitbox_right__P48963_mk(s); + s.tmp_14.arg0 = s.arg1; + s.callLocIdx = 244; s.pc = 28; return s.tmp_14; + case 28: + r0 = s.retval; + s.tmp_13.arg1 = r0; + s.tmp_15 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_15.arg0 = s.arg1; + s.callLocIdx = 245; s.pc = 29; return s.tmp_15; + case 29: + r0 = s.retval; + s.tmp_13.arg2 = r0; + s.callLocIdx = 246; s.pc = 27; return s.tmp_13; + case 27: + r0 = s.retval; + s.tmp_12 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_12); + if (!r0) { step = 7; continue; } + r0 = true; + { step = 17; continue; } + case 7: case 8: + s.tmp_17 = game_Hitbox_contains__P48966_mk(s); + s.tmp_17.arg0 = s.arg1; + s.tmp_18 = game_Hitbox_left__P48961_mk(s); + s.tmp_18.arg0 = s.arg0; + s.callLocIdx = 247; s.pc = 31; return s.tmp_18; + case 31: r0 = s.retval; - s.tmp_8 = r0; - s.tmp_11 = Sprite_left__P291488_mk(s); - s.tmp_11.arg0 = s.arg1; - s.callLocIdx = 439; s.pc = 9; return s.tmp_11; - case 9: + s.tmp_17.arg1 = r0; + s.tmp_19 = game_Hitbox_top__P48962_mk(s); + s.tmp_19.arg0 = s.arg0; + s.callLocIdx = 248; s.pc = 32; return s.tmp_19; + case 32: r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_8 - s.tmp_10); - s.tmp_7 = r0; - s.tmp_14 = Sprite_top__P291492_mk(s); - s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 440; s.pc = 10; return s.tmp_14; + s.tmp_17.arg2 = r0; + s.callLocIdx = 249; s.pc = 30; return s.tmp_17; + case 30: + r0 = s.retval; + s.tmp_16 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_16); + if (!r0) { step = 9; continue; } + r0 = true; + { step = 17; continue; } + case 9: case 10: + s.tmp_21 = game_Hitbox_contains__P48966_mk(s); + s.tmp_21.arg0 = s.arg1; + s.tmp_22 = game_Hitbox_left__P48961_mk(s); + s.tmp_22.arg0 = s.arg0; + s.callLocIdx = 250; s.pc = 34; return s.tmp_22; + case 34: r0 = s.retval; - s.tmp_13 = r0; - s.tmp_16 = Sprite_top__P291492_mk(s); - s.tmp_16.arg0 = s.arg1; - s.callLocIdx = 441; s.pc = 11; return s.tmp_16; + s.tmp_21.arg1 = r0; + s.tmp_23 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_23.arg0 = s.arg0; + s.callLocIdx = 251; s.pc = 35; return s.tmp_23; + case 35: + r0 = s.retval; + s.tmp_21.arg2 = r0; + s.callLocIdx = 252; s.pc = 33; return s.tmp_21; + case 33: + r0 = s.retval; + s.tmp_20 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_20); + if (!r0) { step = 11; continue; } + r0 = true; + { step = 17; continue; } case 11: + case 12: + s.tmp_25 = game_Hitbox_contains__P48966_mk(s); + s.tmp_25.arg0 = s.arg1; + s.tmp_26 = game_Hitbox_right__P48963_mk(s); + s.tmp_26.arg0 = s.arg0; + s.callLocIdx = 253; s.pc = 37; return s.tmp_26; + case 37: r0 = s.retval; - s.tmp_15 = r0; - r0 = (s.tmp_13 - s.tmp_15); - s.tmp_12 = r0; - r0 = pxsim_ImageMethods.overlapsWith(s.tmp_5, s.tmp_6, s.tmp_7, s.tmp_12); - case 7: + s.tmp_25.arg1 = r0; + s.tmp_27 = game_Hitbox_top__P48962_mk(s); + s.tmp_27.arg0 = s.arg0; + s.callLocIdx = 254; s.pc = 38; return s.tmp_27; + case 38: + r0 = s.retval; + s.tmp_25.arg2 = r0; + s.callLocIdx = 255; s.pc = 36; return s.tmp_25; + case 36: + r0 = s.retval; + s.tmp_24 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_24); + if (!r0) { step = 13; continue; } + r0 = true; + { step = 17; continue; } + case 13: + case 14: + s.tmp_29 = game_Hitbox_contains__P48966_mk(s); + s.tmp_29.arg0 = s.arg1; + s.tmp_30 = game_Hitbox_right__P48963_mk(s); + s.tmp_30.arg0 = s.arg0; + s.callLocIdx = 256; s.pc = 40; return s.tmp_30; + case 40: + r0 = s.retval; + s.tmp_29.arg1 = r0; + s.tmp_31 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_31.arg0 = s.arg0; + s.callLocIdx = 257; s.pc = 41; return s.tmp_31; + case 41: + r0 = s.retval; + s.tmp_29.arg2 = r0; + s.callLocIdx = 258; s.pc = 39; return s.tmp_29; + case 39: + r0 = s.retval; + s.tmp_28 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_28); + if (!r0) { step = 15; continue; } + r0 = true; + { step = 17; continue; } + case 15: + case 16: + r0 = false; + case 17: return leave(s, r0) default: oops() } } } -Sprite_overlapsWith__P291508.info = {"start":25590,"length":454,"line":778,"column":4,"endLine":786,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"overlapsWith","argumentNames":["this","other"]} +game_Hitbox_overlapsWith__P48967.info = {"start":1205,"length":622,"line":48,"column":8,"endLine":58,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"overlapsWith","argumentNames":["this","other"]} -function Sprite_overlapsWith__P291508_mk(s) { +function game_Hitbox_overlapsWith__P48967_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_overlapsWith__P291508, depth: s.depth + 1, + parent: s, fn: game_Hitbox_overlapsWith__P48967, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38552,15 +39525,141 @@ function Sprite_overlapsWith__P291508_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, + tmp_17: undefined, + tmp_18: undefined, + tmp_19: undefined, + tmp_20: undefined, + tmp_21: undefined, + tmp_22: undefined, + tmp_23: undefined, + tmp_24: undefined, + tmp_25: undefined, + tmp_26: undefined, + tmp_27: undefined, + tmp_28: undefined, + tmp_29: undefined, + tmp_30: undefined, + tmp_31: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function game_Hitbox_contains__P48966(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, game_Hitbox__C48953_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = game_Hitbox_left__P48961_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 231; s.pc = 7; return s.tmp_3; + case 7: + r0 = s.retval; + s.tmp_2 = r0; + r0 = (s.tmp_1 >= s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_4 = r0 = s.arg1; + s.tmp_6 = game_Hitbox_right__P48963_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 232; s.pc = 8; return s.tmp_6; + case 8: + r0 = s.retval; + s.tmp_5 = r0; + r0 = (s.tmp_4 <= s.tmp_5); + case 2: + // jmp value (already in r0) + s.tmp_7 = r0; + r0 = pxsim_numops_toBool(s.tmp_7); + if (r0) { step = 3; continue; } + r0 = s.tmp_7; + { step = 4; continue; } + case 3: + s.tmp_8 = r0 = s.arg2; + s.tmp_10 = game_Hitbox_top__P48962_mk(s); + s.tmp_10.arg0 = s.arg0; + s.callLocIdx = 233; s.pc = 9; return s.tmp_10; + case 9: + r0 = s.retval; + s.tmp_9 = r0; + r0 = (s.tmp_8 >= s.tmp_9); + case 4: + // jmp value (already in r0) + s.tmp_11 = r0; + r0 = pxsim_numops_toBool(s.tmp_11); + if (r0) { step = 5; continue; } + r0 = s.tmp_11; + { step = 6; continue; } + case 5: + s.tmp_12 = r0 = s.arg2; + s.tmp_14 = game_Hitbox_bottom__P48964_mk(s); + s.tmp_14.arg0 = s.arg0; + s.callLocIdx = 234; s.pc = 10; return s.tmp_14; + case 10: + r0 = s.retval; + s.tmp_13 = r0; + r0 = (s.tmp_12 <= s.tmp_13); + case 6: + // jmp value (already in r0) + s.tmp_15 = r0; + r0 = s.tmp_15; + return leave(s, r0) + default: oops() +} } } +game_Hitbox_contains__P48966.info = {"start":1051,"length":144,"line":44,"column":8,"endLine":46,"endColumn":9,"fileName":"pxt_modules/game/hitbox.ts","functionName":"contains","argumentNames":["this","x","y"]} + +function game_Hitbox_contains__P48966_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Hitbox_contains__P48966, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + tmp_8: undefined, + tmp_9: undefined, + tmp_10: undefined, + tmp_11: undefined, + tmp_12: undefined, + tmp_13: undefined, + tmp_14: undefined, + tmp_15: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function ArcadePhysicsEngine_createMovingSprite__P293287(s) { +function helpers_imageBlit__P48707(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38570,16 +39669,135 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___306965 = undefined; - s.ovy___306970 = undefined; - s.fx___306997 = undefined; - s.c___307004 = undefined; - s.fy___307047 = undefined; - s.c___307054 = undefined; - s.dx___307093 = undefined; - s.dy___307106 = undefined; - s.xStep___307119 = undefined; - s.yStep___307121 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); + s.arg4 = (s.lambdaArgs[4]); + s.arg5 = (s.lambdaArgs[5]); + s.arg6 = (s.lambdaArgs[6]); + s.arg7 = (s.lambdaArgs[7]); + s.arg8 = (s.lambdaArgs[8]); + s.arg9 = (s.lambdaArgs[9]); + s.arg10 = (s.lambdaArgs[10]); + s.arg11 = (s.lambdaArgs[11]); + s.lambdaArgs = null; + } + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__mk(); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + globals._blitArgs___51064 = (s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = (s.arg1 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 0, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = (s.arg2 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 1, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = (s.arg3 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 2, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = (s.arg4 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 3, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = (s.arg6 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 4, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = (s.arg7 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 5, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = (s.arg8 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 6, s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___51064; + r0 = (s.arg9 | 0); + s.tmp_1 = r0; + r0 = pxsim_Array_.setAt(s.tmp_0, 7, s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.arg10); + if (!r0) { step = 3; continue; } + r0 = 1; + { step = 4; continue; } + case 3: + r0 = 0; + case 4: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(globals._blitArgs___51064, 8, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(s.arg11); + if (!r0) { step = 5; continue; } + r0 = 1; + { step = 6; continue; } + case 5: + r0 = 0; + case 6: + // jmp value (already in r0) + s.tmp_0 = r0; + r0 = pxsim_Array_.setAt(globals._blitArgs___51064, 9, s.tmp_0); + r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___51064); + return leave(s, r0) + default: oops() +} } } +helpers_imageBlit__P48707.info = {"start":3839,"length":642,"line":136,"column":4,"endLine":149,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageBlit","argumentNames":["img","xDst","yDst","wDst","hDst","src","xSrc","ySrc","wSrc","hSrc","transparent","check"]} + +function helpers_imageBlit__P48707_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_imageBlit__P48707, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, + arg4: undefined, + arg5: undefined, + arg6: undefined, + arg7: undefined, + arg8: undefined, + arg9: undefined, + arg10: undefined, + arg11: undefined, +} } + + + + + +function ArcadePhysicsEngine_createMovingSprite__P51208(s) { +let r0 = s.r0, 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.ovx___65345 = undefined; + s.ovy___65350 = undefined; + s.fx___65377 = undefined; + s.c___65384 = undefined; + s.fy___65427 = undefined; + s.c___65434 = undefined; + s.dx___65473 = undefined; + s.dy___65486 = undefined; + s.xStep___65499 = undefined; + s.yStep___65501 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -38588,23 +39806,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P293292_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P51213_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 574; s.pc = 25; return s.tmp_0; + s.callLocIdx = 671; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___306965 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P293292_mk(s); + s.ovx___65345 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P51213_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 575; s.pc = 26; return s.tmp_0; + s.callLocIdx = 672; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___306970 = (r0); + s.ovy___65350 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -38638,41 +39856,41 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fx___306997 = (r0); + s.fx___65377 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___306997); - s.c___307004 = (r0); - r0 = (s.c___307004 < 0); + r0 = (s.tmp_0 - s.fx___65377); + s.c___65384 = (r0); + r0 = (s.c___65384 < 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__P289570_mk(s); + s.tmp_3 = Fx_min__P47121_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___306997); + r0 = (s.tmp_4 + s.fx___65377); s.tmp_3.arg1 = r0; - s.callLocIdx = 583; s.pc = 27; return s.tmp_3; + s.callLocIdx = 680; 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___307004 > 0); + r0 = (s.c___65384 > 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__P289571_mk(s); + s.tmp_3 = Fx_max__P47122_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___306997); + r0 = (s.tmp_4 - s.fx___65377); s.tmp_3.arg1 = r0; - s.callLocIdx = 585; s.pc = 28; return s.tmp_3; + s.callLocIdx = 682; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -38712,41 +39930,41 @@ switch (step) { r0 = pxsim.Math_.imul(s.tmp_2, s.arg2); s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.tmp_1, 1000); - s.fy___307047 = (r0); + s.fy___65427 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___307047); - s.c___307054 = (r0); - r0 = (s.c___307054 < 0); + r0 = (s.tmp_0 - s.fy___65427); + s.c___65434 = (r0); + r0 = (s.c___65434 < 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__P289570_mk(s); + s.tmp_3 = Fx_min__P47121_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___307047); + r0 = (s.tmp_4 + s.fy___65427); s.tmp_3.arg1 = r0; - s.callLocIdx = 593; s.pc = 29; return s.tmp_3; + s.callLocIdx = 690; 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___307054 > 0); + r0 = (s.c___65434 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } s.tmp_1 = r0 = s.arg1; - s.tmp_3 = Fx_max__P289571_mk(s); + s.tmp_3 = Fx_max__P47122_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___307047); + r0 = (s.tmp_4 - s.fy___65427); s.tmp_3.arg1 = r0; - s.callLocIdx = 595; s.pc = 30; return s.tmp_3; + s.callLocIdx = 692; s.pc = 30; return s.tmp_3; case 30: r0 = s.retval; s.tmp_2 = r0; @@ -38760,28 +39978,28 @@ switch (step) { case 15: case 16: s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P293292_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P51213_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 596; s.pc = 31; return s.tmp_2; + s.callLocIdx = 693; 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__P293292_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P51213_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 597; s.pc = 32; return s.tmp_2; + s.callLocIdx = 694; s.pc = 32; return s.tmp_2; case 32: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovx___306965); + r0 = (s.tmp_4 + s.ovx___65345); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -38792,10 +40010,10 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dx___307093 = (r0); + s.dx___65473 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovy___306970); + r0 = (s.tmp_4 + s.ovy___65350); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -38806,13 +40024,13 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dy___307106 = (r0); - s.xStep___307119 = (s.dx___307093); - s.yStep___307121 = (s.dy___307106); + s.dy___65486 = (r0); + s.xStep___65499 = (s.dx___65473); + s.yStep___65501 = (s.dy___65486); case 17: - s.tmp_2 = Fx_abs__P289569_mk(s); - s.tmp_2.arg0 = s.xStep___307119; - s.callLocIdx = 604; s.pc = 33; return s.tmp_2; + s.tmp_2 = Fx_abs__P47120_mk(s); + s.tmp_2.arg0 = s.xStep___65499; + s.callLocIdx = 701; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; s.tmp_1 = r0; @@ -38825,9 +40043,9 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - s.tmp_5 = Fx_abs__P289569_mk(s); - s.tmp_5.arg0 = s.yStep___307121; - s.callLocIdx = 605; s.pc = 34; return s.tmp_5; + s.tmp_5 = Fx_abs__P47120_mk(s); + s.tmp_5.arg0 = s.yStep___65501; + s.callLocIdx = 702; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; s.tmp_4 = r0; @@ -38839,9 +40057,9 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P289569_mk(s); - s.tmp_10.arg0 = s.xStep___307119; - s.callLocIdx = 606; s.pc = 35; return s.tmp_10; + s.tmp_10 = Fx_abs__P47120_mk(s); + s.tmp_10.arg0 = s.xStep___65499; + s.callLocIdx = 703; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; s.tmp_9 = r0; @@ -38851,13 +40069,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___307119, 2); - s.xStep___307119 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___65499, 2); + s.xStep___65499 = (r0); case 20: case 21: - s.tmp_2 = Fx_abs__P289569_mk(s); - s.tmp_2.arg0 = s.yStep___307121; - s.callLocIdx = 608; s.pc = 36; return s.tmp_2; + s.tmp_2 = Fx_abs__P47120_mk(s); + s.tmp_2.arg0 = s.yStep___65501; + s.callLocIdx = 705; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; s.tmp_1 = r0; @@ -38867,38 +40085,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___307121, 2); - s.yStep___307121 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___65501, 2); + s.yStep___65501 = (r0); case 22: case 23: { step = 17; continue; } case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C291601_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C49259_VT); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P291602_mk(s); + s.tmp_1 = MovingSprite_constructor__P49260_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___307093; - s.tmp_1.arg5 = s.dy___307106; - s.tmp_1.arg6 = s.xStep___307119; - s.tmp_1.arg7 = s.yStep___307121; - s.callLocIdx = 610; s.pc = 37; return s.tmp_1; + s.tmp_1.arg4 = s.dx___65473; + s.tmp_1.arg5 = s.dy___65486; + s.tmp_1.arg6 = s.xStep___65499; + s.tmp_1.arg7 = s.yStep___65501; + s.callLocIdx = 707; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P293287.info = {"start":6637,"length":2803,"line":210,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} +ArcadePhysicsEngine_createMovingSprite__P51208.info = {"start":6637,"length":2805,"line":210,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"createMovingSprite","argumentNames":["this","sprite","dtMs","dt2"]} -function ArcadePhysicsEngine_createMovingSprite__P293287_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P51208_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P293287, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P51208, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38912,16 +40130,16 @@ function ArcadePhysicsEngine_createMovingSprite__P293287_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___306965: undefined, - ovy___306970: undefined, - fx___306997: undefined, - c___307004: undefined, - fy___307047: undefined, - c___307054: undefined, - dx___307093: undefined, - dy___307106: undefined, - xStep___307119: undefined, - yStep___307121: undefined, + ovx___65345: undefined, + ovy___65350: undefined, + fx___65377: undefined, + c___65384: undefined, + fy___65427: undefined, + c___65434: undefined, + dx___65473: undefined, + dy___65486: undefined, + xStep___65499: undefined, + yStep___65501: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -38932,7 +40150,7 @@ function ArcadePhysicsEngine_createMovingSprite__P293287_mk(s) { -function ArcadePhysicsEngine_constrain__P293292(s) { +function ArcadePhysicsEngine_constrain__P51213(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38948,30 +40166,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P289571_mk(s); - s.tmp_1 = Fx_min__P289570_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P47122_mk(s); + s.tmp_1 = Fx_min__P47121_mk(s); r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 757; s.pc = 2; return s.tmp_1; + s.callLocIdx = 854; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["maxNegativeVelocity"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 758; s.pc = 1; return s.tmp_0; + s.callLocIdx = 855; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P293292.info = {"start":25844,"length":191,"line":726,"column":4,"endLine":734,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} +ArcadePhysicsEngine_constrain__P51213.info = {"start":26054,"length":193,"line":730,"column":4,"endLine":738,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"constrain","argumentNames":["this","v"]} -function ArcadePhysicsEngine_constrain__P293292_mk(s) { +function ArcadePhysicsEngine_constrain__P51213_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P293292, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P51213, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38983,54 +40201,7 @@ function ArcadePhysicsEngine_constrain__P293292_mk(s) { -function Fx_max__P289571(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 > s.arg1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.arg0; - { step = 3; continue; } - { step = 2; continue; } - case 1: - r0 = s.arg1; - { step = 3; continue; } - case 2: - r0 = undefined; - case 3: - return leave(s, r0) - default: oops() -} } } -Fx_max__P289571.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__P289571_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_max__P289571, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Fx_compare__P289568(s) { +function Fx_compare__P47119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39049,12 +40220,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_compare__P289568.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__P47119.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__P289568_mk(s) { +function Fx_compare__P47119_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_compare__P289568, depth: s.depth + 1, + parent: s, fn: Fx_compare__P47119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -39064,7 +40235,7 @@ function Fx_compare__P289568_mk(s) { -function sprites_SpriteMap_insertAABB__P291529(s) { +function sprites_SpriteMap_insertAABB__P49187(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39074,34 +40245,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___306777 = undefined; - s.top___306780 = undefined; - s.xn___306783 = undefined; - s.yn___306794 = undefined; - s.x___306805 = undefined; - s.y___306810 = undefined; + s.left___65165 = undefined; + s.top___65168 = undefined; + s.xn___65171 = undefined; + s.yn___65182 = undefined; + s.x___65193 = undefined; + s.y___65198 = 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__C291522_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P291488_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P49141_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 505; s.pc = 5; return s.tmp_0; + s.callLocIdx = 602; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___306777 = (r0); - s.tmp_0 = Sprite_top__P291492_mk(s); + s.left___65165 = (r0); + s.tmp_0 = Sprite_top__P49145_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 506; s.pc = 6; return s.tmp_0; + s.callLocIdx = 603; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___306780 = (r0); - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); + s.top___65168 = (r0); + s.tmp_3 = Sprite_width__P49139_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 604; s.pc = 7; return s.tmp_3; + case 7: + r0 = s.retval; s.tmp_2 = r0; r0 = s.arg0.fields["cellWidth"]; s.tmp_4 = r0; @@ -39112,10 +40285,12 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___306783 = (r0); - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); + s.xn___65171 = (r0); + s.tmp_3 = Sprite_height__P49140_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 605; s.pc = 8; return s.tmp_3; + case 8: + r0 = s.retval; s.tmp_2 = r0; r0 = s.arg0.fields["cellHeight"]; s.tmp_4 = r0; @@ -39126,75 +40301,79 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___306794 = (r0); - s.x___306805 = (0); + s.yn___65182 = (r0); + s.x___65193 = (0); case 1: - r0 = (s.x___306805 <= s.xn___306783); + r0 = (s.x___65193 <= s.xn___65171); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___306810 = (0); + s.y___65198 = (0); case 2: - r0 = (s.y___306810 <= s.yn___306794); + r0 = (s.y___65198 <= s.yn___65182); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P293251_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P51172_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___306777; - s.tmp_4 = Math_min__P289535_mk(s); - r0 = s.arg1.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_2 = r0 = s.left___65165; + s.tmp_4 = Math_min__P47086_mk(s); + s.tmp_5 = Sprite_width__P49139_mk(s); + s.tmp_5.arg0 = s.arg1; + s.callLocIdx = 606; s.pc = 11; return s.tmp_5; + case 11: + r0 = s.retval; s.tmp_4.arg0 = r0; r0 = s.arg0.fields["cellWidth"]; s.tmp_6 = r0; - r0 = (s.x___306805 * s.tmp_6); + r0 = (s.x___65193 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 510; s.pc = 8; return s.tmp_4; - case 8: + s.callLocIdx = 607; s.pc = 10; return s.tmp_4; + case 10: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); s.tmp_1.arg1 = r0; - s.tmp_7 = r0 = s.top___306780; - s.tmp_9 = Math_min__P289535_mk(s); - r0 = s.arg1.fields["_image"]; - s.tmp_10 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_10); + s.tmp_7 = r0 = s.top___65168; + s.tmp_9 = Math_min__P47086_mk(s); + s.tmp_10 = Sprite_height__P49140_mk(s); + s.tmp_10.arg0 = s.arg1; + s.callLocIdx = 608; s.pc = 13; return s.tmp_10; + case 13: + r0 = s.retval; s.tmp_9.arg0 = r0; r0 = s.arg0.fields["cellHeight"]; s.tmp_11 = r0; - r0 = (s.y___306810 * s.tmp_11); + r0 = (s.y___65198 * s.tmp_11); s.tmp_9.arg1 = r0; - s.callLocIdx = 512; s.pc = 9; return s.tmp_9; - case 9: + s.callLocIdx = 609; s.pc = 12; return s.tmp_9; + case 12: r0 = s.retval; s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_1.arg2 = r0; s.tmp_1.arg3 = s.arg1; - s.callLocIdx = 513; s.pc = 7; return s.tmp_1; - case 7: + s.callLocIdx = 610; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - r0 = (s.y___306810 + 1); - s.y___306810 = (r0); + r0 = (s.y___65198 + 1); + s.y___65198 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___306805 + 1); - s.x___306805 = (r0); + r0 = (s.x___65193 + 1); + s.x___65193 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P291529.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__P49187.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__P291529_mk(s) { +function sprites_SpriteMap_insertAABB__P49187_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P291529, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P49187, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39208,12 +40387,12 @@ function sprites_SpriteMap_insertAABB__P291529_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___306777: undefined, - top___306780: undefined, - xn___306783: undefined, - yn___306794: undefined, - x___306805: undefined, - y___306810: undefined, + left___65165: undefined, + top___65168: undefined, + xn___65171: undefined, + yn___65182: undefined, + x___65193: undefined, + y___65198: undefined, arg0: undefined, arg1: undefined, } } @@ -39222,7 +40401,7 @@ function sprites_SpriteMap_insertAABB__P291529_mk(s) { -function sprites_SpriteMap_insertAtKey__P293251(s) { +function sprites_SpriteMap_insertAtKey__P51172(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39232,8 +40411,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___306845 = undefined; - s.bucket___306850 = undefined; + s.k___65233 = undefined; + s.bucket___65238 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -39242,20 +40421,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C291522_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P293250_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P51171_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 504; s.pc = 5; return s.tmp_0; + s.callLocIdx = 601; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___306845 = (r0); + s.k___65233 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___306845); - s.bucket___306850 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___306850); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___65233); + s.bucket___65238 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___65238); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -39263,40 +40442,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___306845; + s.tmp_3 = r0 = s.k___65233; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___306850 = (s.tmp_4); + s.bucket___65238 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___306850, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___65238, 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___306850, s.arg3); + r0 = pxsim_Array__push(s.bucket___65238, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P293251.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__P51172.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__P293251_mk(s) { +function sprites_SpriteMap_insertAtKey__P51172_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P293251, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P51172, depth: s.depth + 1, pc: 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___306845: undefined, - bucket___306850: undefined, + k___65233: undefined, + bucket___65238: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -39307,7 +40486,7 @@ function sprites_SpriteMap_insertAtKey__P293251_mk(s) { -function sprites_SpriteMap_clear__P291528(s) { +function sprites_SpriteMap_clear__P49186(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39322,7 +40501,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C291522_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -39331,12 +40510,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P291528.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__P49186.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__P291528_mk(s) { +function sprites_SpriteMap_clear__P49186_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P291528, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P49186, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39347,7 +40526,7 @@ function sprites_SpriteMap_clear__P291528_mk(s) { -function sprites_SpriteMap_resizeBuckets__P291527(s) { +function sprites_SpriteMap_resizeBuckets__P49185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39357,147 +40536,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___306888 = undefined; - s.maxHeight___306889 = undefined; - s.sprite___306891 = undefined; - s.unnamed22618___U3 = undefined; - s.unnamed22619___U4 = undefined; - s.tMap___306907 = undefined; - s.areaWidth___306911 = undefined; - s.areaHeight___306918 = undefined; + s.maxWidth___65268 = undefined; + s.maxHeight___65269 = undefined; + s.sprite___65271 = undefined; + s.unnamed870___U3 = undefined; + s.unnamed871___U4 = undefined; + s.tMap___65287 = undefined; + s.areaWidth___65291 = undefined; + s.areaHeight___65298 = 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__C291522_VT)) failedCast(r0); - s.maxWidth___306888 = (0); - s.maxHeight___306889 = (0); - s.sprite___306891 = (undefined); - s.unnamed22618___U3 = (s.arg1); - s.unnamed22619___U4 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); + s.maxWidth___65268 = (0); + s.maxHeight___65269 = (0); + s.sprite___65271 = (undefined); + s.unnamed870___U3 = (s.arg1); + s.unnamed871___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed22619___U4; - r0 = pxsim_Array__length(s.unnamed22618___U3); + s.tmp_0 = r0 = s.unnamed871___U4; + r0 = pxsim_Array__length(s.unnamed870___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed22618___U3, s.unnamed22619___U4); - s.sprite___306891 = (r0); - r0 = s.sprite___306891.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); + r0 = pxsim_Array__getAt(s.unnamed870___U3, s.unnamed871___U4); + s.sprite___65271 = (r0); + s.tmp_4 = Sprite_width__P49139_mk(s); + s.tmp_4.arg0 = s.sprite___65271; + s.callLocIdx = 590; s.pc = 11; return s.tmp_4; + case 11: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___306888); + r0 = (s.tmp_3 > s.maxWidth___65268); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.sprite___306891.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.maxWidth___306888 = (r0); + s.tmp_5 = Sprite_width__P49139_mk(s); + s.tmp_5.arg0 = s.sprite___65271; + s.callLocIdx = 591; s.pc = 12; return s.tmp_5; + case 12: + r0 = s.retval; + s.maxWidth___65268 = (r0); case 2: case 3: - r0 = s.sprite___306891.fields["_image"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_2 = Sprite_height__P49140_mk(s); + s.tmp_2.arg0 = s.sprite___65271; + s.callLocIdx = 592; s.pc = 13; return s.tmp_2; + case 13: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___306889); + r0 = (s.tmp_1 > s.maxHeight___65269); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = s.sprite___306891.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); - s.maxHeight___306889 = (r0); + s.tmp_3 = Sprite_height__P49140_mk(s); + s.tmp_3.arg0 = s.sprite___65271; + s.callLocIdx = 593; s.pc = 14; return s.tmp_3; + case 14: + r0 = s.retval; + s.maxHeight___65269 = (r0); case 4: case 5: - r0 = (s.unnamed22619___U4 + 1); - s.unnamed22619___U4 = (r0); + r0 = (s.unnamed871___U4 + 1); + s.unnamed871___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed22618___U3 = (undefined); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 497; s.pc = 11; return s.tmp_0; - case 11: + s.unnamed870___U3 = (undefined); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 594; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___306907 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___306907); + s.tMap___65287 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___65287); if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap_areaWidth__P291753_mk(s); - s.tmp_0.arg0 = s.tMap___306907; - s.callLocIdx = 498; s.pc = 12; return s.tmp_0; - case 12: + s.tmp_0 = tiles_TileMap_areaWidth__P49429_mk(s); + s.tmp_0.arg0 = s.tMap___65287; + s.callLocIdx = 595; s.pc = 16; return s.tmp_0; + case 16: r0 = s.retval; { step = 8; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___306911 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___306907); + s.areaWidth___65291 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___65287); if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap_areaHeight__P291754_mk(s); - s.tmp_0.arg0 = s.tMap___306907; - s.callLocIdx = 499; s.pc = 13; return s.tmp_0; - case 13: + s.tmp_0 = tiles_TileMap_areaHeight__P49430_mk(s); + s.tmp_0.arg0 = s.tMap___65287; + s.callLocIdx = 596; s.pc = 17; return s.tmp_0; + case 17: r0 = s.retval; { step = 10; continue; } case 9: - r0 = pxsim_ImageMethods.height(globals.screen___291221); + r0 = pxsim_ImageMethods.height(globals.screen___48784); case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___306918 = (s.tmp_1); + s.areaHeight___65298 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P289531_mk(s); + s.tmp_2 = Math_clamp__P47082_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___306911 >> 2); + r0 = (s.areaWidth___65291 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___306888 * 2); + r0 = (s.maxWidth___65268 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 500; s.pc = 14; return s.tmp_2; - case 14: + s.callLocIdx = 597; s.pc = 18; return s.tmp_2; + case 18: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["cellWidth"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P289531_mk(s); + s.tmp_2 = Math_clamp__P47082_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___306918 >> 2); + r0 = (s.areaHeight___65298 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___306889 * 2); + r0 = (s.maxHeight___65269 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 501; s.pc = 15; return s.tmp_2; - case 15: + s.callLocIdx = 598; s.pc = 19; return s.tmp_2; + case 19: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["cellHeight"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2 = r0; - r0 = pxsim.Math_.idiv(s.areaHeight___306918, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___65298, 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___306911, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___65291, 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__P291527.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__P49185.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__P291527_mk(s) { +function sprites_SpriteMap_resizeBuckets__P49185_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P291527, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P49185, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39505,14 +40692,14 @@ function sprites_SpriteMap_resizeBuckets__P291527_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___306888: undefined, - maxHeight___306889: undefined, - sprite___306891: undefined, - unnamed22618___U3: undefined, - unnamed22619___U4: undefined, - tMap___306907: undefined, - areaWidth___306911: undefined, - areaHeight___306918: undefined, + maxWidth___65268: undefined, + maxHeight___65269: undefined, + sprite___65271: undefined, + unnamed870___U3: undefined, + unnamed871___U4: undefined, + tMap___65287: undefined, + areaWidth___65291: undefined, + areaHeight___65298: undefined, arg0: undefined, arg1: undefined, } } @@ -39521,7 +40708,7 @@ function sprites_SpriteMap_resizeBuckets__P291527_mk(s) { -function Sprite_clearObstacles__P291512(s) { +function Sprite_clearObstacles__P49167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39536,7 +40723,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -39545,12 +40732,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P291512.info = {"start":28006,"length":54,"line":843,"column":4,"endLine":845,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} +Sprite_clearObstacles__P49167.info = {"start":28560,"length":54,"line":918,"column":4,"endLine":920,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"clearObstacles","argumentNames":["this"]} -function Sprite_clearObstacles__P291512_mk(s) { +function Sprite_clearObstacles__P49167_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P291512, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P49167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39561,7 +40748,7 @@ function Sprite_clearObstacles__P291512_mk(s) { -function Fx_idiv__P289567(s) { +function Fx_idiv__P47118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39580,50 +40767,13 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_idiv__P289567.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__P289567_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_idiv__P289567, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Fx_div__P289566(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = (s.arg0 << 8); - s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); - return leave(s, r0) - default: oops() -} } } -Fx_div__P289566.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_idiv__P47118.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_div__P289566_mk(s) { +function Fx_idiv__P47118_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_div__P289566, depth: s.depth + 1, + parent: s, fn: Fx_idiv__P47118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -39632,7 +40782,7 @@ function Fx_div__P289566_mk(s) { -function helpers_arrayMap__P289511(s) { +function helpers_arrayMap__P47061(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39642,58 +40792,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___299025 = undefined; - s.len___299027 = undefined; - s.i___299030 = undefined; + s.res___57092 = undefined; + s.len___57094 = undefined; + s.i___57097 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___299025 = (r0); + s.res___57092 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___299027 = (r0); - s.i___299030 = (0); + s.len___57094 = (r0); + s.i___57097 = (0); case 1: - r0 = (s.i___299030 < s.len___299027); + r0 = (s.i___57097 < s.len___57094); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___299025; + s.tmp_1 = r0 = s.res___57092; s.tmp_3 = lambda_3_mk(s); s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___299030); + r0 = pxsim_Array__getAt(s.arg0, s.i___57097); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___299030; + s.tmp_3.arg1 = s.i___57097; setupLambda(s.tmp_3, s.tmp_3.argL); s.callLocIdx = 3; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___299030 + 1); - s.i___299030 = (r0); + r0 = (s.i___57097 + 1); + s.i___57097 = (r0); { step = 1; continue; } case 2: - r0 = s.res___299025; + r0 = s.res___57092; return leave(s, r0) default: oops() } } } -helpers_arrayMap__P289511.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__P47061.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__P289511_mk(s) { +function helpers_arrayMap__P47061_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P289511, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P47061, depth: s.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___299025: undefined, - len___299027: undefined, - i___299030: undefined, + res___57092: undefined, + len___57094: undefined, + i___57097: undefined, arg0: undefined, arg1: undefined, } } @@ -39702,7 +40852,7 @@ function helpers_arrayMap__P289511_mk(s) { -function ArcadePhysicsEngine_draw__P291614(s) { +function ArcadePhysicsEngine_draw__P49272(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39717,23 +40867,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P291526_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P49184_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 540; s.pc = 1; return s.tmp_0; + s.callLocIdx = 637; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P291614.info = {"start":2777,"length":39,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} +ArcadePhysicsEngine_draw__P49272.info = {"start":2777,"length":39,"line":108,"column":4,"endLine":110,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function ArcadePhysicsEngine_draw__P291614_mk(s) { +function ArcadePhysicsEngine_draw__P49272_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P291614, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_draw__P49272, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -39743,7 +40893,7 @@ function ArcadePhysicsEngine_draw__P291614_mk(s) { -function sprites_SpriteMap_draw__P291526(s) { +function sprites_SpriteMap_draw__P49184(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39753,108 +40903,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___307193 = undefined; - s.y___307199 = undefined; - s.left___307205 = undefined; - s.top___307210 = undefined; - s.k___307215 = undefined; - s.b___307220 = undefined; + s.x___65566 = undefined; + s.y___65572 = undefined; + s.left___65578 = undefined; + s.top___65583 = undefined; + s.k___65588 = undefined; + s.b___65593 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C291522_VT)) failedCast(r0); - s.x___307193 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C49180_VT)) failedCast(r0); + s.x___65566 = (0); case 1: r0 = s.arg0.fields["columnCount"]; s.tmp_1 = r0; - r0 = (s.x___307193 < s.tmp_1); + r0 = (s.x___65566 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___307199 = (0); + s.y___65572 = (0); case 2: r0 = s.arg0.fields["rowCount"]; s.tmp_1 = r0; - r0 = (s.y___307199 < s.tmp_1); + r0 = (s.y___65572 < 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___307193 * s.tmp_2); - s.left___307205 = (r0); + r0 = (s.x___65566 * s.tmp_2); + s.left___65578 = (r0); r0 = s.arg0.fields["cellHeight"]; s.tmp_0 = r0; - r0 = (s.y___307199 * s.tmp_0); - s.top___307210 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P293250_mk(s); + r0 = (s.y___65572 * s.tmp_0); + s.top___65583 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P51171_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___307205; - s.tmp_0.arg2 = s.top___307210; - s.callLocIdx = 491; s.pc = 9; return s.tmp_0; + s.tmp_0.arg1 = s.left___65578; + s.tmp_0.arg2 = s.top___65583; + s.callLocIdx = 588; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___307215 = (r0); + s.k___65588 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___307215); - s.b___307220 = (r0); - s.tmp_0 = r0 = s.b___307220; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___65588); + s.b___65593 = (r0); + s.tmp_0 = r0 = s.b___65593; 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___307220); + r0 = pxsim_Array__length(s.b___65593); 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__P291150_mk(s); - s.tmp_2.arg0 = globals.screen___291221; - s.tmp_2.arg1 = s.left___307205; - s.tmp_2.arg2 = s.top___307210; + s.tmp_2 = helpers_imageDrawRect__P48713_mk(s); + s.tmp_2.arg0 = globals.screen___48784; + s.tmp_2.arg1 = s.left___65578; + s.tmp_2.arg2 = s.top___65583; r0 = s.arg0.fields["cellWidth"]; s.tmp_2.arg3 = r0; r0 = s.arg0.fields["cellHeight"]; s.tmp_2.arg4 = r0; s.tmp_2.arg5 = 5; - s.callLocIdx = 492; s.pc = 10; return s.tmp_2; + s.callLocIdx = 589; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 5: case 6: - r0 = (s.y___307199 + 1); - s.y___307199 = (r0); + r0 = (s.y___65572 + 1); + s.y___65572 = (r0); { step = 2; continue; } case 7: - r0 = (s.x___307193 + 1); - s.x___307193 = (r0); + r0 = (s.x___65566 + 1); + s.x___65566 = (r0); { step = 1; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P291526.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__P49184.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__P291526_mk(s) { +function sprites_SpriteMap_draw__P49184_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P291526, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_draw__P49184, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___307193: undefined, - y___307199: undefined, - left___307205: undefined, - top___307210: undefined, - k___307215: undefined, - b___307220: undefined, + x___65566: undefined, + y___65572: undefined, + left___65578: undefined, + top___65583: undefined, + k___65588: undefined, + b___65593: undefined, arg0: undefined, } } @@ -39862,7 +41012,7 @@ function sprites_SpriteMap_draw__P291526_mk(s) { -function ArcadePhysicsEngine_removeSprite__P291613(s) { +function ArcadePhysicsEngine_removeSprite__P49271(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39878,7 +41028,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_VT)) failedCast(r0); r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); @@ -39886,12 +41036,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_removeSprite__P291613.info = {"start":2691,"length":80,"line":104,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_removeSprite__P49271.info = {"start":2691,"length":80,"line":104,"column":4,"endLine":106,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"removeSprite","argumentNames":["this","sprite"]} -function ArcadePhysicsEngine_removeSprite__P291613_mk(s) { +function ArcadePhysicsEngine_removeSprite__P49271_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P291613, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_removeSprite__P49271, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -39902,7 +41052,7 @@ function ArcadePhysicsEngine_removeSprite__P291613_mk(s) { -function ArcadePhysicsEngine_addSprite__P291612(s) { +function ArcadePhysicsEngine_addSprite__P49270(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39912,33 +41062,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___307257 = undefined; + s.tm___65630 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C291603_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C49261_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__P291955_mk(s); - s.callLocIdx = 538; s.pc = 5; return s.tmp_0; + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 635; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___307257 = (r0); - s.tmp_0 = r0 = s.tm___307257; + s.tm___65630 = (r0); + s.tmp_0 = r0 = s.tm___65630; 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__P291768_mk(s); - s.tmp_1.arg0 = s.tm___307257; + s.tmp_1 = tiles_TileMap_isOnWall__P49444_mk(s); + s.tmp_1.arg0 = s.tm___65630; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 539; s.pc = 6; return s.tmp_1; + s.callLocIdx = 636; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; case 2: @@ -39958,12 +41108,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P291612.info = {"start":2465,"length":220,"line":96,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +ArcadePhysicsEngine_addSprite__P49270.info = {"start":2465,"length":220,"line":96,"column":4,"endLine":102,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function ArcadePhysicsEngine_addSprite__P291612_mk(s) { +function ArcadePhysicsEngine_addSprite__P49270_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P291612, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_addSprite__P49270, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39971,7 +41121,7 @@ function ArcadePhysicsEngine_addSprite__P291612_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___307257: undefined, + tm___65630: undefined, arg0: undefined, arg1: undefined, } } @@ -39980,7 +41130,7 @@ function ArcadePhysicsEngine_addSprite__P291612_mk(s) { -function scene_BackgroundLayer_constructor__P291712(s) { +function scene_BackgroundLayer_constructor__P49372(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39998,12 +41148,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C291705_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C49365_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P289534_mk(s); + s.tmp_2 = Math_max__P47085_mk(s); s.tmp_2.arg0 = 1; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 766; s.pc = 7; return s.tmp_2; + s.callLocIdx = 863; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; s.tmp_1 = r0; @@ -40046,12 +41196,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_constructor__P291712.info = {"start":1936,"length":1117,"line":72,"column":8,"endLine":97,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","distance","alignment","img"]} +scene_BackgroundLayer_constructor__P49372.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__P291712_mk(s) { +function scene_BackgroundLayer_constructor__P49372_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_constructor__P291712, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_constructor__P49372, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40066,7 +41216,7 @@ function scene_BackgroundLayer_constructor__P291712_mk(s) { -function scene_Camera_y__P291793(s) { +function scene_Camera_y__P49477(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40081,10 +41231,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C291783_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C49467_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___291221); + r0 = pxsim_ImageMethods.height(globals.screen___48784); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -40092,13 +41242,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_y__P291793.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__P291793.isGetter = true; +scene_Camera_y__P49477.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__P49477.isGetter = true; -function scene_Camera_y__P291793_mk(s) { +function scene_Camera_y__P49477_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_y__P291793, depth: s.depth + 1, + parent: s, fn: scene_Camera_y__P49477, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40110,7 +41260,7 @@ function scene_Camera_y__P291793_mk(s) { -function scene_Camera_x__P291792(s) { +function scene_Camera_x__P49476(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40125,10 +41275,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C291783_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C49467_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -40136,13 +41286,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_x__P291792.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__P291792.isGetter = true; +scene_Camera_x__P49476.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__P49476.isGetter = true; -function scene_Camera_x__P291792_mk(s) { +function scene_Camera_x__P49476_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_x__P291792, depth: s.depth + 1, + parent: s, fn: scene_Camera_x__P49476, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40154,7 +41304,7 @@ function scene_Camera_x__P291792_mk(s) { -function particles_ShapeFactory_createParticle__P292167(s) { +function particles_ShapeFactory_createParticle__P49853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40164,47 +41314,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___307340 = undefined; + s.p___65713 = 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__C292163_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P292153_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C49849_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P49839_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1236; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1343; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___307340 = (r0); - s.tmp_0 = r0 = s.p___307340; - s.tmp_2 = Math_FastRandom_randomRange__P292013_mk(s); + s.p___65713 = (r0); + s.tmp_0 = r0 = s.p___65713; + s.tmp_2 = Math_FastRandom_randomRange__P49699_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = 14; - s.callLocIdx = 1237; s.pc = 2; return s.tmp_2; + s.callLocIdx = 1344; 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___307340; + r0 = s.p___65713; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_createParticle__P292167.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__P49853.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__P292167_mk(s) { +function particles_ShapeFactory_createParticle__P49853_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P292167, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P49853, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___307340: undefined, + p___65713: undefined, arg0: undefined, arg1: undefined, } } @@ -40213,7 +41363,7 @@ function particles_ShapeFactory_createParticle__P292167_mk(s) { -function particles_AreaFactory_createParticle__P292153(s) { +function particles_AreaFactory_createParticle__P49839(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40223,42 +41373,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___307507 = undefined; + s.p___65880 = 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__C292147_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P292143_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C49833_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P49829_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1218; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1325; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.p___307507 = (r0); - s.tmp_0 = r0 = s.p___307507; - s.tmp_2 = Math_FastRandom_randomRange__P292013_mk(s); + s.p___65880 = (r0); + s.tmp_0 = r0 = s.p___65880; + s.tmp_2 = Math_FastRandom_randomRange__P49699_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; r0 = s.arg0.fields["minLifespan"]; s.tmp_2.arg1 = r0; r0 = s.arg0.fields["maxLifespan"]; s.tmp_2.arg2 = r0; - s.callLocIdx = 1219; s.pc = 4; return s.tmp_2; + s.callLocIdx = 1326; 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___307507; - s.tmp_4 = Math_FastRandom_randomRange__P292013_mk(s); + s.tmp_0 = r0 = s.p___65880; + s.tmp_4 = Math_FastRandom_randomRange__P49699_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_4.arg0 = r0; s.tmp_4.arg1 = 0; r0 = s.arg0.fields["xRange"]; s.tmp_4.arg2 = r0; - s.callLocIdx = 1220; s.pc = 5; return s.tmp_4; + s.callLocIdx = 1327; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; s.tmp_3 = r0; @@ -40268,7 +41418,7 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = s.p___307507.fields["_x"]; + r0 = s.p___65880.fields["_x"]; s.tmp_7 = r0; r0 = (s.tmp_2 << 8); s.tmp_8 = r0; @@ -40283,7 +41433,7 @@ switch (step) { s.tmp_1.fn = s.tmp_1.arg0.vtable.iface["height"]; if (s.tmp_1.fn == null) { s.retval = s.tmp_1.arg0.fields["height"]; } else if (!s.tmp_1.fn.isGetter) { s.retval = bind(s.tmp_1); } - else { s.callLocIdx = 1223; s.pc = 6; return s.tmp_1; } + else { s.callLocIdx = 1330; s.pc = 6; return s.tmp_1; } } case 6: r0 = s.retval; @@ -40298,7 +41448,7 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["height"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["height"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 1224; s.pc = 7; return s.tmp_3; } + else { s.callLocIdx = 1331; s.pc = 7; return s.tmp_3; } } case 7: r0 = s.retval; @@ -40310,36 +41460,36 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___307507; - s.tmp_9 = Math_FastRandom_randomRange__P292013_mk(s); + s.tmp_5 = r0 = s.p___65880; + s.tmp_9 = Math_FastRandom_randomRange__P49699_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = 0; r0 = s.arg0.fields["yRange"]; s.tmp_9.arg2 = r0; - s.callLocIdx = 1222; s.pc = 8; return s.tmp_9; + s.callLocIdx = 1329; 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___307507.fields["_y"]; + r0 = s.p___65880.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___307507; + r0 = s.p___65880; return leave(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P292153.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__P49839.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__P292153_mk(s) { +function particles_AreaFactory_createParticle__P49839_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P292153, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_createParticle__P49839, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40353,7 +41503,7 @@ function particles_AreaFactory_createParticle__P292153_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - p___307507: undefined, + p___65880: undefined, arg0: undefined, arg1: undefined, } } @@ -40362,7 +41512,7 @@ function particles_AreaFactory_createParticle__P292153_mk(s) { -function particles_SprayFactory_createParticle__P292143(s) { +function particles_SprayFactory_createParticle__P49829(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40372,39 +41522,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___307555 = undefined; - s.angle___307559 = undefined; + s.p___65928 = undefined; + s.angle___65932 = 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__C292141_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P292139_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C49827_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P49825_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1207; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1314; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___307555 = (r0); + s.p___65928 = (r0); r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P292013_mk(s); - s.tmp_3.arg0 = globals.galois___293783; + s.tmp_3 = Math_FastRandom_randomRange__P49699_mk(s); + s.tmp_3.arg0 = globals.galois___51690; s.tmp_3.arg1 = 0; r0 = s.arg0.fields["spread"]; s.tmp_3.arg2 = r0; - s.callLocIdx = 1208; s.pc = 2; return s.tmp_3; + s.callLocIdx = 1315; 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___307559 = (r0); - s.tmp_0 = r0 = s.p___307555; - r0 = pxsim_Array__getAt(globals.cachedSin___293778, s.angle___307559); + s.angle___65932 = (r0); + s.tmp_0 = r0 = s.p___65928; + r0 = pxsim_Array__getAt(globals.cachedSin___51685, s.angle___65932); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -40413,8 +41563,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___307555; - r0 = pxsim_Array__getAt(globals.cachedCos___293779, s.angle___307559); + s.tmp_0 = r0 = s.p___65928; + r0 = pxsim_Array__getAt(globals.cachedCos___51686, s.angle___65932); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -40423,24 +41573,24 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___307555; + r0 = s.p___65928; return leave(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P292143.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__P49829.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__P292143_mk(s) { +function particles_SprayFactory_createParticle__P49829_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P292143, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P49829, depth: s.depth + 1, pc: 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___307555: undefined, - angle___307559: undefined, + p___65928: undefined, + angle___65932: undefined, arg0: undefined, arg1: undefined, } } @@ -40449,7 +41599,7 @@ function particles_SprayFactory_createParticle__P292143_mk(s) { -function sprites_SpriteSet_toString__P291550(s) { +function sprites_SpriteSet_toString__P49208(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40464,7 +41614,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C291539_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C49197_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = s.arg0.fields["_sprites"]; @@ -40486,12 +41636,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_toString__P291550.info = {"start":2586,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} +sprites_SpriteSet_toString__P49208.info = {"start":2586,"length":66,"line":97,"column":8,"endLine":99,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"toString","argumentNames":["this"]} -function sprites_SpriteSet_toString__P291550_mk(s) { +function sprites_SpriteSet_toString__P49208_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_toString__P291550, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P49208, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40505,7 +41655,7 @@ function sprites_SpriteSet_toString__P291550_mk(s) { -function sprites_SpriteSet_length__P291542(s) { +function sprites_SpriteSet_length__P49200(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40520,20 +41670,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C291539_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C49197_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__P291542.info = {"start":625,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} -sprites_SpriteSet_length__P291542.isGetter = true; +sprites_SpriteSet_length__P49200.info = {"start":625,"length":65,"line":26,"column":8,"endLine":28,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"length","argumentNames":["this"]} +sprites_SpriteSet_length__P49200.isGetter = true; -function sprites_SpriteSet_length__P291542_mk(s) { +function sprites_SpriteSet_length__P49200_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P291542, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P49200, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40543,7 +41693,7 @@ function sprites_SpriteSet_length__P291542_mk(s) { -function particles_ParticleSource_factory__P292119(s) { +function particles_ParticleSource_factory__P49805(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40558,18 +41708,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); r0 = s.arg0.fields["_factory"]; return leaveAccessor(s, r0) default: oops() } } } -particles_ParticleSource_factory__P292119.info = {"start":7934,"length":76,"line":263,"column":8,"endLine":265,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"factory","argumentNames":["this"]} -particles_ParticleSource_factory__P292119.isGetter = true; +particles_ParticleSource_factory__P49805.info = {"start":7951,"length":76,"line":264,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"factory","argumentNames":["this"]} +particles_ParticleSource_factory__P49805.isGetter = true; -function particles_ParticleSource_factory__P292119_mk(s) { +function particles_ParticleSource_factory__P49805_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_factory__P292119, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_factory__P49805, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -40578,7 +41728,7 @@ function particles_ParticleSource_factory__P292119_mk(s) { -function particles_ParticleSource___draw__P292107(s) { +function particles_ParticleSource___draw__P49793(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40588,18 +41738,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___307369 = undefined; - s.left___307372 = undefined; - s.top___307382 = undefined; + s.current___65742 = undefined; + s.left___65745 = undefined; + s.top___65755 = 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__C292101_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___307369 = (r0); + s.current___65742 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -40617,7 +41767,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___307372 = (s.tmp_4); + s.left___65745 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -40635,49 +41785,49 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___307382 = (s.tmp_4); + s.top___65755 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___307369); + r0 = pxsim_numops_toBoolDecr(s.current___65742); if (!r0) { step = 8; continue; } - r0 = s.current___307369.fields["lifespan"]; + r0 = s.current___65742.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__P293769_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P51676_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___307369; - s.tmp_2.arg2 = s.left___307372; - s.tmp_2.arg3 = s.top___307382; - s.callLocIdx = 1142; s.pc = 9; return s.tmp_2; + s.tmp_2.arg1 = s.current___65742; + s.tmp_2.arg2 = s.left___65745; + s.tmp_2.arg3 = s.top___65755; + s.callLocIdx = 1249; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___307369.fields["next"]; - s.current___307369 = (r0); + r0 = s.current___65742.fields["next"]; + s.current___65742 = (r0); { step = 5; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource___draw__P292107.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__P49793.info = {"start":3216,"length":468,"line":112,"column":8,"endLine":122,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"__draw","argumentNames":["this","camera"]} -function particles_ParticleSource___draw__P292107_mk(s) { +function particles_ParticleSource___draw__P49793_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource___draw__P292107, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P49793, depth: s.depth + 1, pc: 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___307369: undefined, - left___307372: undefined, - top___307382: undefined, + current___65742: undefined, + left___65745: undefined, + top___65755: undefined, arg0: undefined, arg1: undefined, } } @@ -40686,7 +41836,7 @@ function particles_ParticleSource___draw__P292107_mk(s) { -function particles_ParticleSource_drawParticle__P293769(s) { +function particles_ParticleSource_drawParticle__P51676(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40704,8 +41854,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C292101_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C292137_v1_4_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C49787_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C49823_v1_4_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -40717,7 +41867,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__C292137_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C49823_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: @@ -40726,12 +41876,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P293769.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__P51676.info = {"start":8615,"length":174,"line":287,"column":8,"endLine":289,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"drawParticle","argumentNames":["this","p","screenLeft","screenTop"]} -function particles_ParticleSource_drawParticle__P293769_mk(s) { +function particles_ParticleSource_drawParticle__P51676_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P293769, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P51676, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40746,7 +41896,7 @@ function particles_ParticleSource_drawParticle__P293769_mk(s) { -function particles_ParticleFactory_drawParticle__P292140(s) { +function particles_ParticleFactory_drawParticle__P49826(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40764,8 +41914,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C292137_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___291221; + if (!checkSubtype(r0, particles_ParticleFactory__C49823_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___48784; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -40779,12 +41929,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P292140.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__P49826.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__P292140_mk(s) { +function particles_ParticleFactory_drawParticle__P49826_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P292140, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P49826, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40801,7 +41951,7 @@ function particles_ParticleFactory_drawParticle__P292140_mk(s) { -function Sprite_toString__P291518(s) { +function Sprite_toString__P49176(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40816,7 +41966,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -40834,9 +41984,9 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P291451_mk(s); + s.tmp_14 = Sprite_x__P49096_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 472; s.pc = 2; return s.tmp_14; + s.callLocIdx = 569; s.pc = 2; return s.tmp_14; case 2: r0 = s.retval; s.tmp_13 = r0; @@ -40853,9 +42003,9 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P291453_mk(s); + s.tmp_17 = Sprite_y__P49098_mk(s); s.tmp_17.arg0 = s.arg0; - s.callLocIdx = 473; s.pc = 4; return s.tmp_17; + s.callLocIdx = 570; s.pc = 4; return s.tmp_17; case 4: r0 = s.retval; s.tmp_16 = r0; @@ -40872,9 +42022,9 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P291455_mk(s); + s.tmp_20 = Sprite_vx__P49100_mk(s); s.tmp_20.arg0 = s.arg0; - s.callLocIdx = 474; s.pc = 6; return s.tmp_20; + s.callLocIdx = 571; s.pc = 6; return s.tmp_20; case 6: r0 = s.retval; s.tmp_19 = r0; @@ -40891,9 +42041,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P291457_mk(s); + s.tmp_23 = Sprite_vy__P49102_mk(s); s.tmp_23.arg0 = s.arg0; - s.callLocIdx = 475; s.pc = 8; return s.tmp_23; + s.callLocIdx = 572; s.pc = 8; return s.tmp_23; case 8: r0 = s.retval; s.tmp_22 = r0; @@ -40912,12 +42062,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P291518.info = {"start":34503,"length":93,"line":1014,"column":4,"endLine":1016,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} +Sprite_toString__P49176.info = {"start":37683,"length":93,"line":1169,"column":4,"endLine":1171,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"toString","argumentNames":["this"]} -function Sprite_toString__P291518_mk(s) { +function Sprite_toString__P49176_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P291518, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P49176, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40950,7 +42100,7 @@ function Sprite_toString__P291518_mk(s) { -function Sprite___update__P291504(s) { +function Sprite___update__P49158(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40960,8 +42110,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bounce___307661 = undefined; - s.tm___307666 = undefined; + s.bounce___66045 = undefined; + s.tm___66050 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -40969,7 +42119,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -40991,9 +42141,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__P291516_mk(s); + s.tmp_0 = Sprite__destroyCore__P49171_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 408; s.pc = 33; return s.tmp_0; + s.callLocIdx = 482; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; case 1: @@ -41009,10 +42159,10 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_isOutOfScreen__P291502_mk(s); + s.tmp_2 = Sprite_isOutOfScreen__P49156_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 409; s.pc = 34; return s.tmp_2; + s.callLocIdx = 483; s.pc = 34; return s.tmp_2; case 34: r0 = s.retval; case 6: @@ -41020,11 +42170,11 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P291515_mk(s); + s.tmp_4 = Sprite_destroy__P49170_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; - s.callLocIdx = 410; s.pc = 35; return s.tmp_4; + s.callLocIdx = 484; s.pc = 35; return s.tmp_4; case 35: r0 = s.retval; case 7: @@ -41032,13 +42182,13 @@ switch (step) { r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___307661 = (r0); - s.tmp_0 = game_currentScene__P291955_mk(s); - s.callLocIdx = 411; s.pc = 36; return s.tmp_0; + s.bounce___66045 = (r0); + s.tmp_0 = game_currentScene__P49640_mk(s); + s.callLocIdx = 485; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___307666 = (r0); + s.tm___66050 = (r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); @@ -41048,13 +42198,13 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 9: - s.tmp_2 = r0 = s.bounce___307661; + s.tmp_2 = r0 = s.bounce___66045; 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___307666); + r0 = pxsim_numops_toBoolDecr(s.tm___66050); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 11: @@ -41066,9 +42216,9 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 29; continue; } - s.tmp_8 = Sprite_left__P291488_mk(s); + s.tmp_8 = Sprite_left__P49141_mk(s); s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 412; s.pc = 37; return s.tmp_8; + s.callLocIdx = 486; s.pc = 37; return s.tmp_8; case 37: r0 = s.retval; s.tmp_7 = r0; @@ -41078,41 +42228,41 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 15; continue; } - s.tmp_10 = Sprite_left__P291489_mk(s); + s.tmp_10 = Sprite_left__P49142_mk(s); s.tmp_10.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_10.arg1 = r0; - s.callLocIdx = 415; s.pc = 38; return s.tmp_10; + s.callLocIdx = 489; s.pc = 38; return s.tmp_10; case 38: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___307661); + r0 = pxsim_numops_toBoolDecr(s.bounce___66045); if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_vx__P291456_mk(s); + s.tmp_0 = Sprite_vx__P49101_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P291455_mk(s); + s.tmp_2 = Sprite_vx__P49100_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 416; s.pc = 40; return s.tmp_2; + s.callLocIdx = 490; 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.callLocIdx = 417; s.pc = 39; return s.tmp_0; + s.callLocIdx = 491; 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__P291490_mk(s); + s.tmp_2 = Sprite_right__P49143_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 418; s.pc = 41; return s.tmp_2; + s.callLocIdx = 492; 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___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -41120,30 +42270,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.tmp_6 = Sprite_right__P291491_mk(s); + s.tmp_6 = Sprite_right__P49144_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; - s.callLocIdx = 421; s.pc = 42; return s.tmp_6; + s.callLocIdx = 495; s.pc = 42; return s.tmp_6; case 42: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___307661); + r0 = pxsim_numops_toBoolDecr(s.bounce___66045); if (!r0) { step = 16; continue; } - s.tmp_0 = Sprite_vx__P291456_mk(s); + s.tmp_0 = Sprite_vx__P49101_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P291455_mk(s); + s.tmp_2 = Sprite_vx__P49100_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 422; s.pc = 44; return s.tmp_2; + s.callLocIdx = 496; 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.callLocIdx = 423; s.pc = 43; return s.tmp_0; + s.callLocIdx = 497; s.pc = 43; return s.tmp_0; case 43: r0 = s.retval; case 16: @@ -41151,9 +42301,9 @@ switch (step) { case 18: case 19: case 20: - s.tmp_2 = Sprite_top__P291492_mk(s); + s.tmp_2 = Sprite_top__P49145_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 424; s.pc = 45; return s.tmp_2; + s.callLocIdx = 498; s.pc = 45; return s.tmp_2; case 45: r0 = s.retval; s.tmp_1 = r0; @@ -41163,41 +42313,41 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 23; continue; } - s.tmp_4 = Sprite_top__P291493_mk(s); + s.tmp_4 = Sprite_top__P49146_mk(s); s.tmp_4.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4.arg1 = r0; - s.callLocIdx = 427; s.pc = 46; return s.tmp_4; + s.callLocIdx = 501; s.pc = 46; return s.tmp_4; case 46: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___307661); + r0 = pxsim_numops_toBoolDecr(s.bounce___66045); if (!r0) { step = 21; continue; } - s.tmp_0 = Sprite_vy__P291458_mk(s); + s.tmp_0 = Sprite_vy__P49103_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P291457_mk(s); + s.tmp_2 = Sprite_vy__P49102_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 428; s.pc = 48; return s.tmp_2; + s.callLocIdx = 502; 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.callLocIdx = 429; s.pc = 47; return s.tmp_0; + s.callLocIdx = 503; 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__P291494_mk(s); + s.tmp_2 = Sprite_bottom__P49147_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 430; s.pc = 49; return s.tmp_2; + s.callLocIdx = 504; 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___291221); + r0 = pxsim_ImageMethods.height(globals.screen___48784); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -41205,30 +42355,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_6 = Sprite_bottom__P291495_mk(s); + s.tmp_6 = Sprite_bottom__P49148_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___291221); + r0 = pxsim_ImageMethods.height(globals.screen___48784); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; - s.callLocIdx = 433; s.pc = 50; return s.tmp_6; + s.callLocIdx = 507; s.pc = 50; return s.tmp_6; case 50: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___307661); + r0 = pxsim_numops_toBoolDecr(s.bounce___66045); if (!r0) { step = 24; continue; } - s.tmp_0 = Sprite_vy__P291458_mk(s); + s.tmp_0 = Sprite_vy__P49103_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P291457_mk(s); + s.tmp_2 = Sprite_vy__P49102_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 434; s.pc = 52; return s.tmp_2; + s.callLocIdx = 508; 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.callLocIdx = 435; s.pc = 51; return s.tmp_0; + s.callLocIdx = 509; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; case 24: @@ -41238,23 +42388,19 @@ switch (step) { case 28: case 29: case 30: - r0 = s.arg0.fields["updateSay"]; + r0 = s.arg0.fields["sayRenderer"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - s.tmp_1 = if_updateSay_3_mk(s); - s.tmp_1.arg0 = s.arg0; + s.tmp_1 = sprites_BaseSpriteSayRenderer__C49003_v1_4_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg2; s.tmp_1.arg2 = s.arg1; - if (!s.tmp_1.arg0.vtable.iface) { - setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "updateSay"), 3); - 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.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; } - } + s.tmp_1.arg3 = s.arg0; + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C49003_VT)) failedCast(s.tmp_1.arg0); + s.tmp_1.fn = s.tmp_1.arg0.vtable.methods.update; + s.pc = 53; return s.tmp_1; case 53: r0 = s.retval; case 31: @@ -41263,12 +42409,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P291504.info = {"start":22560,"length":1390,"line":688,"column":4,"endLine":727,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} +Sprite___update__P49158.info = {"start":21606,"length":1363,"line":714,"column":4,"endLine":750,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__update","argumentNames":["this","camera","dt"]} -function Sprite___update__P291504_mk(s) { +function Sprite___update__P49158_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P291504, depth: s.depth + 1, + parent: s, fn: Sprite___update__P49158, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41281,8 +42427,8 @@ function Sprite___update__P291504_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - bounce___307661: undefined, - tm___307666: undefined, + bounce___66045: undefined, + tm___66050: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41292,7 +42438,7 @@ function Sprite___update__P291504_mk(s) { -function Sprite_isOutOfScreen__P291502(s) { +function Sprite_isOutOfScreen__P49156(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41302,15 +42448,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___297310 = undefined; - s.oy___297318 = undefined; + s.ox___55689 = undefined; + s.oy___55697 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -41324,7 +42470,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___297310 = (s.tmp_2); + s.ox___55689 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -41338,14 +42484,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___297318 = (s.tmp_2); - s.tmp_3 = Sprite_right__P291490_mk(s); + s.oy___55697 = (s.tmp_2); + s.tmp_3 = Sprite_right__P49143_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 377; s.pc = 11; return s.tmp_3; + s.callLocIdx = 447; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___297310); + r0 = (s.tmp_2 - s.ox___55689); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -41354,13 +42500,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P291494_mk(s); + s.tmp_6 = Sprite_bottom__P49147_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 378; s.pc = 12; return s.tmp_6; + s.callLocIdx = 448; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___297318); + r0 = (s.tmp_5 - s.oy___55697); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -41371,15 +42517,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P291488_mk(s); + s.tmp_10 = Sprite_left__P49141_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 379; s.pc = 13; return s.tmp_10; + s.callLocIdx = 449; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___297310); + r0 = (s.tmp_9 - s.ox___55689); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___291221); + r0 = pxsim_ImageMethods.width(globals.screen___48784); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -41390,15 +42536,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P291492_mk(s); + s.tmp_15 = Sprite_top__P49145_mk(s); s.tmp_15.arg0 = s.arg0; - s.callLocIdx = 380; s.pc = 14; return s.tmp_15; + s.callLocIdx = 450; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___297318); + r0 = (s.tmp_14 - s.oy___55697); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___291221); + r0 = pxsim_ImageMethods.height(globals.screen___48784); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -41408,12 +42554,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P291502.info = {"start":20783,"length":358,"line":642,"column":4,"endLine":646,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} +Sprite_isOutOfScreen__P49156.info = {"start":18931,"length":358,"line":640,"column":4,"endLine":644,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"isOutOfScreen","argumentNames":["this","camera"]} -function Sprite_isOutOfScreen__P291502_mk(s) { +function Sprite_isOutOfScreen__P49156_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P291502, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P49156, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41433,8 +42579,8 @@ function Sprite_isOutOfScreen__P291502_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___297310: undefined, - oy___297318: undefined, + ox___55689: undefined, + oy___55697: undefined, arg0: undefined, arg1: undefined, } } @@ -41443,7 +42589,7 @@ function Sprite_isOutOfScreen__P291502_mk(s) { -function Sprite_bottom__P291495(s) { +function Sprite_bottom__P49148(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41459,29 +42605,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P291493_mk(s); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P49146_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); + s.tmp_3 = Sprite_height__P49140_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 431; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 302; s.pc = 1; return s.tmp_0; + s.callLocIdx = 432; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_bottom__P291495.info = {"start":10518,"length":73,"line":380,"column":4,"endLine":382,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} +Sprite_bottom__P49148.info = {"start":13305,"length":73,"line":473,"column":4,"endLine":475,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"bottom","argumentNames":["this","value"]} -function Sprite_bottom__P291495_mk(s) { +function Sprite_bottom__P49148_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P291495, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P49148, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41495,7 +42643,7 @@ function Sprite_bottom__P291495_mk(s) { -function Sprite_right__P291491(s) { +function Sprite_right__P49144(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41511,29 +42659,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P291489_mk(s); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P49142_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_3 = Sprite_width__P49139_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 423; s.pc = 2; return s.tmp_3; + case 2: + r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 294; s.pc = 1; return s.tmp_0; + s.callLocIdx = 424; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_right__P291491.info = {"start":9711,"length":71,"line":350,"column":4,"endLine":352,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} +Sprite_right__P49144.info = {"start":12468,"length":71,"line":443,"column":4,"endLine":445,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"right","argumentNames":["this","value"]} -function Sprite_right__P291491_mk(s) { +function Sprite_right__P49144_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P291491, depth: s.depth + 1, + parent: s, fn: Sprite_right__P49144, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41547,7 +42697,7 @@ function Sprite_right__P291491_mk(s) { -function Sprite_width__P291486(s) { +function sprites_BaseSpriteSayRenderer_update__P49006(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41559,33 +42709,35 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C49003_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_width__P291486.info = {"start":8777,"length":52,"line":315,"column":4,"endLine":317,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"width","argumentNames":["this"]} -Sprite_width__P291486.isGetter = true; +sprites_BaseSpriteSayRenderer_update__P49006.info = {"start":250,"length":68,"line":9,"column":8,"endLine":11,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"update","argumentNames":["this","dt","camera","owner"]} -function Sprite_width__P291486_mk(s) { +function sprites_BaseSpriteSayRenderer_update__P49006_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P291486, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_update__P49006, 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_data__P291468(s) { +function Sprite_data__P49119(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41601,18 +42753,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P291468.info = {"start":4575,"length":56,"line":171,"column":4,"endLine":173,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} +Sprite_data__P49119.info = {"start":6536,"length":56,"line":241,"column":4,"endLine":243,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this","value"]} -function Sprite_data__P291468_mk(s) { +function Sprite_data__P49119_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P291468, depth: s.depth + 1, + parent: s, fn: Sprite_data__P49119, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41622,7 +42774,7 @@ function Sprite_data__P291468_mk(s) { -function Sprite_data__P291467(s) { +function Sprite_data__P49118(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41637,7 +42789,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -41656,13 +42808,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_data__P291467.info = {"start":4477,"length":92,"line":166,"column":4,"endLine":169,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} -Sprite_data__P291467.isGetter = true; +Sprite_data__P49118.info = {"start":6438,"length":92,"line":236,"column":4,"endLine":239,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"data","argumentNames":["this"]} +Sprite_data__P49118.isGetter = true; -function Sprite_data__P291467_mk(s) { +function Sprite_data__P49118_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P291467, depth: s.depth + 1, + parent: s, fn: Sprite_data__P49118, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41676,7 +42828,7 @@ function Sprite_data__P291467_mk(s) { -function sprites_BaseSprite___update__P291285(s) { +function sprites_BaseSprite___update__P48851(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41693,17 +42845,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C291277_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C48843_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P291285.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__P48851.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__P291285_mk(s) { +function sprites_BaseSprite___update__P48851_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P291285, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P48851, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41714,7 +42866,7 @@ function sprites_BaseSprite___update__P291285_mk(s) { -function sprites_BaseSprite___draw__P291283(s) { +function sprites_BaseSprite___draw__P48849(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41730,10 +42882,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C291277_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C291277_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C48843_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C48843_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C291277_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C48843_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: @@ -41741,10 +42893,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C291277_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C48843_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C291277_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C48843_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: @@ -41755,12 +42907,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P291283.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__P48849.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__P291283_mk(s) { +function sprites_BaseSprite___draw__P48849_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P291283, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P48849, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41773,7 +42925,7 @@ function sprites_BaseSprite___draw__P291283_mk(s) { -function sprites_BaseSprite___drawCore__P291284(s) { +function sprites_BaseSprite___drawCore__P48850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41789,17 +42941,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C291277_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C48843_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P291284.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__P48850.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__P291284_mk(s) { +function sprites_BaseSprite___drawCore__P48850_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P291284, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P48850, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -41809,7 +42961,7 @@ function sprites_BaseSprite___drawCore__P291284_mk(s) { -function sprites_BaseSprite___visible__P291280(s) { +function sprites_BaseSprite___visible__P48846(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41824,17 +42976,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C291277_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C48843_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P291280.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__P48846.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__P291280_mk(s) { +function sprites_BaseSprite___visible__P48846_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P291280, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P48846, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41843,7 +42995,7 @@ function sprites_BaseSprite___visible__P291280_mk(s) { -function controller_AnyButton_isPressed__P293241(s) { +function controller_AnyButton_isPressed__P51151(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41853,36 +43005,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___307763 = undefined; - s.b___307767 = undefined; - s.unnamed22616___U2 = undefined; - s.unnamed22617___U3 = undefined; + s.ctrl___66162 = undefined; + s.b___66166 = undefined; + s.unnamed862___U2 = undefined; + s.unnamed863___U3 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C293239_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P291336_mk(s); - s.callLocIdx = 157; s.pc = 6; return s.tmp_0; + if (!checkSubtype(r0, controller_AnyButton__C51143_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P48877_mk(s); + s.callLocIdx = 196; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___307763 = (r0); - s.b___307767 = (undefined); - r0 = s.ctrl___307763.fields["buttons"]; - s.unnamed22616___U2 = (r0); - s.unnamed22617___U3 = (0); + s.ctrl___66162 = (r0); + s.b___66166 = (undefined); + r0 = s.ctrl___66162.fields["buttons"]; + s.unnamed862___U2 = (r0); + s.unnamed863___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed22617___U3; - r0 = pxsim_Array__length(s.unnamed22616___U2); + s.tmp_0 = r0 = s.unnamed863___U3; + r0 = pxsim_Array__length(s.unnamed862___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed22616___U2, s.unnamed22617___U3); - s.b___307767 = (r0); - s.tmp_3 = controller_Button__C291322_v0_1_mk(s); - s.tmp_3.arg0 = s.b___307767; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C291322_VT)) failedCast(s.tmp_3.arg0); + r0 = pxsim_Array__getAt(s.unnamed862___U2, s.unnamed863___U3); + s.b___66166 = (r0); + s.tmp_3 = controller_Button__C48934_v0_1_mk(s); + s.tmp_3.arg0 = s.b___66166; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C48934_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: @@ -41894,31 +43046,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed22617___U3 + 1); - s.unnamed22617___U3 = (r0); + r0 = (s.unnamed863___U3 + 1); + s.unnamed863___U3 = (r0); { step = 1; continue; } case 4: - s.unnamed22616___U2 = (undefined); + s.unnamed862___U2 = (undefined); r0 = false; case 5: return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P293241.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__P51151.info = {"start":13715,"length":202,"line":416,"column":8,"endLine":423,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_AnyButton_isPressed__P293241_mk(s) { +function controller_AnyButton_isPressed__P51151_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P293241, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P51151, depth: s.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___307763: undefined, - b___307767: undefined, - unnamed22616___U2: undefined, - unnamed22617___U3: undefined, + ctrl___66162: undefined, + b___66166: undefined, + unnamed862___U2: undefined, + unnamed863___U3: undefined, arg0: undefined, } } @@ -41926,7 +43078,7 @@ function controller_AnyButton_isPressed__P293241_mk(s) { -function controller_Button_toString__P291327(s) { +function controller_Button_toString__P48939(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41941,7 +43093,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C291322_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C48934_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -41981,12 +43133,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P291327.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__P48939.info = {"start":1894,"length":100,"line":73,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"toString","argumentNames":["this"]} -function controller_Button_toString__P291327_mk(s) { +function controller_Button_toString__P48939_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P291327, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P48939, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42002,7 +43154,7 @@ function controller_Button_toString__P291327_mk(s) { -function sprites_StaticObstacle_width__P291584(s) { +function sprites_BaseSpriteSayRenderer_constructor__P49004(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42014,33 +43166,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, sprites_StaticObstacle__C291574_VT)) failedCast(r0); - r0 = s.arg0.fields["image"]; - s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_0); - return leaveAccessor(s, r0) + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C49003_VT)) failedCast(r0); + r0 = (s.arg0).fields["text"] = (s.arg1); + r0 = (s.arg0).fields["fgColor"] = (s.arg2); + r0 = (s.arg0).fields["bgColor"] = (s.arg3); + r0 = undefined; + return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_width__P291584.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__P291584.isGetter = true; +sprites_BaseSpriteSayRenderer_constructor__P49004.info = {"start":69,"length":92,"line":2,"column":8,"endLine":3,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"inline","argumentNames":["this","text","fgColor","bgColor"]} -function sprites_StaticObstacle_width__P291584_mk(s) { +function sprites_BaseSpriteSayRenderer_constructor__P49004_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_width__P291584, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_constructor__P49004, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function sprites_StaticObstacle_height__P291583(s) { +function sprites_StaticObstacle_width__P49242(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42055,20 +43212,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C291574_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C49232_VT)) failedCast(r0); r0 = s.arg0.fields["image"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_0); + r0 = pxsim_ImageMethods.width(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_height__P291583.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__P291583.isGetter = true; +sprites_StaticObstacle_width__P49242.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__P49242.isGetter = true; -function sprites_StaticObstacle_height__P291583_mk(s) { +function sprites_StaticObstacle_width__P49242_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_height__P291583, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_width__P49242, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -42078,7 +43235,7 @@ function sprites_StaticObstacle_height__P291583_mk(s) { -function sprites_StaticObstacle_y__P291582(s) { +function sprites_StaticObstacle_height__P49241(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42093,31 +43250,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C291574_VT)) failedCast(r0); - r0 = s.arg0.fields["top"]; - s.tmp_0 = r0; + if (!checkSubtype(r0, sprites_StaticObstacle__C49232_VT)) failedCast(r0); r0 = s.arg0.fields["image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); - s.tmp_2 = r0; - r0 = (s.tmp_2 >> 1); - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_y__P291582.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__P291582.isGetter = true; +sprites_StaticObstacle_height__P49241.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__P49241.isGetter = true; -function sprites_StaticObstacle_y__P291582_mk(s) { +function sprites_StaticObstacle_height__P49241_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_y__P291582, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_height__P49241, depth: s.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, } } @@ -42125,7 +43273,7 @@ function sprites_StaticObstacle_y__P291582_mk(s) { -function sprites_StaticObstacle_x__P291581(s) { +function sprites_StaticObstacle_y__P49240(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42140,12 +43288,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C291574_VT)) failedCast(r0); - r0 = s.arg0.fields["left"]; + if (!checkSubtype(r0, sprites_StaticObstacle__C49232_VT)) failedCast(r0); + r0 = s.arg0.fields["top"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); + r0 = pxsim_ImageMethods.height(s.tmp_3); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -42153,13 +43301,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_x__P291581.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__P291581.isGetter = true; +sprites_StaticObstacle_y__P49240.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__P49240.isGetter = true; -function sprites_StaticObstacle_x__P291581_mk(s) { +function sprites_StaticObstacle_y__P49240_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_x__P291581, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_y__P49240, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42172,59 +43320,7 @@ function sprites_StaticObstacle_x__P291581_mk(s) { -function scene_Renderable___drawCore__P291804(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (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_Renderable__C291801_VT)) failedCast(r0); - s.tmp_0 = if_handler_3_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___291221; - 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.callLocIdx = 889; s.pc = 1; return s.tmp_0; - } else { - s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; - if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 889; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 889; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 889; s.pc = 1; return s.tmp_0; } - } - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -scene_Renderable___drawCore__P291804.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__P291804_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Renderable___drawCore__P291804, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function scene_Renderable___visible__P291803(s) { +function sprites_StaticObstacle_x__P49239(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42239,31 +43335,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C291801_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.callLocIdx = 888; 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.callLocIdx = 888; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 888; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 888; s.pc = 1; return s.tmp_0; } - } - case 1: - r0 = s.retval; - return leave(s, r0) + if (!checkSubtype(r0, sprites_StaticObstacle__C49232_VT)) failedCast(r0); + r0 = s.arg0.fields["left"]; + s.tmp_0 = r0; + r0 = s.arg0.fields["image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_2 = r0; + r0 = (s.tmp_2 >> 1); + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -scene_Renderable___visible__P291803.info = {"start":305,"length":75,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__visible","argumentNames":["this"]} +sprites_StaticObstacle_x__P49239.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__P49239.isGetter = true; -function scene_Renderable___visible__P291803_mk(s) { +function sprites_StaticObstacle_x__P49239_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P291803, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_x__P49239, depth: s.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, } } @@ -42271,7 +43367,7 @@ function scene_Renderable___visible__P291803_mk(s) { -function scene_Camera_top__P291796(s) { +function scene_Camera_top__P49480(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42286,18 +43382,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C291783_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C49467_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_top__P291796.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__P291796.isGetter = true; +scene_Camera_top__P49480.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__P49480.isGetter = true; -function scene_Camera_top__P291796_mk(s) { +function scene_Camera_top__P49480_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_top__P291796, depth: s.depth + 1, + parent: s, fn: scene_Camera_top__P49480, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -42306,7 +43402,7 @@ function scene_Camera_top__P291796_mk(s) { -function scene_Camera_left__P291794(s) { +function scene_Camera_left__P49478(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42321,18 +43417,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C291783_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C49467_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_left__P291794.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__P291794.isGetter = true; +scene_Camera_left__P49478.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__P49478.isGetter = true; -function scene_Camera_left__P291794_mk(s) { +function scene_Camera_left__P49478_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_left__P291794, depth: s.depth + 1, + parent: s, fn: scene_Camera_left__P49478, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -42341,7 +43437,7 @@ function scene_Camera_left__P291794_mk(s) { -function particles_ShapeFactory_drawParticle__P292166(s) { +function particles_ShapeFactory_drawParticle__P49852(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42351,7 +43447,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___307817 = undefined; + s.pImage___66209 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -42360,23 +43456,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C292163_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P292014_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C49849_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P49700_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 1231; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1338; 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___307817 = (r0); + s.pImage___66209 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___307817, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___291221; - s.tmp_1 = r0 = s.pImage___307817; + r0 = pxsim_ImageMethods.replace(s.pImage___66209, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___48784; + s.tmp_1 = r0 = s.pImage___66209; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -42398,12 +43494,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P292166.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__P49852.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__P292166_mk(s) { +function particles_ShapeFactory_drawParticle__P49852_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P292166, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P49852, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42415,7 +43511,7 @@ function particles_ShapeFactory_drawParticle__P292166_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___307817: undefined, + pImage___66209: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -42426,7 +43522,7 @@ function particles_ShapeFactory_drawParticle__P292166_mk(s) { -function Math_FastRandom_pickRandom__P292014(s) { +function Math_FastRandom_pickRandom__P49700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42442,7 +43538,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C292009_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C49695_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -42465,14 +43561,14 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P292013_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P49699_mk(s); s.tmp_6.arg0 = s.arg0; s.tmp_6.arg1 = 0; r0 = pxsim_Array__length(s.arg1); s.tmp_7 = r0; r0 = (s.tmp_7 - 1); s.tmp_6.arg2 = r0; - s.callLocIdx = 959; s.pc = 6; return s.tmp_6; + s.callLocIdx = 1066; s.pc = 6; return s.tmp_6; case 6: r0 = s.retval; s.tmp_5 = r0; @@ -42481,12 +43577,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P292014.info = {"start":2358,"length":192,"line":70,"column":8,"endLine":75,"endColumn":9,"fileName":"pxt_modules/game/mathUtil.ts","functionName":"pickRandom","argumentNames":["this","list"]} +Math_FastRandom_pickRandom__P49700.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__P292014_mk(s) { +function Math_FastRandom_pickRandom__P49700_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P292014, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P49700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42504,7 +43600,7 @@ function Math_FastRandom_pickRandom__P292014_mk(s) { -function particles_AreaFactory_drawParticle__P292154(s) { +function particles_AreaFactory_drawParticle__P49840(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42514,7 +43610,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___307876 = undefined; + s.col___66275 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -42523,7 +43619,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C292147_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AreaFactory__C49833_VT)) failedCast(r0); r0 = s.arg1.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 500); @@ -42550,8 +43646,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___307876 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___291221; + s.col___66275 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___48784; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -42560,17 +43656,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___307876); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___66275); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_drawParticle__P292154.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__P49840.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__P292154_mk(s) { +function particles_AreaFactory_drawParticle__P49840_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_drawParticle__P292154, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P49840, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42578,7 +43674,7 @@ function particles_AreaFactory_drawParticle__P292154_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___307876: undefined, + col___66275: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -42589,7 +43685,7 @@ function particles_AreaFactory_drawParticle__P292154_mk(s) { -function particles_SprayFactory_drawParticle__P292144(s) { +function particles_SprayFactory_drawParticle__P49830(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42607,8 +43703,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C292141_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___291221; + if (!checkSubtype(r0, particles_SprayFactory__C49827_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___48784; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -42622,12 +43718,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P292144.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__P49830.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__P292144_mk(s) { +function particles_SprayFactory_drawParticle__P49830_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P292144, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P49830, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42644,7 +43740,204 @@ function particles_SprayFactory_drawParticle__P292144_mk(s) { -function Sprite___drawCore__P291503(s) { +function scene_Renderable___drawCore__P49488(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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_Renderable__C49485_VT)) failedCast(r0); + s.tmp_0 = if_handler_3_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = globals.screen___48784; + 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.callLocIdx = 998; s.pc = 1; return s.tmp_0; + } else { + s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["handler"]; + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 3); s.callLocIdx = 998; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 998; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 998; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_Renderable___drawCore__P49488.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__P49488_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Renderable___drawCore__P49488, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_Renderable___visible__P49487(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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_Renderable__C49485_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.callLocIdx = 997; 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.callLocIdx = 997; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 997; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 997; s.pc = 1; return s.tmp_0; } + } + case 1: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +scene_Renderable___visible__P49487.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__P49487_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Renderable___visible__P49487, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function tiles_Location_top__P49387(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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_Location__C49379_VT)) failedCast(r0); + r0 = s.arg0.fields["_row"]; + s.tmp_0 = r0; + s.tmp_3 = tiles_Location_tileMap__P49381_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 873; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_scale"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 << s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_Location_top__P49387.info = {"start":1791,"length":83,"line":68,"column":8,"endLine":70,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"top","argumentNames":["this"]} +tiles_Location_top__P49387.isGetter = true; + +function tiles_Location_top__P49387_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_top__P49387, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function tiles_Location_left__P49386(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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_Location__C49379_VT)) failedCast(r0); + r0 = s.arg0.fields["_col"]; + s.tmp_0 = r0; + s.tmp_3 = tiles_Location_tileMap__P49381_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 871; s.pc = 1; return s.tmp_3; + case 1: + r0 = s.retval; + s.tmp_2 = r0; + r0 = s.tmp_2.fields["_scale"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 << s.tmp_1); + return leaveAccessor(s, r0) + default: oops() +} } } +tiles_Location_left__P49386.info = {"start":1579,"length":84,"line":61,"column":8,"endLine":63,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"left","argumentNames":["this"]} +tiles_Location_left__P49386.isGetter = true; + +function tiles_Location_left__P49386_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_left__P49386, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, +} } + + + + + +function Sprite___drawCore__P49157(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42654,381 +43947,489 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___307913 = undefined; - s.oy___307921 = undefined; - s.l___307929 = undefined; - s.t___307935 = undefined; - s.font___307953 = undefined; - s.tx___307957 = undefined; - s.ty___307959 = undefined; + s.ox___66371 = undefined; + s.oy___66379 = undefined; + s.l___66387 = undefined; + s.t___66393 = undefined; + s.font___66428 = undefined; + s.tx___66432 = undefined; + s.ty___66434 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); - s.tmp_1 = Sprite_isOutOfScreen__P291502_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 381; s.pc = 20; return s.tmp_1; - case 20: - r0 = s.retval; + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); + r0 = s.arg0.fields["sayRenderer"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 5; continue; } + r0 = s.arg0.fields["sayEndTime"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 !== undefined); + s.tmp_1 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_1); + if (!r0) { step = 3; continue; } + r0 = pxsim.control.millis(); + s.tmp_4 = r0; + r0 = s.arg0.fields["sayEndTime"]; + 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 = 1; continue; } - { step = 19; continue; } + s.tmp_6 = sprites_BaseSpriteSayRenderer__C49003_v0_4_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = globals.screen___48784; + s.tmp_6.arg2 = s.arg1; + s.tmp_6.arg3 = s.arg0; + if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C49003_VT)) failedCast(s.tmp_6.arg0); + s.tmp_6.fn = s.tmp_6.arg0.vtable.methods.draw; + s.pc = 28; return s.tmp_6; + case 28: + r0 = s.retval; + { step = 2; continue; } case 1: + s.tmp_0 = sprites_BaseSpriteSayRenderer__C49003_v2_1_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C49003_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.destroy; + s.pc = 29; return s.tmp_0; + case 29: + r0 = s.retval; + r0 = (s.arg0).fields["sayRenderer"] = (undefined); + r0 = (s.arg0).fields["sayEndTime"] = (undefined); case 2: + { step = 4; continue; } + case 3: + s.tmp_0 = sprites_BaseSpriteSayRenderer__C49003_v0_4_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.screen___48784; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C49003_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.draw; + s.pc = 30; return s.tmp_0; + case 30: + r0 = s.retval; + case 4: + case 5: + case 6: + s.tmp_1 = Sprite_isOutOfScreen__P49156_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 451; s.pc = 31; return s.tmp_1; + case 31: + r0 = s.retval; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 7; continue; } + { step = 27; continue; } + case 7: + case 8: r0 = s.arg0.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 512); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 3; continue; } + if (!r0) { step = 9; continue; } r0 = 0; - { step = 4; continue; } - case 3: + { step = 10; continue; } + case 9: r0 = s.arg1.fields["drawOffsetX"]; - case 4: + case 10: // jmp value (already in r0) s.tmp_4 = r0; - s.ox___307913 = (s.tmp_4); + s.ox___66371 = (s.tmp_4); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 5; continue; } + if (!r0) { step = 11; continue; } r0 = 0; - { step = 6; continue; } - case 5: + { step = 12; continue; } + case 11: r0 = s.arg1.fields["drawOffsetY"]; - case 6: + case 12: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___307921 = (s.tmp_2); - s.tmp_2 = Sprite_left__P291488_mk(s); + s.oy___66379 = (s.tmp_2); + s.tmp_2 = Sprite_left__P49141_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 382; s.pc = 21; return s.tmp_2; - case 21: + s.callLocIdx = 452; s.pc = 32; return s.tmp_2; + case 32: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___307913); + r0 = (s.tmp_1 - s.ox___66371); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.l___307929 = (r0); - s.tmp_2 = Sprite_top__P291492_mk(s); + s.l___66387 = (r0); + s.tmp_2 = Sprite_top__P49145_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 383; s.pc = 22; return s.tmp_2; - case 22: + s.callLocIdx = 453; s.pc = 33; return s.tmp_2; + case 33: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.oy___307921); + r0 = (s.tmp_1 - s.oy___66379); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.t___307935 = (r0); - r0 = s.arg0.fields["_image"]; + s.t___66393 = (r0); + s.tmp_3 = Sprite_isScaled__P51170_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 454; s.pc = 34; return s.tmp_3; + case 34: + 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_ImageMethods.drawTransparentImage(globals.screen___291221, s.tmp_0, s.l___307929, s.t___307935); + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 13; continue; } + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___48784, s.tmp_4, s.l___66387, s.t___66393); + { step = 14; continue; } + case 13: + s.tmp_0 = helpers_imageBlit__P48707_mk(s); + s.tmp_0.arg0 = globals.screen___48784; + s.tmp_0.arg1 = s.l___66387; + s.tmp_0.arg2 = s.t___66393; + s.tmp_1 = Sprite_width__P49139_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 455; s.pc = 36; return s.tmp_1; + case 36: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_2 = Sprite_height__P49140_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 456; s.pc = 37; return s.tmp_2; + case 37: + r0 = s.retval; + s.tmp_0.arg4 = r0; + r0 = s.arg0.fields["_image"]; + s.tmp_0.arg5 = r0; + s.tmp_0.arg6 = 0; + s.tmp_0.arg7 = 0; + r0 = s.arg0.fields["_image"]; + s.tmp_3 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_3); + s.tmp_0.arg8 = r0; + r0 = s.arg0.fields["_image"]; + s.tmp_4 = r0; + r0 = pxsim_ImageMethods.height(s.tmp_4); + s.tmp_0.arg9 = r0; + s.tmp_0.arg10 = true; + s.tmp_0.arg11 = false; + s.callLocIdx = 457; s.pc = 35; return s.tmp_0; + case 35: + r0 = s.retval; + case 14: 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___307953 = (globals.font5___291169); - s.tx___307957 = (s.l___307929); - s.tmp_1 = r0 = s.t___307935; - r0 = s.arg0.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); + if (!r0) { step = 23; continue; } + s.font___66428 = (globals.font5___48732); + s.tx___66432 = (s.l___66387); + s.tmp_1 = r0 = s.t___66393; + s.tmp_3 = Sprite_height__P49140_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 458; s.pc = 38; return s.tmp_3; + case 38: + r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 + 2); - s.ty___307959 = (r0); - s.tmp_0 = helpers_imagePrint__P291179_mk(s); - s.tmp_0.arg0 = globals.screen___291221; + s.ty___66434 = (r0); + s.tmp_0 = helpers_imagePrint__P48742_mk(s); + s.tmp_0.arg0 = globals.screen___48784; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P291451_mk(s); + s.tmp_7 = Sprite_x__P49096_mk(s); s.tmp_7.arg0 = s.arg0; - s.callLocIdx = 385; s.pc = 24; return s.tmp_7; - case 24: + s.callLocIdx = 459; s.pc = 40; return s.tmp_7; + case 40: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_6 >> 0); s.tmp_5 = r0; if ((s.tmp_5) && (s.tmp_5).vtable) { - setupResume(s, 25); + setupResume(s, 41); pxsim_String__stringConv(s.tmp_5); checkResumeConsumed(); return; } else { s.retval = (s.tmp_5) + ""; } - case 25: + case 41: 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_11 = Sprite_y__P291453_mk(s); + s.tmp_11 = Sprite_y__P49098_mk(s); s.tmp_11.arg0 = s.arg0; - s.callLocIdx = 386; s.pc = 26; return s.tmp_11; - case 26: + s.callLocIdx = 460; s.pc = 42; return s.tmp_11; + case 42: r0 = s.retval; s.tmp_10 = r0; r0 = (s.tmp_10 >> 0); s.tmp_9 = r0; if ((s.tmp_9) && (s.tmp_9).vtable) { - setupResume(s, 27); + setupResume(s, 43); pxsim_String__stringConv(s.tmp_9); checkResumeConsumed(); return; } else { s.retval = (s.tmp_9) + ""; } - case 27: + case 43: r0 = s.retval; 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___307957; - s.tmp_0.arg3 = s.ty___307959; + s.tmp_0.arg2 = s.tx___66432; + s.tmp_0.arg3 = s.ty___66434; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___307953; + s.tmp_0.arg5 = s.font___66428; s.tmp_0.arg6 = undefined; - s.callLocIdx = 387; s.pc = 23; return s.tmp_0; - case 23: + s.callLocIdx = 461; s.pc = 39; return s.tmp_0; + case 39: r0 = s.retval; - s.tmp_0 = r0 = s.tx___307957; + s.tmp_0 = r0 = s.tx___66432; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___307953; + s.tmp_2.arg0 = s.font___66428; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "charWidth"); } else { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["charWidth"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["charWidth"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 388; s.pc = 28; return s.tmp_2; } + else { s.callLocIdx = 462; s.pc = 44; return s.tmp_2; } } - case 28: + case 44: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.tx___307957 = (r0); - s.tmp_1 = Sprite_vx__P291455_mk(s); + s.tx___66432 = (r0); + s.tmp_1 = Sprite_vx__P49100_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 389; s.pc = 29; return s.tmp_1; - case 29: + s.callLocIdx = 463; s.pc = 45; return s.tmp_1; + case 45: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 7; continue; } + if (!r0) { step = 15; continue; } r0 = s.tmp_0; - { step = 8; continue; } - case 7: - s.tmp_2 = Sprite_vy__P291457_mk(s); + { step = 16; continue; } + case 15: + s.tmp_2 = Sprite_vy__P49102_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 390; s.pc = 30; return s.tmp_2; - case 30: + s.callLocIdx = 464; s.pc = 46; return s.tmp_2; + case 46: r0 = s.retval; - case 8: + case 16: // jmp value (already in r0) s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 9; continue; } - s.tmp_4 = r0 = s.ty___307959; + if (!r0) { step = 17; continue; } + s.tmp_4 = r0 = s.ty___66434; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___307953; + s.tmp_7.arg0 = s.font___66428; 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 = 391; s.pc = 31; return s.tmp_7; } + else { s.callLocIdx = 465; s.pc = 47; return s.tmp_7; } } - case 31: + case 47: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___307959 = (r0); - s.tmp_0 = helpers_imagePrint__P291179_mk(s); - s.tmp_0.arg0 = globals.screen___291221; - s.tmp_6 = Sprite_vx__P291455_mk(s); + s.ty___66434 = (r0); + s.tmp_0 = helpers_imagePrint__P48742_mk(s); + s.tmp_0.arg0 = globals.screen___48784; + s.tmp_6 = Sprite_vx__P49100_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 392; s.pc = 33; return s.tmp_6; - case 33: + s.callLocIdx = 466; s.pc = 49; return s.tmp_6; + case 49: r0 = s.retval; s.tmp_5 = r0; r0 = (s.tmp_5 >> 0); s.tmp_4 = r0; if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 34); + setupResume(s, 50); pxsim_String__stringConv(s.tmp_4); checkResumeConsumed(); return; } else { s.retval = (s.tmp_4) + ""; } - case 34: + case 50: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_String__concat("v", s.tmp_3); s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_vy__P291457_mk(s); + s.tmp_10 = Sprite_vy__P49102_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 393; s.pc = 35; return s.tmp_10; - case 35: + s.callLocIdx = 467; s.pc = 51; return s.tmp_10; + case 51: r0 = s.retval; s.tmp_9 = r0; r0 = (s.tmp_9 >> 0); s.tmp_8 = r0; if ((s.tmp_8) && (s.tmp_8).vtable) { - setupResume(s, 36); + setupResume(s, 52); pxsim_String__stringConv(s.tmp_8); checkResumeConsumed(); return; } else { s.retval = (s.tmp_8) + ""; } - case 36: + case 52: r0 = s.retval; 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___307957; - s.tmp_0.arg3 = s.ty___307959; + s.tmp_0.arg2 = s.tx___66432; + s.tmp_0.arg3 = s.ty___66434; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___307953; + s.tmp_0.arg5 = s.font___66428; s.tmp_0.arg6 = undefined; - s.callLocIdx = 394; s.pc = 32; return s.tmp_0; - case 32: + s.callLocIdx = 468; s.pc = 48; return s.tmp_0; + case 48: r0 = s.retval; - case 9: - case 10: - s.tmp_1 = Sprite_ax__P291459_mk(s); + case 17: + case 18: + s.tmp_1 = Sprite_ax__P49104_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 395; s.pc = 37; return s.tmp_1; - case 37: + s.callLocIdx = 469; s.pc = 53; return s.tmp_1; + case 53: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 11; continue; } + if (!r0) { step = 19; continue; } r0 = s.tmp_0; - { step = 12; continue; } - case 11: - s.tmp_2 = Sprite_ay__P291461_mk(s); + { step = 20; continue; } + case 19: + s.tmp_2 = Sprite_ay__P49106_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 396; s.pc = 38; return s.tmp_2; - case 38: + s.callLocIdx = 470; s.pc = 54; return s.tmp_2; + case 54: r0 = s.retval; - case 12: + case 20: // 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.ty___307959; + if (!r0) { step = 21; continue; } + s.tmp_4 = r0 = s.ty___66434; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___307953; + s.tmp_7.arg0 = s.font___66428; 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 = 397; s.pc = 39; return s.tmp_7; } + else { s.callLocIdx = 471; s.pc = 55; return s.tmp_7; } } - case 39: + case 55: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_6 + 2); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); - s.ty___307959 = (r0); - s.tmp_0 = helpers_imagePrint__P291179_mk(s); - s.tmp_0.arg0 = globals.screen___291221; - s.tmp_6 = Sprite_ax__P291459_mk(s); + s.ty___66434 = (r0); + s.tmp_0 = helpers_imagePrint__P48742_mk(s); + s.tmp_0.arg0 = globals.screen___48784; + s.tmp_6 = Sprite_ax__P49104_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 398; s.pc = 41; return s.tmp_6; - case 41: + s.callLocIdx = 472; s.pc = 57; return s.tmp_6; + case 57: r0 = s.retval; s.tmp_5 = r0; r0 = (s.tmp_5 >> 0); s.tmp_4 = r0; if ((s.tmp_4) && (s.tmp_4).vtable) { - setupResume(s, 42); + setupResume(s, 58); pxsim_String__stringConv(s.tmp_4); checkResumeConsumed(); return; } else { s.retval = (s.tmp_4) + ""; } - case 42: + case 58: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_String__concat("a", s.tmp_3); s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_10 = Sprite_ay__P291461_mk(s); + s.tmp_10 = Sprite_ay__P49106_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 399; s.pc = 43; return s.tmp_10; - case 43: + s.callLocIdx = 473; s.pc = 59; return s.tmp_10; + case 59: r0 = s.retval; s.tmp_9 = r0; r0 = (s.tmp_9 >> 0); s.tmp_8 = r0; if ((s.tmp_8) && (s.tmp_8).vtable) { - setupResume(s, 44); + setupResume(s, 60); pxsim_String__stringConv(s.tmp_8); checkResumeConsumed(); return; } else { s.retval = (s.tmp_8) + ""; } - case 44: + case 60: r0 = s.retval; 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___307957; - s.tmp_0.arg3 = s.ty___307959; + s.tmp_0.arg2 = s.tx___66432; + s.tmp_0.arg3 = s.ty___66434; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___307953; + s.tmp_0.arg5 = s.font___66428; s.tmp_0.arg6 = undefined; - s.callLocIdx = 400; s.pc = 40; return s.tmp_0; - case 40: + s.callLocIdx = 474; s.pc = 56; return s.tmp_0; + case 56: r0 = s.retval; - case 13: - case 14: - case 15: - case 16: - r0 = pxsim_numops_toBoolDecr(globals.debug___291951); - if (!r0) { step = 17; continue; } - s.tmp_0 = helpers_imageDrawRect__P291150_mk(s); - s.tmp_0.arg0 = globals.screen___291221; - s.tmp_3 = game_Hitbox_left__P291385_mk(s); + case 21: + case 22: + case 23: + case 24: + r0 = pxsim_numops_toBoolDecr(globals.debug___49636); + if (!r0) { step = 25; continue; } + s.tmp_0 = helpers_imageDrawRect__P48713_mk(s); + s.tmp_0.arg0 = globals.screen___48784; + s.tmp_3 = game_Hitbox_left__P48961_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 401; s.pc = 46; return s.tmp_3; - case 46: + s.callLocIdx = 475; s.pc = 62; return s.tmp_3; + case 62: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_2 + 128); s.tmp_4 = r0; r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___307913); + r0 = (s.tmp_1 - s.ox___66371); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P291386_mk(s); + s.tmp_7 = game_Hitbox_top__P48962_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; - s.callLocIdx = 403; s.pc = 47; return s.tmp_7; - case 47: + s.callLocIdx = 477; s.pc = 63; return s.tmp_7; + case 63: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_6 + 128); s.tmp_8 = r0; r0 = (s.tmp_8 >> 8); s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___307921); + r0 = (s.tmp_5 - s.oy___66379); s.tmp_0.arg2 = r0; r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; @@ -43045,22 +44446,22 @@ switch (step) { r0 = (s.tmp_12 >> 8); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 407; s.pc = 45; return s.tmp_0; - case 45: + s.callLocIdx = 481; s.pc = 61; return s.tmp_0; + case 61: r0 = s.retval; - case 17: - case 18: - case 19: + case 25: + case 26: + case 27: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite___drawCore__P291503.info = {"start":21147,"length":1407,"line":648,"column":4,"endLine":686,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +Sprite___drawCore__P49157.info = {"start":19295,"length":2305,"line":646,"column":4,"endLine":712,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__drawCore","argumentNames":["this","camera"]} -function Sprite___drawCore__P291503_mk(s) { +function Sprite___drawCore__P49157_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P291503, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P49157, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43075,22 +44476,96 @@ function Sprite___drawCore__P291503_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - ox___307913: undefined, - oy___307921: undefined, - l___307929: undefined, - t___307935: undefined, - font___307953: undefined, - tx___307957: undefined, - ty___307959: undefined, + ox___66371: undefined, + oy___66379: undefined, + l___66387: undefined, + t___66393: undefined, + font___66428: undefined, + tx___66432: undefined, + ty___66434: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function sprites_BaseSpriteSayRenderer_destroy__P49007(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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_BaseSpriteSayRenderer__C49003_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_BaseSpriteSayRenderer_destroy__P49007.info = {"start":328,"length":22,"line":13,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"destroy","argumentNames":["this"]} + +function sprites_BaseSpriteSayRenderer_destroy__P49007_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_BaseSpriteSayRenderer_destroy__P49007, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function sprites_BaseSpriteSayRenderer_draw__P49005(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (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, sprites_BaseSpriteSayRenderer__C49003_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_BaseSpriteSayRenderer_draw__P49005.info = {"start":171,"length":69,"line":5,"column":8,"endLine":7,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"draw","argumentNames":["this","screen","camera","owner"]} + +function sprites_BaseSpriteSayRenderer_draw__P49005_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_BaseSpriteSayRenderer_draw__P49005, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function Sprite___visible__P291485(s) { +function Sprite___visible__P49138(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -43105,7 +44580,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C291442_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C49083_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -43116,12 +44591,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P291485.info = {"start":8612,"length":72,"line":309,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} +Sprite___visible__P49138.info = {"start":11007,"length":72,"line":392,"column":4,"endLine":394,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"__visible","argumentNames":["this"]} -function Sprite___visible__P291485_mk(s) { +function Sprite___visible__P49138_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P291485, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P49138, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -43164,7 +44639,7 @@ function if_sourceFactory_3_mk(s) { } } -function PhysicsEngine__C291587_v1_2_mk(s) { +function PhysicsEngine__C49245_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43224,7 +44699,7 @@ function lambda_3_mk(s) { } } -function PhysicsEngine__C291587_v2_4_mk(s) { +function PhysicsEngine__C49245_v2_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43241,7 +44716,7 @@ function PhysicsEngine__C291587_v2_4_mk(s) { } } -function if_flags_1_mk(s) { +function if_handler_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43255,7 +44730,7 @@ function if_flags_1_mk(s) { } } -function particles_ParticleFactory__C292137_v0_2_mk(s) { +function lambda_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43266,11 +44741,10 @@ function particles_ParticleFactory__C292137_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function particles_ParticleSource__C292101_v4_3_mk(s) { +function if_condition_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43281,12 +44755,10 @@ function particles_ParticleSource__C292101_v4_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function if_x_1_mk(s) { +function PhysicsEngine__C49245_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43297,10 +44769,11 @@ function if_x_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_y_1_mk(s) { +function if_id_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43311,10 +44784,11 @@ function if_y_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_id_2_mk(s) { +function if_kind_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43325,11 +44799,10 @@ function if_id_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function PhysicsEngine__C291587_v4_2_mk(s) { +function if_factory_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43344,7 +44817,7 @@ function PhysicsEngine__C291587_v4_2_mk(s) { } } -function if___update_3_mk(s) { +function if_callback_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43356,11 +44829,10 @@ function if___update_3_mk(s) { tmp_4: undefined, arg0: undefined, arg1: undefined, - arg2: undefined, } } -function lambda_2_mk(s) { +function if_flags_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43371,11 +44843,10 @@ function lambda_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function PhysicsEngine__C291587_v3_1_mk(s) { +function particles_ParticleFactory__C49823_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43386,10 +44857,11 @@ function PhysicsEngine__C291587_v3_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_charHeight_1_mk(s) { +function particles_ParticleSource__C49787_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43400,10 +44872,12 @@ function if_charHeight_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_charWidth_1_mk(s) { +function if_x_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43417,7 +44891,7 @@ function if_charWidth_1_mk(s) { } } -function if_multiplier_1_mk(s) { +function if_y_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43431,7 +44905,7 @@ function if_multiplier_1_mk(s) { } } -function if_data_1_mk(s) { +function PhysicsEngine__C49245_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43442,10 +44916,11 @@ function if_data_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_xOffset_1_mk(s) { +function if___update_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43456,10 +44931,12 @@ function if_xOffset_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_yOffset_1_mk(s) { +function lambda_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43470,10 +44947,11 @@ function if_yOffset_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if___draw_2_mk(s) { +function PhysicsEngine__C49245_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43484,11 +44962,10 @@ function if___draw_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_z_1_mk(s) { +function if_charHeight_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43502,7 +44979,7 @@ function if_z_1_mk(s) { } } -function if_id_1_mk(s) { +function if_charWidth_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43516,7 +44993,7 @@ function if_id_1_mk(s) { } } -function controller_Button__C291322_v0_1_mk(s) { +function if_multiplier_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43530,7 +45007,7 @@ function controller_Button__C291322_v0_1_mk(s) { } } -function if_s_1_mk(s) { +function if_data_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43544,7 +45021,7 @@ function if_s_1_mk(s) { } } -function if_vx_1_mk(s) { +function if_xOffset_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43558,7 +45035,7 @@ function if_vx_1_mk(s) { } } -function if_vy_1_mk(s) { +function if_yOffset_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43572,7 +45049,7 @@ function if_vy_1_mk(s) { } } -function if_handler_1_mk(s) { +function if___draw_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43583,10 +45060,11 @@ function if_handler_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function lambda_1_mk(s) { +function if_z_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43600,7 +45078,7 @@ function lambda_1_mk(s) { } } -function if_condition_1_mk(s) { +function if_id_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43614,7 +45092,7 @@ function if_condition_1_mk(s) { } } -function if_comparator_3_mk(s) { +function controller_Button__C48934_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43625,12 +45103,10 @@ function if_comparator_3_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, } } -function PhysicsEngine__C291587_v0_2_mk(s) { +function if_s_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43641,11 +45117,10 @@ function PhysicsEngine__C291587_v0_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_kind_1_mk(s) { +function if_vx_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43659,7 +45134,7 @@ function if_kind_1_mk(s) { } } -function if_factory_2_mk(s) { +function if_vy_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43670,7 +45145,6 @@ function if_factory_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } @@ -43902,7 +45376,7 @@ function if_z_2_mk(s) { } } -function if_handler_3_mk(s) { +function if_callback_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43913,12 +45387,10 @@ 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_handler_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43929,10 +45401,12 @@ function if_tileIndex_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, } } -function if_left_1_mk(s) { +function if_tileIndex_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43946,7 +45420,7 @@ function if_left_1_mk(s) { } } -function if_top_1_mk(s) { +function if_left_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43960,7 +45434,7 @@ function if_top_1_mk(s) { } } -function if_height_1_mk(s) { +function if_top_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43974,7 +45448,7 @@ function if_height_1_mk(s) { } } -function particles_ParticleFactory__C292137_v1_4_mk(s) { +function if_height_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43985,13 +45459,10 @@ function particles_ParticleFactory__C292137_v1_4_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function if_updateSay_3_mk(s) { +function particles_ParticleFactory__C49823_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44004,10 +45475,11 @@ function if_updateSay_3_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function sprites_BaseSprite__C291277_v0_1_mk(s) { +function sprites_BaseSpriteSayRenderer__C49003_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44018,10 +45490,13 @@ function sprites_BaseSprite__C291277_v0_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function sprites_BaseSprite__C291277_v2_2_mk(s) { +function sprites_BaseSprite__C48843_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44032,11 +45507,10 @@ function sprites_BaseSprite__C291277_v2_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_shouldBeVisible_1_mk(s) { +function sprites_BaseSprite__C48843_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44047,10 +45521,11 @@ function if_shouldBeVisible_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, } } -function if_scene_1_mk(s) { +function if_shouldBeVisible_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44064,7 +45539,7 @@ function if_scene_1_mk(s) { } } -function if_state_1_mk(s) { +function sprites_BaseSpriteSayRenderer__C49003_v0_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44075,10 +45550,13 @@ function if_state_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function if_up_1_mk(s) { +function sprites_BaseSpriteSayRenderer__C49003_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44092,7 +45570,7 @@ function if_up_1_mk(s) { } } -function if_yOffset_2_mk(s) { +function if_scene_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44103,11 +45581,10 @@ function if_yOffset_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } -function if_up_2_mk(s) { +function if_state_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -44118,7 +45595,6 @@ function if_up_2_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, - arg1: undefined, } } @@ -44205,14 +45681,14 @@ function if_width_1_mk(s) { arg0: undefined, } } -const controller_Button__C291322_VT = mkVTable({ +const controller_Button__C48934_VT = mkVTable({ name: "Button", numFields: 7, classNo: 16, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P291331, + "isPressed": controller_Button_isPressed__P48945, }, iface: { "_owner": null, @@ -44229,26 +45705,29 @@ const controller_Button__C291322_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "toString": controller_Button_toString__P291327, - "raiseButtonUp": controller_Button_raiseButtonUp__P293236, - "raiseButtonDown": controller_Button_raiseButtonDown__P293237, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P293238, - "onEvent": controller_Button_onEvent__P291329, - "isPressed": controller_Button_isPressed__P291331, - "pressureLevel": controller_Button_pressureLevel__P291332, - "setPressed": controller_Button_setPressed__P291333, - "__update": controller_Button___update__P291334, + "handlerState": controller_Button_handlerState__P51145, + "toString": controller_Button_toString__P48939, + "raiseButtonUp": controller_Button_raiseButtonUp__P51146, + "raiseButtonDown": controller_Button_raiseButtonDown__P51147, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P51148, + "onEvent": controller_Button_onEvent__P48941, + "isPressed": controller_Button_isPressed__P48945, + "pressureLevel": controller_Button_pressureLevel__P48946, + "setPressed": controller_Button_setPressed__P48947, + "__update": controller_Button___update__P48948, + "runButtonEvents": controller_Button_runButtonEvents__P51149, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P51150, }, - toStringMethod: controller_Button_toString__P291327, + toStringMethod: controller_Button_toString__P48939, }); -const controller_AnyButton__C293239_VT = mkVTable({ +const controller_AnyButton__C51143_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 17, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P293241, + "isPressed": controller_AnyButton_isPressed__P51151, }, iface: { "_owner": null, @@ -44265,18 +45744,21 @@ const controller_AnyButton__C293239_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P293241, - "toString": controller_Button_toString__P291327, - "raiseButtonUp": controller_Button_raiseButtonUp__P293236, - "raiseButtonDown": controller_Button_raiseButtonDown__P293237, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P293238, - "onEvent": controller_Button_onEvent__P291329, - "pressureLevel": controller_Button_pressureLevel__P291332, - "setPressed": controller_Button_setPressed__P291333, - "__update": controller_Button___update__P291334, + "isPressed": controller_AnyButton_isPressed__P51151, + "handlerState": controller_Button_handlerState__P51145, + "toString": controller_Button_toString__P48939, + "raiseButtonUp": controller_Button_raiseButtonUp__P51146, + "raiseButtonDown": controller_Button_raiseButtonDown__P51147, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P51148, + "onEvent": controller_Button_onEvent__P48941, + "pressureLevel": controller_Button_pressureLevel__P48946, + "setPressed": controller_Button_setPressed__P48947, + "__update": controller_Button___update__P48948, + "runButtonEvents": controller_Button_runButtonEvents__P51149, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P51150, }, }); -const Math_FastRandom__C292009_VT = mkVTable({ +const Math_FastRandom__C49695_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 18, @@ -44289,60 +45771,47 @@ const Math_FastRandom__C292009_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P292012, - "randomRange": Math_FastRandom_randomRange__P292013, - "pickRandom": Math_FastRandom_pickRandom__P292014, + "next": Math_FastRandom_next__P49698, + "randomRange": Math_FastRandom_randomRange__P49699, + "pickRandom": Math_FastRandom_pickRandom__P49700, }, }); -const texteffects_TextEffect__C292254_VT = mkVTable({ - name: "TextEffect", - numFields: 1, - classNo: 19, - lastSubtypeNo: 19, - maxBgInstances: null, - methods: { - }, - iface: { - "getState": null, - "set/getState": null, - }, -}); -const sprites_BaseSprite__C291277_VT = mkVTable({ +const sprites_BaseSprite__C48843_VT = mkVTable({ name: "BaseSprite", numFields: 2, - classNo: 20, - lastSubtypeNo: 23, + classNo: 19, + lastSubtypeNo: 22, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P291280, - "__draw": sprites_BaseSprite___draw__P291283, - "__drawCore": sprites_BaseSprite___drawCore__P291284, - "__update": sprites_BaseSprite___update__P291285, + "__visible": sprites_BaseSprite___visible__P48846, + "__draw": sprites_BaseSprite___draw__P48849, + "__drawCore": sprites_BaseSprite___drawCore__P48850, + "__update": sprites_BaseSprite___update__P48851, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "__visible": sprites_BaseSprite___visible__P291280, - "z": sprites_BaseSprite_z__P291281, - "set/z": sprites_BaseSprite_z__P291282, - "__draw": sprites_BaseSprite___draw__P291283, - "__drawCore": sprites_BaseSprite___drawCore__P291284, - "__update": sprites_BaseSprite___update__P291285, + "__visible": sprites_BaseSprite___visible__P48846, + "z": sprites_BaseSprite_z__P48847, + "set/z": sprites_BaseSprite_z__P48848, + "__draw": sprites_BaseSprite___draw__P48849, + "__drawCore": sprites_BaseSprite___drawCore__P48850, + "__update": sprites_BaseSprite___update__P48851, }, }); -const Sprite__C291442_VT = mkVTable({ +const Sprite__C49083_VT = mkVTable({ name: "Sprite", - numFields: 26, - classNo: 21, - lastSubtypeNo: 21, + numFields: 30, + classNo: 20, + lastSubtypeNo: 20, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P291485, - "__draw": sprites_BaseSprite___draw__P291283, - "__drawCore": Sprite___drawCore__P291503, - "__update": Sprite___update__P291504, + "__visible": Sprite___visible__P49138, + "__draw": sprites_BaseSprite___draw__P48849, + "__drawCore": Sprite___drawCore__P49157, + "__update": Sprite___update__P49158, }, iface: { "_z": null, @@ -44365,6 +45834,14 @@ const Sprite__C291442_VT = mkVTable({ "set/_fx": null, "_fy": null, "set/_fy": null, + "_sx": null, + "set/_sx": null, + "_sy": null, + "set/_sy": null, + "_width": null, + "set/_width": null, + "_height": null, + "set/_height": null, "_data": null, "set/_data": null, "_kind": null, @@ -44383,10 +45860,10 @@ const Sprite__C291442_VT = mkVTable({ "set/_image": null, "_obstacles": null, "set/_obstacles": null, - "updateSay": null, - "set/updateSay": null, - "sayBubbleSprite": null, - "set/sayBubbleSprite": null, + "sayEndTime": null, + "set/sayEndTime": null, + "sayRenderer": null, + "set/sayRenderer": null, "_hitbox": null, "set/_hitbox": null, "_overlappers": null, @@ -44397,64 +45874,70 @@ const Sprite__C291442_VT = mkVTable({ "set/flags": null, "destroyHandler": null, "set/destroyHandler": null, - "x": Sprite_x__P291451, - "set/x": Sprite_x__P291452, - "y": Sprite_y__P291453, - "set/y": Sprite_y__P291454, - "vx": Sprite_vx__P291455, - "set/vx": Sprite_vx__P291456, - "vy": Sprite_vy__P291457, - "set/vy": Sprite_vy__P291458, - "ax": Sprite_ax__P291459, - "set/ax": Sprite_ax__P291460, - "ay": Sprite_ay__P291461, - "set/ay": Sprite_ay__P291462, - "fx": Sprite_fx__P291463, - "set/fx": Sprite_fx__P291464, - "fy": Sprite_fy__P291465, - "set/fy": Sprite_fy__P291466, - "data": Sprite_data__P291467, - "set/data": Sprite_data__P291468, - "image": Sprite_image__P291481, - "setImage": Sprite_setImage__P291482, - "setHitbox": Sprite_setHitbox__P291483, - "isStatic": Sprite_isStatic__P291484, - "__visible": Sprite___visible__P291485, - "width": Sprite_width__P291486, - "height": Sprite_height__P291487, - "left": Sprite_left__P291488, - "set/left": Sprite_left__P291489, - "right": Sprite_right__P291490, - "set/right": Sprite_right__P291491, - "top": Sprite_top__P291492, - "set/top": Sprite_top__P291493, - "bottom": Sprite_bottom__P291494, - "set/bottom": Sprite_bottom__P291495, - "kind": Sprite_kind__P291496, - "setKind": Sprite_setKind__P291497, - "setPosition": Sprite_setPosition__P291498, - "setVelocity": Sprite_setVelocity__P291499, - "isOutOfScreen": Sprite_isOutOfScreen__P291502, - "__drawCore": Sprite___drawCore__P291503, - "__update": Sprite___update__P291504, - "setFlag": Sprite_setFlag__P291507, - "overlapsWith": Sprite_overlapsWith__P291508, - "clearObstacles": Sprite_clearObstacles__P291512, - "registerObstacle": Sprite_registerObstacle__P291513, - "destroy": Sprite_destroy__P291515, - "_destroyCore": Sprite__destroyCore__P291516, - "toString": Sprite_toString__P291518, - "z": sprites_BaseSprite_z__P291281, - "set/z": sprites_BaseSprite_z__P291282, - "__draw": sprites_BaseSprite___draw__P291283, + "x": Sprite_x__P49096, + "set/x": Sprite_x__P49097, + "y": Sprite_y__P49098, + "set/y": Sprite_y__P49099, + "vx": Sprite_vx__P49100, + "set/vx": Sprite_vx__P49101, + "vy": Sprite_vy__P49102, + "set/vy": Sprite_vy__P49103, + "ax": Sprite_ax__P49104, + "set/ax": Sprite_ax__P49105, + "ay": Sprite_ay__P49106, + "set/ay": Sprite_ay__P49107, + "fx": Sprite_fx__P49108, + "set/fx": Sprite_fx__P49109, + "fy": Sprite_fy__P49110, + "set/fy": Sprite_fy__P49111, + "sx": Sprite_sx__P49112, + "sy": Sprite_sy__P49114, + "data": Sprite_data__P49118, + "set/data": Sprite_data__P49119, + "image": Sprite_image__P49132, + "setImage": Sprite_setImage__P49133, + "calcDimensionalHash": Sprite_calcDimensionalHash__P49134, + "resetHitbox": Sprite_resetHitbox__P49135, + "setHitbox": Sprite_setHitbox__P49136, + "isStatic": Sprite_isStatic__P49137, + "__visible": Sprite___visible__P49138, + "recalcSize": Sprite_recalcSize__P51169, + "isScaled": Sprite_isScaled__P51170, + "width": Sprite_width__P49139, + "height": Sprite_height__P49140, + "left": Sprite_left__P49141, + "set/left": Sprite_left__P49142, + "right": Sprite_right__P49143, + "set/right": Sprite_right__P49144, + "top": Sprite_top__P49145, + "set/top": Sprite_top__P49146, + "bottom": Sprite_bottom__P49147, + "set/bottom": Sprite_bottom__P49148, + "kind": Sprite_kind__P49149, + "setKind": Sprite_setKind__P49150, + "setPosition": Sprite_setPosition__P49151, + "setVelocity": Sprite_setVelocity__P49152, + "isOutOfScreen": Sprite_isOutOfScreen__P49156, + "__drawCore": Sprite___drawCore__P49157, + "__update": Sprite___update__P49158, + "setFlag": Sprite_setFlag__P49161, + "overlapsWith": Sprite_overlapsWith__P49162, + "clearObstacles": Sprite_clearObstacles__P49167, + "registerObstacle": Sprite_registerObstacle__P49168, + "destroy": Sprite_destroy__P49170, + "_destroyCore": Sprite__destroyCore__P49171, + "toString": Sprite_toString__P49176, + "z": sprites_BaseSprite_z__P48847, + "set/z": sprites_BaseSprite_z__P48848, + "__draw": sprites_BaseSprite___draw__P48849, }, - toStringMethod: Sprite_toString__P291518, + toStringMethod: Sprite_toString__P49176, }); -const effects_ParticleEffect__C292212_VT = mkVTable({ +const effects_ParticleEffect__C49898_VT = mkVTable({ name: "ParticleEffect", numFields: 3, - classNo: 24, - lastSubtypeNo: 25, + classNo: 23, + lastSubtypeNo: 24, maxBgInstances: null, methods: { }, @@ -44465,15 +45948,15 @@ const effects_ParticleEffect__C292212_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P292214, - "destroy": effects_ParticleEffect_destroy__P292215, + "start": effects_ParticleEffect_start__P49900, + "destroy": effects_ParticleEffect_destroy__P49901, }, }); -const effects_ImageEffect__C292239_VT = mkVTable({ +const effects_ImageEffect__C49925_VT = mkVTable({ name: "ImageEffect", numFields: 4, - classNo: 26, - lastSubtypeNo: 26, + classNo: 25, + lastSubtypeNo: 25, maxBgInstances: null, methods: { }, @@ -44486,22 +45969,22 @@ const effects_ImageEffect__C292239_VT = mkVTable({ "set/fastRandom": null, "times": null, "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P292241, - "change": effects_ImageEffect_change__P292242, + "applyTo": effects_ImageEffect_applyTo__P49927, + "change": effects_ImageEffect_change__P49928, }, }); -const particles_ParticleSource__C292101_VT = mkVTable({ +const particles_ParticleSource__C49787_VT = mkVTable({ name: "ParticleSource", numFields: 13, - classNo: 22, - lastSubtypeNo: 22, + classNo: 21, + lastSubtypeNo: 21, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P291280, - "__draw": particles_ParticleSource___draw__P292107, - "__drawCore": sprites_BaseSprite___drawCore__P291284, - "__update": sprites_BaseSprite___update__P291285, - "updateParticle": particles_ParticleSource_updateParticle__P293768, + "__visible": sprites_BaseSprite___visible__P48846, + "__draw": particles_ParticleSource___draw__P49793, + "__drawCore": sprites_BaseSprite___drawCore__P48850, + "__update": sprites_BaseSprite___update__P48851, + "updateParticle": particles_ParticleSource_updateParticle__P51675, }, iface: { "_z": null, @@ -44530,74 +46013,74 @@ const particles_ParticleSource__C292101_VT = mkVTable({ "set/ax": null, "ay": null, "set/ay": null, - "__draw": particles_ParticleSource___draw__P292107, - "_update": particles_ParticleSource__update__P292108, - "_prune": particles_ParticleSource__prune__P292109, - "setAcceleration": particles_ParticleSource_setAcceleration__P292110, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P292112, - "enabled": particles_ParticleSource_enabled__P292113, - "set/enabled": particles_ParticleSource_enabled__P292114, - "destroy": particles_ParticleSource_destroy__P292115, - "clear": particles_ParticleSource_clear__P292116, - "setAnchor": particles_ParticleSource_setAnchor__P292117, - "setRate": particles_ParticleSource_setRate__P292118, - "factory": particles_ParticleSource_factory__P292119, - "setFactory": particles_ParticleSource_setFactory__P292120, - "updateParticle": particles_ParticleSource_updateParticle__P293768, - "drawParticle": particles_ParticleSource_drawParticle__P293769, - "__visible": sprites_BaseSprite___visible__P291280, - "z": sprites_BaseSprite_z__P291281, - "set/z": sprites_BaseSprite_z__P291282, - "__drawCore": sprites_BaseSprite___drawCore__P291284, - "__update": sprites_BaseSprite___update__P291285, + "__draw": particles_ParticleSource___draw__P49793, + "_update": particles_ParticleSource__update__P49794, + "_prune": particles_ParticleSource__prune__P49795, + "setAcceleration": particles_ParticleSource_setAcceleration__P49796, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P49798, + "enabled": particles_ParticleSource_enabled__P49799, + "set/enabled": particles_ParticleSource_enabled__P49800, + "destroy": particles_ParticleSource_destroy__P49801, + "clear": particles_ParticleSource_clear__P49802, + "setAnchor": particles_ParticleSource_setAnchor__P49803, + "setRate": particles_ParticleSource_setRate__P49804, + "factory": particles_ParticleSource_factory__P49805, + "setFactory": particles_ParticleSource_setFactory__P49806, + "updateParticle": particles_ParticleSource_updateParticle__P51675, + "drawParticle": particles_ParticleSource_drawParticle__P51676, + "__visible": sprites_BaseSprite___visible__P48846, + "z": sprites_BaseSprite_z__P48847, + "set/z": sprites_BaseSprite_z__P48848, + "__drawCore": sprites_BaseSprite___drawCore__P48850, + "__update": sprites_BaseSprite___update__P48851, }, }); -const sprites_SpriteSet__C291539_VT = mkVTable({ +const sprites_SpriteSet__C49197_VT = mkVTable({ name: "SpriteSet", numFields: 1, - classNo: 27, - lastSubtypeNo: 27, + classNo: 26, + lastSubtypeNo: 26, maxBgInstances: null, methods: { }, iface: { "_sprites": null, "set/_sprites": null, - "length": sprites_SpriteSet_length__P291542, - "sprites": sprites_SpriteSet_sprites__P291543, - "add": sprites_SpriteSet_add__P291544, - "remove": sprites_SpriteSet_remove__P291546, - "contains": sprites_SpriteSet_contains__P291547, - "toString": sprites_SpriteSet_toString__P291550, + "length": sprites_SpriteSet_length__P49200, + "sprites": sprites_SpriteSet_sprites__P49201, + "add": sprites_SpriteSet_add__P49202, + "remove": sprites_SpriteSet_remove__P49204, + "contains": sprites_SpriteSet_contains__P49205, + "toString": sprites_SpriteSet_toString__P49208, }, - toStringMethod: sprites_SpriteSet_toString__P291550, + toStringMethod: sprites_SpriteSet_toString__P49208, }); -const PhysicsEngine__C291587_VT = mkVTable({ +const PhysicsEngine__C49245_VT = mkVTable({ name: "PhysicsEngine", numFields: 0, - classNo: 28, - lastSubtypeNo: 29, + classNo: 27, + lastSubtypeNo: 28, maxBgInstances: null, methods: { - "addSprite": PhysicsEngine_addSprite__P291589, - "removeSprite": PhysicsEngine_removeSprite__P291590, - "moveSprite": PhysicsEngine_moveSprite__P291591, - "draw": PhysicsEngine_draw__P291592, - "move": PhysicsEngine_move__P291593, + "addSprite": PhysicsEngine_addSprite__P49247, + "removeSprite": PhysicsEngine_removeSprite__P49248, + "moveSprite": PhysicsEngine_moveSprite__P49249, + "draw": PhysicsEngine_draw__P49250, + "move": PhysicsEngine_move__P49251, }, iface: { - "addSprite": PhysicsEngine_addSprite__P291589, - "removeSprite": PhysicsEngine_removeSprite__P291590, - "moveSprite": PhysicsEngine_moveSprite__P291591, - "draw": PhysicsEngine_draw__P291592, - "move": PhysicsEngine_move__P291593, + "addSprite": PhysicsEngine_addSprite__P49247, + "removeSprite": PhysicsEngine_removeSprite__P49248, + "moveSprite": PhysicsEngine_moveSprite__P49249, + "draw": PhysicsEngine_draw__P49250, + "move": PhysicsEngine_move__P49251, }, }); -const scene_PathCompletionEvent__C295628_VT = mkVTable({ +const scene_PathCompletionEvent__C53959_VT = mkVTable({ name: "PathCompletionEvent", numFields: 2, - classNo: 30, - lastSubtypeNo: 30, + classNo: 29, + lastSubtypeNo: 29, maxBgInstances: null, methods: { }, @@ -44608,11 +46091,11 @@ const scene_PathCompletionEvent__C295628_VT = mkVTable({ "set/handler": null, }, }); -const scene_Scene__C291842_VT = mkVTable({ +const scene_Scene__C49526_VT = mkVTable({ name: "Scene", - numFields: 23, - classNo: 31, - lastSubtypeNo: 31, + numFields: 24, + classNo: 30, + lastSubtypeNo: 30, maxBgInstances: null, methods: { }, @@ -44657,24 +46140,26 @@ const scene_Scene__C291842_VT = mkVTable({ "set/controlledSprites": null, "followingSprites": null, "set/followingSprites": null, + "buttonEventHandlers": null, + "set/buttonEventHandlers": null, "_millis": null, "set/_millis": null, "_data": null, "set/_data": null, "previousScene": null, "set/previousScene": null, - "init": scene_Scene_init__P291864, - "data": scene_Scene_data__P291865, - "millis": scene_Scene_millis__P291866, - "addSprite": scene_Scene_addSprite__P291867, - "render": scene_Scene_render__P291869, + "init": scene_Scene_init__P49549, + "data": scene_Scene_data__P49550, + "millis": scene_Scene_millis__P49551, + "addSprite": scene_Scene_addSprite__P49552, + "render": scene_Scene_render__P49554, }, }); -const tiles_Location__C291719_VT = mkVTable({ +const tiles_Location__C49379_VT = mkVTable({ name: "Location", - numFields: 3, - classNo: 32, - lastSubtypeNo: 32, + numFields: 2, + classNo: 31, + lastSubtypeNo: 31, maxBgInstances: null, methods: { }, @@ -44683,21 +46168,23 @@ const tiles_Location__C291719_VT = mkVTable({ "set/_row": null, "_col": null, "set/_col": null, - "tileMap": null, - "set/tileMap": null, - "col": tiles_Location_col__P291720, - "row": tiles_Location_row__P291721, - "x": tiles_Location_x__P291723, - "y": tiles_Location_y__P291724, - "tileSet": tiles_Location_tileSet__P291725, - "place": tiles_Location_place__P291726, + "tileMap": tiles_Location_tileMap__P49381, + "column": tiles_Location_column__P49382, + "row": tiles_Location_row__P49383, + "x": tiles_Location_x__P49384, + "y": tiles_Location_y__P49385, + "left": tiles_Location_left__P49386, + "top": tiles_Location_top__P49387, + "tileSet": tiles_Location_tileSet__P49390, + "col": tiles_Location_col__P49391, + "place": tiles_Location_place__P49395, }, }); -const tiles_TileMap__C291747_VT = mkVTable({ +const tiles_TileMap__C49421_VT = mkVTable({ name: "TileMap", - numFields: 3, - classNo: 33, - lastSubtypeNo: 33, + numFields: 5, + classNo: 32, + lastSubtypeNo: 32, maxBgInstances: null, methods: { }, @@ -44708,37 +46195,43 @@ const tiles_TileMap__C291747_VT = mkVTable({ "set/_layer": null, "_map": null, "set/_map": null, - "scale": tiles_TileMap_scale__P291749, - "set/scale": tiles_TileMap_scale__P291750, - "data": tiles_TileMap_data__P293358, - "offsetX": tiles_TileMap_offsetX__P291751, - "offsetY": tiles_TileMap_offsetY__P291752, - "areaWidth": tiles_TileMap_areaWidth__P291753, - "areaHeight": tiles_TileMap_areaHeight__P291754, - "layer": tiles_TileMap_layer__P291755, - "enabled": tiles_TileMap_enabled__P291757, - "setData": tiles_TileMap_setData__P291758, - "getTile": tiles_TileMap_getTile__P291759, - "getTileIndex": tiles_TileMap_getTileIndex__P291760, - "getImageType": tiles_TileMap_getImageType__P291762, - "sampleTilesByType": tiles_TileMap_sampleTilesByType__P291765, - "isInvalidIndex": tiles_TileMap_isInvalidIndex__P293359, - "draw": tiles_TileMap_draw__P293360, - "isObstacle": tiles_TileMap_isObstacle__P291766, - "getObstacle": tiles_TileMap_getObstacle__P291767, - "isOnWall": tiles_TileMap_isOnWall__P291768, - "getTileImage": tiles_TileMap_getTileImage__P291769, + "renderable": null, + "set/renderable": null, + "handlerState": null, + "set/handlerState": null, + "scale": tiles_TileMap_scale__P49424, + "set/scale": tiles_TileMap_scale__P49425, + "data": tiles_TileMap_data__P49426, + "offsetX": tiles_TileMap_offsetX__P49427, + "offsetY": tiles_TileMap_offsetY__P49428, + "areaWidth": tiles_TileMap_areaWidth__P49429, + "areaHeight": tiles_TileMap_areaHeight__P49430, + "layer": tiles_TileMap_layer__P49431, + "enabled": tiles_TileMap_enabled__P49433, + "setData": tiles_TileMap_setData__P49434, + "getTile": tiles_TileMap_getTile__P49435, + "getTileIndex": tiles_TileMap_getTileIndex__P49436, + "getImageType": tiles_TileMap_getImageType__P49438, + "sampleTilesByType": tiles_TileMap_sampleTilesByType__P49441, + "isInvalidIndex": tiles_TileMap_isInvalidIndex__P51279, + "draw": tiles_TileMap_draw__P51280, + "isObstacle": tiles_TileMap_isObstacle__P49442, + "getObstacle": tiles_TileMap_getObstacle__P49443, + "isOnWall": tiles_TileMap_isOnWall__P49444, + "getTileImage": tiles_TileMap_getTileImage__P49445, }, }); -const game_Hitbox__C291378_VT = mkVTable({ +const game_Hitbox__C48953_VT = mkVTable({ name: "Hitbox", - numFields: 5, - classNo: 34, - lastSubtypeNo: 34, + numFields: 6, + classNo: 33, + lastSubtypeNo: 33, maxBgInstances: null, methods: { }, iface: { + "hash": null, + "set/hash": null, "parent": null, "set/parent": null, "ox": null, @@ -44749,17 +46242,20 @@ const game_Hitbox__C291378_VT = mkVTable({ "set/width": null, "height": null, "set/height": null, - "left": game_Hitbox_left__P291385, - "top": game_Hitbox_top__P291386, - "right": game_Hitbox_right__P291387, - "bottom": game_Hitbox_bottom__P291388, + "left": game_Hitbox_left__P48961, + "top": game_Hitbox_top__P48962, + "right": game_Hitbox_right__P48963, + "bottom": game_Hitbox_bottom__P48964, + "isValid": game_Hitbox_isValid__P48965, + "contains": game_Hitbox_contains__P48966, + "overlapsWith": game_Hitbox_overlapsWith__P48967, }, }); -const control_EventContext__C289793_VT = mkVTable({ +const control_EventContext__C47350_VT = mkVTable({ name: "EventContext", numFields: 9, - classNo: 35, - lastSubtypeNo: 35, + classNo: 34, + lastSubtypeNo: 34, maxBgInstances: null, methods: { }, @@ -44782,20 +46278,214 @@ const control_EventContext__C289793_VT = mkVTable({ "set/idleCallbacks": null, "runningCallbacks": null, "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P289798, - "runCallbacks": control_EventContext_runCallbacks__P293071, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P293072, - "register": control_EventContext_register__P289799, - "unregister": control_EventContext_unregister__P289800, - "registerFrameHandler": control_EventContext_registerFrameHandler__P289801, - "registerHandler": control_EventContext_registerHandler__P289803, + "deltaTime": control_EventContext_deltaTime__P47355, + "runCallbacks": control_EventContext_runCallbacks__P50981, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P50982, + "register": control_EventContext_register__P47356, + "unregister": control_EventContext_unregister__P47357, + "registerFrameHandler": control_EventContext_registerFrameHandler__P47358, + "registerHandler": control_EventContext_registerHandler__P47360, + }, +}); +const control_FrameCallback__C47347_VT = mkVTable({ + name: "FrameCallback", + numFields: 2, + classNo: 35, + lastSubtypeNo: 35, + maxBgInstances: null, + methods: { + }, + iface: { + "order": null, + "set/order": null, + "handler": null, + "set/handler": null, + }, +}); +const control_PollEvent__C50955_VT = mkVTable({ + name: "PollEvent", + numFields: 6, + classNo: 36, + lastSubtypeNo: 36, + maxBgInstances: null, + methods: { + }, + iface: { + "eid": null, + "set/eid": null, + "vid": null, + "set/vid": null, + "start": null, + "set/start": null, + "timeOut": null, + "set/timeOut": null, + "condition": null, + "set/condition": null, + "once": null, + "set/once": null, + }, +}); +const control_EventHandler__C50976_VT = mkVTable({ + name: "EventHandler", + numFields: 4, + classNo: 37, + lastSubtypeNo: 37, + maxBgInstances: null, + methods: { + }, + iface: { + "src": null, + "set/src": null, + "value": null, + "set/value": null, + "handler": null, + "set/handler": null, + "flags": null, + "set/flags": null, + "register": control_EventHandler_register__P50977, + "unregister": control_EventHandler_unregister__P50978, + }, +}); +const scene_LocationNode__C53363_VT = mkVTable({ + name: "LocationNode", + numFields: 4, + classNo: 38, + lastSubtypeNo: 38, + maxBgInstances: null, + methods: { + }, + iface: { + "visited": null, + "set/visited": null, + "l": null, + "set/l": null, + "parent": null, + "set/parent": null, + "lastCost": null, + "set/lastCost": null, }, }); -const effects_ScreenEffect__C292216_VT = mkVTable({ +const scene_PrioritizedLocation__C53357_VT = mkVTable({ + name: "PrioritizedLocation", + numFields: 3, + classNo: 39, + lastSubtypeNo: 39, + maxBgInstances: null, + methods: { + }, + iface: { + "loc": null, + "set/loc": null, + "cost": null, + "set/cost": null, + "totalCost": null, + "set/totalCost": null, + }, +}); +const scene_SimpleLocation__C53372_VT = mkVTable({ + name: "SimpleLocation", + numFields: 2, + classNo: 40, + lastSubtypeNo: 40, + maxBgInstances: null, + methods: { + }, + iface: { + "col": null, + "set/col": null, + "row": null, + "set/row": null, + }, +}); +const tiles_TileMapData__C49403_VT = mkVTable({ + name: "TileMapData", + numFields: 7, + classNo: 41, + lastSubtypeNo: 41, + maxBgInstances: null, + methods: { + }, + iface: { + "data": null, + "set/data": null, + "layers": null, + "set/layers": null, + "tileset": null, + "set/tileset": null, + "cachedTileView": null, + "set/cachedTileView": null, + "_scale": null, + "set/_scale": null, + "_width": null, + "set/_width": null, + "_height": null, + "set/_height": null, + "width": tiles_TileMapData_width__P49405, + "height": tiles_TileMapData_height__P49406, + "scale": tiles_TileMapData_scale__P49407, + "set/scale": tiles_TileMapData_scale__P49408, + "getTile": tiles_TileMapData_getTile__P49409, + "getTileset": tiles_TileMapData_getTileset__P49411, + "getTileImage": tiles_TileMapData_getTileImage__P49412, + "isWall": tiles_TileMapData_isWall__P49414, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P49415, + }, +}); +const scene_PathFollowingSprite__C53950_VT = mkVTable({ + name: "PathFollowingSprite", + numFields: 5, + classNo: 42, + lastSubtypeNo: 42, + maxBgInstances: null, + methods: { + }, + iface: { + "index": null, + "set/index": null, + "onEndHandler": null, + "set/onEndHandler": null, + "sprite": null, + "set/sprite": null, + "path": null, + "set/path": null, + "speed": null, + "set/speed": null, + }, +}); +const scene_Renderable__C49485_VT = mkVTable({ + name: "Renderable", + numFields: 4, + classNo: 22, + lastSubtypeNo: 22, + maxBgInstances: null, + methods: { + "__visible": scene_Renderable___visible__P49487, + "__draw": sprites_BaseSprite___draw__P48849, + "__drawCore": scene_Renderable___drawCore__P49488, + "__update": sprites_BaseSprite___update__P48851, + }, + iface: { + "_z": null, + "set/_z": null, + "id": null, + "set/id": null, + "handler": null, + "set/handler": null, + "shouldBeVisible": null, + "set/shouldBeVisible": null, + "__visible": scene_Renderable___visible__P49487, + "__drawCore": scene_Renderable___drawCore__P49488, + "z": sprites_BaseSprite_z__P48847, + "set/z": sprites_BaseSprite_z__P48848, + "__draw": sprites_BaseSprite___draw__P48849, + "__update": sprites_BaseSprite___update__P48851, + }, +}); +const effects_ScreenEffect__C49902_VT = mkVTable({ name: "ScreenEffect", numFields: 5, - classNo: 25, - lastSubtypeNo: 25, + classNo: 24, + lastSubtypeNo: 24, maxBgInstances: null, methods: { }, @@ -44810,34 +46500,34 @@ const effects_ScreenEffect__C292216_VT = mkVTable({ "set/source": null, "sceneDefaultRate": null, "set/sceneDefaultRate": null, - "start": effects_ParticleEffect_start__P292214, - "destroy": effects_ParticleEffect_destroy__P292215, + "start": effects_ParticleEffect_start__P49900, + "destroy": effects_ParticleEffect_destroy__P49901, }, }); -const particles_ParticleFactory__C292137_VT = mkVTable({ +const particles_ParticleFactory__C49823_VT = mkVTable({ name: "ParticleFactory", numFields: 0, - classNo: 36, - lastSubtypeNo: 40, + classNo: 43, + lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P292139, - "drawParticle": particles_ParticleFactory_drawParticle__P292140, + "createParticle": particles_ParticleFactory_createParticle__P49825, + "drawParticle": particles_ParticleFactory_drawParticle__P49826, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P292139, - "drawParticle": particles_ParticleFactory_drawParticle__P292140, + "createParticle": particles_ParticleFactory_createParticle__P49825, + "drawParticle": particles_ParticleFactory_drawParticle__P49826, }, }); -const particles_SprayFactory__C292141_VT = mkVTable({ +const particles_SprayFactory__C49827_VT = mkVTable({ name: "SprayFactory", numFields: 3, - classNo: 37, - lastSubtypeNo: 40, + classNo: 44, + lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P292143, - "drawParticle": particles_SprayFactory_drawParticle__P292144, + "createParticle": particles_SprayFactory_createParticle__P49829, + "drawParticle": particles_SprayFactory_drawParticle__P49830, }, iface: { "speed": null, @@ -44846,21 +46536,21 @@ const particles_SprayFactory__C292141_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P292143, - "drawParticle": particles_SprayFactory_drawParticle__P292144, - "setSpeed": particles_SprayFactory_setSpeed__P292145, - "setDirection": particles_SprayFactory_setDirection__P292146, + "createParticle": particles_SprayFactory_createParticle__P49829, + "drawParticle": particles_SprayFactory_drawParticle__P49830, + "setSpeed": particles_SprayFactory_setSpeed__P49831, + "setDirection": particles_SprayFactory_setDirection__P49832, }, }); -const particles_AreaFactory__C292147_VT = mkVTable({ +const particles_AreaFactory__C49833_VT = mkVTable({ name: "AreaFactory", numFields: 8, - classNo: 38, - lastSubtypeNo: 40, + classNo: 45, + lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P292153, - "drawParticle": particles_AreaFactory_drawParticle__P292154, + "createParticle": particles_AreaFactory_createParticle__P49839, + "drawParticle": particles_AreaFactory_drawParticle__P49840, }, iface: { "speed": null, @@ -44879,21 +46569,21 @@ const particles_AreaFactory__C292147_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P292153, - "drawParticle": particles_AreaFactory_drawParticle__P292154, - "setSpeed": particles_SprayFactory_setSpeed__P292145, - "setDirection": particles_SprayFactory_setDirection__P292146, + "createParticle": particles_AreaFactory_createParticle__P49839, + "drawParticle": particles_AreaFactory_drawParticle__P49840, + "setSpeed": particles_SprayFactory_setSpeed__P49831, + "setDirection": particles_SprayFactory_setDirection__P49832, }, }); -const particles_ShapeFactory__C292163_VT = mkVTable({ +const particles_ShapeFactory__C49849_VT = mkVTable({ name: "ShapeFactory", numFields: 11, - classNo: 39, - lastSubtypeNo: 40, + classNo: 46, + lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P292167, - "drawParticle": particles_ShapeFactory_drawParticle__P292166, + "createParticle": particles_ShapeFactory_createParticle__P49853, + "drawParticle": particles_ShapeFactory_drawParticle__P49852, }, iface: { "speed": null, @@ -44918,22 +46608,22 @@ const particles_ShapeFactory__C292163_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P292165, - "drawParticle": particles_ShapeFactory_drawParticle__P292166, - "createParticle": particles_ShapeFactory_createParticle__P292167, - "setSpeed": particles_SprayFactory_setSpeed__P292145, - "setDirection": particles_SprayFactory_setDirection__P292146, + "addShape": particles_ShapeFactory_addShape__P49851, + "drawParticle": particles_ShapeFactory_drawParticle__P49852, + "createParticle": particles_ShapeFactory_createParticle__P49853, + "setSpeed": particles_SprayFactory_setSpeed__P49831, + "setDirection": particles_SprayFactory_setDirection__P49832, }, }); -const particles_ConfettiFactory__C292168_VT = mkVTable({ +const particles_ConfettiFactory__C49854_VT = mkVTable({ name: "ConfettiFactory", numFields: 11, - classNo: 40, - lastSubtypeNo: 40, + classNo: 47, + lastSubtypeNo: 47, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P292167, - "drawParticle": particles_ShapeFactory_drawParticle__P292166, + "createParticle": particles_ShapeFactory_createParticle__P49853, + "drawParticle": particles_ShapeFactory_drawParticle__P49852, }, iface: { "speed": null, @@ -44958,18 +46648,18 @@ const particles_ConfettiFactory__C292168_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P292165, - "drawParticle": particles_ShapeFactory_drawParticle__P292166, - "createParticle": particles_ShapeFactory_createParticle__P292167, - "setSpeed": particles_SprayFactory_setSpeed__P292145, - "setDirection": particles_SprayFactory_setDirection__P292146, + "addShape": particles_ShapeFactory_addShape__P49851, + "drawParticle": particles_ShapeFactory_drawParticle__P49852, + "createParticle": particles_ShapeFactory_createParticle__P49853, + "setSpeed": particles_SprayFactory_setSpeed__P49831, + "setDirection": particles_SprayFactory_setDirection__P49832, }, }); -const particles_Particle__C292082_VT = mkVTable({ +const particles_Particle__C49768_VT = mkVTable({ name: "Particle", numFields: 8, - classNo: 41, - lastSubtypeNo: 41, + classNo: 48, + lastSubtypeNo: 48, maxBgInstances: 200, methods: { }, @@ -44992,11 +46682,11 @@ const particles_Particle__C292082_VT = mkVTable({ "set/color": null, }, }); -const scene_Camera__C291783_VT = mkVTable({ +const scene_Camera__C49467_VT = mkVTable({ name: "Camera", numFields: 8, - classNo: 42, - lastSubtypeNo: 42, + classNo: 49, + lastSubtypeNo: 49, maxBgInstances: null, methods: { }, @@ -45017,22 +46707,22 @@ const scene_Camera__C291783_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P291788, - "set/offsetX": scene_Camera_offsetX__P291789, - "offsetY": scene_Camera_offsetY__P291790, - "set/offsetY": scene_Camera_offsetY__P291791, - "x": scene_Camera_x__P291792, - "y": scene_Camera_y__P291793, - "left": scene_Camera_left__P291794, - "top": scene_Camera_top__P291796, - "update": scene_Camera_update__P291799, + "offsetX": scene_Camera_offsetX__P49472, + "set/offsetX": scene_Camera_offsetX__P49473, + "offsetY": scene_Camera_offsetY__P49474, + "set/offsetY": scene_Camera_offsetY__P49475, + "x": scene_Camera_x__P49476, + "y": scene_Camera_y__P49477, + "left": scene_Camera_left__P49478, + "top": scene_Camera_top__P49480, + "update": scene_Camera_update__P49483, }, }); -const scene_Background__C291695_VT = mkVTable({ +const scene_Background__C49355_VT = mkVTable({ name: "Background", numFields: 4, - classNo: 43, - lastSubtypeNo: 43, + classNo: 50, + lastSubtypeNo: 50, maxBgInstances: null, methods: { }, @@ -45045,14 +46735,14 @@ const scene_Background__C291695_VT = mkVTable({ "set/camera": null, "_layers": null, "set/_layers": null, - "draw": scene_Background_draw__P291704, + "draw": scene_Background_draw__P49364, }, }); -const scene_BackgroundLayer__C291705_VT = mkVTable({ +const scene_BackgroundLayer__C49365_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, - classNo: 44, - lastSubtypeNo: 44, + classNo: 51, + lastSubtypeNo: 51, maxBgInstances: null, methods: { }, @@ -45069,48 +46759,14 @@ const scene_BackgroundLayer__C291705_VT = mkVTable({ "set/alignX": null, "alignY": null, "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P291713, + "draw": scene_BackgroundLayer_draw__P49373, }, }); -const tiles_TileMapData__C291734_VT = mkVTable({ - name: "TileMapData", - numFields: 7, - classNo: 45, - lastSubtypeNo: 45, - maxBgInstances: null, - methods: { - }, - iface: { - "data": null, - "set/data": null, - "layers": null, - "set/layers": null, - "tileset": null, - "set/tileset": null, - "cachedTileView": null, - "set/cachedTileView": null, - "_scale": null, - "set/_scale": null, - "_width": null, - "set/_width": null, - "_height": null, - "set/_height": null, - "width": tiles_TileMapData_width__P291736, - "height": tiles_TileMapData_height__P291737, - "scale": tiles_TileMapData_scale__P291738, - "set/scale": tiles_TileMapData_scale__P291739, - "getTile": tiles_TileMapData_getTile__P291740, - "getTileset": tiles_TileMapData_getTileset__P291742, - "getTileImage": tiles_TileMapData_getTileImage__P291743, - "isWall": tiles_TileMapData_isWall__P291745, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P291746, - }, -}); -const controller_Controller__C291342_VT = mkVTable({ +const controller_Controller__C48883_VT = mkVTable({ name: "Controller", numFields: 5, - classNo: 46, - lastSubtypeNo: 46, + classNo: 52, + lastSubtypeNo: 52, maxBgInstances: null, methods: { }, @@ -45125,32 +46781,32 @@ const controller_Controller__C291342_VT = mkVTable({ "set/_id": null, "_connected": null, "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P291347, - "set/_controlledSprites": controller_Controller__controlledSprites__P291348, - "id": controller_Controller_id__P291349, - "left": controller_Controller_left__P291351, - "right": controller_Controller_right__P291352, - "up": controller_Controller_up__P291353, - "down": controller_Controller_down__P291354, - "button": controller_Controller_button__P293244, - "connected": controller_Controller_connected__P291361, - "set/connected": controller_Controller_connected__P291362, - "__preUpdate": controller_Controller___preUpdate__P291366, - "__update": controller_Controller___update__P291367, + "_controlledSprites": controller_Controller__controlledSprites__P48888, + "set/_controlledSprites": controller_Controller__controlledSprites__P48889, + "id": controller_Controller_id__P48890, + "left": controller_Controller_left__P48892, + "right": controller_Controller_right__P48893, + "up": controller_Controller_up__P48894, + "down": controller_Controller_down__P48895, + "button": controller_Controller_button__P51142, + "connected": controller_Controller_connected__P48902, + "set/connected": controller_Controller_connected__P48903, + "__preUpdate": controller_Controller___preUpdate__P48907, + "__update": controller_Controller___update__P48908, }, }); -const ArcadePhysicsEngine__C291603_VT = mkVTable({ +const ArcadePhysicsEngine__C49261_VT = mkVTable({ name: "ArcadePhysicsEngine", numFields: 6, - classNo: 29, - lastSubtypeNo: 29, + classNo: 28, + lastSubtypeNo: 28, maxBgInstances: null, methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P291612, - "removeSprite": ArcadePhysicsEngine_removeSprite__P291613, - "moveSprite": ArcadePhysicsEngine_moveSprite__P291617, - "draw": ArcadePhysicsEngine_draw__P291614, - "move": ArcadePhysicsEngine_move__P291615, + "addSprite": ArcadePhysicsEngine_addSprite__P49270, + "removeSprite": ArcadePhysicsEngine_removeSprite__P49271, + "moveSprite": ArcadePhysicsEngine_moveSprite__P49275, + "draw": ArcadePhysicsEngine_draw__P49272, + "move": ArcadePhysicsEngine_move__P49273, }, iface: { "sprites": null, @@ -45165,30 +46821,30 @@ const ArcadePhysicsEngine__C291603_VT = mkVTable({ "set/minSingleStep": null, "maxSingleStep": null, "set/maxSingleStep": null, - "maxSpeed": ArcadePhysicsEngine_maxSpeed__P291605, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P291606, - "minStep": ArcadePhysicsEngine_minStep__P291607, - "set/minStep": ArcadePhysicsEngine_minStep__P291608, - "maxStep": ArcadePhysicsEngine_maxStep__P291609, - "set/maxStep": ArcadePhysicsEngine_maxStep__P291610, - "addSprite": ArcadePhysicsEngine_addSprite__P291612, - "removeSprite": ArcadePhysicsEngine_removeSprite__P291613, - "draw": ArcadePhysicsEngine_draw__P291614, - "move": ArcadePhysicsEngine_move__P291615, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P293287, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P293288, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P293289, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P293290, - "moveSprite": ArcadePhysicsEngine_moveSprite__P291617, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P293291, - "constrain": ArcadePhysicsEngine_constrain__P293292, + "maxSpeed": ArcadePhysicsEngine_maxSpeed__P49263, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P49264, + "minStep": ArcadePhysicsEngine_minStep__P49265, + "set/minStep": ArcadePhysicsEngine_minStep__P49266, + "maxStep": ArcadePhysicsEngine_maxStep__P49267, + "set/maxStep": ArcadePhysicsEngine_maxStep__P49268, + "addSprite": ArcadePhysicsEngine_addSprite__P49270, + "removeSprite": ArcadePhysicsEngine_removeSprite__P49271, + "draw": ArcadePhysicsEngine_draw__P49272, + "move": ArcadePhysicsEngine_move__P49273, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P51208, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P51209, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P51210, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P51211, + "moveSprite": ArcadePhysicsEngine_moveSprite__P49275, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P51212, + "constrain": ArcadePhysicsEngine_constrain__P51213, }, }); -const sprites_SpriteMap__C291522_VT = mkVTable({ +const sprites_SpriteMap__C49180_VT = mkVTable({ name: "SpriteMap", numFields: 5, - classNo: 47, - lastSubtypeNo: 47, + classNo: 53, + lastSubtypeNo: 53, maxBgInstances: null, methods: { }, @@ -45203,24 +46859,24 @@ const sprites_SpriteMap__C291522_VT = mkVTable({ "set/columnCount": null, "buckets": null, "set/buckets": null, - "neighbors": sprites_SpriteMap_neighbors__P291524, - "overlaps": sprites_SpriteMap_overlaps__P291525, - "draw": sprites_SpriteMap_draw__P291526, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P291527, - "clear": sprites_SpriteMap_clear__P291528, - "key": sprites_SpriteMap_key__P293250, - "insertAtKey": sprites_SpriteMap_insertAtKey__P293251, - "insertAABB": sprites_SpriteMap_insertAABB__P291529, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P293252, - "toString": sprites_SpriteMap_toString__P291530, + "neighbors": sprites_SpriteMap_neighbors__P49182, + "overlaps": sprites_SpriteMap_overlaps__P49183, + "draw": sprites_SpriteMap_draw__P49184, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P49185, + "clear": sprites_SpriteMap_clear__P49186, + "key": sprites_SpriteMap_key__P51171, + "insertAtKey": sprites_SpriteMap_insertAtKey__P51172, + "insertAABB": sprites_SpriteMap_insertAABB__P49187, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P51173, + "toString": sprites_SpriteMap_toString__P49188, }, - toStringMethod: sprites_SpriteMap_toString__P291530, + toStringMethod: sprites_SpriteMap_toString__P49188, }); -const music_Melody__C291007_VT = mkVTable({ +const music_Melody__C48567_VT = mkVTable({ name: "Melody", numFields: 2, - classNo: 48, - lastSubtypeNo: 48, + classNo: 54, + lastSubtypeNo: 54, maxBgInstances: null, methods: { }, @@ -45229,183 +46885,15 @@ const music_Melody__C291007_VT = mkVTable({ "set/_text": null, "_player": null, "set/_player": null, - "toString": music_Melody_toString__P291016, - }, - toStringMethod: music_Melody_toString__P291016, -}); -const control_EventHandler__C293066_VT = mkVTable({ - name: "EventHandler", - numFields: 4, - classNo: 49, - lastSubtypeNo: 49, - maxBgInstances: null, - methods: { - }, - iface: { - "src": null, - "set/src": null, - "value": null, - "set/value": null, - "handler": null, - "set/handler": null, - "flags": null, - "set/flags": null, - "register": control_EventHandler_register__P293067, - "unregister": control_EventHandler_unregister__P293068, - }, -}); -const control_FrameCallback__C289790_VT = mkVTable({ - name: "FrameCallback", - numFields: 2, - classNo: 50, - lastSubtypeNo: 50, - maxBgInstances: null, - methods: { - }, - iface: { - "order": null, - "set/order": null, - "handler": null, - "set/handler": null, + "toString": music_Melody_toString__P48576, }, + toStringMethod: music_Melody_toString__P48576, }); -const control_PollEvent__C293045_VT = mkVTable({ - name: "PollEvent", - numFields: 6, - classNo: 51, - lastSubtypeNo: 51, - maxBgInstances: null, - methods: { - }, - iface: { - "eid": null, - "set/eid": null, - "vid": null, - "set/vid": null, - "start": null, - "set/start": null, - "timeOut": null, - "set/timeOut": null, - "condition": null, - "set/condition": null, - "once": null, - "set/once": null, - }, -}); -const Heap__C292963_VT = mkVTable({ - name: "Heap", - numFields: 2, - classNo: 52, - lastSubtypeNo: 52, - maxBgInstances: null, - methods: { - }, - iface: { - "store": null, - "set/store": null, - "comparator": null, - "set/comparator": null, - "percolateDown": Heap_percolateDown__P295063, - "percolateUp": Heap_percolateUp__P295064, - "push": Heap_push__P292965, - "pop": Heap_pop__P292966, - "length": Heap_length__P292968, - "parent": Heap_parent__P295065, - "leftChild": Heap_leftChild__P295066, - "rightChild": Heap_rightChild__P295067, - }, -}); -const scene_LocationNode__C295074_VT = mkVTable({ - name: "LocationNode", - numFields: 4, - classNo: 53, - lastSubtypeNo: 53, - maxBgInstances: null, - methods: { - }, - iface: { - "visited": null, - "set/visited": null, - "l": null, - "set/l": null, - "parent": null, - "set/parent": null, - "lastCost": null, - "set/lastCost": null, - }, -}); -const scene_PrioritizedLocation__C295068_VT = mkVTable({ - name: "PrioritizedLocation", - numFields: 3, - classNo: 54, - lastSubtypeNo: 54, - maxBgInstances: null, - methods: { - }, - iface: { - "loc": null, - "set/loc": null, - "cost": null, - "set/cost": null, - "extraCost": null, - "set/extraCost": null, - }, -}); -const scene_PathFollowingSprite__C295619_VT = mkVTable({ - name: "PathFollowingSprite", - numFields: 5, - classNo: 55, - lastSubtypeNo: 55, - maxBgInstances: null, - methods: { - }, - iface: { - "index": null, - "set/index": null, - "onEndHandler": null, - "set/onEndHandler": null, - "sprite": null, - "set/sprite": null, - "path": null, - "set/path": null, - "speed": null, - "set/speed": null, - }, -}); -const scene_Renderable__C291801_VT = mkVTable({ - name: "Renderable", - numFields: 4, - classNo: 23, - lastSubtypeNo: 23, - maxBgInstances: null, - methods: { - "__visible": scene_Renderable___visible__P291803, - "__draw": sprites_BaseSprite___draw__P291283, - "__drawCore": scene_Renderable___drawCore__P291804, - "__update": sprites_BaseSprite___update__P291285, - }, - iface: { - "_z": null, - "set/_z": null, - "id": null, - "set/id": null, - "handler": null, - "set/handler": null, - "shouldBeVisible": null, - "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P291803, - "__drawCore": scene_Renderable___drawCore__P291804, - "z": sprites_BaseSprite_z__P291281, - "set/z": sprites_BaseSprite_z__P291282, - "__draw": sprites_BaseSprite___draw__P291283, - "__update": sprites_BaseSprite___update__P291285, - }, -}); -const scene_systemMenu_PauseMenu__C292045_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C49731_VT = mkVTable({ name: "PauseMenu", numFields: 7, - classNo: 56, - lastSubtypeNo: 56, + classNo: 55, + lastSubtypeNo: 55, maxBgInstances: null, methods: { }, @@ -45424,19 +46912,19 @@ const scene_systemMenu_PauseMenu__C292045_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P292047, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P292048, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P292049, - "drawText": scene_systemMenu_PauseMenu_drawText__P292050, - "dispose": scene_systemMenu_PauseMenu_dispose__P292051, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P293668, + "show": scene_systemMenu_PauseMenu_show__P49733, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P49734, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P49735, + "drawText": scene_systemMenu_PauseMenu_drawText__P49736, + "dispose": scene_systemMenu_PauseMenu_dispose__P49737, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P51590, }, }); -const scene_systemMenu_MenuOption__C292037_VT = mkVTable({ +const scene_systemMenu_MenuOption__C49723_VT = mkVTable({ name: "MenuOption", numFields: 8, - classNo: 57, - lastSubtypeNo: 57, + classNo: 56, + lastSubtypeNo: 56, maxBgInstances: null, methods: { }, @@ -45457,23 +46945,55 @@ const scene_systemMenu_MenuOption__C292037_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P292039, - "position": scene_systemMenu_MenuOption_position__P292040, - "setOffset": scene_systemMenu_MenuOption_setOffset__P292041, - "setTheme": scene_systemMenu_MenuOption_setTheme__P292042, - "setState": scene_systemMenu_MenuOption_setState__P292043, - "dispose": scene_systemMenu_MenuOption_dispose__P292044, - "updateCard": scene_systemMenu_MenuOption_updateCard__P293667, + "show": scene_systemMenu_MenuOption_show__P49725, + "position": scene_systemMenu_MenuOption_position__P49726, + "setOffset": scene_systemMenu_MenuOption_setOffset__P49727, + "setTheme": scene_systemMenu_MenuOption_setTheme__P49728, + "setState": scene_systemMenu_MenuOption_setState__P49729, + "dispose": scene_systemMenu_MenuOption_dispose__P49730, + "updateCard": scene_systemMenu_MenuOption_updateCard__P51589, }, }); -const MovingSprite__C291601_VT = mkVTable({ - name: "MovingSprite", - numFields: 7, +const controller_ButtonHandler__C48928_VT = mkVTable({ + name: "ButtonHandler", + numFields: 2, + classNo: 57, + lastSubtypeNo: 57, + maxBgInstances: null, + methods: { + }, + iface: { + "event": null, + "set/event": null, + "callback": null, + "set/callback": null, + }, +}); +const controller_ButtonEventHandlerState__C48930_VT = mkVTable({ + name: "ButtonEventHandlerState", + numFields: 3, classNo: 58, lastSubtypeNo: 58, maxBgInstances: null, methods: { }, + iface: { + "id": null, + "set/id": null, + "user": null, + "set/user": null, + "system": null, + "set/system": null, + }, +}); +const MovingSprite__C49259_VT = mkVTable({ + name: "MovingSprite", + numFields: 7, + classNo: 59, + lastSubtypeNo: 59, + maxBgInstances: null, + methods: { + }, iface: { "sprite": null, "set/sprite": null, @@ -45491,11 +47011,11 @@ const MovingSprite__C291601_VT = mkVTable({ "set/yStep": null, }, }); -const sprites_StaticObstacle__C291574_VT = mkVTable({ +const sprites_StaticObstacle__C49232_VT = mkVTable({ name: "StaticObstacle", numFields: 5, - classNo: 59, - lastSubtypeNo: 59, + classNo: 60, + lastSubtypeNo: 60, maxBgInstances: null, methods: { }, @@ -45510,14 +47030,37 @@ const sprites_StaticObstacle__C291574_VT = mkVTable({ "set/top": null, "left": null, "set/left": null, - "x": sprites_StaticObstacle_x__P291581, - "y": sprites_StaticObstacle_y__P291582, - "height": sprites_StaticObstacle_height__P291583, - "width": sprites_StaticObstacle_width__P291584, + "x": sprites_StaticObstacle_x__P49239, + "y": sprites_StaticObstacle_y__P49240, + "height": sprites_StaticObstacle_height__P49241, + "width": sprites_StaticObstacle_width__P49242, + }, +}); +const sprites_BaseSpriteSayRenderer__C49003_VT = mkVTable({ + name: "BaseSpriteSayRenderer", + numFields: 3, + classNo: 61, + lastSubtypeNo: 61, + maxBgInstances: null, + methods: { + "draw": sprites_BaseSpriteSayRenderer_draw__P49005, + "update": sprites_BaseSpriteSayRenderer_update__P49006, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P49007, + }, + iface: { + "text": null, + "set/text": null, + "fgColor": null, + "set/fgColor": null, + "bgColor": null, + "set/bgColor": null, + "draw": sprites_BaseSpriteSayRenderer_draw__P49005, + "update": sprites_BaseSpriteSayRenderer_update__P49006, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P49007, }, }); -const breakpoints = setupDebugger(1, ["transparency16___292984","tile2___292986","tile3___292987","tile1___292985","tile4___292988","PATH_COMPLETION_KEY___295617","PATH_FOLLOW_KEY___295615"]) +const breakpoints = setupDebugger(1, ["transparency16___50890","tile2___50892","tile3___50893","tile1___50891","tile4___50894","PATH_COMPLETION_KEY___53948","PATH_FOLLOW_KEY___53946"]) -return _main___P314882 +return _main___P67173 }) diff --git a/assets/version.txt b/assets/version.txt index 09e9157..60a2d3e 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -0.3.5 \ No newline at end of file +0.4.0 \ No newline at end of file diff --git a/pxt.json b/pxt.json index 16e4f60..af8d0c5 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "arcade-tilemap-a-star", - "version": "0.3.5", + "version": "0.4.0", "description": "", "dependencies": { "device": "*"