diff --git a/assets/js/binary.js b/assets/js/binary.js index 83a92c3..9a4435b 100644 --- a/assets/js/binary.js +++ b/assets/js/binary.js @@ -1,5 +1,5 @@ -// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.3.44/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.2.1","target":"arcade","targetVersion":"1.3.44","repo":"jwunderl/pxt-color"} -// total=1321714 new=16.49% cached=78.19% other=5.32% +// meta={"simUrl":"https://trg-arcade.userpxt.io/v1.8.22/---simulator","cdnUrl":"https://pxt.azureedge.net","version":"0.2.2","target":"arcade","targetVersion":"1.8.22","repo":"jwunderl/pxt-color"} +// total=1398829 new=16.25% cached=78.48% other=5.26% (function (ectx) { 'use strict'; const runtime = ectx.runtime; @@ -84,6 +84,8 @@ pxtrt.mapKeyNames = [ "_scale", "_sprites", "_startPalette", + "_sx", + "_sy", "_text", "_update", "_vx", @@ -102,6 +104,7 @@ pxtrt.mapKeyNames = [ "allSprites", "analog", "anchor", + "applyRevert", "applyTo", "areaHeight", "areaWidth", @@ -109,15 +112,19 @@ pxtrt.mapKeyNames = [ "ay", "background", "basicCard", + "bgColor", "blue", "bottom", "buckets", "buf", "button", + "buttonEventHandlers", "buttons", "cachedTileView", "cachedVx", "cachedVy", + "calcDimensionalHash", + "callback", "camera", "canResolveClipping", "card", @@ -133,9 +140,9 @@ pxtrt.mapKeyNames = [ "clear", "clearObstacles", "clone", - "col", "collisionHandlers", "color", + "column", "columnCount", "condition", "connected", @@ -169,9 +176,12 @@ pxtrt.mapKeyNames = [ "eid", "enabled", "endPalette", + "event", "eventContext", + "fade", "fadeFactory", "fastRandom", + "fgColor", "flags", "followingSprites", "frameCallbacks", @@ -184,7 +194,7 @@ pxtrt.mapKeyNames = [ "gameForeverHandlers", "generator", "getObstacle", - "getState", + "getOrCreateHandlerForEvent", "getText", "getTile", "getTileImage", @@ -192,7 +202,9 @@ pxtrt.mapKeyNames = [ "green", "h", "handler", + "handlerState", "handlers", + "hash", "head", "headerFont", "headerText", @@ -216,7 +228,9 @@ pxtrt.mapKeyNames = [ "isOutOfScreen", "isOutsideMap", "isPressed", + "isScaled", "isStatic", + "isValid", "isWall", "key", "kind", @@ -282,6 +296,7 @@ pxtrt.mapKeyNames = [ "raiseButtonRepeat", "raiseButtonUp", "randomRange", + "recalcSize", "red", "register", "registerFrameCallbacks", @@ -291,20 +306,26 @@ pxtrt.mapKeyNames = [ "remove", "removeSprite", "render", + "renderable", "repeatDelay", "repeatInterval", "repeatX", "repeatY", + "resetHitbox", "resizeBuckets", "reverse", + "revert", + "revertsId", "right", "row", "rowCount", + "runButtonEvents", "runCallbacks", "runningCallbacks", "s", "saturation", - "sayBubbleSprite", + "sayEndTime", + "sayRenderer", "scale", "scene", "sceneDefaultRate", @@ -359,7 +380,12 @@ pxtrt.mapKeyNames = [ "step", "stop", "stride", + "sx", + "sy", + "system", + "text", "theme", + "then", "tileIndex", "tileMap", "tileOverlapHandlers", @@ -378,8 +404,8 @@ pxtrt.mapKeyNames = [ "update", "updateCard", "updateParticle", - "updateSay", "updateScrollTarget", + "user", "value", "vid", "vx", @@ -421,7 +447,7 @@ const pxsim_pxtrt = pxsim.pxtrt; const pxsim_numops = pxsim.numops; -function _main___P512473(s) { +function _main___P40965(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -431,229 +457,229 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - globals._intervals___498499 = (undefined); - globals._pollEventQueue___498508 = (undefined); - globals.minPriority___495120 = (1); + globals._intervals___25811 = (undefined); + globals._pollEventQueue___25820 = (undefined); + globals.minPriority___22070 = (1); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, inline__P498511); - globals.listeners___498512 = (s.tmp_0); - globals.globalVolume___498565 = (null); - globals.playToneID___498572 = (0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C496354_VT); + r0 = pxsim_Array__push(s.tmp_0, listeners_inline__P25823); + globals.listeners___25824 = (s.tmp_0); + globals.globalVolume___25877 = (null); + globals.playToneID___25884 = (0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C23307_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P496357_mk(s); + s.tmp_1 = music_Melody_constructor__P23310_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___496371 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C496354_VT); + globals.wawawawaa___23324 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(music_Melody__C23307_VT); s.tmp_0 = r0; - s.tmp_1 = music_Melody_constructor__P496357_mk(s); + s.tmp_1 = music_Melody_constructor__P23310_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___496374 = (s.tmp_0); - globals.brightness___496490 = (100); + globals.powerUp___23327 = (s.tmp_0); + globals.brightness___23445 = (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", _hex504404); - globals.font8___496511 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex32253); + globals.font8___23467 = (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", _hex504406); - globals.font12___496512 = (s.tmp_0); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex32255); + globals.font12___23468 = (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", _hex505877); - globals.font5___496516 = (s.tmp_0); - globals.__updated___498619 = (false); - r0 = pxsim.control.runInParallel(inline__P498622); - r0 = pxsim_pxtcore.setPalette(_hex498633); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "data", _hex33703); + globals.font5___23472 = (s.tmp_0); + globals.__updated___25933 = (false); + r0 = pxsim.control.runInParallel(control___screen_inline__P25936); + r0 = pxsim_pxtcore.setPalette(_hex25947); r0 = pxsim.image.create(160, 120); - globals.screen___496568 = (r0); - s.tmp_0 = control___screen_setupUpdate__P496530_mk(s); - s.tmp_0.arg0 = inline__P498640; + globals.screen___23524 = (r0); + s.tmp_0 = control___screen_setupUpdate__P23486_mk(s); + s.tmp_0.arg0 = _screen_internal_inline__P25954; s.callLocIdx = 4; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.control_EventContext_onStats___495143 = (inline__P498645); - globals.RUN_KEY___498650 = ("#run"); - globals.SCOPE_KEY___498651 = ("#scope"); - s.tmp_0 = settings_initScopes__P498662_mk(s); + globals.control_EventContext_onStats___22093 = (_screen_internal_inline__P25959); + globals.RUN_KEY___25964 = ("#run"); + globals.SCOPE_KEY___25965 = ("#scope"); + s.tmp_0 = settings_initScopes__P25976_mk(s); s.callLocIdx = 5; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C496669_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C23674_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P496675_mk(s); + s.tmp_1 = controller_Button_constructor__P23680_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___496643 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C496669_VT); + globals.A___23602 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C23674_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P496675_mk(s); + s.tmp_1 = controller_Button_constructor__P23680_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___496644 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C496669_VT); + globals.B___23603 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C23674_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P496675_mk(s); + s.tmp_1 = controller_Button_constructor__P23680_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___496645 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C496669_VT); + globals.left___23604 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C23674_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P496675_mk(s); + s.tmp_1 = controller_Button_constructor__P23680_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___496646 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C496669_VT); + globals.up___23605 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C23674_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P496675_mk(s); + s.tmp_1 = controller_Button_constructor__P23680_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___496647 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C496669_VT); + globals.right___23606 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C23674_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P496675_mk(s); + s.tmp_1 = controller_Button_constructor__P23680_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___496648 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C496669_VT); + globals.down___23607 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C23674_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P496675_mk(s); + s.tmp_1 = controller_Button_constructor__P23680_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___496649 = (s.tmp_0); - globals._userEventsEnabled___498689 = (true); - globals.defaultRepeatDelay___498691 = (500); - globals.defaultRepeatInterval___498693 = (30); - r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C498699_VT); + globals.menu___23608 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(controller_AnyButton__C26005_VT); s.tmp_0 = r0; - s.tmp_1 = controller_Button_constructor__P496675_mk(s); + s.tmp_1 = controller_Button_constructor__P23680_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___496723 = (s.tmp_0); - s.tmp_0 = SpriteKind_create__P496902_mk(s); + globals.anyButton___23655 = (s.tmp_0); + globals._userEventsEnabled___26019 = (true); + globals.defaultRepeatDelay___26021 = (500); + globals.defaultRepeatInterval___26023 = (30); + s.tmp_0 = SpriteKind_create__P23953_mk(s); s.callLocIdx = 14; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - globals.Player___496903 = (r0); - s.tmp_0 = SpriteKind_create__P496902_mk(s); + globals.Player___23954 = (r0); + s.tmp_0 = SpriteKind_create__P23953_mk(s); s.callLocIdx = 15; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - globals.Food___496905 = (r0); - s.tmp_0 = SpriteKind_create__P496902_mk(s); + globals.Food___23956 = (r0); + s.tmp_0 = SpriteKind_create__P23953_mk(s); s.callLocIdx = 16; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - globals.Enemy___496906 = (r0); + globals.Enemy___23957 = (r0); r0 = (0.1 * 256); s.tmp_0 = r0; r0 = (s.tmp_0 | 0); - globals.MIN_MOVE_GAP___496944 = (r0); - globals.infoState___498756 = (undefined); - s.tmp_0 = game_addScenePushHandler__P497319_mk(s); - s.tmp_0.arg0 = inline__P498760; + globals.MIN_MOVE_GAP___23995 = (r0); + globals.infoState___26079 = (undefined); + s.tmp_0 = game_addScenePushHandler__P24394_mk(s); + s.tmp_0.arg0 = info_inline__P26083; s.callLocIdx = 18; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P497321_mk(s); - s.tmp_0.arg0 = inline__P498775; + s.tmp_0 = game_addScenePopHandler__P24396_mk(s); + s.tmp_0.arg0 = info_inline__P26098; s.callLocIdx = 22; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; r0 = pxsim_Array__mk(); - globals.scene_Scene_initializers___497209 = (r0); - globals.debug___497298 = (false); - globals.stats___497299 = (false); - globals.winEffect___497300 = (undefined); - globals.loseEffect___497301 = (undefined); - globals.loseSound___498870 = (undefined); - globals.winSound___498872 = (undefined); - globals.foreverRunning___498884 = (false); - s.tmp_0 = scene_systemMenu_initVolume__P499139_mk(s); + globals.scene_Scene_initializers___24287 = (r0); + globals.debug___24376 = (false); + globals.stats___24377 = (false); + globals.winEffect___24378 = (undefined); + globals.loseEffect___24379 = (undefined); + globals.loseSound___26194 = (undefined); + globals.winSound___26196 = (undefined); + globals.foreverRunning___26208 = (false); + s.tmp_0 = scene_systemMenu_initVolume__P26463_mk(s); s.callLocIdx = 23; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = scene_systemMenu_initScreen__P499140_mk(s); + s.tmp_0 = scene_systemMenu_initScreen__P26464_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___497209, scene_systemMenu_register__P497403); - r0 = pxsim.image.ofBuffer(_hex499147); - globals.CARD_NORMAL___497408 = (r0); - r0 = pxsim.image.ofBuffer(_hex499149); - globals.CARD_SELECTED___497409 = (r0); - r0 = pxsim.image.ofBuffer(_hex499151); - globals.CARD_ACTIVE___497410 = (r0); - r0 = pxsim.image.ofBuffer(_hex499153); - globals.VOLUME_UP_ICON___497411 = (r0); - r0 = pxsim.image.ofBuffer(_hex499155); - globals.BRIGHTNESS_DOWN_ICON___497412 = (r0); - r0 = pxsim.image.ofBuffer(_hex499157); - globals.CLOSE_MENU_ICON___497413 = (r0); - r0 = pxsim.image.ofBuffer(_hex499159); - globals.VOLUME_DOWN_ICON___497414 = (r0); - r0 = pxsim.image.ofBuffer(_hex499161); - globals.SLEEP_ICON___497415 = (r0); - r0 = pxsim.image.ofBuffer(_hex499163); - globals.CONSOLE_ICON___497416 = (r0); - r0 = pxsim.image.ofBuffer(_hex499165); - globals.BRIGHTNESS_UP_ICON___497417 = (r0); - r0 = pxsim.image.ofBuffer(_hex499167); - globals.STATS_ICON___497418 = (r0); - globals.consoleColor___499170 = (1); - globals.tabSize___499173 = (8); - globals.consoleFont___499179 = (globals.font5___496516); - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_Array__push(globals.scene_Scene_initializers___24287, scene_systemMenu_register__P24482); + r0 = pxsim.image.ofBuffer(_hex26471); + globals.CARD_NORMAL___24487 = (r0); + r0 = pxsim.image.ofBuffer(_hex26473); + globals.CARD_SELECTED___24488 = (r0); + r0 = pxsim.image.ofBuffer(_hex26475); + globals.CARD_ACTIVE___24489 = (r0); + r0 = pxsim.image.ofBuffer(_hex26477); + globals.VOLUME_UP_ICON___24490 = (r0); + r0 = pxsim.image.ofBuffer(_hex26479); + globals.BRIGHTNESS_DOWN_ICON___24491 = (r0); + r0 = pxsim.image.ofBuffer(_hex26481); + globals.CLOSE_MENU_ICON___24492 = (r0); + r0 = pxsim.image.ofBuffer(_hex26483); + globals.VOLUME_DOWN_ICON___24493 = (r0); + r0 = pxsim.image.ofBuffer(_hex26485); + globals.SLEEP_ICON___24494 = (r0); + r0 = pxsim.image.ofBuffer(_hex26487); + globals.CONSOLE_ICON___24495 = (r0); + r0 = pxsim.image.ofBuffer(_hex26489); + globals.BRIGHTNESS_UP_ICON___24496 = (r0); + r0 = pxsim.image.ofBuffer(_hex26491); + globals.STATS_ICON___24497 = (r0); + globals.consoleColor___26494 = (1); + globals.tabSize___26497 = (8); + globals.consoleFont___26503 = (globals.font5___23472); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_2 = r0; s.tmp_5 = if_charHeight_1_mk(s); - s.tmp_5.arg0 = globals.consoleFont___499179; + s.tmp_5.arg0 = globals.consoleFont___26503; if (!s.tmp_5.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "charHeight"); } else { @@ -672,13 +698,13 @@ switch (step) { r0 = pxsim.Math_.floor(s.tmp_1); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - globals.consoleLines___499184 = (r0); - r0 = pxsim_ImageMethods.width(globals.screen___496568); + globals.consoleLines___26508 = (r0); + r0 = pxsim_ImageMethods.width(globals.screen___23524); 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___499179; + s.tmp_4.arg0 = globals.consoleFont___26503; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "charWidth"); } else { @@ -693,22 +719,22 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_3); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - globals.consoleColumns___499194 = (r0); - s.tmp_0 = console_addListener__P495128_mk(s); - s.tmp_0.arg0 = game_consoleOverlay_listener__P499206; + globals.consoleColumns___26518 = (r0); + s.tmp_0 = console_addListener__P22078_mk(s); + s.tmp_0.arg0 = game_consoleOverlay_listener__P26530; 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__P499210; + s.tmp_0.argL = MAX_SOURCES_inline__P30921; 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___499208 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C497488_VT); + globals.MAX_SOURCES___26532 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_SprayFactory__C24567_VT); s.tmp_0 = r0; - s.tmp_1 = particles_SprayFactory_constructor__P497489_mk(s); + s.tmp_1 = particles_SprayFactory_constructor__P24568_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 20; s.tmp_1.arg2 = 0; @@ -716,186 +742,177 @@ switch (step) { s.callLocIdx = 30; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - globals.defaultFactory___497468 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C497356_VT); + globals.defaultFactory___24547 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C24435_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P497358_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P24437_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___499243 = (s.tmp_0); - globals.angleSlice___499251 = (0.06283185307179587); - r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C497563_VT); + globals.galois___26552 = (s.tmp_0); + globals.angleSlice___26560 = (0.06283185307179587); + r0 = pxsim_pxtcore_mkClassInstance(effects_ScreenEffect__C24642_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ScreenEffect_constructor__P497564_mk(s); + s.tmp_1 = effects_ScreenEffect_constructor__P24643_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__P502631; + s.tmp_1.arg4 = confetti_inline__P30459; s.callLocIdx = 37; s.pc = 26; return s.tmp_1; case 26: r0 = s.retval; - globals.confetti___497571 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C497586_VT); + globals.confetti___24650 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C24665_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P497587_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P24666_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 100; - s.tmp_1.arg2 = inline__P506649; + s.tmp_1.arg2 = dissolve_inline__P34469; s.callLocIdx = 43; s.pc = 27; return s.tmp_1; case 27: r0 = s.retval; - globals.dissolve___497591 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C497586_VT); + globals.dissolve___24670 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(effects_ImageEffect__C24665_VT); s.tmp_0 = r0; - s.tmp_1 = effects_ImageEffect_constructor__P497587_mk(s); + s.tmp_1 = effects_ImageEffect_constructor__P24666_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = 125; - s.tmp_1.arg2 = inline__P502523; + s.tmp_1.arg2 = melt_inline__P30351; s.callLocIdx = 46; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - globals.melt___497592 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C497601_VT); - s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P497603_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P499302; - s.callLocIdx = 47; s.pc = 29; return s.tmp_1; + globals.melt___24671 = (s.tmp_0); + s.tmp_0 = game_setWaitAnyButton__P24381_mk(s); + s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P23690; + s.callLocIdx = 47; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - globals.shake___497604 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(texteffects_TextEffect__C497601_VT); - s.tmp_0 = r0; - s.tmp_1 = texteffects_TextEffect_constructor__P497603_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P499315; - s.callLocIdx = 57; s.pc = 30; return s.tmp_1; + s.tmp_0 = game_eventContext__P24383_mk(s); + s.callLocIdx = 48; s.pc = 30; return s.tmp_0; case 30: r0 = s.retval; - globals.wave___497605 = (s.tmp_0); - s.tmp_0 = game_setWaitAnyButton__P497303_mk(s); - s.tmp_0.arg0 = controller_pauseUntilAnyButtonIsPressed__P496719; - s.callLocIdx = 58; s.pc = 31; return s.tmp_0; + globals.COLOR_FADING_EFFECT_KEY___28586 = ("__colorfadingeffectstate"); + s.tmp_0 = game_addScenePushHandler__P24394_mk(s); + s.tmp_0.arg0 = color_inline__P29330; + s.callLocIdx = 188; s.pc = 31; return s.tmp_0; case 31: r0 = s.retval; - s.tmp_0 = game_eventContext__P497305_mk(s); - s.callLocIdx = 59; s.pc = 32; return s.tmp_0; + s.tmp_0 = game_addScenePopHandler__P24396_mk(s); + s.tmp_0.arg0 = color_inline__P29348; + s.callLocIdx = 190; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - s.tmp_0 = game_addScenePushHandler__P497319_mk(s); - s.tmp_0.arg0 = inline__P501525; - s.callLocIdx = 177; s.pc = 33; return s.tmp_0; + s.tmp_0 = color_bufferToPalette__P25709_mk(s); + s.tmp_0.arg0 = _hex28725; + s.callLocIdx = 204; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; - s.tmp_0 = game_addScenePopHandler__P497321_mk(s); - s.tmp_0.arg0 = inline__P501543; - s.callLocIdx = 179; s.pc = 34; return s.tmp_0; + globals.originalPalette___25740 = (r0); + s.tmp_0 = color_bufferToPalette__P25709_mk(s); + s.tmp_0.arg0 = _hex29439; + s.callLocIdx = 205; s.pc = 34; return s.tmp_0; case 34: r0 = s.retval; - s.tmp_0 = color_bufferToPalette__P498402_mk(s); - s.tmp_0.arg0 = _hex500927; - s.callLocIdx = 192; s.pc = 35; return s.tmp_0; + globals.Adafruit___25741 = (r0); + s.tmp_0 = color_bufferToPalette__P25709_mk(s); + s.tmp_0.arg0 = _hex29443; + s.callLocIdx = 206; s.pc = 35; return s.tmp_0; case 35: r0 = s.retval; - globals.originalPalette___498432 = (r0); - s.tmp_0 = color_bufferToPalette__P498402_mk(s); - s.tmp_0.arg0 = _hex501627; - s.callLocIdx = 193; s.pc = 36; return s.tmp_0; + globals.Matte___25742 = (r0); + s.tmp_0 = color_bufferToPalette__P25709_mk(s); + s.tmp_0.arg0 = _hex29447; + s.callLocIdx = 207; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; - globals.Adafruit___498433 = (r0); - s.tmp_0 = color_bufferToPalette__P498402_mk(s); - s.tmp_0.arg0 = _hex501631; - s.callLocIdx = 194; s.pc = 37; return s.tmp_0; + globals.GrayScale___25743 = (r0); + s.tmp_0 = color_bufferToPalette__P25709_mk(s); + s.tmp_0.arg0 = _hex29475; + s.callLocIdx = 208; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; - globals.Matte___498434 = (r0); - s.tmp_0 = color_bufferToPalette__P498402_mk(s); - s.tmp_0.arg0 = _hex501635; - s.callLocIdx = 195; s.pc = 38; return s.tmp_0; + globals.Arcade___25750 = (r0); + s.tmp_0 = color_bufferToPalette__P25709_mk(s); + s.tmp_0.arg0 = _hex29479; + s.callLocIdx = 209; s.pc = 38; return s.tmp_0; case 38: r0 = s.retval; - globals.GrayScale___498435 = (r0); - s.tmp_0 = color_bufferToPalette__P498402_mk(s); - s.tmp_0.arg0 = _hex501663; - s.callLocIdx = 196; s.pc = 39; return s.tmp_0; + globals.Black___25751 = (r0); + s.tmp_0 = color_bufferToPalette__P25709_mk(s); + s.tmp_0.arg0 = _hex29483; + s.callLocIdx = 210; s.pc = 39; return s.tmp_0; case 39: r0 = s.retval; - globals.Arcade___498442 = (r0); - s.tmp_0 = color_bufferToPalette__P498402_mk(s); - s.tmp_0.arg0 = _hex501667; - s.callLocIdx = 197; s.pc = 40; return s.tmp_0; + globals.White___25752 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(color_FadeEffect__C25696_VT); + s.tmp_0 = r0; + s.tmp_1 = color_FadeEffect_constructor__P25697_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = "fadetoblack"; + s.tmp_1.arg2 = FadeToBlack_inline__P29491; + s.tmp_1.arg3 = undefined; + s.callLocIdx = 213; s.pc = 40; return s.tmp_1; case 40: r0 = s.retval; - globals.Black___498443 = (r0); - s.tmp_0 = color_bufferToPalette__P498402_mk(s); - s.tmp_0.arg0 = _hex501671; - s.callLocIdx = 198; s.pc = 41; return s.tmp_0; + globals.FadeToBlack___25754 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(color_FadeEffect__C25696_VT); + s.tmp_0 = r0; + s.tmp_1 = color_FadeEffect_constructor__P25697_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = "darken"; + s.tmp_1.arg2 = color_darkenEffect__P29507; + s.tmp_1.arg3 = "brighten"; + s.callLocIdx = 214; s.pc = 41; return s.tmp_1; case 41: r0 = s.retval; - globals.White___498444 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(color_FadeEffect__C498389_VT); + globals.Darken___25756 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(color_FadeEffect__C25696_VT); s.tmp_0 = r0; - s.tmp_1 = color_FadeEffect_constructor__P498390_mk(s); + s.tmp_1 = color_FadeEffect_constructor__P25697_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P501676; - s.callLocIdx = 201; s.pc = 42; return s.tmp_1; + s.tmp_1.arg1 = "brighten"; + s.tmp_1.arg2 = color_brightenEffect__P29529; + s.tmp_1.arg3 = "darken"; + s.callLocIdx = 221; s.pc = 42; return s.tmp_1; case 42: r0 = s.retval; - globals.FadeToBlack___498446 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(color_FadeEffect__C498389_VT); + globals.Brighten___25757 = (s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(color_FadeEffect__C25696_VT); s.tmp_0 = r0; - s.tmp_1 = color_FadeEffect_constructor__P498390_mk(s); + s.tmp_1 = color_FadeEffect_constructor__P25697_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = color_darkenEffect__P501691; - s.callLocIdx = 202; s.pc = 43; return s.tmp_1; + s.tmp_1.arg1 = "rotate"; + s.tmp_1.arg2 = RotatePalette_inline__P29551; + s.tmp_1.arg3 = undefined; + s.callLocIdx = 237; s.pc = 43; return s.tmp_1; case 43: r0 = s.retval; - globals.Darken___498448 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(color_FadeEffect__C498389_VT); - s.tmp_0 = r0; - s.tmp_1 = color_FadeEffect_constructor__P498390_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = color_brightenEffect__P501713; - s.callLocIdx = 209; s.pc = 44; return s.tmp_1; + globals.RotatePalette___25758 = (s.tmp_0); + s.tmp_0 = scene_setBackgroundImage__P24307_mk(s); + r0 = pxsim.image.ofBuffer(_hex29591); + s.tmp_0.arg0 = r0; + s.callLocIdx = 238; s.pc = 44; return s.tmp_0; case 44: r0 = s.retval; - globals.Brighten___498449 = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(color_FadeEffect__C498389_VT); - s.tmp_0 = r0; - s.tmp_1 = color_FadeEffect_constructor__P498390_mk(s); - s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = inline__P501734; - s.callLocIdx = 225; s.pc = 45; return s.tmp_1; + s.tmp_0 = forever__P23572_mk(s); + s.tmp_0.arg0 = inline__P29593; + s.callLocIdx = 285; s.pc = 45; return s.tmp_0; case 45: - r0 = s.retval; - globals.RotatePalette___498450 = (s.tmp_0); - s.tmp_0 = scene_setBackgroundImage__P497229_mk(s); - r0 = pxsim.image.ofBuffer(_hex501774); - s.tmp_0.arg0 = r0; - s.callLocIdx = 226; s.pc = 46; return s.tmp_0; - case 46: - r0 = s.retval; - s.tmp_0 = forever__P496613_mk(s); - s.tmp_0.arg0 = inline__P501776; - s.callLocIdx = 273; s.pc = 47; return s.tmp_0; - case 47: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -_main___P512473.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"test.ts","functionName":"
","argumentNames":[]} -_main___P512473.continuations = [ ] +_main___P40965.info = {"start":0,"length":0,"line":0,"column":0,"endLine":0,"endColumn":0,"fileName":"test.ts","functionName":"
","argumentNames":[]} +_main___P40965.continuations = [ ] -function _main___P512473_mk(s) { +function _main___P40965_mk(s) { checkStack(s.depth); return { - parent: s, fn: _main___P512473, depth: s.depth + 1, + parent: s, fn: _main___P40965, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -905,34 +922,34 @@ function _main___P512473_mk(s) { tmp_5: undefined, } } -const _hex504404 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") -const _hex504406 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") -const _hex505877 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") -const _hex498633 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex499147 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") -const _hex499149 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") -const _hex499151 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") -const _hex499153 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex499155 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex499157 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex499159 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex499161 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex499163 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex499165 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex499167 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex500927 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex501627 = pxsim.BufferMethods.createBufferFromHex("00000017abffdf2929c600ffff007d00ff72e5ff000034ffffffff00efffff00007400db636363ff7a002d9f00000000") -const _hex501631 = pxsim.BufferMethods.createBufferFromHex("0000001d2b537e2553008751ab52365f574fc2c3c7fff1e8ff004dffa300ffec2700e43629adff83769cff77a8ffccaa") -const _hex501635 = pxsim.BufferMethods.createBufferFromHex("000000ffffffedededdbdbdbc8c8c8b6b6b6a4a4a49292928080806d6d6d5b5b5b494949373737242424121212000000") -const _hex501663 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") -const _hex501667 = pxsim.BufferMethods.createBufferFromHex("000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -const _hex501671 = pxsim.BufferMethods.createBufferFromHex("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") -const _hex501774 = pxsim.BufferMethods.createBufferFromHex("8704a0007800000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111c1cccccc1c11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111c1cccccccccc111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222c2cccccccccc2c2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccccccc2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccccccc2c222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccccc22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccc2c22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccc2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222cccccccc2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccc2c222222222222222222222222222222222222222222222222222222222222222222c2cccccccccccccccccccccc2222222222222222222222cccccc2c222222222222222222222222222222222222222222222222222222222222222222c2cccccccccccccccccccccc2222222222222222222222c2cccccc222222222222222222222222222222222222222222222222223333333333333333c3cccccccccccccccccccccc3333333333333333333333c3cccccc3c3333333333333333333333333333333333333333333333333333333333333333c3cccccccccccccccccccccc333333333333333333333333cccccc3c3333333333333333333333333333333333333333333333333333333333333333c3cccccccccccccccccccccc333333333333333333333333cccccccc3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333cccccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333cccccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccc333333333333333333333333333333333333333333333333444444444444444444444444444444444444444444444444444444444444444444c4cccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444c4cccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444c4cccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444cccccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444cccccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444cccccc444444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccc4c4444444444444444444444c4cccccc444444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccc4c4444444444444444444444c4cccc4c444444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccc4c4444444444444444444444c4cccc4c444444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccc4c4444444444444444444444c4cccc4c444444444444444444444444444444444444444444444444555555555555555555cccccccccccccccccccccc5c5555555555555555555555cccccc5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccc5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccc5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555cccccccc5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555cccccc5c55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccc55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccccc55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555cccccccc5c959999595555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccccc5c959999595555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555cccccccccc5595a9aaaa5555555555555555555555555555555555555555555566666666666666666666666666666666666666666666666666666666cccccccc6c6696a9aaaa6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666cccccc6c666696a9aaaa6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666cccccc6c666666a9aaaa6a66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666cccccc66666666a9aaaa6a6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666a9aaaaaa6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666a9aaaaaa666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666699aaaaaa6a6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666699aaaaaa6a66666666666666666666666666c6cccc6c666666666666666666666666666666666666666666666666666666666666666666666666666699a9aaaaaa666666666666666666666666c6cccccc6c666666666666666666666666666666666666666666666666666666666666666666666666666699a9aaaaaa666666666666666666666666ccccdcdddd66666677777777777777777777777777777777777777777777777777777777777777777777779999aaaaaa7a77777777777777777777ccccccdddddd77777777777777777777777777777777777777777777777777777777777777777777777777779999aaaaaa7a777777777777777777c7ccccdcdddddd77777777777777777777777777777777777777777777777777777777777777777777777777779999a9aaaaaa7777777777777777c7ccccccdddddddd77777777777777777777777777777777777777777777777777777777777777777777777777779999a9aaaaaa7a77777777777777ccccccdcdddddddd7777777777777777777777777777777777777777777777777777777777777777777777777777999979aaaaaa7a777777777777c7ccccccdddddddd7d7777777777777777777777777777777777777777777777777777777777777777777777777777999979aaaaaaaa777777777777ccccccdcdddddddd777777777777777777777777777777777777777777777777777777777777777777777777777777999979a7aaaaaaaa77777777ccccccccdddddddd7d77777777777777777777777777777777777777777777777777777777777777777777777777777799997977aaaaaaaa7a7777ccccccccdcdddddddd7777777777777777777777777777777777777777777777777777777777777777777777777777775799997977aaaaaaaa7a77ccccccccccdddddddd7d7777777777777777777777777777777777777777777777777777777777777777777777777777575599997977a7aaaaaaaaccccccccccdcdddddddd77777777777788888888888888888888888888888888888888888888888888888888888888885855559999898888aaaacaccccccccccccdddddddd8d88888888888888888888888888888888888888888888888888888888888888888888888888885555559999898888a8aacaccccccccccdcdddddddd888888888888888888888888888888888888888888888888888888888888888888888888888858555555555585888888aacaccccccccccdddddddd8d888888888888888888888888888888888888888888888888888888888888888888888888885555555555555588888888a8caccccccccd8dddddddd88888888888888888888888888888888888888888888888888888888888888888888888888585555555555558888888888a8cacccccc88dddddddd8d888888888888888888888888888888888888888888888888888888888888888888888888885555555555558888888888888888888888d8dddddddd88888888888888888888888888888888888888888888888888888888888888888888888858555555555555888888888888888888888888d8dddddd8d88888888888888888888888888888888888888888888888888888888888888888888888858555555555585888888888888888888888888dddddddd8888888888888888888888888888888888888888888888888888888888888888888888885555555555558888888888888888888888888888dddddd8d88888888888888888888888888888888888888888888888888888888888888888888885855555555558588888888888888888888888888d8dddddd8888888888888888888888999999999999999999999999999999999999999999999959555555555555559999999999999999999999999999d9dddddd9999999999999999999999999999999999999999999999999999999999999999999959555555555555999999999999999999999999999999dddddd9d99999999999999999999999999999999999999999999999999999999999999999999595555555555959999999999999999999999999999d9dddddd9d99999999999999999999999999999999999999999999999999999999999999999999595555555596999999999999999999999999999999e9eeeedd9999999999999999999999999999999999999999999999999999999999999999999999595555556566969999999999999999999999999999e9eeeede9999999999999999999999999999999999999999999999999999999999999999999999696666666666669999999999999999999999999999e9eeeeee9999999999999999999999999999999999999999999999999999999999999999999999996966666666666699999999999999999999999999e9eeeeee9e99999999999999999999999999999999999999999999999999999999999999999999999969666666666666999999999999999999999999e9eeeeeeee9999999999999999999999999999999999999999999999999999999999999999999999999969666666666666999999999999999999999999eeeeeeee9e99999999999999999999999999999999999999999999999999999999999999999999999999696666666666669999999999999999999999e9eeeeeeee99999999999999999999aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa66666666666666aaaaaaaaaaaaaafaffffaaeeeeeeeeaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa6666666666666666aaaaaaaaaafaffffaaeaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa66666666666666aaaaaaaaaa4444f4afaaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa666666666666aaaaaaaa4a4444f4ffafeaeeeeeeaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa666666111111aaaaaa444444f4ffffaaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa6666111111aaaaaa444444f4ffffaaeaeeeeeeaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa111111aaaa4a444444f4ffffafeaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa111111aaaa44444444ffffffffaaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa111111aaaa444444a4ffffffffffeaeeeeeeaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1a1111aa4a444444a4faffffffffafeeeeeeeeaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111bb4b444444bbbbffffffffffebeeeeeebebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111bb444444b4bbbbfbffffffffffeeeeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111bb444444b4bbbbbbffffffffffffffffeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b11114b444444bbbbbbbbbbffffffffffffffeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b11114b444444bbbbbbbbbbfbffffffffffffeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111444444b4bbbbbbbbbbbbffffffffffffeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111444444b4bbbbbbbbbbbbbbffffffffffbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111444444bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111444444bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b11114444b4bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c11114444c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c11114444cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c11114444cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c111144c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c111144c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c111144cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c111144cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c1111c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c1111c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c1111c4ccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex32253 = pxsim.BufferMethods.createBufferFromHex("2000000000000000210000005e0000002200000e000e0000230028fe28fe280024004c92ff926400250002651248a64026006c92926ca000270000000e000000280000007c82000029000000827c00002a005438103854002b0010107c1010002c000000907000002d001010101010002e000000606000002f000060100806003000003c42423c00310000447e4000003200004462524c00330000424a4e320034003028247e20003500004e4a4a32003600003c4a4a30003700000262120e00380000344a4a34003900000c52523c003a0000006c6c00003b000000967600003c001028284444003d002828282828003e004444282810003f0000025909060040003c425a560800410078141214780042007e4a4a4a34004300003c424224004400007e42423c004500007e4a4a42004600007e0a0a02004700003c425234004800007e08087e00490000427e4200004a002040423e02004b00007e081462004c00007e404040004d007e0418047e004e00007e04087e004f003c4242423c005000007e12120c005100003c5262bc005200007e12126c00530000244a522400540002027e0202005500003e40403e005600001e70701e0057007e2018207e00580042241824420059000608700806005a000062524a46005b00007e424200005c000006081060005d000042427e00005e000804020408005f00808080808000600000000204000061000030484878006200007e4848300063000030484848006400003048487e006500003068585000660000107c12040067000018a4a478006800007e08087000690000487a4000006a000040847d00006b00007e102840006c0000427e4000006d007808300870006e000078080870006f00003048483000700000fc24241800710000182424fc0072000078100810007300005058682800740000083e48200075000038404078007600001860601800770038403040380078000048303048007900005ca0a07c007a000048685848007b000008364100007c000000fe0000007d000041360800007e00000804080400a000000000000000a10000007a000000a200003048fc4800a30090fc92928400a400542844285400a5002a2c782c2a00a6000000ee000000a7000094aaaa5200a800000200020000a9003e414955413eaa0000242a2e0000ab00102854284400ac00001010107000ad00001010101000ae003e415d45413eaf00000202020200b000000814140800b1008888be888800b2000024322c0000b30000222a140000b400000004020000b50000f840207800b6000c1e7e027e00b700000010000000b800000080400000b90000243e200000ba0000242a240000bb00442854281000bc00025f70f84000bd00021f90c8b000be0011557af84000bf000030484d2000c000601916186000c100601816196000c200601a151a6000c300601a151a6100c400601914196000c500601a151a6000c6007c0a7e4a4200c700001ea1611200c800007c55564400c900007c56554400ca00007c56554600cb00007c55544500cc0000457e440000cd0000447e450000ce0000467d460000cf0000457c450000d000087e4a423c00d100007e09127d00d200003845463800d300003846453800d400003846453a00d500003a45463900d600003845443900d700442810284400d80000fc724e3f00d900003c41423c00da00003c42413c00db00003c42413e00dc00003c41403d00dd00040872090400de00007e24241800df00007c025a2400e0000030494a7800e10000304a497800e20000304a497a00e3000032494a7900e40000304a487a00e50000304a4d7a00e600304878685000e7000018a4642400e8000030695a5000e90000306a595000ea0000306a595200eb0000306a585200ec0000497a400000ed0000487a410000ee00004a79420000ef00004a78420000f00000304a4b3d00f100007a090a7100f2000030494a3000f30000304a493000f40000304a493200f5000032494a3100f60000304a483200f700101054101000f800007068583800f900003841427800fa00003842417800fb00003842417a00fc00003842407a00fd0000b84241f800fe0000ff24241800ff00005ca1a07d000001601915196000010100304a4a7a000201611a16196000030100314a4a790004013c0a094abc00050100182464bc000601003846452800070100304a4948000801003846452a00090100304a494a000a010038444528000b010030484a48000c010038454629000d010030494a49000e01007c454639000f0100314a497e001001087e4a423c00110130484c7e04001201007d55554500130100326a5a52001401007d56564500150100316a5a51001601007c55544400170100306a5850001801003f65a521001901001874ac28001a01007c555645001b010030695a51001c010038465536001d0100304a49f2001e010039465635001f0100314a4af100200100384455340021010018a4a578002201001ea1691a0023010018a6a578002401007812117a0025017e080a7102002601047e147e04002701047e0c08700028010002457e450029010002497a41002a0100457d4500002b01004a7a4200002c0100014a7a49002d0100014a7a41002e0100217fa100002f0100247da00000300100447d440000310100487840000032017e0022423e0033013d0040847d0034012040463d0600350100800af90200360100bf440a3100370100bf4814200038010078102848003901007c404241003a0100467d4000003b01003fa06020003c0100a17f2000003d01007c414241003e0100457e4100003f01007e40484000400100427e4008004101107e48404000420100527e4800004301007c0a117c00440100780a097000450100bf42043f00460100bc440438004701007c09127d00480100790a09700049010a06780870004a01003f02847f004b01003c048478004c013945454539004d0100324a4a32004e013946464639004f0100314a4a310050013a4544463900510132494832010052013c427e4a420053013048306850005401007c163548005501007812091000560100bf49093600570100bc480408005801007d1635480059010079120910005a010048565524005b0100505a6928005c010048565526005d0100505a692a005e010012a56912005f010028ac741400600100485556250061010050596a290062010101bf410100630100049f641000640104057e050400650100083d4a2100660102127e120200670100183e5820006801003a414239006901003a414279006a01003d41413d006b01003a42427a006c010039424239006d010039424279006e01003a45453a006f01003a45457a0070013a41403a010071013a41407a01007201001f60a01f007301001c60a03c00740178221122780075013842314238007601081261120800770100b84241fa00780104097009040079010064564d44007a0100486a5948007b010064544d44007c010048685a48007d010064554e45007e010048695a49007f0100087c0204008f01003452523c00920100887e090200a0013c42423c0806a101003048483008af01003e403e0806b001003840781008b501006a5a4a4e00b601005878585800d101003845463900d2010030494a3100e601003845563500e7010030494af100fa0100742a750000fb0100304c4a7d00fc0178147e554400fd0130487a695000fe010078744e3d00ff0100706a59380018020012a569120019020028ac7414001a020101bf4101001b0200049f641000bb0200000c0a0000bc0200000a060000bd020000060a0000c602000201020000c702000102010000c902000202020000d802000102020100d902000002000000da02000205020000db02000040800000dc02000201020100dd02020100020100740300000201000075030000804000007a030000c08000007e03000096760000840300000300000085030200030002008603037c12127c008703000010000000880303007e4a4200890303007e087e008a030300427e42008c03033c42423c008e0303000e700e008f03035c62625c00900302003b400200910378141214780092037e4a4a4a34009303007e0202020094036058465860009503007e4a4a420096030062524a46009703007e08087e0098033c4a4a4a3c00990300427e4200009a03007e081462009b036018061860009c037e0418047e009d03007e04087e009e0300424a4a42009f033c4242423c00a003007e02027e00a103007e12120c00a30300665a424200a40302027e020200a503060870080600a60318247e241800a703422418244200a8030e107e100e00a9035c6202625c00aa0300457c450000ab03040970090400ac030030484a7900ad030030685a5100ae0378100a09f000af03003a41200000b0033a4043403a00b103003048487800b20300fe25251a00b3030c30c0300c00b403344a4a4a3000b503003068585000b603021aa6a24200b7033c080404f800b803003c4a4a3c00b903003840200000ba03007820504800bb03641212227c00bc03fc2020103c00bd03182040201800be03112d2ba94100bf03003048483000c003087808780800c103f82424241800c2031824a4a44800c303304848582800c403000838482800c503384040403800c6031c20f8241800c703c4281028c400c8031c20fc201c00c903304820483000ca03000238422000cb03384240423800cc0330484a493000cd03384042413800ce03304822493000d0033c52525c2000d10310344a3c0800d203067804020400d303120a7c020400d4030d7009040800d5031824ff241800d603384828483800d70348302221d800da031c2221a14200db031824a4a44200dc037e1212020200dd0300fc24240400de033e2010087c00df030c0ac9281800e003700c621c7000e10301092516f800e2039ea0bea07e00e30398a0b8a07800e4030c1214107e00e503001028207800e603be9088887000e70348544e443800e803245252524c00e903285454544800ea0364524c526400eb03086458640800ec03385454542200ed03306848682400ee03184a7e4a1800ef031848ff0a0800f003483020205800f10378a4a4a49800f203304848485000f303006080847d00f4033c4a4a4a3c00f5030030585848000004007c555644000104007c55544500020401013f8579000304007c0605040004043c4a4a422400050400244a522400060400427e420000070400457c45000008042040423e020009047c027e4830000a047e087e4830000b0402027e0a72000c04007c102a45000d047c2112087c000e040c5152523d000f043f20e0203f00100478141214780011047e4a4a4a300012047e4a4a4a34001304007e020202001404c07c427ec0001504007e4a4a4200160476087e087600170424424a4a34001804007e08047e001904007d120a7d001a04007e081462001b04403c02027e001c047e0418047e001d04007e08087e001e043c4242423c001f047e0202027e002004007e12120c002104003c42422400220402027e02020023040e5050503e00240418247e241800250442241824420026043f2020bf600027040e1010107e0028047e407e407e0029043f203fa07f002a04027e484830002b047e4848307e002c04007e484830002d0424424a4a3c002e047e183c423c002f04006c12127e0030043048487840003104003c4a4a3100320400786850200033040078080808003404c0704878c000350430686850000036044830783048003704004058683000380478402010780039047942221279003a040078203048003b044030080878003c047810201078003d047810101078003e043048484830003f047808080878004004fc24242418004104304848485000420408087808080043041ca0a0a07c0044041824ff241800450400483030480046043c2020bc60004704182020207800480478407840780049043c203ca07c004a040878505020004b047850502078004c040078505020004d044858683000004e047830304830004f0450282878000050040030696a500051040032686a50005204023f0a887000530400780a09080054040030685848005504005058682800560400487a4000005704004a784200005804004080847d0059047008785020005a047810785020005b04047e141060005c040078223148005d047841221078005e0418a1a2a279005f043c20e0203c006204027f4a4830006304087e5850200070040e107e100e00710418207820180072043c4a4a4a3c0073043068586830007404001e70180c0075040018603010009004007e020203009104007808080c009204087e0a0a0200930420782808080096043b043f043be0970424183c1824c09a04003f040a31c09b04003c101824c0ae04060870080600af040c10e0100c00b004161870181600b1042c30e0302c00b20421120c1221c0b3040024181824c0ba047e0808087000bb04007e08087000d804003452523c00d904002868583000e20400457d450000e304004a7a420000e8043c4a4a4a3c00e904003058583000ee04003d41413d00ef04003a42427a00d005681020285000d105484848784000d205004830600000d305080808780800d405680808087800d505000008780000d605080818680800d705087808087800d805784050487800d905000008180000da0504040404fc00db05484848483800dc050e4848281800dd05087848487800de05582010487000df05000004fc0000e005004040487800e105000878483800e205487840281800e305041c0404fc00e405485848483800e50504f820140800e605485060685000e705f40424241c00e805080808087000e905785058403800ea05487808087800f005087800087800f105081800087800f205081800081800f305000010080000f405100800100800021e7c5455542800031e007e484930000a1e007c454438000b1e003049487e001e1e007c151404001f1e001079140800401e7e0419047e00411e780832087000561e007c15140800571e00fc25241800601e004854552400611e0050586a28006a1e04047d0404006b1e00083d482000801e7c2112207c00811e384132403800821e7c2012217c00831e384032413800841e7c2110217c00851e384230423800f21e040972080400f31e00b84142f800a3207e0a7a120a00a420a8fcaa828400a720087e2a1c0800ab200098a4a6bf02ac20183c5a5a4200af20627f224438009021103854101000912108047e0408009221101054381000932110207e201000942110381010381095212844fe442800") +const _hex32255 = pxsim.BufferMethods.createBufferFromHex("20000000000000000000000000000000000000000000000000002100000000000006fc0000000000000000000000000000000000220000001c00000000001c0000000000000000000000000000002300a000f807a000f807a00000000000000000000000000000002400000018022404460c8803000000000000000000000000000025003802c4017800200390040803000000000000000000000000260080037804a4041803800340040000000000000000000000002700000000001c00000000000000000000000000000000000000280000000000f8010606010800000000000000000000000000002900000001080606f801000000000000000000000000000000002a00040014000e001400040000000000000000000000000000002b0040004000f8034000400000000000000000000000000000002c000000000000090006000000000000000000000000000000002d000000800080008000000000000000000000000000000000002e000000000000060000000000000000000000000000000000002f00000c800360001c000300000000000000000000000000000030000000f80304040404f80300000000000000000000000000003100000004040404fc07000400040000000000000000000000003200000008060405c4043804000000000000000000000000000033000000080244044404b803000000000000000000000000000034000000800170010801fc070001000000000000000000000000350000023c0424042404c403000000000000000000000000000036000000f0034804440488030000000000000000000000000000370000000400c40734000c00000000000000000000000000000038000000b80344044404b803000000000000000000000000000039000000780284048802f00100000000000000000000000000003a000000000030060000000000000000000000000000000000003b000000000018090006000000000000000000000000000000003c004000a000a000a000100100000000000000000000000000003d002001200120012001200100000000000000000000000000003e0000001001a000a000a00040000000000000000000000000003f000000080084066400180000000000000000000000000000004000f0030c04c20822092409f80900000000000000000000000041000007f8008400f8000007000000000000000000000000000042000000fc0744044404b803000000000000000000000000000043000000f001080204040404080200000000000000000000000044000000fc0704040802f001000000000000000000000000000045000000fc07440444044404000000000000000000000000000046000000fc07440044004400000000000000000000000000000047000000f00108024404c803000000000000000000000000000048000000fc0740004000fc070000000000000000000000000000490000000404fc070404040400000000000000000000000000004a000000000200040004fc0300000000000000000000000000004b000000fc074000f0000c0304040000000000000000000000004c000000fc0700040004000400000000000000000000000000004d000000fc0738007000fc0700000000000000000000000000004e000000fc073800c003fc0700000000000000000000000000004f000000f80304040404f803000000000000000000000000000050000000fc07840084004400780000000000000000000000000051000000fc0102020206fc09000000000000000000000000000052000000fc074400c4013806000000000000000000000000000053000000180224044404880300000000000000000000000000005400000004000400fc070400040000000000000000000000000055000000fc0300040004fc03000000000000000000000000000056000c00f0030004f0030c00000000000000000000000000000057007c008007e001f0010007fc0000000000000000000000000058000404b8034000b80304040000000000000000000000000000590004003800c00730000c0000000000000000000000000000005a0004040407e4041c04040400000000000000000000000000005b0000000000ff0f0108010800000000000000000000000000005c0003001c0060008003000c00000000000000000000000000005d00000001080108ff0f000000000000000000000000000000005e004000380004003800400000000000000000000000000000005f00000800080008000800080000000000000000000000000000600000000000020004000000000000000000000000000000000061000000200390049004e007000000000000000000000000000062000000fc0710041004e003000000000000000000000000000063000000c001200210043004000200000000000000000000000064000000e00310041004fc07000000000000000000000000000065000000e00390049004e0040000000000000000000000000000660000001000f80714001400000000000000000000000000000067000000b806440944093c09040600000000000000000000000068000000fc0710001000e0070000000000000000000000000000690000000000f4070000000000000000000000000000000000006a00000800080008fd07000000000000000000000000000000006b000000fe078000e001100610040000000000000000000000006c0000000000fc030004000400000000000000000000000000006d00f00710001000e0071000e0070000000000000000000000006e000000f00710001000e00700000000000000000000000000006f000000e00310041004e003000000000000000000000000000070000000fc0f04010401f800000000000000000000000000000071000000f80004010401fc0f000000000000000000000000000072000000f00720001000100000000000000000000000000000007300000060029004900420030000000000000000000000000000740000001000fc0310041004000000000000000000000000000075000000f00300040004f007000000000000000000000000000076003000c0030004c003300000000000000000000000000000007700f0000007e003c0010007f000000000000000000000000000780010046003800060031004000000000000000000000000000079000c0870088007f0000c0000000000000000000000000000007a000000000410079004700410040000000000000000000000007b0000004000be070108010800000000000000000000000000007c0000000000ff0f0000000000000000000000000000000000007d00000001080108be07400000000000000000000000000000007e00800040004000800080004000000000000000000000000000") +const _hex33703 = pxsim.BufferMethods.createBufferFromHex("20000000000000002100001700000000220000030003000023000a1f0a1f0a0024000a17151d0a00250013090412190026000a15150a100027000003000000002800000e11000000290000110e0000002a00000a040a00002b0000040e0400002c000010080000002d000004040400002e000008000000002f0010080402010030000e11110e0000310000121f100000320019151512000033000911150b000034000c0a091f080035001715151509003600081416150800370011090503010038000a1515150a00390002150d0502003a00000a000000003b0000100a0000003c0000040a1100003d00000a0a0a00003e0000110a0400003f0002011505020040000e1115090e0041001e05051e000042001f15150a000043000e111111000044001f11110e000045001f151511000046001f050501000047000e1111150c0048001f04041f00004900111f110000004a000911110f01004b001f040a1100004c001f10101000004d001f0204021f004e001f0204081f004f000e11110e000050001f0505020000510006091916000052001f05050a10005300121515090000540001011f01010055000f10100f0000560007081008070057001f0804081f0058001b04041b0000590001021c0201005a001915131100005b00001f111100005c000102040810005d000011111f00005e000002010200005f00101010101000600000010200000061000c12121e100062001f141408000063000c121212000064000814141f000065000e15151200006600041e0501000067000215150f000068001f04041800006900001d000000006a000010100d00006b001f040a1000006c00000f101000006d001e0204021e006e001e02021c00006f000c12120c000070001e0a0a0400007100040a0a1e000072001c0202020000730010140a0200007400000f1414100075000e10101e1000760006081008060077001e1008101e007800120c0c12000079001214080402007a00121a161200007b0000041f1100007c00001f000000007d00111f040000007e00000404080800d3000c1213130c00f3000c12130d000004010e05051e100005010609191f080006010c121313120007010c121313000018010f0b1b19000019010e151d1a000041011f14121000004201100f1412000043011f0205081f0044011e03031c00005a0110140b0302005b0110140b0300007901121a171300007a01121a171300007b01121b171200007c01121b17120000") +const _hex25947 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex26471 = pxsim.BufferMethods.createBufferFromHex("8704240024000000001111111111111111111111111111111100000010313333333333333333333333333333130100001113111111111111111111111111111131110000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000311111111111111111111111111111111113000031111111111111111111111111111111111300003111111111111111111111111111111111130000111311111111111111111111111111113111000010313333333333333333333333333333130100000011111111111111111111111111111111000000") +const _hex26473 = pxsim.BufferMethods.createBufferFromHex("8704240024000000002222222222222222222222222222222200000020323333333333333333333333333333230200002223222222222222222222222222222232220000322211111111111111111111111111112223000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003212111111111111111111111111111121230000321211111111111111111111111111112123000032121111111111111111111111111111212300003222111111111111111111111111111122230000222322222222222222222222222222223222000020323333333333333333333333333333230200000022222222222222222222222222222222000000") +const _hex26475 = pxsim.BufferMethods.createBufferFromHex("8704240024000000004444444444444444444444444444444400000040343333333333333333333333333333430400004443444444444444444444444444444434440000344411111111111111111111111111114443000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003414111111111111111111111111111141430000341411111111111111111111111111114143000034141111111111111111111111111111414300003444111111111111111111111111111144430000444344444444444444444444444444443444000040343333333333333333333333333333430400000044444444444444444444444444444444000000") +const _hex26477 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d00000000000000000000000070666607000000000000000000000000006776000000000000000000000000660700007066000000000000000000006766777766760000000000000000000060666666660600000000000000000066006766667600660000000000000000667600000000676600000000000000006766767777676676000000000000000060666666666666060000000000000000006766666666760000000000000000000000676666760000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex26479 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0bb000000000000000000000000b000404500b0000000000000000000005b0b000400540b0000000000000000b0550400000054b5000000000000000000440040bb0040040000000000000000000040d4ddbb0000000000000000000000004055ddbd000000000000000000004b005455d5dd0b400b000000000000005b045411d5dd0b540b000000000000004b005411d5dd0b400b0000000000000000004055ddbd00000000000000000000000040d4ddbb0000000000000000000000440040bb0040040000000000000000b0550400000054b50000000000000000005b04000400540b000000000000000000b000404500b0000000000000000000000000b0bb0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex26481 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020020000000000002002000000000000202200000000000022020000000000000022020000000020220000000000000000202200000000220200000000000000000022020000202200000000000000000000202200002202000000000000000000000022022022000000000000000000000000202222020000000000000000000000000022220000000000000000000000000000222200000000000000000000000000202222020000000000000000000000002202202200000000000000000000002022000022020000000000000000000022020000202200000000000000000020220000000022020000000000000000220200000000202200000000000000202200000000000022020000000000002002000000000000200200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex26483 = pxsim.BufferMethods.createBufferFromHex("8704200020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0fcff0f000000000000000000000000bcddddfb000000000000000000000000dcbbbbfd000000000000000000000000ccbbbbfc0000000000000000000000c0bcd1bdfb0f00000000000000000000c01b11ddbb0f00000000000000000000c0bcbbbbcb0f00000000000000000000bc11d1ddddcb000000000000000000c01d11ddddddd10c0000000000000000bcd1cbbcfbcf1dcb00000000000000001ccdccddbdffdfc100000000000000001cccccdbcbffcfc10000000000000000dbcbccccfcffbfcd0000000000000000bbbdccccffcfdbbb0000000000000000b0dbbdbbbbdbbd0b000000000000000000b0cbccccbc0b000000000000000000000000000000000000000000000000000000d007700d0000000000000000000000007066660700000000000000000000000000677600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex26485 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b0cbcc0c0000000000000000000000b0db55d5cd0c00000000000000000000db555555ddcd000000000000000000b055555555d59d0b0000000000000000db55555555d59db900000000000000005b55555555d5ddb900000000000000b05db5cccc5bdddd990b000000000000b055ccccccccdddd9d0b000000000000b0b5ccccccccdbdd9d0b000000000000b0c5ccccccccdcdd9d0b000000000000b0c5ccdccbccdcdd9d0c000000000000b0cdcc5b55ccdcdd9d0c00000000000000ccdc55b5ccdcddc90000000000000000cccc5b55ccdbddc90000000000000000c0ccdccbccdd9d0c000000000000000000ccccccdbddcd00000000000000000000c0dcddddcd0c0000000000000000000000c0cccc0c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex26487 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc00000000000000b0bbbbbbbbcb00c0cd000000000000001bddddddddbd0c1ccd000000000000b011cbccccccbc0c1ccd000000000000b01d6c666666bc0cbccd000000000000b01d6c616661bc0c1ccd000000000000b01d6c161666bccc1bcd000000000000b01d6c666166bcccbbcd000000000000b01d6c666666bccc1bcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666661bcccbbcd000000000000b01d6c666661bccc1bcd000000000000b01d6c666666bc0c1ccd000000000000b01dcbccccccbc0cbccd000000000000c0b1bbbbbbbbbb0cdccb000000000000c0bbbbbbbbbbcb00dc0c00000000000000cccccccccc0c00cc000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex26489 = pxsim.BufferMethods.createBufferFromHex("87042000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004004000000000000000000000000000054450000000000000000000000440b00bbbb00b0440000000000000040550b00000000b0550400000000000040b5000044bb00005b04000000000000b00b0044ddddbb00b00b0000000000000000405d55d5dd0b00000000000000000000d4555555ddbd0000000000000000000054555555d5bd0000000000000000b44055555555d5dd0b4b000000000040b54055555555d5dd0b5b040000000040b54055555555d5dd0b5b040000000000b44055115555d5dd0b4b000000000000000054115555d5bd00000000000000000000d4555555ddbd00000000000000000000405d55d5dd0b0000000000000000b00b0044ddddbb00b00b00000000000040b5000044bb00005b0400000000000040550b00000000b0550400000000000000440b00bbbb00b0440000000000000000000000544500000000000000000000000000004004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex26491 = pxsim.BufferMethods.createBufferFromHex("870420002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bbbb00000000000000000000000000b055bb00bbbbbb000000000000000000b0b5bdbcbbbbddcb0000000000000000b0dbcb5b5555bbdd0c00000000000000b0cbdcbdbb5b55dbcd0000000000000000c0dddb11d15bb5bd0c00000000000000bbbd111111b155bb0c00000000000000db1b111111115bb5cb00000000000000db1bb11d1199b9d5cb00000000000000db1b11bb9199b955cb000000000000005b1b11b19b99995bcb000000000000005b1d1111bb99995ccb00000000000000b0b511bbbb99995ccb00000000000000b0d51d919999d95b0b00000000000000005bdb919999c9d50b0000000000000000b0d51b99d9bcb5000000000000000000005bd5bbbc550b00000000000000000000b05b5555bd000000000000000000000000b0bbbb00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex28725 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex29439 = pxsim.BufferMethods.createBufferFromHex("00000017abffdf2929c600ffff007d00ff72e5ff000034ffffffff00efffff00007400db636363ff7a002d9f00000000") +const _hex29443 = pxsim.BufferMethods.createBufferFromHex("0000001d2b537e2553008751ab52365f574fc2c3c7fff1e8ff004dffa300ffec2700e43629adff83769cff77a8ffccaa") +const _hex29447 = pxsim.BufferMethods.createBufferFromHex("000000ffffffedededdbdbdbc8c8c8b6b6b6a4a4a49292928080806d6d6d5b5b5b494949373737242424121212000000") +const _hex29475 = pxsim.BufferMethods.createBufferFromHex("000000ffffffff2121ff93c4ff8135fff609249ca378dc52003fad87f2ff8e2ec4a4839f5c406ce5cdc491463d000000") +const _hex29479 = pxsim.BufferMethods.createBufferFromHex("000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") +const _hex29483 = pxsim.BufferMethods.createBufferFromHex("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff") +const _hex29591 = pxsim.BufferMethods.createBufferFromHex("8704a0007800000011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111c1cccccc1c11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111c1cccccccccc111111111111111111111111111111111111111111111111111111111122222222222222222222222222222222222222222222222222c2cccccccccc2c2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccccccc2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccccccc2c222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccccc22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccc2c22222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccccc2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222cccccccc2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222c2cccccc2c222222222222222222222222222222222222222222222222222222222222222222c2cccccccccccccccccccccc2222222222222222222222cccccc2c222222222222222222222222222222222222222222222222222222222222222222c2cccccccccccccccccccccc2222222222222222222222c2cccccc222222222222222222222222222222222222222222222222223333333333333333c3cccccccccccccccccccccc3333333333333333333333c3cccccc3c3333333333333333333333333333333333333333333333333333333333333333c3cccccccccccccccccccccc333333333333333333333333cccccc3c3333333333333333333333333333333333333333333333333333333333333333c3cccccccccccccccccccccc333333333333333333333333cccccccc3333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333cccccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333cccccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccc333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333c3cccc333333333333333333333333333333333333333333333333444444444444444444444444444444444444444444444444444444444444444444c4cccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444c4cccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444c4cccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444cccccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444cccccc444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444444cccccc444444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccc4c4444444444444444444444c4cccccc444444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccc4c4444444444444444444444c4cccc4c444444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccc4c4444444444444444444444c4cccc4c444444444444444444444444444444444444444444444444444444444444444444cccccccccccccccccccccc4c4444444444444444444444c4cccc4c444444444444444444444444444444444444444444444444555555555555555555cccccccccccccccccccccc5c5555555555555555555555cccccc5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccc5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccc5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555cccccccc5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555cccccc5c55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccc55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccccc55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555cccccccc5c959999595555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555c5cccccccc5c959999595555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555cccccccccc5595a9aaaa5555555555555555555555555555555555555555555566666666666666666666666666666666666666666666666666666666cccccccc6c6696a9aaaa6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666cccccc6c666696a9aaaa6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666cccccc6c666666a9aaaa6a66666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666cccccc66666666a9aaaa6a6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666a9aaaaaa6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666a9aaaaaa666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666699aaaaaa6a6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666699aaaaaa6a66666666666666666666666666c6cccc6c666666666666666666666666666666666666666666666666666666666666666666666666666699a9aaaaaa666666666666666666666666c6cccccc6c666666666666666666666666666666666666666666666666666666666666666666666666666699a9aaaaaa666666666666666666666666ccccdcdddd66666677777777777777777777777777777777777777777777777777777777777777777777779999aaaaaa7a77777777777777777777ccccccdddddd77777777777777777777777777777777777777777777777777777777777777777777777777779999aaaaaa7a777777777777777777c7ccccdcdddddd77777777777777777777777777777777777777777777777777777777777777777777777777779999a9aaaaaa7777777777777777c7ccccccdddddddd77777777777777777777777777777777777777777777777777777777777777777777777777779999a9aaaaaa7a77777777777777ccccccdcdddddddd7777777777777777777777777777777777777777777777777777777777777777777777777777999979aaaaaa7a777777777777c7ccccccdddddddd7d7777777777777777777777777777777777777777777777777777777777777777777777777777999979aaaaaaaa777777777777ccccccdcdddddddd777777777777777777777777777777777777777777777777777777777777777777777777777777999979a7aaaaaaaa77777777ccccccccdddddddd7d77777777777777777777777777777777777777777777777777777777777777777777777777777799997977aaaaaaaa7a7777ccccccccdcdddddddd7777777777777777777777777777777777777777777777777777777777777777777777777777775799997977aaaaaaaa7a77ccccccccccdddddddd7d7777777777777777777777777777777777777777777777777777777777777777777777777777575599997977a7aaaaaaaaccccccccccdcdddddddd77777777777788888888888888888888888888888888888888888888888888888888888888885855559999898888aaaacaccccccccccccdddddddd8d88888888888888888888888888888888888888888888888888888888888888888888888888885555559999898888a8aacaccccccccccdcdddddddd888888888888888888888888888888888888888888888888888888888888888888888888888858555555555585888888aacaccccccccccdddddddd8d888888888888888888888888888888888888888888888888888888888888888888888888885555555555555588888888a8caccccccccd8dddddddd88888888888888888888888888888888888888888888888888888888888888888888888888585555555555558888888888a8cacccccc88dddddddd8d888888888888888888888888888888888888888888888888888888888888888888888888885555555555558888888888888888888888d8dddddddd88888888888888888888888888888888888888888888888888888888888888888888888858555555555555888888888888888888888888d8dddddd8d88888888888888888888888888888888888888888888888888888888888888888888888858555555555585888888888888888888888888dddddddd8888888888888888888888888888888888888888888888888888888888888888888888885555555555558888888888888888888888888888dddddd8d88888888888888888888888888888888888888888888888888888888888888888888885855555555558588888888888888888888888888d8dddddd8888888888888888888888999999999999999999999999999999999999999999999959555555555555559999999999999999999999999999d9dddddd9999999999999999999999999999999999999999999999999999999999999999999959555555555555999999999999999999999999999999dddddd9d99999999999999999999999999999999999999999999999999999999999999999999595555555555959999999999999999999999999999d9dddddd9d99999999999999999999999999999999999999999999999999999999999999999999595555555596999999999999999999999999999999e9eeeedd9999999999999999999999999999999999999999999999999999999999999999999999595555556566969999999999999999999999999999e9eeeede9999999999999999999999999999999999999999999999999999999999999999999999696666666666669999999999999999999999999999e9eeeeee9999999999999999999999999999999999999999999999999999999999999999999999996966666666666699999999999999999999999999e9eeeeee9e99999999999999999999999999999999999999999999999999999999999999999999999969666666666666999999999999999999999999e9eeeeeeee9999999999999999999999999999999999999999999999999999999999999999999999999969666666666666999999999999999999999999eeeeeeee9e99999999999999999999999999999999999999999999999999999999999999999999999999696666666666669999999999999999999999e9eeeeeeee99999999999999999999aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa66666666666666aaaaaaaaaaaaaafaffffaaeeeeeeeeaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa6666666666666666aaaaaaaaaafaffffaaeaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa66666666666666aaaaaaaaaa4444f4afaaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa666666666666aaaaaaaa4a4444f4ffafeaeeeeeeaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa666666111111aaaaaa444444f4ffffaaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa6666111111aaaaaa444444f4ffffaaeaeeeeeeaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa111111aaaa4a444444f4ffffafeaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa111111aaaa44444444ffffffffaaeeeeeeeeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa111111aaaa444444a4ffffffffffeaeeeeeeaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1a1111aa4a444444a4faffffffffafeeeeeeeeaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111bb4b444444bbbbffffffffffebeeeeeebebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111bb444444b4bbbbfbffffffffffeeeeeeeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111bb444444b4bbbbbbffffffffffffffffeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b11114b444444bbbbbbbbbbffffffffffffffeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b11114b444444bbbbbbbbbbfbffffffffffffeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111444444b4bbbbbbbbbbbbffffffffffffeebbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111444444b4bbbbbbbbbbbbbbffffffffffbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111444444bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b1111444444bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb1b11114444b4bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c11114444c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c11114444cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c11114444cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c111144c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c111144c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c111144cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c111144cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c1111c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c1111c4cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc1c1111c4ccccccccccccccccccccccccccccccccccccccccccddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000") -function inline__P498622(s) { +function control___screen_inline__P25936(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -945,23 +962,23 @@ switch (step) { case 1: r0 = pxsim_numops_toBoolDecr(true); if (!r0) { step = 4; continue; } - globals.__updated___498619 = (false); - s.tmp_0 = pause__P495158_mk(s); + globals.__updated___25933 = (false); + s.tmp_0 = pause__P22108_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___498619); + r0 = pxsim_numops_toBoolDecr(globals.__updated___25933); 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__P496529_mk(s); + s.tmp_2 = control___screen_update__P23485_mk(s); s.callLocIdx = 3; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - globals.__updated___498619 = (true); + globals.__updated___25933 = (true); case 2: case 3: { step = 1; continue; } @@ -970,12 +987,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P498622.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__P25936.info = {"start":396,"length":211,"line":17,"column":26,"endLine":26,"endColumn":5,"fileName":"pxt_modules/screen/frame.ts","functionName":"inline","argumentNames":[]} -function inline__P498622_mk(s) { +function control___screen_inline__P25936_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P498622, depth: s.depth + 1, + parent: s, fn: control___screen_inline__P25936, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -986,7 +1003,7 @@ function inline__P498622_mk(s) { -function inline__P498640(s) { +function _screen_internal_inline__P25954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -996,17 +1013,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore.updateScreen(globals.screen___496568); + r0 = pxsim_pxtcore.updateScreen(globals.screen___23524); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P498640.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__P25954.info = {"start":753,"length":26,"line":22,"column":33,"endLine":22,"endColumn":59,"fileName":"pxt_modules/screen/targetoverrides.ts","functionName":"inline","argumentNames":[]} -function inline__P498640_mk(s) { +function _screen_internal_inline__P25954_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P498640, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P25954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -1014,7 +1031,7 @@ function inline__P498640_mk(s) { -function inline__P498645(s) { +function _screen_internal_inline__P25959(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1033,12 +1050,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P498645.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__P25959.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__P498645_mk(s) { +function _screen_internal_inline__P25959_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P498645, depth: s.depth + 1, + parent: s, fn: _screen_internal_inline__P25959, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -1047,7 +1064,7 @@ function inline__P498645_mk(s) { -function inline__P498760(s) { +function info_inline__P26083(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1061,36 +1078,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.infoState___498756); + r0 = pxsim_numops_toBoolDecr(globals.infoState___26079); if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___498758); + r0 = pxsim_numops_toBoolDecr(globals.infoStateStack___26081); 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___498758 = (r0); + globals.infoStateStack___26081 = (r0); case 1: case 2: r0 = pxsim_pxtrt.mkMap(); s.tmp_0 = r0; - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___498756); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "state", globals.infoState___26079); r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "scene", s.arg0); - r0 = pxsim_Array__push(globals.infoStateStack___498758, s.tmp_0); - globals.infoState___498756 = (undefined); + r0 = pxsim_Array__push(globals.infoStateStack___26081, s.tmp_0); + globals.infoState___26079 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P498760.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__P26083.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__P498760_mk(s) { +function info_inline__P26083_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P498760, depth: s.depth + 1, + parent: s, fn: info_inline__P26083, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1101,7 +1118,7 @@ function inline__P498760_mk(s) { -function inline__P498775(s) { +function info_inline__P26098(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1111,30 +1128,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___498776 = undefined; - s.nextState___498785 = undefined; - s.tmp_0 = game_currentScene__P497302_mk(s); + s.scene___26099 = undefined; + s.nextState___26108 = undefined; + s.tmp_0 = game_currentScene__P24380_mk(s); s.callLocIdx = 19; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___498776 = (r0); - globals.infoState___498756 = (undefined); - s.tmp_0 = r0 = globals.infoStateStack___498758; + s.scene___26099 = (r0); + globals.infoState___26079 = (undefined); + s.tmp_0 = r0 = globals.infoStateStack___26081; 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___498758); + r0 = pxsim_Array__length(globals.infoStateStack___26081); 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___498758); - s.nextState___498785 = (r0); + r0 = pxsim_Array_.pop(globals.infoStateStack___26081); + s.nextState___26108 = (r0); s.tmp_2 = if_scene_1_mk(s); - s.tmp_2.arg0 = s.nextState___498785; + s.tmp_2.arg0 = s.nextState___26108; if (!s.tmp_2.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "scene"); } else { @@ -1146,12 +1163,12 @@ switch (step) { case 8: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 == s.scene___498776); + r0 = (s.tmp_1 == s.scene___26099); 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___498785; + s.tmp_3.arg0 = s.nextState___26108; if (!s.tmp_3.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_3.arg0, "state"); } else { @@ -1162,10 +1179,10 @@ switch (step) { } case 9: r0 = s.retval; - globals.infoState___498756 = (r0); + globals.infoState___26079 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.infoStateStack___498758, s.nextState___498785); + r0 = pxsim_Array__push(globals.infoStateStack___26081, s.nextState___26108); case 4: case 5: case 6: @@ -1173,133 +1190,26 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P498775.info = {"start":2211,"length":376,"line":84,"column":28,"endLine":95,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} - -function inline__P498775_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P498775, depth: s.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___498776: undefined, - nextState___498785: undefined, -} } - - - - - -function inline__P499210(s) { -let r0 = s.r0, 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___499211 = undefined; - s.tmp_0 = control_ramSize__P495091_mk(s); - s.callLocIdx = 28; s.pc = 6; return s.tmp_0; - case 6: - r0 = s.retval; - s.sz___499211 = (r0); - r0 = (s.sz___499211 <= 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___499211 <= 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__P499210.info = {"start":223,"length":217,"line":8,"column":25,"endLine":17,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} +info_inline__P26098.info = {"start":2287,"length":376,"line":86,"column":28,"endLine":97,"endColumn":5,"fileName":"pxt_modules/game/info.ts","functionName":"inline","argumentNames":[]} -function inline__P499210_mk(s) { +function info_inline__P26098_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P499210, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - sz___499211: undefined, -} } - - - - - -function inline__P499302(s) { -let r0 = s.r0, 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__P499302.info = {"start":860,"length":117,"line":31,"column":40,"endLine":34,"endColumn":5,"fileName":"pxt_modules/game/texteffects.ts","functionName":"inline","argumentNames":[]} - -function inline__P499302_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P499302, depth: s.depth + 1, + parent: s, fn: info_inline__P26098, depth: s.depth + 1, pc: 0, retval: undefined, 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, + scene___26099: undefined, + nextState___26108: undefined, } } -function inline__P499315(s) { +function color_inline__P29330(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1309,233 +1219,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 = 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__P494880_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); + r0 = pxsim_numops_toBoolDecr(globals.currentScene___29327); 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__P494879_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__P499315.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__P499315_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P499315, depth: s.depth + 1, - pc: 0, retval: undefined, 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__P501525(s) { -let r0 = s.r0, 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.currentScene___501522); - if (!r0) { step = 3; continue; } - r0 = pxsim_numops_toBoolDecr(globals.FadeStack___501523); + r0 = pxsim_numops_toBoolDecr(globals.FadeStack___29328); 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.FadeStack___501523 = (r0); + globals.FadeStack___29328 = (r0); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(color_FadeState__C501517_VT); + r0 = pxsim_pxtcore_mkClassInstance(color_FadeState__C29322_VT); s.tmp_0 = r0; - s.tmp_1 = color_FadeState_constructor__P501518_mk(s); + s.tmp_1 = color_FadeState_constructor__P29323_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.activeFade___501266; - s.tmp_1.arg2 = globals.currentScene___501522; - s.callLocIdx = 176; s.pc = 5; return s.tmp_1; + s.tmp_1.arg1 = globals.activeFade___29071; + s.tmp_1.arg2 = globals.currentScene___29327; + s.callLocIdx = 187; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(globals.FadeStack___501523, s.tmp_0); - globals.activeFade___501266 = (undefined); - globals.currentScene___501522 = (undefined); + r0 = pxsim_Array__push(globals.FadeStack___29328, s.tmp_0); + globals.activeFade___29071 = (undefined); + globals.currentScene___29327 = (undefined); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P501525.info = {"start":5238,"length":328,"line":184,"column":29,"endLine":198,"endColumn":5,"fileName":"fade.ts","functionName":"inline","argumentNames":[]} +color_inline__P29330.info = {"start":5238,"length":328,"line":184,"column":29,"endLine":198,"endColumn":5,"fileName":"fade.ts","functionName":"inline","argumentNames":[]} -function inline__P501525_mk(s) { +function color_inline__P29330_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501525, depth: s.depth + 1, + parent: s, fn: color_inline__P29330, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1545,7 +1264,7 @@ function inline__P501525_mk(s) { -function inline__P501543(s) { +function color_inline__P29348(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1555,42 +1274,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___501544 = undefined; - s.nextState___501555 = undefined; - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 178; s.pc = 7; return s.tmp_0; + s.scene___29349 = undefined; + s.nextState___29360 = undefined; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 189; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.scene___501544 = (r0); - globals.currentScene___501522 = (undefined); - globals.activeFade___501266 = (undefined); - s.tmp_0 = r0 = globals.FadeStack___501523; + s.scene___29349 = (r0); + globals.currentScene___29327 = (undefined); + globals.activeFade___29071 = (undefined); + s.tmp_0 = r0 = globals.FadeStack___29328; 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.FadeStack___501523); + r0 = pxsim_Array__length(globals.FadeStack___29328); 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.FadeStack___501523); - s.nextState___501555 = (r0); - r0 = s.nextState___501555.fields["scene"]; + r0 = pxsim_Array_.pop(globals.FadeStack___29328); + s.nextState___29360 = (r0); + r0 = s.nextState___29360.fields["scene"]; s.tmp_1 = r0; - r0 = (s.tmp_1 === s.scene___501544); + r0 = (s.tmp_1 === s.scene___29349); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = s.nextState___501555.fields["state"]; - globals.activeFade___501266 = (r0); - r0 = s.nextState___501555.fields["scene"]; - globals.currentScene___501522 = (r0); + r0 = s.nextState___29360.fields["state"]; + globals.activeFade___29071 = (r0); + r0 = s.nextState___29360.fields["scene"]; + globals.currentScene___29327 = (r0); { step = 4; continue; } case 3: - r0 = pxsim_Array__push(globals.FadeStack___501523, s.nextState___501555); + r0 = pxsim_Array__push(globals.FadeStack___29328, s.nextState___29360); case 4: case 5: case 6: @@ -1598,24 +1317,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P501543.info = {"start":5598,"length":442,"line":200,"column":28,"endLine":214,"endColumn":5,"fileName":"fade.ts","functionName":"inline","argumentNames":[]} +color_inline__P29348.info = {"start":5598,"length":442,"line":200,"column":28,"endLine":214,"endColumn":5,"fileName":"fade.ts","functionName":"inline","argumentNames":[]} -function inline__P501543_mk(s) { +function color_inline__P29348_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501543, depth: s.depth + 1, + parent: s, fn: color_inline__P29348, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - scene___501544: undefined, - nextState___501555: undefined, + scene___29349: undefined, + nextState___29360: undefined, } } -function inline__P501776(s) { +function inline__P29593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1625,261 +1344,261 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.grayArcade___501801 = undefined; - s.tmp_0 = color_setPalette__P498393_mk(s); - s.tmp_0.arg0 = globals.Adafruit___498433; + s.grayArcade___29618 = undefined; + s.tmp_0 = color_setPalette__P25700_mk(s); + s.tmp_0.arg0 = globals.Adafruit___25741; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; s.tmp_0.arg3 = 0; - s.callLocIdx = 227; s.pc = 1; return s.tmp_0; + s.callLocIdx = 239; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = color_FadeEffect_startScreenEffect__P498391_mk(s); - s.tmp_0.arg0 = globals.Darken___498448; + s.tmp_0 = color_FadeEffect_startScreenEffect__P25698_mk(s); + s.tmp_0.arg0 = globals.Darken___25756; s.tmp_0.arg1 = 1000; - s.callLocIdx = 228; s.pc = 2; return s.tmp_0; + s.callLocIdx = 240; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = color_pauseUntilFadeDone__P498430_mk(s); - s.callLocIdx = 229; s.pc = 3; return s.tmp_0; + s.tmp_0 = color_pauseUntilFadeDone__P25738_mk(s); + s.callLocIdx = 241; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = color_FadeEffect_startScreenEffect__P498391_mk(s); - s.tmp_0.arg0 = globals.Brighten___498449; + s.tmp_0 = color_FadeEffect_startScreenEffect__P25698_mk(s); + s.tmp_0.arg0 = globals.Brighten___25757; s.tmp_0.arg1 = 1000; - s.callLocIdx = 230; s.pc = 4; return s.tmp_0; + s.callLocIdx = 242; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = color_pauseUntilFadeDone__P498430_mk(s); - s.callLocIdx = 231; s.pc = 5; return s.tmp_0; + s.tmp_0 = color_pauseUntilFadeDone__P25738_mk(s); + s.callLocIdx = 243; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = color_FadeEffect_startScreenEffect__P498391_mk(s); - s.tmp_0.arg0 = globals.FadeToBlack___498446; + s.tmp_0 = color_FadeEffect_startScreenEffect__P25698_mk(s); + s.tmp_0.arg0 = globals.FadeToBlack___25754; s.tmp_0.arg1 = 2000; - s.callLocIdx = 232; s.pc = 6; return s.tmp_0; + s.callLocIdx = 244; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = color_FadeEffect_startScreenEffect__P498391_mk(s); - s.tmp_0.arg0 = globals.RotatePalette___498450; + s.tmp_0 = color_FadeEffect_startScreenEffect__P25698_mk(s); + s.tmp_0.arg0 = globals.RotatePalette___25758; s.tmp_0.arg1 = 2000; - s.callLocIdx = 233; s.pc = 7; return s.tmp_0; + s.callLocIdx = 245; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C498409_VT); + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); s.tmp_0 = r0; r0 = undefined; - s.tmp_1 = color_Fade_start__P498414_mk(s); - s.tmp_2 = color_Fade_setEndPalette__P498419_mk(s); + s.tmp_1 = color_Fade_start__P25721_mk(s); + s.tmp_2 = color_Fade_setEndPalette__P25726_mk(s); s.tmp_2.arg0 = s.tmp_0; - s.tmp_2.arg1 = globals.Black___498443; - s.callLocIdx = 235; s.pc = 9; return s.tmp_2; + s.tmp_2.arg1 = globals.Black___25751; + s.callLocIdx = 247; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 2000; - s.callLocIdx = 236; s.pc = 8; return s.tmp_1; + s.callLocIdx = 248; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - s.tmp_0 = pause__P495158_mk(s); + s.tmp_0 = pause__P22108_mk(s); s.tmp_0.arg0 = 3000; - s.callLocIdx = 237; s.pc = 10; return s.tmp_0; + s.callLocIdx = 249; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - s.tmp_0 = color_startFadeUntilDone__P498429_mk(s); - s.tmp_0.arg0 = globals.Arcade___498442; - s.tmp_0.arg1 = globals.Adafruit___498433; + s.tmp_0 = color_startFadeUntilDone__P25737_mk(s); + s.tmp_0.arg0 = globals.Arcade___25750; + s.tmp_0.arg1 = globals.Adafruit___25741; s.tmp_0.arg2 = 2000; - s.callLocIdx = 238; s.pc = 11; return s.tmp_0; + s.callLocIdx = 250; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = color_startFadeUntilDone__P498429_mk(s); - s.tmp_0.arg0 = globals.Adafruit___498433; - s.tmp_0.arg1 = globals.Matte___498434; + s.tmp_0 = color_startFadeUntilDone__P25737_mk(s); + s.tmp_0.arg0 = globals.Adafruit___25741; + s.tmp_0.arg1 = globals.Matte___25742; s.tmp_0.arg2 = 2000; - s.callLocIdx = 239; s.pc = 12; return s.tmp_0; + s.callLocIdx = 251; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = color__clone__P498407_mk(s); - s.tmp_0.arg0 = globals.Arcade___498442; - s.callLocIdx = 240; s.pc = 13; return s.tmp_0; + s.tmp_0 = color__clone__P25714_mk(s); + s.tmp_0.arg0 = globals.Arcade___25750; + s.callLocIdx = 252; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.grayArcade___501801 = (r0); - s.tmp_0 = color_ColorBuffer_setColor__P498356_mk(s); - s.tmp_0.arg0 = s.grayArcade___501801; + s.grayArcade___29618 = (r0); + s.tmp_0 = color_ColorBuffer_setColor__P25663_mk(s); + s.tmp_0.arg0 = s.grayArcade___29618; s.tmp_0.arg1 = 15; s.tmp_0.arg2 = 7566195; - s.callLocIdx = 241; s.pc = 14; return s.tmp_0; + s.callLocIdx = 253; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.tmp_0 = color_startFadeUntilDone__P498429_mk(s); - s.tmp_0.arg0 = s.grayArcade___501801; - s.tmp_0.arg1 = globals.Arcade___498442; + s.tmp_0 = color_startFadeUntilDone__P25737_mk(s); + s.tmp_0.arg0 = s.grayArcade___29618; + s.tmp_0.arg1 = globals.Arcade___25750; s.tmp_0.arg2 = 1000; - s.callLocIdx = 242; s.pc = 15; return s.tmp_0; + s.callLocIdx = 254; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - s.tmp_0 = color_startFadeUntilDone__P498429_mk(s); - s.tmp_0.arg0 = globals.Arcade___498442; - s.tmp_0.arg1 = globals.Black___498443; + s.tmp_0 = color_startFadeUntilDone__P25737_mk(s); + s.tmp_0.arg0 = globals.Arcade___25750; + s.tmp_0.arg1 = globals.Black___25751; s.tmp_0.arg2 = 2000; - s.callLocIdx = 243; s.pc = 16; return s.tmp_0; + s.callLocIdx = 255; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = color_startFadeUntilDone__P498429_mk(s); - s.tmp_1 = color_currentPalette__P498406_mk(s); - s.callLocIdx = 244; s.pc = 18; return s.tmp_1; + s.tmp_0 = color_startFadeUntilDone__P25737_mk(s); + s.tmp_1 = color_currentPalette__P25713_mk(s); + s.callLocIdx = 256; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.GrayScale___498435; + s.tmp_0.arg1 = globals.GrayScale___25743; s.tmp_0.arg2 = 2000; - s.callLocIdx = 245; s.pc = 17; return s.tmp_0; + s.callLocIdx = 257; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C498409_VT); - s.tmp_0 = r0; - r0 = undefined; - s.tmp_1 = color_Fade_startUntilDone__P498415_mk(s); - s.tmp_2 = color_Fade_mapEndRGB__P498426_mk(s); - s.tmp_3 = color_Fade_reverse__P498424_mk(s); - s.tmp_4 = color_Fade_startUntilDone__P498415_mk(s); - s.tmp_5 = color_Fade_reverse__P498424_mk(s); - s.tmp_6 = color_Fade_pauseUntilDone__P498423_mk(s); - s.tmp_7 = color_Fade_start__P498414_mk(s); - s.tmp_8 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_9 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_10 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_11 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_12 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_13 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_14 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_15 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_16 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_17 = color_Fade_setEndColor__P498420_mk(s); - s.tmp_18 = color_Fade_setEndColor__P498420_mk(s); + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); + s.tmp_0 = r0; + r0 = undefined; + s.tmp_1 = color_Fade_startUntilDone__P25722_mk(s); + s.tmp_2 = color_Fade_mapEndRGB__P25733_mk(s); + s.tmp_3 = color_Fade_reverse__P25731_mk(s); + s.tmp_4 = color_Fade_startUntilDone__P25722_mk(s); + s.tmp_5 = color_Fade_reverse__P25731_mk(s); + s.tmp_6 = color_Fade_pauseUntilDone__P25730_mk(s); + s.tmp_7 = color_Fade_start__P25721_mk(s); + s.tmp_8 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_9 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_10 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_11 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_12 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_13 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_14 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_15 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_16 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_17 = color_Fade_setEndColor__P25727_mk(s); + s.tmp_18 = color_Fade_setEndColor__P25727_mk(s); s.tmp_18.arg0 = s.tmp_0; s.tmp_18.arg1 = 1; s.tmp_18.arg2 = 16711680; - s.callLocIdx = 247; s.pc = 36; return s.tmp_18; + s.callLocIdx = 259; s.pc = 36; return s.tmp_18; case 36: r0 = s.retval; s.tmp_17.arg0 = r0; s.tmp_17.arg1 = 2; s.tmp_17.arg2 = 65280; - s.callLocIdx = 248; s.pc = 35; return s.tmp_17; + s.callLocIdx = 260; s.pc = 35; return s.tmp_17; case 35: r0 = s.retval; s.tmp_16.arg0 = r0; s.tmp_16.arg1 = 3; s.tmp_16.arg2 = 255; - s.callLocIdx = 249; s.pc = 34; return s.tmp_16; + s.callLocIdx = 261; s.pc = 34; return s.tmp_16; case 34: r0 = s.retval; s.tmp_15.arg0 = r0; s.tmp_15.arg1 = 4; s.tmp_15.arg2 = 16711935; - s.callLocIdx = 250; s.pc = 33; return s.tmp_15; + s.callLocIdx = 262; s.pc = 33; return s.tmp_15; case 33: r0 = s.retval; s.tmp_14.arg0 = r0; s.tmp_14.arg1 = 5; s.tmp_14.arg2 = 16776960; - s.callLocIdx = 251; s.pc = 32; return s.tmp_14; + s.callLocIdx = 263; s.pc = 32; return s.tmp_14; case 32: r0 = s.retval; s.tmp_13.arg0 = r0; s.tmp_13.arg1 = 6; s.tmp_13.arg2 = 65535; - s.callLocIdx = 252; s.pc = 31; return s.tmp_13; + s.callLocIdx = 264; s.pc = 31; return s.tmp_13; case 31: r0 = s.retval; s.tmp_12.arg0 = r0; s.tmp_12.arg1 = 10; s.tmp_12.arg2 = 11184810; - s.callLocIdx = 253; s.pc = 30; return s.tmp_12; + s.callLocIdx = 265; s.pc = 30; return s.tmp_12; case 30: r0 = s.retval; s.tmp_11.arg0 = r0; s.tmp_11.arg1 = 11; s.tmp_11.arg2 = 369335; - s.callLocIdx = 254; s.pc = 29; return s.tmp_11; + s.callLocIdx = 266; s.pc = 29; return s.tmp_11; case 29: r0 = s.retval; s.tmp_10.arg0 = r0; s.tmp_10.arg1 = 12; s.tmp_10.arg2 = 6785415; - s.callLocIdx = 255; s.pc = 28; return s.tmp_10; + s.callLocIdx = 267; s.pc = 28; return s.tmp_10; case 28: r0 = s.retval; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = 13; s.tmp_9.arg2 = 1193046; - s.callLocIdx = 256; s.pc = 27; return s.tmp_9; + s.callLocIdx = 268; s.pc = 27; return s.tmp_9; case 27: r0 = s.retval; s.tmp_8.arg0 = r0; s.tmp_8.arg1 = 15; s.tmp_8.arg2 = 16777215; - s.callLocIdx = 257; s.pc = 26; return s.tmp_8; + s.callLocIdx = 269; s.pc = 26; return s.tmp_8; case 26: r0 = s.retval; s.tmp_7.arg0 = r0; s.tmp_7.arg1 = 2000; - s.callLocIdx = 258; s.pc = 25; return s.tmp_7; + s.callLocIdx = 270; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_6.arg0 = r0; - s.callLocIdx = 259; s.pc = 24; return s.tmp_6; + s.callLocIdx = 271; s.pc = 24; return s.tmp_6; case 24: r0 = s.retval; s.tmp_5.arg0 = r0; - s.callLocIdx = 260; s.pc = 23; return s.tmp_5; + s.callLocIdx = 272; s.pc = 23; return s.tmp_5; case 23: r0 = s.retval; s.tmp_4.arg0 = r0; s.tmp_4.arg1 = 2000; - s.callLocIdx = 261; s.pc = 22; return s.tmp_4; + s.callLocIdx = 273; s.pc = 22; return s.tmp_4; case 22: r0 = s.retval; s.tmp_3.arg0 = r0; - s.callLocIdx = 262; s.pc = 21; return s.tmp_3; + s.callLocIdx = 274; s.pc = 21; return s.tmp_3; case 21: r0 = s.retval; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P501838; + s.tmp_2.arg1 = startUntilDone_inline__P29655; s.tmp_2.arg2 = undefined; s.tmp_2.arg3 = undefined; - s.callLocIdx = 269; s.pc = 20; return s.tmp_2; + s.callLocIdx = 281; s.pc = 20; return s.tmp_2; case 20: r0 = s.retval; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 1000; - s.callLocIdx = 270; s.pc = 19; return s.tmp_1; + s.callLocIdx = 282; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; - s.tmp_0 = color_startFadeUntilDone__P498429_mk(s); - s.tmp_1 = color_currentPalette__P498406_mk(s); - s.callLocIdx = 271; s.pc = 38; return s.tmp_1; + s.tmp_0 = color_startFadeUntilDone__P25737_mk(s); + s.tmp_1 = color_currentPalette__P25713_mk(s); + s.callLocIdx = 283; s.pc = 38; return s.tmp_1; case 38: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = globals.White___498444; + s.tmp_0.arg1 = globals.White___25752; s.tmp_0.arg2 = 2000; - s.callLocIdx = 272; s.pc = 37; return s.tmp_0; + s.callLocIdx = 284; s.pc = 37; return s.tmp_0; case 37: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P501776.info = {"start":39286,"length":1623,"line":131,"column":9,"endLine":179,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":[]} +inline__P29593.info = {"start":39286,"length":1623,"line":131,"column":9,"endLine":179,"endColumn":1,"fileName":"test.ts","functionName":"inline","argumentNames":[]} -function inline__P501776_mk(s) { +function inline__P29593_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501776, depth: s.depth + 1, + parent: s, fn: inline__P29593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1900,14 +1619,14 @@ function inline__P501776_mk(s) { tmp_16: undefined, tmp_17: undefined, tmp_18: undefined, - grayArcade___501801: undefined, + grayArcade___29618: undefined, } } -function inline__P501838(s) { +function startUntilDone_inline__P29655(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1921,46 +1640,46 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = color_RGB_red__P498369_mk(s); + s.tmp_0 = color_RGB_red__P25676_mk(s); s.tmp_1 = r0 = s.arg0; s.tmp_0.arg0 = r0; r0 = s.tmp_1.fields["_r"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 127); s.tmp_0.arg1 = r0; - s.callLocIdx = 264; s.pc = 1; return s.tmp_0; + s.callLocIdx = 276; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = color_RGB_green__P498371_mk(s); + s.tmp_0 = color_RGB_green__P25678_mk(s); s.tmp_1 = r0 = s.arg0; s.tmp_0.arg0 = r0; r0 = s.tmp_1.fields["_g"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 127); s.tmp_0.arg1 = r0; - s.callLocIdx = 266; s.pc = 2; return s.tmp_0; + s.callLocIdx = 278; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = color_RGB_blue__P498373_mk(s); + s.tmp_0 = color_RGB_blue__P25680_mk(s); s.tmp_1 = r0 = s.arg0; s.tmp_0.arg0 = r0; r0 = s.tmp_1.fields["_b"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 127); s.tmp_0.arg1 = r0; - s.callLocIdx = 268; s.pc = 3; return s.tmp_0; + s.callLocIdx = 280; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = s.arg0; return leave(s, r0) default: oops() } } } -inline__P501838.info = {"start":40670,"length":132,"line":171,"column":19,"endLine":176,"endColumn":9,"fileName":"test.ts","functionName":"inline","argumentNames":["rgb"]} +startUntilDone_inline__P29655.info = {"start":40670,"length":132,"line":171,"column":19,"endLine":176,"endColumn":9,"fileName":"test.ts","functionName":"inline","argumentNames":["rgb"]} -function inline__P501838_mk(s) { +function startUntilDone_inline__P29655_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501838, depth: s.depth + 1, + parent: s, fn: startUntilDone_inline__P29655, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -1972,7 +1691,7 @@ function inline__P501838_mk(s) { -function color_bufferToPalette__P498402(s) { +function color_bufferToPalette__P25709(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -1982,40 +1701,40 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___501048 = undefined; + s.p___28853 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C498388_VT); + r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C25695_VT); s.tmp_0 = r0; - s.tmp_1 = color_ColorBuffer_constructor__P498351_mk(s); + s.tmp_1 = color_ColorBuffer_constructor__P25658_mk(s); s.tmp_1.arg0 = s.tmp_0; r0 = pxsim.BufferMethods.length(s.arg0); s.tmp_2 = r0; r0 = (s.tmp_2 / 3); s.tmp_1.arg1 = r0; s.tmp_1.arg2 = undefined; - s.callLocIdx = 107; s.pc = 1; return s.tmp_1; + s.callLocIdx = 117; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - s.p___501048 = (s.tmp_0); - r0 = (s.p___501048).fields["buf"] = (s.arg0); - r0 = s.p___501048; + s.p___28853 = (s.tmp_0); + r0 = (s.p___28853).fields["buf"] = (s.arg0); + r0 = s.p___28853; return leave(s, r0) default: oops() } } } -color_bufferToPalette__P498402.info = {"start":10280,"length":147,"line":335,"column":4,"endLine":339,"endColumn":5,"fileName":"color.ts","functionName":"bufferToPalette","argumentNames":["buf"]} +color_bufferToPalette__P25709.info = {"start":12086,"length":147,"line":384,"column":4,"endLine":388,"endColumn":5,"fileName":"color.ts","functionName":"bufferToPalette","argumentNames":["buf"]} -function color_bufferToPalette__P498402_mk(s) { +function color_bufferToPalette__P25709_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_bufferToPalette__P498402, depth: s.depth + 1, + parent: s, fn: color_bufferToPalette__P25709, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___501048: undefined, + p___28853: undefined, arg0: undefined, } } @@ -2023,7 +1742,7 @@ function color_bufferToPalette__P498402_mk(s) { -function color_ColorBuffer_constructor__P498351(s) { +function color_ColorBuffer_constructor__P25658(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2040,7 +1759,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_ColorBuffer__C498348_VT)) failedCast(r0); + if (!checkSubtype(r0, color_ColorBuffer__C25655_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } @@ -2055,9 +1774,9 @@ switch (step) { s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 | 0); s.tmp_3 = r0; - s.tmp_5 = color_ColorBuffer_stride__P498353_mk(s); + s.tmp_5 = color_ColorBuffer_stride__P25660_mk(s); s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 1164; s.pc = 3; return s.tmp_5; + s.callLocIdx = 1261; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -2070,12 +1789,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_ColorBuffer_constructor__P498351.info = {"start":338,"length":199,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"inline","argumentNames":["this","length","layout"]} +color_ColorBuffer_constructor__P25658.info = {"start":338,"length":199,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"inline","argumentNames":["this","length","layout"]} -function color_ColorBuffer_constructor__P498351_mk(s) { +function color_ColorBuffer_constructor__P25658_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_ColorBuffer_constructor__P498351, depth: s.depth + 1, + parent: s, fn: color_ColorBuffer_constructor__P25658, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2092,7 +1811,7 @@ function color_ColorBuffer_constructor__P498351_mk(s) { -function color_ColorBuffer_stride__P498353(s) { +function color_ColorBuffer_stride__P25660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2107,7 +1826,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_ColorBuffer__C498348_VT)) failedCast(r0); + if (!checkSubtype(r0, color_ColorBuffer__C25655_VT)) failedCast(r0); r0 = s.arg0.fields["layout"]; s.tmp_1 = r0; r0 = (s.tmp_1 == 0); @@ -2125,13 +1844,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -color_ColorBuffer_stride__P498353.info = {"start":737,"length":89,"line":30,"column":8,"endLine":32,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"stride","argumentNames":["this"]} -color_ColorBuffer_stride__P498353.isGetter = true; +color_ColorBuffer_stride__P25660.info = {"start":737,"length":89,"line":30,"column":8,"endLine":32,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"stride","argumentNames":["this"]} +color_ColorBuffer_stride__P25660.isGetter = true; -function color_ColorBuffer_stride__P498353_mk(s) { +function color_ColorBuffer_stride__P25660_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_ColorBuffer_stride__P498353, depth: s.depth + 1, + parent: s, fn: color_ColorBuffer_stride__P25660, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2143,7 +1862,7 @@ function color_ColorBuffer_stride__P498353_mk(s) { -function color_RGB_blue__P498373(s) { +function color_RGB_blue__P25680(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2159,13 +1878,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_RGB__C498366_VT)) failedCast(r0); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P494878_mk(s); + s.tmp_2 = Math_clamp__P21822_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = 255; s.tmp_2.arg2 = s.arg1; - s.callLocIdx = 65; s.pc = 1; return s.tmp_2; + s.callLocIdx = 54; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -2174,12 +1893,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_RGB_blue__P498373.info = {"start":947,"length":76,"line":41,"column":8,"endLine":43,"endColumn":9,"fileName":"color.ts","functionName":"blue","argumentNames":["this","v"]} +color_RGB_blue__P25680.info = {"start":947,"length":76,"line":41,"column":8,"endLine":43,"endColumn":9,"fileName":"color.ts","functionName":"blue","argumentNames":["this","v"]} -function color_RGB_blue__P498373_mk(s) { +function color_RGB_blue__P25680_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_blue__P498373, depth: s.depth + 1, + parent: s, fn: color_RGB_blue__P25680, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2192,7 +1911,7 @@ function color_RGB_blue__P498373_mk(s) { -function Math_clamp__P494878(s) { +function Math_clamp__P21822(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2208,9 +1927,9 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = Math_min__P494882_mk(s); + s.tmp_0 = Math_min__P21826_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_1 = Math_max__P494881_mk(s); + s.tmp_1 = Math_max__P21825_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg2; s.callLocIdx = 14; s.pc = 2; return s.tmp_1; @@ -2223,12 +1942,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_clamp__P494878.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__P21822.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__P494878_mk(s) { +function Math_clamp__P21822_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_clamp__P494878, depth: s.depth + 1, + parent: s, fn: Math_clamp__P21822, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2241,7 +1960,7 @@ function Math_clamp__P494878_mk(s) { -function Math_min__P494882(s) { +function Math_min__P21826(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2269,12 +1988,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_min__P494882.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__P21826.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__P494882_mk(s) { +function Math_min__P21826_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_min__P494882, depth: s.depth + 1, + parent: s, fn: Math_min__P21826, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2285,7 +2004,7 @@ function Math_min__P494882_mk(s) { -function Math_max__P494881(s) { +function Math_max__P21825(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2313,12 +2032,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_max__P494881.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__P21825.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__P494881_mk(s) { +function Math_max__P21825_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_max__P494881, depth: s.depth + 1, + parent: s, fn: Math_max__P21825, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -2329,7 +2048,7 @@ function Math_max__P494881_mk(s) { -function color_RGB_blue__P498372(s) { +function color_RGB_blue__P25679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2344,18 +2063,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_RGB__C498366_VT)) failedCast(r0); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); r0 = s.arg0.fields["_b"]; return leaveAccessor(s, r0) default: oops() } } } -color_RGB_blue__P498372.info = {"start":880,"length":58,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"color.ts","functionName":"blue","argumentNames":["this"]} -color_RGB_blue__P498372.isGetter = true; +color_RGB_blue__P25679.info = {"start":880,"length":58,"line":38,"column":8,"endLine":40,"endColumn":9,"fileName":"color.ts","functionName":"blue","argumentNames":["this"]} +color_RGB_blue__P25679.isGetter = true; -function color_RGB_blue__P498372_mk(s) { +function color_RGB_blue__P25679_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_blue__P498372, depth: s.depth + 1, + parent: s, fn: color_RGB_blue__P25679, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -2364,7 +2083,7 @@ function color_RGB_blue__P498372_mk(s) { -function color_RGB_green__P498371(s) { +function color_RGB_green__P25678(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2380,13 +2099,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_RGB__C498366_VT)) failedCast(r0); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P494878_mk(s); + s.tmp_2 = Math_clamp__P21822_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = 255; s.tmp_2.arg2 = s.arg1; - s.callLocIdx = 64; s.pc = 1; return s.tmp_2; + s.callLocIdx = 53; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -2395,12 +2114,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_RGB_green__P498371.info = {"start":793,"length":77,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"color.ts","functionName":"green","argumentNames":["this","v"]} +color_RGB_green__P25678.info = {"start":793,"length":77,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"color.ts","functionName":"green","argumentNames":["this","v"]} -function color_RGB_green__P498371_mk(s) { +function color_RGB_green__P25678_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_green__P498371, depth: s.depth + 1, + parent: s, fn: color_RGB_green__P25678, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2413,7 +2132,7 @@ function color_RGB_green__P498371_mk(s) { -function color_RGB_green__P498370(s) { +function color_RGB_green__P25677(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2428,18 +2147,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_RGB__C498366_VT)) failedCast(r0); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); r0 = s.arg0.fields["_g"]; return leaveAccessor(s, r0) default: oops() } } } -color_RGB_green__P498370.info = {"start":725,"length":59,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"color.ts","functionName":"green","argumentNames":["this"]} -color_RGB_green__P498370.isGetter = true; +color_RGB_green__P25677.info = {"start":725,"length":59,"line":31,"column":8,"endLine":33,"endColumn":9,"fileName":"color.ts","functionName":"green","argumentNames":["this"]} +color_RGB_green__P25677.isGetter = true; -function color_RGB_green__P498370_mk(s) { +function color_RGB_green__P25677_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_green__P498370, depth: s.depth + 1, + parent: s, fn: color_RGB_green__P25677, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -2448,7 +2167,7 @@ function color_RGB_green__P498370_mk(s) { -function color_RGB_red__P498369(s) { +function color_RGB_red__P25676(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2464,13 +2183,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_RGB__C498366_VT)) failedCast(r0); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P494878_mk(s); + s.tmp_2 = Math_clamp__P21822_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = 255; s.tmp_2.arg2 = s.arg1; - s.callLocIdx = 63; s.pc = 1; return s.tmp_2; + s.callLocIdx = 52; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -2479,12 +2198,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_RGB_red__P498369.info = {"start":640,"length":75,"line":27,"column":8,"endLine":29,"endColumn":9,"fileName":"color.ts","functionName":"red","argumentNames":["this","v"]} +color_RGB_red__P25676.info = {"start":640,"length":75,"line":27,"column":8,"endLine":29,"endColumn":9,"fileName":"color.ts","functionName":"red","argumentNames":["this","v"]} -function color_RGB_red__P498369_mk(s) { +function color_RGB_red__P25676_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_red__P498369, depth: s.depth + 1, + parent: s, fn: color_RGB_red__P25676, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2497,7 +2216,7 @@ function color_RGB_red__P498369_mk(s) { -function color_RGB_red__P498368(s) { +function color_RGB_red__P25675(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2512,18 +2231,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_RGB__C498366_VT)) failedCast(r0); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); r0 = s.arg0.fields["_r"]; return leaveAccessor(s, r0) default: oops() } } } -color_RGB_red__P498368.info = {"start":574,"length":57,"line":24,"column":8,"endLine":26,"endColumn":9,"fileName":"color.ts","functionName":"red","argumentNames":["this"]} -color_RGB_red__P498368.isGetter = true; +color_RGB_red__P25675.info = {"start":574,"length":57,"line":24,"column":8,"endLine":26,"endColumn":9,"fileName":"color.ts","functionName":"red","argumentNames":["this"]} +color_RGB_red__P25675.isGetter = true; -function color_RGB_red__P498368_mk(s) { +function color_RGB_red__P25675_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_red__P498368, depth: s.depth + 1, + parent: s, fn: color_RGB_red__P25675, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -2532,7 +2251,7 @@ function color_RGB_red__P498368_mk(s) { -function color_Fade_setEndColor__P498420(s) { +function color_Fade_setEndColor__P25727(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2549,29 +2268,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); - s.tmp_0 = color_ColorBuffer_setColor__P498356_mk(s); - s.tmp_1 = color_Fade_endPalette__P498412_mk(s); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); + s.tmp_0 = color_ColorBuffer_setColor__P25663_mk(s); + s.tmp_1 = color_Fade_endPalette__P25719_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 134; s.pc = 2; return s.tmp_1; + s.callLocIdx = 144; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 135; s.pc = 1; return s.tmp_0; + s.callLocIdx = 145; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = s.arg0; return leave(s, r0) default: oops() } } } -color_Fade_setEndColor__P498420.info = {"start":1784,"length":140,"line":64,"column":8,"endLine":67,"endColumn":9,"fileName":"fade.ts","functionName":"setEndColor","argumentNames":["this","index","col"]} +color_Fade_setEndColor__P25727.info = {"start":1784,"length":140,"line":64,"column":8,"endLine":67,"endColumn":9,"fileName":"fade.ts","functionName":"setEndColor","argumentNames":["this","index","col"]} -function color_Fade_setEndColor__P498420_mk(s) { +function color_Fade_setEndColor__P25727_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_setEndColor__P498420, depth: s.depth + 1, + parent: s, fn: color_Fade_setEndColor__P25727, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2584,7 +2303,7 @@ function color_Fade_setEndColor__P498420_mk(s) { -function color_Fade_endPalette__P498412(s) { +function color_Fade_endPalette__P25719(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2599,7 +2318,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); r0 = s.arg0.fields["_endPalette"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -2609,8 +2328,8 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } s.tmp_3 = r0 = s.arg0; - s.tmp_5 = color_currentPalette__P498406_mk(s); - s.callLocIdx = 124; s.pc = 3; return s.tmp_5; + s.tmp_5 = color_currentPalette__P25713_mk(s); + s.callLocIdx = 134; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -2621,12 +2340,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_Fade_endPalette__P498412.info = {"start":432,"length":181,"line":16,"column":8,"endLine":21,"endColumn":9,"fileName":"fade.ts","functionName":"endPalette","argumentNames":["this"]} +color_Fade_endPalette__P25719.info = {"start":432,"length":181,"line":16,"column":8,"endLine":21,"endColumn":9,"fileName":"fade.ts","functionName":"endPalette","argumentNames":["this"]} -function color_Fade_endPalette__P498412_mk(s) { +function color_Fade_endPalette__P25719_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_endPalette__P498412, depth: s.depth + 1, + parent: s, fn: color_Fade_endPalette__P25719, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2641,7 +2360,7 @@ function color_Fade_endPalette__P498412_mk(s) { -function color_Fade_pauseUntilDone__P498423(s) { +function color_Fade_pauseUntilDone__P25730(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2656,26 +2375,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P501369); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, color_Fade_pauseUntilDone_inline__P29174); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = pauseUntil__P495112_mk(s); + s.tmp_1 = pauseUntil__P22062_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 148; s.pc = 1; return s.tmp_1; + s.callLocIdx = 159; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = s.arg0; return leave(s, r0) default: oops() } } } -color_Fade_pauseUntilDone__P498423.info = {"start":2872,"length":114,"line":102,"column":8,"endLine":105,"endColumn":9,"fileName":"fade.ts","functionName":"pauseUntilDone","argumentNames":["this"]} +color_Fade_pauseUntilDone__P25730.info = {"start":2872,"length":114,"line":102,"column":8,"endLine":105,"endColumn":9,"fileName":"fade.ts","functionName":"pauseUntilDone","argumentNames":["this"]} -function color_Fade_pauseUntilDone__P498423_mk(s) { +function color_Fade_pauseUntilDone__P25730_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_pauseUntilDone__P498423, depth: s.depth + 1, + parent: s, fn: color_Fade_pauseUntilDone__P25730, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2686,7 +2405,7 @@ function color_Fade_pauseUntilDone__P498423_mk(s) { -function inline__P501369(s) { +function color_Fade_pauseUntilDone_inline__P29174(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2696,9 +2415,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_2 = color_Fade_isActive__P498413_mk(s); + s.tmp_2 = color_Fade_isActive__P25720_mk(s); s.tmp_2.arg0 = s.caps[0]; - s.callLocIdx = 147; s.pc = 1; return s.tmp_2; + s.callLocIdx = 158; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -2708,12 +2427,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P501369.info = {"start":2927,"length":22,"line":103,"column":23,"endLine":103,"endColumn":45,"fileName":"fade.ts","functionName":"inline","argumentNames":[]} +color_Fade_pauseUntilDone_inline__P29174.info = {"start":2927,"length":22,"line":103,"column":23,"endLine":103,"endColumn":45,"fileName":"fade.ts","functionName":"inline","argumentNames":[]} -function inline__P501369_mk(s) { +function color_Fade_pauseUntilDone_inline__P29174_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501369, depth: s.depth + 1, + parent: s, fn: color_Fade_pauseUntilDone_inline__P29174, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2724,7 +2443,7 @@ function inline__P501369_mk(s) { -function color_Fade_isActive__P498413(s) { +function color_Fade_isActive__P25720(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2739,7 +2458,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); r0 = s.arg0.fields["startTime"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -2766,8 +2485,8 @@ switch (step) { s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - s.tmp_8 = game_runtime__P497318_mk(s); - s.callLocIdx = 125; s.pc = 5; return s.tmp_8; + s.tmp_8 = game_runtime__P24401_mk(s); + s.callLocIdx = 135; s.pc = 5; return s.tmp_8; case 5: r0 = s.retval; s.tmp_7 = r0; @@ -2779,12 +2498,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_Fade_isActive__P498413.info = {"start":623,"length":201,"line":23,"column":8,"endLine":27,"endColumn":9,"fileName":"fade.ts","functionName":"isActive","argumentNames":["this"]} +color_Fade_isActive__P25720.info = {"start":623,"length":201,"line":23,"column":8,"endLine":27,"endColumn":9,"fileName":"fade.ts","functionName":"isActive","argumentNames":["this"]} -function color_Fade_isActive__P498413_mk(s) { +function color_Fade_isActive__P25720_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_isActive__P498413, depth: s.depth + 1, + parent: s, fn: color_Fade_isActive__P25720, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2803,7 +2522,7 @@ function color_Fade_isActive__P498413_mk(s) { -function game_runtime__P497318(s) { +function game_runtime__P24401(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2813,8 +2532,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = game_currentScene__P497302_mk(s); - s.callLocIdx = 840; s.pc = 1; return s.tmp_1; + s.tmp_1 = game_currentScene__P24380_mk(s); + s.callLocIdx = 948; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; @@ -2822,12 +2541,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_runtime__P497318.info = {"start":10291,"length":81,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"runtime","argumentNames":[]} +game_runtime__P24401.info = {"start":1504,"length":81,"line":46,"column":4,"endLine":48,"endColumn":5,"fileName":"pxt_modules/game/gameutil.ts","functionName":"runtime","argumentNames":[]} -function game_runtime__P497318_mk(s) { +function game_runtime__P24401_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_runtime__P497318, depth: s.depth + 1, + parent: s, fn: game_runtime__P24401, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2837,7 +2556,7 @@ function game_runtime__P497318_mk(s) { -function scene_Scene_millis__P497213(s) { +function scene_Scene_millis__P24291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2852,17 +2571,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C497189_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C24266_VT)) failedCast(r0); r0 = s.arg0.fields["_millis"]; return leave(s, r0) default: oops() } } } -scene_Scene_millis__P497213.info = {"start":6788,"length":61,"line":189,"column":8,"endLine":191,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} +scene_Scene_millis__P24291.info = {"start":6898,"length":61,"line":191,"column":8,"endLine":193,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"millis","argumentNames":["this"]} -function scene_Scene_millis__P497213_mk(s) { +function scene_Scene_millis__P24291_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_millis__P497213, depth: s.depth + 1, + parent: s, fn: scene_Scene_millis__P24291, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -2871,7 +2590,7 @@ function scene_Scene_millis__P497213_mk(s) { -function pauseUntil__P495112(s) { +function pauseUntil__P22062(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2918,7 +2637,7 @@ switch (step) { s.arg1 = (0); case 5: case 6: - s.tmp_0 = control___queuePollEvent__P495111_mk(s); + s.tmp_0 = control___queuePollEvent__P22061_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = undefined; @@ -2930,12 +2649,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pauseUntil__P495112.info = {"start":2205,"length":227,"line":73,"column":0,"endLine":77,"endColumn":1,"fileName":"pxt_modules/base/poll.ts","functionName":"pauseUntil","argumentNames":["condition","timeOut"]} +pauseUntil__P22062.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 pauseUntil__P495112_mk(s) { +function pauseUntil__P22062_mk(s) { checkStack(s.depth); return { - parent: s, fn: pauseUntil__P495112, depth: s.depth + 1, + parent: s, fn: pauseUntil__P22062, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -2951,7 +2670,7 @@ function pauseUntil__P495112_mk(s) { -function control___queuePollEvent__P495111(s) { +function control___queuePollEvent__P22061(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -2961,20 +2680,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ev___501958 = undefined; + s.ev___29775 = 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__C498505_VT); + r0 = pxsim_pxtcore_mkClassInstance(control_PollEvent__C25817_VT); s.tmp_0 = r0; - s.tmp_1 = control_PollEvent_constructor__P498506_mk(s); + s.tmp_1 = control_PollEvent_constructor__P25818_mk(s); s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = 1023; r0 = pxsim.control.allocateNotifyEvent(); - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = 1; + s.tmp_1.arg2 = r0; r0 = pxsim.control.millis(); s.tmp_1.arg3 = r0; s.tmp_1.arg4 = s.arg0; @@ -2986,8 +2705,8 @@ switch (step) { s.callLocIdx = 27; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - s.ev___501958 = (s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___498508); + s.ev___29775 = (s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals._pollEventQueue___25820); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -2995,19 +2714,19 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = pxsim_Array__mk(); s.tmp_2 = r0; - r0 = pxsim_Array__push(s.tmp_2, s.ev___501958); - globals._pollEventQueue___498508 = (s.tmp_2); - r0 = pxsim.control.runInParallel(control_pollEvents__P498509); + r0 = pxsim_Array__push(s.tmp_2, s.ev___29775); + globals._pollEventQueue___25820 = (s.tmp_2); + r0 = pxsim.control.runInParallel(control_pollEvents__P25821); { step = 2; continue; } case 1: - r0 = pxsim_Array__push(globals._pollEventQueue___498508, s.ev___501958); + r0 = pxsim_Array__push(globals._pollEventQueue___25820, s.ev___29775); case 2: r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 3; continue; } - s.tmp_0 = control_onEvent__P495136_mk(s); - r0 = s.ev___501958.fields["eid"]; + s.tmp_0 = control_onEvent__P22086_mk(s); + r0 = s.ev___29775.fields["eid"]; s.tmp_0.arg0 = r0; - r0 = s.ev___501958.fields["vid"]; + r0 = s.ev___29775.fields["vid"]; s.tmp_0.arg1 = r0; s.tmp_0.arg2 = s.arg2; s.tmp_0.arg3 = 16; @@ -3016,9 +2735,9 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - r0 = s.ev___501958.fields["eid"]; + r0 = s.ev___29775.fields["eid"]; s.tmp_0 = r0; - r0 = s.ev___501958.fields["vid"]; + r0 = s.ev___29775.fields["vid"]; s.tmp_1 = r0; setupResume(s, 7); pxsim.control.waitForEvent(s.tmp_0, s.tmp_1); @@ -3031,17 +2750,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___queuePollEvent__P495111.info = {"start":1262,"length":739,"line":39,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"__queuePollEvent","argumentNames":["timeOut","condition","handler"]} +control___queuePollEvent__P22061.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 control___queuePollEvent__P495111_mk(s) { +function control___queuePollEvent__P22061_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___queuePollEvent__P495111, depth: s.depth + 1, + parent: s, fn: control___queuePollEvent__P22061, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ev___501958: undefined, + ev___29775: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3051,7 +2770,7 @@ function control___queuePollEvent__P495111_mk(s) { -function control_pollEvents__P498509(s) { +function control_pollEvents__P25821(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3061,31 +2780,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.now___502084 = undefined; - s.i___502087 = undefined; - s.ev___502093 = undefined; + s.now___29902 = undefined; + s.i___29905 = undefined; + s.ev___29911 = undefined; case 1: - r0 = pxsim_Array__length(globals._pollEventQueue___498508); + r0 = pxsim_Array__length(globals._pollEventQueue___25820); 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___502084 = (r0); - s.i___502087 = (0); + s.now___29902 = (r0); + s.i___29905 = (0); case 2: - s.tmp_1 = r0 = s.i___502087; - r0 = pxsim_Array__length(globals._pollEventQueue___498508); + s.tmp_1 = r0 = s.i___29905; + r0 = pxsim_Array__length(globals._pollEventQueue___25820); 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___498508, s.i___502087); - s.ev___502093 = (r0); + r0 = pxsim_Array__getAt(globals._pollEventQueue___25820, s.i___29905); + s.ev___29911 = (r0); s.tmp_1 = if_condition_1_mk(s); - s.tmp_1.arg0 = s.ev___502093; + s.tmp_1.arg0 = s.ev___29911; if (!s.tmp_1.arg0.vtable.iface) { setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "condition"), 1); s.callLocIdx = 24; s.pc = 13; return s.tmp_1; @@ -3103,7 +2822,7 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 3: - r0 = s.ev___502093.fields["timeOut"]; + r0 = s.ev___29911.fields["timeOut"]; s.tmp_3 = r0; r0 = (s.tmp_3 > 0); s.tmp_2 = r0; @@ -3112,11 +2831,11 @@ switch (step) { r0 = s.tmp_2; { step = 5; continue; } case 4: - r0 = s.ev___502093.fields["start"]; + r0 = s.ev___29911.fields["start"]; s.tmp_5 = r0; - r0 = (s.now___502084 - s.tmp_5); + r0 = (s.now___29902 - s.tmp_5); s.tmp_4 = r0; - r0 = s.ev___502093.fields["timeOut"]; + r0 = s.ev___29911.fields["timeOut"]; s.tmp_6 = r0; r0 = (s.tmp_4 > s.tmp_6); case 5: @@ -3128,50 +2847,50 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_8); if (!r0) { step = 9; continue; } - r0 = s.ev___502093.fields["eid"]; + r0 = s.ev___29911.fields["eid"]; s.tmp_9 = r0; - r0 = s.ev___502093.fields["vid"]; + r0 = s.ev___29911.fields["vid"]; s.tmp_10 = r0; r0 = pxsim.control.raiseEvent(s.tmp_9, s.tmp_10); - r0 = s.ev___502093.fields["once"]; + r0 = s.ev___29911.fields["once"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = helpers_arraySplice__P494852_mk(s); - s.tmp_1.arg0 = globals._pollEventQueue___498508; - s.tmp_1.arg1 = s.i___502087; + s.tmp_1 = helpers_arraySplice__P21795_mk(s); + s.tmp_1.arg0 = globals._pollEventQueue___25820; + s.tmp_1.arg1 = s.i___29905; s.tmp_1.arg2 = 1; s.callLocIdx = 25; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; - r0 = (s.i___502087 - 1); - s.i___502087 = (r0); + r0 = (s.i___29905 - 1); + s.i___29905 = (r0); case 7: case 8: case 9: case 10: - r0 = (s.i___502087 + 1); - s.i___502087 = (r0); + r0 = (s.i___29905 + 1); + s.i___29905 = (r0); { step = 2; continue; } case 11: - s.tmp_0 = pause__P495158_mk(s); + s.tmp_0 = pause__P22108_mk(s); s.tmp_0.arg0 = 50; s.callLocIdx = 26; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; { step = 1; continue; } case 12: - globals._pollEventQueue___498508 = (undefined); + globals._pollEventQueue___25820 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -control_pollEvents__P498509.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} +control_pollEvents__P25821.info = {"start":618,"length":638,"line":20,"column":4,"endLine":37,"endColumn":5,"fileName":"pxt_modules/base/poll.ts","functionName":"pollEvents","argumentNames":[]} -function control_pollEvents__P498509_mk(s) { +function control_pollEvents__P25821_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pollEvents__P498509, depth: s.depth + 1, + parent: s, fn: control_pollEvents__P25821, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3184,16 +2903,16 @@ function control_pollEvents__P498509_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - now___502084: undefined, - i___502087: undefined, - ev___502093: undefined, + now___29902: undefined, + i___29905: undefined, + ev___29911: undefined, } } -function helpers_arraySplice__P494852(s) { +function helpers_arraySplice__P21795(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3203,7 +2922,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___502141 = undefined; + s.i___29959 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3217,15 +2936,15 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.i___502141 = (0); + s.i___29959 = (0); case 3: - r0 = (s.i___502141 < s.arg2); + r0 = (s.i___29959 < 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___502141 + 1); - s.i___502141 = (r0); + r0 = (s.i___29959 + 1); + s.i___29959 = (r0); { step = 3; continue; } case 4: case 5: @@ -3233,15 +2952,15 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySplice__P494852.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__P21795.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__P494852_mk(s) { +function helpers_arraySplice__P21795_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySplice__P494852, depth: s.depth + 1, + parent: s, fn: helpers_arraySplice__P21795, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - i___502141: undefined, + i___29959: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3251,7 +2970,7 @@ function helpers_arraySplice__P494852_mk(s) { -function control_PollEvent_constructor__P498506(s) { +function control_PollEvent_constructor__P25818(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3272,7 +2991,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_PollEvent__C498505_VT)) failedCast(r0); + if (!checkSubtype(r0, control_PollEvent__C25817_VT)) failedCast(r0); r0 = (s.arg0).fields["eid"] = (s.arg1); r0 = (s.arg0).fields["vid"] = (s.arg2); r0 = (s.arg0).fields["start"] = (s.arg3); @@ -3283,12 +3002,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_PollEvent_constructor__P498506.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} +control_PollEvent_constructor__P25818.info = {"start":239,"length":316,"line":8,"column":8,"endLine":15,"endColumn":9,"fileName":"pxt_modules/base/poll.ts","functionName":"inline","argumentNames":["this","eid","vid","start","timeOut","condition","once"]} -function control_PollEvent_constructor__P498506_mk(s) { +function control_PollEvent_constructor__P25818_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_PollEvent_constructor__P498506, depth: s.depth + 1, + parent: s, fn: control_PollEvent_constructor__P25818, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -3303,7 +3022,7 @@ function control_PollEvent_constructor__P498506_mk(s) { -function control_onEvent__P495136(s) { +function control_onEvent__P22086(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3313,7 +3032,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___502000 = undefined; + s.ctx___29818 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3321,12 +3040,12 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - s.tmp_0 = control_eventContext__P495153_mk(s); + s.tmp_0 = control_eventContext__P22103_mk(s); s.callLocIdx = 39; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.ctx___502000 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___502000); + s.ctx___29818 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___29818); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -3335,8 +3054,8 @@ switch (step) { r0 = pxsim.control.internalOnEvent(s.arg0, s.arg1, s.arg2, s.arg3); { step = 2; continue; } case 1: - s.tmp_0 = control_EventContext_registerHandler__P495150_mk(s); - s.tmp_0.arg0 = s.ctx___502000; + s.tmp_0 = control_EventContext_registerHandler__P22100_mk(s); + s.tmp_0.arg0 = s.ctx___29818; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; s.tmp_0.arg3 = s.arg2; @@ -3349,16 +3068,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_onEvent__P495136.info = {"start":336,"length":325,"line":9,"column":4,"endLine":15,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"onEvent","argumentNames":["src","value","handler","flags"]} +control_onEvent__P22086.info = {"start":336,"length":325,"line":9,"column":4,"endLine":15,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"onEvent","argumentNames":["src","value","handler","flags"]} -function control_onEvent__P495136_mk(s) { +function control_onEvent__P22086_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_onEvent__P495136, depth: s.depth + 1, + parent: s, fn: control_onEvent__P22086, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___502000: undefined, + ctx___29818: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3369,7 +3088,7 @@ function control_onEvent__P495136_mk(s) { -function control_eventContext__P495153(s) { +function control_eventContext__P22103(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3379,10 +3098,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___498534); + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___25846); if (!r0) { step = 1; continue; } - s.tmp_0 = r0 = globals.eventContexts___498534; - r0 = pxsim_Array__length(globals.eventContexts___498534); + s.tmp_0 = r0 = globals.eventContexts___25846; + r0 = pxsim_Array__length(globals.eventContexts___25846); s.tmp_2 = r0; r0 = (s.tmp_2 - 1); s.tmp_1 = r0; @@ -3397,12 +3116,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_eventContext__P495153.info = {"start":6907,"length":136,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} +control_eventContext__P22103.info = {"start":6907,"length":136,"line":209,"column":4,"endLine":211,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"eventContext","argumentNames":[]} -function control_eventContext__P495153_mk(s) { +function control_eventContext__P22103_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_eventContext__P495153, depth: s.depth + 1, + parent: s, fn: control_eventContext__P22103, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3414,7 +3133,7 @@ function control_eventContext__P495153_mk(s) { -function control_EventContext_registerHandler__P495150(s) { +function control_EventContext_registerHandler__P22100(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3424,10 +3143,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___502023 = undefined; - s.unnamed1734___U1 = undefined; - s.unnamed1735___U2 = undefined; - s.hn___502046 = undefined; + s.h___29841 = undefined; + s.unnamed152___U1 = undefined; + s.unnamed153___U2 = undefined; + s.hn___29864 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3437,20 +3156,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C495140_VT)) failedCast(r0); - s.h___502023 = (undefined); + if (!checkSubtype(r0, control_EventContext__C22090_VT)) failedCast(r0); + s.h___29841 = (undefined); r0 = s.arg0.fields["handlers"]; - s.unnamed1734___U1 = (r0); - s.unnamed1735___U2 = (0); + s.unnamed152___U1 = (r0); + s.unnamed153___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1735___U2; - r0 = pxsim_Array__length(s.unnamed1734___U1); + s.tmp_0 = r0 = s.unnamed153___U2; + r0 = pxsim_Array__length(s.unnamed152___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed1734___U1, s.unnamed1735___U2); - s.h___502023 = (r0); - r0 = s.h___502023.fields["src"]; + r0 = pxsim_Array__getAt(s.unnamed152___U1, s.unnamed153___U2); + s.h___29841 = (r0); + r0 = s.h___29841.fields["src"]; s.tmp_3 = r0; r0 = (s.tmp_3 == s.arg1); s.tmp_2 = r0; @@ -3459,7 +3178,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = s.h___502023.fields["value"]; + r0 = s.h___29841.fields["value"]; s.tmp_4 = r0; r0 = (s.tmp_4 == s.arg2); case 3: @@ -3467,19 +3186,19 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 4; continue; } - r0 = (s.h___502023).fields["flags"] = (s.arg4); - r0 = (s.h___502023).fields["handler"] = (s.arg3); + r0 = (s.h___29841).fields["flags"] = (s.arg4); + r0 = (s.h___29841).fields["handler"] = (s.arg3); { step = 7; continue; } case 4: case 5: - r0 = (s.unnamed1735___U2 + 1); - s.unnamed1735___U2 = (r0); + r0 = (s.unnamed153___U2 + 1); + s.unnamed153___U2 = (r0); { step = 1; continue; } case 6: - s.unnamed1734___U1 = (undefined); - r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C498526_VT); + s.unnamed152___U1 = (undefined); + r0 = pxsim_pxtcore_mkClassInstance(control_EventHandler__C25838_VT); s.tmp_0 = r0; - s.tmp_1 = control_EventHandler_constructor__P498529_mk(s); + s.tmp_1 = control_EventHandler_constructor__P25841_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; @@ -3488,12 +3207,12 @@ switch (step) { s.callLocIdx = 52; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - s.hn___502046 = (s.tmp_0); + s.hn___29864 = (s.tmp_0); r0 = s.arg0.fields["handlers"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.hn___502046); - s.tmp_0 = control_EventHandler_register__P498527_mk(s); - s.tmp_0.arg0 = s.hn___502046; + r0 = pxsim_Array__push(s.tmp_0, s.hn___29864); + s.tmp_0 = control_EventHandler_register__P25839_mk(s); + s.tmp_0.arg0 = s.hn___29864; s.callLocIdx = 53; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; @@ -3502,12 +3221,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventContext_registerHandler__P495150.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"]} +control_EventContext_registerHandler__P22100.info = {"start":5573,"length":525,"line":169,"column":8,"endLine":182,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerHandler","argumentNames":["this","src","value","handler","flags"]} -function control_EventContext_registerHandler__P495150_mk(s) { +function control_EventContext_registerHandler__P22100_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerHandler__P495150, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerHandler__P22100, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3515,10 +3234,10 @@ function control_EventContext_registerHandler__P495150_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - h___502023: undefined, - unnamed1734___U1: undefined, - unnamed1735___U2: undefined, - hn___502046: undefined, + h___29841: undefined, + unnamed152___U1: undefined, + unnamed153___U2: undefined, + hn___29864: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3530,7 +3249,7 @@ function control_EventContext_registerHandler__P495150_mk(s) { -function control_EventHandler_constructor__P498529(s) { +function control_EventHandler_constructor__P25841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3549,7 +3268,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C498526_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventHandler__C25838_VT)) failedCast(r0); r0 = (s.arg0).fields["src"] = (s.arg1); r0 = (s.arg0).fields["value"] = (s.arg2); r0 = (s.arg0).fields["handler"] = (s.arg3); @@ -3558,12 +3277,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventHandler_constructor__P498529.info = {"start":786,"length":165,"line":23,"column":8,"endLine":28,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this","src","value","handler","flags"]} +control_EventHandler_constructor__P25841.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__P498529_mk(s) { +function control_EventHandler_constructor__P25841_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_constructor__P498529, depth: s.depth + 1, + parent: s, fn: control_EventHandler_constructor__P25841, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -3576,7 +3295,7 @@ function control_EventHandler_constructor__P498529_mk(s) { -function control_EventHandler_register__P498527(s) { +function control_EventHandler_register__P25839(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3591,8 +3310,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C498526_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P502067); + if (!checkSubtype(r0, control_EventHandler__C25838_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, control_EventHandler_register_inline__P29885); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["src"]; @@ -3606,12 +3325,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventHandler_register__P498527.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} +control_EventHandler_register__P25839.info = {"start":961,"length":165,"line":30,"column":8,"endLine":34,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"register","argumentNames":["this"]} -function control_EventHandler_register__P498527_mk(s) { +function control_EventHandler_register__P25839_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_register__P498527, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register__P25839, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3624,7 +3343,7 @@ function control_EventHandler_register__P498527_mk(s) { -function inline__P502067(s) { +function control_EventHandler_register_inline__P29885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3657,12 +3376,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P502067.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +control_EventHandler_register_inline__P29885.info = {"start":1032,"length":71,"line":31,"column":58,"endLine":33,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function inline__P502067_mk(s) { +function control_EventHandler_register_inline__P29885_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P502067, depth: s.depth + 1, + parent: s, fn: control_EventHandler_register_inline__P29885, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3672,7 +3391,7 @@ function inline__P502067_mk(s) { -function color_Fade_reverse__P498424(s) { +function color_Fade_reverse__P25731(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3682,32 +3401,32 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___501374 = undefined; + s.t___29179 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); r0 = s.arg0.fields["_startPalette"]; - s.t___501374 = (r0); + s.t___29179 = (r0); r0 = s.arg0.fields["_endPalette"]; s.tmp_0 = r0; r0 = (s.arg0).fields["_startPalette"] = (s.tmp_0); - r0 = (s.arg0).fields["_endPalette"] = (s.t___501374); + r0 = (s.arg0).fields["_endPalette"] = (s.t___29179); r0 = s.arg0; return leave(s, r0) default: oops() } } } -color_Fade_reverse__P498424.info = {"start":2996,"length":188,"line":107,"column":8,"endLine":114,"endColumn":9,"fileName":"fade.ts","functionName":"reverse","argumentNames":["this"]} +color_Fade_reverse__P25731.info = {"start":2996,"length":188,"line":107,"column":8,"endLine":114,"endColumn":9,"fileName":"fade.ts","functionName":"reverse","argumentNames":["this"]} -function color_Fade_reverse__P498424_mk(s) { +function color_Fade_reverse__P25731_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_reverse__P498424, depth: s.depth + 1, + parent: s, fn: color_Fade_reverse__P25731, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - t___501374: undefined, + t___29179: undefined, arg0: undefined, } } @@ -3715,7 +3434,7 @@ function color_Fade_reverse__P498424_mk(s) { -function color_Fade_mapEndRGB__P498426(s) { +function color_Fade_mapEndRGB__P25733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3725,11 +3444,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___501407 = undefined; - s.p___501410 = undefined; - s.i___501430 = undefined; - s.initRGB___501436 = undefined; - s.applied___501443 = undefined; + s.out___29212 = undefined; + s.p___29215 = undefined; + s.i___29235 = undefined; + s.initRGB___29241 = undefined; + s.applied___29248 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -3738,115 +3457,115 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); - s.tmp_0 = color_Fade_clone__P498425_mk(s); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); + s.tmp_0 = color_Fade_clone__P25732_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 152; s.pc = 5; return s.tmp_0; + s.callLocIdx = 163; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.out___501407 = (r0); - s.tmp_0 = color__clone__P498407_mk(s); - s.tmp_1 = color_Fade_endPalette__P498412_mk(s); + s.out___29212 = (r0); + s.tmp_0 = color__clone__P25714_mk(s); + s.tmp_1 = color_Fade_endPalette__P25719_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 153; s.pc = 7; return s.tmp_1; + s.callLocIdx = 164; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; s.tmp_0.arg0 = r0; - s.callLocIdx = 154; s.pc = 6; return s.tmp_0; + s.callLocIdx = 165; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.p___501410 = (r0); + s.p___29215 = (r0); r0 = (s.arg2 | 0); s.arg2 = (r0); r0 = (s.arg3 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = color_ColorBuffer_length__P498354_mk(s); - s.tmp_2.arg0 = s.p___501410; - s.callLocIdx = 155; s.pc = 8; return s.tmp_2; + s.tmp_2 = color_ColorBuffer_length__P25661_mk(s); + s.tmp_2.arg0 = s.p___29215; + s.callLocIdx = 166; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_1 - 1); { step = 2; continue; } case 1: - s.tmp_3 = Math_min__P494882_mk(s); - s.tmp_5 = color_ColorBuffer_length__P498354_mk(s); - s.tmp_5.arg0 = s.p___501410; - s.callLocIdx = 156; s.pc = 10; return s.tmp_5; + s.tmp_3 = Math_min__P21826_mk(s); + s.tmp_5 = color_ColorBuffer_length__P25661_mk(s); + s.tmp_5.arg0 = s.p___29215; + s.callLocIdx = 167; s.pc = 10; return s.tmp_5; case 10: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_4 - 1); s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 157; s.pc = 9; return s.tmp_3; + s.callLocIdx = 168; s.pc = 9; return s.tmp_3; case 9: r0 = s.retval; case 2: // jmp value (already in r0) s.tmp_6 = r0; s.arg3 = (s.tmp_6); - s.i___501430 = (s.arg2); + s.i___29235 = (s.arg2); case 3: - r0 = (s.i___501430 <= s.arg3); + r0 = (s.i___29235 <= s.arg3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = color_RGB_fromHexValue__P498376_mk(s); - s.tmp_2 = color_ColorBuffer_color__P498355_mk(s); - s.tmp_2.arg0 = s.p___501410; - s.tmp_2.arg1 = s.i___501430; - s.callLocIdx = 158; s.pc = 12; return s.tmp_2; + s.tmp_1 = color_RGB_fromHexValue__P25683_mk(s); + s.tmp_2 = color_ColorBuffer_color__P25662_mk(s); + s.tmp_2.arg0 = s.p___29215; + s.tmp_2.arg1 = s.i___29235; + s.callLocIdx = 169; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1.arg0 = r0; - s.callLocIdx = 159; s.pc = 11; return s.tmp_1; + s.callLocIdx = 170; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - s.initRGB___501436 = (r0); + s.initRGB___29241 = (r0); s.tmp_0 = lambda_4_mk(s); s.tmp_0.argL = s.arg1; - s.tmp_0.arg0 = s.initRGB___501436; - s.tmp_0.arg1 = s.i___501430; - s.tmp_0.arg2 = s.p___501410; + s.tmp_0.arg0 = s.initRGB___29241; + s.tmp_0.arg1 = s.i___29235; + s.tmp_0.arg2 = s.p___29215; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 160; s.pc = 13; return s.tmp_0; + s.callLocIdx = 171; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.applied___501443 = (r0); - s.tmp_0 = color_ColorBuffer_setColor__P498356_mk(s); - s.tmp_0.arg0 = s.p___501410; - s.tmp_0.arg1 = s.i___501430; - s.tmp_1 = color_RGB_hexValue__P498375_mk(s); - s.tmp_1.arg0 = s.applied___501443; - s.callLocIdx = 161; s.pc = 15; return s.tmp_1; + s.applied___29248 = (r0); + s.tmp_0 = color_ColorBuffer_setColor__P25663_mk(s); + s.tmp_0.arg0 = s.p___29215; + s.tmp_0.arg1 = s.i___29235; + s.tmp_1 = color_RGB_hexValue__P25682_mk(s); + s.tmp_1.arg0 = s.applied___29248; + s.callLocIdx = 172; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0.arg2 = r0; - s.callLocIdx = 162; s.pc = 14; return s.tmp_0; + s.callLocIdx = 173; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - r0 = (s.i___501430 + 1); - s.i___501430 = (r0); + r0 = (s.i___29235 + 1); + s.i___29235 = (r0); { step = 3; continue; } case 4: - s.tmp_0 = color_Fade_setEndPalette__P498419_mk(s); - s.tmp_0.arg0 = s.out___501407; - s.tmp_0.arg1 = s.p___501410; - s.callLocIdx = 163; s.pc = 16; return s.tmp_0; + s.tmp_0 = color_Fade_setEndPalette__P25726_mk(s); + s.tmp_0.arg0 = s.out___29212; + s.tmp_0.arg1 = s.p___29215; + s.callLocIdx = 174; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; return leave(s, r0) default: oops() } } } -color_Fade_mapEndRGB__P498426.info = {"start":3494,"length":734,"line":125,"column":8,"endLine":146,"endColumn":9,"fileName":"fade.ts","functionName":"mapEndRGB","argumentNames":["this","h","firstIndex","lastIndex"]} +color_Fade_mapEndRGB__P25733.info = {"start":3494,"length":734,"line":125,"column":8,"endLine":146,"endColumn":9,"fileName":"fade.ts","functionName":"mapEndRGB","argumentNames":["this","h","firstIndex","lastIndex"]} -function color_Fade_mapEndRGB__P498426_mk(s) { +function color_Fade_mapEndRGB__P25733_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_mapEndRGB__P498426, depth: s.depth + 1, + parent: s, fn: color_Fade_mapEndRGB__P25733, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3855,11 +3574,11 @@ function color_Fade_mapEndRGB__P498426_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - out___501407: undefined, - p___501410: undefined, - i___501430: undefined, - initRGB___501436: undefined, - applied___501443: undefined, + out___29212: undefined, + p___29215: undefined, + i___29235: undefined, + initRGB___29241: undefined, + applied___29248: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -3870,7 +3589,7 @@ function color_Fade_mapEndRGB__P498426_mk(s) { -function color_RGB_hexValue__P498375(s) { +function color_RGB_hexValue__P25682(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3885,26 +3604,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_RGB__C498366_VT)) failedCast(r0); - s.tmp_0 = color_toColor__P500591_mk(s); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); + s.tmp_0 = color_toColor__P28283_mk(s); r0 = s.arg0.fields["_r"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["_g"]; s.tmp_0.arg1 = r0; r0 = s.arg0.fields["_b"]; s.tmp_0.arg2 = r0; - s.callLocIdx = 69; s.pc = 1; return s.tmp_0; + s.callLocIdx = 58; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -color_RGB_hexValue__P498375.info = {"start":1135,"length":152,"line":49,"column":8,"endLine":55,"endColumn":9,"fileName":"color.ts","functionName":"hexValue","argumentNames":["this"]} +color_RGB_hexValue__P25682.info = {"start":1135,"length":152,"line":49,"column":8,"endLine":55,"endColumn":9,"fileName":"color.ts","functionName":"hexValue","argumentNames":["this"]} -function color_RGB_hexValue__P498375_mk(s) { +function color_RGB_hexValue__P25682_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_hexValue__P498375, depth: s.depth + 1, + parent: s, fn: color_RGB_hexValue__P25682, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -3914,7 +3633,7 @@ function color_RGB_hexValue__P498375_mk(s) { -function color_toColor__P500591(s) { +function color_toColor__P28283(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3946,12 +3665,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_toColor__P500591.info = {"start":12315,"length":132,"line":404,"column":4,"endLine":406,"endColumn":5,"fileName":"color.ts","functionName":"toColor","argumentNames":["r","g","b"]} +color_toColor__P28283.info = {"start":14121,"length":132,"line":453,"column":4,"endLine":455,"endColumn":5,"fileName":"color.ts","functionName":"toColor","argumentNames":["r","g","b"]} -function color_toColor__P500591_mk(s) { +function color_toColor__P28283_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_toColor__P500591, depth: s.depth + 1, + parent: s, fn: color_toColor__P28283, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -3968,7 +3687,7 @@ function color_toColor__P500591_mk(s) { -function color_ColorBuffer_color__P498355(s) { +function color_ColorBuffer_color__P25662(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -3978,17 +3697,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___502197 = undefined; - s.start___502199 = undefined; - s.c___502203 = undefined; - s.i___502204 = undefined; + s.s___30015 = undefined; + s.start___30017 = undefined; + s.c___30021 = undefined; + s.i___30022 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_ColorBuffer__C498348_VT)) failedCast(r0); + if (!checkSubtype(r0, color_ColorBuffer__C25655_VT)) failedCast(r0); r0 = (s.arg1 | 0); s.arg1 = (r0); r0 = (s.arg1 < 0); @@ -3999,9 +3718,9 @@ switch (step) { { step = 2; continue; } case 1: s.tmp_1 = r0 = s.arg1; - s.tmp_3 = color_ColorBuffer_length__P498354_mk(s); + s.tmp_3 = color_ColorBuffer_length__P25661_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1166; s.pc = 8; return s.tmp_3; + s.callLocIdx = 1263; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; s.tmp_2 = r0; @@ -4015,48 +3734,48 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_5 = color_ColorBuffer_stride__P498353_mk(s); + s.tmp_5 = color_ColorBuffer_stride__P25660_mk(s); s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 1167; s.pc = 9; return s.tmp_5; + s.callLocIdx = 1264; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; - s.s___502197 = (r0); - r0 = (s.arg1 * s.s___502197); - s.start___502199 = (r0); - s.c___502203 = (0); - s.i___502204 = (0); + s.s___30015 = (r0); + r0 = (s.arg1 * s.s___30015); + s.start___30017 = (r0); + s.c___30021 = (0); + s.i___30022 = (0); case 5: - r0 = (s.i___502204 < s.s___502197); + r0 = (s.i___30022 < s.s___30015); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - r0 = (s.c___502203 << 8); + r0 = (s.c___30021 << 8); s.tmp_1 = r0; r0 = s.arg0.fields["buf"]; s.tmp_4 = r0; - r0 = (s.start___502199 + s.i___502204); + r0 = (s.start___30017 + s.i___30022); s.tmp_5 = r0; r0 = pxsim.BufferMethods.getByte(s.tmp_4, s.tmp_5); s.tmp_3 = r0; r0 = (s.tmp_3 & 255); s.tmp_2 = r0; r0 = (s.tmp_1 | s.tmp_2); - s.c___502203 = (r0); - r0 = (s.i___502204 + 1); - s.i___502204 = (r0); + s.c___30021 = (r0); + r0 = (s.i___30022 + 1); + s.i___30022 = (r0); { step = 5; continue; } case 6: - r0 = s.c___502203; + r0 = s.c___30021; case 7: return leave(s, r0) default: oops() } } } -color_ColorBuffer_color__P498355.info = {"start":930,"length":368,"line":38,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"color","argumentNames":["this","index"]} +color_ColorBuffer_color__P25662.info = {"start":930,"length":368,"line":38,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"color","argumentNames":["this","index"]} -function color_ColorBuffer_color__P498355_mk(s) { +function color_ColorBuffer_color__P25662_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_ColorBuffer_color__P498355, depth: s.depth + 1, + parent: s, fn: color_ColorBuffer_color__P25662, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4064,10 +3783,10 @@ function color_ColorBuffer_color__P498355_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - s___502197: undefined, - start___502199: undefined, - c___502203: undefined, - i___502204: undefined, + s___30015: undefined, + start___30017: undefined, + c___30021: undefined, + i___30022: undefined, arg0: undefined, arg1: undefined, } } @@ -4076,7 +3795,7 @@ function color_ColorBuffer_color__P498355_mk(s) { -function color_RGB_fromHexValue__P498376(s) { +function color_RGB_fromHexValue__P25683(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4090,9 +3809,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(color_RGB__C498366_VT); + r0 = pxsim_pxtcore_mkClassInstance(color_RGB__C25673_VT); s.tmp_0 = r0; - s.tmp_1 = color_RGB_constructor__P498367_mk(s); + s.tmp_1 = color_RGB_constructor__P25674_mk(s); s.tmp_1.arg0 = s.tmp_0; r0 = (s.arg0 >> 16); s.tmp_2 = r0; @@ -4106,19 +3825,19 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 & 255); s.tmp_1.arg3 = r0; - s.callLocIdx = 73; s.pc = 1; return s.tmp_1; + s.callLocIdx = 62; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -color_RGB_fromHexValue__P498376.info = {"start":1297,"length":198,"line":57,"column":8,"endLine":63,"endColumn":9,"fileName":"color.ts","functionName":"fromHexValue","argumentNames":["col"]} +color_RGB_fromHexValue__P25683.info = {"start":1297,"length":198,"line":57,"column":8,"endLine":63,"endColumn":9,"fileName":"color.ts","functionName":"fromHexValue","argumentNames":["col"]} -function color_RGB_fromHexValue__P498376_mk(s) { +function color_RGB_fromHexValue__P25683_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_fromHexValue__P498376, depth: s.depth + 1, + parent: s, fn: color_RGB_fromHexValue__P25683, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4132,7 +3851,7 @@ function color_RGB_fromHexValue__P498376_mk(s) { -function color_unpackB__P498342(s) { +function color_unpackB__P25649(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4152,12 +3871,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_unpackB__P498342.info = {"start":6324,"length":86,"line":200,"column":4,"endLine":202,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackB","argumentNames":["rgb"]} +color_unpackB__P25649.info = {"start":6742,"length":86,"line":211,"column":4,"endLine":213,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackB","argumentNames":["rgb"]} -function color_unpackB__P498342_mk(s) { +function color_unpackB__P25649_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_unpackB__P498342, depth: s.depth + 1, + parent: s, fn: color_unpackB__P25649, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4167,7 +3886,7 @@ function color_unpackB__P498342_mk(s) { -function color_unpackG__P498341(s) { +function color_unpackG__P25648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4187,12 +3906,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_unpackG__P498341.info = {"start":6233,"length":86,"line":197,"column":4,"endLine":199,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackG","argumentNames":["rgb"]} +color_unpackG__P25648.info = {"start":6651,"length":86,"line":208,"column":4,"endLine":210,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackG","argumentNames":["rgb"]} -function color_unpackG__P498341_mk(s) { +function color_unpackG__P25648_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_unpackG__P498341, depth: s.depth + 1, + parent: s, fn: color_unpackG__P25648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4202,7 +3921,7 @@ function color_unpackG__P498341_mk(s) { -function color_unpackR__P498340(s) { +function color_unpackR__P25647(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4222,12 +3941,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_unpackR__P498340.info = {"start":6141,"length":87,"line":194,"column":4,"endLine":196,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackR","argumentNames":["rgb"]} +color_unpackR__P25647.info = {"start":6559,"length":87,"line":205,"column":4,"endLine":207,"endColumn":5,"fileName":"pxt_modules/color/colors.ts","functionName":"unpackR","argumentNames":["rgb"]} -function color_unpackR__P498340_mk(s) { +function color_unpackR__P25647_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_unpackR__P498340, depth: s.depth + 1, + parent: s, fn: color_unpackR__P25647, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4237,7 +3956,7 @@ function color_unpackR__P498340_mk(s) { -function color_RGB_constructor__P498367(s) { +function color_RGB_constructor__P25674(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4255,35 +3974,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_RGB__C498366_VT)) failedCast(r0); - s.tmp_0 = color_RGB_red__P498369_mk(s); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); + s.tmp_0 = color_RGB_red__P25676_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 60; s.pc = 1; return s.tmp_0; + s.callLocIdx = 49; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = color_RGB_green__P498371_mk(s); + s.tmp_0 = color_RGB_green__P25678_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 61; s.pc = 2; return s.tmp_0; + s.callLocIdx = 50; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = color_RGB_blue__P498373_mk(s); + s.tmp_0 = color_RGB_blue__P25680_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 62; s.pc = 3; return s.tmp_0; + s.callLocIdx = 51; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -color_RGB_constructor__P498367.info = {"start":409,"length":155,"line":18,"column":8,"endLine":22,"endColumn":9,"fileName":"color.ts","functionName":"inline","argumentNames":["this","red","green","blue"]} +color_RGB_constructor__P25674.info = {"start":409,"length":155,"line":18,"column":8,"endLine":22,"endColumn":9,"fileName":"color.ts","functionName":"inline","argumentNames":["this","red","green","blue"]} -function color_RGB_constructor__P498367_mk(s) { +function color_RGB_constructor__P25674_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_constructor__P498367, depth: s.depth + 1, + parent: s, fn: color_RGB_constructor__P25674, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4296,7 +4015,7 @@ function color_RGB_constructor__P498367_mk(s) { -function color_ColorBuffer_length__P498354(s) { +function color_ColorBuffer_length__P25661(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4311,14 +4030,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_ColorBuffer__C498348_VT)) failedCast(r0); + if (!checkSubtype(r0, color_ColorBuffer__C25655_VT)) failedCast(r0); r0 = s.arg0.fields["buf"]; s.tmp_1 = r0; r0 = pxsim.BufferMethods.length(s.tmp_1); s.tmp_0 = r0; - s.tmp_3 = color_ColorBuffer_stride__P498353_mk(s); + s.tmp_3 = color_ColorBuffer_stride__P25660_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1165; s.pc = 1; return s.tmp_3; + s.callLocIdx = 1262; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -4326,13 +4045,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -color_ColorBuffer_length__P498354.info = {"start":836,"length":84,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"length","argumentNames":["this"]} -color_ColorBuffer_length__P498354.isGetter = true; +color_ColorBuffer_length__P25661.info = {"start":836,"length":84,"line":34,"column":8,"endLine":36,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"length","argumentNames":["this"]} +color_ColorBuffer_length__P25661.isGetter = true; -function color_ColorBuffer_length__P498354_mk(s) { +function color_ColorBuffer_length__P25661_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_ColorBuffer_length__P498354, depth: s.depth + 1, + parent: s, fn: color_ColorBuffer_length__P25661, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4345,7 +4064,7 @@ function color_ColorBuffer_length__P498354_mk(s) { -function color_Fade_clone__P498425(s) { +function color_Fade_clone__P25732(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4355,26 +4074,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fade___501385 = undefined; + s.fade___29190 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C498409_VT); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); s.tmp_0 = r0; r0 = undefined; - s.fade___501385 = (s.tmp_0); + s.fade___29190 = (s.tmp_0); r0 = s.arg0.fields["_startPalette"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = r0 = s.fade___501385; - s.tmp_3 = color__clone__P498407_mk(s); + s.tmp_1 = r0 = s.fade___29190; + s.tmp_3 = color__clone__P25714_mk(s); r0 = s.arg0.fields["_startPalette"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 150; s.pc = 5; return s.tmp_3; + s.callLocIdx = 161; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; s.tmp_2 = r0; @@ -4385,33 +4104,33 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = r0 = s.fade___501385; - s.tmp_3 = color__clone__P498407_mk(s); + s.tmp_1 = r0 = s.fade___29190; + s.tmp_3 = color__clone__P25714_mk(s); r0 = s.arg0.fields["_endPalette"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 151; s.pc = 6; return s.tmp_3; + s.callLocIdx = 162; s.pc = 6; return s.tmp_3; case 6: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_1).fields["_endPalette"] = (s.tmp_2); case 3: case 4: - r0 = s.fade___501385; + r0 = s.fade___29190; return leave(s, r0) default: oops() } } } -color_Fade_clone__P498425.info = {"start":3194,"length":290,"line":116,"column":8,"endLine":123,"endColumn":9,"fileName":"fade.ts","functionName":"clone","argumentNames":["this"]} +color_Fade_clone__P25732.info = {"start":3194,"length":290,"line":116,"column":8,"endLine":123,"endColumn":9,"fileName":"fade.ts","functionName":"clone","argumentNames":["this"]} -function color_Fade_clone__P498425_mk(s) { +function color_Fade_clone__P25732_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_clone__P498425, depth: s.depth + 1, + parent: s, fn: color_Fade_clone__P25732, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, tmp_3: undefined, - fade___501385: undefined, + fade___29190: undefined, arg0: undefined, } } @@ -4419,7 +4138,7 @@ function color_Fade_clone__P498425_mk(s) { -function color_Fade_startUntilDone__P498415(s) { +function color_Fade_startUntilDone__P25722(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4435,27 +4154,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); - s.tmp_0 = color_Fade_start__P498414_mk(s); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); + s.tmp_0 = color_Fade_start__P25721_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 130; s.pc = 1; return s.tmp_0; + s.callLocIdx = 140; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = color_Fade_pauseUntilDone__P498423_mk(s); + s.tmp_0 = color_Fade_pauseUntilDone__P25730_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 131; s.pc = 2; return s.tmp_0; + s.callLocIdx = 141; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; return leave(s, r0) default: oops() } } } -color_Fade_startUntilDone__P498415.info = {"start":1102,"length":134,"line":39,"column":8,"endLine":42,"endColumn":9,"fileName":"fade.ts","functionName":"startUntilDone","argumentNames":["this","duration"]} +color_Fade_startUntilDone__P25722.info = {"start":1102,"length":134,"line":39,"column":8,"endLine":42,"endColumn":9,"fileName":"fade.ts","functionName":"startUntilDone","argumentNames":["this","duration"]} -function color_Fade_startUntilDone__P498415_mk(s) { +function color_Fade_startUntilDone__P25722_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_startUntilDone__P498415, depth: s.depth + 1, + parent: s, fn: color_Fade_startUntilDone__P25722, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4466,7 +4185,7 @@ function color_Fade_startUntilDone__P498415_mk(s) { -function color_currentPalette__P498406(s) { +function color_currentPalette__P25713(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4476,34 +4195,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___501158 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.currentColors___500528); + s.p___28963 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.currentColors___28220); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C498388_VT); + r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C25695_VT); s.tmp_0 = r0; - s.tmp_1 = color_ColorBuffer_constructor__P498351_mk(s); + s.tmp_1 = color_ColorBuffer_constructor__P25658_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_2 = color_availableColors__P498399_mk(s); - s.callLocIdx = 115; s.pc = 5; return s.tmp_2; + s.tmp_2 = color_availableColors__P25706_mk(s); + s.callLocIdx = 125; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; s.tmp_1.arg1 = r0; s.tmp_1.arg2 = undefined; - s.callLocIdx = 116; s.pc = 4; return s.tmp_1; + s.callLocIdx = 126; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; - s.p___501158 = (s.tmp_0); - s.tmp_0 = r0 = s.p___501158; - r0 = pxsim.BufferMethods.slice(globals.currentColors___500528, 0, -1); + s.p___28963 = (s.tmp_0); + s.tmp_0 = r0 = s.p___28963; + r0 = pxsim.BufferMethods.slice(globals.currentColors___28220, 0, -1); s.tmp_1 = r0; r0 = (s.tmp_0).fields["buf"] = (s.tmp_1); - r0 = s.p___501158; + r0 = s.p___28963; { step = 3; continue; } { step = 2; continue; } case 1: - s.tmp_0 = color__clone__P498407_mk(s); - s.tmp_0.arg0 = globals.originalPalette___498432; - s.callLocIdx = 117; s.pc = 6; return s.tmp_0; + s.tmp_0 = color__clone__P25714_mk(s); + s.tmp_0.arg0 = globals.originalPalette___25740; + s.callLocIdx = 127; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; { step = 3; continue; } @@ -4513,24 +4232,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_currentPalette__P498406.info = {"start":11988,"length":258,"line":393,"column":4,"endLine":401,"endColumn":5,"fileName":"color.ts","functionName":"currentPalette","argumentNames":[]} +color_currentPalette__P25713.info = {"start":13794,"length":258,"line":442,"column":4,"endLine":450,"endColumn":5,"fileName":"color.ts","functionName":"currentPalette","argumentNames":[]} -function color_currentPalette__P498406_mk(s) { +function color_currentPalette__P25713_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_currentPalette__P498406, depth: s.depth + 1, + parent: s, fn: color_currentPalette__P25713, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___501158: undefined, + p___28963: undefined, } } -function color_availableColors__P498399(s) { +function color_availableColors__P25706(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4540,20 +4259,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = color_ColorBuffer_length__P498354_mk(s); - s.tmp_0.arg0 = globals.originalPalette___498432; - s.callLocIdx = 106; s.pc = 1; return s.tmp_0; + s.tmp_0 = color_ColorBuffer_length__P25661_mk(s); + s.tmp_0.arg0 = globals.originalPalette___25740; + s.callLocIdx = 116; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -color_availableColors__P498399.info = {"start":9742,"length":88,"line":317,"column":4,"endLine":319,"endColumn":5,"fileName":"color.ts","functionName":"availableColors","argumentNames":[]} +color_availableColors__P25706.info = {"start":11548,"length":88,"line":366,"column":4,"endLine":368,"endColumn":5,"fileName":"color.ts","functionName":"availableColors","argumentNames":[]} -function color_availableColors__P498399_mk(s) { +function color_availableColors__P25706_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_availableColors__P498399, depth: s.depth + 1, + parent: s, fn: color_availableColors__P25706, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -4562,7 +4281,7 @@ function color_availableColors__P498399_mk(s) { -function color_ColorBuffer_setColor__P498356(s) { +function color_ColorBuffer_setColor__P25663(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4572,9 +4291,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___502413 = undefined; - s.start___502415 = undefined; - s.i___502419 = undefined; + s.s___30231 = undefined; + s.start___30233 = undefined; + s.i___30237 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -4582,7 +4301,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_ColorBuffer__C498348_VT)) failedCast(r0); + if (!checkSubtype(r0, color_ColorBuffer__C25655_VT)) failedCast(r0); r0 = (s.arg1 | 0); s.arg1 = (r0); r0 = (s.arg1 < 0); @@ -4593,9 +4312,9 @@ switch (step) { { step = 2; continue; } case 1: s.tmp_1 = r0 = s.arg1; - s.tmp_3 = color_ColorBuffer_length__P498354_mk(s); + s.tmp_3 = color_ColorBuffer_length__P25661_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1168; s.pc = 8; return s.tmp_3; + s.callLocIdx = 1265; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; s.tmp_2 = r0; @@ -4608,32 +4327,32 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_5 = color_ColorBuffer_stride__P498353_mk(s); + s.tmp_5 = color_ColorBuffer_stride__P25660_mk(s); s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 1169; s.pc = 9; return s.tmp_5; + s.callLocIdx = 1266; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; - s.s___502413 = (r0); - r0 = (s.arg1 * s.s___502413); - s.start___502415 = (r0); - r0 = (s.s___502413 - 1); - s.i___502419 = (r0); + s.s___30231 = (r0); + r0 = (s.arg1 * s.s___30231); + s.start___30233 = (r0); + r0 = (s.s___30231 - 1); + s.i___30237 = (r0); case 5: - r0 = (s.i___502419 >= 0); + r0 = (s.i___30237 >= 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } r0 = s.arg0.fields["buf"]; s.tmp_1 = r0; - r0 = (s.start___502415 + s.i___502419); + r0 = (s.start___30233 + s.i___30237); s.tmp_2 = r0; r0 = (s.arg2 & 255); s.tmp_3 = r0; r0 = pxsim.BufferMethods.setByte(s.tmp_1, s.tmp_2, s.tmp_3); r0 = (s.arg2 >> 8); s.arg2 = (r0); - r0 = (s.i___502419 - 1); - s.i___502419 = (r0); + r0 = (s.i___30237 - 1); + s.i___30237 = (r0); { step = 5; continue; } case 6: case 7: @@ -4641,12 +4360,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_ColorBuffer_setColor__P498356.info = {"start":1308,"length":362,"line":51,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"setColor","argumentNames":["this","index","color"]} +color_ColorBuffer_setColor__P25663.info = {"start":1308,"length":362,"line":51,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/color/colorbuffer.ts","functionName":"setColor","argumentNames":["this","index","color"]} -function color_ColorBuffer_setColor__P498356_mk(s) { +function color_ColorBuffer_setColor__P25663_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_ColorBuffer_setColor__P498356, depth: s.depth + 1, + parent: s, fn: color_ColorBuffer_setColor__P25663, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4654,9 +4373,9 @@ function color_ColorBuffer_setColor__P498356_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - s___502413: undefined, - start___502415: undefined, - i___502419: undefined, + s___30231: undefined, + start___30233: undefined, + i___30237: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -4666,7 +4385,7 @@ function color_ColorBuffer_setColor__P498356_mk(s) { -function color__clone__P498407(s) { +function color__clone__P25714(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4676,33 +4395,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___501190 = undefined; - s.i___501196 = undefined; + s.out___28995 = undefined; + s.i___29001 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C498388_VT); + r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C25695_VT); s.tmp_0 = r0; - s.tmp_1 = color_ColorBuffer_constructor__P498351_mk(s); + s.tmp_1 = color_ColorBuffer_constructor__P25658_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_2 = color_ColorBuffer_length__P498354_mk(s); + s.tmp_2 = color_ColorBuffer_length__P25661_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 118; s.pc = 4; return s.tmp_2; + s.callLocIdx = 128; s.pc = 4; return s.tmp_2; case 4: r0 = s.retval; s.tmp_1.arg1 = r0; s.tmp_1.arg2 = undefined; - s.callLocIdx = 119; s.pc = 3; return s.tmp_1; + s.callLocIdx = 129; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.out___501190 = (s.tmp_0); - s.i___501196 = (0); + s.out___28995 = (s.tmp_0); + s.i___29001 = (0); case 1: - s.tmp_1 = r0 = s.i___501196; - s.tmp_3 = color_ColorBuffer_length__P498354_mk(s); + s.tmp_1 = r0 = s.i___29001; + s.tmp_3 = color_ColorBuffer_length__P25661_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 120; s.pc = 5; return s.tmp_3; + s.callLocIdx = 130; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; s.tmp_2 = r0; @@ -4710,33 +4429,33 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_4 = color_ColorBuffer_setColor__P498356_mk(s); - s.tmp_4.arg0 = s.out___501190; - s.tmp_4.arg1 = s.i___501196; - s.tmp_5 = color_ColorBuffer_color__P498355_mk(s); + s.tmp_4 = color_ColorBuffer_setColor__P25663_mk(s); + s.tmp_4.arg0 = s.out___28995; + s.tmp_4.arg1 = s.i___29001; + s.tmp_5 = color_ColorBuffer_color__P25662_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.i___501196; - s.callLocIdx = 121; s.pc = 7; return s.tmp_5; + s.tmp_5.arg1 = s.i___29001; + s.callLocIdx = 131; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; s.tmp_4.arg2 = r0; - s.callLocIdx = 122; s.pc = 6; return s.tmp_4; + s.callLocIdx = 132; s.pc = 6; return s.tmp_4; case 6: r0 = s.retval; - r0 = (s.i___501196 + 1); - s.i___501196 = (r0); + r0 = (s.i___29001 + 1); + s.i___29001 = (r0); { step = 1; continue; } case 2: - r0 = s.out___501190; + r0 = s.out___28995; return leave(s, r0) default: oops() } } } -color__clone__P498407.info = {"start":12453,"length":200,"line":408,"column":4,"endLine":414,"endColumn":5,"fileName":"color.ts","functionName":"_clone","argumentNames":["p"]} +color__clone__P25714.info = {"start":14259,"length":200,"line":457,"column":4,"endLine":463,"endColumn":5,"fileName":"color.ts","functionName":"_clone","argumentNames":["p"]} -function color__clone__P498407_mk(s) { +function color__clone__P25714_mk(s) { checkStack(s.depth); return { - parent: s, fn: color__clone__P498407, depth: s.depth + 1, + parent: s, fn: color__clone__P25714, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4744,8 +4463,8 @@ function color__clone__P498407_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - out___501190: undefined, - i___501196: undefined, + out___28995: undefined, + i___29001: undefined, arg0: undefined, } } @@ -4753,7 +4472,7 @@ function color__clone__P498407_mk(s) { -function color_startFadeUntilDone__P498429(s) { +function color_startFadeUntilDone__P25737(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4769,27 +4488,27 @@ switch (step) { s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tmp_0 = color_startFade__P498428_mk(s); + s.tmp_0 = color_startFade__P25735_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 189; s.pc = 1; return s.tmp_0; + s.callLocIdx = 201; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = color_pauseUntilFadeDone__P498430_mk(s); - s.callLocIdx = 190; s.pc = 2; return s.tmp_0; + s.tmp_0 = color_pauseUntilFadeDone__P25738_mk(s); + s.callLocIdx = 202; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -color_startFadeUntilDone__P498429.info = {"start":6973,"length":162,"line":248,"column":4,"endLine":251,"endColumn":5,"fileName":"fade.ts","functionName":"startFadeUntilDone","argumentNames":["start","end","duration"]} +color_startFadeUntilDone__P25737.info = {"start":7381,"length":162,"line":260,"column":4,"endLine":263,"endColumn":5,"fileName":"fade.ts","functionName":"startFadeUntilDone","argumentNames":["start","end","duration"]} -function color_startFadeUntilDone__P498429_mk(s) { +function color_startFadeUntilDone__P25737_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_startFadeUntilDone__P498429, depth: s.depth + 1, + parent: s, fn: color_startFadeUntilDone__P25737, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -4801,7 +4520,7 @@ function color_startFadeUntilDone__P498429_mk(s) { -function color_startFade__P498428(s) { +function color_startFade__P25735(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4837,15 +4556,15 @@ switch (step) { r0 = s.tmp_3; { step = 4; continue; } case 3: - s.tmp_5 = color_ColorBuffer_length__P498354_mk(s); + s.tmp_5 = color_ColorBuffer_length__P25661_mk(s); s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 183; s.pc = 8; return s.tmp_5; + s.callLocIdx = 194; s.pc = 8; return s.tmp_5; case 8: r0 = s.retval; s.tmp_4 = r0; - s.tmp_7 = color_ColorBuffer_length__P498354_mk(s); + s.tmp_7 = color_ColorBuffer_length__P25661_mk(s); s.tmp_7.arg0 = s.arg1; - s.callLocIdx = 184; s.pc = 9; return s.tmp_7; + s.callLocIdx = 195; s.pc = 9; return s.tmp_7; case 9: r0 = s.retval; s.tmp_6 = r0; @@ -4858,39 +4577,43 @@ switch (step) { { step = 7; continue; } case 5: case 6: - r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C498409_VT); - s.tmp_9 = r0; + s.tmp_9 = color_clearFadeEffect__P25704_mk(s); + s.callLocIdx = 196; s.pc = 10; return s.tmp_9; + case 10: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); + s.tmp_0 = r0; r0 = undefined; - globals.activeFade___501266 = (s.tmp_9); - s.tmp_0 = color_Fade_setStartPalette__P498417_mk(s); - s.tmp_0.arg0 = globals.activeFade___501266; + globals.activeFade___29071 = (s.tmp_0); + s.tmp_0 = color_Fade_setStartPalette__P25724_mk(s); + s.tmp_0.arg0 = globals.activeFade___29071; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 186; s.pc = 10; return s.tmp_0; - case 10: + s.callLocIdx = 198; s.pc = 11; return s.tmp_0; + case 11: r0 = s.retval; - s.tmp_0 = color_Fade_setEndPalette__P498419_mk(s); - s.tmp_0.arg0 = globals.activeFade___501266; + s.tmp_0 = color_Fade_setEndPalette__P25726_mk(s); + s.tmp_0.arg0 = globals.activeFade___29071; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 187; s.pc = 11; return s.tmp_0; - case 11: + s.callLocIdx = 199; s.pc = 12; return s.tmp_0; + case 12: r0 = s.retval; - s.tmp_0 = color_Fade_start__P498414_mk(s); - s.tmp_0.arg0 = globals.activeFade___501266; + s.tmp_0 = color_Fade_start__P25721_mk(s); + s.tmp_0.arg0 = globals.activeFade___29071; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 188; s.pc = 12; return s.tmp_0; - case 12: + s.callLocIdx = 200; s.pc = 13; return s.tmp_0; + case 13: r0 = s.retval; case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -color_startFade__P498428.info = {"start":6657,"length":310,"line":238,"column":4,"endLine":246,"endColumn":5,"fileName":"fade.ts","functionName":"startFade","argumentNames":["start","end","duration"]} +color_startFade__P25735.info = {"start":6657,"length":344,"line":238,"column":4,"endLine":248,"endColumn":5,"fileName":"fade.ts","functionName":"startFade","argumentNames":["start","end","duration"]} -function color_startFade__P498428_mk(s) { +function color_startFade__P25735_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_startFade__P498428, depth: s.depth + 1, + parent: s, fn: color_startFade__P25735, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4911,7 +4634,7 @@ function color_startFade__P498428_mk(s) { -function color_Fade_setStartPalette__P498417(s) { +function color_Fade_setStartPalette__P25724(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4927,11 +4650,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = color__clone__P498407_mk(s); + s.tmp_2 = color__clone__P25714_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 132; s.pc = 1; return s.tmp_2; + s.callLocIdx = 142; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -4940,12 +4663,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_Fade_setStartPalette__P498417.info = {"start":1352,"length":131,"line":49,"column":8,"endLine":52,"endColumn":9,"fileName":"fade.ts","functionName":"setStartPalette","argumentNames":["this","colors"]} +color_Fade_setStartPalette__P25724.info = {"start":1352,"length":131,"line":49,"column":8,"endLine":52,"endColumn":9,"fileName":"fade.ts","functionName":"setStartPalette","argumentNames":["this","colors"]} -function color_Fade_setStartPalette__P498417_mk(s) { +function color_Fade_setStartPalette__P25724_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_setStartPalette__P498417, depth: s.depth + 1, + parent: s, fn: color_Fade_setStartPalette__P25724, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -4958,7 +4681,7 @@ function color_Fade_setStartPalette__P498417_mk(s) { -function color_Fade_constructor__P498410(s) { +function color_clearFadeEffect__P25704(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -4968,23 +4691,368 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.effectStack___28816 = undefined; + s.tmp_0 = color_getFadingEffectStack__P28581_mk(s); + s.callLocIdx = 112; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.effectStack___28816 = (r0); + r0 = pxsim_Array__length(s.effectStack___28816); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = color_FadeEffect_stop__P25699_mk(s); + s.tmp_2 = r0 = s.effectStack___28816; + r0 = pxsim_Array__length(s.effectStack___28816); + s.tmp_4 = r0; + r0 = (s.tmp_4 - 1); + s.tmp_3 = r0; + r0 = pxsim_Array__getAt(s.tmp_2, s.tmp_3); + r0 = r0.fields["fade"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 113; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + s.tmp_0 = color_FadeRevert_applyRevert__P28566_mk(s); + r0 = pxsim_Array__getAt(s.effectStack___28816, 0); + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = 0; + s.callLocIdx = 114; s.pc = 5; return s.tmp_0; + case 5: + r0 = s.retval; + s.tmp_0 = color_clearFadingEffectStack__P28596_mk(s); + s.callLocIdx = 115; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_clearFadeEffect__P25704.info = {"start":11097,"length":279,"line":350,"column":4,"endLine":357,"endColumn":5,"fileName":"color.ts","functionName":"clearFadeEffect","argumentNames":[]} + +function color_clearFadeEffect__P25704_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_clearFadeEffect__P25704, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + effectStack___28816: undefined, +} } + + + + + +function color_clearFadingEffectStack__P28596(s) { +let r0 = s.r0, 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_2 = game_currentScene__P24380_mk(s); + s.callLocIdx = 92; 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; + s.tmp_3 = r0 = globals.COLOR_FADING_EFFECT_KEY___28586; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = pxsim_pxtrt.mapSetGeneric(s.tmp_0, s.tmp_3, s.tmp_4); + r0 = s.tmp_4; + return leave(s, r0) + default: oops() +} } } +color_clearFadingEffectStack__P28596.info = {"start":5417,"length":126,"line":197,"column":4,"endLine":199,"endColumn":5,"fileName":"color.ts","functionName":"clearFadingEffectStack","argumentNames":[]} + +function color_clearFadingEffectStack__P28596_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_clearFadingEffectStack__P28596, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, +} } + + + + + +function scene_Scene_data__P24290(s) { +let r0 = s.r0, 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__C24266_VT)) failedCast(r0); + r0 = s.arg0.fields["_data"]; + return leaveAccessor(s, r0) + default: oops() +} } } +scene_Scene_data__P24290.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__P24290.isGetter = true; + +function scene_Scene_data__P24290_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_Scene_data__P24290, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function color_FadeRevert_applyRevert__P28566(s) { +let r0 = s.r0, 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, color_FadeRevert__C28565_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkAction(1, color_FadeRevert_applyRevert_inline__P28576); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); + s.tmp_1 = color_Fade_then__P25729_mk(s); + s.tmp_2 = if_revert_2_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + if (!s.tmp_2.arg0.vtable.iface) { + setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "revert"), 2); + s.callLocIdx = 86; s.pc = 2; return s.tmp_2; + } else { + s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["revert"]; + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["revert"], 2); s.callLocIdx = 86; s.pc = 2; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 86; s.pc = 2; return s.tmp_2;; } + else { s.callLocIdx = 86; 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 = 88; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; + return leave(s, r0) + default: oops() +} } } +color_FadeRevert_applyRevert__P28566.info = {"start":4832,"length":245,"line":179,"column":8,"endLine":185,"endColumn":9,"fileName":"color.ts","functionName":"applyRevert","argumentNames":["this","duration"]} + +function color_FadeRevert_applyRevert__P28566_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_FadeRevert_applyRevert__P28566, 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 color_FadeRevert_applyRevert_inline__P28576(s) { +let r0 = s.r0, 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.effectStack___28578 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = color_getFadingEffectStack__P28581_mk(s); + s.callLocIdx = 87; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.effectStack___28578 = (r0); + r0 = pxsim_Array_.removeElement(s.effectStack___28578, s.caps[0]); + r0 = s.arg0; + return leave(s, r0) + default: oops() +} } } +color_FadeRevert_applyRevert_inline__P28576.info = {"start":4910,"length":155,"line":180,"column":46,"endLine":184,"endColumn":13,"fileName":"color.ts","functionName":"inline","argumentNames":["f"]} + +function color_FadeRevert_applyRevert_inline__P28576_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_FadeRevert_applyRevert_inline__P28576, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + effectStack___28578: undefined, + arg0: undefined, +} } + + + + + +function color_Fade_then__P25729(s) { +let r0 = s.r0, 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, color_Fade__C25716_VT)) failedCast(r0); + s.tmp_0 = lambda_2_mk(s); + s.tmp_0.argL = s.arg1; + s.tmp_0.arg0 = s.arg0; + setupLambda(s.tmp_0, s.tmp_0.argL); + s.callLocIdx = 157; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = s.arg0; + return leave(s, r0) + default: oops() +} } } +color_Fade_then__P25729.info = {"start":2762,"length":100,"line":97,"column":8,"endLine":100,"endColumn":9,"fileName":"fade.ts","functionName":"then","argumentNames":["this","h"]} + +function color_Fade_then__P25729_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_Fade_then__P25729, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function color_FadeEffect_stop__P25699(s) { +let r0 = s.r0, 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.effectStack___28682 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); + if (!checkSubtype(r0, color_FadeEffect__C25696_VT)) failedCast(r0); + s.tmp_0 = color_getFadingEffectStack__P28581_mk(s); + s.callLocIdx = 106; s.pc = 7; return s.tmp_0; + case 7: + r0 = s.retval; + s.effectStack___28682 = (r0); + r0 = s.arg0.fields["currentFade"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + r0 = pxsim_Array__length(s.effectStack___28682); + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = pxsim_numops_toBool(s.tmp_1); + if (r0) { step = 3; continue; } + r0 = s.tmp_1; + { step = 4; continue; } + case 3: + s.tmp_3 = r0 = s.effectStack___28682; + r0 = pxsim_Array__length(s.effectStack___28682); + s.tmp_5 = r0; + r0 = (s.tmp_5 - 1); + s.tmp_4 = r0; + r0 = pxsim_Array__getAt(s.tmp_3, s.tmp_4); + r0 = r0.fields["fade"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 === s.arg0); + case 4: + // jmp value (already in r0) + s.tmp_6 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_6); + if (!r0) { step = 5; continue; } + s.tmp_7 = color_Fade_stop__P25723_mk(s); + r0 = s.arg0.fields["currentFade"]; + s.tmp_7.arg0 = r0; + s.callLocIdx = 107; s.pc = 8; return s.tmp_7; + case 8: + r0 = s.retval; + case 5: + case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -color_Fade_constructor__P498410.info = {"start":206,"length":17,"line":7,"column":8,"endLine":7,"endColumn":25,"fileName":"fade.ts","functionName":"inline","argumentNames":["this"]} +color_FadeEffect_stop__P25699.info = {"start":7277,"length":285,"line":249,"column":8,"endLine":257,"endColumn":9,"fileName":"color.ts","functionName":"stop","argumentNames":["this"]} -function color_Fade_constructor__P498410_mk(s) { +function color_FadeEffect_stop__P25699_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_constructor__P498410, depth: s.depth + 1, + parent: s, fn: color_FadeEffect_stop__P25699, depth: s.depth + 1, pc: 0, retval: undefined, 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, + effectStack___28682: undefined, arg0: undefined, } } @@ -4992,7 +5060,130 @@ function color_Fade_constructor__P498410_mk(s) { -function color_Fade_setEndPalette__P498419(s) { +function color_Fade_stop__P25723(s) { +let r0 = s.r0, 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, color_Fade__C25716_VT)) failedCast(r0); + r0 = (s.arg0).fields["startTime"] = (undefined); + r0 = s.arg0; + return leave(s, r0) + default: oops() +} } } +color_Fade_stop__P25723.info = {"start":1246,"length":96,"line":44,"column":8,"endLine":47,"endColumn":9,"fileName":"fade.ts","functionName":"stop","argumentNames":["this"]} + +function color_Fade_stop__P25723_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_Fade_stop__P25723, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function color_getFadingEffectStack__P28581(s) { +let r0 = s.r0, 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.sceneState___28588 = undefined; + s.tmp_2 = game_currentScene__P24380_mk(s); + s.callLocIdx = 89; s.pc = 3; return s.tmp_2; + case 3: + 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.COLOR_FADING_EFFECT_KEY___28586); + s.sceneState___28588 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sceneState___28588); + 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 = color_clearFadingEffectStack__P28596_mk(s); + s.callLocIdx = 91; s.pc = 4; return s.tmp_2; + case 4: + r0 = s.retval; + s.sceneState___28588 = (r0); + case 1: + case 2: + r0 = s.sceneState___28588; + return leave(s, r0) + default: oops() +} } } +color_getFadingEffectStack__P28581.info = {"start":5153,"length":258,"line":189,"column":4,"endLine":195,"endColumn":5,"fileName":"color.ts","functionName":"getFadingEffectStack","argumentNames":[]} + +function color_getFadingEffectStack__P28581_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_getFadingEffectStack__P28581, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + sceneState___28588: undefined, +} } + + + + + +function color_Fade_constructor__P25717(s) { +let r0 = s.r0, 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, color_Fade__C25716_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_Fade_constructor__P25717.info = {"start":206,"length":17,"line":7,"column":8,"endLine":7,"endColumn":25,"fileName":"fade.ts","functionName":"inline","argumentNames":["this"]} + +function color_Fade_constructor__P25717_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_Fade_constructor__P25717, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function color_Fade_setEndPalette__P25726(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5008,11 +5199,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = color__clone__P498407_mk(s); + s.tmp_2 = color__clone__P25714_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 133; s.pc = 1; return s.tmp_2; + s.callLocIdx = 143; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -5021,12 +5212,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_Fade_setEndPalette__P498419.info = {"start":1647,"length":127,"line":59,"column":8,"endLine":62,"endColumn":9,"fileName":"fade.ts","functionName":"setEndPalette","argumentNames":["this","colors"]} +color_Fade_setEndPalette__P25726.info = {"start":1647,"length":127,"line":59,"column":8,"endLine":62,"endColumn":9,"fileName":"fade.ts","functionName":"setEndPalette","argumentNames":["this","colors"]} -function color_Fade_setEndPalette__P498419_mk(s) { +function color_Fade_setEndPalette__P25726_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_setEndPalette__P498419, depth: s.depth + 1, + parent: s, fn: color_Fade_setEndPalette__P25726, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5039,7 +5230,7 @@ function color_Fade_setEndPalette__P498419_mk(s) { -function color_Fade_start__P498414(s) { +function color_Fade_start__P25721(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5055,43 +5246,43 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); - s.tmp_0 = color_init__P501256_mk(s); - s.callLocIdx = 126; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); + s.tmp_0 = color_init__P29061_mk(s); + s.callLocIdx = 136; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = (s.arg0).fields["duration"] = (s.arg1); - s.tmp_0 = color_setPalette__P498393_mk(s); - s.tmp_1 = color_Fade_startPalette__P498411_mk(s); + s.tmp_0 = color_setPalette__P25700_mk(s); + s.tmp_1 = color_Fade_startPalette__P25718_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 127; s.pc = 3; return s.tmp_1; + s.callLocIdx = 137; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; s.tmp_0.arg3 = 0; - s.callLocIdx = 128; s.pc = 2; return s.tmp_0; + s.callLocIdx = 138; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = game_runtime__P497318_mk(s); - s.callLocIdx = 129; s.pc = 4; return s.tmp_2; + s.tmp_2 = game_runtime__P24401_mk(s); + s.callLocIdx = 139; s.pc = 4; return s.tmp_2; case 4: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["startTime"] = (s.tmp_1); - globals.activeFade___501266 = (s.arg0); + globals.activeFade___29071 = (s.arg0); r0 = s.arg0; return leave(s, r0) default: oops() } } } -color_Fade_start__P498414.info = {"start":834,"length":258,"line":29,"column":8,"endLine":37,"endColumn":9,"fileName":"fade.ts","functionName":"start","argumentNames":["this","duration"]} +color_Fade_start__P25721.info = {"start":834,"length":258,"line":29,"column":8,"endLine":37,"endColumn":9,"fileName":"fade.ts","functionName":"start","argumentNames":["this","duration"]} -function color_Fade_start__P498414_mk(s) { +function color_Fade_start__P25721_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_start__P498414, depth: s.depth + 1, + parent: s, fn: color_Fade_start__P25721, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5104,7 +5295,7 @@ function color_Fade_start__P498414_mk(s) { -function color_Fade_startPalette__P498411(s) { +function color_Fade_startPalette__P25718(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5119,7 +5310,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); r0 = s.arg0.fields["_startPalette"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -5129,8 +5320,8 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } s.tmp_3 = r0 = s.arg0; - s.tmp_5 = color_currentPalette__P498406_mk(s); - s.callLocIdx = 123; s.pc = 3; return s.tmp_5; + s.tmp_5 = color_currentPalette__P25713_mk(s); + s.callLocIdx = 133; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -5141,12 +5332,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_Fade_startPalette__P498411.info = {"start":233,"length":189,"line":9,"column":8,"endLine":14,"endColumn":9,"fileName":"fade.ts","functionName":"startPalette","argumentNames":["this"]} +color_Fade_startPalette__P25718.info = {"start":233,"length":189,"line":9,"column":8,"endLine":14,"endColumn":9,"fileName":"fade.ts","functionName":"startPalette","argumentNames":["this"]} -function color_Fade_startPalette__P498411_mk(s) { +function color_Fade_startPalette__P25718_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_startPalette__P498411, depth: s.depth + 1, + parent: s, fn: color_Fade_startPalette__P25718, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5161,7 +5352,7 @@ function color_Fade_startPalette__P498411_mk(s) { -function color_init__P501256(s) { +function color_init__P29061(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5171,34 +5362,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.currentScene___501522); + r0 = pxsim_numops_toBoolDecr(globals.currentScene___29327); 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 = game_forever__P497315_mk(s); - s.tmp_2.arg0 = inline__P501576; - s.callLocIdx = 181; s.pc = 3; return s.tmp_2; + s.tmp_2 = game_forever__P24391_mk(s); + s.tmp_2.arg0 = color_init_inline__P29381; + s.callLocIdx = 192; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 182; s.pc = 4; return s.tmp_0; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 193; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - globals.currentScene___501522 = (r0); + globals.currentScene___29327 = (r0); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -color_init__P501256.info = {"start":6049,"length":374,"line":217,"column":4,"endLine":230,"endColumn":5,"fileName":"fade.ts","functionName":"init","argumentNames":[]} +color_init__P29061.info = {"start":6049,"length":374,"line":217,"column":4,"endLine":230,"endColumn":5,"fileName":"fade.ts","functionName":"init","argumentNames":[]} -function color_init__P501256_mk(s) { +function color_init__P29061_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_init__P501256, depth: s.depth + 1, + parent: s, fn: color_init__P29061, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5209,7 +5400,7 @@ function color_init__P501256_mk(s) { -function inline__P501576(s) { +function color_init_inline__P29381(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5219,18 +5410,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.finished___501578 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.activeFade___501266); + s.finished___29383 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.activeFade___29071); if (!r0) { step = 3; continue; } - s.tmp_0 = color_Fade_step__P498421_mk(s); - s.tmp_0.arg0 = globals.activeFade___501266; - s.callLocIdx = 180; s.pc = 5; return s.tmp_0; + s.tmp_0 = color_Fade_step__P25728_mk(s); + s.tmp_0.arg0 = globals.activeFade___29071; + s.callLocIdx = 191; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.finished___501578 = (r0); - r0 = pxsim_numops_toBoolDecr(s.finished___501578); + s.finished___29383 = (r0); + r0 = pxsim_numops_toBoolDecr(s.finished___29383); if (!r0) { step = 1; continue; } - globals.activeFade___501266 = (undefined); + globals.activeFade___29071 = (undefined); case 1: case 2: case 3: @@ -5239,22 +5430,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P501576.info = {"start":6121,"length":236,"line":219,"column":25,"endLine":227,"endColumn":13,"fileName":"fade.ts","functionName":"inline","argumentNames":[]} +color_init_inline__P29381.info = {"start":6121,"length":236,"line":219,"column":25,"endLine":227,"endColumn":13,"fileName":"fade.ts","functionName":"inline","argumentNames":[]} -function inline__P501576_mk(s) { +function color_init_inline__P29381_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501576, depth: s.depth + 1, + parent: s, fn: color_init_inline__P29381, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - finished___501578: undefined, + finished___29383: undefined, } } -function color_Fade_step__P498421(s) { +function color_Fade_step__P25728(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5264,16 +5455,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___501320 = undefined; - s.p___501326 = undefined; - s.i___501333 = undefined; - s.col___501339 = undefined; + s.time___29125 = undefined; + s.p___29131 = undefined; + s.i___29138 = undefined; + s.col___29144 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); r0 = s.arg0.fields["_endPalette"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -5297,9 +5488,9 @@ switch (step) { { step = 9; continue; } case 3: case 4: - s.tmp_8 = color_Fade_isActive__P498413_mk(s); + s.tmp_8 = color_Fade_isActive__P25720_mk(s); s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 136; s.pc = 10; return s.tmp_8; + s.callLocIdx = 146; s.pc = 10; return s.tmp_8; case 10: r0 = s.retval; s.tmp_7 = r0; @@ -5309,13 +5500,13 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } - s.tmp_9 = color_setPalette__P498393_mk(s); + s.tmp_9 = color_setPalette__P25700_mk(s); r0 = s.arg0.fields["_endPalette"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = 0; s.tmp_9.arg2 = 0; s.tmp_9.arg3 = 0; - s.callLocIdx = 137; s.pc = 11; return s.tmp_9; + s.callLocIdx = 147; s.pc = 11; return s.tmp_9; case 11: r0 = s.retval; r0 = (s.arg0).fields["startTime"] = (undefined); @@ -5323,37 +5514,37 @@ switch (step) { { step = 9; continue; } case 5: case 6: - s.tmp_1 = game_runtime__P497318_mk(s); - s.callLocIdx = 138; s.pc = 12; return s.tmp_1; + s.tmp_1 = game_runtime__P24401_mk(s); + s.callLocIdx = 148; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; s.tmp_0 = r0; r0 = s.arg0.fields["startTime"]; s.tmp_2 = r0; r0 = (s.tmp_0 - s.tmp_2); - s.time___501320 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C498388_VT); + s.time___29125 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(color_Palette__C25695_VT); s.tmp_0 = r0; - s.tmp_1 = color_ColorBuffer_constructor__P498351_mk(s); + s.tmp_1 = color_ColorBuffer_constructor__P25658_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_2 = color_ColorBuffer_length__P498354_mk(s); + s.tmp_2 = color_ColorBuffer_length__P25661_mk(s); r0 = s.arg0.fields["_startPalette"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 139; s.pc = 14; return s.tmp_2; + s.callLocIdx = 149; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_1.arg1 = r0; s.tmp_1.arg2 = undefined; - s.callLocIdx = 140; s.pc = 13; return s.tmp_1; + s.callLocIdx = 150; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - s.p___501326 = (s.tmp_0); - s.i___501333 = (0); + s.p___29131 = (s.tmp_0); + s.i___29138 = (0); case 7: - s.tmp_1 = r0 = s.i___501333; - s.tmp_3 = color_ColorBuffer_length__P498354_mk(s); - s.tmp_3.arg0 = s.p___501326; - s.callLocIdx = 141; s.pc = 15; return s.tmp_3; + s.tmp_1 = r0 = s.i___29138; + s.tmp_3 = color_ColorBuffer_length__P25661_mk(s); + s.tmp_3.arg0 = s.p___29131; + s.callLocIdx = 151; s.pc = 15; return s.tmp_3; case 15: r0 = s.retval; s.tmp_2 = r0; @@ -5361,48 +5552,48 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.tmp_4 = color_partialColorTransition__P498404_mk(s); - s.tmp_5 = color_ColorBuffer_color__P498355_mk(s); + s.tmp_4 = color_partialColorTransition__P25711_mk(s); + s.tmp_5 = color_ColorBuffer_color__P25662_mk(s); r0 = s.arg0.fields["_startPalette"]; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = s.i___501333; - s.callLocIdx = 142; s.pc = 17; return s.tmp_5; + s.tmp_5.arg1 = s.i___29138; + s.callLocIdx = 152; s.pc = 17; return s.tmp_5; case 17: r0 = s.retval; s.tmp_4.arg0 = r0; - s.tmp_6 = color_ColorBuffer_color__P498355_mk(s); + s.tmp_6 = color_ColorBuffer_color__P25662_mk(s); r0 = s.arg0.fields["_endPalette"]; s.tmp_6.arg0 = r0; - s.tmp_6.arg1 = s.i___501333; - s.callLocIdx = 143; s.pc = 18; return s.tmp_6; + s.tmp_6.arg1 = s.i___29138; + s.callLocIdx = 153; s.pc = 18; return s.tmp_6; case 18: r0 = s.retval; s.tmp_4.arg1 = r0; r0 = s.arg0.fields["duration"]; s.tmp_7 = r0; - r0 = (s.time___501320 / s.tmp_7); + r0 = (s.time___29125 / s.tmp_7); s.tmp_4.arg2 = r0; - s.callLocIdx = 144; s.pc = 16; return s.tmp_4; + s.callLocIdx = 154; s.pc = 16; return s.tmp_4; case 16: r0 = s.retval; - s.col___501339 = (r0); - s.tmp_0 = color_ColorBuffer_setColor__P498356_mk(s); - s.tmp_0.arg0 = s.p___501326; - s.tmp_0.arg1 = s.i___501333; - s.tmp_0.arg2 = s.col___501339; - s.callLocIdx = 145; s.pc = 19; return s.tmp_0; + s.col___29144 = (r0); + s.tmp_0 = color_ColorBuffer_setColor__P25663_mk(s); + s.tmp_0.arg0 = s.p___29131; + s.tmp_0.arg1 = s.i___29138; + s.tmp_0.arg2 = s.col___29144; + s.callLocIdx = 155; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = (s.i___501333 + 1); - s.i___501333 = (r0); + r0 = (s.i___29138 + 1); + s.i___29138 = (r0); { step = 7; continue; } case 8: - s.tmp_0 = color_setPalette__P498393_mk(s); - s.tmp_0.arg0 = s.p___501326; + s.tmp_0 = color_setPalette__P25700_mk(s); + s.tmp_0.arg0 = s.p___29131; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; s.tmp_0.arg3 = 0; - s.callLocIdx = 146; s.pc = 20; return s.tmp_0; + s.callLocIdx = 156; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; r0 = false; @@ -5410,12 +5601,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_Fade_step__P498421.info = {"start":1934,"length":818,"line":69,"column":8,"endLine":95,"endColumn":9,"fileName":"fade.ts","functionName":"step","argumentNames":["this"]} +color_Fade_step__P25728.info = {"start":1934,"length":818,"line":69,"column":8,"endLine":95,"endColumn":9,"fileName":"fade.ts","functionName":"step","argumentNames":["this"]} -function color_Fade_step__P498421_mk(s) { +function color_Fade_step__P25728_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_step__P498421, depth: s.depth + 1, + parent: s, fn: color_Fade_step__P25728, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5427,10 +5618,10 @@ function color_Fade_step__P498421_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - time___501320: undefined, - p___501326: undefined, - i___501333: undefined, - col___501339: undefined, + time___29125: undefined, + p___29131: undefined, + i___29138: undefined, + col___29144: undefined, arg0: undefined, } } @@ -5438,7 +5629,7 @@ function color_Fade_step__P498421_mk(s) { -function color_partialColorTransition__P498404(s) { +function color_partialColorTransition__P25711(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5448,12 +5639,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r1___501097 = undefined; - s.g1___501101 = undefined; - s.b1___501105 = undefined; - s.rDiff___501109 = undefined; - s.gDiff___501115 = undefined; - s.bDiff___501121 = undefined; + s.r1___28902 = undefined; + s.g1___28906 = undefined; + s.b1___28910 = undefined; + s.rDiff___28914 = undefined; + s.gDiff___28920 = undefined; + s.bDiff___28926 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -5480,68 +5671,68 @@ switch (step) { r0 = (s.arg0 >> 16); s.tmp_2 = r0; r0 = (s.tmp_2 & 255); - s.r1___501097 = (r0); + s.r1___28902 = (r0); r0 = (s.arg0 >> 8); s.tmp_0 = r0; r0 = (s.tmp_0 & 255); - s.g1___501101 = (r0); + s.g1___28906 = (r0); r0 = (s.arg0 >> 0); s.tmp_0 = r0; r0 = (s.tmp_0 & 255); - s.b1___501105 = (r0); + s.b1___28910 = (r0); r0 = (s.arg1 >> 16); s.tmp_1 = r0; r0 = (s.tmp_1 & 255); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.r1___501097); - s.rDiff___501109 = (r0); + r0 = (s.tmp_0 - s.r1___28902); + s.rDiff___28914 = (r0); r0 = (s.arg1 >> 8); s.tmp_1 = r0; r0 = (s.tmp_1 & 255); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.g1___501101); - s.gDiff___501115 = (r0); + r0 = (s.tmp_0 - s.g1___28906); + s.gDiff___28920 = (r0); r0 = (s.arg1 >> 0); s.tmp_1 = r0; r0 = (s.tmp_1 & 255); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.b1___501105); - s.bDiff___501121 = (r0); - s.tmp_0 = color_toColor__P500591_mk(s); - s.tmp_1 = r0 = s.r1___501097; - r0 = (s.rDiff___501109 * s.arg2); + r0 = (s.tmp_0 - s.b1___28910); + s.bDiff___28926 = (r0); + s.tmp_0 = color_toColor__P28283_mk(s); + s.tmp_1 = r0 = s.r1___28902; + r0 = (s.rDiff___28914 * s.arg2); s.tmp_3 = r0; r0 = pxsim.Math_.round(s.tmp_3); s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0.arg0 = r0; - s.tmp_4 = r0 = s.g1___501101; - r0 = (s.gDiff___501115 * s.arg2); + s.tmp_4 = r0 = s.g1___28906; + r0 = (s.gDiff___28920 * s.arg2); s.tmp_6 = r0; r0 = pxsim.Math_.round(s.tmp_6); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_0.arg1 = r0; - s.tmp_7 = r0 = s.b1___501105; - r0 = (s.bDiff___501121 * s.arg2); + s.tmp_7 = r0 = s.b1___28910; + r0 = (s.bDiff___28926 * s.arg2); s.tmp_9 = r0; r0 = pxsim.Math_.round(s.tmp_9); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_0.arg2 = r0; - s.callLocIdx = 114; s.pc = 6; return s.tmp_0; + s.callLocIdx = 124; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 5: return leave(s, r0) default: oops() } } } -color_partialColorTransition__P498404.info = {"start":11146,"length":669,"line":364,"column":4,"endLine":384,"endColumn":5,"fileName":"color.ts","functionName":"partialColorTransition","argumentNames":["start","end","percentage"]} +color_partialColorTransition__P25711.info = {"start":12952,"length":669,"line":413,"column":4,"endLine":433,"endColumn":5,"fileName":"color.ts","functionName":"partialColorTransition","argumentNames":["start","end","percentage"]} -function color_partialColorTransition__P498404_mk(s) { +function color_partialColorTransition__P25711_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_partialColorTransition__P498404, depth: s.depth + 1, + parent: s, fn: color_partialColorTransition__P25711, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5553,12 +5744,12 @@ function color_partialColorTransition__P498404_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - r1___501097: undefined, - g1___501101: undefined, - b1___501105: undefined, - rDiff___501109: undefined, - gDiff___501115: undefined, - bDiff___501121: undefined, + r1___28902: undefined, + g1___28906: undefined, + b1___28910: undefined, + rDiff___28914: undefined, + gDiff___28920: undefined, + bDiff___28926: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -5568,7 +5759,7 @@ function color_partialColorTransition__P498404_mk(s) { -function game_forever__P497315(s) { +function game_forever__P24391(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5582,26 +5773,26 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.foreverRunning___498884); + r0 = pxsim_numops_toBoolDecr(globals.foreverRunning___26208); 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; } - globals.foreverRunning___498884 = (true); - r0 = pxsim.control.runInParallel(inline__P501892); + globals.foreverRunning___26208 = (true); + r0 = pxsim.control.runInParallel(game_forever_inline__P29709); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_GameForeverHandler__C497168_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_GameForeverHandler__C24245_VT); s.tmp_0 = r0; - s.tmp_1 = scene_GameForeverHandler_constructor__P497170_mk(s); + s.tmp_1 = scene_GameForeverHandler_constructor__P24247_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 837; s.pc = 3; return s.tmp_1; + s.callLocIdx = 938; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.tmp_3 = game_currentScene__P497302_mk(s); - s.callLocIdx = 836; s.pc = 4; return s.tmp_3; + s.tmp_3 = game_currentScene__P24380_mk(s); + s.callLocIdx = 937; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; r0 = r0.fields["gameForeverHandlers"]; @@ -5611,12 +5802,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_forever__P497315.info = {"start":8610,"length":820,"line":277,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"forever","argumentNames":["action"]} +game_forever__P24391.info = {"start":7421,"length":820,"line":243,"column":4,"endLine":266,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"forever","argumentNames":["action"]} -function game_forever__P497315_mk(s) { +function game_forever__P24391_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_forever__P497315, depth: s.depth + 1, + parent: s, fn: game_forever__P24391, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5629,7 +5820,7 @@ function game_forever__P497315_mk(s) { -function inline__P501892(s) { +function game_forever_inline__P29709(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5639,25 +5830,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.handlers___501894 = undefined; + s.handlers___29711 = undefined; case 1: r0 = pxsim_numops_toBoolDecr(1); if (!r0) { step = 2; continue; } - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 832; s.pc = 3; return s.tmp_0; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 933; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = r0.fields["gameForeverHandlers"]; - s.handlers___501894 = (r0); - s.tmp_0 = helpers_arrayForEach__P494861_mk(s); - s.tmp_0.arg0 = s.handlers___501894; - s.tmp_0.arg1 = inline__P501900; - s.callLocIdx = 834; s.pc = 4; return s.tmp_0; + s.handlers___29711 = (r0); + s.tmp_0 = helpers_arrayForEach__P21804_mk(s); + s.tmp_0.arg0 = s.handlers___29711; + s.tmp_0.arg1 = game_forever_inline__P29717; + s.callLocIdx = 935; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = pause__P495158_mk(s); + s.tmp_0 = pause__P22108_mk(s); s.tmp_0.arg0 = 20; - s.callLocIdx = 835; s.pc = 5; return s.tmp_0; + s.callLocIdx = 936; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; { step = 1; continue; } @@ -5666,22 +5857,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P501892.info = {"start":8762,"length":535,"line":280,"column":34,"endLine":294,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +game_forever_inline__P29709.info = {"start":7573,"length":535,"line":246,"column":34,"endLine":260,"endColumn":13,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function inline__P501892_mk(s) { +function game_forever_inline__P29709_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501892, depth: s.depth + 1, + parent: s, fn: game_forever_inline__P29709, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - handlers___501894: undefined, + handlers___29711: undefined, } } -function inline__P501900(s) { +function game_forever_inline__P29717(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5704,7 +5895,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["lock"] = (true); - r0 = pxsim_pxtcore_mkAction(1, inline__P501909); + r0 = pxsim_pxtcore_mkAction(1, game_forever_inline__P29726); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = pxsim.control.runInParallel(s.tmp_0); @@ -5714,12 +5905,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P501900.info = {"start":8913,"length":319,"line":283,"column":37,"endLine":291,"endColumn":21,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["h"]} +game_forever_inline__P29717.info = {"start":7724,"length":319,"line":249,"column":37,"endLine":257,"endColumn":21,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["h"]} -function inline__P501900_mk(s) { +function game_forever_inline__P29717_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501900, depth: s.depth + 1, + parent: s, fn: game_forever_inline__P29717, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -5731,7 +5922,7 @@ function inline__P501900_mk(s) { -function inline__P501909(s) { +function game_forever_inline__P29726(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5745,12 +5936,12 @@ switch (step) { s.tmp_0.arg0 = s.caps[0]; if (!s.tmp_0.arg0.vtable.iface) { setupLambda(s.tmp_0, pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "handler"), 1); - s.callLocIdx = 833; s.pc = 1; return s.tmp_0; + s.callLocIdx = 934; 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"], 1); s.callLocIdx = 833; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 833; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 833; s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["handler"], 1); s.callLocIdx = 934; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 934; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 934; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -5759,12 +5950,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P501909.info = {"start":9052,"length":130,"line":286,"column":50,"endLine":289,"endColumn":29,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +game_forever_inline__P29726.info = {"start":7863,"length":130,"line":252,"column":50,"endLine":255,"endColumn":29,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} -function inline__P501909_mk(s) { +function game_forever_inline__P29726_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501909, depth: s.depth + 1, + parent: s, fn: game_forever_inline__P29726, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -5773,7 +5964,7 @@ function inline__P501909_mk(s) { -function scene_GameForeverHandler_constructor__P497170(s) { +function scene_GameForeverHandler_constructor__P24247(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5789,18 +5980,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_GameForeverHandler__C497168_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_GameForeverHandler__C24245_VT)) failedCast(r0); r0 = (s.arg0).fields["handler"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_GameForeverHandler_constructor__P497170.info = {"start":1340,"length":65,"line":47,"column":8,"endLine":49,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","handler"]} +scene_GameForeverHandler_constructor__P24247.info = {"start":1340,"length":65,"line":47,"column":8,"endLine":49,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["this","handler"]} -function scene_GameForeverHandler_constructor__P497170_mk(s) { +function scene_GameForeverHandler_constructor__P24247_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_GameForeverHandler_constructor__P497170, depth: s.depth + 1, + parent: s, fn: scene_GameForeverHandler_constructor__P24247, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -5810,7 +6001,7 @@ function scene_GameForeverHandler_constructor__P497170_mk(s) { -function helpers_arrayForEach__P494861(s) { +function helpers_arrayForEach__P21804(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5820,49 +6011,49 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___501927 = undefined; - s.i___501930 = undefined; + s.len___29744 = undefined; + s.i___29747 = 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___501927 = (r0); - s.i___501930 = (0); + s.len___29744 = (r0); + s.i___29747 = (0); case 1: - r0 = (s.i___501930 < s.len___501927); + r0 = (s.i___29747 < s.len___29744); 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___501930); + r0 = pxsim_Array__getAt(s.arg0, s.i___29747); s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___501930; + s.tmp_1.arg1 = s.i___29747; 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___501930 + 1); - s.i___501930 = (r0); + r0 = (s.i___29747 + 1); + s.i___29747 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_arrayForEach__P494861.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__P21804.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__P494861_mk(s) { +function helpers_arrayForEach__P21804_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayForEach__P494861, depth: s.depth + 1, + parent: s, fn: helpers_arrayForEach__P21804, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___501927: undefined, - i___501930: undefined, + len___29744: undefined, + i___29747: undefined, arg0: undefined, arg1: undefined, } } @@ -5871,7 +6062,7 @@ function helpers_arrayForEach__P494861_mk(s) { -function inline__P501734(s) { +function RotatePalette_inline__P29551(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5881,98 +6072,98 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.l___501735 = undefined; - s.p___501738 = undefined; - s.lastColor___501743 = undefined; - s.i___501749 = undefined; - s.tmp_0 = color_availableColors__P498399_mk(s); - s.callLocIdx = 216; s.pc = 3; return s.tmp_0; + s.l___29552 = undefined; + s.p___29555 = undefined; + s.lastColor___29560 = undefined; + s.i___29566 = undefined; + s.tmp_0 = color_availableColors__P25706_mk(s); + s.callLocIdx = 228; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.l___501735 = (r0); - s.tmp_0 = color__clone__P498407_mk(s); - s.tmp_1 = color_currentPalette__P498406_mk(s); - s.callLocIdx = 217; s.pc = 5; return s.tmp_1; + s.l___29552 = (r0); + s.tmp_0 = color__clone__P25714_mk(s); + s.tmp_1 = color_currentPalette__P25713_mk(s); + s.callLocIdx = 229; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg0 = r0; - s.callLocIdx = 218; s.pc = 4; return s.tmp_0; + s.callLocIdx = 230; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.p___501738 = (r0); - s.tmp_0 = color_ColorBuffer_color__P498355_mk(s); - s.tmp_0.arg0 = s.p___501738; - r0 = (s.l___501735 - 1); + s.p___29555 = (r0); + s.tmp_0 = color_ColorBuffer_color__P25662_mk(s); + s.tmp_0.arg0 = s.p___29555; + r0 = (s.l___29552 - 1); s.tmp_0.arg1 = r0; - s.callLocIdx = 219; s.pc = 6; return s.tmp_0; + s.callLocIdx = 231; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.lastColor___501743 = (r0); - r0 = (s.l___501735 - 1); - s.i___501749 = (r0); + s.lastColor___29560 = (r0); + r0 = (s.l___29552 - 1); + s.i___29566 = (r0); case 1: - r0 = (s.i___501749 > 1); + r0 = (s.i___29566 > 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = color_ColorBuffer_setColor__P498356_mk(s); - s.tmp_1.arg0 = s.p___501738; - s.tmp_1.arg1 = s.i___501749; - s.tmp_2 = color_ColorBuffer_color__P498355_mk(s); - s.tmp_2.arg0 = s.p___501738; - r0 = (s.i___501749 - 1); + s.tmp_1 = color_ColorBuffer_setColor__P25663_mk(s); + s.tmp_1.arg0 = s.p___29555; + s.tmp_1.arg1 = s.i___29566; + s.tmp_2 = color_ColorBuffer_color__P25662_mk(s); + s.tmp_2.arg0 = s.p___29555; + r0 = (s.i___29566 - 1); s.tmp_2.arg1 = r0; - s.callLocIdx = 220; s.pc = 8; return s.tmp_2; + s.callLocIdx = 232; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; s.tmp_1.arg2 = r0; - s.callLocIdx = 221; s.pc = 7; return s.tmp_1; + s.callLocIdx = 233; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - r0 = (s.i___501749 - 1); - s.i___501749 = (r0); + r0 = (s.i___29566 - 1); + s.i___29566 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = color_ColorBuffer_setColor__P498356_mk(s); - s.tmp_0.arg0 = s.p___501738; + s.tmp_0 = color_ColorBuffer_setColor__P25663_mk(s); + s.tmp_0.arg0 = s.p___29555; s.tmp_0.arg1 = 1; - s.tmp_0.arg2 = s.lastColor___501743; - s.callLocIdx = 222; s.pc = 9; return s.tmp_0; + s.tmp_0.arg2 = s.lastColor___29560; + s.callLocIdx = 234; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C498409_VT); + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); s.tmp_0 = r0; r0 = undefined; - s.tmp_1 = color_Fade_setEndPalette__P498419_mk(s); + s.tmp_1 = color_Fade_setEndPalette__P25726_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.p___501738; - s.callLocIdx = 224; s.pc = 10; return s.tmp_1; + s.tmp_1.arg1 = s.p___29555; + s.callLocIdx = 236; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P501734.info = {"start":1106,"length":331,"line":36,"column":48,"endLine":48,"endColumn":5,"fileName":"effect.ts","functionName":"inline","argumentNames":[]} +RotatePalette_inline__P29551.info = {"start":1240,"length":331,"line":38,"column":58,"endLine":50,"endColumn":5,"fileName":"effect.ts","functionName":"inline","argumentNames":[]} -function inline__P501734_mk(s) { +function RotatePalette_inline__P29551_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501734, depth: s.depth + 1, + parent: s, fn: RotatePalette_inline__P29551, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - l___501735: undefined, - p___501738: undefined, - lastColor___501743: undefined, - i___501749: undefined, + l___29552: undefined, + p___29555: undefined, + lastColor___29560: undefined, + i___29566: undefined, } } -function color_FadeEffect_constructor__P498390(s) { +function color_FadeEffect_constructor__P25697(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -5985,31 +6176,37 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); + s.arg2 = (s.lambdaArgs[2]); + s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_FadeEffect__C498389_VT)) failedCast(r0); - r0 = (s.arg0).fields["fadeFactory"] = (s.arg1); + if (!checkSubtype(r0, color_FadeEffect__C25696_VT)) failedCast(r0); + r0 = (s.arg0).fields["id"] = (s.arg1); + r0 = (s.arg0).fields["fadeFactory"] = (s.arg2); + r0 = (s.arg0).fields["revertsId"] = (s.arg3); r0 = undefined; return leave(s, r0) default: oops() } } } -color_FadeEffect_constructor__P498390.info = {"start":4944,"length":50,"line":181,"column":8,"endLine":181,"endColumn":58,"fileName":"color.ts","functionName":"inline","argumentNames":["this","fadeFactory"]} +color_FadeEffect_constructor__P25697.info = {"start":5721,"length":148,"line":206,"column":8,"endLine":210,"endColumn":13,"fileName":"color.ts","functionName":"inline","argumentNames":["this","id","fadeFactory","revertsId"]} -function color_FadeEffect_constructor__P498390_mk(s) { +function color_FadeEffect_constructor__P25697_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_FadeEffect_constructor__P498390, depth: s.depth + 1, + parent: s, fn: color_FadeEffect_constructor__P25697, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function inline__P501676(s) { +function FadeToBlack_inline__P29491(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6019,24 +6216,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C498409_VT); + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); s.tmp_0 = r0; r0 = undefined; - s.tmp_1 = color_Fade_setEndPalette__P498419_mk(s); + s.tmp_1 = color_Fade_setEndPalette__P25726_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.Black___498443; - s.callLocIdx = 200; s.pc = 1; return s.tmp_1; + s.tmp_1.arg1 = globals.Black___25751; + s.callLocIdx = 212; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P501676.info = {"start":117,"length":76,"line":2,"column":46,"endLine":5,"endColumn":5,"fileName":"effect.ts","functionName":"inline","argumentNames":[]} +FadeToBlack_inline__P29491.info = {"start":182,"length":76,"line":4,"column":61,"endLine":7,"endColumn":5,"fileName":"effect.ts","functionName":"inline","argumentNames":[]} -function inline__P501676_mk(s) { +function FadeToBlack_inline__P29491_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501676, depth: s.depth + 1, + parent: s, fn: FadeToBlack_inline__P29491, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6046,7 +6243,7 @@ function inline__P501676_mk(s) { -function color_brightenEffect__P501713(s) { +function color_brightenEffect__P29529(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6056,38 +6253,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.f___501714 = undefined; - r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C498409_VT); + s.f___29530 = undefined; + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); s.tmp_0 = r0; r0 = undefined; - s.f___501714 = (s.tmp_0); - s.tmp_0 = color_Fade_mapEndHSL__P498427_mk(s); - s.tmp_0.arg0 = s.f___501714; - s.tmp_0.arg1 = inline__P501721; + s.f___29530 = (s.tmp_0); + s.tmp_0 = color_Fade_mapEndHSL__P25734_mk(s); + s.tmp_0.arg0 = s.f___29530; + s.tmp_0.arg1 = color_brightenEffect_inline__P29537; s.tmp_0.arg2 = undefined; s.tmp_0.arg3 = undefined; - s.callLocIdx = 215; s.pc = 1; return s.tmp_0; + s.callLocIdx = 227; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -color_brightenEffect__P501713.info = {"start":798,"length":204,"line":26,"column":4,"endLine":33,"endColumn":5,"fileName":"effect.ts","functionName":"brightenEffect","argumentNames":[]} +color_brightenEffect__P29529.info = {"start":922,"length":204,"line":28,"column":4,"endLine":35,"endColumn":5,"fileName":"effect.ts","functionName":"brightenEffect","argumentNames":[]} -function color_brightenEffect__P501713_mk(s) { +function color_brightenEffect__P29529_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_brightenEffect__P501713, depth: s.depth + 1, + parent: s, fn: color_brightenEffect__P29529, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - f___501714: undefined, + f___29530: undefined, } } -function inline__P501721(s) { +function color_brightenEffect_inline__P29537(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6101,36 +6298,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = color_HSL_luminosity__P498384_mk(s); + s.tmp_0 = color_HSL_luminosity__P25691_mk(s); s.tmp_1 = r0 = s.arg0; s.tmp_0.arg0 = r0; r0 = s.tmp_1.fields["l"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 0.75); s.tmp_0.arg1 = r0; - s.callLocIdx = 212; s.pc = 1; return s.tmp_0; + s.callLocIdx = 224; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = color_HSL_saturation__P498382_mk(s); + s.tmp_0 = color_HSL_saturation__P25689_mk(s); s.tmp_1 = r0 = s.arg0; s.tmp_0.arg0 = r0; r0 = s.tmp_1.fields["s"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 0.9); s.tmp_0.arg1 = r0; - s.callLocIdx = 214; s.pc = 2; return s.tmp_0; + s.callLocIdx = 226; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = s.arg0; return leave(s, r0) default: oops() } } } -inline__P501721.info = {"start":883,"length":111,"line":28,"column":27,"endLine":32,"endColumn":9,"fileName":"effect.ts","functionName":"inline","argumentNames":["hsl"]} +color_brightenEffect_inline__P29537.info = {"start":1007,"length":111,"line":30,"column":27,"endLine":34,"endColumn":9,"fileName":"effect.ts","functionName":"inline","argumentNames":["hsl"]} -function inline__P501721_mk(s) { +function color_brightenEffect_inline__P29537_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501721, depth: s.depth + 1, + parent: s, fn: color_brightenEffect_inline__P29537, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6142,7 +6339,7 @@ function inline__P501721_mk(s) { -function color_HSL_saturation__P498382(s) { +function color_HSL_saturation__P25689(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6158,13 +6355,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P494878_mk(s); + s.tmp_2 = Math_clamp__P21822_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = s.arg1; - s.callLocIdx = 77; s.pc = 1; return s.tmp_2; + s.callLocIdx = 66; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -6173,12 +6370,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_HSL_saturation__P498382.info = {"start":2115,"length":79,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"color.ts","functionName":"saturation","argumentNames":["this","v"]} +color_HSL_saturation__P25689.info = {"start":2115,"length":79,"line":91,"column":8,"endLine":93,"endColumn":9,"fileName":"color.ts","functionName":"saturation","argumentNames":["this","v"]} -function color_HSL_saturation__P498382_mk(s) { +function color_HSL_saturation__P25689_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_saturation__P498382, depth: s.depth + 1, + parent: s, fn: color_HSL_saturation__P25689, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6191,7 +6388,7 @@ function color_HSL_saturation__P498382_mk(s) { -function color_HSL_saturation__P498381(s) { +function color_HSL_saturation__P25688(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6206,18 +6403,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); r0 = s.arg0.fields["s"]; return leaveAccessor(s, r0) default: oops() } } } -color_HSL_saturation__P498381.info = {"start":2043,"length":63,"line":88,"column":8,"endLine":90,"endColumn":9,"fileName":"color.ts","functionName":"saturation","argumentNames":["this"]} -color_HSL_saturation__P498381.isGetter = true; +color_HSL_saturation__P25688.info = {"start":2043,"length":63,"line":88,"column":8,"endLine":90,"endColumn":9,"fileName":"color.ts","functionName":"saturation","argumentNames":["this"]} +color_HSL_saturation__P25688.isGetter = true; -function color_HSL_saturation__P498381_mk(s) { +function color_HSL_saturation__P25688_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_saturation__P498381, depth: s.depth + 1, + parent: s, fn: color_HSL_saturation__P25688, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -6226,7 +6423,7 @@ function color_HSL_saturation__P498381_mk(s) { -function color_HSL_luminosity__P498384(s) { +function color_HSL_luminosity__P25691(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6242,13 +6439,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P494878_mk(s); + s.tmp_2 = Math_clamp__P21822_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = s.arg1; - s.callLocIdx = 78; s.pc = 1; return s.tmp_2; + s.callLocIdx = 67; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; @@ -6257,12 +6454,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_HSL_luminosity__P498384.info = {"start":2276,"length":79,"line":98,"column":8,"endLine":100,"endColumn":9,"fileName":"color.ts","functionName":"luminosity","argumentNames":["this","v"]} +color_HSL_luminosity__P25691.info = {"start":2276,"length":79,"line":98,"column":8,"endLine":100,"endColumn":9,"fileName":"color.ts","functionName":"luminosity","argumentNames":["this","v"]} -function color_HSL_luminosity__P498384_mk(s) { +function color_HSL_luminosity__P25691_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_luminosity__P498384, depth: s.depth + 1, + parent: s, fn: color_HSL_luminosity__P25691, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6275,7 +6472,7 @@ function color_HSL_luminosity__P498384_mk(s) { -function color_HSL_luminosity__P498383(s) { +function color_HSL_luminosity__P25690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6290,18 +6487,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); r0 = s.arg0.fields["l"]; return leaveAccessor(s, r0) default: oops() } } } -color_HSL_luminosity__P498383.info = {"start":2204,"length":63,"line":95,"column":8,"endLine":97,"endColumn":9,"fileName":"color.ts","functionName":"luminosity","argumentNames":["this"]} -color_HSL_luminosity__P498383.isGetter = true; +color_HSL_luminosity__P25690.info = {"start":2204,"length":63,"line":95,"column":8,"endLine":97,"endColumn":9,"fileName":"color.ts","functionName":"luminosity","argumentNames":["this"]} +color_HSL_luminosity__P25690.isGetter = true; -function color_HSL_luminosity__P498383_mk(s) { +function color_HSL_luminosity__P25690_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_luminosity__P498383, depth: s.depth + 1, + parent: s, fn: color_HSL_luminosity__P25690, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -6310,7 +6507,7 @@ function color_HSL_luminosity__P498383_mk(s) { -function color_Fade_mapEndHSL__P498427(s) { +function color_Fade_mapEndHSL__P25734(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6320,11 +6517,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___501464 = undefined; - s.p___501467 = undefined; - s.i___501487 = undefined; - s.initHSL___501493 = undefined; - s.applied___501500 = undefined; + s.out___29269 = undefined; + s.p___29272 = undefined; + s.i___29292 = undefined; + s.initHSL___29298 = undefined; + s.applied___29305 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -6333,115 +6530,115 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_Fade__C498409_VT)) failedCast(r0); - s.tmp_0 = color_Fade_clone__P498425_mk(s); + if (!checkSubtype(r0, color_Fade__C25716_VT)) failedCast(r0); + s.tmp_0 = color_Fade_clone__P25732_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 164; s.pc = 5; return s.tmp_0; + s.callLocIdx = 175; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.out___501464 = (r0); - s.tmp_0 = color__clone__P498407_mk(s); - s.tmp_1 = color_Fade_endPalette__P498412_mk(s); + s.out___29269 = (r0); + s.tmp_0 = color__clone__P25714_mk(s); + s.tmp_1 = color_Fade_endPalette__P25719_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 165; s.pc = 7; return s.tmp_1; + s.callLocIdx = 176; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; s.tmp_0.arg0 = r0; - s.callLocIdx = 166; s.pc = 6; return s.tmp_0; + s.callLocIdx = 177; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.p___501467 = (r0); + s.p___29272 = (r0); r0 = (s.arg2 | 0); s.arg2 = (r0); r0 = (s.arg3 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = color_ColorBuffer_length__P498354_mk(s); - s.tmp_2.arg0 = s.p___501467; - s.callLocIdx = 167; s.pc = 8; return s.tmp_2; + s.tmp_2 = color_ColorBuffer_length__P25661_mk(s); + s.tmp_2.arg0 = s.p___29272; + s.callLocIdx = 178; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_1 - 1); { step = 2; continue; } case 1: - s.tmp_3 = Math_min__P494882_mk(s); - s.tmp_5 = color_ColorBuffer_length__P498354_mk(s); - s.tmp_5.arg0 = s.p___501467; - s.callLocIdx = 168; s.pc = 10; return s.tmp_5; + s.tmp_3 = Math_min__P21826_mk(s); + s.tmp_5 = color_ColorBuffer_length__P25661_mk(s); + s.tmp_5.arg0 = s.p___29272; + s.callLocIdx = 179; s.pc = 10; return s.tmp_5; case 10: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_4 - 1); s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.arg3; - s.callLocIdx = 169; s.pc = 9; return s.tmp_3; + s.callLocIdx = 180; s.pc = 9; return s.tmp_3; case 9: r0 = s.retval; case 2: // jmp value (already in r0) s.tmp_6 = r0; s.arg3 = (s.tmp_6); - s.i___501487 = (s.arg2); + s.i___29292 = (s.arg2); case 3: - r0 = (s.i___501487 <= s.arg3); + r0 = (s.i___29292 <= s.arg3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = color_HSL_fromHexValue__P498387_mk(s); - s.tmp_2 = color_ColorBuffer_color__P498355_mk(s); - s.tmp_2.arg0 = s.p___501467; - s.tmp_2.arg1 = s.i___501487; - s.callLocIdx = 170; s.pc = 12; return s.tmp_2; + s.tmp_1 = color_HSL_fromHexValue__P25694_mk(s); + s.tmp_2 = color_ColorBuffer_color__P25662_mk(s); + s.tmp_2.arg0 = s.p___29272; + s.tmp_2.arg1 = s.i___29292; + s.callLocIdx = 181; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1.arg0 = r0; - s.callLocIdx = 171; s.pc = 11; return s.tmp_1; + s.callLocIdx = 182; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - s.initHSL___501493 = (r0); + s.initHSL___29298 = (r0); s.tmp_0 = lambda_4_mk(s); s.tmp_0.argL = s.arg1; - s.tmp_0.arg0 = s.initHSL___501493; - s.tmp_0.arg1 = s.i___501487; - s.tmp_0.arg2 = s.p___501467; + s.tmp_0.arg0 = s.initHSL___29298; + s.tmp_0.arg1 = s.i___29292; + s.tmp_0.arg2 = s.p___29272; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 172; s.pc = 13; return s.tmp_0; + s.callLocIdx = 183; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.applied___501500 = (r0); - s.tmp_0 = color_ColorBuffer_setColor__P498356_mk(s); - s.tmp_0.arg0 = s.p___501467; - s.tmp_0.arg1 = s.i___501487; - s.tmp_1 = color_HSL_hexValue__P498386_mk(s); - s.tmp_1.arg0 = s.applied___501500; - s.callLocIdx = 173; s.pc = 15; return s.tmp_1; + s.applied___29305 = (r0); + s.tmp_0 = color_ColorBuffer_setColor__P25663_mk(s); + s.tmp_0.arg0 = s.p___29272; + s.tmp_0.arg1 = s.i___29292; + s.tmp_1 = color_HSL_hexValue__P25693_mk(s); + s.tmp_1.arg0 = s.applied___29305; + s.callLocIdx = 184; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0.arg2 = r0; - s.callLocIdx = 174; s.pc = 14; return s.tmp_0; + s.callLocIdx = 185; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - r0 = (s.i___501487 + 1); - s.i___501487 = (r0); + r0 = (s.i___29292 + 1); + s.i___29292 = (r0); { step = 3; continue; } case 4: - s.tmp_0 = color_Fade_setEndPalette__P498419_mk(s); - s.tmp_0.arg0 = s.out___501464; - s.tmp_0.arg1 = s.p___501467; - s.callLocIdx = 175; s.pc = 16; return s.tmp_0; + s.tmp_0 = color_Fade_setEndPalette__P25726_mk(s); + s.tmp_0.arg0 = s.out___29269; + s.tmp_0.arg1 = s.p___29272; + s.callLocIdx = 186; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; return leave(s, r0) default: oops() } } } -color_Fade_mapEndHSL__P498427.info = {"start":4238,"length":734,"line":148,"column":8,"endLine":169,"endColumn":9,"fileName":"fade.ts","functionName":"mapEndHSL","argumentNames":["this","h","firstIndex","lastIndex"]} +color_Fade_mapEndHSL__P25734.info = {"start":4238,"length":734,"line":148,"column":8,"endLine":169,"endColumn":9,"fileName":"fade.ts","functionName":"mapEndHSL","argumentNames":["this","h","firstIndex","lastIndex"]} -function color_Fade_mapEndHSL__P498427_mk(s) { +function color_Fade_mapEndHSL__P25734_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_Fade_mapEndHSL__P498427, depth: s.depth + 1, + parent: s, fn: color_Fade_mapEndHSL__P25734, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6450,11 +6647,11 @@ function color_Fade_mapEndHSL__P498427_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - out___501464: undefined, - p___501467: undefined, - i___501487: undefined, - initHSL___501493: undefined, - applied___501500: undefined, + out___29269: undefined, + p___29272: undefined, + i___29292: undefined, + initHSL___29298: undefined, + applied___29305: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -6465,7 +6662,7 @@ function color_Fade_mapEndHSL__P498427_mk(s) { -function color_HSL_hexValue__P498386(s) { +function color_HSL_hexValue__P25693(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6475,25 +6672,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.chroma___500672 = undefined; - s.hp___500684 = undefined; - s.x___500687 = undefined; - s.rgb1___500698 = undefined; - s.m___500740 = undefined; + s.chroma___28364 = undefined; + s.hp___28376 = undefined; + s.x___28379 = undefined; + s.rgb1___28390 = undefined; + s.m___28432 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); - s.tmp_2 = Math_abs__P494879_mk(s); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); + s.tmp_2 = Math_abs__P21823_mk(s); r0 = s.arg0.fields["l"]; s.tmp_4 = r0; r0 = (2 * s.tmp_4); s.tmp_3 = r0; r0 = (s.tmp_3 - 1); s.tmp_2.arg0 = r0; - s.callLocIdx = 80; s.pc = 15; return s.tmp_2; + s.callLocIdx = 69; s.pc = 15; return s.tmp_2; case 15: r0 = s.retval; s.tmp_1 = r0; @@ -6502,25 +6699,25 @@ switch (step) { r0 = s.arg0.fields["s"]; s.tmp_5 = r0; r0 = (s.tmp_0 * s.tmp_5); - s.chroma___500672 = (r0); + s.chroma___28364 = (r0); r0 = s.arg0.fields["h"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 60); - s.hp___500684 = (r0); - s.tmp_0 = r0 = s.chroma___500672; - s.tmp_3 = Math_abs__P494879_mk(s); - r0 = (s.hp___500684 % 2); + s.hp___28376 = (r0); + s.tmp_0 = r0 = s.chroma___28364; + s.tmp_3 = Math_abs__P21823_mk(s); + r0 = (s.hp___28376 % 2); s.tmp_4 = r0; r0 = (s.tmp_4 - 1); s.tmp_3.arg0 = r0; - s.callLocIdx = 83; s.pc = 16; return s.tmp_3; + s.callLocIdx = 72; s.pc = 16; return s.tmp_3; case 16: r0 = s.retval; s.tmp_2 = r0; r0 = (1 - s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 * s.tmp_1); - s.x___500687 = (r0); + s.x___28379 = (r0); r0 = s.arg0.fields["h"]; s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); @@ -6532,79 +6729,79 @@ switch (step) { r0 = pxsim_Array__push(s.tmp_2, 0); r0 = pxsim_Array__push(s.tmp_2, 0); r0 = pxsim_Array__push(s.tmp_2, 0); - s.rgb1___500698 = (s.tmp_2); + s.rgb1___28390 = (s.tmp_2); { step = 14; continue; } case 1: - r0 = (s.hp___500684 <= 1); + r0 = (s.hp___28376 <= 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.chroma___500672); - r0 = pxsim_Array__push(s.tmp_1, s.x___500687); + r0 = pxsim_Array__push(s.tmp_1, s.chroma___28364); + r0 = pxsim_Array__push(s.tmp_1, s.x___28379); r0 = pxsim_Array__push(s.tmp_1, 0); - s.rgb1___500698 = (s.tmp_1); + s.rgb1___28390 = (s.tmp_1); { step = 13; continue; } case 2: - r0 = (s.hp___500684 <= 2); + r0 = (s.hp___28376 <= 2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.x___500687); - r0 = pxsim_Array__push(s.tmp_1, s.chroma___500672); + r0 = pxsim_Array__push(s.tmp_1, s.x___28379); + r0 = pxsim_Array__push(s.tmp_1, s.chroma___28364); r0 = pxsim_Array__push(s.tmp_1, 0); - s.rgb1___500698 = (s.tmp_1); + s.rgb1___28390 = (s.tmp_1); { step = 12; continue; } case 3: - r0 = (s.hp___500684 <= 3); + r0 = (s.hp___28376 <= 3); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_1, 0); - r0 = pxsim_Array__push(s.tmp_1, s.chroma___500672); - r0 = pxsim_Array__push(s.tmp_1, s.x___500687); - s.rgb1___500698 = (s.tmp_1); + r0 = pxsim_Array__push(s.tmp_1, s.chroma___28364); + r0 = pxsim_Array__push(s.tmp_1, s.x___28379); + s.rgb1___28390 = (s.tmp_1); { step = 11; continue; } case 4: - r0 = (s.hp___500684 <= 4); + r0 = (s.hp___28376 <= 4); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_1, 0); - r0 = pxsim_Array__push(s.tmp_1, s.x___500687); - r0 = pxsim_Array__push(s.tmp_1, s.chroma___500672); - s.rgb1___500698 = (s.tmp_1); + r0 = pxsim_Array__push(s.tmp_1, s.x___28379); + r0 = pxsim_Array__push(s.tmp_1, s.chroma___28364); + s.rgb1___28390 = (s.tmp_1); { step = 10; continue; } case 5: - r0 = (s.hp___500684 <= 5); + r0 = (s.hp___28376 <= 5); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.x___500687); + r0 = pxsim_Array__push(s.tmp_1, s.x___28379); r0 = pxsim_Array__push(s.tmp_1, 0); - r0 = pxsim_Array__push(s.tmp_1, s.chroma___500672); - s.rgb1___500698 = (s.tmp_1); + r0 = pxsim_Array__push(s.tmp_1, s.chroma___28364); + s.rgb1___28390 = (s.tmp_1); { step = 9; continue; } case 6: - r0 = (s.hp___500684 <= 6); + r0 = (s.hp___28376 <= 6); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } r0 = pxsim_Array__mk(); s.tmp_1 = r0; - r0 = pxsim_Array__push(s.tmp_1, s.chroma___500672); + r0 = pxsim_Array__push(s.tmp_1, s.chroma___28364); r0 = pxsim_Array__push(s.tmp_1, 0); - r0 = pxsim_Array__push(s.tmp_1, s.x___500687); - s.rgb1___500698 = (s.tmp_1); + r0 = pxsim_Array__push(s.tmp_1, s.x___28379); + s.rgb1___28390 = (s.tmp_1); case 7: case 8: case 9: @@ -6615,47 +6812,47 @@ switch (step) { case 14: r0 = s.arg0.fields["l"]; s.tmp_0 = r0; - r0 = (s.chroma___500672 * 0.5); + r0 = (s.chroma___28364 * 0.5); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.m___500740 = (r0); - s.tmp_0 = color_toColor__P500591_mk(s); - r0 = pxsim_Array__getAt(s.rgb1___500698, 0); + s.m___28432 = (r0); + s.tmp_0 = color_toColor__P28283_mk(s); + r0 = pxsim_Array__getAt(s.rgb1___28390, 0); s.tmp_3 = r0; - r0 = (s.tmp_3 + s.m___500740); + r0 = (s.tmp_3 + s.m___28432); s.tmp_2 = r0; r0 = (255 * s.tmp_2); s.tmp_1 = r0; r0 = pxsim.Math_.round(s.tmp_1); s.tmp_0.arg0 = r0; - r0 = pxsim_Array__getAt(s.rgb1___500698, 1); + r0 = pxsim_Array__getAt(s.rgb1___28390, 1); s.tmp_6 = r0; - r0 = (s.tmp_6 + s.m___500740); + r0 = (s.tmp_6 + s.m___28432); s.tmp_5 = r0; r0 = (255 * s.tmp_5); s.tmp_4 = r0; r0 = pxsim.Math_.round(s.tmp_4); s.tmp_0.arg1 = r0; - r0 = pxsim_Array__getAt(s.rgb1___500698, 2); + r0 = pxsim_Array__getAt(s.rgb1___28390, 2); s.tmp_9 = r0; - r0 = (s.tmp_9 + s.m___500740); + r0 = (s.tmp_9 + s.m___28432); s.tmp_8 = r0; r0 = (255 * s.tmp_8); s.tmp_7 = r0; r0 = pxsim.Math_.round(s.tmp_7); s.tmp_0.arg2 = r0; - s.callLocIdx = 86; s.pc = 17; return s.tmp_0; + s.callLocIdx = 75; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; return leave(s, r0) default: oops() } } } -color_HSL_hexValue__P498386.info = {"start":2539,"length":1142,"line":107,"column":8,"endLine":137,"endColumn":9,"fileName":"color.ts","functionName":"hexValue","argumentNames":["this"]} +color_HSL_hexValue__P25693.info = {"start":2539,"length":1142,"line":107,"column":8,"endLine":137,"endColumn":9,"fileName":"color.ts","functionName":"hexValue","argumentNames":["this"]} -function color_HSL_hexValue__P498386_mk(s) { +function color_HSL_hexValue__P25693_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_hexValue__P498386, depth: s.depth + 1, + parent: s, fn: color_HSL_hexValue__P25693, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6667,11 +6864,11 @@ function color_HSL_hexValue__P498386_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - chroma___500672: undefined, - hp___500684: undefined, - x___500687: undefined, - rgb1___500698: undefined, - m___500740: undefined, + chroma___28364: undefined, + hp___28376: undefined, + x___28379: undefined, + rgb1___28390: undefined, + m___28432: undefined, arg0: undefined, } } @@ -6679,7 +6876,7 @@ function color_HSL_hexValue__P498386_mk(s) { -function color_HSL_hue__P498379(s) { +function color_HSL_hue__P25686(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6694,19 +6891,64 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); r0 = s.arg0.fields["h"]; return leaveAccessor(s, r0) default: oops() } } } -color_HSL_hue__P498379.info = {"start":1865,"length":56,"line":80,"column":8,"endLine":82,"endColumn":9,"fileName":"color.ts","functionName":"hue","argumentNames":["this"]} -color_HSL_hue__P498379.isGetter = true; +color_HSL_hue__P25686.info = {"start":1865,"length":56,"line":80,"column":8,"endLine":82,"endColumn":9,"fileName":"color.ts","functionName":"hue","argumentNames":["this"]} +color_HSL_hue__P25686.isGetter = true; + +function color_HSL_hue__P25686_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_HSL_hue__P25686, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function Math_abs__P21823(s) { +let r0 = s.r0, 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 = 2; continue; } + case 1: + r0 = s.arg0; + case 2: + // jmp value (already in r0) + s.tmp_1 = r0; + r0 = s.tmp_1; + return leave(s, r0) + default: oops() +} } } +Math_abs__P21823.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 color_HSL_hue__P498379_mk(s) { +function Math_abs__P21823_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_hue__P498379, depth: s.depth + 1, + parent: s, fn: Math_abs__P21823, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -6714,7 +6956,7 @@ function color_HSL_hue__P498379_mk(s) { -function color_HSL_fromHexValue__P498387(s) { +function color_HSL_fromHexValue__P25694(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6724,130 +6966,130 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rgb___500774 = undefined; - s.r___500778 = undefined; - s.g___500782 = undefined; - s.b___500786 = undefined; - s.max___500790 = undefined; - s.min___500797 = undefined; - s.diff___500804 = undefined; - s.h___500808 = undefined; - s.l___500847 = undefined; - s.s___500853 = undefined; + s.rgb___28466 = undefined; + s.r___28470 = undefined; + s.g___28474 = undefined; + s.b___28478 = undefined; + s.max___28482 = undefined; + s.min___28489 = undefined; + s.diff___28496 = undefined; + s.h___28500 = undefined; + s.l___28539 = undefined; + s.s___28545 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = color_RGB_fromHexValue__P498376_mk(s); + s.tmp_0 = color_RGB_fromHexValue__P25683_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 87; s.pc = 11; return s.tmp_0; + s.callLocIdx = 76; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.rgb___500774 = (r0); - r0 = s.rgb___500774.fields["_r"]; + s.rgb___28466 = (r0); + r0 = s.rgb___28466.fields["_r"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 255); - s.r___500778 = (r0); - r0 = s.rgb___500774.fields["_g"]; + s.r___28470 = (r0); + r0 = s.rgb___28466.fields["_g"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 255); - s.g___500782 = (r0); - r0 = s.rgb___500774.fields["_b"]; + s.g___28474 = (r0); + r0 = s.rgb___28466.fields["_b"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 255); - s.b___500786 = (r0); - s.tmp_0 = Math_max__P494881_mk(s); - s.tmp_1 = Math_max__P494881_mk(s); - s.tmp_1.arg0 = s.r___500778; - s.tmp_1.arg1 = s.g___500782; - s.callLocIdx = 91; s.pc = 13; return s.tmp_1; + s.b___28478 = (r0); + s.tmp_0 = Math_max__P21825_mk(s); + s.tmp_1 = Math_max__P21825_mk(s); + s.tmp_1.arg0 = s.r___28470; + s.tmp_1.arg1 = s.g___28474; + s.callLocIdx = 80; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.b___500786; - s.callLocIdx = 92; s.pc = 12; return s.tmp_0; + s.tmp_0.arg1 = s.b___28478; + s.callLocIdx = 81; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.max___500790 = (r0); - s.tmp_0 = Math_min__P494882_mk(s); - s.tmp_1 = Math_min__P494882_mk(s); - s.tmp_1.arg0 = s.r___500778; - s.tmp_1.arg1 = s.g___500782; - s.callLocIdx = 93; s.pc = 15; return s.tmp_1; + s.max___28482 = (r0); + s.tmp_0 = Math_min__P21826_mk(s); + s.tmp_1 = Math_min__P21826_mk(s); + s.tmp_1.arg0 = s.r___28470; + s.tmp_1.arg1 = s.g___28474; + s.callLocIdx = 82; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.b___500786; - s.callLocIdx = 94; s.pc = 14; return s.tmp_0; + s.tmp_0.arg1 = s.b___28478; + s.callLocIdx = 83; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; - s.min___500797 = (r0); - r0 = (s.max___500790 - s.min___500797); - s.diff___500804 = (r0); - r0 = (s.diff___500804 === 0); + s.min___28489 = (r0); + r0 = (s.max___28482 - s.min___28489); + s.diff___28496 = (r0); + r0 = (s.diff___28496 === 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.h___500808 = (0); + s.h___28500 = (0); { step = 8; continue; } case 1: - r0 = (s.max___500790 === s.r___500778); + r0 = (s.max___28482 === s.r___28470); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - r0 = (s.g___500782 - s.b___500786); + r0 = (s.g___28474 - s.b___28478); s.tmp_2 = r0; - r0 = (s.tmp_2 / s.diff___500804); + r0 = (s.tmp_2 / s.diff___28496); s.tmp_1 = r0; r0 = (s.tmp_1 % 6); - s.h___500808 = (r0); + s.h___28500 = (r0); { step = 7; continue; } case 2: - r0 = (s.max___500790 === s.g___500782); + r0 = (s.max___28482 === s.g___28474); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = (s.b___500786 - s.r___500778); + r0 = (s.b___28478 - s.r___28470); s.tmp_2 = r0; - r0 = (s.tmp_2 / s.diff___500804); + r0 = (s.tmp_2 / s.diff___28496); s.tmp_1 = r0; r0 = (s.tmp_1 + 2); - s.h___500808 = (r0); + s.h___28500 = (r0); { step = 6; continue; } case 3: - r0 = (s.max___500790 === s.b___500786); + r0 = (s.max___28482 === s.b___28478); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = (s.r___500778 - s.g___500782); + r0 = (s.r___28470 - s.g___28474); s.tmp_2 = r0; - r0 = (s.tmp_2 / s.diff___500804); + r0 = (s.tmp_2 / s.diff___28496); s.tmp_1 = r0; r0 = (s.tmp_1 + 4); - s.h___500808 = (r0); + s.h___28500 = (r0); case 4: case 5: case 6: case 7: case 8: - r0 = (s.min___500797 + s.max___500790); + r0 = (s.min___28489 + s.max___28482); s.tmp_0 = r0; r0 = (s.tmp_0 / 2); - s.l___500847 = (r0); - r0 = (s.diff___500804 === 0); + s.l___28539 = (r0); + r0 = (s.diff___28496 === 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } r0 = 0; { step = 10; continue; } case 9: - s.tmp_1 = r0 = s.diff___500804; - s.tmp_4 = Math_abs__P494879_mk(s); - r0 = (2 * s.l___500847); + s.tmp_1 = r0 = s.diff___28496; + s.tmp_4 = Math_abs__P21823_mk(s); + r0 = (2 * s.l___28539); s.tmp_5 = r0; r0 = (s.tmp_5 - 1); s.tmp_4.arg0 = r0; - s.callLocIdx = 95; s.pc = 16; return s.tmp_4; + s.callLocIdx = 84; s.pc = 16; return s.tmp_4; case 16: r0 = s.retval; s.tmp_3 = r0; @@ -6857,28 +7099,28 @@ switch (step) { case 10: // jmp value (already in r0) s.tmp_6 = r0; - s.s___500853 = (s.tmp_6); - r0 = pxsim_pxtcore_mkClassInstance(color_HSL__C498377_VT); + s.s___28545 = (s.tmp_6); + r0 = pxsim_pxtcore_mkClassInstance(color_HSL__C25684_VT); s.tmp_0 = r0; - s.tmp_1 = color_HSL_constructor__P498378_mk(s); + s.tmp_1 = color_HSL_constructor__P25685_mk(s); s.tmp_1.arg0 = s.tmp_0; - r0 = (s.h___500808 * 60); + r0 = (s.h___28500 * 60); s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.s___500853; - s.tmp_1.arg3 = s.l___500847; - s.callLocIdx = 96; s.pc = 17; return s.tmp_1; + s.tmp_1.arg2 = s.s___28545; + s.tmp_1.arg3 = s.l___28539; + s.callLocIdx = 85; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -color_HSL_fromHexValue__P498387.info = {"start":3766,"length":824,"line":140,"column":8,"endLine":167,"endColumn":9,"fileName":"color.ts","functionName":"fromHexValue","argumentNames":["col"]} +color_HSL_fromHexValue__P25694.info = {"start":3766,"length":824,"line":140,"column":8,"endLine":167,"endColumn":9,"fileName":"color.ts","functionName":"fromHexValue","argumentNames":["col"]} -function color_HSL_fromHexValue__P498387_mk(s) { +function color_HSL_fromHexValue__P25694_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_fromHexValue__P498387, depth: s.depth + 1, + parent: s, fn: color_HSL_fromHexValue__P25694, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -6887,16 +7129,16 @@ function color_HSL_fromHexValue__P498387_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - rgb___500774: undefined, - r___500778: undefined, - g___500782: undefined, - b___500786: undefined, - max___500790: undefined, - min___500797: undefined, - diff___500804: undefined, - h___500808: undefined, - l___500847: undefined, - s___500853: undefined, + rgb___28466: undefined, + r___28470: undefined, + g___28474: undefined, + b___28478: undefined, + max___28482: undefined, + min___28489: undefined, + diff___28496: undefined, + h___28500: undefined, + l___28539: undefined, + s___28545: undefined, arg0: undefined, } } @@ -6904,7 +7146,7 @@ function color_HSL_fromHexValue__P498387_mk(s) { -function color_HSL_constructor__P498378(s) { +function color_HSL_constructor__P25685(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6922,35 +7164,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); - s.tmp_0 = color_HSL_hue__P498380_mk(s); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); + s.tmp_0 = color_HSL_hue__P25687_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 74; s.pc = 1; return s.tmp_0; + s.callLocIdx = 63; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = color_HSL_saturation__P498382_mk(s); + s.tmp_0 = color_HSL_saturation__P25689_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 75; s.pc = 2; return s.tmp_0; + s.callLocIdx = 64; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = color_HSL_luminosity__P498384_mk(s); + s.tmp_0 = color_HSL_luminosity__P25691_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 76; s.pc = 3; return s.tmp_0; + s.callLocIdx = 65; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -color_HSL_constructor__P498378.info = {"start":1667,"length":188,"line":74,"column":8,"endLine":78,"endColumn":9,"fileName":"color.ts","functionName":"inline","argumentNames":["this","hue","saturation","luminosity"]} +color_HSL_constructor__P25685.info = {"start":1667,"length":188,"line":74,"column":8,"endLine":78,"endColumn":9,"fileName":"color.ts","functionName":"inline","argumentNames":["this","hue","saturation","luminosity"]} -function color_HSL_constructor__P498378_mk(s) { +function color_HSL_constructor__P25685_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_constructor__P498378, depth: s.depth + 1, + parent: s, fn: color_HSL_constructor__P25685, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -6963,7 +7205,7 @@ function color_HSL_constructor__P498378_mk(s) { -function color_HSL_hue__P498380(s) { +function color_HSL_hue__P25687(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -6973,24 +7215,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___500620 = undefined; + s.h___28312 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); r0 = (s.arg1 % 360); - s.h___500620 = (r0); - r0 = (s.h___500620 < 0); + s.h___28312 = (r0); + r0 = (s.h___28312 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = (360 + s.h___500620); + r0 = (360 + s.h___28312); { step = 2; continue; } case 1: - r0 = s.h___500620; + r0 = s.h___28312; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -6999,16 +7241,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_HSL_hue__P498380.info = {"start":1930,"length":103,"line":83,"column":8,"endLine":86,"endColumn":9,"fileName":"color.ts","functionName":"hue","argumentNames":["this","v"]} +color_HSL_hue__P25687.info = {"start":1930,"length":103,"line":83,"column":8,"endLine":86,"endColumn":9,"fileName":"color.ts","functionName":"hue","argumentNames":["this","v"]} -function color_HSL_hue__P498380_mk(s) { +function color_HSL_hue__P25687_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_hue__P498380, depth: s.depth + 1, + parent: s, fn: color_HSL_hue__P25687, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - h___500620: undefined, + h___28312: undefined, arg0: undefined, arg1: undefined, } } @@ -7017,7 +7259,7 @@ function color_HSL_hue__P498380_mk(s) { -function color_pauseUntilFadeDone__P498430(s) { +function color_pauseUntilFadeDone__P25738(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7027,11 +7269,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.activeFade___501266); + r0 = pxsim_numops_toBoolDecr(globals.activeFade___29071); if (!r0) { step = 1; continue; } - s.tmp_0 = color_Fade_pauseUntilDone__P498423_mk(s); - s.tmp_0.arg0 = globals.activeFade___501266; - s.callLocIdx = 191; s.pc = 3; return s.tmp_0; + s.tmp_0 = color_Fade_pauseUntilDone__P25730_mk(s); + s.tmp_0.arg0 = globals.activeFade___29071; + s.callLocIdx = 203; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: @@ -7040,12 +7282,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_pauseUntilFadeDone__P498430.info = {"start":7302,"length":121,"line":258,"column":4,"endLine":262,"endColumn":5,"fileName":"fade.ts","functionName":"pauseUntilFadeDone","argumentNames":[]} +color_pauseUntilFadeDone__P25738.info = {"start":7710,"length":121,"line":270,"column":4,"endLine":274,"endColumn":5,"fileName":"fade.ts","functionName":"pauseUntilFadeDone","argumentNames":[]} -function color_pauseUntilFadeDone__P498430_mk(s) { +function color_pauseUntilFadeDone__P25738_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_pauseUntilFadeDone__P498430, depth: s.depth + 1, + parent: s, fn: color_pauseUntilFadeDone__P25738, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -7054,7 +7296,7 @@ function color_pauseUntilFadeDone__P498430_mk(s) { -function color_darkenEffect__P501691(s) { +function color_darkenEffect__P29507(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7064,38 +7306,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.f___501692 = undefined; - r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C498409_VT); + s.f___29508 = undefined; + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); s.tmp_0 = r0; r0 = undefined; - s.f___501692 = (s.tmp_0); - s.tmp_0 = color_Fade_mapEndHSL__P498427_mk(s); - s.tmp_0.arg0 = s.f___501692; - s.tmp_0.arg1 = inline__P501699; + s.f___29508 = (s.tmp_0); + s.tmp_0 = color_Fade_mapEndHSL__P25734_mk(s); + s.tmp_0.arg0 = s.f___29508; + s.tmp_0.arg1 = color_darkenEffect_inline__P29515; s.tmp_0.arg2 = undefined; s.tmp_0.arg3 = undefined; - s.callLocIdx = 208; s.pc = 1; return s.tmp_0; + s.callLocIdx = 220; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -color_darkenEffect__P501691.info = {"start":482,"length":202,"line":15,"column":4,"endLine":22,"endColumn":5,"fileName":"effect.ts","functionName":"darkenEffect","argumentNames":[]} +color_darkenEffect__P29507.info = {"start":584,"length":202,"line":17,"column":4,"endLine":24,"endColumn":5,"fileName":"effect.ts","functionName":"darkenEffect","argumentNames":[]} -function color_darkenEffect__P501691_mk(s) { +function color_darkenEffect__P29507_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_darkenEffect__P501691, depth: s.depth + 1, + parent: s, fn: color_darkenEffect__P29507, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - f___501692: undefined, + f___29508: undefined, } } -function inline__P501699(s) { +function color_darkenEffect_inline__P29515(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7109,36 +7351,36 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = color_HSL_luminosity__P498384_mk(s); + s.tmp_0 = color_HSL_luminosity__P25691_mk(s); s.tmp_1 = r0 = s.arg0; s.tmp_0.arg0 = r0; r0 = s.tmp_1.fields["l"]; s.tmp_2 = r0; r0 = (s.tmp_2 * 0.75); s.tmp_0.arg1 = r0; - s.callLocIdx = 205; s.pc = 1; return s.tmp_0; + s.callLocIdx = 217; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = color_HSL_luminosity__P498384_mk(s); + s.tmp_0 = color_HSL_saturation__P25689_mk(s); s.tmp_1 = r0 = s.arg0; s.tmp_0.arg0 = r0; - r0 = s.tmp_1.fields["l"]; + r0 = s.tmp_1.fields["s"]; s.tmp_2 = r0; r0 = (s.tmp_2 * 0.9); s.tmp_0.arg1 = r0; - s.callLocIdx = 207; s.pc = 2; return s.tmp_0; + s.callLocIdx = 219; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = s.arg0; return leave(s, r0) default: oops() } } } -inline__P501699.info = {"start":565,"length":111,"line":17,"column":27,"endLine":21,"endColumn":9,"fileName":"effect.ts","functionName":"inline","argumentNames":["hsl"]} +color_darkenEffect_inline__P29515.info = {"start":667,"length":111,"line":19,"column":27,"endLine":23,"endColumn":9,"fileName":"effect.ts","functionName":"inline","argumentNames":["hsl"]} -function inline__P501699_mk(s) { +function color_darkenEffect_inline__P29515_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P501699, depth: s.depth + 1, + parent: s, fn: color_darkenEffect_inline__P29515, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7150,7 +7392,7 @@ function inline__P501699_mk(s) { -function color_FadeEffect_startScreenEffect__P498391(s) { +function color_FadeEffect_startScreenEffect__P25698(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7160,65 +7402,156 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.effectStack___28609 = undefined; + s.lastEffect___28612 = undefined; + s.currPalette___28620 = undefined; + s.rev___28623 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_FadeEffect__C498389_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals.lastEffect___500874); - if (!r0) { step = 1; continue; } - s.tmp_0 = color_FadeEffect_stop__P498392_mk(s); - s.tmp_0.arg0 = globals.lastEffect___500874; - s.callLocIdx = 97; s.pc = 3; return s.tmp_0; - case 3: + if (!checkSubtype(r0, color_FadeEffect__C25696_VT)) failedCast(r0); + s.tmp_0 = color_getFadingEffectStack__P28581_mk(s); + s.callLocIdx = 94; s.pc = 10; return s.tmp_0; + case 10: r0 = s.retval; + s.effectStack___28609 = (r0); + r0 = pxsim_Array__length(s.effectStack___28609); + 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.effectStack___28609; + r0 = pxsim_Array__length(s.effectStack___28609); + s.tmp_3 = r0; + r0 = (s.tmp_3 - 1); + s.tmp_2 = r0; + r0 = pxsim_Array__getAt(s.tmp_1, s.tmp_2); case 2: - globals.lastEffect___500874 = (s.arg0); - s.tmp_0 = color_currentPalette__P498406_mk(s); - s.callLocIdx = 98; s.pc = 4; return s.tmp_0; + // jmp value (already in r0) + s.tmp_4 = r0; + s.lastEffect___28612 = (s.tmp_4); + s.tmp_0 = color_currentPalette__P25713_mk(s); + s.callLocIdx = 95; s.pc = 11; return s.tmp_0; + case 11: + r0 = s.retval; + s.currPalette___28620 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(color_FadeRevert__C28565_VT); + s.tmp_0 = r0; + r0 = pxsim_pxtcore_mkAction(1, rev_inline__P28626); + s.tmp_1 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.currPalette___28620); + s.tmp_2 = color_FadeRevert_constructor__P28567_mk(s); + s.tmp_2.arg0 = s.tmp_0; + s.tmp_2.arg1 = s.arg0; + s.tmp_2.arg2 = s.tmp_1; + s.callLocIdx = 99; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.rev___28623 = (s.tmp_0); + r0 = pxsim_Array__push(s.effectStack___28609, s.rev___28623); + r0 = pxsim_numops_toBoolDecr(s.lastEffect___28612); + if (!r0) { step = 7; continue; } + s.tmp_0 = color_FadeEffect_stop__P25699_mk(s); + r0 = s.lastEffect___28612.fields["fade"]; + s.tmp_0.arg0 = r0; + s.callLocIdx = 100; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + r0 = s.arg0.fields["revertsId"]; + 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["revertsId"]; + s.tmp_1 = r0; + r0 = s.lastEffect___28612.fields["fade"]; + r0 = r0.fields["id"]; + s.tmp_2 = r0; + r0 = (s.tmp_1 == s.tmp_2); case 4: + // jmp value (already in r0) + s.tmp_3 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_3); + if (!r0) { step = 5; continue; } + r0 = pxsim_pxtcore_mkAction(1, color_FadeEffect_startScreenEffect_inline__P28660); + s.tmp_4 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.rev___28623); + s.tmp_5 = r0 = s.arg0; + s.tmp_7 = color_Fade_then__P25729_mk(s); + s.tmp_8 = color_FadeRevert_applyRevert__P28566_mk(s); + s.tmp_8.arg0 = s.lastEffect___28612; + s.tmp_8.arg1 = s.arg1; + s.callLocIdx = 101; s.pc = 15; return s.tmp_8; + case 15: + r0 = s.retval; + s.tmp_7.arg0 = r0; + s.tmp_7.arg1 = s.tmp_4; + s.callLocIdx = 103; s.pc = 14; return s.tmp_7; + case 14: r0 = s.retval; - globals.lastPaletteBeforeFade___500873 = (r0); + s.tmp_6 = r0; + r0 = (s.tmp_5).fields["currentFade"] = (s.tmp_6); + { step = 9; continue; } + case 5: + case 6: + case 7: + case 8: + r0 = (s.arg0).fields["startPalette"] = (s.currPalette___28620); s.tmp_0 = r0 = s.arg0; s.tmp_2 = if_fadeFactory_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, "fadeFactory"), 1); - s.callLocIdx = 99; s.pc = 5; return s.tmp_2; + s.callLocIdx = 104; s.pc = 16; return s.tmp_2; } else { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["fadeFactory"]; - if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["fadeFactory"], 1); s.callLocIdx = 99; s.pc = 5; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 99; s.pc = 5; return s.tmp_2;; } - else { s.callLocIdx = 99; s.pc = 5; return s.tmp_2; } + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["fadeFactory"], 1); s.callLocIdx = 104; s.pc = 16; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 104; s.pc = 16; return s.tmp_2;; } + else { s.callLocIdx = 104; s.pc = 16; return s.tmp_2; } } - case 5: + case 16: r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0).fields["currentFade"] = (s.tmp_1); - s.tmp_0 = color_Fade_start__P498414_mk(s); + s.tmp_0 = color_Fade_start__P25721_mk(s); r0 = s.arg0.fields["currentFade"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 100; s.pc = 6; return s.tmp_0; - case 6: + s.callLocIdx = 105; s.pc = 17; return s.tmp_0; + case 17: r0 = s.retval; + case 9: r0 = undefined; return leave(s, r0) default: oops() } } } -color_FadeEffect_startScreenEffect__P498391.info = {"start":5288,"length":276,"line":190,"column":8,"endLine":197,"endColumn":9,"fileName":"color.ts","functionName":"startScreenEffect","argumentNames":["this","duration"]} +color_FadeEffect_startScreenEffect__P25698.info = {"start":6163,"length":1104,"line":219,"column":8,"endLine":247,"endColumn":9,"fileName":"color.ts","functionName":"startScreenEffect","argumentNames":["this","duration"]} -function color_FadeEffect_startScreenEffect__P498391_mk(s) { +function color_FadeEffect_startScreenEffect__P25698_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_FadeEffect_startScreenEffect__P498391, depth: s.depth + 1, + parent: s, fn: color_FadeEffect_startScreenEffect__P25698, depth: s.depth + 1, pc: 0, retval: undefined, 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, + effectStack___28609: undefined, + lastEffect___28612: undefined, + currPalette___28620: undefined, + rev___28623: undefined, arg0: undefined, arg1: undefined, } } @@ -7227,7 +7560,7 @@ function color_FadeEffect_startScreenEffect__P498391_mk(s) { -function color_FadeEffect_stop__P498392(s) { +function rev_inline__P28626(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7237,224 +7570,48 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.f___28628 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, color_FadeEffect__C498389_VT)) failedCast(r0); - r0 = (globals.lastEffect___500874 == s.arg0); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 3; continue; } - globals.lastEffect___500874 = (undefined); - r0 = s.arg0.fields["currentFade"]; + r0 = pxsim_pxtcore_mkClassInstance(color_Fade__C25716_VT); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 1; continue; } - s.tmp_1 = color_Fade_stop__P498416_mk(s); - r0 = s.arg0.fields["currentFade"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 101; s.pc = 5; return s.tmp_1; - case 5: - r0 = s.retval; - case 1: - case 2: - case 3: - case 4: r0 = undefined; - return leave(s, r0) - default: oops() -} } } -color_FadeEffect_stop__P498392.info = {"start":5574,"length":213,"line":199,"column":8,"endLine":206,"endColumn":9,"fileName":"color.ts","functionName":"stop","argumentNames":["this"]} - -function color_FadeEffect_stop__P498392_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: color_FadeEffect_stop__P498392, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function color_Fade_stop__P498416(s) { -let r0 = s.r0, 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, color_Fade__C498409_VT)) failedCast(r0); - r0 = (s.arg0).fields["startTime"] = (undefined); - r0 = s.arg0; - return leave(s, r0) - default: oops() -} } } -color_Fade_stop__P498416.info = {"start":1246,"length":96,"line":44,"column":8,"endLine":47,"endColumn":9,"fileName":"fade.ts","functionName":"stop","argumentNames":["this"]} - -function color_Fade_stop__P498416_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: color_Fade_stop__P498416, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function color_setPalette__P498393(s) { -let r0 = s.r0, 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.fromStart___500928 = undefined; - s.toStart___500931 = undefined; - s.asBuf___500934 = undefined; - s.copyLength___500937 = undefined; - s.i___500944 = 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.arg2); - s.tmp_1 = r0; - r0 = pxsim_Boolean__bang(s.tmp_1); - s.tmp_0 = r0; - r0 = pxsim_numops_toBool(s.tmp_0); - if (!r0) { step = 1; continue; } - r0 = s.tmp_0; - { step = 2; continue; } - case 1: - s.tmp_2 = r0 = s.arg2; - s.tmp_4 = color_ColorBuffer_length__P498354_mk(s); - s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 102; s.pc = 9; return s.tmp_4; - case 9: - r0 = s.retval; - s.tmp_3 = r0; - r0 = (s.tmp_2 > s.tmp_3); + s.f___28628 = (s.tmp_0); + s.tmp_0 = color_Fade_start__P25721_mk(s); + s.tmp_1 = color_Fade_setEndPalette__P25726_mk(s); + s.tmp_1.arg0 = s.f___28628; + s.tmp_1.arg1 = s.caps[0]; + s.callLocIdx = 97; s.pc = 2; return s.tmp_1; case 2: - // jmp value (already in r0) - s.tmp_5 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_5); - if (!r0) { step = 3; continue; } - s.tmp_6 = color_ColorBuffer_length__P498354_mk(s); - s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 103; s.pc = 10; return s.tmp_6; - case 10: - r0 = s.retval; - s.arg2 = (r0); - case 3: - case 4: - r0 = pxsim_numops_toBoolDecr(globals.currentColors___500528); - 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 = globals.originalPalette___498432.fields["buf"]; - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_2, 0, -1); - globals.currentColors___500528 = (r0); - case 5: - case 6: - r0 = (s.arg3 * 3); - s.fromStart___500928 = (r0); - r0 = (s.arg1 * 3); - s.toStart___500931 = (r0); - r0 = s.arg0.fields["buf"]; - s.asBuf___500934 = (r0); - s.tmp_1 = Math_clamp__P494878_mk(s); - s.tmp_1.arg0 = 0; - s.tmp_2 = color_availableColors__P498399_mk(s); - s.callLocIdx = 104; s.pc = 12; return s.tmp_2; - case 12: r0 = s.retval; - s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 105; s.pc = 11; return s.tmp_1; - case 11: + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = s.arg0; + s.callLocIdx = 98; s.pc = 1; return s.tmp_0; + case 1: r0 = s.retval; - s.tmp_0 = r0; - r0 = (3 * s.tmp_0); - s.copyLength___500937 = (r0); - s.i___500944 = (0); - case 7: - r0 = (s.i___500944 < s.copyLength___500937); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 8; continue; } - s.tmp_1 = r0 = globals.currentColors___500528; - r0 = (s.toStart___500931 + s.i___500944); - s.tmp_2 = r0; - s.tmp_4 = r0 = s.asBuf___500934; - r0 = (s.fromStart___500928 + s.i___500944); - s.tmp_5 = r0; - r0 = pxsim.BufferMethods.getByte(s.tmp_4, s.tmp_5); - s.tmp_3 = r0; - r0 = pxsim.BufferMethods.setByte(s.tmp_1, s.tmp_2, s.tmp_3); - r0 = (s.i___500944 + 1); - s.i___500944 = (r0); - { step = 7; continue; } - case 8: - r0 = pxsim_pxtcore.setPalette(globals.currentColors___500528); - r0 = undefined; return leave(s, r0) default: oops() } } } -color_setPalette__P498393.info = {"start":6189,"length":617,"line":219,"column":4,"endLine":236,"endColumn":5,"fileName":"color.ts","functionName":"setPalette","argumentNames":["palette","start","length","paletteOffset"]} +rev_inline__P28626.info = {"start":6441,"length":156,"line":223,"column":45,"endLine":228,"endColumn":13,"fileName":"color.ts","functionName":"inline","argumentNames":["duration"]} -function color_setPalette__P498393_mk(s) { +function rev_inline__P28626_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_setPalette__P498393, depth: s.depth + 1, + parent: s, fn: rev_inline__P28626, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, - tmp_6: undefined, - fromStart___500928: undefined, - toStart___500931: undefined, - asBuf___500934: undefined, - copyLength___500937: undefined, - i___500944: undefined, + f___28628: undefined, arg0: undefined, - arg1: undefined, - arg2: undefined, - arg3: undefined, } } -function forever__P496613(s) { +function color_FadeEffect_startScreenEffect_inline__P28660(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7464,27 +7621,30 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.effects___28662 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_forever__P497315_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 126; s.pc = 1; return s.tmp_0; + s.tmp_0 = color_getFadingEffectStack__P28581_mk(s); + s.callLocIdx = 102; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = undefined; + s.effects___28662 = (r0); + r0 = pxsim_Array_.removeElement(s.effects___28662, s.caps[0]); + r0 = s.arg0; return leave(s, r0) default: oops() } } } -forever__P496613.info = {"start":264,"length":62,"line":6,"column":0,"endLine":8,"endColumn":1,"fileName":"pxt_modules/game/gameoverrides.ts","functionName":"forever","argumentNames":["a"]} +color_FadeEffect_startScreenEffect_inline__P28660.info = {"start":6874,"length":178,"line":235,"column":77,"endLine":239,"endColumn":21,"fileName":"color.ts","functionName":"inline","argumentNames":["f"]} -function forever__P496613_mk(s) { +function color_FadeEffect_startScreenEffect_inline__P28660_mk(s) { checkStack(s.depth); return { - parent: s, fn: forever__P496613, depth: s.depth + 1, + parent: s, fn: color_FadeEffect_startScreenEffect_inline__P28660, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + effects___28662: undefined, arg0: undefined, } } @@ -7492,7 +7652,7 @@ function forever__P496613_mk(s) { -function scene_setBackgroundImage__P497229(s) { +function color_FadeRevert_constructor__P28567(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7502,36 +7662,251 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___501860 = 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, color_FadeRevert__C28565_VT)) failedCast(r0); + r0 = (s.arg0).fields["fade"] = (s.arg1); + r0 = (s.arg0).fields["revert"] = (s.arg2); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_FadeRevert_constructor__P28567.info = {"start":4702,"length":120,"line":174,"column":8,"endLine":177,"endColumn":13,"fileName":"color.ts","functionName":"inline","argumentNames":["this","fade","revert"]} + +function color_FadeRevert_constructor__P28567_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_FadeRevert_constructor__P28567, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, +} } + + + + + +function color_setPalette__P25700(s) { +let r0 = s.r0, 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.fromStart___28726 = undefined; + s.toStart___28729 = undefined; + s.asBuf___28732 = undefined; + s.copyLength___28735 = undefined; + s.i___28742 = 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.arg2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBool(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = s.tmp_0; + { step = 2; continue; } + case 1: + s.tmp_2 = r0 = s.arg2; + s.tmp_4 = color_ColorBuffer_length__P25661_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 108; s.pc = 9; return s.tmp_4; + case 9: + r0 = s.retval; + s.tmp_3 = r0; + r0 = (s.tmp_2 > s.tmp_3); + case 2: + // jmp value (already in r0) + s.tmp_5 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_5); + if (!r0) { step = 3; continue; } + s.tmp_6 = color_ColorBuffer_length__P25661_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 109; s.pc = 10; return s.tmp_6; + case 10: + r0 = s.retval; + s.arg2 = (r0); + case 3: + case 4: + r0 = pxsim_numops_toBoolDecr(globals.currentColors___28220); + 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 = globals.originalPalette___25740.fields["buf"]; + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.slice(s.tmp_2, 0, -1); + globals.currentColors___28220 = (r0); + case 5: + case 6: + r0 = (s.arg3 * 3); + s.fromStart___28726 = (r0); + r0 = (s.arg1 * 3); + s.toStart___28729 = (r0); + r0 = s.arg0.fields["buf"]; + s.asBuf___28732 = (r0); + s.tmp_1 = Math_clamp__P21822_mk(s); + s.tmp_1.arg0 = 0; + s.tmp_2 = color_availableColors__P25706_mk(s); + s.callLocIdx = 110; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.tmp_1.arg2 = s.arg2; + s.callLocIdx = 111; s.pc = 11; return s.tmp_1; + case 11: + r0 = s.retval; + s.tmp_0 = r0; + r0 = (3 * s.tmp_0); + s.copyLength___28735 = (r0); + s.i___28742 = (0); + case 7: + r0 = (s.i___28742 < s.copyLength___28735); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 8; continue; } + s.tmp_1 = r0 = globals.currentColors___28220; + r0 = (s.toStart___28729 + s.i___28742); + s.tmp_2 = r0; + s.tmp_4 = r0 = s.asBuf___28732; + r0 = (s.fromStart___28726 + s.i___28742); + s.tmp_5 = r0; + r0 = pxsim.BufferMethods.getByte(s.tmp_4, s.tmp_5); + s.tmp_3 = r0; + r0 = pxsim.BufferMethods.setByte(s.tmp_1, s.tmp_2, s.tmp_3); + r0 = (s.i___28742 + 1); + s.i___28742 = (r0); + { step = 7; continue; } + case 8: + r0 = pxsim_pxtcore.setPalette(globals.currentColors___28220); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +color_setPalette__P25700.info = {"start":7964,"length":617,"line":270,"column":4,"endLine":287,"endColumn":5,"fileName":"color.ts","functionName":"setPalette","argumentNames":["palette","start","length","paletteOffset"]} + +function color_setPalette__P25700_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: color_setPalette__P25700, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + fromStart___28726: undefined, + toStart___28729: undefined, + asBuf___28732: undefined, + copyLength___28735: undefined, + i___28742: undefined, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function forever__P23572(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = game_forever__P24391_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 126; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +forever__P23572.info = {"start":264,"length":62,"line":6,"column":0,"endLine":8,"endColumn":1,"fileName":"pxt_modules/game/gameoverrides.ts","functionName":"forever","argumentNames":["a"]} + +function forever__P23572_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: forever__P23572, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function scene_setBackgroundImage__P24307(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.scene___29677 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 804; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 914; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___501860 = (r0); - s.tmp_0 = scene_Background_image__P497049_mk(s); - r0 = s.scene___501860.fields["background"]; + s.scene___29677 = (r0); + s.tmp_0 = scene_Background_image__P24102_mk(s); + r0 = s.scene___29677.fields["background"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 805; s.pc = 2; return s.tmp_0; + s.callLocIdx = 915; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_setBackgroundImage__P497229.info = {"start":1938,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} +scene_setBackgroundImage__P24307.info = {"start":1962,"length":135,"line":78,"column":4,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/scenes.ts","functionName":"setBackgroundImage","argumentNames":["img"]} -function scene_setBackgroundImage__P497229_mk(s) { +function scene_setBackgroundImage__P24307_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_setBackgroundImage__P497229, depth: s.depth + 1, + parent: s, fn: scene_setBackgroundImage__P24307, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - scene___501860: undefined, + scene___29677: undefined, arg0: undefined, } } @@ -7539,7 +7914,7 @@ function scene_setBackgroundImage__P497229_mk(s) { -function scene_Background_image__P497049(s) { +function scene_Background_image__P24102(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7555,18 +7930,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C497042_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C24095_VT)) failedCast(r0); r0 = (s.arg0).fields["_image"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Background_image__P497049.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} +scene_Background_image__P24102.info = {"start":1003,"length":68,"line":40,"column":8,"endLine":42,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this","image"]} -function scene_Background_image__P497049_mk(s) { +function scene_Background_image__P24102_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P497049, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P24102, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -7576,7 +7951,7 @@ function scene_Background_image__P497049_mk(s) { -function scene_Background_image__P497048(s) { +function scene_Background_image__P24101(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7591,7 +7966,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C497042_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C24095_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -7601,9 +7976,9 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } s.tmp_3 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_5 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_6 = r0; r0 = pxsim.image.create(s.tmp_5, s.tmp_6); s.tmp_4 = r0; @@ -7614,13 +7989,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Background_image__P497048.info = {"start":811,"length":174,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this"]} -scene_Background_image__P497048.isGetter = true; +scene_Background_image__P24101.info = {"start":811,"length":174,"line":33,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"image","argumentNames":["this"]} +scene_Background_image__P24101.isGetter = true; -function scene_Background_image__P497048_mk(s) { +function scene_Background_image__P24101_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_image__P497048, depth: s.depth + 1, + parent: s, fn: scene_Background_image__P24101, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7636,7 +8011,7 @@ function scene_Background_image__P497048_mk(s) { -function color_FadeState_constructor__P501518(s) { +function color_FadeState_constructor__P29323(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7653,19 +8028,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_FadeState__C501517_VT)) failedCast(r0); + if (!checkSubtype(r0, color_FadeState__C29322_VT)) failedCast(r0); r0 = (s.arg0).fields["state"] = (s.arg1); r0 = (s.arg0).fields["scene"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -color_FadeState_constructor__P501518.info = {"start":5010,"length":96,"line":173,"column":8,"endLine":176,"endColumn":13,"fileName":"fade.ts","functionName":"inline","argumentNames":["this","state","scene"]} +color_FadeState_constructor__P29323.info = {"start":5010,"length":96,"line":173,"column":8,"endLine":176,"endColumn":13,"fileName":"fade.ts","functionName":"inline","argumentNames":["this","state","scene"]} -function color_FadeState_constructor__P501518_mk(s) { +function color_FadeState_constructor__P29323_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_FadeState_constructor__P501518, depth: s.depth + 1, + parent: s, fn: color_FadeState_constructor__P29323, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -7676,7 +8051,7 @@ function color_FadeState_constructor__P501518_mk(s) { -function game_eventContext__P497305(s) { +function game_eventContext__P24383(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7686,21 +8061,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P498881_mk(s); + s.tmp_0 = game_init__P26205_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 807; s.pc = 1; return s.tmp_0; + s.callLocIdx = 917; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___498873.fields["eventContext"]; + r0 = globals._scene___26197.fields["eventContext"]; return leave(s, r0) default: oops() } } } -game_eventContext__P497305.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} +game_eventContext__P24383.info = {"start":1084,"length":112,"line":40,"column":4,"endLine":43,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"eventContext","argumentNames":[]} -function game_eventContext__P497305_mk(s) { +function game_eventContext__P24383_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_eventContext__P497305, depth: s.depth + 1, + parent: s, fn: game_eventContext__P24383, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -7709,7 +8084,7 @@ function game_eventContext__P497305_mk(s) { -function game_init__P498881(s) { +function game_init__P26205(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7723,7 +8098,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scene___498873); + r0 = pxsim_numops_toBoolDecr(globals._scene___26197); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -7738,73 +8113,73 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C497189_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Scene__C24266_VT); s.tmp_3 = r0; - s.tmp_4 = scene_Scene_constructor__P497210_mk(s); + s.tmp_4 = scene_Scene_constructor__P24288_mk(s); s.tmp_4.arg0 = s.tmp_3; - s.tmp_5 = control_pushEventContext__P495154_mk(s); - s.callLocIdx = 808; s.pc = 14; return s.tmp_5; + s.tmp_5 = control_pushEventContext__P22104_mk(s); + s.callLocIdx = 918; s.pc = 14; return s.tmp_5; case 14: r0 = s.retval; s.tmp_4.arg1 = r0; - s.tmp_4.arg2 = globals._scene___498873; - s.callLocIdx = 809; s.pc = 13; return s.tmp_4; + s.tmp_4.arg2 = globals._scene___26197; + s.callLocIdx = 919; s.pc = 13; return s.tmp_4; case 13: r0 = s.retval; - globals._scene___498873 = (s.tmp_3); + globals._scene___26197 = (s.tmp_3); case 3: case 4: - s.tmp_0 = scene_Scene_init__P497211_mk(s); - s.tmp_0.arg0 = globals._scene___498873; - s.callLocIdx = 810; s.pc = 15; return s.tmp_0; + s.tmp_0 = scene_Scene_init__P24289_mk(s); + s.tmp_0.arg0 = globals._scene___26197; + s.callLocIdx = 920; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals.winEffect___497300); + r0 = pxsim_numops_toBoolDecr(globals.winEffect___24378); 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___497300 = (globals.confetti___497571); + globals.winEffect___24378 = (globals.confetti___24650); case 5: case 6: - r0 = pxsim_numops_toBoolDecr(globals.loseEffect___497301); + r0 = pxsim_numops_toBoolDecr(globals.loseEffect___24379); 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___497301 = (globals.melt___497592); + globals.loseEffect___24379 = (globals.melt___24671); case 7: case 8: - r0 = pxsim_numops_toBoolDecr(globals.winSound___498872); + r0 = pxsim_numops_toBoolDecr(globals.winSound___26196); 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___498872 = (globals.powerUp___496374); + globals.winSound___26196 = (globals.powerUp___23327); case 9: case 10: - r0 = pxsim_numops_toBoolDecr(globals.loseSound___498870); + r0 = pxsim_numops_toBoolDecr(globals.loseSound___26194); 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___498870 = (globals.wawawawaa___496371); + globals.loseSound___26194 = (globals.wawawawaa___23324); case 11: case 12: r0 = undefined; return leave(s, r0) default: oops() } } } -game_init__P498881.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} +game_init__P26205.info = {"start":1202,"length":452,"line":45,"column":4,"endLine":60,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"init","argumentNames":["forceNewScene"]} -function game_init__P498881_mk(s) { +function game_init__P26205_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_init__P498881, depth: s.depth + 1, + parent: s, fn: game_init__P26205, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7819,7 +8194,7 @@ function game_init__P498881_mk(s) { -function inline__P502523(s) { +function melt_inline__P30351(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7829,11 +8204,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rounds___502526 = undefined; - s.j___502534 = undefined; - s.x___502539 = undefined; - s.y___502545 = undefined; - s.c___502551 = undefined; + s.rounds___30354 = undefined; + s.j___30362 = undefined; + s.x___30367 = undefined; + s.y___30373 = undefined; + s.c___30379 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -7846,14 +8221,14 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.rounds___502526 = (r0); - s.j___502534 = (0); + s.rounds___30354 = (r0); + s.j___30362 = (0); case 1: - r0 = (s.j___502534 < s.rounds___502526); + r0 = (s.j___30362 < s.rounds___30354); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P497360_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P24439_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); @@ -7863,8 +8238,8 @@ switch (step) { s.callLocIdx = 44; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___502539 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P497360_mk(s); + s.x___30367 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P24439_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); @@ -7874,42 +8249,42 @@ switch (step) { s.callLocIdx = 45; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___502545 = (r0); - r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___502539, s.y___502545); - s.c___502551 = (r0); + s.y___30373 = (r0); + r0 = pxsim_ImageMethods.getPixel(s.arg0, s.x___30367, s.y___30373); + s.c___30379 = (r0); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___502539; - r0 = (s.y___502545 + 1); + s.tmp_1 = r0 = s.x___30367; + r0 = (s.y___30373 + 1); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___502551); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___30379); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.x___502539; - r0 = (s.y___502545 + 2); + s.tmp_1 = r0 = s.x___30367; + r0 = (s.y___30373 + 2); s.tmp_2 = r0; - r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___502551); - r0 = (s.j___502534 + 1); - s.j___502534 = (r0); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_2, s.c___30379); + r0 = (s.j___30362 + 1); + s.j___30362 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P502523.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} +melt_inline__P30351.info = {"start":2652,"length":386,"line":72,"column":45,"endLine":81,"endColumn":5,"fileName":"pxt_modules/game/effects.ts","functionName":"inline","argumentNames":["input","r"]} -function inline__P502523_mk(s) { +function melt_inline__P30351_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P502523, depth: s.depth + 1, + parent: s, fn: melt_inline__P30351, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - rounds___502526: undefined, - j___502534: undefined, - x___502539: undefined, - y___502545: undefined, - c___502551: undefined, + rounds___30354: undefined, + j___30362: undefined, + x___30367: undefined, + y___30373: undefined, + c___30379: undefined, arg0: undefined, arg1: undefined, } } @@ -7918,7 +8293,7 @@ function inline__P502523_mk(s) { -function Math_FastRandom_randomRange__P497360(s) { +function Math_FastRandom_randomRange__P24439(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7935,14 +8310,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C497356_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C24435_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__P497359_mk(s); + s.tmp_2 = Math_FastRandom_next__P24438_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 842; s.pc = 3; return s.tmp_2; + s.callLocIdx = 950; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_1 = r0; @@ -7961,12 +8336,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_randomRange__P497360.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__P24439.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__P497360_mk(s) { +function Math_FastRandom_randomRange__P24439_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_randomRange__P497360, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_randomRange__P24439, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -7983,7 +8358,7 @@ function Math_FastRandom_randomRange__P497360_mk(s) { -function Math_FastRandom_next__P497359(s) { +function Math_FastRandom_next__P24438(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -7998,7 +8373,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C497356_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C24435_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["lfsr"]; s.tmp_3 = r0; @@ -8019,12 +8394,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_next__P497359.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__P24438.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__P497359_mk(s) { +function Math_FastRandom_next__P24438_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_next__P497359, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_next__P24438, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8041,7 +8416,7 @@ function Math_FastRandom_next__P497359_mk(s) { -function effects_ImageEffect_constructor__P497587(s) { +function effects_ImageEffect_constructor__P24666(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8058,14 +8433,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C497586_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C24665_VT)) failedCast(r0); r0 = (s.arg0).fields["effect"] = (s.arg2); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C497356_VT); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C24435_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P497358_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P24437_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 1135; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1243; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = (s.arg0).fields["fastRandom"] = (s.tmp_0); @@ -8075,12 +8450,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_constructor__P497587.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__P24666.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__P497587_mk(s) { +function effects_ImageEffect_constructor__P24666_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_constructor__P497587, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_constructor__P24666, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8093,7 +8468,7 @@ function effects_ImageEffect_constructor__P497587_mk(s) { -function inline__P502631(s) { +function confetti_inline__P30459(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8103,13 +8478,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.factory___502634 = undefined; + s.factory___30462 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C497515_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ConfettiFactory__C24594_VT); s.tmp_0 = r0; s.tmp_2 = if_width_1_mk(s); s.tmp_2.arg0 = s.arg0; @@ -8144,27 +8519,27 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = particles_ConfettiFactory_constructor__P497516_mk(s); + s.tmp_5 = particles_ConfettiFactory_constructor__P24595_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___502634 = (s.tmp_0); - s.tmp_0 = particles_SprayFactory_setSpeed__P497492_mk(s); - s.tmp_0.arg0 = s.factory___502634; + s.factory___30462 = (s.tmp_0); + s.tmp_0 = particles_SprayFactory_setSpeed__P24571_mk(s); + s.tmp_0.arg0 = s.factory___30462; 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__C497448_VT); + r0 = pxsim_pxtcore_mkClassInstance(particles_ParticleSource__C24527_VT); s.tmp_0 = r0; - s.tmp_1 = particles_ParticleSource_constructor__P497453_mk(s); + s.tmp_1 = particles_ParticleSource_constructor__P24532_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___502634; + s.tmp_1.arg3 = s.factory___30462; s.callLocIdx = 36; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; @@ -8172,12 +8547,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P502631.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} +confetti_inline__P30459.info = {"start":7534,"length":284,"line":191,"column":59,"endLine":195,"endColumn":5,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["anchor","particlesPerSecond"]} -function inline__P502631_mk(s) { +function confetti_inline__P30459_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P502631, depth: s.depth + 1, + parent: s, fn: confetti_inline__P30459, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8185,7 +8560,7 @@ function inline__P502631_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - factory___502634: undefined, + factory___30462: undefined, arg0: undefined, arg1: undefined, } } @@ -8194,7 +8569,7 @@ function inline__P502631_mk(s) { -function particles_ParticleSource_constructor__P497453(s) { +function particles_ParticleSource_constructor__P24532(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8204,8 +8579,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___502655 = undefined; - s.removedSource___502664 = undefined; + s.sources___30483 = undefined; + s.removedSource___30492 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8214,65 +8589,65 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P496626_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P23585_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 1011; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1119; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = particles_init__P499231_mk(s); - s.callLocIdx = 1012; s.pc = 6; return s.tmp_0; + s.tmp_0 = particles_init__P26540_mk(s); + s.callLocIdx = 1120; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_particleSources__P499237_mk(s); - s.callLocIdx = 1013; s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_particleSources__P26546_mk(s); + s.callLocIdx = 1121; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.sources___502655 = (r0); - r0 = pxsim_Array__length(s.sources___502655); + s.sources___30483 = (r0); + r0 = pxsim_Array__length(s.sources___30483); s.tmp_1 = r0; - r0 = (s.tmp_1 >= globals.MAX_SOURCES___499208); + r0 = (s.tmp_1 >= globals.MAX_SOURCES___26532); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = particles_sortSources__P499234_mk(s); - s.tmp_2.arg0 = s.sources___502655; - s.callLocIdx = 1014; s.pc = 8; return s.tmp_2; + s.tmp_2 = particles_sortSources__P26543_mk(s); + s.tmp_2.arg0 = s.sources___30483; + s.callLocIdx = 1122; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - r0 = pxsim_Array_.removeAt(s.sources___502655, 0); - s.removedSource___502664 = (r0); - s.tmp_0 = particles_ParticleSource_clear__P497463_mk(s); - s.tmp_0.arg0 = s.removedSource___502664; - s.callLocIdx = 1016; s.pc = 9; return s.tmp_0; + r0 = pxsim_Array_.removeAt(s.sources___30483, 0); + s.removedSource___30492 = (r0); + s.tmp_0 = particles_ParticleSource_clear__P24542_mk(s); + s.tmp_0.arg0 = s.removedSource___30492; + s.callLocIdx = 1124; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_destroy__P497462_mk(s); - s.tmp_0.arg0 = s.removedSource___502664; - s.callLocIdx = 1017; s.pc = 10; return s.tmp_0; + s.tmp_0 = particles_ParticleSource_destroy__P24541_mk(s); + s.tmp_0.arg0 = s.removedSource___30492; + s.callLocIdx = 1125; 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__P497465_mk(s); + s.tmp_0 = particles_ParticleSource_setRate__P24544_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 1018; s.pc = 11; return s.tmp_0; + s.callLocIdx = 1126; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAcceleration__P497457_mk(s); + s.tmp_0 = particles_ParticleSource_setAcceleration__P24536_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = 0; - s.callLocIdx = 1019; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1127; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = particles_ParticleSource_setAnchor__P497464_mk(s); + s.tmp_0 = particles_ParticleSource_setAnchor__P24543_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1020; s.pc = 13; return s.tmp_0; + s.callLocIdx = 1128; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = (s.arg0).fields["lifespan"] = (undefined); @@ -8284,39 +8659,39 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - r0 = globals.defaultFactory___497468; + r0 = globals.defaultFactory___24547; case 4: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_2 = particles_ParticleSource_setFactory__P497467_mk(s); + s.tmp_2 = particles_ParticleSource_setFactory__P24546_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 1021; s.pc = 14; return s.tmp_2; + s.callLocIdx = 1129; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; - r0 = pxsim_Array__push(s.sources___502655, s.arg0); - s.tmp_0 = particles_ParticleSource_enabled__P497461_mk(s); + r0 = pxsim_Array__push(s.sources___30483, s.arg0); + s.tmp_0 = particles_ParticleSource_enabled__P24540_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; - s.callLocIdx = 1022; s.pc = 15; return s.tmp_0; + s.callLocIdx = 1130; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_constructor__P497453.info = {"start":2290,"length":899,"line":86,"column":8,"endLine":109,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} +particles_ParticleSource_constructor__P24532.info = {"start":2307,"length":899,"line":87,"column":8,"endLine":110,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["this","anchor","particlesPerSecond","factory"]} -function particles_ParticleSource_constructor__P497453_mk(s) { +function particles_ParticleSource_constructor__P24532_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_constructor__P497453, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_constructor__P24532, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - sources___502655: undefined, - removedSource___502664: undefined, + sources___30483: undefined, + removedSource___30492: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -8327,7 +8702,7 @@ function particles_ParticleSource_constructor__P497453_mk(s) { -function particles_particleSources__P499237(s) { +function particles_particleSources__P26546(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8337,33 +8712,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___503092 = undefined; - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 1073; s.pc = 1; return s.tmp_0; + s.sources___30945 = undefined; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 1181; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["particleSources"]; - s.sources___503092 = (r0); - r0 = s.sources___503092; + s.sources___30945 = (r0); + r0 = s.sources___30945; return leave(s, r0) default: oops() } } } -particles_particleSources__P499237.info = {"start":12831,"length":119,"line":420,"column":4,"endLine":423,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} +particles_particleSources__P26546.info = {"start":12848,"length":119,"line":421,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"particleSources","argumentNames":[]} -function particles_particleSources__P499237_mk(s) { +function particles_particleSources__P26546_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_particleSources__P499237, depth: s.depth + 1, + parent: s, fn: particles_particleSources__P26546, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___503092: undefined, + sources___30945: undefined, } } -function particles_sortSources__P499234(s) { +function particles_sortSources__P26543(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8377,22 +8752,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_arraySort__P494857_mk(s); + s.tmp_0 = helpers_arraySort__P21800_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = inline__P502962; - s.callLocIdx = 1060; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = particles_sortSources_inline__P30790; + s.callLocIdx = 1168; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_sortSources__P499234.info = {"start":10009,"length":129,"line":331,"column":4,"endLine":333,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} +particles_sortSources__P26543.info = {"start":10026,"length":129,"line":332,"column":4,"endLine":334,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"sortSources","argumentNames":["sources"]} -function particles_sortSources__P499234_mk(s) { +function particles_sortSources__P26543_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_sortSources__P499234, depth: s.depth + 1, + parent: s, fn: particles_sortSources__P26543, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -8402,7 +8777,7 @@ function particles_sortSources__P499234_mk(s) { -function inline__P502962(s) { +function particles_sortSources_inline__P30790(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8440,12 +8815,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P502962.info = {"start":10080,"length":50,"line":332,"column":21,"endLine":332,"endColumn":71,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["a","b"]} +particles_sortSources_inline__P30790.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__P502962_mk(s) { +function particles_sortSources_inline__P30790_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P502962, depth: s.depth + 1, + parent: s, fn: particles_sortSources_inline__P30790, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8461,7 +8836,7 @@ function inline__P502962_mk(s) { -function helpers_arraySort__P494857(s) { +function helpers_arraySort__P21800(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8493,10 +8868,10 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.arg1 = (inline__P502985); + s.arg1 = (helpers_arraySort_inline__P30813); case 3: case 4: - s.tmp_0 = helpers_sortHelper__P498459_mk(s); + s.tmp_0 = helpers_sortHelper__P25767_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 2; s.pc = 5; return s.tmp_0; @@ -8505,12 +8880,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySort__P494857.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]} +helpers_arraySort__P21800.info = {"start":5663,"length":859,"line":207,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySort","argumentNames":["arr","callbackfn"]} -function helpers_arraySort__P494857_mk(s) { +function helpers_arraySort__P21800_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySort__P494857, depth: s.depth + 1, + parent: s, fn: helpers_arraySort__P21800, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8524,7 +8899,7 @@ function helpers_arraySort__P494857_mk(s) { -function inline__P502985(s) { +function helpers_arraySort_inline__P30813(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8534,26 +8909,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.aIsUndef___502988 = undefined; - s.bIsUndef___502992 = undefined; - s.aIsNull___503003 = undefined; - s.bIsNull___503007 = undefined; + s.aIsUndef___30816 = undefined; + s.bIsUndef___30820 = undefined; + s.aIsNull___30831 = undefined; + s.bIsNull___30835 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = (s.arg0 === undefined); - s.aIsUndef___502988 = (r0); + s.aIsUndef___30816 = (r0); r0 = (s.arg1 === undefined); - s.bIsUndef___502992 = (r0); - s.tmp_0 = r0 = s.aIsUndef___502988; + s.bIsUndef___30820 = (r0); + s.tmp_0 = r0 = s.aIsUndef___30816; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.bIsUndef___502992; + r0 = s.bIsUndef___30820; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -8563,13 +8938,13 @@ switch (step) { { step = 17; continue; } { step = 8; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(s.aIsUndef___502988); + r0 = pxsim_numops_toBoolDecr(s.aIsUndef___30816); if (!r0) { step = 4; continue; } r0 = 1; { step = 17; continue; } { step = 7; continue; } case 4: - r0 = pxsim_numops_toBoolDecr(s.bIsUndef___502992); + r0 = pxsim_numops_toBoolDecr(s.bIsUndef___30820); if (!r0) { step = 5; continue; } r0 = -1; { step = 17; continue; } @@ -8578,16 +8953,16 @@ switch (step) { case 7: case 8: r0 = (s.arg0 === null); - s.aIsNull___503003 = (r0); + s.aIsNull___30831 = (r0); r0 = (s.arg1 === null); - s.bIsNull___503007 = (r0); - s.tmp_0 = r0 = s.aIsNull___503003; + s.bIsNull___30835 = (r0); + s.tmp_0 = r0 = s.aIsNull___30831; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 9; continue; } r0 = s.tmp_0; { step = 10; continue; } case 9: - r0 = s.bIsNull___503007; + r0 = s.bIsNull___30835; case 10: // jmp value (already in r0) s.tmp_1 = r0; @@ -8597,13 +8972,13 @@ switch (step) { { step = 17; continue; } { step = 16; continue; } case 11: - r0 = pxsim_numops_toBoolDecr(s.aIsNull___503003); + r0 = pxsim_numops_toBoolDecr(s.aIsNull___30831); if (!r0) { step = 12; continue; } r0 = 1; { step = 17; continue; } { step = 15; continue; } case 12: - r0 = pxsim_numops_toBoolDecr(s.bIsNull___503007); + r0 = pxsim_numops_toBoolDecr(s.bIsNull___30835); if (!r0) { step = 13; continue; } r0 = -1; { step = 17; continue; } @@ -8642,12 +9017,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P502985.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"]} +helpers_arraySort_inline__P30813.info = {"start":5826,"length":636,"line":209,"column":25,"endLine":224,"endColumn":13,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"inline","argumentNames":["a","b"]} -function inline__P502985_mk(s) { +function helpers_arraySort_inline__P30813_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P502985, depth: s.depth + 1, + parent: s, fn: helpers_arraySort_inline__P30813, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -8657,10 +9032,10 @@ function inline__P502985_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - aIsUndef___502988: undefined, - bIsUndef___502992: undefined, - aIsNull___503003: undefined, - bIsNull___503007: undefined, + aIsUndef___30816: undefined, + bIsUndef___30820: undefined, + aIsNull___30831: undefined, + bIsNull___30835: undefined, arg0: undefined, arg1: undefined, } } @@ -8669,7 +9044,7 @@ function inline__P502985_mk(s) { -function helpers_sortHelper__P498459(s) { +function helpers_sortHelper__P25767(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8679,9 +9054,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___503042 = undefined; - s.i___503045 = undefined; - s.j___503051 = undefined; + s.len___30870 = undefined; + s.i___30873 = undefined; + s.j___30879 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8709,28 +9084,28 @@ switch (step) { case 3: case 4: r0 = pxsim_Array__length(s.arg0); - s.len___503042 = (r0); - s.i___503045 = (0); + s.len___30870 = (r0); + s.i___30873 = (0); case 5: - s.tmp_1 = r0 = s.i___503045; - r0 = (s.len___503042 - 1); + s.tmp_1 = r0 = s.i___30873; + r0 = (s.len___30870 - 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___503045 + 1); - s.j___503051 = (r0); + r0 = (s.i___30873 + 1); + s.j___30879 = (r0); case 6: - r0 = (s.j___503051 < s.len___503042); + r0 = (s.j___30879 < s.len___30870); 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___503045); + r0 = pxsim_Array__getAt(s.arg0, s.i___30873); s.tmp_3.arg0 = r0; - r0 = pxsim_Array__getAt(s.arg0, s.j___503051); + r0 = pxsim_Array__getAt(s.arg0, s.j___30879); s.tmp_3.arg1 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); s.callLocIdx = 0; s.pc = 12; return s.tmp_3; @@ -8741,21 +9116,21 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - s.tmp_4 = helpers_swap__P498458_mk(s); + s.tmp_4 = helpers_swap__P25766_mk(s); s.tmp_4.arg0 = s.arg0; - s.tmp_4.arg1 = s.i___503045; - s.tmp_4.arg2 = s.j___503051; + s.tmp_4.arg1 = s.i___30873; + s.tmp_4.arg2 = s.j___30879; s.callLocIdx = 1; s.pc = 13; return s.tmp_4; case 13: r0 = s.retval; case 7: case 8: - r0 = (s.j___503051 + 1); - s.j___503051 = (r0); + r0 = (s.j___30879 + 1); + s.j___30879 = (r0); { step = 6; continue; } case 9: - r0 = (s.i___503045 + 1); - s.i___503045 = (r0); + r0 = (s.i___30873 + 1); + s.i___30873 = (r0); { step = 5; continue; } case 10: r0 = s.arg0; @@ -8763,21 +9138,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_sortHelper__P498459.info = {"start":5176,"length":481,"line":191,"column":4,"endLine":205,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sortHelper","argumentNames":["arr","callbackfn"]} +helpers_sortHelper__P25767.info = {"start":5176,"length":481,"line":191,"column":4,"endLine":205,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sortHelper","argumentNames":["arr","callbackfn"]} -function helpers_sortHelper__P498459_mk(s) { +function helpers_sortHelper__P25767_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_sortHelper__P498459, depth: s.depth + 1, + parent: s, fn: helpers_sortHelper__P25767, depth: s.depth + 1, pc: 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___503042: undefined, - i___503045: undefined, - j___503051: undefined, + len___30870: undefined, + i___30873: undefined, + j___30879: undefined, arg0: undefined, arg1: undefined, } } @@ -8786,7 +9161,7 @@ function helpers_sortHelper__P498459_mk(s) { -function helpers_swap__P498458(s) { +function helpers_swap__P25766(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8796,7 +9171,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.temp___503080 = undefined; + s.temp___30908 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -8804,28 +9179,28 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__getAt(s.arg0, s.arg1); - s.temp___503080 = (r0); + s.temp___30908 = (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___503080); + r0 = pxsim_Array_.setAt(s.arg0, s.arg2, s.temp___30908); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_swap__P498458.info = {"start":5030,"length":140,"line":185,"column":4,"endLine":189,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"swap","argumentNames":["arr","i","j"]} +helpers_swap__P25766.info = {"start":5030,"length":140,"line":185,"column":4,"endLine":189,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"swap","argumentNames":["arr","i","j"]} -function helpers_swap__P498458_mk(s) { +function helpers_swap__P25766_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_swap__P498458, depth: s.depth + 1, + parent: s, fn: helpers_swap__P25766, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - temp___503080: undefined, + temp___30908: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -8835,7 +9210,7 @@ function helpers_swap__P498458_mk(s) { -function particles_init__P499231(s) { +function particles_init__P26540(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8845,34 +9220,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___503097 = undefined; - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 1050; s.pc = 4; return s.tmp_0; + s.scene___30950 = undefined; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 1158; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.scene___503097 = (r0); - r0 = s.scene___503097.fields["particleSources"]; + s.scene___30950 = (r0); + r0 = s.scene___30950.fields["particleSources"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_1 = r0 = s.scene___503097; + s.tmp_1 = r0 = s.scene___30950; r0 = pxsim_Array__mk(); s.tmp_2 = r0; r0 = (s.tmp_1).fields["particleSources"] = (s.tmp_2); r0 = pxsim.control.millis(); - globals.lastUpdate___499226 = (r0); - s.tmp_0 = game_onUpdate__P497313_mk(s); - s.tmp_0.arg0 = particles_updateParticles__P499232; - s.callLocIdx = 1051; s.pc = 5; return s.tmp_0; + globals.lastUpdate___26535 = (r0); + s.tmp_0 = game_onUpdate__P24399_mk(s); + s.tmp_0.arg0 = particles_updateParticles__P26541; + s.callLocIdx = 1159; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = game_onUpdateInterval__P497314_mk(s); + s.tmp_0 = game_onUpdateInterval__P24400_mk(s); s.tmp_0.arg0 = 250; - s.tmp_0.arg1 = particles_pruneParticles__P499233; - s.callLocIdx = 1052; s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = particles_pruneParticles__P26542; + s.callLocIdx = 1160; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -8880,24 +9255,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_init__P499231.info = {"start":9219,"length":276,"line":303,"column":4,"endLine":310,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} +particles_init__P26540.info = {"start":9236,"length":276,"line":304,"column":4,"endLine":311,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"init","argumentNames":[]} -function particles_init__P499231_mk(s) { +function particles_init__P26540_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_init__P499231, depth: s.depth + 1, + parent: s, fn: particles_init__P26540, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - scene___503097: undefined, + scene___30950: undefined, } } -function particles_pruneParticles__P499233(s) { +function particles_pruneParticles__P26542(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8907,26 +9282,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___503112 = undefined; - s.tmp_0 = particles_particleSources__P499237_mk(s); - s.callLocIdx = 1056; s.pc = 3; return s.tmp_0; + s.sources___30965 = undefined; + s.tmp_0 = particles_particleSources__P26546_mk(s); + s.callLocIdx = 1164; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___503112 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___503112); + s.sources___30965 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___30965); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P494861_mk(s); - s.tmp_1 = helpers_arraySlice__P494867_mk(s); - s.tmp_1.arg0 = s.sources___503112; + s.tmp_0 = helpers_arrayForEach__P21804_mk(s); + s.tmp_1 = helpers_arraySlice__P21810_mk(s); + s.tmp_1.arg0 = s.sources___30965; s.tmp_1.arg1 = 0; - r0 = pxsim_Array__length(s.sources___503112); + r0 = pxsim_Array__length(s.sources___30965); s.tmp_1.arg2 = r0; - s.callLocIdx = 1057; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1165; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P503121; - s.callLocIdx = 1059; s.pc = 4; return s.tmp_0; + s.tmp_0.arg1 = particles_pruneParticles_inline__P30974; + s.callLocIdx = 1167; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 1: @@ -8935,23 +9310,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_pruneParticles__P499233.info = {"start":9847,"length":156,"line":326,"column":4,"endLine":329,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} +particles_pruneParticles__P26542.info = {"start":9864,"length":156,"line":327,"column":4,"endLine":330,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"pruneParticles","argumentNames":[]} -function particles_pruneParticles__P499233_mk(s) { +function particles_pruneParticles__P26542_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_pruneParticles__P499233, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles__P26542, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - sources___503112: undefined, + sources___30965: undefined, } } -function inline__P503121(s) { +function particles_pruneParticles_inline__P30974(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8965,21 +9340,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource__prune__P497456_mk(s); + s.tmp_0 = particles_ParticleSource__prune__P24535_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1058; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1166; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P503121.info = {"start":9980,"length":15,"line":328,"column":62,"endLine":328,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_pruneParticles_inline__P30974.info = {"start":9997,"length":15,"line":329,"column":62,"endLine":329,"endColumn":77,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} -function inline__P503121_mk(s) { +function particles_pruneParticles_inline__P30974_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503121, depth: s.depth + 1, + parent: s, fn: particles_pruneParticles_inline__P30974, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -8989,7 +9364,7 @@ function inline__P503121_mk(s) { -function particles_ParticleSource__prune__P497456(s) { +function particles_ParticleSource__prune__P24535(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -8999,15 +9374,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___502909 = undefined; - s.sources___502917 = undefined; - s.current___502931 = undefined; + s.scene___30737 = undefined; + s.sources___30745 = undefined; + s.current___30759 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); case 1: r0 = s.arg0.fields["head"]; s.tmp_0 = r0; @@ -9050,36 +9425,36 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 13; continue; } - s.tmp_5 = game_currentScene__P497302_mk(s); - s.callLocIdx = 1031; s.pc = 21; return s.tmp_5; + s.tmp_5 = game_currentScene__P24380_mk(s); + s.callLocIdx = 1139; s.pc = 21; return s.tmp_5; case 21: r0 = s.retval; - s.scene___502909 = (r0); - r0 = pxsim_numops_toBoolDecr(s.scene___502909); + s.scene___30737 = (r0); + r0 = pxsim_numops_toBoolDecr(s.scene___30737); if (!r0) { step = 7; continue; } - r0 = s.scene___502909.fields["allSprites"]; + r0 = s.scene___30737.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); case 7: case 8: - s.tmp_0 = particles_particleSources__P499237_mk(s); - s.callLocIdx = 1032; s.pc = 22; return s.tmp_0; + s.tmp_0 = particles_particleSources__P26546_mk(s); + s.callLocIdx = 1140; s.pc = 22; return s.tmp_0; case 22: r0 = s.retval; - s.sources___502917 = (r0); - s.tmp_0 = r0 = s.sources___502917; + s.sources___30745 = (r0); + s.tmp_0 = r0 = s.sources___30745; 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___502917); + r0 = pxsim_Array__length(s.sources___30745); 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___502917, s.arg0); + r0 = pxsim_Array_.removeElement(s.sources___30745, s.arg0); case 11: case 12: r0 = s.arg0.fields["anchor"]; @@ -9088,35 +9463,35 @@ switch (step) { case 13: case 14: r0 = s.arg0.fields["head"]; - s.current___502931 = (r0); + s.current___30759 = (r0); case 15: - s.tmp_0 = r0 = s.current___502931; + s.tmp_0 = r0 = s.current___30759; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 16; continue; } r0 = s.tmp_0; { step = 17; continue; } case 16: - r0 = s.current___502931.fields["next"]; + r0 = s.current___30759.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___502931.fields["next"]; + r0 = s.current___30759.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___502931.fields["next"]; + r0 = s.current___30759.fields["next"]; r0 = r0.fields["next"]; s.tmp_4 = r0; - r0 = (s.current___502931).fields["next"] = (s.tmp_4); + r0 = (s.current___30759).fields["next"] = (s.tmp_4); { step = 19; continue; } case 18: - r0 = s.current___502931.fields["next"]; - s.current___502931 = (r0); + r0 = s.current___30759.fields["next"]; + s.current___30759 = (r0); case 19: { step = 15; continue; } case 20: @@ -9124,12 +9499,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource__prune__P497456.info = {"start":5087,"length":830,"line":165,"column":8,"endLine":188,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} +particles_ParticleSource__prune__P24535.info = {"start":5104,"length":830,"line":166,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_prune","argumentNames":["this"]} -function particles_ParticleSource__prune__P497456_mk(s) { +function particles_ParticleSource__prune__P24535_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__prune__P497456, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__prune__P24535, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9137,9 +9512,9 @@ function particles_ParticleSource__prune__P497456_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - scene___502909: undefined, - sources___502917: undefined, - current___502931: undefined, + scene___30737: undefined, + sources___30745: undefined, + current___30759: undefined, arg0: undefined, } } @@ -9147,7 +9522,7 @@ function particles_ParticleSource__prune__P497456_mk(s) { -function helpers_arraySlice__P494867(s) { +function helpers_arraySlice__P21810(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9157,9 +9532,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___503128 = undefined; - s.len___503130 = undefined; - s.i___503164 = undefined; + s.res___30981 = undefined; + s.len___30983 = undefined; + s.i___31017 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -9167,9 +9542,9 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___503128 = (r0); + s.res___30981 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___503130 = (r0); + s.len___30983 = (r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -9181,8 +9556,8 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_max__P494881_mk(s); - r0 = (s.len___503130 + s.arg1); + s.tmp_1 = Math_max__P21825_mk(s); + r0 = (s.len___30983 + s.arg1); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; s.callLocIdx = 8; s.pc = 16; return s.tmp_1; @@ -9192,11 +9567,11 @@ switch (step) { case 2: case 3: case 4: - r0 = (s.arg1 > s.len___503130); + r0 = (s.arg1 > s.len___30983); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.res___503128; + r0 = s.res___30981; { step = 15; continue; } case 5: case 6: @@ -9204,57 +9579,57 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - s.arg2 = (s.len___503130); + s.arg2 = (s.len___30983); { 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___503130 + s.arg2); + r0 = (s.len___30983 + s.arg2); s.arg2 = (r0); case 8: case 9: case 10: - r0 = (s.arg2 > s.len___503130); + r0 = (s.arg2 > s.len___30983); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.arg2 = (s.len___503130); + s.arg2 = (s.len___30983); case 11: case 12: - s.i___503164 = (s.arg1); + s.i___31017 = (s.arg1); case 13: - r0 = (s.i___503164 < s.arg2); + r0 = (s.i___31017 < s.arg2); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_1 = r0 = s.res___503128; - r0 = pxsim_Array__getAt(s.arg0, s.i___503164); + s.tmp_1 = r0 = s.res___30981; + r0 = pxsim_Array__getAt(s.arg0, s.i___31017); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___503164 + 1); - s.i___503164 = (r0); + r0 = (s.i___31017 + 1); + s.i___31017 = (r0); { step = 13; continue; } case 14: - r0 = s.res___503128; + r0 = s.res___30981; case 15: return leave(s, r0) default: oops() } } } -helpers_arraySlice__P494867.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"]} +helpers_arraySlice__P21810.info = {"start":9027,"length":690,"line":303,"column":4,"endLine":328,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arraySlice","argumentNames":["arr","start","end"]} -function helpers_arraySlice__P494867_mk(s) { +function helpers_arraySlice__P21810_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySlice__P494867, depth: s.depth + 1, + parent: s, fn: helpers_arraySlice__P21810, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - res___503128: undefined, - len___503130: undefined, - i___503164: undefined, + res___30981: undefined, + len___30983: undefined, + i___31017: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -9264,7 +9639,7 @@ function helpers_arraySlice__P494867_mk(s) { -function particles_updateParticles__P499232(s) { +function particles_updateParticles__P26541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9274,16 +9649,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___503410 = undefined; - s.time___503417 = undefined; - s.dt___503420 = undefined; - s.i___503426 = undefined; - s.tmp_0 = particles_particleSources__P499237_mk(s); - s.callLocIdx = 1053; s.pc = 6; return s.tmp_0; + s.sources___31261 = undefined; + s.time___31268 = undefined; + s.dt___31271 = undefined; + s.i___31277 = undefined; + s.tmp_0 = particles_particleSources__P26546_mk(s); + s.callLocIdx = 1161; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.sources___503410 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___503410); + s.sources___31261 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___31261); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -9292,34 +9667,34 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_2 = particles_sortSources__P499234_mk(s); - s.tmp_2.arg0 = s.sources___503410; - s.callLocIdx = 1054; s.pc = 7; return s.tmp_2; + s.tmp_2 = particles_sortSources__P26543_mk(s); + s.tmp_2.arg0 = s.sources___31261; + s.callLocIdx = 1162; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; r0 = pxsim.control.millis(); - s.time___503417 = (r0); - r0 = (s.time___503417 - globals.lastUpdate___499226); - s.dt___503420 = (r0); - globals.lastUpdate___499226 = (s.time___503417); - s.i___503426 = (0); + s.time___31268 = (r0); + r0 = (s.time___31268 - globals.lastUpdate___26535); + s.dt___31271 = (r0); + globals.lastUpdate___26535 = (s.time___31268); + s.i___31277 = (0); case 3: - s.tmp_1 = r0 = s.i___503426; - r0 = pxsim_Array__length(s.sources___503410); + s.tmp_1 = r0 = s.i___31277; + r0 = pxsim_Array__length(s.sources___31261); 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__P497455_mk(s); - r0 = pxsim_Array__getAt(s.sources___503410, s.i___503426); + s.tmp_3 = particles_ParticleSource__update__P24534_mk(s); + r0 = pxsim_Array__getAt(s.sources___31261, s.i___31277); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.dt___503420; - s.callLocIdx = 1055; s.pc = 8; return s.tmp_3; + s.tmp_3.arg1 = s.dt___31271; + s.callLocIdx = 1163; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___503426 + 1); - s.i___503426 = (r0); + r0 = (s.i___31277 + 1); + s.i___31277 = (r0); { step = 3; continue; } case 4: case 5: @@ -9327,28 +9702,28 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_updateParticles__P499232.info = {"start":9501,"length":340,"line":312,"column":4,"endLine":324,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} +particles_updateParticles__P26541.info = {"start":9518,"length":340,"line":313,"column":4,"endLine":325,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticles","argumentNames":[]} -function particles_updateParticles__P499232_mk(s) { +function particles_updateParticles__P26541_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_updateParticles__P499232, depth: s.depth + 1, + parent: s, fn: particles_updateParticles__P26541, depth: s.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___503410: undefined, - time___503417: undefined, - dt___503420: undefined, - i___503426: undefined, + sources___31261: undefined, + time___31268: undefined, + dt___31271: undefined, + i___31277: undefined, } } -function particles_ParticleSource__update__P497455(s) { +function particles_ParticleSource__update__P24534(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9358,16 +9733,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___503489 = undefined; - s.current___503508 = undefined; - s.fixedDt___503516 = undefined; + s.p___31340 = undefined; + s.current___31359 = undefined; + s.fixedDt___31367 = 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__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timer"]; s.tmp_2 = r0; @@ -9393,9 +9768,9 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["lifespan"] = (undefined); - s.tmp_0 = particles_ParticleSource_destroy__P497462_mk(s); + s.tmp_0 = particles_ParticleSource_destroy__P24541_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1026; s.pc = 28; return s.tmp_0; + s.callLocIdx = 1134; s.pc = 28; return s.tmp_0; case 28: r0 = s.retval; case 1: @@ -9418,7 +9793,7 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["flags"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["flags"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 1027; s.pc = 29; return s.tmp_2; } + else { s.callLocIdx = 1135; s.pc = 29; return s.tmp_2; } } case 29: r0 = s.retval; @@ -9441,7 +9816,7 @@ switch (step) { s.tmp_5.fn = s.tmp_5.arg0.vtable.iface["flags"]; if (s.tmp_5.fn == null) { s.retval = s.tmp_5.arg0.fields["flags"]; } else if (!s.tmp_5.fn.isGetter) { s.retval = bind(s.tmp_5); } - else { s.callLocIdx = 1028; s.pc = 30; return s.tmp_5; } + else { s.callLocIdx = 1136; s.pc = 30; return s.tmp_5; } } case 30: r0 = s.retval; @@ -9466,9 +9841,9 @@ switch (step) { r0 = s.tmp_0; { step = 13; continue; } case 12: - s.tmp_2 = particles_ParticleSource_enabled__P497460_mk(s); + s.tmp_2 = particles_ParticleSource_enabled__P24539_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 1029; s.pc = 31; return s.tmp_2; + s.callLocIdx = 1137; s.pc = 31; return s.tmp_2; case 31: r0 = s.retval; case 13: @@ -9484,18 +9859,18 @@ switch (step) { r0 = (s.tmp_6 + s.tmp_7); s.tmp_5 = r0; r0 = (s.tmp_4).fields["timer"] = (s.tmp_5); - s.tmp_0 = particles_ParticleFactory__C497484_v0_2_mk(s); + s.tmp_0 = particles_ParticleFactory__C24563_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__C497484_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C24563_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.createParticle; s.pc = 32; return s.tmp_0; case 32: r0 = s.retval; - s.p___503489 = (r0); - r0 = pxsim_numops_toBoolDecr(s.p___503489); + s.p___31340 = (r0); + r0 = pxsim_numops_toBoolDecr(s.p___31340); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -9506,8 +9881,8 @@ switch (step) { case 15: r0 = s.arg0.fields["head"]; s.tmp_2 = r0; - r0 = (s.p___503489).fields["next"] = (s.tmp_2); - r0 = (s.arg0).fields["head"] = (s.p___503489); + r0 = (s.p___31340).fields["next"] = (s.tmp_2); + r0 = (s.arg0).fields["head"] = (s.p___31340); { step = 11; continue; } case 16: r0 = s.arg0.fields["head"]; @@ -9522,7 +9897,7 @@ switch (step) { case 17: case 18: r0 = s.arg0.fields["head"]; - s.current___503508 = (r0); + s.current___31359 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["_dt"]; s.tmp_2 = r0; @@ -9534,36 +9909,36 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_1 = r0; r0 = (s.tmp_1 | 0); - s.fixedDt___503516 = (r0); - r0 = pxsim_numops_toBoolDecr(s.fixedDt___503516); + s.fixedDt___31367 = (r0); + r0 = pxsim_numops_toBoolDecr(s.fixedDt___31367); if (!r0) { step = 23; continue; } case 19: - r0 = s.current___503508.fields["lifespan"]; + r0 = s.current___31359.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___503508; + s.tmp_2 = r0 = s.current___31359; 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__C497448_v4_3_mk(s); + s.tmp_0 = particles_ParticleSource__C24527_v4_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.current___503508; - s.tmp_0.arg2 = s.fixedDt___503516; - if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C497448_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.current___31359; + s.tmp_0.arg2 = s.fixedDt___31367; + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleSource__C24527_VT)) failedCast(s.tmp_0.arg0); s.tmp_0.fn = s.tmp_0.arg0.vtable.methods.updateParticle; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; case 20: case 21: - r0 = s.current___503508.fields["next"]; + r0 = s.current___31359.fields["next"]; s.tmp_0 = r0; - s.current___503508 = (r0); + s.current___31359 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } { step = 19; continue; } @@ -9572,15 +9947,15 @@ switch (step) { { step = 26; continue; } case 23: case 24: - s.tmp_0 = r0 = s.current___503508; + s.tmp_0 = r0 = s.current___31359; 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___503508.fields["next"]; + r0 = s.current___31359.fields["next"]; s.tmp_0 = r0; - s.current___503508 = (r0); + s.current___31359 = (r0); r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 25; continue; } { step = 24; continue; } @@ -9591,12 +9966,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource__update__P497455.info = {"start":3677,"length":1400,"line":123,"column":8,"endLine":163,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} +particles_ParticleSource__update__P24534.info = {"start":3694,"length":1400,"line":124,"column":8,"endLine":164,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"_update","argumentNames":["this","dt"]} -function particles_ParticleSource__update__P497455_mk(s) { +function particles_ParticleSource__update__P24534_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource__update__P497455, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource__update__P24534, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9606,9 +9981,9 @@ function particles_ParticleSource__update__P497455_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - p___503489: undefined, - current___503508: undefined, - fixedDt___503516: undefined, + p___31340: undefined, + current___31359: undefined, + fixedDt___31367: undefined, arg0: undefined, arg1: undefined, } } @@ -9617,7 +9992,7 @@ function particles_ParticleSource__update__P497455_mk(s) { -function particles_ParticleSource_updateParticle__P499228(s) { +function particles_ParticleSource_updateParticle__P26537(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9634,7 +10009,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); r0 = (s.arg2 >> 10); s.arg2 = (r0); s.tmp_0 = r0 = s.arg1; @@ -9689,12 +10064,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_updateParticle__P499228.info = {"start":8231,"length":357,"line":276,"column":8,"endLine":284,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"updateParticle","argumentNames":["this","p","fixedDt"]} +particles_ParticleSource_updateParticle__P26537.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__P499228_mk(s) { +function particles_ParticleSource_updateParticle__P26537_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_updateParticle__P499228, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_updateParticle__P26537, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -9711,7 +10086,7 @@ function particles_ParticleSource_updateParticle__P499228_mk(s) { -function Fx_rightShift__P494920(s) { +function Fx_rightShift__P21866(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9730,12 +10105,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_rightShift__P494920.info = {"start":2031,"length":108,"line":65,"column":4,"endLine":67,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} +Fx_rightShift__P21866.info = {"start":2266,"length":108,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"rightShift","argumentNames":["a","n"]} -function Fx_rightShift__P494920_mk(s) { +function Fx_rightShift__P21866_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_rightShift__P494920, depth: s.depth + 1, + parent: s, fn: Fx_rightShift__P21866, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -9745,7 +10120,7 @@ function Fx_rightShift__P494920_mk(s) { -function Fx_mul__P494911(s) { +function Fx_mul__P21855(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9766,12 +10141,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_mul__P494911.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} +Fx_mul__P21855.info = {"start":872,"length":133,"line":29,"column":4,"endLine":31,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"mul","argumentNames":["a","b"]} -function Fx_mul__P494911_mk(s) { +function Fx_mul__P21855_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_mul__P494911, depth: s.depth + 1, + parent: s, fn: Fx_mul__P21855, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -9782,7 +10157,7 @@ function Fx_mul__P494911_mk(s) { -function Fx_add__P494908(s) { +function Fx_add__P21852(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9801,12 +10176,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_add__P494908.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} +Fx_add__P21852.info = {"start":511,"length":118,"line":20,"column":4,"endLine":22,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"add","argumentNames":["a","b"]} -function Fx_add__P494908_mk(s) { +function Fx_add__P21852_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_add__P494908, depth: s.depth + 1, + parent: s, fn: Fx_add__P21852, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -9816,7 +10191,7 @@ function Fx_add__P494908_mk(s) { -function particles_ParticleFactory_createParticle__P497486(s) { +function particles_ParticleFactory_createParticle__P24565(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9826,17 +10201,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___503613 = undefined; + s.p___31464 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C497484_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C497429_VT); - s.p___503613 = (r0); - s.tmp_0 = r0 = s.p___503613; + if (!checkSubtype(r0, particles_ParticleFactory__C24563_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(particles_Particle__C24508_VT); + s.p___31464 = (r0); + s.tmp_0 = r0 = s.p___31464; s.tmp_3 = if_x_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -9845,7 +10220,7 @@ switch (step) { 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 = 1080; s.pc = 1; return s.tmp_3; } + else { s.callLocIdx = 1188; s.pc = 1; return s.tmp_3; } } case 1: r0 = s.retval; @@ -9855,7 +10230,7 @@ switch (step) { r0 = (s.tmp_4 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.p___503613; + s.tmp_0 = r0 = s.p___31464; s.tmp_3 = if_y_1_mk(s); s.tmp_3.arg0 = s.arg1; if (!s.tmp_3.arg0.vtable.iface) { @@ -9864,7 +10239,7 @@ switch (step) { 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 = 1082; s.pc = 2; return s.tmp_3; } + else { s.callLocIdx = 1190; s.pc = 2; return s.tmp_3; } } case 2: r0 = s.retval; @@ -9874,26 +10249,26 @@ switch (step) { r0 = (s.tmp_4 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = (s.p___503613).fields["vx"] = (0); - r0 = (s.p___503613).fields["vy"] = (0); - r0 = (s.p___503613).fields["lifespan"] = (500); - r0 = s.p___503613; + r0 = (s.p___31464).fields["vx"] = (0); + r0 = (s.p___31464).fields["vy"] = (0); + r0 = (s.p___31464).fields["lifespan"] = (500); + r0 = s.p___31464; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_createParticle__P497486.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} +particles_ParticleFactory_createParticle__P24565.info = {"start":1822,"length":282,"line":67,"column":8,"endLine":77,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"createParticle","argumentNames":["this","anchor"]} -function particles_ParticleFactory_createParticle__P497486_mk(s) { +function particles_ParticleFactory_createParticle__P24565_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_createParticle__P497486, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_createParticle__P24565, depth: s.depth + 1, pc: 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___503613: undefined, + p___31464: undefined, arg0: undefined, arg1: undefined, } } @@ -9902,7 +10277,7 @@ function particles_ParticleFactory_createParticle__P497486_mk(s) { -function game_onUpdateInterval__P497314(s) { +function game_onUpdateInterval__P24400(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9912,17 +10287,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.timer___503188 = undefined; + s.timer___31039 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P498881_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 826; 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); @@ -9942,40 +10312,40 @@ switch (step) { case 3: case 4: r0 = pxsim_pxtrt.mklocRef(); - s.timer___503188 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.timer___503188, 0); - r0 = pxsim_pxtcore_mkAction(3, inline__P503192); + s.timer___31039 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.timer___31039, 0); + r0 = pxsim_pxtcore_mkAction(3, game_onUpdateInterval_inline__P31043); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___503188); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.timer___31039); 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__P495148_mk(s); - s.tmp_2 = game_eventContext__P497305_mk(s); - s.callLocIdx = 827; s.pc = 8; return s.tmp_2; - case 8: + s.tmp_1 = control_EventContext_registerFrameHandler__P22098_mk(s); + s.tmp_2 = game_eventContext__P24383_mk(s); + s.callLocIdx = 943; 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 = 831; s.pc = 7; return s.tmp_1; - case 7: + s.callLocIdx = 947; s.pc = 6; return s.tmp_1; + case 6: r0 = s.retval; case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdateInterval__P497314.info = {"start":7929,"length":417,"line":256,"column":4,"endLine":267,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"onUpdateInterval","argumentNames":["period","a"]} +game_onUpdateInterval__P24400.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 game_onUpdateInterval__P497314_mk(s) { +function game_onUpdateInterval__P24400_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdateInterval__P497314, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval__P24400, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - timer___503188: undefined, + timer___31039: undefined, arg0: undefined, arg1: undefined, } } @@ -9984,7 +10354,7 @@ function game_onUpdateInterval__P497314_mk(s) { -function inline__P503192(s) { +function game_onUpdateInterval_inline__P31043(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -9994,28 +10364,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.time___503193 = undefined; - s.tmp_1 = game_currentScene__P497302_mk(s); - s.callLocIdx = 828; s.pc = 3; return s.tmp_1; + s.time___31044 = undefined; + s.tmp_1 = game_currentScene__P24380_mk(s); + s.callLocIdx = 944; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_millis"]; - s.time___503193 = (r0); + s.time___31044 = (r0); r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.time___503193); + r0 = (s.tmp_1 <= s.time___31044); 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___503193 + s.caps[1]); + r0 = (s.time___31044 + 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 = 830; s.pc = 4; return s.tmp_0; + s.callLocIdx = 946; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 1: @@ -10024,25 +10394,25 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P503192.info = {"start":8159,"length":179,"line":260,"column":81,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":[]} +game_onUpdateInterval_inline__P31043.info = {"start":1105,"length":179,"line":31,"column":81,"endLine":37,"endColumn":9,"fileName":"pxt_modules/game/gameutil.ts","functionName":"inline","argumentNames":[]} -function inline__P503192_mk(s) { +function game_onUpdateInterval_inline__P31043_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503192, depth: s.depth + 1, + parent: s, fn: game_onUpdateInterval_inline__P31043, depth: s.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___503193: undefined, + time___31044: undefined, } } -function control_EventContext_registerFrameHandler__P495148(s) { +function control_EventContext_registerFrameHandler__P22098(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10052,8 +10422,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.fn___503216 = undefined; - s.i___503225 = undefined; + s.fn___31067 = undefined; + s.i___31076 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -10061,7 +10431,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C495140_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C22090_VT)) failedCast(r0); r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -10074,20 +10444,20 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = (s.tmp_3).fields["frameCallbacks"] = (s.tmp_4); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P498532_mk(s); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P25844_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 51; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C495137_VT); - s.fn___503216 = (r0); - r0 = (s.fn___503216).fields["order"] = (s.arg1); - r0 = (s.fn___503216).fields["handler"] = (s.arg2); - s.i___503225 = (0); + r0 = pxsim_pxtcore_mkClassInstance(control_FrameCallback__C22087_VT); + s.fn___31067 = (r0); + r0 = (s.fn___31067).fields["order"] = (s.arg1); + r0 = (s.fn___31067).fields["handler"] = (s.arg2); + s.i___31076 = (0); case 3: - s.tmp_1 = r0 = s.i___503225; + s.tmp_1 = r0 = s.i___31076; r0 = s.arg0.fields["frameCallbacks"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -10098,7 +10468,7 @@ switch (step) { if (!r0) { step = 6; continue; } r0 = s.arg0.fields["frameCallbacks"]; s.tmp_6 = r0; - r0 = pxsim_Array__getAt(s.tmp_6, s.i___503225); + r0 = pxsim_Array__getAt(s.tmp_6, s.i___31076); r0 = r0.fields["order"]; s.tmp_5 = r0; r0 = (s.tmp_5 > s.arg1); @@ -10107,29 +10477,29 @@ switch (step) { if (!r0) { step = 4; continue; } r0 = s.arg0.fields["frameCallbacks"]; s.tmp_7 = r0; - r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___503225, s.fn___503216); - r0 = s.fn___503216; + r0 = pxsim_Array_.insertAt(s.tmp_7, s.i___31076, s.fn___31067); + r0 = s.fn___31067; { step = 7; continue; } case 4: case 5: - r0 = (s.i___503225 + 1); - s.i___503225 = (r0); + r0 = (s.i___31076 + 1); + s.i___31076 = (r0); { step = 3; continue; } case 6: r0 = s.arg0.fields["frameCallbacks"]; s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.fn___503216); - r0 = s.fn___503216; + r0 = pxsim_Array__push(s.tmp_0, s.fn___31067); + r0 = s.fn___31067; case 7: return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameHandler__P495148.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"]} +control_EventContext_registerFrameHandler__P22098.info = {"start":4675,"length":643,"line":143,"column":8,"endLine":160,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameHandler","argumentNames":["this","order","handler"]} -function control_EventContext_registerFrameHandler__P495148_mk(s) { +function control_EventContext_registerFrameHandler__P22098_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameHandler__P495148, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameHandler__P22098, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10139,8 +10509,8 @@ function control_EventContext_registerFrameHandler__P495148_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - fn___503216: undefined, - i___503225: undefined, + fn___31067: undefined, + i___31076: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -10150,7 +10520,7 @@ function control_EventContext_registerFrameHandler__P495148_mk(s) { -function control_EventContext_registerFrameCallbacks__P498532(s) { +function control_EventContext_registerFrameCallbacks__P25844(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10160,13 +10530,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.worker___503259 = undefined; + s.worker___31110 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C495140_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C22090_VT)) failedCast(r0); r0 = s.arg0.fields["frameCallbacks"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -10179,28 +10549,28 @@ switch (step) { case 1: case 2: r0 = s.arg0.fields["frameWorker"]; - s.worker___503259 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P503265); + s.worker___31110 = (r0); + r0 = pxsim_pxtcore_mkAction(2, control_EventContext_registerFrameCallbacks_inline__P31116); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___503259); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.worker___31110); r0 = pxsim.control.runInParallel(s.tmp_0); case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_registerFrameCallbacks__P498532.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} +control_EventContext_registerFrameCallbacks__P25844.info = {"start":3481,"length":895,"line":105,"column":8,"endLine":129,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"registerFrameCallbacks","argumentNames":["this"]} -function control_EventContext_registerFrameCallbacks__P498532_mk(s) { +function control_EventContext_registerFrameCallbacks__P25844_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_registerFrameCallbacks__P498532, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks__P25844, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - worker___503259: undefined, + worker___31110: undefined, arg0: undefined, } } @@ -10208,7 +10578,7 @@ function control_EventContext_registerFrameCallbacks__P498532_mk(s) { -function inline__P503265(s) { +function control_EventContext_registerFrameCallbacks_inline__P31116(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10218,15 +10588,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___503295 = undefined; + s.delay___31146 = 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__P503271); + r0 = pxsim_pxtcore_mkAction(1, control_EventContext_registerFrameCallbacks_inline__P31122); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.caps[0]); - s.tmp_2 = pauseUntil__P495112_mk(s); + s.tmp_2 = pauseUntil__P22062_mk(s); s.tmp_2.arg0 = s.tmp_1; s.tmp_2.arg1 = undefined; s.callLocIdx = 45; s.pc = 5; return s.tmp_2; @@ -10249,14 +10619,14 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = control_EventContext_runCallbacks__P498531_mk(s); + s.tmp_2 = control_EventContext_runCallbacks__P25843_mk(s); s.tmp_2.arg0 = s.caps[0]; s.callLocIdx = 46; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; - s.delay___503295 = (r0); - s.tmp_0 = pause__P495158_mk(s); - s.tmp_0.arg0 = s.delay___503295; + s.delay___31146 = (r0); + s.tmp_0 = pause__P22108_mk(s); + s.tmp_0.arg0 = s.delay___31146; s.callLocIdx = 47; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; @@ -10267,24 +10637,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P503265.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +control_EventContext_registerFrameCallbacks_inline__P31116.info = {"start":3642,"length":723,"line":109,"column":34,"endLine":128,"endColumn":13,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function inline__P503265_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P31116_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503265, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P31116, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - delay___503295: undefined, + delay___31146: undefined, } } -function inline__P503271(s) { +function control_EventContext_registerFrameCallbacks_inline__P31122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10302,12 +10672,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P503271.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} +control_EventContext_registerFrameCallbacks_inline__P31122.info = {"start":3873,"length":28,"line":113,"column":31,"endLine":113,"endColumn":59,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":[]} -function inline__P503271_mk(s) { +function control_EventContext_registerFrameCallbacks_inline__P31122_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503271, depth: s.depth + 1, + parent: s, fn: control_EventContext_registerFrameCallbacks_inline__P31122, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10317,7 +10687,7 @@ function inline__P503271_mk(s) { -function control_EventContext_runCallbacks__P498531(s) { +function control_EventContext_runCallbacks__P25843(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10327,42 +10697,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.loopStart___503304 = undefined; - s.f___503317 = undefined; - s.unnamed1728___U2 = undefined; - s.unnamed1729___U3 = undefined; - s.runtime___503322 = undefined; - s.fps___503342 = undefined; - s.delay___503404 = undefined; + s.loopStart___31155 = undefined; + s.f___31168 = undefined; + s.unnamed146___U2 = undefined; + s.unnamed147___U3 = undefined; + s.runtime___31173 = undefined; + s.fps___31193 = undefined; + s.delay___31255 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C495140_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C22090_VT)) failedCast(r0); r0 = pxsim.control.millis(); - s.loopStart___503304 = (r0); + s.loopStart___31155 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.arg0.fields["prevTimeMillis"]; s.tmp_2 = r0; - r0 = (s.loopStart___503304 - s.tmp_2); + r0 = (s.loopStart___31155 - s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["deltaTimeMillis"] = (s.tmp_1); - r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___503304); - s.f___503317 = (undefined); + r0 = (s.arg0).fields["prevTimeMillis"] = (s.loopStart___31155); + s.f___31168 = (undefined); r0 = s.arg0.fields["frameCallbacks"]; - s.unnamed1728___U2 = (r0); - s.unnamed1729___U3 = (0); + s.unnamed146___U2 = (r0); + s.unnamed147___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1729___U3; - r0 = pxsim_Array__length(s.unnamed1728___U2); + s.tmp_0 = r0 = s.unnamed147___U3; + r0 = pxsim_Array__length(s.unnamed146___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed1728___U2, s.unnamed1729___U3); - s.f___503317 = (r0); + r0 = pxsim_Array__getAt(s.unnamed146___U2, s.unnamed147___U3); + s.f___31168 = (r0); s.tmp_2 = if_handler_1_mk(s); - s.tmp_2.arg0 = s.f___503317; + s.tmp_2.arg0 = s.f___31168; if (!s.tmp_2.arg0.vtable.iface) { setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "handler"), 1); s.callLocIdx = 42; s.pc = 13; return s.tmp_2; @@ -10374,19 +10744,19 @@ switch (step) { } case 13: r0 = s.retval; - r0 = (s.unnamed1729___U3 + 1); - s.unnamed1729___U3 = (r0); + r0 = (s.unnamed147___U3 + 1); + s.unnamed147___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed1728___U2 = (undefined); + s.unnamed146___U2 = (undefined); r0 = pxsim.control.millis(); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.loopStart___503304); - s.runtime___503322 = (r0); + r0 = (s.tmp_0 - s.loopStart___31155); + s.runtime___31173 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["timeInSample"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.runtime___503322); + r0 = (s.tmp_2 + s.runtime___31173); s.tmp_1 = r0; r0 = (s.tmp_0).fields["timeInSample"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; @@ -10419,8 +10789,8 @@ switch (step) { r0 = (s.tmp_6 / 1000); s.tmp_5 = r0; r0 = (s.tmp_4 / s.tmp_5); - s.fps___503342 = (r0); - r0 = pxsim.Math_.round(s.fps___503342); + s.fps___31193 = (r0); + r0 = pxsim.Math_.round(s.fps___31193); s.tmp_1 = r0; if ((s.tmp_1) && (s.tmp_1).vtable) { setupResume(s, 14); @@ -10432,21 +10802,21 @@ switch (step) { r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat("fps:", s.tmp_0); - globals.control_EventContext_lastStats___495142 = (r0); - r0 = (s.fps___503342 < 99); + globals.control_EventContext_lastStats___22092 = (r0); + r0 = (s.fps___31193 < 99); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - if ((globals.control_EventContext_lastStats___495142) && (globals.control_EventContext_lastStats___495142).vtable) { + if ((globals.control_EventContext_lastStats___22092) && (globals.control_EventContext_lastStats___22092).vtable) { setupResume(s, 15); - pxsim_String__stringConv(globals.control_EventContext_lastStats___495142); + pxsim_String__stringConv(globals.control_EventContext_lastStats___22092); checkResumeConsumed(); return; - } else { s.retval = (globals.control_EventContext_lastStats___495142) + ""; } + } else { s.retval = (globals.control_EventContext_lastStats___22092) + ""; } case 15: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.fps___503342 * 10); + r0 = (s.fps___31193 * 10); s.tmp_7 = r0; r0 = pxsim.Math_.round(s.tmp_7); s.tmp_6 = r0; @@ -10473,10 +10843,10 @@ switch (step) { r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_1, s.tmp_2); - globals.control_EventContext_lastStats___495142 = (r0); + globals.control_EventContext_lastStats___22092 = (r0); case 5: case 6: - s.tmp_2 = control_ramSize__P495091_mk(s); + s.tmp_2 = control_ramSize__P22041_mk(s); s.callLocIdx = 43; s.pc = 18; return s.tmp_2; case 18: r0 = s.retval; @@ -10496,7 +10866,7 @@ switch (step) { if (!r0) { step = 9; continue; } r0 = pxsim_String_.mkEmpty(); s.tmp_8 = r0; - r0 = (s.fps___503342 * 100); + r0 = (s.fps___31193 * 100); s.tmp_11 = r0; r0 = (s.tmp_11 | 0); s.tmp_10 = r0; @@ -10537,24 +10907,24 @@ switch (step) { r0 = (s.arg0).fields["framesInSample"] = (0); case 11: case 12: - s.tmp_0 = Math_max__P494881_mk(s); + s.tmp_0 = Math_max__P21825_mk(s); s.tmp_0.arg0 = 1; - r0 = (20 - s.runtime___503322); + r0 = (20 - s.runtime___31173); s.tmp_0.arg1 = r0; s.callLocIdx = 44; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.delay___503404 = (r0); - r0 = s.delay___503404; + s.delay___31255 = (r0); + r0 = s.delay___31255; return leave(s, r0) default: oops() } } } -control_EventContext_runCallbacks__P498531.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} +control_EventContext_runCallbacks__P25843.info = {"start":2182,"length":1246,"line":74,"column":8,"endLine":102,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"runCallbacks","argumentNames":["this"]} -function control_EventContext_runCallbacks__P498531_mk(s) { +function control_EventContext_runCallbacks__P25843_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_runCallbacks__P498531, depth: s.depth + 1, + parent: s, fn: control_EventContext_runCallbacks__P25843, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10570,13 +10940,13 @@ function control_EventContext_runCallbacks__P498531_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - loopStart___503304: undefined, - f___503317: undefined, - unnamed1728___U2: undefined, - unnamed1729___U3: undefined, - runtime___503322: undefined, - fps___503342: undefined, - delay___503404: undefined, + loopStart___31155: undefined, + f___31168: undefined, + unnamed146___U2: undefined, + unnamed147___U3: undefined, + runtime___31173: undefined, + fps___31193: undefined, + delay___31255: undefined, arg0: undefined, } } @@ -10584,7 +10954,74 @@ function control_EventContext_runCallbacks__P498531_mk(s) { -function game_onUpdate__P497313(s) { +function control_ramSize__P22041(s) { +let r0 = s.r0, 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__P22041.info = {"start":4847,"length":100,"line":165,"column":4,"endLine":167,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"ramSize","argumentNames":[]} + +function control_ramSize__P22041_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control_ramSize__P22041, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, +} } + + + + + +function control__ramSize__P25809(s) { +let r0 = s.r0, 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__P25809.info = {"start":4727,"length":60,"line":160,"column":4,"endLine":162,"endColumn":5,"fileName":"pxt_modules/base/control.ts","functionName":"_ramSize","argumentNames":[]} + +function control__ramSize__P25809_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: control__ramSize__P25809, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, +} } + + + + + +function game_onUpdate__P24399(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10598,11 +11035,6 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P498881_mk(s); - s.tmp_0.arg0 = undefined; - s.callLocIdx = 823; 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); @@ -10612,28 +11044,28 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = control_EventContext_registerFrameHandler__P495148_mk(s); - s.tmp_3 = game_eventContext__P497305_mk(s); - s.callLocIdx = 824; s.pc = 6; return s.tmp_3; - case 6: + s.tmp_2 = control_EventContext_registerFrameHandler__P22098_mk(s); + s.tmp_3 = game_eventContext__P24383_mk(s); + s.callLocIdx = 941; 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 = 825; s.pc = 5; return s.tmp_2; - case 5: + s.callLocIdx = 942; s.pc = 4; return s.tmp_2; + case 4: r0 = s.retval; case 3: r0 = undefined; return leave(s, r0) default: oops() } } } -game_onUpdate__P497313.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__P24399.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__P497313_mk(s) { +function game_onUpdate__P24399_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onUpdate__P497313, depth: s.depth + 1, + parent: s, fn: game_onUpdate__P24399, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10646,7 +11078,64 @@ function game_onUpdate__P497313_mk(s) { -function particles_SprayFactory_constructor__P497489(s) { +function MAX_SOURCES_inline__P30921(s) { +let r0 = s.r0, 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___30922 = undefined; + s.tmp_0 = control_ramSize__P22041_mk(s); + s.callLocIdx = 28; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + s.sz___30922 = (r0); + r0 = (s.sz___30922 <= 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___30922 <= 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() +} } } +MAX_SOURCES_inline__P30921.info = {"start":240,"length":217,"line":9,"column":25,"endLine":18,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":[]} + +function MAX_SOURCES_inline__P30921_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: MAX_SOURCES_inline__P30921, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + sz___30922: undefined, +} } + + + + + +function particles_SprayFactory_constructor__P24568(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10664,35 +11153,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C497488_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C24567_VT)) failedCast(r0); r0 = undefined; - s.tmp_0 = particles_initTrig__P499252_mk(s); - s.callLocIdx = 1087; s.pc = 1; return s.tmp_0; + s.tmp_0 = particles_initTrig__P26561_mk(s); + s.callLocIdx = 1195; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setSpeed__P497492_mk(s); + s.tmp_0 = particles_SprayFactory_setSpeed__P24571_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1088; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1196; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = particles_SprayFactory_setDirection__P497493_mk(s); + s.tmp_0 = particles_SprayFactory_setDirection__P24572_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; s.tmp_0.arg2 = s.arg3; - s.callLocIdx = 1089; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1197; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_SprayFactory_constructor__P497489.info = {"start":2623,"length":218,"line":98,"column":8,"endLine":103,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","speed","centerDegrees","arcDegrees"]} +particles_SprayFactory_constructor__P24568.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__P497489_mk(s) { +function particles_SprayFactory_constructor__P24568_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_constructor__P497489, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_constructor__P24568, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -10705,7 +11194,7 @@ function particles_SprayFactory_constructor__P497489_mk(s) { -function particles_initTrig__P499252(s) { +function particles_initTrig__P26561(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10715,36 +11204,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.cachedSin___499238); + r0 = pxsim_numops_toBoolDecr(globals.cachedSin___26547); 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__P497482_mk(s); + s.tmp_2 = particles_cacheSin__P24561_mk(s); s.tmp_2.arg0 = 100; - s.callLocIdx = 1075; s.pc = 3; return s.tmp_2; + s.callLocIdx = 1183; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - globals.cachedSin___499238 = (r0); - s.tmp_0 = particles_cacheCos__P497483_mk(s); + globals.cachedSin___26547 = (r0); + s.tmp_0 = particles_cacheCos__P24562_mk(s); s.tmp_0.arg0 = 100; - s.callLocIdx = 1076; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1184; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - globals.cachedCos___499239 = (r0); + globals.cachedCos___26548 = (r0); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_initTrig__P499252.info = {"start":291,"length":155,"line":11,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"initTrig","argumentNames":[]} +particles_initTrig__P26561.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__P499252_mk(s) { +function particles_initTrig__P26561_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_initTrig__P499252, depth: s.depth + 1, + parent: s, fn: particles_initTrig__P26561, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10755,7 +11244,7 @@ function particles_initTrig__P499252_mk(s) { -function particles_cacheCos__P497483(s) { +function particles_cacheCos__P24562(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10765,25 +11254,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cos___502787 = undefined; - s.anglePerSlice___502789 = undefined; - s.i___502795 = undefined; + s.cos___30615 = undefined; + s.anglePerSlice___30617 = undefined; + s.i___30623 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.cos___502787 = (r0); + s.cos___30615 = (r0); r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___502789 = (r0); - s.i___502795 = (0); + s.anglePerSlice___30617 = (r0); + s.i___30623 = (0); case 1: - r0 = (s.i___502795 < s.arg0); + r0 = (s.i___30623 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.cos___502787; - r0 = (s.i___502795 * s.anglePerSlice___502789); + s.tmp_1 = r0 = s.cos___30615; + r0 = (s.i___30623 * s.anglePerSlice___30617); s.tmp_4 = r0; r0 = pxsim.Math_.cos(s.tmp_4); s.tmp_3 = r0; @@ -10792,20 +11281,20 @@ switch (step) { r0 = (s.tmp_5 | 0); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___502795 + 1); - s.i___502795 = (r0); + r0 = (s.i___30623 + 1); + s.i___30623 = (r0); { step = 1; continue; } case 2: - r0 = s.cos___502787; + r0 = s.cos___30615; return leave(s, r0) default: oops() } } } -particles_cacheCos__P497483.info = {"start":1005,"length":263,"line":35,"column":4,"endLine":42,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheCos","argumentNames":["slices"]} +particles_cacheCos__P24562.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__P497483_mk(s) { +function particles_cacheCos__P24562_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheCos__P497483, depth: s.depth + 1, + parent: s, fn: particles_cacheCos__P24562, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10813,9 +11302,9 @@ function particles_cacheCos__P497483_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - cos___502787: undefined, - anglePerSlice___502789: undefined, - i___502795: undefined, + cos___30615: undefined, + anglePerSlice___30617: undefined, + i___30623: undefined, arg0: undefined, } } @@ -10823,7 +11312,7 @@ function particles_cacheCos__P497483_mk(s) { -function particles_cacheSin__P497482(s) { +function particles_cacheSin__P24561(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10833,25 +11322,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sin___502813 = undefined; - s.anglePerSlice___502815 = undefined; - s.i___502821 = undefined; + s.sin___30641 = undefined; + s.anglePerSlice___30643 = undefined; + s.i___30649 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.sin___502813 = (r0); + s.sin___30641 = (r0); r0 = (6.283185307179586 / s.arg0); - s.anglePerSlice___502815 = (r0); - s.i___502821 = (0); + s.anglePerSlice___30643 = (r0); + s.i___30649 = (0); case 1: - r0 = (s.i___502821 < s.arg0); + r0 = (s.i___30649 < s.arg0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.sin___502813; - r0 = (s.i___502821 * s.anglePerSlice___502815); + s.tmp_1 = r0 = s.sin___30641; + r0 = (s.i___30649 * s.anglePerSlice___30643); s.tmp_4 = r0; r0 = pxsim.Math_.sin(s.tmp_4); s.tmp_3 = r0; @@ -10860,20 +11349,20 @@ switch (step) { r0 = (s.tmp_5 | 0); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_1, s.tmp_2); - r0 = (s.i___502821 + 1); - s.i___502821 = (r0); + r0 = (s.i___30649 + 1); + s.i___30649 = (r0); { step = 1; continue; } case 2: - r0 = s.sin___502813; + r0 = s.sin___30641; return leave(s, r0) default: oops() } } } -particles_cacheSin__P497482.info = {"start":594,"length":263,"line":22,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"cacheSin","argumentNames":["slices"]} +particles_cacheSin__P24561.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__P497482_mk(s) { +function particles_cacheSin__P24561_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_cacheSin__P497482, depth: s.depth + 1, + parent: s, fn: particles_cacheSin__P24561, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10881,9 +11370,9 @@ function particles_cacheSin__P497482_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - sin___502813: undefined, - anglePerSlice___502815: undefined, - i___502821: undefined, + sin___30641: undefined, + anglePerSlice___30643: undefined, + i___30649: undefined, arg0: undefined, } } @@ -10891,7 +11380,7 @@ function particles_cacheSin__P497482_mk(s) { -function particles_SprayFactory_setDirection__P497493(s) { +function particles_SprayFactory_setDirection__P24572(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10908,31 +11397,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C497488_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C24567_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P499257_mk(s); + s.tmp_4 = particles_toRadians__P26566_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 = 1097; s.pc = 1; return s.tmp_4; + s.callLocIdx = 1205; s.pc = 1; return s.tmp_4; case 1: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___499251); + r0 = (s.tmp_3 / globals.angleSlice___26560); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; r0 = (s.tmp_0).fields["minAngle"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_4 = particles_toRadians__P499257_mk(s); + s.tmp_4 = particles_toRadians__P26566_mk(s); s.tmp_4.arg0 = s.arg2; - s.callLocIdx = 1098; s.pc = 2; return s.tmp_4; + s.callLocIdx = 1206; s.pc = 2; return s.tmp_4; case 2: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 / globals.angleSlice___499251); + r0 = (s.tmp_3 / globals.angleSlice___26560); s.tmp_2 = r0; r0 = (s.tmp_2 | 0); s.tmp_1 = r0; @@ -10941,12 +11430,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setDirection__P497493.info = {"start":3424,"length":228,"line":123,"column":8,"endLine":126,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setDirection","argumentNames":["this","centerDegrees","arcDegrees"]} +particles_SprayFactory_setDirection__P24572.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__P497493_mk(s) { +function particles_SprayFactory_setDirection__P24572_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setDirection__P497493, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setDirection__P24572, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -10964,7 +11453,7 @@ function particles_SprayFactory_setDirection__P497493_mk(s) { -function particles_toRadians__P499257(s) { +function particles_toRadians__P26566(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -10982,9 +11471,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_3 = Math_abs__P494879_mk(s); + s.tmp_3 = Math_abs__P21823_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1079; s.pc = 3; return s.tmp_3; + s.callLocIdx = 1187; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; @@ -11001,12 +11490,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_toRadians__P499257.info = {"start":1307,"length":206,"line":45,"column":4,"endLine":52,"endColumn":5,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"toRadians","argumentNames":["degrees"]} +particles_toRadians__P26566.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__P499257_mk(s) { +function particles_toRadians__P26566_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_toRadians__P499257, depth: s.depth + 1, + parent: s, fn: particles_toRadians__P26566, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11019,7 +11508,7 @@ function particles_toRadians__P499257_mk(s) { -function particles_ParticleFactory_constructor__P497485(s) { +function particles_ParticleFactory_constructor__P24564(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11034,17 +11523,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C497484_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleFactory__C24563_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleFactory_constructor__P497485.info = {"start":1617,"length":78,"line":59,"column":8,"endLine":61,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this"]} +particles_ParticleFactory_constructor__P24564.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__P497485_mk(s) { +function particles_ParticleFactory_constructor__P24564_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_constructor__P497485, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_constructor__P24564, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11053,7 +11542,7 @@ function particles_ParticleFactory_constructor__P497485_mk(s) { -function particles_ParticleSource_setFactory__P497467(s) { +function particles_ParticleSource_setFactory__P24546(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11069,7 +11558,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["_factory"] = (s.arg1); @@ -11079,12 +11568,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setFactory__P497467.info = {"start":8107,"length":114,"line":271,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} +particles_ParticleSource_setFactory__P24546.info = {"start":8124,"length":114,"line":272,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setFactory","argumentNames":["this","factory"]} -function particles_ParticleSource_setFactory__P497467_mk(s) { +function particles_ParticleSource_setFactory__P24546_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setFactory__P497467, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setFactory__P24546, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -11094,7 +11583,7 @@ function particles_ParticleSource_setFactory__P497467_mk(s) { -function particles_ParticleSource_setRate__P497465(s) { +function particles_ParticleSource_setRate__P24544(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11110,7 +11599,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (1000 / s.arg1); s.tmp_2 = r0; @@ -11122,12 +11611,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRate__P497465.info = {"start":7785,"length":139,"line":258,"column":8,"endLine":261,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} +particles_ParticleSource_setRate__P24544.info = {"start":7802,"length":139,"line":259,"column":8,"endLine":262,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setRate","argumentNames":["this","particlesPerSecond"]} -function particles_ParticleSource_setRate__P497465_mk(s) { +function particles_ParticleSource_setRate__P24544_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRate__P497465, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRate__P24544, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11140,7 +11629,7 @@ function particles_ParticleSource_setRate__P497465_mk(s) { -function particles_ParticleSource_setAnchor__P497464(s) { +function particles_ParticleSource_setAnchor__P24543(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11156,18 +11645,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); r0 = (s.arg0).fields["anchor"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAnchor__P497464.info = {"start":7577,"length":79,"line":250,"column":8,"endLine":252,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} +particles_ParticleSource_setAnchor__P24543.info = {"start":7594,"length":79,"line":251,"column":8,"endLine":253,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAnchor","argumentNames":["this","anchor"]} -function particles_ParticleSource_setAnchor__P497464_mk(s) { +function particles_ParticleSource_setAnchor__P24543_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAnchor__P497464, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAnchor__P24543, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -11177,7 +11666,7 @@ function particles_ParticleSource_setAnchor__P497464_mk(s) { -function particles_ParticleSource_clear__P497463(s) { +function particles_ParticleSource_clear__P24542(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11192,18 +11681,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); r0 = (s.arg0).fields["head"] = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_clear__P497463.info = {"start":7407,"length":54,"line":242,"column":8,"endLine":244,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} +particles_ParticleSource_clear__P24542.info = {"start":7424,"length":54,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"clear","argumentNames":["this"]} -function particles_ParticleSource_clear__P497463_mk(s) { +function particles_ParticleSource_clear__P24542_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_clear__P497463, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_clear__P24542, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11212,7 +11701,7 @@ function particles_ParticleSource_clear__P497463_mk(s) { -function particles_ParticleSource_destroy__P497462(s) { +function particles_ParticleSource_destroy__P24541(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11227,11 +11716,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleSource_enabled__P497461_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleSource_enabled__P24540_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.callLocIdx = 1036; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1144; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -11240,21 +11729,21 @@ switch (step) { r0 = (s.tmp_2 | 2); s.tmp_1 = r0; r0 = (s.tmp_0).fields["pFlags"] = (s.tmp_1); - s.tmp_0 = particles_ParticleSource__prune__P497456_mk(s); + s.tmp_0 = particles_ParticleSource__prune__P24535_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1037; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1145; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource_destroy__P497462.info = {"start":7077,"length":240,"line":232,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} +particles_ParticleSource_destroy__P24541.info = {"start":7094,"length":240,"line":233,"column":8,"endLine":238,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"destroy","argumentNames":["this"]} -function particles_ParticleSource_destroy__P497462_mk(s) { +function particles_ParticleSource_destroy__P24541_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_destroy__P497462, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_destroy__P24541, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11266,7 +11755,7 @@ function particles_ParticleSource_destroy__P497462_mk(s) { -function particles_ParticleSource_enabled__P497461(s) { +function particles_ParticleSource_enabled__P24540(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11282,11 +11771,11 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); s.tmp_1 = r0 = s.arg1; - s.tmp_3 = particles_ParticleSource_enabled__P497460_mk(s); + s.tmp_3 = particles_ParticleSource_enabled__P24539_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 1035; s.pc = 5; return s.tmp_3; + s.callLocIdx = 1143; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; s.tmp_2 = r0; @@ -11315,12 +11804,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P497461.info = {"start":6799,"length":214,"line":222,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"enabled","argumentNames":["this","v"]} +particles_ParticleSource_enabled__P24540.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__P497461_mk(s) { +function particles_ParticleSource_enabled__P24540_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P497461, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P24540, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11337,7 +11826,7 @@ function particles_ParticleSource_enabled__P497461_mk(s) { -function particles_ParticleSource_enabled__P497460(s) { +function particles_ParticleSource_enabled__P24539(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11352,7 +11841,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); r0 = s.arg0.fields["pFlags"]; s.tmp_4 = r0; r0 = (s.tmp_4 & 1); @@ -11367,13 +11856,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -particles_ParticleSource_enabled__P497460.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__P497460.isGetter = true; +particles_ParticleSource_enabled__P24539.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__P24539.isGetter = true; -function particles_ParticleSource_enabled__P497460_mk(s) { +function particles_ParticleSource_enabled__P24539_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_enabled__P497460, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_enabled__P24539, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11387,7 +11876,7 @@ function particles_ParticleSource_enabled__P497460_mk(s) { -function particles_ParticleSource_setAcceleration__P497457(s) { +function particles_ParticleSource_setAcceleration__P24536(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11404,7 +11893,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -11421,12 +11910,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setAcceleration__P497457.info = {"start":6009,"length":113,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} +particles_ParticleSource_setAcceleration__P24536.info = {"start":6026,"length":113,"line":194,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/particles.ts","functionName":"setAcceleration","argumentNames":["this","ax","ay"]} -function particles_ParticleSource_setAcceleration__P497457_mk(s) { +function particles_ParticleSource_setAcceleration__P24536_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setAcceleration__P497457, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setAcceleration__P24536, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11440,7 +11929,7 @@ function particles_ParticleSource_setAcceleration__P497457_mk(s) { -function sprites_BaseSprite_constructor__P496626(s) { +function sprites_BaseSprite_constructor__P23585(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11456,15 +11945,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C496624_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_z__P496629_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C23583_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_z__P23588_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.callLocIdx = 127; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_Scene_addSprite__P497214_mk(s); - s.tmp_1 = game_currentScene__P497302_mk(s); + s.tmp_0 = scene_Scene_addSprite__P24292_mk(s); + s.tmp_1 = game_currentScene__P24380_mk(s); s.callLocIdx = 128; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; @@ -11477,12 +11966,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite_constructor__P496626.info = {"start":344,"length":170,"line":15,"column":8,"endLine":20,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"inline","argumentNames":["this","z"]} +sprites_BaseSprite_constructor__P23585.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__P496626_mk(s) { +function sprites_BaseSprite_constructor__P23585_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_constructor__P496626, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_constructor__P23585, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11494,7 +11983,7 @@ function sprites_BaseSprite_constructor__P496626_mk(s) { -function scene_Scene_addSprite__P497214(s) { +function scene_Scene_addSprite__P24292(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11510,7 +11999,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C497189_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C24266_VT)) failedCast(r0); r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); @@ -11529,7 +12018,7 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["set/id"]; if (s.tmp_3.fn === null) { s.tmp_3.arg0.fields["id"] = s.tmp_3.arg1; } else if (s.tmp_3.fn === undefined) { failedCast(s.tmp_3.arg0) } - else { s.callLocIdx = 795; s.pc = 1; return s.tmp_3; } + else { s.callLocIdx = 905; s.pc = 1; return s.tmp_3; } } case 1: r0 = s.retval; @@ -11537,12 +12026,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_addSprite__P497214.info = {"start":6859,"length":128,"line":193,"column":8,"endLine":196,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +scene_Scene_addSprite__P24292.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 scene_Scene_addSprite__P497214_mk(s) { +function scene_Scene_addSprite__P24292_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_addSprite__P497214, depth: s.depth + 1, + parent: s, fn: scene_Scene_addSprite__P24292, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11556,7 +12045,7 @@ function scene_Scene_addSprite__P497214_mk(s) { -function sprites_BaseSprite_z__P496629(s) { +function sprites_BaseSprite_z__P23588(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11572,7 +12061,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C496624_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C23583_VT)) failedCast(r0); r0 = s.arg0.fields["_z"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== s.arg1); @@ -11580,7 +12069,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (s.arg0).fields["_z"] = (s.arg1); - s.tmp_1 = game_currentScene__P497302_mk(s); + s.tmp_1 = game_currentScene__P24380_mk(s); s.callLocIdx = 130; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; @@ -11596,12 +12085,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite_z__P496629.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} +sprites_BaseSprite_z__P23588.info = {"start":656,"length":174,"line":30,"column":8,"endLine":35,"endColumn":9,"fileName":"pxt_modules/game/basesprite.ts","functionName":"z","argumentNames":["this","v"]} -function sprites_BaseSprite_z__P496629_mk(s) { +function sprites_BaseSprite_z__P23588_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P496629, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P23588, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11615,7 +12104,7 @@ function sprites_BaseSprite_z__P496629_mk(s) { -function sprites_BaseSprite_z__P496628(s) { +function sprites_BaseSprite_z__P23587(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11630,18 +12119,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C496624_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C23583_VT)) failedCast(r0); r0 = s.arg0.fields["_z"]; return leaveAccessor(s, r0) default: oops() } } } -sprites_BaseSprite_z__P496628.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__P496628.isGetter = true; +sprites_BaseSprite_z__P23587.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__P23587.isGetter = true; -function sprites_BaseSprite_z__P496628_mk(s) { +function sprites_BaseSprite_z__P23587_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite_z__P496628, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite_z__P23587, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11650,7 +12139,7 @@ function sprites_BaseSprite_z__P496628_mk(s) { -function helpers_arrayShift__P494854(s) { +function helpers_arrayShift__P21797(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11668,12 +12157,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arrayShift__P494854.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} +helpers_arrayShift__P21797.info = {"start":4045,"length":82,"line":153,"column":4,"endLine":155,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"arrayShift","argumentNames":["arr"]} -function helpers_arrayShift__P494854_mk(s) { +function helpers_arrayShift__P21797_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayShift__P494854, depth: s.depth + 1, + parent: s, fn: helpers_arrayShift__P21797, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -11682,7 +12171,7 @@ function helpers_arrayShift__P494854_mk(s) { -function particles_SprayFactory_setSpeed__P497492(s) { +function particles_SprayFactory_setSpeed__P24571(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11698,7 +12187,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C497488_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_SprayFactory__C24567_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -11709,12 +12198,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_setSpeed__P497492.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} +particles_SprayFactory_setSpeed__P24571.info = {"start":3322,"length":92,"line":119,"column":8,"endLine":121,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"setSpeed","argumentNames":["this","pixelsPerSecond"]} -function particles_SprayFactory_setSpeed__P497492_mk(s) { +function particles_SprayFactory_setSpeed__P24571_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_setSpeed__P497492, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_setSpeed__P24571, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11727,7 +12216,7 @@ function particles_SprayFactory_setSpeed__P497492_mk(s) { -function particles_ConfettiFactory_constructor__P497516(s) { +function particles_ConfettiFactory_constructor__P24595(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11737,8 +12226,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.confetti___503692 = undefined; - s.i___503708 = undefined; + s.confetti___31541 = undefined; + s.i___31557 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -11746,52 +12235,52 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ConfettiFactory__C497515_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ConfettiFactory__C24594_VT)) failedCast(r0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim.image.ofBuffer(_hex503695); + r0 = pxsim.image.ofBuffer(_hex31544); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - r0 = pxsim.image.ofBuffer(_hex503697); + r0 = pxsim.image.ofBuffer(_hex31546); s.tmp_2 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_2); - r0 = pxsim.image.ofBuffer(_hex503699); + r0 = pxsim.image.ofBuffer(_hex31548); s.tmp_3 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_3); - r0 = pxsim.image.ofBuffer(_hex503701); + r0 = pxsim.image.ofBuffer(_hex31550); s.tmp_4 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_4); - r0 = pxsim.image.ofBuffer(_hex503703); + r0 = pxsim.image.ofBuffer(_hex31552); s.tmp_5 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_5); - s.confetti___503692 = (s.tmp_0); - s.tmp_0 = particles_ShapeFactory_constructor__P497511_mk(s); + s.confetti___31541 = (s.tmp_0); + s.tmp_0 = particles_ShapeFactory_constructor__P24590_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___503692, 0); + r0 = pxsim_Array__getAt(s.confetti___31541, 0); s.tmp_0.arg3 = r0; - s.callLocIdx = 1121; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1229; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.i___503708 = (1); + s.i___31557 = (1); case 1: - s.tmp_1 = r0 = s.i___503708; - r0 = pxsim_Array__length(s.confetti___503692); + s.tmp_1 = r0 = s.i___31557; + r0 = pxsim_Array__length(s.confetti___31541); 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__P497512_mk(s); + s.tmp_3 = particles_ShapeFactory_addShape__P24591_mk(s); s.tmp_3.arg0 = s.arg0; - r0 = pxsim_Array__getAt(s.confetti___503692, s.i___503708); + r0 = pxsim_Array__getAt(s.confetti___31541, s.i___31557); s.tmp_3.arg1 = r0; - s.callLocIdx = 1122; s.pc = 4; return s.tmp_3; + s.callLocIdx = 1230; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - r0 = (s.i___503708 + 1); - s.i___503708 = (r0); + r0 = (s.i___31557 + 1); + s.i___31557 = (r0); { step = 1; continue; } case 2: r0 = (s.arg0).fields["minLifespan"] = (1000); @@ -11800,12 +12289,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ConfettiFactory_constructor__P497516.info = {"start":7755,"length":706,"line":247,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} +particles_ConfettiFactory_constructor__P24595.info = {"start":7755,"length":706,"line":247,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange"]} -function particles_ConfettiFactory_constructor__P497516_mk(s) { +function particles_ConfettiFactory_constructor__P24595_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ConfettiFactory_constructor__P497516, depth: s.depth + 1, + parent: s, fn: particles_ConfettiFactory_constructor__P24595, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11813,23 +12302,23 @@ function particles_ConfettiFactory_constructor__P497516_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - confetti___503692: undefined, - i___503708: undefined, + confetti___31541: undefined, + i___31557: undefined, arg0: undefined, arg1: undefined, arg2: undefined, } } -const _hex503695 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") -const _hex503697 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") -const _hex503699 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") -const _hex503701 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") -const _hex503703 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") +const _hex31544 = pxsim.BufferMethods.createBufferFromHex("87040100010000000f000000") +const _hex31546 = pxsim.BufferMethods.createBufferFromHex("8704010002000000ff000000") +const _hex31548 = pxsim.BufferMethods.createBufferFromHex("87040200010000000f0000000f000000") +const _hex31550 = pxsim.BufferMethods.createBufferFromHex("8704020002000000ff0000000f000000") +const _hex31552 = pxsim.BufferMethods.createBufferFromHex("87040200020000000f000000ff000000") -function particles_ShapeFactory_addShape__P497512(s) { +function particles_ShapeFactory_addShape__P24591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11845,7 +12334,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C497510_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ShapeFactory__C24589_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["sources"]; @@ -11857,12 +12346,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_addShape__P497512.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} +particles_ShapeFactory_addShape__P24591.info = {"start":7079,"length":83,"line":225,"column":8,"endLine":227,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"addShape","argumentNames":["this","shape"]} -function particles_ShapeFactory_addShape__P497512_mk(s) { +function particles_ShapeFactory_addShape__P24591_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_addShape__P497512, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_addShape__P24591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -11873,7 +12362,7 @@ function particles_ShapeFactory_addShape__P497512_mk(s) { -function particles_ShapeFactory_constructor__P497511(s) { +function particles_ShapeFactory_constructor__P24590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11891,14 +12380,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C497510_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_constructor__P497499_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C24589_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_constructor__P24578_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 = 1111; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1219; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = pxsim_Array__mk(); @@ -11929,12 +12418,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_constructor__P497511.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} +particles_ShapeFactory_constructor__P24590.info = {"start":6668,"length":285,"line":212,"column":8,"endLine":219,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","source"]} -function particles_ShapeFactory_constructor__P497511_mk(s) { +function particles_ShapeFactory_constructor__P24590_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_constructor__P497511, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_constructor__P24590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -11951,7 +12440,7 @@ function particles_ShapeFactory_constructor__P497511_mk(s) { -function particles_AreaFactory_constructor__P497499(s) { +function particles_AreaFactory_constructor__P24578(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -11970,13 +12459,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C497494_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_constructor__P497489_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C24573_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_constructor__P24568_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 = 1099; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1207; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = (s.arg0).fields["xRange"] = (s.arg1); @@ -12001,12 +12490,12 @@ switch (step) { // jmp value (already in r0) s.tmp_0 = r0; r0 = (s.arg0).fields["maxLifespan"] = (s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C497356_VT); + r0 = pxsim_pxtcore_mkClassInstance(Math_FastRandom__C24435_VT); s.tmp_0 = r0; - s.tmp_1 = Math_FastRandom_constructor__P497358_mk(s); + s.tmp_1 = Math_FastRandom_constructor__P24437_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = undefined; - s.callLocIdx = 1100; s.pc = 6; return s.tmp_1; + s.callLocIdx = 1208; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; r0 = (s.arg0).fields["galois"] = (s.tmp_0); @@ -12014,12 +12503,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_AreaFactory_constructor__P497499.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} +particles_AreaFactory_constructor__P24578.info = {"start":3950,"length":374,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/particlefactories.ts","functionName":"inline","argumentNames":["this","xRange","yRange","minLifespan","maxLifespan"]} -function particles_AreaFactory_constructor__P497499_mk(s) { +function particles_AreaFactory_constructor__P24578_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_constructor__P497499, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_constructor__P24578, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12034,7 +12523,7 @@ function particles_AreaFactory_constructor__P497499_mk(s) { -function effects_ScreenEffect_constructor__P497564(s) { +function effects_ScreenEffect_constructor__P24643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12053,13 +12542,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ScreenEffect__C497563_VT)) failedCast(r0); - s.tmp_0 = effects_ParticleEffect_constructor__P497560_mk(s); + if (!checkSubtype(r0, effects_ScreenEffect__C24642_VT)) failedCast(r0); + s.tmp_0 = effects_ParticleEffect_constructor__P24639_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 = 1128; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1236; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = (s.arg0).fields["sceneDefaultRate"] = (s.arg2); @@ -12067,12 +12556,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ScreenEffect_constructor__P497564.info = {"start":2911,"length":332,"line":81,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","anchorDefault","sceneDefault","defaultLifespan","sourceFactory"]} +effects_ScreenEffect_constructor__P24643.info = {"start":2911,"length":332,"line":81,"column":8,"endLine":85,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","anchorDefault","sceneDefault","defaultLifespan","sourceFactory"]} -function effects_ScreenEffect_constructor__P497564_mk(s) { +function effects_ScreenEffect_constructor__P24643_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ScreenEffect_constructor__P497564, depth: s.depth + 1, + parent: s, fn: effects_ScreenEffect_constructor__P24643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -12086,7 +12575,7 @@ function effects_ScreenEffect_constructor__P497564_mk(s) { -function effects_ParticleEffect_constructor__P497560(s) { +function effects_ParticleEffect_constructor__P24639(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12104,7 +12593,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C497559_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C24638_VT)) failedCast(r0); r0 = (s.arg0).fields["sourceFactory"] = (s.arg3); r0 = (s.arg0).fields["defaultRate"] = (s.arg1); r0 = (s.arg0).fields["defaultLifespan"] = (s.arg2); @@ -12112,12 +12601,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_constructor__P497560.info = {"start":384,"length":364,"line":13,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","defaultParticlesPerSecond","defaultLifespan","sourceFactory"]} +effects_ParticleEffect_constructor__P24639.info = {"start":384,"length":364,"line":13,"column":8,"endLine":18,"endColumn":9,"fileName":"pxt_modules/game/particleeffects.ts","functionName":"inline","argumentNames":["this","defaultParticlesPerSecond","defaultLifespan","sourceFactory"]} -function effects_ParticleEffect_constructor__P497560_mk(s) { +function effects_ParticleEffect_constructor__P24639_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_constructor__P497560, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_constructor__P24639, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -12129,7 +12618,7 @@ function effects_ParticleEffect_constructor__P497560_mk(s) { -function scene_Scene_init__P497211(s) { +function scene_Scene_init__P24289(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12144,7 +12633,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C497189_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C24266_VT)) failedCast(r0); r0 = s.arg0.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -12152,8 +12641,8 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_1 = power_poke__P496471_mk(s); - s.callLocIdx = 775; s.pc = 4; return s.tmp_1; + s.tmp_1 = power_poke__P23425_mk(s); + s.callLocIdx = 885; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -12161,84 +12650,84 @@ switch (step) { 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__P503827); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P31676); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P495148_mk(s); + s.tmp_1 = control_EventContext_registerFrameHandler__P22098_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 = 778; s.pc = 5; return s.tmp_1; + s.callLocIdx = 888; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P495148_mk(s); + s.tmp_0 = control_EventContext_registerFrameHandler__P22098_mk(s); r0 = s.arg0.fields["eventContext"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 13; - s.tmp_0.arg2 = controller__moveSprites__P496688; - s.callLocIdx = 779; s.pc = 6; return s.tmp_0; + s.tmp_0.arg2 = controller__moveSprites__P23622; + s.callLocIdx = 889; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P503850); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P31699); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P495148_mk(s); + s.tmp_1 = control_EventContext_registerFrameHandler__P22098_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 = 781; s.pc = 7; return s.tmp_1; + s.callLocIdx = 891; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P503863); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P31712); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P495148_mk(s); + s.tmp_1 = control_EventContext_registerFrameHandler__P22098_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 = 785; s.pc = 8; return s.tmp_1; + s.callLocIdx = 895; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P503884); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P31733); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P495148_mk(s); + s.tmp_1 = control_EventContext_registerFrameHandler__P22098_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 = 787; s.pc = 9; return s.tmp_1; + s.callLocIdx = 897; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P503892); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P31741); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = control_EventContext_registerFrameHandler__P495148_mk(s); + s.tmp_1 = control_EventContext_registerFrameHandler__P22098_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 = 791; s.pc = 10; return s.tmp_1; + s.callLocIdx = 901; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - s.tmp_0 = control_EventContext_registerFrameHandler__P495148_mk(s); + s.tmp_0 = control_EventContext_registerFrameHandler__P22098_mk(s); r0 = s.arg0.fields["eventContext"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 200; - s.tmp_0.arg2 = control___screen_update__P496529; - s.callLocIdx = 792; s.pc = 11; return s.tmp_0; + s.tmp_0.arg2 = control___screen_update__P23485; + s.callLocIdx = 902; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P503921); + r0 = pxsim_pxtcore_mkAction(1, scene_Scene_init_inline__P31770); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayForEach__P494861_mk(s); - s.tmp_1.arg0 = globals.scene_Scene_initializers___497209; + s.tmp_1 = helpers_arrayForEach__P21804_mk(s); + s.tmp_1.arg0 = globals.scene_Scene_initializers___24287; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 794; s.pc = 12; return s.tmp_1; + s.callLocIdx = 904; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; case 3: @@ -12246,12 +12735,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_init__P497211.info = {"start":4168,"length":2477,"line":122,"column":8,"endLine":180,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"init","argumentNames":["this"]} +scene_Scene_init__P24289.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__P497211_mk(s) { +function scene_Scene_init__P24289_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_init__P497211, depth: s.depth + 1, + parent: s, fn: scene_Scene_init__P24289, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12262,7 +12751,7 @@ function scene_Scene_init__P497211_mk(s) { -function inline__P503827(s) { +function scene_Scene_init_inline__P31676(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12281,26 +12770,26 @@ switch (step) { 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__P496716_mk(s); + s.tmp_0 = controller___update__P23650_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 = 777; s.pc = 1; return s.tmp_0; + s.callLocIdx = 887; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P503827.info = {"start":4458,"length":217,"line":129,"column":72,"endLine":133,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +scene_Scene_init_inline__P31676.info = {"start":4568,"length":217,"line":131,"column":72,"endLine":135,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function inline__P503827_mk(s) { +function scene_Scene_init_inline__P31676_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503827, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P31676, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12312,7 +12801,7 @@ function inline__P503827_mk(s) { -function inline__P503850(s) { +function scene_Scene_init_inline__P31699(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12322,7 +12811,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = PhysicsEngine__C496934_v4_2_mk(s); + s.tmp_0 = PhysicsEngine__C23985_v4_2_mk(s); r0 = s.caps[0].fields["physicsEngine"]; s.tmp_0.arg0 = r0; r0 = s.caps[0].fields["eventContext"]; @@ -12331,7 +12820,7 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); s.tmp_0.arg1 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C496934_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C23985_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: @@ -12340,12 +12829,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P503850.info = {"start":4970,"length":159,"line":138,"column":69,"endLine":141,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +scene_Scene_init_inline__P31699.info = {"start":5080,"length":159,"line":140,"column":69,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function inline__P503850_mk(s) { +function scene_Scene_init_inline__P31699_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503850, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P31699, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12356,7 +12845,7 @@ function inline__P503850_mk(s) { -function inline__P503863(s) { +function scene_Scene_init_inline__P31712(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12366,80 +12855,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dt___503864 = undefined; - s.s___503872 = undefined; - s.unnamed1754___U2 = undefined; - s.unnamed1755___U3 = undefined; + s.dt___31713 = undefined; + s.s___31721 = undefined; + s.unnamed178___U2 = undefined; + s.unnamed179___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___503864 = (r0); - s.tmp_0 = scene_Camera_update__P497146_mk(s); + s.dt___31713 = (r0); + s.tmp_0 = scene_Camera_update__P24223_mk(s); r0 = s.caps[0].fields["camera"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 783; s.pc = 3; return s.tmp_0; + s.callLocIdx = 893; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.s___503872 = (undefined); + s.s___31721 = (undefined); r0 = s.caps[0].fields["allSprites"]; - s.unnamed1754___U2 = (r0); - s.unnamed1755___U3 = (0); + s.unnamed178___U2 = (r0); + s.unnamed179___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1755___U3; - r0 = pxsim_Array__length(s.unnamed1754___U2); + s.tmp_0 = r0 = s.unnamed179___U3; + r0 = pxsim_Array__length(s.unnamed178___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed1754___U2, s.unnamed1755___U3); - s.s___503872 = (r0); + r0 = pxsim_Array__getAt(s.unnamed178___U2, s.unnamed179___U3); + s.s___31721 = (r0); s.tmp_2 = if___update_3_mk(s); - s.tmp_2.arg0 = s.s___503872; + s.tmp_2.arg0 = s.s___31721; r0 = s.caps[0].fields["camera"]; s.tmp_2.arg1 = r0; - s.tmp_2.arg2 = s.dt___503864; + s.tmp_2.arg2 = s.dt___31713; if (!s.tmp_2.arg0.vtable.iface) { setupLambda(s.tmp_2, pxsim_pxtrt.mapGetByString(s.tmp_2.arg0, "__update"), 3); - s.callLocIdx = 784; s.pc = 4; return s.tmp_2; + s.callLocIdx = 894; 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 = 784; s.pc = 4; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 784; s.pc = 4; return s.tmp_2;; } - else { s.callLocIdx = 784; s.pc = 4; return s.tmp_2; } + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__update"], 3); s.callLocIdx = 894; s.pc = 4; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 894; s.pc = 4; return s.tmp_2;; } + else { s.callLocIdx = 894; s.pc = 4; return s.tmp_2; } } case 4: r0 = s.retval; - r0 = (s.unnamed1755___U3 + 1); - s.unnamed1755___U3 = (r0); + r0 = (s.unnamed179___U3 + 1); + s.unnamed179___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed1754___U2 = (undefined); + s.unnamed178___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P503863.info = {"start":5318,"length":214,"line":147,"column":79,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +scene_Scene_init_inline__P31712.info = {"start":5428,"length":214,"line":149,"column":79,"endLine":155,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function inline__P503863_mk(s) { +function scene_Scene_init_inline__P31712_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503863, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P31712, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dt___503864: undefined, - s___503872: undefined, - unnamed1754___U2: undefined, - unnamed1755___U3: undefined, + dt___31713: undefined, + s___31721: undefined, + unnamed178___U2: undefined, + unnamed179___U3: undefined, } } -function inline__P503884(s) { +function scene_Scene_init_inline__P31733(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12449,21 +12938,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_Scene_render__P497216_mk(s); + s.tmp_0 = scene_Scene_render__P24294_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 786; s.pc = 1; return s.tmp_0; + s.callLocIdx = 896; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P503884.info = {"start":5673,"length":109,"line":158,"column":76,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +scene_Scene_init_inline__P31733.info = {"start":5783,"length":109,"line":160,"column":76,"endLine":163,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function inline__P503884_mk(s) { +function scene_Scene_init_inline__P31733_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503884, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P31733, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -12472,7 +12961,7 @@ function inline__P503884_mk(s) { -function inline__P503892(s) { +function scene_Scene_init_inline__P31741(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12482,26 +12971,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = r0 = globals.stats___497299; + s.tmp_0 = r0 = globals.stats___24377; 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___495143; + r0 = globals.control_EventContext_onStats___22093; 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___495143; - if ((globals.control_EventContext_lastStats___495142) && (globals.control_EventContext_lastStats___495142).vtable) { + s.tmp_2.argL = globals.control_EventContext_onStats___22093; + if ((globals.control_EventContext_lastStats___22092) && (globals.control_EventContext_lastStats___22092).vtable) { setupResume(s, 8); - pxsim_String__stringConv(globals.control_EventContext_lastStats___495142); + pxsim_String__stringConv(globals.control_EventContext_lastStats___22092); checkResumeConsumed(); return; - } else { s.retval = (globals.control_EventContext_lastStats___495142) + ""; } + } else { s.retval = (globals.control_EventContext_lastStats___22092) + ""; } case 8: r0 = s.retval; s.tmp_3 = r0; @@ -12532,41 +13021,41 @@ switch (step) { 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 = 788; s.pc = 7; return s.tmp_2; + s.callLocIdx = 898; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; case 3: case 4: - r0 = pxsim_numops_toBoolDecr(globals.debug___497298); + r0 = pxsim_numops_toBoolDecr(globals.debug___24376); if (!r0) { step = 5; continue; } - s.tmp_0 = PhysicsEngine__C496934_v3_1_mk(s); + s.tmp_0 = PhysicsEngine__C23985_v3_1_mk(s); r0 = s.caps[0].fields["physicsEngine"]; s.tmp_0.arg0 = r0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C496934_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C23985_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__P497424_mk(s); - s.callLocIdx = 789; s.pc = 12; return s.tmp_0; + s.tmp_0 = game_consoleOverlay_draw__P24503_mk(s); + s.callLocIdx = 899; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = power_checkDeepSleep__P496472_mk(s); - s.callLocIdx = 790; s.pc = 13; return s.tmp_0; + s.tmp_0 = power_checkDeepSleep__P23426_mk(s); + s.callLocIdx = 900; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P503892.info = {"start":5899,"length":504,"line":163,"column":80,"endLine":175,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} +scene_Scene_init_inline__P31741.info = {"start":6009,"length":504,"line":165,"column":80,"endLine":177,"endColumn":13,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":[]} -function inline__P503892_mk(s) { +function scene_Scene_init_inline__P31741_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503892, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P31741, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12583,7 +13072,7 @@ function inline__P503892_mk(s) { -function inline__P503921(s) { +function scene_Scene_init_inline__P31770(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12601,19 +13090,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 = 793; s.pc = 1; return s.tmp_0; + s.callLocIdx = 903; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P503921.info = {"start":6621,"length":12,"line":179,"column":39,"endLine":179,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} +scene_Scene_init_inline__P31770.info = {"start":6731,"length":12,"line":181,"column":39,"endLine":181,"endColumn":51,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["f"]} -function inline__P503921_mk(s) { +function scene_Scene_init_inline__P31770_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P503921, depth: s.depth + 1, + parent: s, fn: scene_Scene_init_inline__P31770, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -12623,7 +13112,7 @@ function inline__P503921_mk(s) { -function game_consoleOverlay_draw__P497424(s) { +function game_consoleOverlay_draw__P24503(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12633,16 +13122,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.height___503970 = undefined; - s.top___503975 = undefined; - s.i___503981 = undefined; - s.t___503994 = undefined; - s.tOff___504001 = undefined; - s.tab___504003 = undefined; - s.unnamed1758___U6 = undefined; - s.unnamed1759___U7 = undefined; - s.padding___504005 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___499171); + s.height___31819 = undefined; + s.top___31824 = undefined; + s.i___31830 = undefined; + s.t___31843 = undefined; + s.tOff___31850 = undefined; + s.tab___31852 = undefined; + s.unnamed182___U6 = undefined; + s.unnamed183___U7 = undefined; + s.padding___31854 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___26495); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -12651,7 +13140,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(globals.instance___499125); + r0 = pxsim_numops_toBoolDecr(globals.instance___26449); s.tmp_4 = r0; r0 = pxsim_Boolean__bang(s.tmp_4); s.tmp_3 = r0; @@ -12667,23 +13156,23 @@ switch (step) { case 3: case 4: s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = globals.consoleFont___499179; + s.tmp_7.arg0 = globals.consoleFont___26503; 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 = 1004; s.pc = 14; return s.tmp_7; } + else { s.callLocIdx = 1112; s.pc = 14; return s.tmp_7; } } case 14: r0 = s.retval; s.tmp_6 = r0; r0 = (s.tmp_6 + 2); - s.height___503970 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___497299); + s.height___31819 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___24377); if (!r0) { step = 5; continue; } - r0 = s.height___503970; + r0 = s.height___31819; { step = 6; continue; } case 5: r0 = 0; @@ -12691,17 +13180,17 @@ switch (step) { // jmp value (already in r0) s.tmp_0 = r0; r0 = (2 + s.tmp_0); - s.top___503975 = (r0); - s.i___503981 = (0); + s.top___31824 = (r0); + s.i___31830 = (0); case 7: - s.tmp_1 = r0 = s.i___503981; - r0 = pxsim_Array__length(globals.consoleStrings___499171); + s.tmp_1 = r0 = s.i___31830; + r0 = pxsim_Array__length(globals.consoleStrings___26495); 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___499171, s.i___503981); + r0 = pxsim_Array__getAt(globals.consoleStrings___26495, s.i___31830); s.tmp_5 = r0; r0 = pxsim_String_.indexOf(s.tmp_5, "\t", undefined); s.tmp_4 = r0; @@ -12709,50 +13198,50 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 10; continue; } - s.tmp_6 = helpers_stringSplit__P494873_mk(s); - r0 = pxsim_Array__getAt(globals.consoleStrings___499171, s.i___503981); + s.tmp_6 = helpers_stringSplit__P21817_mk(s); + r0 = pxsim_Array__getAt(globals.consoleStrings___26495, s.i___31830); s.tmp_6.arg0 = r0; s.tmp_6.arg1 = "\t"; s.tmp_6.arg2 = undefined; - s.callLocIdx = 1005; s.pc = 15; return s.tmp_6; + s.callLocIdx = 1113; s.pc = 15; return s.tmp_6; case 15: r0 = s.retval; - s.t___503994 = (r0); - s.tOff___504001 = (0); - s.tab___504003 = (undefined); - s.unnamed1758___U6 = (s.t___503994); - s.unnamed1759___U7 = (0); + s.t___31843 = (r0); + s.tOff___31850 = (0); + s.tab___31852 = (undefined); + s.unnamed182___U6 = (s.t___31843); + s.unnamed183___U7 = (0); case 8: - s.tmp_0 = r0 = s.unnamed1759___U7; - r0 = pxsim_Array__length(s.unnamed1758___U6); + s.tmp_0 = r0 = s.unnamed183___U7; + r0 = pxsim_Array__length(s.unnamed182___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 9; continue; } - r0 = pxsim_Array__getAt(s.unnamed1758___U6, s.unnamed1759___U7); - s.tab___504003 = (r0); - s.tmp_2 = r0 = globals.tabSize___499173; - s.tmp_5 = r0 = s.tOff___504001; - r0 = pxsim_String_.length(s.tab___504003); + r0 = pxsim_Array__getAt(s.unnamed182___U6, s.unnamed183___U7); + s.tab___31852 = (r0); + s.tmp_2 = r0 = globals.tabSize___26497; + s.tmp_5 = r0 = s.tOff___31850; + r0 = pxsim_String_.length(s.tab___31852); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; - r0 = (s.tmp_4 % globals.tabSize___499173); + r0 = (s.tmp_4 % globals.tabSize___26497); s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); - s.padding___504005 = (r0); - s.tmp_0 = helpers_imagePrint__P496526_mk(s); - s.tmp_0.arg0 = globals.screen___496568; - s.tmp_0.arg1 = s.tab___504003; - s.tmp_2 = r0 = s.tOff___504001; + s.padding___31854 = (r0); + s.tmp_0 = helpers_imagePrint__P23482_mk(s); + s.tmp_0.arg0 = globals.screen___23524; + s.tmp_0.arg1 = s.tab___31852; + s.tmp_2 = r0 = s.tOff___31850; s.tmp_4 = if_charWidth_1_mk(s); - s.tmp_4.arg0 = globals.consoleFont___499179; + s.tmp_4.arg0 = globals.consoleFont___26503; 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 = 1006; s.pc = 17; return s.tmp_4; } + else { s.callLocIdx = 1114; s.pc = 17; return s.tmp_4; } } case 17: r0 = s.retval; @@ -12761,50 +13250,50 @@ switch (step) { s.tmp_1 = r0; r0 = (4 + s.tmp_1); s.tmp_0.arg2 = r0; - s.tmp_5 = r0 = s.top___503975; - r0 = (s.i___503981 * s.height___503970); + s.tmp_5 = r0 = s.top___31824; + r0 = (s.i___31830 * s.height___31819); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___499170; - s.tmp_0.arg5 = globals.consoleFont___499179; + s.tmp_0.arg4 = globals.consoleColor___26494; + s.tmp_0.arg5 = globals.consoleFont___26503; s.tmp_0.arg6 = undefined; - s.callLocIdx = 1007; s.pc = 16; return s.tmp_0; + s.callLocIdx = 1115; s.pc = 16; return s.tmp_0; case 16: r0 = s.retval; - s.tmp_0 = r0 = s.tOff___504001; - r0 = pxsim_String_.length(s.tab___504003); + s.tmp_0 = r0 = s.tOff___31850; + r0 = pxsim_String_.length(s.tab___31852); s.tmp_2 = r0; - r0 = (s.tmp_2 + s.padding___504005); + r0 = (s.tmp_2 + s.padding___31854); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); - s.tOff___504001 = (r0); - r0 = (s.unnamed1759___U7 + 1); - s.unnamed1759___U7 = (r0); + s.tOff___31850 = (r0); + r0 = (s.unnamed183___U7 + 1); + s.unnamed183___U7 = (r0); { step = 8; continue; } case 9: - s.unnamed1758___U6 = (undefined); + s.unnamed182___U6 = (undefined); { step = 11; continue; } case 10: - s.tmp_0 = helpers_imagePrint__P496526_mk(s); - s.tmp_0.arg0 = globals.screen___496568; - r0 = pxsim_Array__getAt(globals.consoleStrings___499171, s.i___503981); + s.tmp_0 = helpers_imagePrint__P23482_mk(s); + s.tmp_0.arg0 = globals.screen___23524; + r0 = pxsim_Array__getAt(globals.consoleStrings___26495, s.i___31830); s.tmp_0.arg1 = r0; s.tmp_0.arg2 = 4; - s.tmp_1 = r0 = s.top___503975; - r0 = (s.i___503981 * s.height___503970); + s.tmp_1 = r0 = s.top___31824; + r0 = (s.i___31830 * s.height___31819); s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.tmp_0.arg3 = r0; - s.tmp_0.arg4 = globals.consoleColor___499170; - s.tmp_0.arg5 = globals.consoleFont___499179; + s.tmp_0.arg4 = globals.consoleColor___26494; + s.tmp_0.arg5 = globals.consoleFont___26503; s.tmp_0.arg6 = undefined; - s.callLocIdx = 1008; s.pc = 18; return s.tmp_0; + s.callLocIdx = 1116; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 11: - r0 = (s.i___503981 + 1); - s.i___503981 = (r0); + r0 = (s.i___31830 + 1); + s.i___31830 = (r0); { step = 7; continue; } case 12: case 13: @@ -12812,12 +13301,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_draw__P497424.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} +game_consoleOverlay_draw__P24503.info = {"start":1364,"length":859,"line":44,"column":4,"endLine":61,"endColumn":5,"fileName":"pxt_modules/game/console.ts","functionName":"draw","argumentNames":[]} -function game_consoleOverlay_draw__P497424_mk(s) { +function game_consoleOverlay_draw__P24503_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_draw__P497424, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_draw__P24503, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12827,22 +13316,22 @@ function game_consoleOverlay_draw__P497424_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - height___503970: undefined, - top___503975: undefined, - i___503981: undefined, - t___503994: undefined, - tOff___504001: undefined, - tab___504003: undefined, - unnamed1758___U6: undefined, - unnamed1759___U7: undefined, - padding___504005: undefined, + height___31819: undefined, + top___31824: undefined, + i___31830: undefined, + t___31843: undefined, + tOff___31850: undefined, + tab___31852: undefined, + unnamed182___U6: undefined, + unnamed183___U7: undefined, + padding___31854: undefined, } } -function scene_systemMenu_isVisible__P497405(s) { +function scene_systemMenu_isVisible__P24484(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12852,7 +13341,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___499125); + r0 = pxsim_numops_toBoolDecr(globals.instance___26449); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -12862,12 +13351,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_isVisible__P497405.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} +scene_systemMenu_isVisible__P24484.info = {"start":13170,"length":62,"line":395,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"isVisible","argumentNames":[]} -function scene_systemMenu_isVisible__P497405_mk(s) { +function scene_systemMenu_isVisible__P24484_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_isVisible__P497405, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_isVisible__P24484, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -12878,7 +13367,7 @@ function scene_systemMenu_isVisible__P497405_mk(s) { -function helpers_imagePrint__P496526(s) { +function helpers_imagePrint__P23482(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -12888,31 +13377,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x0___504077 = undefined; - s.cp___504079 = undefined; - s.mult___504080 = undefined; - s.dataW___504085 = undefined; - s.dataH___504091 = undefined; - s.byteHeight___504097 = undefined; - s.charSize___504103 = undefined; - s.dataSize___504107 = undefined; - s.fontdata___504111 = undefined; - s.lastchar___504114 = undefined; - s.imgBuf___504121 = undefined; - s.xOffset___504145 = undefined; - s.yOffset___504146 = undefined; - s.ch___504161 = undefined; - s.l___504180 = undefined; - s.r___504181 = undefined; - s.off___504183 = undefined; - s.guess___504184 = undefined; - s.m___504203 = undefined; - s.v___504212 = undefined; - s.i___504268 = undefined; - s.j___504273 = undefined; - s.mask___504274 = undefined; - s.c___504275 = undefined; - s.n___504292 = undefined; + s.x0___31926 = undefined; + s.cp___31928 = undefined; + s.mult___31929 = undefined; + s.dataW___31934 = undefined; + s.dataH___31940 = undefined; + s.byteHeight___31946 = undefined; + s.charSize___31952 = undefined; + s.dataSize___31956 = undefined; + s.fontdata___31960 = undefined; + s.lastchar___31963 = undefined; + s.imgBuf___31970 = undefined; + s.xOffset___31994 = undefined; + s.yOffset___31995 = undefined; + s.ch___32010 = undefined; + s.l___32029 = undefined; + s.r___32030 = undefined; + s.off___32032 = undefined; + s.guess___32033 = undefined; + s.m___32052 = undefined; + s.v___32061 = undefined; + s.i___32117 = undefined; + s.j___32122 = undefined; + s.mask___32123 = undefined; + s.c___32124 = undefined; + s.n___32141 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -12933,7 +13422,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P496513_mk(s); + s.tmp_2 = image_getFontForText__P23469_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 96; s.pc = 39; return s.tmp_2; case 39: @@ -12950,8 +13439,8 @@ switch (step) { s.arg4 = (1); case 3: case 4: - s.x0___504077 = (s.arg2); - s.cp___504079 = (0); + s.x0___31926 = (s.arg2); + s.cp___31928 = (0); s.tmp_1 = if_multiplier_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -12985,7 +13474,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_3 = r0; - s.mult___504080 = (s.tmp_3); + s.mult___31929 = (s.tmp_3); s.tmp_1 = if_charWidth_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -12999,8 +13488,8 @@ switch (step) { case 42: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___504080); - s.dataW___504085 = (r0); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___31929); + s.dataW___31934 = (r0); s.tmp_1 = if_charHeight_1_mk(s); s.tmp_1.arg0 = s.arg5; if (!s.tmp_1.arg0.vtable.iface) { @@ -13014,16 +13503,16 @@ switch (step) { case 43: r0 = s.retval; s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___504080); - s.dataH___504091 = (r0); - r0 = (s.dataH___504091 + 7); + r0 = pxsim.Math_.idiv(s.tmp_0, s.mult___31929); + s.dataH___31940 = (r0); + r0 = (s.dataH___31940 + 7); s.tmp_0 = r0; r0 = (s.tmp_0 >> 3); - s.byteHeight___504097 = (r0); - r0 = (s.byteHeight___504097 * s.dataW___504085); - s.charSize___504103 = (r0); - r0 = (2 + s.charSize___504103); - s.dataSize___504107 = (r0); + s.byteHeight___31946 = (r0); + r0 = (s.byteHeight___31946 * s.dataW___31934); + s.charSize___31952 = (r0); + r0 = (2 + s.charSize___31952); + s.dataSize___31956 = (r0); s.tmp_0 = if_data_1_mk(s); s.tmp_0.arg0 = s.arg5; if (!s.tmp_0.arg0.vtable.iface) { @@ -13036,44 +13525,44 @@ switch (step) { } case 44: r0 = s.retval; - s.fontdata___504111 = (r0); - r0 = pxsim.BufferMethods.length(s.fontdata___504111); + s.fontdata___31960 = (r0); + r0 = pxsim.BufferMethods.length(s.fontdata___31960); s.tmp_1 = r0; - r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___504107); + r0 = pxsim.Math_.idiv(s.tmp_1, s.dataSize___31956); s.tmp_0 = r0; r0 = (s.tmp_0 - 1); - s.lastchar___504114 = (r0); - r0 = (s.mult___504080 == 1); + s.lastchar___31963 = (r0); + r0 = (s.mult___31929 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = (8 + s.charSize___504103); + r0 = (8 + s.charSize___31952); s.tmp_1 = r0; r0 = pxsim.control.createBuffer(s.tmp_1); - s.imgBuf___504121 = (r0); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___504121, 0, 135); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___504121, 1, 1); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___504121, 2, s.dataW___504085); - r0 = pxsim.BufferMethods.setByte(s.imgBuf___504121, 4, s.dataH___504091); + s.imgBuf___31970 = (r0); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___31970, 0, 135); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___31970, 1, 1); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___31970, 2, s.dataW___31934); + r0 = pxsim.BufferMethods.setByte(s.imgBuf___31970, 4, s.dataH___31940); case 7: case 8: case 9: - s.tmp_1 = r0 = s.cp___504079; + s.tmp_1 = r0 = s.cp___31928; 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___504145 = (0); - s.yOffset___504146 = (0); + s.xOffset___31994 = (0); + s.yOffset___31995 = (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___504079; + s.tmp_1 = r0 = s.cp___31928; r0 = pxsim_Array__length(s.arg6); s.tmp_2 = r0; r0 = (s.tmp_1 < s.tmp_2); @@ -13083,7 +13572,7 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } s.tmp_4 = if_xOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___504079); + r0 = pxsim_Array__getAt(s.arg6, s.cp___31928); s.tmp_4.arg0 = r0; if (!s.tmp_4.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_4.arg0, "xOffset"); @@ -13095,9 +13584,9 @@ switch (step) { } case 45: r0 = s.retval; - s.xOffset___504145 = (r0); + s.xOffset___31994 = (r0); s.tmp_0 = if_yOffset_1_mk(s); - r0 = pxsim_Array__getAt(s.arg6, s.cp___504079); + r0 = pxsim_Array__getAt(s.arg6, s.cp___31928); s.tmp_0.arg0 = r0; if (!s.tmp_0.arg0.vtable.iface) { s.retval = pxsim_pxtrt.mapGetByString(s.tmp_0.arg0, "yOffset"); @@ -13109,15 +13598,15 @@ switch (step) { } case 46: r0 = s.retval; - s.yOffset___504146 = (r0); + s.yOffset___31995 = (r0); case 12: case 13: - s.tmp_0 = r0 = s.cp___504079; + s.tmp_0 = r0 = s.cp___31928; r0 = (s.tmp_0 + 1); - s.cp___504079 = (r0); + s.cp___31928 = (r0); r0 = pxsim_String_.charCodeAt(s.arg1, s.tmp_0); - s.ch___504161 = (r0); - r0 = (s.ch___504161 == 10); + s.ch___32010 = (r0); + r0 = (s.ch___32010 == 10); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } @@ -13139,89 +13628,89 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); s.arg3 = (r0); - s.arg2 = (s.x0___504077); + s.arg2 = (s.x0___31926); case 14: case 15: - r0 = (s.ch___504161 < 32); + r0 = (s.ch___32010 < 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___504180 = (0); - s.r___504181 = (s.lastchar___504114); - s.off___504183 = (0); - r0 = (s.ch___504161 - 32); + s.l___32029 = (0); + s.r___32030 = (s.lastchar___31963); + s.off___32032 = (0); + r0 = (s.ch___32010 - 32); s.tmp_0 = r0; - r0 = (s.tmp_0 * s.dataSize___504107); - s.guess___504184 = (r0); - r0 = pxsim.BufferMethods.getNumber(s.fontdata___504111, 4, s.guess___504184); + r0 = (s.tmp_0 * s.dataSize___31956); + s.guess___32033 = (r0); + r0 = pxsim.BufferMethods.getNumber(s.fontdata___31960, 4, s.guess___32033); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.ch___504161); + r0 = (s.tmp_1 == s.ch___32010); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.off___504183 = (s.guess___504184); + s.off___32032 = (s.guess___32033); { step = 25; continue; } case 18: case 19: - r0 = (s.l___504180 <= s.r___504181); + r0 = (s.l___32029 <= s.r___32030); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 24; continue; } - s.tmp_1 = r0 = s.l___504180; - r0 = (s.r___504181 - s.l___504180); + s.tmp_1 = r0 = s.l___32029; + r0 = (s.r___32030 - s.l___32029); s.tmp_3 = r0; r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; r0 = (s.tmp_1 + s.tmp_2); - s.m___504203 = (r0); - s.tmp_0 = r0 = s.fontdata___504111; - r0 = (s.m___504203 * s.dataSize___504107); + s.m___32052 = (r0); + s.tmp_0 = r0 = s.fontdata___31960; + r0 = (s.m___32052 * s.dataSize___31956); s.tmp_1 = r0; r0 = pxsim.BufferMethods.getNumber(s.tmp_0, 4, s.tmp_1); - s.v___504212 = (r0); - r0 = (s.v___504212 == s.ch___504161); + s.v___32061 = (r0); + r0 = (s.v___32061 == s.ch___32010); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.m___504203 * s.dataSize___504107); - s.off___504183 = (r0); + r0 = (s.m___32052 * s.dataSize___31956); + s.off___32032 = (r0); { step = 24; continue; } case 20: case 21: - r0 = (s.v___504212 < s.ch___504161); + r0 = (s.v___32061 < s.ch___32010); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = (s.m___504203 + 1); - s.l___504180 = (r0); + r0 = (s.m___32052 + 1); + s.l___32029 = (r0); { step = 23; continue; } case 22: - r0 = (s.m___504203 - 1); - s.r___504181 = (r0); + r0 = (s.m___32052 - 1); + s.r___32030 = (r0); case 23: { step = 19; continue; } case 24: case 25: - r0 = (s.mult___504080 == 1); + r0 = (s.mult___31929 == 1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_1 = r0 = s.imgBuf___504121; - s.tmp_3 = r0 = s.fontdata___504111; - r0 = (s.off___504183 + 2); + s.tmp_1 = r0 = s.imgBuf___31970; + s.tmp_3 = r0 = s.fontdata___31960; + r0 = (s.off___32032 + 2); s.tmp_4 = r0; - r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___504103); + r0 = pxsim.BufferMethods.slice(s.tmp_3, s.tmp_4, s.charSize___31952); s.tmp_2 = r0; r0 = pxsim.BufferMethods.write(s.tmp_1, 8, s.tmp_2); - s.tmp_0 = helpers_imageDrawIcon__P496493_mk(s); + s.tmp_0 = helpers_imageDrawIcon__P23449_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.imgBuf___504121; - r0 = (s.arg2 + s.xOffset___504145); + s.tmp_0.arg1 = s.imgBuf___31970; + r0 = (s.arg2 + s.xOffset___31994); s.tmp_0.arg2 = r0; - r0 = (s.arg3 + s.yOffset___504146); + r0 = (s.arg3 + s.yOffset___31995); s.tmp_0.arg3 = r0; s.tmp_0.arg4 = s.arg4; s.callLocIdx = 105; s.pc = 48; return s.tmp_0; @@ -13245,88 +13734,88 @@ switch (step) { s.arg2 = (r0); { step = 37; continue; } case 26: - r0 = (s.off___504183 + 2); - s.off___504183 = (r0); - s.i___504268 = (0); + r0 = (s.off___32032 + 2); + s.off___32032 = (r0); + s.i___32117 = (0); case 27: - r0 = (s.i___504268 < s.dataW___504085); + r0 = (s.i___32117 < s.dataW___31934); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 36; continue; } - s.j___504273 = (0); - s.mask___504274 = (1); - s.tmp_0 = r0 = s.off___504183; + s.j___32122 = (0); + s.mask___32123 = (1); + s.tmp_0 = r0 = s.off___32032; r0 = (s.tmp_0 + 1); - s.off___504183 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___504111, s.tmp_0); - s.c___504275 = (r0); + s.off___32032 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___31960, s.tmp_0); + s.c___32124 = (r0); case 28: - r0 = (s.j___504273 < s.dataH___504091); + r0 = (s.j___32122 < s.dataH___31940); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 35; continue; } - r0 = (s.mask___504274 == 256); + r0 = (s.mask___32123 == 256); s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 29; continue; } - s.tmp_2 = r0 = s.off___504183; + s.tmp_2 = r0 = s.off___32032; r0 = (s.tmp_2 + 1); - s.off___504183 = (r0); - r0 = pxsim.BufferMethods.getByte(s.fontdata___504111, s.tmp_2); - s.c___504275 = (r0); - s.mask___504274 = (1); + s.off___32032 = (r0); + r0 = pxsim.BufferMethods.getByte(s.fontdata___31960, s.tmp_2); + s.c___32124 = (r0); + s.mask___32123 = (1); case 29: case 30: - s.n___504292 = (0); + s.n___32141 = (0); case 31: - r0 = (s.c___504275 & s.mask___504274); + r0 = (s.c___32124 & s.mask___32123); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 32; continue; } - r0 = (s.n___504292 + 1); - s.n___504292 = (r0); - r0 = (s.mask___504274 << 1); - s.mask___504274 = (r0); + r0 = (s.n___32141 + 1); + s.n___32141 = (r0); + r0 = (s.mask___32123 << 1); + s.mask___32123 = (r0); { step = 31; continue; } case 32: - r0 = pxsim_numops_toBoolDecr(s.n___504292); + r0 = pxsim_numops_toBoolDecr(s.n___32141); if (!r0) { step = 33; continue; } - s.tmp_0 = helpers_imageFillRect__P496494_mk(s); + s.tmp_0 = helpers_imageFillRect__P23450_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg2; - r0 = (s.xOffset___504145 * s.mult___504080); + r0 = (s.xOffset___31994 * s.mult___31929); 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___504273 + s.yOffset___504146); + r0 = (s.j___32122 + s.yOffset___31995); s.tmp_5 = r0; - r0 = (s.tmp_5 * s.mult___504080); + r0 = (s.tmp_5 * s.mult___31929); s.tmp_4 = r0; r0 = (s.tmp_3 + s.tmp_4); s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.mult___504080; - r0 = (s.mult___504080 * s.n___504292); + s.tmp_0.arg3 = s.mult___31929; + r0 = (s.mult___31929 * s.n___32141); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = s.arg4; s.callLocIdx = 107; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - r0 = (s.j___504273 + s.n___504292); - s.j___504273 = (r0); + r0 = (s.j___32122 + s.n___32141); + s.j___32122 = (r0); { step = 34; continue; } case 33: - r0 = (s.mask___504274 << 1); - s.mask___504274 = (r0); - r0 = (s.j___504273 + 1); - s.j___504273 = (r0); + r0 = (s.mask___32123 << 1); + s.mask___32123 = (r0); + r0 = (s.j___32122 + 1); + s.j___32122 = (r0); case 34: { step = 28; continue; } case 35: - r0 = (s.arg2 + s.mult___504080); + r0 = (s.arg2 + s.mult___31929); s.arg2 = (r0); - r0 = (s.i___504268 + 1); - s.i___504268 = (r0); + r0 = (s.i___32117 + 1); + s.i___32117 = (r0); { step = 27; continue; } case 36: case 37: @@ -13336,12 +13825,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imagePrint__P496526.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} +helpers_imagePrint__P23482.info = {"start":15326,"length":3300,"line":213,"column":4,"endLine":306,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"imagePrint","argumentNames":["img","text","x","y","color","font","offsets"]} -function helpers_imagePrint__P496526_mk(s) { +function helpers_imagePrint__P23482_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrint__P496526, depth: s.depth + 1, + parent: s, fn: helpers_imagePrint__P23482, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13349,31 +13838,31 @@ function helpers_imagePrint__P496526_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - x0___504077: undefined, - cp___504079: undefined, - mult___504080: undefined, - dataW___504085: undefined, - dataH___504091: undefined, - byteHeight___504097: undefined, - charSize___504103: undefined, - dataSize___504107: undefined, - fontdata___504111: undefined, - lastchar___504114: undefined, - imgBuf___504121: undefined, - xOffset___504145: undefined, - yOffset___504146: undefined, - ch___504161: undefined, - l___504180: undefined, - r___504181: undefined, - off___504183: undefined, - guess___504184: undefined, - m___504203: undefined, - v___504212: undefined, - i___504268: undefined, - j___504273: undefined, - mask___504274: undefined, - c___504275: undefined, - n___504292: undefined, + x0___31926: undefined, + cp___31928: undefined, + mult___31929: undefined, + dataW___31934: undefined, + dataH___31940: undefined, + byteHeight___31946: undefined, + charSize___31952: undefined, + dataSize___31956: undefined, + fontdata___31960: undefined, + lastchar___31963: undefined, + imgBuf___31970: undefined, + xOffset___31994: undefined, + yOffset___31995: undefined, + ch___32010: undefined, + l___32029: undefined, + r___32030: undefined, + off___32032: undefined, + guess___32033: undefined, + m___32052: undefined, + v___32061: undefined, + i___32117: undefined, + j___32122: undefined, + mask___32123: undefined, + c___32124: undefined, + n___32141: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -13387,7 +13876,7 @@ function helpers_imagePrint__P496526_mk(s) { -function image_getFontForText__P496513(s) { +function image_getFontForText__P23469(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13397,52 +13886,52 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___504387 = undefined; + s.i___32236 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.i___504387 = (0); + s.i___32236 = (0); case 1: - s.tmp_1 = r0 = s.i___504387; + s.tmp_1 = r0 = s.i___32236; 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___504387); + r0 = pxsim_String_.charCodeAt(s.arg0, s.i___32236); 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___496512; + r0 = globals.font12___23468; { step = 5; continue; } case 2: case 3: - r0 = (s.i___504387 + 1); - s.i___504387 = (r0); + r0 = (s.i___32236 + 1); + s.i___32236 = (r0); { step = 1; continue; } case 4: - r0 = globals.font8___496511; + r0 = globals.font8___23467; case 5: return leave(s, r0) default: oops() } } } -image_getFontForText__P496513.info = {"start":11713,"length":259,"line":136,"column":4,"endLine":143,"endColumn":5,"fileName":"pxt_modules/screen/text.ts","functionName":"getFontForText","argumentNames":["text"]} +image_getFontForText__P23469.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__P496513_mk(s) { +function image_getFontForText__P23469_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_getFontForText__P496513, depth: s.depth + 1, + parent: s, fn: image_getFontForText__P23469, depth: s.depth + 1, pc: 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___504387: undefined, + i___32236: undefined, arg0: undefined, } } @@ -13450,7 +13939,7 @@ function image_getFontForText__P496513_mk(s) { -function helpers_imageFillRect__P496494(s) { +function helpers_imageFillRect__P23450(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13470,14 +13959,14 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P498612_mk(s); + s.tmp_2 = helpers_pack__P25925_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = s.arg2; s.callLocIdx = 78; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P498612_mk(s); + s.tmp_4 = helpers_pack__P25925_mk(s); s.tmp_4.arg0 = s.arg3; s.tmp_4.arg1 = s.arg4; s.callLocIdx = 79; s.pc = 2; return s.tmp_4; @@ -13489,12 +13978,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageFillRect__P496494.info = {"start":3650,"length":159,"line":131,"column":4,"endLine":133,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageFillRect","argumentNames":["img","x","y","w","h","c"]} +helpers_imageFillRect__P23450.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 helpers_imageFillRect__P496494_mk(s) { +function helpers_imageFillRect__P23450_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageFillRect__P496494, depth: s.depth + 1, + parent: s, fn: helpers_imageFillRect__P23450, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13513,7 +14002,7 @@ function helpers_imageFillRect__P496494_mk(s) { -function helpers_pack__P498612(s) { +function helpers_pack__P25925(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13528,7 +14017,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_2 = Math_clamp__P494878_mk(s); + s.tmp_2 = Math_clamp__P21822_mk(s); s.tmp_2.arg0 = -30000; s.tmp_2.arg1 = 30000; r0 = (s.arg0 | 0); @@ -13539,7 +14028,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_1 & 65535); s.tmp_0 = r0; - s.tmp_5 = Math_clamp__P494878_mk(s); + s.tmp_5 = Math_clamp__P21822_mk(s); s.tmp_5.arg0 = -30000; s.tmp_5.arg1 = 30000; r0 = (s.arg1 | 0); @@ -13554,12 +14043,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_pack__P498612.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__P25925.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__P498612_mk(s) { +function helpers_pack__P25925_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_pack__P498612, depth: s.depth + 1, + parent: s, fn: helpers_pack__P25925, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13575,7 +14064,7 @@ function helpers_pack__P498612_mk(s) { -function helpers_imageDrawIcon__P496493(s) { +function helpers_imageDrawIcon__P23449(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13595,7 +14084,7 @@ switch (step) { } s.tmp_0 = r0 = s.arg0; s.tmp_1 = r0 = s.arg1; - s.tmp_3 = helpers_pack__P498612_mk(s); + s.tmp_3 = helpers_pack__P25925_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg3; s.callLocIdx = 77; s.pc = 1; return s.tmp_3; @@ -13607,12 +14096,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawIcon__P496493.info = {"start":3500,"length":145,"line":128,"column":4,"endLine":130,"endColumn":5,"fileName":"pxt_modules/screen/image.ts","functionName":"imageDrawIcon","argumentNames":["img","icon","x","y","c"]} +helpers_imageDrawIcon__P23449.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 helpers_imageDrawIcon__P496493_mk(s) { +function helpers_imageDrawIcon__P23449_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawIcon__P496493, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawIcon__P23449, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13629,7 +14118,7 @@ function helpers_imageDrawIcon__P496493_mk(s) { -function helpers_stringSplit__P494873(s) { +function helpers_stringSplit__P21817(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13639,15 +14128,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.A___504410 = undefined; - s.lim___504412 = undefined; - s.s___504428 = undefined; - s.p___504431 = undefined; - s.R___504432 = undefined; - s.z___504446 = undefined; - s.T___504459 = undefined; - s.q___504460 = undefined; - s.e___504466 = undefined; + s.A___32259 = undefined; + s.lim___32261 = undefined; + s.s___32277 = undefined; + s.p___32280 = undefined; + s.R___32281 = undefined; + s.z___32295 = undefined; + s.T___32308 = undefined; + s.q___32309 = undefined; + s.e___32315 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -13655,36 +14144,36 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.A___504410 = (r0); - s.lim___504412 = (0); + s.A___32259 = (r0); + s.lim___32261 = (0); r0 = (s.arg2 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = (536870912 - 1); - s.lim___504412 = (r0); + s.lim___32261 = (r0); { step = 4; continue; } case 1: r0 = (s.arg2 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.lim___504412 = (0); + s.lim___32261 = (0); { step = 3; continue; } case 2: r0 = (s.arg2 | 0); - s.lim___504412 = (r0); + s.lim___32261 = (r0); case 3: case 4: r0 = pxsim_String_.length(s.arg0); - s.s___504428 = (r0); - s.p___504431 = (0); - s.R___504432 = (s.arg1); - r0 = (s.lim___504412 == 0); + s.s___32277 = (r0); + s.p___32280 = (0); + s.R___32281 = (s.arg1); + r0 = (s.lim___32261 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - r0 = s.A___504410; + r0 = s.A___32259; { step = 21; continue; } case 5: case 6: @@ -13692,123 +14181,123 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array_.setAt(s.A___504410, 0, s.arg0); - r0 = s.A___504410; + r0 = pxsim_Array_.setAt(s.A___32259, 0, s.arg0); + r0 = s.A___32259; { step = 21; continue; } case 7: case 8: - r0 = (s.s___504428 == 0); + r0 = (s.s___32277 == 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - s.tmp_1 = helpers_splitMatch__P498461_mk(s); + s.tmp_1 = helpers_splitMatch__P25769_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = 0; - s.tmp_1.arg2 = s.R___504432; + s.tmp_1.arg2 = s.R___32281; s.callLocIdx = 10; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - s.z___504446 = (r0); - r0 = (s.z___504446 > -1); + s.z___32295 = (r0); + r0 = (s.z___32295 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 9; continue; } - r0 = s.A___504410; + r0 = s.A___32259; { step = 21; continue; } case 9: case 10: - r0 = pxsim_Array_.setAt(s.A___504410, 0, s.arg0); - r0 = s.A___504410; + r0 = pxsim_Array_.setAt(s.A___32259, 0, s.arg0); + r0 = s.A___32259; { step = 21; continue; } case 11: case 12: - s.q___504460 = (s.p___504431); + s.q___32309 = (s.p___32280); case 13: - r0 = (s.q___504460 != s.s___504428); + r0 = (s.q___32309 != s.s___32277); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - s.tmp_1 = helpers_splitMatch__P498461_mk(s); + s.tmp_1 = helpers_splitMatch__P25769_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.q___504460; - s.tmp_1.arg2 = s.R___504432; + s.tmp_1.arg1 = s.q___32309; + s.tmp_1.arg2 = s.R___32281; s.callLocIdx = 11; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - s.e___504466 = (r0); - r0 = (s.e___504466 < 0); + s.e___32315 = (r0); + r0 = (s.e___32315 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.q___504460 + 1); - s.q___504460 = (r0); + r0 = (s.q___32309 + 1); + s.q___32309 = (r0); { step = 19; continue; } case 14: - r0 = (s.e___504466 == s.p___504431); + r0 = (s.e___32315 == s.p___32280); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - r0 = (s.q___504460 + 1); - s.q___504460 = (r0); + r0 = (s.q___32309 + 1); + s.q___32309 = (r0); { step = 18; continue; } case 15: - s.tmp_0 = helpers_stringSlice__P494871_mk(s); + s.tmp_0 = helpers_stringSlice__P21814_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___504431; - s.tmp_0.arg2 = s.q___504460; + s.tmp_0.arg1 = s.p___32280; + s.tmp_0.arg2 = s.q___32309; s.callLocIdx = 12; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.T___504459 = (r0); - r0 = pxsim_Array__push(s.A___504410, s.T___504459); - r0 = pxsim_Array__length(s.A___504410); + s.T___32308 = (r0); + r0 = pxsim_Array__push(s.A___32259, s.T___32308); + r0 = pxsim_Array__length(s.A___32259); s.tmp_1 = r0; - r0 = (s.tmp_1 == s.lim___504412); + r0 = (s.tmp_1 == s.lim___32261); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 16; continue; } - r0 = s.A___504410; + r0 = s.A___32259; { step = 21; continue; } case 16: case 17: - s.p___504431 = (s.e___504466); - s.q___504460 = (s.p___504431); + s.p___32280 = (s.e___32315); + s.q___32309 = (s.p___32280); case 18: case 19: { step = 13; continue; } case 20: - s.tmp_0 = helpers_stringSlice__P494871_mk(s); + s.tmp_0 = helpers_stringSlice__P21814_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.p___504431; - s.tmp_0.arg2 = s.q___504460; + s.tmp_0.arg1 = s.p___32280; + s.tmp_0.arg2 = s.q___32309; s.callLocIdx = 13; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.T___504459 = (r0); - r0 = pxsim_Array__push(s.A___504410, s.T___504459); - r0 = s.A___504410; + s.T___32308 = (r0); + r0 = pxsim_Array__push(s.A___32259, s.T___32308); + r0 = s.A___32259; case 21: return leave(s, r0) default: oops() } } } -helpers_stringSplit__P494873.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_stringSplit__P21817.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 helpers_stringSplit__P494873_mk(s) { +function helpers_stringSplit__P21817_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSplit__P494873, depth: s.depth + 1, + parent: s, fn: helpers_stringSplit__P21817, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - A___504410: undefined, - lim___504412: undefined, - s___504428: undefined, - p___504431: undefined, - R___504432: undefined, - z___504446: undefined, - T___504459: undefined, - q___504460: undefined, - e___504466: undefined, + A___32259: undefined, + lim___32261: undefined, + s___32277: undefined, + p___32280: undefined, + R___32281: undefined, + z___32295: undefined, + T___32308: undefined, + q___32309: undefined, + e___32315: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -13818,7 +14307,7 @@ function helpers_stringSplit__P494873_mk(s) { -function helpers_splitMatch__P498461(s) { +function helpers_splitMatch__P25769(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13828,9 +14317,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___504546 = undefined; - s.s___504549 = undefined; - s.i___504559 = undefined; + s.r___32395 = undefined; + s.s___32398 = undefined; + s.i___32408 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -13838,12 +14327,12 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_String_.length(s.arg2); - s.r___504546 = (r0); + s.r___32395 = (r0); r0 = pxsim_String_.length(s.arg0); - s.s___504549 = (r0); - r0 = (s.arg1 + s.r___504546); + s.s___32398 = (r0); + r0 = (s.arg1 + s.r___32395); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.s___504549); + r0 = (s.tmp_1 > s.s___32398); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -13851,18 +14340,18 @@ switch (step) { { step = 7; continue; } case 1: case 2: - s.i___504559 = (0); + s.i___32408 = (0); case 3: - r0 = (s.i___504559 < s.r___504546); + r0 = (s.i___32408 < s.r___32395); 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___504559); + r0 = (s.arg1 + s.i___32408); 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___504559); + r0 = pxsim_String_.charAt(s.arg2, s.i___32408); s.tmp_5 = r0; r0 = (s.tmp_2 != s.tmp_5); s.tmp_1 = r0; @@ -13872,21 +14361,21 @@ switch (step) { { step = 7; continue; } case 4: case 5: - r0 = (s.i___504559 + 1); - s.i___504559 = (r0); + r0 = (s.i___32408 + 1); + s.i___32408 = (r0); { step = 3; continue; } case 6: - r0 = (s.arg1 + s.r___504546); + r0 = (s.arg1 + s.r___32395); case 7: return leave(s, r0) default: oops() } } } -helpers_splitMatch__P498461.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"]} +helpers_splitMatch__P25769.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 helpers_splitMatch__P498461_mk(s) { +function helpers_splitMatch__P25769_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_splitMatch__P498461, depth: s.depth + 1, + parent: s, fn: helpers_splitMatch__P25769, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -13894,9 +14383,9 @@ function helpers_splitMatch__P498461_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - r___504546: undefined, - s___504549: undefined, - i___504559: undefined, + r___32395: undefined, + s___32398: undefined, + i___32408: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -13906,7 +14395,7 @@ function helpers_splitMatch__P498461_mk(s) { -function helpers_stringSlice__P494871(s) { +function helpers_stringSlice__P21814(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -13916,7 +14405,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___504511 = undefined; + s.len___32360 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -13924,13 +14413,13 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_String_.length(s.arg0); - s.len___504511 = (r0); + s.len___32360 = (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__P494881_mk(s); - r0 = (s.len___504511 + s.arg1); + s.tmp_1 = Math_max__P21825_mk(s); + r0 = (s.len___32360 + s.arg1); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; s.callLocIdx = 9; s.pc = 9; return s.tmp_1; @@ -13943,7 +14432,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.arg2 = (s.len___504511); + s.arg2 = (s.len___32360); { step = 6; continue; } case 3: r0 = (s.arg2 === null); @@ -13958,7 +14447,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = (s.len___504511 + s.arg2); + r0 = (s.len___32360 + s.arg2); s.arg2 = (r0); case 7: case 8: @@ -13970,17 +14459,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_stringSlice__P494871.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"]} +helpers_stringSlice__P21814.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 helpers_stringSlice__P494871_mk(s) { +function helpers_stringSlice__P21814_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_stringSlice__P494871, depth: s.depth + 1, + parent: s, fn: helpers_stringSlice__P21814, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___504511: undefined, + len___32360: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -13990,7 +14479,7 @@ function helpers_stringSlice__P494871_mk(s) { -function scene_Scene_render__P497216(s) { +function scene_Scene_render__P24294(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14000,15 +14489,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___504643 = undefined; - s.unnamed1756___U1 = undefined; - s.unnamed1757___U2 = undefined; + s.s___32492 = undefined; + s.unnamed180___U1 = undefined; + s.unnamed181___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C497189_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C24266_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -14039,18 +14528,18 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 5; continue; } - s.tmp_3 = scene_Scene_render__P497216_mk(s); + s.tmp_3 = scene_Scene_render__P24294_mk(s); r0 = s.arg0.fields["previousScene"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 796; s.pc = 12; return s.tmp_3; + s.callLocIdx = 906; s.pc = 12; return s.tmp_3; case 12: r0 = s.retval; { step = 6; continue; } case 5: - s.tmp_0 = scene_Background_draw__P497051_mk(s); + s.tmp_0 = scene_Background_draw__P24104_mk(s); r0 = s.arg0.fields["background"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 797; s.pc = 13; return s.tmp_0; + s.callLocIdx = 907; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 6: @@ -14060,11 +14549,11 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_2 = helpers_arraySort__P494857_mk(s); + s.tmp_2 = helpers_arraySort__P21800_mk(s); r0 = s.arg0.fields["allSprites"]; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P504620; - s.callLocIdx = 802; s.pc = 14; return s.tmp_2; + s.tmp_2.arg1 = scene_Scene_render_inline__P32469; + s.callLocIdx = 912; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -14075,38 +14564,38 @@ switch (step) { r0 = (s.tmp_0).fields["flags"] = (s.tmp_1); case 7: case 8: - s.s___504643 = (undefined); + s.s___32492 = (undefined); r0 = s.arg0.fields["allSprites"]; - s.unnamed1756___U1 = (r0); - s.unnamed1757___U2 = (0); + s.unnamed180___U1 = (r0); + s.unnamed181___U2 = (0); case 9: - s.tmp_0 = r0 = s.unnamed1757___U2; - r0 = pxsim_Array__length(s.unnamed1756___U1); + s.tmp_0 = r0 = s.unnamed181___U2; + r0 = pxsim_Array__length(s.unnamed180___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 10; continue; } - r0 = pxsim_Array__getAt(s.unnamed1756___U1, s.unnamed1757___U2); - s.s___504643 = (r0); + r0 = pxsim_Array__getAt(s.unnamed180___U1, s.unnamed181___U2); + s.s___32492 = (r0); s.tmp_2 = if___draw_2_mk(s); - s.tmp_2.arg0 = s.s___504643; + s.tmp_2.arg0 = s.s___32492; 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 = 803; s.pc = 15; return s.tmp_2; + s.callLocIdx = 913; 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 = 803; s.pc = 15; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 803; s.pc = 15; return s.tmp_2;; } - else { s.callLocIdx = 803; s.pc = 15; return s.tmp_2; } + if (s.tmp_2.fn == null) { setupLambda(s.tmp_2, s.tmp_2.arg0.fields["__draw"], 2); s.callLocIdx = 913; s.pc = 15; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 913; s.pc = 15; return s.tmp_2;; } + else { s.callLocIdx = 913; s.pc = 15; return s.tmp_2; } } case 15: r0 = s.retval; - r0 = (s.unnamed1757___U2 + 1); - s.unnamed1757___U2 = (r0); + r0 = (s.unnamed181___U2 + 1); + s.unnamed181___U2 = (r0); { step = 9; continue; } case 10: - s.unnamed1756___U1 = (undefined); + s.unnamed180___U1 = (undefined); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["flags"]; s.tmp_2 = r0; @@ -14118,21 +14607,21 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_render__P497216.info = {"start":7844,"length":917,"line":221,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} +scene_Scene_render__P24294.info = {"start":7954,"length":917,"line":223,"column":8,"endLine":247,"endColumn":9,"fileName":"pxt_modules/game/scene.ts","functionName":"render","argumentNames":["this"]} -function scene_Scene_render__P497216_mk(s) { +function scene_Scene_render__P24294_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_render__P497216, depth: s.depth + 1, + parent: s, fn: scene_Scene_render__P24294, depth: s.depth + 1, pc: 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___504643: undefined, - unnamed1756___U1: undefined, - unnamed1757___U2: undefined, + s___32492: undefined, + unnamed180___U1: undefined, + unnamed181___U2: undefined, arg0: undefined, } } @@ -14140,7 +14629,7 @@ function scene_Scene_render__P497216_mk(s) { -function inline__P504620(s) { +function scene_Scene_render_inline__P32469(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14163,7 +14652,7 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["z"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["z"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 798; s.pc = 3; return s.tmp_2; } + else { s.callLocIdx = 908; s.pc = 3; return s.tmp_2; } } case 3: r0 = s.retval; @@ -14176,7 +14665,7 @@ switch (step) { s.tmp_4.fn = s.tmp_4.arg0.vtable.iface["z"]; if (s.tmp_4.fn == null) { s.retval = s.tmp_4.arg0.fields["z"]; } else if (!s.tmp_4.fn.isGetter) { s.retval = bind(s.tmp_4); } - else { s.callLocIdx = 799; s.pc = 4; return s.tmp_4; } + else { s.callLocIdx = 909; s.pc = 4; return s.tmp_4; } } case 4: r0 = s.retval; @@ -14196,7 +14685,7 @@ switch (step) { s.tmp_6.fn = s.tmp_6.arg0.vtable.iface["id"]; if (s.tmp_6.fn == null) { s.retval = s.tmp_6.arg0.fields["id"]; } else if (!s.tmp_6.fn.isGetter) { s.retval = bind(s.tmp_6); } - else { s.callLocIdx = 800; s.pc = 5; return s.tmp_6; } + else { s.callLocIdx = 910; s.pc = 5; return s.tmp_6; } } case 5: r0 = s.retval; @@ -14209,7 +14698,7 @@ switch (step) { s.tmp_8.fn = s.tmp_8.arg0.vtable.iface["id"]; if (s.tmp_8.fn == null) { s.retval = s.tmp_8.arg0.fields["id"]; } else if (!s.tmp_8.fn.isGetter) { s.retval = bind(s.tmp_8); } - else { s.callLocIdx = 801; s.pc = 6; return s.tmp_8; } + else { s.callLocIdx = 911; s.pc = 6; return s.tmp_8; } } case 6: r0 = s.retval; @@ -14222,12 +14711,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P504620.info = {"start":8422,"length":52,"line":235,"column":37,"endLine":235,"endColumn":89,"fileName":"pxt_modules/game/scene.ts","functionName":"inline","argumentNames":["a","b"]} +scene_Scene_render_inline__P32469.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 inline__P504620_mk(s) { +function scene_Scene_render_inline__P32469_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P504620, depth: s.depth + 1, + parent: s, fn: scene_Scene_render_inline__P32469, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14247,7 +14736,7 @@ function inline__P504620_mk(s) { -function scene_Background_draw__P497051(s) { +function scene_Background_draw__P24104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14262,31 +14751,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C497042_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C24095_VT)) failedCast(r0); r0 = s.arg0.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.fill(globals.screen___496568, s.tmp_0); + r0 = pxsim_ImageMethods.fill(globals.screen___23524, s.tmp_0); r0 = s.arg0.fields["_image"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["_image"]; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___496568, s.tmp_1, 0, 0); + r0 = pxsim_ImageMethods.drawTransparentImage(globals.screen___23524, s.tmp_1, 0, 0); case 1: case 2: r0 = s.arg0.fields["_layers"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P504675); + r0 = pxsim_pxtcore_mkAction(1, scene_Background_draw_inline__P32524); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P494861_mk(s); + s.tmp_2 = helpers_arrayForEach__P21804_mk(s); r0 = s.arg0.fields["_layers"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = s.tmp_1; - s.callLocIdx = 673; s.pc = 5; return s.tmp_2; + s.callLocIdx = 775; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -14295,12 +14784,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Background_draw__P497051.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} +scene_Background_draw__P24104.info = {"start":1166,"length":545,"line":48,"column":8,"endLine":60,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this"]} -function scene_Background_draw__P497051_mk(s) { +function scene_Background_draw__P24104_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_draw__P497051, depth: s.depth + 1, + parent: s, fn: scene_Background_draw__P24104, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14312,7 +14801,7 @@ function scene_Background_draw__P497051_mk(s) { -function inline__P504675(s) { +function scene_Background_draw_inline__P32524(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14322,8 +14811,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___504677 = undefined; - s.oy___504688 = undefined; + s.ox___32526 = undefined; + s.oy___32537 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -14338,7 +14827,7 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_2); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); - s.ox___504677 = (r0); + s.ox___32526 = (r0); r0 = s.caps[0].fields["camera"]; r0 = r0.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -14349,31 +14838,31 @@ switch (step) { r0 = (s.tmp_1 / s.tmp_2); s.tmp_0 = r0; r0 = pxsim.Math_.round(s.tmp_0); - s.oy___504688 = (r0); - s.tmp_0 = scene_BackgroundLayer_draw__P497060_mk(s); + s.oy___32537 = (r0); + s.tmp_0 = scene_BackgroundLayer_draw__P24113_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ox___504677; - s.tmp_0.arg2 = s.oy___504688; - s.callLocIdx = 672; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = s.ox___32526; + s.tmp_0.arg2 = s.oy___32537; + s.callLocIdx = 774; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P504675.info = {"start":1373,"length":312,"line":53,"column":37,"endLine":58,"endColumn":17,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["layer"]} +scene_Background_draw_inline__P32524.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__P504675_mk(s) { +function scene_Background_draw_inline__P32524_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P504675, depth: s.depth + 1, + parent: s, fn: scene_Background_draw_inline__P32524, depth: s.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___504677: undefined, - oy___504688: undefined, + ox___32526: undefined, + oy___32537: undefined, arg0: undefined, } } @@ -14381,7 +14870,7 @@ function inline__P504675_mk(s) { -function scene_BackgroundLayer_draw__P497060(s) { +function scene_BackgroundLayer_draw__P24113(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14391,19 +14880,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___504706 = undefined; - s.h___504709 = undefined; - s.pw___504712 = undefined; - s.ph___504716 = undefined; - s.rx___504725 = undefined; - s.ry___504728 = undefined; - s.y___504797 = undefined; - s.py___504798 = undefined; - s.dh___504807 = undefined; - s.x___504815 = undefined; - s.rxl___504816 = undefined; - s.px___504822 = undefined; - s.dw___504826 = undefined; + s.w___32555 = undefined; + s.h___32558 = undefined; + s.pw___32561 = undefined; + s.ph___32565 = undefined; + s.rx___32574 = undefined; + s.ry___32577 = undefined; + s.y___32646 = undefined; + s.py___32647 = undefined; + s.dh___32656 = undefined; + s.x___32664 = undefined; + s.rxl___32665 = undefined; + s.px___32671 = undefined; + s.dw___32675 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -14411,20 +14900,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C497052_VT)) failedCast(r0); - r0 = pxsim_ImageMethods.width(globals.screen___496568); - s.w___504706 = (r0); - r0 = pxsim_ImageMethods.height(globals.screen___496568); - s.h___504709 = (r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C24105_VT)) failedCast(r0); + r0 = pxsim_ImageMethods.width(globals.screen___23524); + s.w___32555 = (r0); + r0 = pxsim_ImageMethods.height(globals.screen___23524); + s.h___32558 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.width(s.tmp_0); - s.pw___504712 = (r0); + s.pw___32561 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.height(s.tmp_0); - s.ph___504716 = (r0); - r0 = pxsim_numops_toBoolDecr(s.pw___504712); + s.ph___32565 = (r0); + r0 = pxsim_numops_toBoolDecr(s.pw___32561); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -14433,7 +14922,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_numops_toBoolDecr(s.ph___504716); + r0 = pxsim_numops_toBoolDecr(s.ph___32565); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); case 2: @@ -14445,9 +14934,9 @@ switch (step) { case 3: case 4: r0 = (0 - s.arg1); - s.rx___504725 = (r0); + s.rx___32574 = (r0); r0 = (0 - s.arg2); - s.ry___504728 = (r0); + s.ry___32577 = (r0); r0 = s.arg0.fields["alignX"]; s.tmp_0 = r0; r0 = pxsim_pxtcore.switch_eq(2, s.tmp_0); @@ -14457,20 +14946,20 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 5: - s.tmp_1 = r0 = s.rx___504725; - r0 = (s.w___504706 + s.pw___504712); + s.tmp_1 = r0 = s.rx___32574; + r0 = (s.w___32555 + s.pw___32561); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); - s.rx___504725 = (r0); + s.rx___32574 = (r0); { step = 7; continue; } case 6: - s.tmp_0 = r0 = s.rx___504725; - r0 = (s.w___504706 + s.pw___504712); + s.tmp_0 = r0 = s.rx___32574; + r0 = (s.w___32555 + s.pw___32561); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.rx___504725 = (r0); + s.rx___32574 = (r0); case 7: r0 = s.arg0.fields["alignY"]; s.tmp_0 = r0; @@ -14481,120 +14970,120 @@ switch (step) { r0 = s.tmp_0; { step = 10; continue; } case 8: - s.tmp_1 = r0 = s.ry___504728; - r0 = (s.h___504709 + s.ph___504716); + s.tmp_1 = r0 = s.ry___32577; + r0 = (s.h___32558 + s.ph___32565); s.tmp_2 = r0; r0 = (s.tmp_1 - s.tmp_2); - s.ry___504728 = (r0); + s.ry___32577 = (r0); { step = 10; continue; } case 9: - s.tmp_0 = r0 = s.ry___504728; - r0 = (s.h___504709 + s.ph___504716); + s.tmp_0 = r0 = s.ry___32577; + r0 = (s.h___32558 + s.ph___32565); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.ry___504728 = (r0); + s.ry___32577 = (r0); case 10: - r0 = (s.rx___504725 % s.w___504706); - s.rx___504725 = (r0); - r0 = (s.rx___504725 < 0); + r0 = (s.rx___32574 % s.w___32555); + s.rx___32574 = (r0); + r0 = (s.rx___32574 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = (s.rx___504725 + s.w___504706); - s.rx___504725 = (r0); + r0 = (s.rx___32574 + s.w___32555); + s.rx___32574 = (r0); case 11: case 12: - r0 = (s.ry___504728 % s.h___504709); - s.ry___504728 = (r0); - r0 = (s.ry___504728 < 0); + r0 = (s.ry___32577 % s.h___32558); + s.ry___32577 = (r0); + r0 = (s.ry___32577 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = (s.ry___504728 + s.h___504709); - s.ry___504728 = (r0); + r0 = (s.ry___32577 + s.h___32558); + s.ry___32577 = (r0); case 13: case 14: - r0 = pxsim.Math_.floor(s.rx___504725); - s.rx___504725 = (r0); - r0 = pxsim.Math_.floor(s.ry___504728); - s.ry___504728 = (r0); - s.y___504797 = (0); - s.py___504798 = (0); + r0 = pxsim.Math_.floor(s.rx___32574); + s.rx___32574 = (r0); + r0 = pxsim.Math_.floor(s.ry___32577); + s.ry___32577 = (r0); + s.y___32646 = (0); + s.py___32647 = (0); case 15: - r0 = (s.y___504797 < s.h___504709); + r0 = (s.y___32646 < s.h___32558); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 22; continue; } - r0 = (s.y___504797 % s.ph___504716); - s.py___504798 = (r0); - s.tmp_0 = Math_min__P494882_mk(s); - r0 = (s.ph___504716 - s.py___504798); + r0 = (s.y___32646 % s.ph___32565); + s.py___32647 = (r0); + s.tmp_0 = Math_min__P21826_mk(s); + r0 = (s.ph___32565 - s.py___32647); s.tmp_0.arg0 = r0; - r0 = (s.h___504709 - s.ry___504728); + r0 = (s.h___32558 - s.ry___32577); s.tmp_0.arg1 = r0; - s.callLocIdx = 675; s.pc = 24; return s.tmp_0; + s.callLocIdx = 777; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.dh___504807 = (r0); - s.x___504815 = (0); - s.rxl___504816 = (s.rx___504725); + s.dh___32656 = (r0); + s.x___32664 = (0); + s.rxl___32665 = (s.rx___32574); case 16: - r0 = (s.x___504815 < s.w___504706); + r0 = (s.x___32664 < s.w___32555); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 19; continue; } - r0 = (s.x___504815 % s.pw___504712); - s.px___504822 = (r0); - s.tmp_0 = Math_min__P494882_mk(s); - r0 = (s.pw___504712 - s.px___504822); + r0 = (s.x___32664 % s.pw___32561); + s.px___32671 = (r0); + s.tmp_0 = Math_min__P21826_mk(s); + r0 = (s.pw___32561 - s.px___32671); s.tmp_0.arg0 = r0; - r0 = (s.w___504706 - s.rxl___504816); + r0 = (s.w___32555 - s.rxl___32665); s.tmp_0.arg1 = r0; - s.callLocIdx = 676; s.pc = 25; return s.tmp_0; + s.callLocIdx = 778; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.dw___504826 = (r0); + s.dw___32675 = (r0); r0 = s.arg0.fields["img"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.drawImage(globals.screen___496568, s.tmp_0, s.rxl___504816, s.ry___504728); - r0 = (s.rxl___504816 + s.dw___504826); + r0 = pxsim_ImageMethods.drawImage(globals.screen___23524, s.tmp_0, s.rxl___32665, s.ry___32577); + r0 = (s.rxl___32665 + s.dw___32675); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.w___504706); - s.rxl___504816 = (r0); + r0 = (s.tmp_0 % s.w___32555); + s.rxl___32665 = (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___504826; + r0 = s.dw___32675; { step = 18; continue; } case 17: - r0 = s.w___504706; + r0 = s.w___32555; case 18: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.x___504815 + s.tmp_1); - s.x___504815 = (r0); + r0 = (s.x___32664 + s.tmp_1); + s.x___32664 = (r0); { step = 16; continue; } case 19: - r0 = (s.ry___504728 + s.dh___504807); + r0 = (s.ry___32577 + s.dh___32656); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.h___504709); - s.ry___504728 = (r0); + r0 = (s.tmp_0 % s.h___32558); + s.ry___32577 = (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___504807; + r0 = s.dh___32656; { step = 21; continue; } case 20: - r0 = s.h___504709; + r0 = s.h___32558; case 21: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.y___504797 + s.tmp_1); - s.y___504797 = (r0); + r0 = (s.y___32646 + s.tmp_1); + s.y___32646 = (r0); { step = 15; continue; } case 22: case 23: @@ -14602,30 +15091,30 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_draw__P497060.info = {"start":3063,"length":1537,"line":99,"column":8,"endLine":144,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this","offsetX","offsetY"]} +scene_BackgroundLayer_draw__P24113.info = {"start":3063,"length":1537,"line":99,"column":8,"endLine":144,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"draw","argumentNames":["this","offsetX","offsetY"]} -function scene_BackgroundLayer_draw__P497060_mk(s) { +function scene_BackgroundLayer_draw__P24113_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_draw__P497060, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_draw__P24113, depth: s.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___504706: undefined, - h___504709: undefined, - pw___504712: undefined, - ph___504716: undefined, - rx___504725: undefined, - ry___504728: undefined, - y___504797: undefined, - py___504798: undefined, - dh___504807: undefined, - x___504815: undefined, - rxl___504816: undefined, - px___504822: undefined, - dw___504826: undefined, + w___32555: undefined, + h___32558: undefined, + pw___32561: undefined, + ph___32565: undefined, + rx___32574: undefined, + ry___32577: undefined, + y___32646: undefined, + py___32647: undefined, + dh___32656: undefined, + x___32664: undefined, + rxl___32665: undefined, + px___32671: undefined, + dw___32675: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -14635,7 +15124,7 @@ function scene_BackgroundLayer_draw__P497060_mk(s) { -function scene_Camera_update__P497146(s) { +function scene_Camera_update__P24223(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14645,78 +15134,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.elapsed___504907 = undefined; - s.percentComplete___504921 = undefined; - s.damp___504928 = undefined; - s.f___504937 = undefined; - s.x___504943 = undefined; - s.y___504950 = undefined; + s.elapsed___32756 = undefined; + s.percentComplete___32770 = undefined; + s.damp___32777 = undefined; + s.f___32786 = undefined; + s.x___32792 = undefined; + s.y___32799 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C497130_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C24207_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__P497136_mk(s); + s.tmp_1 = scene_Camera_offsetX__P24213_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_3 = Sprite_x__P496798_mk(s); + s.tmp_3 = Sprite_x__P23836_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 757; s.pc = 10; return s.tmp_3; + s.callLocIdx = 867; s.pc = 10; return s.tmp_3; case 10: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); 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 = 758; s.pc = 9; return s.tmp_1; + s.callLocIdx = 868; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P497138_mk(s); + s.tmp_0 = scene_Camera_offsetY__P24215_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_y__P496800_mk(s); + s.tmp_2 = Sprite_y__P23838_mk(s); r0 = s.arg0.fields["sprite"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 759; s.pc = 12; return s.tmp_2; + s.callLocIdx = 869; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); 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 = 760; s.pc = 11; return s.tmp_0; + s.callLocIdx = 870; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; case 1: case 2: - s.tmp_0 = scene_Camera_offsetX__P497136_mk(s); + s.tmp_0 = scene_Camera_offsetX__P24213_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 = 762; s.pc = 13; return s.tmp_0; + s.callLocIdx = 872; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - s.tmp_0 = scene_Camera_offsetY__P497138_mk(s); + s.tmp_0 = scene_Camera_offsetY__P24215_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 = 764; s.pc = 14; return s.tmp_0; + s.callLocIdx = 874; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -14738,10 +15227,10 @@ switch (step) { r0 = s.arg0.fields["shakeStartTime"]; s.tmp_3 = r0; r0 = (s.tmp_2 - s.tmp_3); - s.elapsed___504907 = (r0); + s.elapsed___32756 = (r0); r0 = s.arg0.fields["shakeDuration"]; s.tmp_1 = r0; - r0 = (s.elapsed___504907 >= s.tmp_1); + r0 = (s.elapsed___32756 >= s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } @@ -14750,49 +15239,49 @@ switch (step) { case 3: r0 = s.arg0.fields["shakeDuration"]; s.tmp_0 = r0; - r0 = (s.elapsed___504907 / s.tmp_0); - s.percentComplete___504921 = (r0); - s.damp___504928 = (1); - r0 = (s.percentComplete___504921 >= 0.75); + r0 = (s.elapsed___32756 / s.tmp_0); + s.percentComplete___32770 = (r0); + s.damp___32777 = (1); + r0 = (s.percentComplete___32770 >= 0.75); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_1 = Math_max__P494881_mk(s); + s.tmp_1 = Math_max__P21825_mk(s); s.tmp_1.arg0 = 0; - r0 = (1 - s.percentComplete___504921); + r0 = (1 - s.percentComplete___32770); s.tmp_1.arg1 = r0; - s.callLocIdx = 767; s.pc = 15; return s.tmp_1; + s.callLocIdx = 877; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.damp___504928 = (r0); + s.damp___32777 = (r0); case 4: case 5: r0 = s.arg0.fields["shakeAmplitude"]; s.tmp_0 = r0; - r0 = (s.tmp_0 * s.damp___504928); - s.f___504937 = (r0); + r0 = (s.tmp_0 * s.damp___32777); + s.f___32786 = (r0); r0 = pxsim.Math_.random(); s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___504937); + r0 = (s.tmp_1 * s.f___32786); s.tmp_0 = r0; r0 = (s.tmp_0 >> 0); - s.x___504943 = (r0); + s.x___32792 = (r0); r0 = pxsim.Math_.random(); s.tmp_1 = r0; - r0 = (s.tmp_1 * s.f___504937); + r0 = (s.tmp_1 * s.f___32786); s.tmp_0 = r0; r0 = (s.tmp_0 >> 0); - s.y___504950 = (r0); + s.y___32799 = (r0); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["drawOffsetX"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.x___504943); + r0 = (s.tmp_2 + s.x___32792); s.tmp_1 = r0; r0 = (s.tmp_0).fields["drawOffsetX"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["drawOffsetY"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.y___504950); + r0 = (s.tmp_2 + s.y___32799); s.tmp_1 = r0; r0 = (s.tmp_0).fields["drawOffsetY"] = (s.tmp_1); case 6: @@ -14802,12 +15291,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_update__P497146.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} +scene_Camera_update__P24223.info = {"start":2297,"length":1397,"line":77,"column":8,"endLine":112,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"update","argumentNames":["this"]} -function scene_Camera_update__P497146_mk(s) { +function scene_Camera_update__P24223_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_update__P497146, depth: s.depth + 1, + parent: s, fn: scene_Camera_update__P24223, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14815,12 +15304,12 @@ function scene_Camera_update__P497146_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - elapsed___504907: undefined, - percentComplete___504921: undefined, - damp___504928: undefined, - f___504937: undefined, - x___504943: undefined, - y___504950: undefined, + elapsed___32756: undefined, + percentComplete___32770: undefined, + damp___32777: undefined, + f___32786: undefined, + x___32792: undefined, + y___32799: undefined, arg0: undefined, } } @@ -14828,7 +15317,7 @@ function scene_Camera_update__P497146_mk(s) { -function scene_Camera_offsetY__P497138(s) { +function scene_Camera_offsetY__P24215(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14838,27 +15327,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___504985 = undefined; + s.scene___32839 = 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__C497130_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 754; s.pc = 5; return s.tmp_0; + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 864; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.scene___504985 = (r0); - r0 = s.scene___504985.fields["tileMap"]; + s.scene___32839 = (r0); + r0 = s.scene___32839.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___504985.fields["tileMap"]; + r0 = s.scene___32839.fields["tileMap"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_map"]; s.tmp_5 = r0; @@ -14875,11 +15364,11 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 3; continue; } s.tmp_7 = r0 = s.arg0; - s.tmp_9 = tiles_TileMap_offsetY__P497099_mk(s); - r0 = s.scene___504985.fields["tileMap"]; + s.tmp_9 = tiles_TileMap_offsetY__P24168_mk(s); + r0 = s.scene___32839.fields["tileMap"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 756; s.pc = 6; return s.tmp_9; + s.callLocIdx = 866; s.pc = 6; return s.tmp_9; case 6: r0 = s.retval; s.tmp_8 = r0; @@ -14892,12 +15381,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_offsetY__P497138.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} +scene_Camera_offsetY__P24215.info = {"start":1034,"length":267,"line":37,"column":8,"endLine":44,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetY","argumentNames":["this","v"]} -function scene_Camera_offsetY__P497138_mk(s) { +function scene_Camera_offsetY__P24215_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P497138, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P24215, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14909,7 +15398,7 @@ function scene_Camera_offsetY__P497138_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - scene___504985: undefined, + scene___32839: undefined, arg0: undefined, arg1: undefined, } } @@ -14918,7 +15407,7 @@ function scene_Camera_offsetY__P497138_mk(s) { -function tiles_TileMap_enabled__P497104(s) { +function tiles_TileMap_enabled__P24173(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14933,7 +15422,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -14946,13 +15435,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_enabled__P497104.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__P497104.isGetter = true; +tiles_TileMap_enabled__P24173.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__P24173.isGetter = true; -function tiles_TileMap_enabled__P497104_mk(s) { +function tiles_TileMap_enabled__P24173_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_enabled__P497104, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_enabled__P24173, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -14965,7 +15454,7 @@ function tiles_TileMap_enabled__P497104_mk(s) { -function tiles_TileMap_offsetY__P497099(s) { +function tiles_TileMap_offsetY__P24168(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -14981,38 +15470,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P494878_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P21822_mk(s); s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P494881_mk(s); - s.tmp_3 = tiles_TileMap_areaHeight__P497101_mk(s); + s.tmp_1 = Math_max__P21825_mk(s); + s.tmp_3 = tiles_TileMap_areaHeight__P24170_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 693; s.pc = 3; return s.tmp_3; + s.callLocIdx = 803; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.callLocIdx = 694; s.pc = 2; return s.tmp_1; + s.callLocIdx = 804; 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 = 695; s.pc = 1; return s.tmp_0; + s.callLocIdx = 805; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetY__P497099.info = {"start":6560,"length":123,"line":239,"column":8,"endLine":241,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetY","argumentNames":["this","value"]} +tiles_TileMap_offsetY__P24168.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 tiles_TileMap_offsetY__P497099_mk(s) { +function tiles_TileMap_offsetY__P24168_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetY__P497099, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetY__P24168, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15027,7 +15516,7 @@ function tiles_TileMap_offsetY__P497099_mk(s) { -function tiles_TileMap_areaHeight__P497101(s) { +function tiles_TileMap_areaHeight__P24170(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15042,7 +15531,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -15064,12 +15553,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_areaHeight__P497101.info = {"start":6794,"length":93,"line":247,"column":8,"endLine":249,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} +tiles_TileMap_areaHeight__P24170.info = {"start":9828,"length":93,"line":337,"column":8,"endLine":339,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaHeight","argumentNames":["this"]} -function tiles_TileMap_areaHeight__P497101_mk(s) { +function tiles_TileMap_areaHeight__P24170_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaHeight__P497101, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaHeight__P24170, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15083,7 +15572,7 @@ function tiles_TileMap_areaHeight__P497101_mk(s) { -function tiles_TileMap_scale__P497096(s) { +function tiles_TileMap_scale__P24164(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15098,18 +15587,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_scale__P497096.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__P497096.isGetter = true; +tiles_TileMap_scale__P24164.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__P24164.isGetter = true; -function tiles_TileMap_scale__P497096_mk(s) { +function tiles_TileMap_scale__P24164_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P497096, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P24164, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -15118,7 +15607,7 @@ function tiles_TileMap_scale__P497096_mk(s) { -function tiles_TileMapData_height__P497084(s) { +function tiles_TileMapData_height__P24146(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15133,18 +15622,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C497081_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C24143_VT)) failedCast(r0); r0 = s.arg0.fields["_height"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_height__P497084.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__P497084.isGetter = true; +tiles_TileMapData_height__P24146.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__P24146.isGetter = true; -function tiles_TileMapData_height__P497084_mk(s) { +function tiles_TileMapData_height__P24146_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_height__P497084, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_height__P24146, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -15153,7 +15642,7 @@ function tiles_TileMapData_height__P497084_mk(s) { -function scene_Camera_offsetY__P497137(s) { +function scene_Camera_offsetY__P24214(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15168,18 +15657,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C497130_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_offsetY__P497137.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__P497137.isGetter = true; +scene_Camera_offsetY__P24214.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__P24214.isGetter = true; -function scene_Camera_offsetY__P497137_mk(s) { +function scene_Camera_offsetY__P24214_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetY__P497137, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetY__P24214, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -15188,7 +15677,7 @@ function scene_Camera_offsetY__P497137_mk(s) { -function scene_Camera_offsetX__P497136(s) { +function scene_Camera_offsetX__P24213(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15198,27 +15687,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___505052 = undefined; + s.scene___32904 = 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__C497130_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 751; s.pc = 5; return s.tmp_0; + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 861; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.scene___505052 = (r0); - r0 = s.scene___505052.fields["tileMap"]; + s.scene___32904 = (r0); + r0 = s.scene___32904.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___505052.fields["tileMap"]; + r0 = s.scene___32904.fields["tileMap"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_map"]; s.tmp_5 = r0; @@ -15235,11 +15724,11 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 3; continue; } s.tmp_7 = r0 = s.arg0; - s.tmp_9 = tiles_TileMap_offsetX__P497098_mk(s); - r0 = s.scene___505052.fields["tileMap"]; + s.tmp_9 = tiles_TileMap_offsetX__P24167_mk(s); + r0 = s.scene___32904.fields["tileMap"]; s.tmp_9.arg0 = r0; s.tmp_9.arg1 = s.arg1; - s.callLocIdx = 753; s.pc = 6; return s.tmp_9; + s.callLocIdx = 863; s.pc = 6; return s.tmp_9; case 6: r0 = s.retval; s.tmp_8 = r0; @@ -15252,12 +15741,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_offsetX__P497136.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} +scene_Camera_offsetX__P24213.info = {"start":690,"length":267,"line":26,"column":8,"endLine":33,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"offsetX","argumentNames":["this","v"]} -function scene_Camera_offsetX__P497136_mk(s) { +function scene_Camera_offsetX__P24213_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P497136, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P24213, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15269,7 +15758,7 @@ function scene_Camera_offsetX__P497136_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - scene___505052: undefined, + scene___32904: undefined, arg0: undefined, arg1: undefined, } } @@ -15278,7 +15767,7 @@ function scene_Camera_offsetX__P497136_mk(s) { -function tiles_TileMap_offsetX__P497098(s) { +function tiles_TileMap_offsetX__P24167(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15294,38 +15783,38 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P494878_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P21822_mk(s); s.tmp_0.arg0 = 0; - s.tmp_1 = Math_max__P494881_mk(s); - s.tmp_3 = tiles_TileMap_areaWidth__P497100_mk(s); + s.tmp_1 = Math_max__P21825_mk(s); + s.tmp_3 = tiles_TileMap_areaWidth__P24169_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 690; s.pc = 3; return s.tmp_3; + s.callLocIdx = 800; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; s.tmp_2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_4 = r0; r0 = (s.tmp_2 - s.tmp_4); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 0; - s.callLocIdx = 691; s.pc = 2; return s.tmp_1; + s.callLocIdx = 801; 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 = 692; s.pc = 1; return s.tmp_0; + s.callLocIdx = 802; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_offsetX__P497098.info = {"start":6429,"length":121,"line":235,"column":8,"endLine":237,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"offsetX","argumentNames":["this","value"]} +tiles_TileMap_offsetX__P24167.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 tiles_TileMap_offsetX__P497098_mk(s) { +function tiles_TileMap_offsetX__P24167_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_offsetX__P497098, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_offsetX__P24167, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15340,7 +15829,7 @@ function tiles_TileMap_offsetX__P497098_mk(s) { -function tiles_TileMap_areaWidth__P497100(s) { +function tiles_TileMap_areaWidth__P24169(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15355,7 +15844,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -15377,12 +15866,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_areaWidth__P497100.info = {"start":6693,"length":91,"line":243,"column":8,"endLine":245,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} +tiles_TileMap_areaWidth__P24169.info = {"start":9727,"length":91,"line":333,"column":8,"endLine":335,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"areaWidth","argumentNames":["this"]} -function tiles_TileMap_areaWidth__P497100_mk(s) { +function tiles_TileMap_areaWidth__P24169_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_areaWidth__P497100, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_areaWidth__P24169, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15396,7 +15885,7 @@ function tiles_TileMap_areaWidth__P497100_mk(s) { -function tiles_TileMapData_width__P497083(s) { +function tiles_TileMapData_width__P24145(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15411,18 +15900,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C497081_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C24143_VT)) failedCast(r0); r0 = s.arg0.fields["_width"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_width__P497083.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__P497083.isGetter = true; +tiles_TileMapData_width__P24145.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__P24145.isGetter = true; -function tiles_TileMapData_width__P497083_mk(s) { +function tiles_TileMapData_width__P24145_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_width__P497083, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_width__P24145, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -15431,7 +15920,7 @@ function tiles_TileMapData_width__P497083_mk(s) { -function scene_Camera_offsetX__P497135(s) { +function scene_Camera_offsetX__P24212(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15446,18 +15935,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C497130_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); r0 = s.arg0.fields["_offsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_offsetX__P497135.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__P497135.isGetter = true; +scene_Camera_offsetX__P24212.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__P24212.isGetter = true; -function scene_Camera_offsetX__P497135_mk(s) { +function scene_Camera_offsetX__P24212_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_offsetX__P497135, depth: s.depth + 1, + parent: s, fn: scene_Camera_offsetX__P24212, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -15466,7 +15955,7 @@ function scene_Camera_offsetX__P497135_mk(s) { -function Sprite_y__P496800(s) { +function Sprite_y__P23838(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15481,28 +15970,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P496800.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__P496800.isGetter = true; +Sprite_y__P23838.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__P23838.isGetter = true; -function Sprite_y__P496800_mk(s) { +function Sprite_y__P23838_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_y__P496800, depth: s.depth + 1, + parent: s, fn: Sprite_y__P23838, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -15516,7 +16005,7 @@ function Sprite_y__P496800_mk(s) { -function Fx_toFloat__P494922(s) { +function Fx_toFloat__P21868(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15534,63 +16023,13 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_toFloat__P494922.info = {"start":2235,"length":81,"line":71,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} - -function Fx_toFloat__P494922_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_toFloat__P494922, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function Sprite_x__P496798(s) { -let r0 = s.r0, 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__C496789_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); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_0 + s.tmp_2); - return leaveAccessor(s, r0) - default: oops() -} } } -Sprite_x__P496798.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__P496798.isGetter = true; +Fx_toFloat__P21868.info = {"start":2470,"length":81,"line":77,"column":4,"endLine":79,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toFloat","argumentNames":["v"]} -function Sprite_x__P496798_mk(s) { +function Fx_toFloat__P21868_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P496798, depth: s.depth + 1, + parent: s, fn: Fx_toFloat__P21868, depth: s.depth + 1, pc: 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, } } @@ -15598,7 +16037,7 @@ function Sprite_x__P496798_mk(s) { -function PhysicsEngine_move__P496940(s) { +function Fx_div__P21857(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15613,19 +16052,20 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C496934_VT)) failedCast(r0); - r0 = undefined; + r0 = (s.arg0 << 8); + s.tmp_0 = r0; + r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); return leave(s, r0) default: oops() } } } -PhysicsEngine_move__P496940.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} +Fx_div__P21857.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 PhysicsEngine_move__P496940_mk(s) { +function Fx_div__P21857_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_move__P496940, depth: s.depth + 1, + parent: s, fn: Fx_div__P21857, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, arg0: undefined, arg1: undefined, } } @@ -15634,7 +16074,7 @@ function PhysicsEngine_move__P496940_mk(s) { -function PhysicsEngine_draw__P496939(s) { +function Sprite_x__P23836(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15649,111 +16089,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C496934_VT)) failedCast(r0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -PhysicsEngine_draw__P496939.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} - -function PhysicsEngine_draw__P496939_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: PhysicsEngine_draw__P496939, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function controller___update__P496716(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.dtms___505456 = undefined; - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - r0 = (s.arg0 * 1000); - s.tmp_0 = r0; - r0 = (s.tmp_0 | 0); - s.dtms___505456 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P505463); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; + s.tmp_1 = r0; + r0 = s.arg0.fields["_width"]; + s.tmp_3 = r0; + r0 = (s.tmp_3 << 8); + s.tmp_4 = r0; + r0 = pxsim.Math_.idiv(s.tmp_4, 512); + s.tmp_2 = r0; + r0 = (s.tmp_1 + s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___505456); - s.tmp_1 = helpers_arrayForEach__P494861_mk(s); - s.tmp_2 = controller_players__P496684_mk(s); - s.callLocIdx = 190; 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 = 192; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) default: oops() } } } -controller___update__P496716.info = {"start":17961,"length":137,"line":550,"column":4,"endLine":553,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} +Sprite_x__P23836.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__P23836.isGetter = true; -function controller___update__P496716_mk(s) { +function Sprite_x__P23836_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller___update__P496716, depth: s.depth + 1, + parent: s, fn: Sprite_x__P23836, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - dtms___505456: undefined, - arg0: undefined, -} } - - - - - -function inline__P505463(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - s.tmp_0 = controller_Controller___update__P496714_mk(s); - s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.caps[0]; - s.callLocIdx = 191; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -inline__P505463.info = {"start":18063,"length":27,"line":552,"column":26,"endLine":552,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} - -function inline__P505463_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: inline__P505463, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, + tmp_3: undefined, + tmp_4: undefined, arg0: undefined, } } @@ -15761,7 +16124,7 @@ function inline__P505463_mk(s) { -function controller_Controller___update__P496714(s) { +function PhysicsEngine_move__P23991(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15777,42 +16140,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); - r0 = pxsim_pxtrt.mklocRef(); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.arg1); - s.arg1 = (s.tmp_0); - s.tmp_1 = r0 = s.arg1; - r0 = pxsim_pxtrt_ldlocRef(s.arg1); - s.tmp_3 = r0; - r0 = (s.tmp_3 | 0); - s.tmp_2 = r0; - r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, inline__P505476); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayForEach__P494861_mk(s); - r0 = s.arg0.fields["buttons"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 189; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; + if (!checkSubtype(r0, PhysicsEngine__C23985_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller___update__P496714.info = {"start":17439,"length":124,"line":532,"column":8,"endLine":535,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +PhysicsEngine_move__P23991.info = {"start":351,"length":20,"line":18,"column":4,"endLine":18,"endColumn":24,"fileName":"pxt_modules/game/physics.ts","functionName":"move","argumentNames":["this","dt"]} -function controller_Controller___update__P496714_mk(s) { +function PhysicsEngine_move__P23991_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___update__P496714, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_move__P23991, depth: s.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, } } @@ -15821,7 +16160,7 @@ function controller_Controller___update__P496714_mk(s) { -function inline__P505476(s) { +function PhysicsEngine_draw__P23990(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15835,25 +16174,19 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Button___update__P496681_mk(s); - s.tmp_0.arg0 = s.arg0; - r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); - s.tmp_0.arg1 = r0; - s.callLocIdx = 188; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; + r0 = s.arg0; + if (!checkSubtype(r0, PhysicsEngine__C23985_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P505476.info = {"start":17526,"length":25,"line":534,"column":33,"endLine":534,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} +PhysicsEngine_draw__P23990.info = {"start":279,"length":10,"line":15,"column":4,"endLine":15,"endColumn":14,"fileName":"pxt_modules/game/physics.ts","functionName":"draw","argumentNames":["this"]} -function inline__P505476_mk(s) { +function PhysicsEngine_draw__P23990_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505476, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_draw__P23990, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, arg0: undefined, } } @@ -15861,7 +16194,7 @@ function inline__P505476_mk(s) { -function controller_Button___update__P496681(s) { +function controller___update__P23650(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -15871,124 +16204,51 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.delay___505492 = undefined; - s.interval___505501 = undefined; - s.count___505514 = undefined; + s.dtms___33308 = 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__C496669_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___498691; - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["repeatDelay"]; - case 4: - // jmp value (already in r0) - s.tmp_2 = r0; - s.delay___505492 = (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___498693; - { step = 6; continue; } - case 5: - r0 = s.arg0.fields["repeatInterval"]; - case 6: - // jmp value (already in r0) - s.tmp_2 = r0; - s.interval___505501 = (s.tmp_2); - r0 = s.arg0.fields["_pressedElasped"]; - s.tmp_1 = r0; - r0 = (s.tmp_1 < s.delay___505492); + r0 = (s.arg0 * 1000); 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___505492); - s.tmp_4 = r0; - r0 = (s.tmp_4 - s.interval___505501); - s.tmp_3 = r0; - r0 = (s.tmp_3 / s.interval___505501); - s.tmp_2 = r0; - r0 = pxsim.Math_.floor(s.tmp_2); - s.count___505514 = (r0); - r0 = s.arg0.fields["_repeatCount"]; - s.tmp_1 = r0; - r0 = (s.count___505514 != s.tmp_1); + r0 = (s.tmp_0 | 0); + s.dtms___33308 = (r0); + r0 = pxsim_pxtcore_mkAction(1, controller___update_inline__P33315); s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - s.tmp_2 = controller_Button_raiseButtonRepeat__P498698_mk(s); - s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 146; s.pc = 12; return s.tmp_2; - case 12: + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.dtms___33308); + s.tmp_1 = helpers_arrayForEach__P21804_mk(s); + s.tmp_2 = controller_players__P23618_mk(s); + s.callLocIdx = 180; 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 = 182; s.pc = 1; return s.tmp_1; + case 1: r0 = s.retval; - r0 = (s.arg0).fields["_repeatCount"] = (s.count___505514); - case 9: - case 10: - case 11: r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button___update__P496681.info = {"start":5117,"length":704,"line":164,"column":8,"endLine":181,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["this","dtms"]} +controller___update__P23650.info = {"start":11751,"length":137,"line":361,"column":4,"endLine":364,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"__update","argumentNames":["dt"]} -function controller_Button___update__P496681_mk(s) { +function controller___update__P23650_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button___update__P496681, depth: s.depth + 1, + parent: s, fn: controller___update__P23650, depth: s.depth + 1, pc: 0, retval: undefined, 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___505492: undefined, - interval___505501: undefined, - count___505514: undefined, + dtms___33308: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Button_raiseButtonRepeat__P498698(s) { +function controller___update_inline__P33315(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16002,29 +16262,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___498689); - 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; } + s.tmp_0 = controller_Controller___update__P23648_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.caps[0]; + s.callLocIdx = 181; s.pc = 1; return s.tmp_0; case 1: - r0 = s.arg0.fields["id"]; - s.tmp_0 = r0; - r0 = pxsim.control.raiseEvent(2055, s.tmp_0); - case 2: + r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonRepeat__P498698.info = {"start":2887,"length":211,"line":99,"column":8,"endLine":104,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} +controller___update_inline__P33315.info = {"start":11853,"length":27,"line":363,"column":26,"endLine":363,"endColumn":53,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function controller_Button_raiseButtonRepeat__P498698_mk(s) { +function controller___update_inline__P33315_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonRepeat__P498698, depth: s.depth + 1, + parent: s, fn: controller___update_inline__P33315, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16034,7 +16287,7 @@ function controller_Button_raiseButtonRepeat__P498698_mk(s) { -function controller_players__P496684(s) { +function controller_Controller___update__P23648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16044,25 +16297,298 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller__player1__P496683_mk(s); - s.callLocIdx = 149; s.pc = 1; return s.tmp_0; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Controller__C23623_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__P33328); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); + s.tmp_1 = helpers_arrayForEach__P21804_mk(s); + r0 = s.arg0.fields["buttons"]; + s.tmp_1.arg0 = r0; + s.tmp_1.arg1 = s.tmp_0; + s.callLocIdx = 179; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; - s.tmp_0 = helpers_arrayFilter__P494862_mk(s); - s.tmp_0.arg0 = globals._players___498702; - s.tmp_0.arg1 = inline__P505333; - s.callLocIdx = 150; s.pc = 2; return s.tmp_0; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Controller___update__P23648.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 controller_Controller___update__P23648_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller___update__P23648, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_Controller___update_inline__P33328(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + s.tmp_0 = controller_Button___update__P23688_mk(s); + s.tmp_0.arg0 = s.arg0; + r0 = pxsim_pxtrt_ldlocRef(s.caps[0]); + s.tmp_0.arg1 = r0; + s.callLocIdx = 178; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Controller___update_inline__P33328.info = {"start":11316,"length":25,"line":345,"column":33,"endLine":345,"endColumn":58,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["btn"]} + +function controller_Controller___update_inline__P33328_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Controller___update_inline__P33328, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function controller_Button___update__P23688(s) { +let r0 = s.r0, 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___33344 = undefined; + s.interval___33353 = undefined; + s.count___33366 = 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__C23674_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___26021; + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["repeatDelay"]; + case 4: + // jmp value (already in r0) + s.tmp_2 = r0; + s.delay___33344 = (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___26023; + { step = 6; continue; } + case 5: + r0 = s.arg0.fields["repeatInterval"]; + case 6: + // jmp value (already in r0) + s.tmp_2 = r0; + s.interval___33353 = (s.tmp_2); + r0 = s.arg0.fields["_pressedElasped"]; + s.tmp_1 = r0; + r0 = (s.tmp_1 < s.delay___33344); + 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___33344); + s.tmp_4 = r0; + r0 = (s.tmp_4 - s.interval___33353); + s.tmp_3 = r0; + r0 = (s.tmp_3 / s.interval___33353); + s.tmp_2 = r0; + r0 = pxsim.Math_.floor(s.tmp_2); + s.count___33366 = (r0); + r0 = s.arg0.fields["_repeatCount"]; + s.tmp_1 = r0; + r0 = (s.count___33366 != 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__P26010_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 194; s.pc = 12; return s.tmp_2; + case 12: + r0 = s.retval; + r0 = (s.arg0).fields["_repeatCount"] = (s.count___33366); + case 9: + case 10: + case 11: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Button___update__P23688.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 controller_Button___update__P23688_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button___update__P23688, depth: s.depth + 1, + pc: 0, retval: undefined, 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___33344: undefined, + interval___33353: undefined, + count___33366: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_Button_raiseButtonRepeat__P26010(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___26019); + if (!r0) { step = 1; continue; } + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2054, s.tmp_0); + { step = 2; continue; } + case 1: + r0 = s.arg0.fields["id"]; + s.tmp_0 = r0; + r0 = pxsim.control.raiseEvent(2055, s.tmp_0); + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Button_raiseButtonRepeat__P26010.info = {"start":3303,"length":211,"line":110,"column":8,"endLine":115,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"raiseButtonRepeat","argumentNames":["this"]} + +function controller_Button_raiseButtonRepeat__P26010_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_raiseButtonRepeat__P26010, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function controller_players__P23618(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = controller__player1__P23617_mk(s); + s.callLocIdx = 139; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + s.tmp_0 = helpers_arrayFilter__P21805_mk(s); + s.tmp_0.arg0 = globals._players___26002; + s.tmp_0.arg1 = controller_players_inline__P33185; + s.callLocIdx = 140; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; return leave(s, r0) default: oops() } } } -controller_players__P496684.info = {"start":7040,"length":144,"line":220,"column":4,"endLine":223,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} +controller_players__P23618.info = {"start":748,"length":144,"line":29,"column":4,"endLine":32,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"players","argumentNames":[]} -function controller_players__P496684_mk(s) { +function controller_players__P23618_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_players__P496684, depth: s.depth + 1, + parent: s, fn: controller_players__P23618, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -16071,7 +16597,7 @@ function controller_players__P496684_mk(s) { -function inline__P505333(s) { +function controller_players_inline__P33185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16095,12 +16621,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P505333.info = {"start":7162,"length":14,"line":222,"column":31,"endLine":222,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +controller_players_inline__P33185.info = {"start":870,"length":14,"line":31,"column":31,"endLine":31,"endColumn":45,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function inline__P505333_mk(s) { +function controller_players_inline__P33185_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505333, depth: s.depth + 1, + parent: s, fn: controller_players_inline__P33185, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16112,7 +16638,7 @@ function inline__P505333_mk(s) { -function controller__player1__P496683(s) { +function controller__player1__P23617(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16122,7 +16648,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals._players___498702); + r0 = pxsim_numops_toBoolDecr(globals._players___26002); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -16131,7 +16657,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array__getAt(globals._players___498702, 0); + r0 = pxsim_Array__getAt(globals._players___26002, 0); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -16141,36 +16667,36 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C496689_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Controller__C23623_VT); s.tmp_5 = r0; r0 = pxsim_Array__mk(); s.tmp_6 = r0; - r0 = pxsim_Array__push(s.tmp_6, globals.left___496645); - r0 = pxsim_Array__push(s.tmp_6, globals.up___496646); - r0 = pxsim_Array__push(s.tmp_6, globals.right___496647); - r0 = pxsim_Array__push(s.tmp_6, globals.down___496648); - r0 = pxsim_Array__push(s.tmp_6, globals.A___496643); - r0 = pxsim_Array__push(s.tmp_6, globals.B___496644); - r0 = pxsim_Array__push(s.tmp_6, globals.menu___496649); - s.tmp_7 = controller_Controller_constructor__P496693_mk(s); + r0 = pxsim_Array__push(s.tmp_6, globals.left___23604); + r0 = pxsim_Array__push(s.tmp_6, globals.up___23605); + r0 = pxsim_Array__push(s.tmp_6, globals.right___23606); + r0 = pxsim_Array__push(s.tmp_6, globals.down___23607); + r0 = pxsim_Array__push(s.tmp_6, globals.A___23602); + r0 = pxsim_Array__push(s.tmp_6, globals.B___23603); + r0 = pxsim_Array__push(s.tmp_6, globals.menu___23608); + s.tmp_7 = controller_Controller_constructor__P23627_mk(s); s.tmp_7.arg0 = s.tmp_5; s.tmp_7.arg1 = 1; s.tmp_7.arg2 = s.tmp_6; - s.callLocIdx = 148; s.pc = 5; return s.tmp_7; + s.callLocIdx = 138; s.pc = 5; return s.tmp_7; case 5: r0 = s.retval; case 3: case 4: - r0 = pxsim_Array__getAt(globals._players___498702, 0); + r0 = pxsim_Array__getAt(globals._players___26002, 0); return leave(s, r0) default: oops() } } } -controller__player1__P496683.info = {"start":6776,"length":258,"line":214,"column":4,"endLine":218,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} +controller__player1__P23617.info = {"start":484,"length":258,"line":23,"column":4,"endLine":27,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_player1","argumentNames":[]} -function controller__player1__P496683_mk(s) { +function controller__player1__P23617_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__player1__P496683, depth: s.depth + 1, + parent: s, fn: controller__player1__P23617, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16186,7 +16712,7 @@ function controller__player1__P496683_mk(s) { -function controller_Controller_constructor__P496693(s) { +function controller_Controller_constructor__P23627(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16196,9 +16722,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.leftId___505398 = undefined; - s.i___505406 = undefined; - s.i___505424 = undefined; + s.leftId___33250 = undefined; + s.i___33258 = undefined; + s.i___33276 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -16206,7 +16732,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim.control.allocateNotifyEvent(); s.tmp_1 = r0; @@ -16230,34 +16756,34 @@ switch (step) { r0 = (s.tmp_1 * 7); s.tmp_0 = r0; r0 = (1 + s.tmp_0); - s.leftId___505398 = (r0); - s.i___505406 = (0); + s.leftId___33250 = (r0); + s.i___33258 = (0); case 2: - r0 = (s.i___505406 < 7); + r0 = (s.i___33258 < 7); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C496669_VT); + r0 = pxsim_pxtcore_mkClassInstance(controller_Button__C23674_VT); s.tmp_1 = r0; - s.tmp_2 = controller_Button_constructor__P496675_mk(s); + s.tmp_2 = controller_Button_constructor__P23680_mk(s); s.tmp_2.arg0 = s.tmp_1; - r0 = (s.leftId___505398 + s.i___505406); + r0 = (s.leftId___33250 + s.i___33258); s.tmp_2.arg1 = r0; s.tmp_2.arg2 = -1; - s.callLocIdx = 154; s.pc = 7; return s.tmp_2; + s.callLocIdx = 144; 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___505406 + 1); - s.i___505406 = (r0); + r0 = (s.i___33258 + 1); + s.i___33258 = (r0); { step = 2; continue; } case 3: case 4: - s.i___505424 = (0); + s.i___33276 = (0); case 5: - s.tmp_1 = r0 = s.i___505424; + s.tmp_1 = r0 = s.i___33276; r0 = s.arg0.fields["buttons"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -16268,28 +16794,28 @@ switch (step) { if (!r0) { step = 6; continue; } r0 = s.arg0.fields["buttons"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___505424); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___33276); s.tmp_4 = r0; r0 = (s.tmp_4).fields["_owner"] = (s.arg0); - r0 = (s.i___505424 + 1); - s.i___505424 = (r0); + r0 = (s.i___33276 + 1); + s.i___33276 = (r0); { step = 5; continue; } case 6: - s.tmp_0 = controller_addController__P498703_mk(s); + s.tmp_0 = controller_addController__P26003_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 155; s.pc = 8; return s.tmp_0; + s.callLocIdx = 145; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Controller_constructor__P496693.info = {"start":7849,"length":696,"line":249,"column":8,"endLine":266,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["this","playerIndex","buttons"]} +controller_Controller_constructor__P23627.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 controller_Controller_constructor__P496693_mk(s) { +function controller_Controller_constructor__P23627_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_constructor__P496693, depth: s.depth + 1, + parent: s, fn: controller_Controller_constructor__P23627, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16297,9 +16823,9 @@ function controller_Controller_constructor__P496693_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - leftId___505398: undefined, - i___505406: undefined, - i___505424: undefined, + leftId___33250: undefined, + i___33258: undefined, + i___33276: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -16309,7 +16835,7 @@ function controller_Controller_constructor__P496693_mk(s) { -function controller_addController__P498703(s) { +function controller_addController__P26003(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16323,17 +16849,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._players___498702); + r0 = pxsim_numops_toBoolDecr(globals._players___26002); 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___498702 = (r0); + globals._players___26002 = (r0); case 1: case 2: - s.tmp_0 = r0 = globals._players___498702; + s.tmp_0 = r0 = globals._players___26002; r0 = s.arg0.fields["playerIndex"]; s.tmp_2 = r0; r0 = (s.tmp_2 - 1); @@ -16343,12 +16869,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_addController__P498703.info = {"start":6613,"length":157,"line":207,"column":4,"endLine":212,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} +controller_addController__P26003.info = {"start":321,"length":157,"line":16,"column":4,"endLine":21,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"addController","argumentNames":["ctrl"]} -function controller_addController__P498703_mk(s) { +function controller_addController__P26003_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_addController__P498703, depth: s.depth + 1, + parent: s, fn: controller_addController__P26003, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16360,7 +16886,7 @@ function controller_addController__P498703_mk(s) { -function helpers_arrayFilter__P494862(s) { +function helpers_arrayFilter__P21805(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16370,31 +16896,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___505252 = undefined; - s.len___505254 = undefined; - s.i___505257 = undefined; - s.v___505262 = undefined; + s.res___33104 = undefined; + s.len___33106 = undefined; + s.i___33109 = undefined; + s.v___33114 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___505252 = (r0); + s.res___33104 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___505254 = (r0); - s.i___505257 = (0); + s.len___33106 = (r0); + s.i___33109 = (0); case 1: - r0 = (s.i___505257 < s.len___505254); + r0 = (s.i___33109 < s.len___33106); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.arg0, s.i___505257); - s.v___505262 = (r0); + r0 = pxsim_Array__getAt(s.arg0, s.i___33109); + s.v___33114 = (r0); s.tmp_1 = lambda_3_mk(s); s.tmp_1.argL = s.arg1; - s.tmp_1.arg0 = s.v___505262; - s.tmp_1.arg1 = s.i___505257; + s.tmp_1.arg0 = s.v___33114; + s.tmp_1.arg1 = s.i___33109; setupLambda(s.tmp_1, s.tmp_1.argL); s.callLocIdx = 6; s.pc = 5; return s.tmp_1; case 5: @@ -16402,30 +16928,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___505252, s.v___505262); + r0 = pxsim_Array__push(s.res___33104, s.v___33114); case 2: case 3: - r0 = (s.i___505257 + 1); - s.i___505257 = (r0); + r0 = (s.i___33109 + 1); + s.i___33109 = (r0); { step = 1; continue; } case 4: - r0 = s.res___505252; + r0 = s.res___33104; return leave(s, r0) default: oops() } } } -helpers_arrayFilter__P494862.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__P21805.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__P494862_mk(s) { +function helpers_arrayFilter__P21805_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayFilter__P494862, depth: s.depth + 1, + parent: s, fn: helpers_arrayFilter__P21805, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - res___505252: undefined, - len___505254: undefined, - i___505257: undefined, - v___505262: undefined, + res___33104: undefined, + len___33106: undefined, + i___33109: undefined, + v___33114: undefined, arg0: undefined, arg1: undefined, } } @@ -16434,7 +16960,7 @@ function helpers_arrayFilter__P494862_mk(s) { -function controller__moveSprites__P496688(s) { +function controller__moveSprites__P23622(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16444,26 +16970,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = helpers_arrayForEach__P494861_mk(s); - s.tmp_1 = controller_players__P496684_mk(s); - s.callLocIdx = 151; s.pc = 2; return s.tmp_1; + s.tmp_0 = helpers_arrayForEach__P21804_mk(s); + s.tmp_1 = controller_players__P23618_mk(s); + s.callLocIdx = 141; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P505102; - s.callLocIdx = 153; s.pc = 1; return s.tmp_0; + s.tmp_0.arg1 = controller__moveSprites_inline__P32954; + s.callLocIdx = 143; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -controller__moveSprites__P496688.info = {"start":7400,"length":182,"line":234,"column":4,"endLine":238,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} +controller__moveSprites__P23622.info = {"start":1108,"length":180,"line":43,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"_moveSprites","argumentNames":[]} -function controller__moveSprites__P496688_mk(s) { +function controller__moveSprites__P23622_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__moveSprites__P496688, depth: s.depth + 1, + parent: s, fn: controller__moveSprites__P23622, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16473,7 +16999,7 @@ function controller__moveSprites__P496688_mk(s) { -function inline__P505102(s) { +function controller__moveSprites_inline__P32954(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16487,21 +17013,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = controller_Controller___preUpdate__P496713_mk(s); + s.tmp_0 = controller_Controller___preUpdate__P23647_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 152; s.pc = 1; return s.tmp_0; + s.callLocIdx = 142; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P505102.info = {"start":7548,"length":26,"line":237,"column":26,"endLine":237,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} +controller__moveSprites_inline__P32954.info = {"start":1254,"length":26,"line":46,"column":26,"endLine":46,"endColumn":52,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["ctrl"]} -function inline__P505102_mk(s) { +function controller__moveSprites_inline__P32954_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505102, depth: s.depth + 1, + parent: s, fn: controller__moveSprites_inline__P32954, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -16511,7 +17037,7 @@ function inline__P505102_mk(s) { -function controller_Controller___preUpdate__P496713(s) { +function controller_Controller___preUpdate__P23647(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16521,22 +17047,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.deadSprites___505109 = undefined; - s.svx___505110 = undefined; - s.svy___505111 = undefined; - s.svxInCricle___505146 = undefined; - s.svyInCircle___505148 = undefined; - s.sq___505150 = undefined; - s.scale___505165 = undefined; + s.deadSprites___32961 = undefined; + s.svx___32962 = undefined; + s.svy___32963 = undefined; + s.svxInCricle___32998 = undefined; + s.svyInCircle___33000 = undefined; + s.sq___33002 = undefined; + s.scale___33017 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); - s.tmp_3 = controller_Controller__controlledSprites__P496694_mk(s); + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); + s.tmp_3 = controller_Controller__controlledSprites__P23628_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 163; s.pc = 18; return s.tmp_3; + s.callLocIdx = 153; s.pc = 18; return s.tmp_3; case 18: r0 = s.retval; s.tmp_2 = r0; @@ -16550,38 +17076,38 @@ switch (step) { case 1: case 2: r0 = pxsim_pxtrt.mklocRef(); - s.deadSprites___505109 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.deadSprites___505109, false); + s.deadSprites___32961 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.deadSprites___32961, false); r0 = pxsim_pxtrt.mklocRef(); - s.svx___505110 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svx___505110, 0); + s.svx___32962 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svx___32962, 0); r0 = pxsim_pxtrt.mklocRef(); - s.svy___505111 = (r0); - r0 = pxsim_pxtrt_stlocRef(s.svy___505111, 0); + s.svy___32963 = (r0); + r0 = pxsim_pxtrt_stlocRef(s.svy___32963, 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___505110; - s.tmp_5 = controller_Button_pressureLevel__P496679_mk(s); - s.tmp_6 = controller_Controller_right__P496699_mk(s); + s.tmp_1 = r0 = s.svx___32962; + s.tmp_5 = controller_Button_pressureLevel__P23686_mk(s); + s.tmp_6 = controller_Controller_right__P23633_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 164; s.pc = 20; return s.tmp_6; + s.callLocIdx = 154; s.pc = 20; return s.tmp_6; case 20: r0 = s.retval; s.tmp_5.arg0 = r0; - s.callLocIdx = 165; s.pc = 19; return s.tmp_5; + s.callLocIdx = 155; s.pc = 19; return s.tmp_5; case 19: r0 = s.retval; s.tmp_4 = r0; - s.tmp_8 = controller_Button_pressureLevel__P496679_mk(s); - s.tmp_9 = controller_Controller_left__P496698_mk(s); + s.tmp_8 = controller_Button_pressureLevel__P23686_mk(s); + s.tmp_9 = controller_Controller_left__P23632_mk(s); s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 166; s.pc = 22; return s.tmp_9; + s.callLocIdx = 156; s.pc = 22; return s.tmp_9; case 22: r0 = s.retval; s.tmp_8.arg0 = r0; - s.callLocIdx = 167; s.pc = 21; return s.tmp_8; + s.callLocIdx = 157; s.pc = 21; return s.tmp_8; case 21: r0 = s.retval; s.tmp_7 = r0; @@ -16590,26 +17116,26 @@ switch (step) { r0 = (s.tmp_3 >> 1); s.tmp_2 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_1, s.tmp_2); - s.tmp_0 = r0 = s.svy___505111; - s.tmp_4 = controller_Button_pressureLevel__P496679_mk(s); - s.tmp_5 = controller_Controller_down__P496701_mk(s); + s.tmp_0 = r0 = s.svy___32963; + s.tmp_4 = controller_Button_pressureLevel__P23686_mk(s); + s.tmp_5 = controller_Controller_down__P23635_mk(s); s.tmp_5.arg0 = s.arg0; - s.callLocIdx = 168; s.pc = 24; return s.tmp_5; + s.callLocIdx = 158; s.pc = 24; return s.tmp_5; case 24: r0 = s.retval; s.tmp_4.arg0 = r0; - s.callLocIdx = 169; s.pc = 23; return s.tmp_4; + s.callLocIdx = 159; s.pc = 23; return s.tmp_4; case 23: r0 = s.retval; s.tmp_3 = r0; - s.tmp_7 = controller_Button_pressureLevel__P496679_mk(s); - s.tmp_8 = controller_Controller_up__P496700_mk(s); + s.tmp_7 = controller_Button_pressureLevel__P23686_mk(s); + s.tmp_8 = controller_Controller_up__P23634_mk(s); s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 170; s.pc = 26; return s.tmp_8; + s.callLocIdx = 160; s.pc = 26; return s.tmp_8; case 26: r0 = s.retval; s.tmp_7.arg0 = r0; - s.callLocIdx = 171; s.pc = 25; return s.tmp_7; + s.callLocIdx = 161; s.pc = 25; return s.tmp_7; case 25: r0 = s.retval; s.tmp_6 = r0; @@ -16620,14 +17146,14 @@ switch (step) { r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); { step = 12; continue; } case 3: - s.tmp_1 = controller_Button__C496669_v0_1_mk(s); - s.tmp_2 = controller_Controller_right__P496699_mk(s); + s.tmp_1 = controller_Button__C23674_v0_1_mk(s); + s.tmp_2 = controller_Controller_right__P23633_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 172; s.pc = 28; return s.tmp_2; + s.callLocIdx = 162; 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__C496669_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C23674_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: @@ -16642,14 +17168,14 @@ switch (step) { case 5: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_5 = controller_Button__C496669_v0_1_mk(s); - s.tmp_6 = controller_Controller_left__P496698_mk(s); + s.tmp_5 = controller_Button__C23674_v0_1_mk(s); + s.tmp_6 = controller_Controller_left__P23632_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 173; s.pc = 30; return s.tmp_6; + s.callLocIdx = 163; 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__C496669_VT)) failedCast(s.tmp_5.arg0); + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C23674_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: @@ -16664,18 +17190,18 @@ switch (step) { case 7: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.svx___505110; + s.tmp_8 = r0 = s.svx___32962; 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__C496669_v0_1_mk(s); - s.tmp_2 = controller_Controller_down__P496701_mk(s); + s.tmp_1 = controller_Button__C23674_v0_1_mk(s); + s.tmp_2 = controller_Controller_down__P23635_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 174; s.pc = 32; return s.tmp_2; + s.callLocIdx = 164; 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__C496669_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, controller_Button__C23674_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: @@ -16690,14 +17216,14 @@ switch (step) { case 9: // jmp value (already in r0) s.tmp_3 = r0; - s.tmp_5 = controller_Button__C496669_v0_1_mk(s); - s.tmp_6 = controller_Controller_up__P496700_mk(s); + s.tmp_5 = controller_Button__C23674_v0_1_mk(s); + s.tmp_6 = controller_Controller_up__P23634_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 175; s.pc = 34; return s.tmp_6; + s.callLocIdx = 165; 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__C496669_VT)) failedCast(s.tmp_5.arg0); + if (!checkSubtype(s.tmp_5.arg0, controller_Button__C23674_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: @@ -16712,57 +17238,57 @@ switch (step) { case 11: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.svy___505111; + s.tmp_8 = r0 = s.svy___32963; 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___505146 = (r0); - s.tmp_0 = r0 = s.svxInCricle___505146; - r0 = pxsim_pxtrt_ldlocRef(s.svx___505110); + s.svxInCricle___32998 = (r0); + s.tmp_0 = r0 = s.svxInCricle___32998; + r0 = pxsim_pxtrt_ldlocRef(s.svx___32962); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); r0 = pxsim_pxtrt.mklocRef(); - s.svyInCircle___505148 = (r0); - s.tmp_0 = r0 = s.svyInCircle___505148; - r0 = pxsim_pxtrt_ldlocRef(s.svy___505111); + s.svyInCircle___33000 = (r0); + s.tmp_0 = r0 = s.svyInCircle___33000; + r0 = pxsim_pxtrt_ldlocRef(s.svy___32963); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = pxsim_pxtrt_ldlocRef(s.svx___505110); + r0 = pxsim_pxtrt_ldlocRef(s.svx___32962); s.tmp_1 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svx___505110); + r0 = pxsim_pxtrt_ldlocRef(s.svx___32962); s.tmp_2 = r0; r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___505111); + r0 = pxsim_pxtrt_ldlocRef(s.svy___32963); s.tmp_4 = r0; - r0 = pxsim_pxtrt_ldlocRef(s.svy___505111); + r0 = pxsim_pxtrt_ldlocRef(s.svy___32963); s.tmp_5 = r0; r0 = (s.tmp_4 * s.tmp_5); s.tmp_3 = r0; r0 = (s.tmp_0 + s.tmp_3); - s.sq___505150 = (r0); - r0 = (s.sq___505150 > 65536); + s.sq___33002 = (r0); + r0 = (s.sq___33002 > 65536); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = (65536 / s.sq___505150); + r0 = (65536 / s.sq___33002); s.tmp_1 = r0; r0 = pxsim.Math_.sqrt(s.tmp_1); - s.scale___505165 = (r0); - s.tmp_0 = r0 = s.svxInCricle___505146; - s.tmp_3 = r0 = s.scale___505165; - r0 = pxsim_pxtrt_ldlocRef(s.svx___505110); + s.scale___33017 = (r0); + s.tmp_0 = r0 = s.svxInCricle___32998; + s.tmp_3 = r0 = s.scale___33017; + r0 = pxsim_pxtrt_ldlocRef(s.svx___32962); 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___505148; - s.tmp_3 = r0 = s.scale___505165; - r0 = pxsim_pxtrt_ldlocRef(s.svy___505111); + s.tmp_0 = r0 = s.svyInCircle___33000; + s.tmp_3 = r0 = s.scale___33017; + r0 = pxsim_pxtrt_ldlocRef(s.svy___32963); s.tmp_4 = r0; r0 = (s.tmp_3 * s.tmp_4); s.tmp_2 = r0; @@ -16771,43 +17297,43 @@ switch (step) { r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); case 13: case 14: - r0 = pxsim_pxtcore_mkAction(5, inline__P505183); - s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___505109); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___505110); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___505111); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___505146); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___505148); - s.tmp_1 = helpers_arrayForEach__P494861_mk(s); - s.tmp_2 = controller_Controller__controlledSprites__P496694_mk(s); + r0 = pxsim_pxtcore_mkAction(5, controller_Controller___preUpdate_inline__P33035); + s.tmp_0 = r0; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.deadSprites___32961); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.svx___32962); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.svy___32963); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 3, s.svxInCricle___32998); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 4, s.svyInCircle___33000); + s.tmp_1 = helpers_arrayForEach__P21804_mk(s); + s.tmp_2 = controller_Controller__controlledSprites__P23628_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 176; s.pc = 36; return s.tmp_2; + s.callLocIdx = 166; 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 = 184; s.pc = 35; return s.tmp_1; + s.callLocIdx = 174; s.pc = 35; return s.tmp_1; case 35: r0 = s.retval; - r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___505109); + r0 = pxsim_pxtrt_ldlocRef(s.deadSprites___32961); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 15; continue; } - s.tmp_1 = controller_Controller__controlledSprites__P496695_mk(s); + s.tmp_1 = controller_Controller__controlledSprites__P23629_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = helpers_arrayFilter__P494862_mk(s); - s.tmp_3 = controller_Controller__controlledSprites__P496694_mk(s); + s.tmp_2 = helpers_arrayFilter__P21805_mk(s); + s.tmp_3 = controller_Controller__controlledSprites__P23628_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 185; s.pc = 39; return s.tmp_3; + s.callLocIdx = 175; s.pc = 39; return s.tmp_3; case 39: r0 = s.retval; s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = inline__P505240; - s.callLocIdx = 186; s.pc = 38; return s.tmp_2; + s.tmp_2.arg1 = controller_Controller___preUpdate_inline__P33092; + s.callLocIdx = 176; s.pc = 38; return s.tmp_2; case 38: r0 = s.retval; s.tmp_1.arg1 = r0; - s.callLocIdx = 187; s.pc = 37; return s.tmp_1; + s.callLocIdx = 177; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; case 15: @@ -16817,12 +17343,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller___preUpdate__P496713.info = {"start":14894,"length":2535,"line":466,"column":8,"endLine":530,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} +controller_Controller___preUpdate__P23647.info = {"start":8684,"length":2535,"line":277,"column":8,"endLine":341,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"__preUpdate","argumentNames":["this"]} -function controller_Controller___preUpdate__P496713_mk(s) { +function controller_Controller___preUpdate__P23647_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller___preUpdate__P496713, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate__P23647, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -16834,13 +17360,13 @@ function controller_Controller___preUpdate__P496713_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - deadSprites___505109: undefined, - svx___505110: undefined, - svy___505111: undefined, - svxInCricle___505146: undefined, - svyInCircle___505148: undefined, - sq___505150: undefined, - scale___505165: undefined, + deadSprites___32961: undefined, + svx___32962: undefined, + svy___32963: undefined, + svxInCricle___32998: undefined, + svyInCircle___33000: undefined, + sq___33002: undefined, + scale___33017: undefined, arg0: undefined, } } @@ -16848,7 +17374,7 @@ function controller_Controller___preUpdate__P496713_mk(s) { -function inline__P505183(s) { +function controller_Controller___preUpdate_inline__P33035(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -16858,9 +17384,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___505186 = undefined; - s.vx___505187 = undefined; - s.vy___505188 = undefined; + s.s___33038 = undefined; + s.vx___33039 = undefined; + s.vy___33040 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -16874,11 +17400,11 @@ switch (step) { s.tmp_0.fn = s.tmp_0.arg0.vtable.iface["s"]; if (s.tmp_0.fn == null) { s.retval = s.tmp_0.arg0.fields["s"]; } else if (!s.tmp_0.fn.isGetter) { s.retval = bind(s.tmp_0); } - else { s.callLocIdx = 177; s.pc = 22; return s.tmp_0; } + else { s.callLocIdx = 167; s.pc = 22; return s.tmp_0; } } case 22: r0 = s.retval; - s.s___505186 = (r0); + s.s___33038 = (r0); s.tmp_2 = if_vx_1_mk(s); s.tmp_2.arg0 = s.tmp_1; if (!s.tmp_2.arg0.vtable.iface) { @@ -16887,11 +17413,11 @@ switch (step) { s.tmp_2.fn = s.tmp_2.arg0.vtable.iface["vx"]; if (s.tmp_2.fn == null) { s.retval = s.tmp_2.arg0.fields["vx"]; } else if (!s.tmp_2.fn.isGetter) { s.retval = bind(s.tmp_2); } - else { s.callLocIdx = 178; s.pc = 23; return s.tmp_2; } + else { s.callLocIdx = 168; s.pc = 23; return s.tmp_2; } } case 23: r0 = s.retval; - s.vx___505187 = (r0); + s.vx___33039 = (r0); s.tmp_3 = if_vy_1_mk(s); s.tmp_3.arg0 = s.tmp_1; if (!s.tmp_3.arg0.vtable.iface) { @@ -16900,12 +17426,12 @@ switch (step) { s.tmp_3.fn = s.tmp_3.arg0.vtable.iface["vy"]; if (s.tmp_3.fn == null) { s.retval = s.tmp_3.arg0.fields["vy"]; } else if (!s.tmp_3.fn.isGetter) { s.retval = bind(s.tmp_3); } - else { s.callLocIdx = 179; s.pc = 24; return s.tmp_3; } + else { s.callLocIdx = 169; s.pc = 24; return s.tmp_3; } } case 24: r0 = s.retval; - s.vy___505188 = (r0); - r0 = s.s___505186.fields["flags"]; + s.vy___33040 = (r0); + r0 = s.s___33038.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); s.tmp_0 = r0; @@ -16919,14 +17445,14 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - r0 = pxsim_numops_toBoolDecr(s.vx___505187); + r0 = pxsim_numops_toBoolDecr(s.vx___33039); if (!r0) { step = 3; continue; } - r0 = (s.s___505186).fields["_vx"] = (0); + r0 = (s.s___33038).fields["_vx"] = (0); case 3: case 4: - r0 = pxsim_numops_toBoolDecr(s.vy___505188); + r0 = pxsim_numops_toBoolDecr(s.vy___33040); if (!r0) { step = 5; continue; } - r0 = (s.s___505186).fields["_vy"] = (0); + r0 = (s.s___33038).fields["_vy"] = (0); case 5: case 6: case 7: @@ -16944,48 +17470,48 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 19; continue; } - s.tmp_2 = r0 = s.vx___505187; + s.tmp_2 = r0 = s.vx___33039; r0 = pxsim_numops_toBool(s.tmp_2); if (r0) { step = 11; continue; } r0 = s.tmp_2; { step = 12; continue; } case 11: - r0 = s.vy___505188; + r0 = s.vy___33040; 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___505186; + s.tmp_4 = r0 = s.s___33038; r0 = pxsim_pxtrt_ldlocRef(s.caps[3]); s.tmp_6 = r0; - r0 = pxsim.Math_.imul(s.tmp_6, s.vx___505187); + r0 = pxsim.Math_.imul(s.tmp_6, s.vx___33039); s.tmp_5 = r0; r0 = (s.tmp_4).fields["_vx"] = (s.tmp_5); - s.tmp_0 = r0 = s.s___505186; + s.tmp_0 = r0 = s.s___33038; r0 = pxsim_pxtrt_ldlocRef(s.caps[4]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___505188); + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___33040); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); { step = 18; continue; } case 13: - r0 = pxsim_numops_toBoolDecr(s.vx___505187); + r0 = pxsim_numops_toBoolDecr(s.vx___33039); if (!r0) { step = 14; continue; } - s.tmp_0 = r0 = s.s___505186; + s.tmp_0 = r0 = s.s___33038; r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vx___505187); + r0 = pxsim.Math_.imul(s.tmp_2, s.vx___33039); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vx"] = (s.tmp_1); { step = 17; continue; } case 14: - r0 = pxsim_numops_toBoolDecr(s.vy___505188); + r0 = pxsim_numops_toBoolDecr(s.vy___33040); if (!r0) { step = 15; continue; } - s.tmp_0 = r0 = s.s___505186; + s.tmp_0 = r0 = s.s___33038; r0 = pxsim_pxtrt_ldlocRef(s.caps[2]); s.tmp_2 = r0; - r0 = pxsim.Math_.imul(s.tmp_2, s.vy___505188); + r0 = pxsim.Math_.imul(s.tmp_2, s.vy___33040); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_vy"] = (s.tmp_1); case 15: @@ -17002,12 +17528,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P505183.info = {"start":16077,"length":1171,"line":497,"column":44,"endLine":525,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} +controller_Controller___preUpdate_inline__P33035.info = {"start":9867,"length":1171,"line":308,"column":44,"endLine":336,"endColumn":13,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["controlledSprite"]} -function inline__P505183_mk(s) { +function controller_Controller___preUpdate_inline__P33035_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505183, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P33035, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17016,9 +17542,9 @@ function inline__P505183_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - s___505186: undefined, - vx___505187: undefined, - vy___505188: undefined, + s___33038: undefined, + vx___33039: undefined, + vy___33040: undefined, arg0: undefined, } } @@ -17026,7 +17552,7 @@ function inline__P505183_mk(s) { -function inline__P505240(s) { +function controller_Controller___preUpdate_inline__P33092(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17051,12 +17577,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P505240.info = {"start":17375,"length":42,"line":529,"column":28,"endLine":529,"endColumn":70,"fileName":"pxt_modules/game/controller.ts","functionName":"inline","argumentNames":["s"]} +controller_Controller___preUpdate_inline__P33092.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__P505240_mk(s) { +function controller_Controller___preUpdate_inline__P33092_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505240, depth: s.depth + 1, + parent: s, fn: controller_Controller___preUpdate_inline__P33092, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17068,7 +17594,7 @@ function inline__P505240_mk(s) { -function controller_Controller_down__P496701(s) { +function controller_Button_pressureLevel__P23686(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17083,25 +17609,57 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (4 - 1); + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); + r0 = pxsim.control.deviceDalVersion(); s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, 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__C23674_v0_1_mk(s); + s.tmp_3.arg0 = s.arg0; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C23674_VT)) failedCast(s.tmp_3.arg0); + s.tmp_3.fn = s.tmp_3.arg0.vtable.methods.isPressed; + s.pc = 6; return s.tmp_3; + case 6: + r0 = s.retval; + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 1; continue; } + r0 = 512; + { step = 2; continue; } + case 1: + r0 = 0; + case 2: + // jmp value (already in r0) + s.tmp_4 = r0; + r0 = s.tmp_4; + { step = 5; continue; } + { step = 4; continue; } + case 3: + r0 = s.arg0.fields["id"]; + s.tmp_5 = r0; + r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); + { step = 5; continue; } + case 4: + r0 = undefined; + case 5: + return leave(s, r0) default: oops() } } } -controller_Controller_down__P496701.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__P496701.isGetter = true; +controller_Button_pressureLevel__P23686.info = {"start":6453,"length":311,"line":192,"column":8,"endLine":199,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pressureLevel","argumentNames":["this"]} -function controller_Controller_down__P496701_mk(s) { +function controller_Button_pressureLevel__P23686_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_down__P496701, depth: s.depth + 1, + parent: s, fn: controller_Button_pressureLevel__P23686, depth: s.depth + 1, pc: 0, retval: undefined, 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, } } @@ -17109,7 +17667,7 @@ function controller_Controller_down__P496701_mk(s) { -function controller_Controller_button__P498704(s) { +function controller_Button_isPressed__P23685(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17121,37 +17679,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__C496689_VT)) failedCast(r0); - r0 = s.arg0.fields["buttons"]; - s.tmp_0 = r0; - r0 = (s.arg1 - 1); - s.tmp_1 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); + r0 = s.arg0.fields["_pressed"]; return leave(s, r0) default: oops() } } } -controller_Controller_button__P498704.info = {"start":11484,"length":105,"line":373,"column":8,"endLine":375,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"button","argumentNames":["this","button"]} +controller_Button_isPressed__P23685.info = {"start":6303,"length":57,"line":185,"column":8,"endLine":187,"endColumn":9,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"isPressed","argumentNames":["this"]} -function controller_Controller_button__P498704_mk(s) { +function controller_Button_isPressed__P23685_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_button__P498704, depth: s.depth + 1, + parent: s, fn: controller_Button_isPressed__P23685, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, arg0: undefined, - arg1: undefined, } } -function controller_Controller_up__P496700(s) { +function controller_Controller_down__P23635(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17166,22 +17716,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = (2 - 1); + r0 = (4 - 1); s.tmp_1 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_up__P496700.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__P496700.isGetter = true; +controller_Controller_down__P23635.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__P23635.isGetter = true; -function controller_Controller_up__P496700_mk(s) { +function controller_Controller_down__P23635_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_up__P496700, depth: s.depth + 1, + parent: s, fn: controller_Controller_down__P23635, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17192,7 +17742,7 @@ function controller_Controller_up__P496700_mk(s) { -function controller_Controller_right__P496699(s) { +function controller_Controller_button__P26004(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17204,36 +17754,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, controller_Controller__C496689_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = (3 - 1); + r0 = (s.arg1 - 1); s.tmp_1 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); - return leaveAccessor(s, r0) + return leave(s, r0) default: oops() } } } -controller_Controller_right__P496699.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__P496699.isGetter = true; +controller_Controller_button__P26004.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 controller_Controller_right__P496699_mk(s) { +function controller_Controller_button__P26004_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_right__P496699, depth: s.depth + 1, + parent: s, fn: controller_Controller_button__P26004, 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__P496698(s) { +function controller_Controller_up__P23634(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17248,22 +17799,22 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = (1 - 1); + r0 = (2 - 1); s.tmp_1 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_left__P496698.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__P496698.isGetter = true; +controller_Controller_up__P23634.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__P23634.isGetter = true; -function controller_Controller_left__P496698_mk(s) { +function controller_Controller_up__P23634_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_left__P496698, depth: s.depth + 1, + parent: s, fn: controller_Controller_up__P23634, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17274,7 +17825,7 @@ function controller_Controller_left__P496698_mk(s) { -function controller_Controller__controlledSprites__P496695(s) { +function controller_Controller_right__P23633(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17286,43 +17837,36 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P497302_mk(s); - s.callLocIdx = 157; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); - r0 = undefined; - return leave(s, r0) + r0 = (3 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); + return leaveAccessor(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P496695.info = {"start":8697,"length":134,"line":272,"column":8,"endLine":274,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"_controlledSprites","argumentNames":["this","cps"]} +controller_Controller_right__P23633.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__P23633.isGetter = true; -function controller_Controller__controlledSprites__P496695_mk(s) { +function controller_Controller_right__P23633_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P496695, depth: s.depth + 1, + parent: s, fn: controller_Controller_right__P23633, 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__P496694(s) { +function controller_Controller_left__P23632(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17337,30 +17881,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); - s.tmp_1 = game_currentScene__P497302_mk(s); - s.callLocIdx = 156; s.pc = 1; return s.tmp_1; - case 1: - r0 = s.retval; - r0 = r0.fields["controlledSprites"]; + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); + r0 = s.arg0.fields["buttons"]; s.tmp_0 = r0; - r0 = s.arg0.fields["playerIndex"]; - s.tmp_2 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_2); + r0 = (1 - 1); + s.tmp_1 = r0; + r0 = pxsim_Array__getAt(s.tmp_0, s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -controller_Controller__controlledSprites__P496694.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__P496694.isGetter = true; +controller_Controller_left__P23632.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__P23632.isGetter = true; -function controller_Controller__controlledSprites__P496694_mk(s) { +function controller_Controller_left__P23632_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller__controlledSprites__P496694, depth: s.depth + 1, + parent: s, fn: controller_Controller_left__P23632, 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, } } @@ -17368,7 +17907,7 @@ function controller_Controller__controlledSprites__P496694_mk(s) { -function controller_Button_pressureLevel__P496679(s) { +function controller_Controller__controlledSprites__P23629(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17380,68 +17919,43 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_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__C496669_v0_1_mk(s); - s.tmp_3.arg0 = s.arg0; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C496669_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: + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P24380_mk(s); + s.callLocIdx = 147; 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_numops_toBoolDecr(s.tmp_2); - if (!r0) { step = 1; continue; } - r0 = 512; - { step = 2; continue; } - case 1: - r0 = 0; - case 2: - // jmp value (already in r0) - s.tmp_4 = r0; - r0 = s.tmp_4; - { step = 5; continue; } - { step = 4; continue; } - case 3: - r0 = s.arg0.fields["id"]; - s.tmp_5 = r0; - r0 = pxsim_pxtcore.pressureLevelByButtonId(s.tmp_5, -1); - { step = 5; continue; } - case 4: + r0 = pxsim_Array_.setAt(s.tmp_0, s.tmp_2, s.arg1); r0 = undefined; - case 5: return leave(s, r0) default: oops() } } } -controller_Button_pressureLevel__P496679.info = {"start":4279,"length":311,"line":139,"column":8,"endLine":146,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"pressureLevel","argumentNames":["this"]} +controller_Controller__controlledSprites__P23629.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 controller_Button_pressureLevel__P496679_mk(s) { +function controller_Controller__controlledSprites__P23629_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_pressureLevel__P496679, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P23629, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - tmp_3: undefined, - tmp_4: undefined, - tmp_5: undefined, arg0: undefined, + arg1: undefined, } } -function controller_Button_isPressed__P496678(s) { +function controller_Controller__controlledSprites__P23628(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17456,18 +17970,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_VT)) failedCast(r0); - r0 = s.arg0.fields["_pressed"]; - return leave(s, r0) + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); + s.tmp_1 = game_currentScene__P24380_mk(s); + s.callLocIdx = 146; 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() } } } -controller_Button_isPressed__P496678.info = {"start":4129,"length":57,"line":132,"column":8,"endLine":134,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"isPressed","argumentNames":["this"]} +controller_Controller__controlledSprites__P23628.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__P23628.isGetter = true; -function controller_Button_isPressed__P496678_mk(s) { +function controller_Controller__controlledSprites__P23628_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_isPressed__P496678, depth: s.depth + 1, + parent: s, fn: controller_Controller__controlledSprites__P23628, 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, } } @@ -17475,7 +18001,7 @@ function controller_Button_isPressed__P496678_mk(s) { -function Fx_imul__P494912(s) { +function Fx_imul__P21856(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17494,12 +18020,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_imul__P494912.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} +Fx_imul__P21856.info = {"start":1010,"length":130,"line":32,"column":4,"endLine":34,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"imul","argumentNames":["a","b"]} -function Fx_imul__P494912_mk(s) { +function Fx_imul__P21856_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_imul__P494912, depth: s.depth + 1, + parent: s, fn: Fx_imul__P21856, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -17509,7 +18035,7 @@ function Fx_imul__P494912_mk(s) { -function power_checkDeepSleep__P496472(s) { +function power_checkDeepSleep__P23426(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17519,13 +18045,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___503925 = undefined; - s.to___503928 = undefined; - s.tmp_0 = power_init__P498603_mk(s); + s.p___31774 = undefined; + s.to___31777 = undefined; + s.tmp_0 = power_init__P25915_mk(s); s.callLocIdx = 74; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.tmp_0 = r0 = globals._poked___498601; + s.tmp_0 = r0 = globals._poked___25913; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 1; continue; } r0 = s.tmp_0; @@ -17535,8 +18061,8 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_1 = r0; - s.p___503925 = (s.tmp_1); - s.tmp_0 = r0 = globals._timeout___498602; + s.p___31774 = (s.tmp_1); + s.tmp_0 = r0 = globals._timeout___25914; r0 = pxsim_numops_toBool(s.tmp_0); if (!r0) { step = 3; continue; } r0 = s.tmp_0; @@ -17546,8 +18072,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_1 = r0; - s.to___503928 = (s.tmp_1); - r0 = (s.to___503928 > 0); + s.to___31777 = (s.tmp_1); + r0 = (s.to___31777 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 5; continue; } @@ -17556,9 +18082,9 @@ switch (step) { case 5: r0 = pxsim.control.millis(); s.tmp_2 = r0; - r0 = (s.tmp_2 - s.p___503925); + r0 = (s.tmp_2 - s.p___31774); s.tmp_1 = r0; - r0 = (s.tmp_1 > s.to___503928); + r0 = (s.tmp_1 > s.to___31777); case 6: // jmp value (already in r0) s.tmp_3 = r0; @@ -17584,12 +18110,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -power_checkDeepSleep__P496472.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} +power_checkDeepSleep__P23426.info = {"start":1087,"length":298,"line":36,"column":4,"endLine":46,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"checkDeepSleep","argumentNames":[]} -function power_checkDeepSleep__P496472_mk(s) { +function power_checkDeepSleep__P23426_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_checkDeepSleep__P496472, depth: s.depth + 1, + parent: s, fn: power_checkDeepSleep__P23426, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17598,15 +18124,15 @@ function power_checkDeepSleep__P496472_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - p___503925: undefined, - to___503928: undefined, + p___31774: undefined, + to___31777: undefined, } } -function power_init__P498603(s) { +function power_init__P25915(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17616,7 +18142,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals._timeout___498602 !== undefined); + r0 = (globals._timeout___25914 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -17626,21 +18152,21 @@ switch (step) { r0 = pxsim_pxtcore.getConfig(212, -1); s.tmp_1 = r0; r0 = (s.tmp_1 * 1000); - globals._timeout___498602 = (r0); - r0 = (globals._timeout___498602 > 0); + globals._timeout___25914 = (r0); + r0 = (globals._timeout___25914 > 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___498602 < 300000); + r0 = (globals._timeout___25914 < 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___498602 = (300000); + globals._timeout___25914 = (300000); case 5: case 6: case 7: @@ -17648,12 +18174,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -power_init__P498603.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} +power_init__P25915.info = {"start":1610,"length":376,"line":57,"column":4,"endLine":66,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"init","argumentNames":[]} -function power_init__P498603_mk(s) { +function power_init__P25915_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_init__P498603, depth: s.depth + 1, + parent: s, fn: power_init__P25915, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17663,7 +18189,7 @@ function power_init__P498603_mk(s) { -function power_poke__P496471(s) { +function power_poke__P23425(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17673,22 +18199,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = power_init__P498603_mk(s); + s.tmp_0 = power_init__P25915_mk(s); s.callLocIdx = 73; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = pxsim.control.millis(); - globals._poked___498601 = (r0); + globals._poked___25913 = (r0); r0 = undefined; return leave(s, r0) default: oops() } } } -power_poke__P496471.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} +power_poke__P23425.info = {"start":795,"length":81,"line":26,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/power/power.ts","functionName":"poke","argumentNames":[]} -function power_poke__P496471_mk(s) { +function power_poke__P23425_mk(s) { checkStack(s.depth); return { - parent: s, fn: power_poke__P496471, depth: s.depth + 1, + parent: s, fn: power_poke__P23425, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -17697,7 +18223,7 @@ function power_poke__P496471_mk(s) { -function control_EventContext_deltaTime__P495145(s) { +function control_EventContext_deltaTime__P22095(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17712,20 +18238,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C495140_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C22090_VT)) failedCast(r0); r0 = s.arg0.fields["deltaTimeMillis"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 1000); return leaveAccessor(s, r0) default: oops() } } } -control_EventContext_deltaTime__P495145.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__P495145.isGetter = true; +control_EventContext_deltaTime__P22095.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__P22095.isGetter = true; -function control_EventContext_deltaTime__P495145_mk(s) { +function control_EventContext_deltaTime__P22095_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_deltaTime__P495145, depth: s.depth + 1, + parent: s, fn: control_EventContext_deltaTime__P22095, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -17735,7 +18261,7 @@ function control_EventContext_deltaTime__P495145_mk(s) { -function scene_Scene_constructor__P497210(s) { +function scene_Scene_constructor__P24288(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17752,36 +18278,36 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C497189_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Scene__C24266_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__C496950_VT); + r0 = pxsim_pxtcore_mkClassInstance(ArcadePhysicsEngine__C24001_VT); s.tmp_0 = r0; - s.tmp_1 = ArcadePhysicsEngine_constructor__P496951_mk(s); + s.tmp_1 = ArcadePhysicsEngine_constructor__P24002_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 = 772; s.pc = 1; return s.tmp_1; + s.callLocIdx = 882; 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__C497130_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Camera__C24207_VT); s.tmp_0 = r0; - s.tmp_1 = scene_Camera_constructor__P497134_mk(s); + s.tmp_1 = scene_Camera_constructor__P24211_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 773; s.pc = 2; return s.tmp_1; + s.callLocIdx = 883; 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__C497042_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Background__C24095_VT); s.tmp_0 = r0; - s.tmp_1 = scene_Background_constructor__P497046_mk(s); + s.tmp_1 = scene_Background_constructor__P24099_mk(s); s.tmp_1.arg0 = s.tmp_0; r0 = s.arg0.fields["camera"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 774; s.pc = 3; return s.tmp_1; + s.callLocIdx = 884; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["background"] = (s.tmp_0); @@ -17826,6 +18352,10 @@ switch (step) { 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); @@ -17834,12 +18364,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Scene_constructor__P497210.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"]} +scene_Scene_constructor__P24288.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 scene_Scene_constructor__P497210_mk(s) { +function scene_Scene_constructor__P24288_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Scene_constructor__P497210, depth: s.depth + 1, + parent: s, fn: scene_Scene_constructor__P24288, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17852,7 +18382,7 @@ function scene_Scene_constructor__P497210_mk(s) { -function scene_Camera_constructor__P497134(s) { +function scene_Camera_constructor__P24211(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17867,7 +18397,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C497130_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); r0 = (s.arg0).fields["_offsetX"] = (0); r0 = (s.arg0).fields["_offsetY"] = (0); r0 = (s.arg0).fields["drawOffsetX"] = (0); @@ -17876,12 +18406,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Camera_constructor__P497134.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} +scene_Camera_constructor__P24211.info = {"start":456,"length":156,"line":15,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/camera.ts","functionName":"inline","argumentNames":["this"]} -function scene_Camera_constructor__P497134_mk(s) { +function scene_Camera_constructor__P24211_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_constructor__P497134, depth: s.depth + 1, + parent: s, fn: scene_Camera_constructor__P24211, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -17890,7 +18420,7 @@ function scene_Camera_constructor__P497134_mk(s) { -function scene_Background_constructor__P497046(s) { +function scene_Background_constructor__P24099(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17906,7 +18436,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Background__C497042_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Background__C24095_VT)) failedCast(r0); r0 = (s.arg0).fields["color"] = (0); r0 = (s.arg0).fields["camera"] = (s.arg1); s.tmp_0 = r0 = s.arg0; @@ -17917,12 +18447,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Background_constructor__P497046.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} +scene_Background_constructor__P24099.info = {"start":367,"length":132,"line":20,"column":8,"endLine":24,"endColumn":9,"fileName":"pxt_modules/game/background.ts","functionName":"inline","argumentNames":["this","camera"]} -function scene_Background_constructor__P497046_mk(s) { +function scene_Background_constructor__P24099_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Background_constructor__P497046, depth: s.depth + 1, + parent: s, fn: scene_Background_constructor__P24099, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -17934,7 +18464,7 @@ function scene_Background_constructor__P497046_mk(s) { -function ArcadePhysicsEngine_constructor__P496951(s) { +function ArcadePhysicsEngine_constructor__P24002(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -17952,48 +18482,48 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_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__C496869_VT); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteMap__C23920_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_SpriteMap_constructor__P496870_mk(s); + s.tmp_1 = sprites_SpriteMap_constructor__P23921_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 435; s.pc = 1; return s.tmp_1; + s.callLocIdx = 537; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = (s.arg0).fields["map"] = (s.tmp_0); - s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P496953_mk(s); + s.tmp_0 = ArcadePhysicsEngine_maxSpeed__P24004_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 436; s.pc = 2; return s.tmp_0; + s.callLocIdx = 538; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_maxStep__P496957_mk(s); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P24008_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 437; s.pc = 3; return s.tmp_0; + s.callLocIdx = 539; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = ArcadePhysicsEngine_minStep__P496955_mk(s); + s.tmp_0 = ArcadePhysicsEngine_minStep__P24006_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 438; s.pc = 4; return s.tmp_0; + s.callLocIdx = 540; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constructor__P496951.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"]} +ArcadePhysicsEngine_constructor__P24002.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 ArcadePhysicsEngine_constructor__P496951_mk(s) { +function ArcadePhysicsEngine_constructor__P24002_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constructor__P496951, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constructor__P24002, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18007,7 +18537,7 @@ function ArcadePhysicsEngine_constructor__P496951_mk(s) { -function ArcadePhysicsEngine_maxStep__P496957(s) { +function ArcadePhysicsEngine_maxStep__P24008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18023,7 +18553,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -18034,12 +18564,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P496957.info = {"start":2329,"length":67,"line":88,"column":4,"endLine":90,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxStep","argumentNames":["this","v"]} +ArcadePhysicsEngine_maxStep__P24008.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 ArcadePhysicsEngine_maxStep__P496957_mk(s) { +function ArcadePhysicsEngine_maxStep__P24008_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P496957, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P24008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18052,7 +18582,7 @@ function ArcadePhysicsEngine_maxStep__P496957_mk(s) { -function ArcadePhysicsEngine_maxStep__P496956(s) { +function ArcadePhysicsEngine_maxStep__P24007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18067,7 +18597,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = s.arg0.fields["maxSingleStep"]; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); @@ -18076,13 +18606,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxStep__P496956.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__P496956.isGetter = true; +ArcadePhysicsEngine_maxStep__P24007.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__P24007.isGetter = true; -function ArcadePhysicsEngine_maxStep__P496956_mk(s) { +function ArcadePhysicsEngine_maxStep__P24007_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxStep__P496956, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxStep__P24007, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18093,7 +18623,7 @@ function ArcadePhysicsEngine_maxStep__P496956_mk(s) { -function Fx_toInt__P494921(s) { +function Fx_toInt__P21867(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18113,12 +18643,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_toInt__P494921.info = {"start":2144,"length":86,"line":68,"column":4,"endLine":70,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} +Fx_toInt__P21867.info = {"start":2379,"length":86,"line":74,"column":4,"endLine":76,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toInt","argumentNames":["v"]} -function Fx_toInt__P494921_mk(s) { +function Fx_toInt__P21867_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toInt__P494921, depth: s.depth + 1, + parent: s, fn: Fx_toInt__P21867, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -18128,7 +18658,7 @@ function Fx_toInt__P494921_mk(s) { -function ArcadePhysicsEngine_minStep__P496955(s) { +function ArcadePhysicsEngine_minStep__P24006(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18144,7 +18674,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -18155,12 +18685,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P496955.info = {"start":2176,"length":67,"line":80,"column":4,"endLine":82,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"minStep","argumentNames":["this","v"]} +ArcadePhysicsEngine_minStep__P24006.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 ArcadePhysicsEngine_minStep__P496955_mk(s) { +function ArcadePhysicsEngine_minStep__P24006_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P496955, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P24006, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18173,7 +18703,7 @@ function ArcadePhysicsEngine_minStep__P496955_mk(s) { -function ArcadePhysicsEngine_minStep__P496954(s) { +function ArcadePhysicsEngine_minStep__P24005(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18188,7 +18718,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = s.arg0.fields["minSingleStep"]; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); @@ -18197,13 +18727,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_minStep__P496954.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__P496954.isGetter = true; +ArcadePhysicsEngine_minStep__P24005.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__P24005.isGetter = true; -function ArcadePhysicsEngine_minStep__P496954_mk(s) { +function ArcadePhysicsEngine_minStep__P24005_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_minStep__P496954, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_minStep__P24005, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18214,7 +18744,7 @@ function ArcadePhysicsEngine_minStep__P496954_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P496953(s) { +function ArcadePhysicsEngine_maxSpeed__P24004(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18230,7 +18760,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -18247,12 +18777,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P496953.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} +ArcadePhysicsEngine_maxSpeed__P24004.info = {"start":1963,"length":127,"line":71,"column":4,"endLine":74,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"maxSpeed","argumentNames":["this","v"]} -function ArcadePhysicsEngine_maxSpeed__P496953_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P24004_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P496953, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P24004, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18265,7 +18795,7 @@ function ArcadePhysicsEngine_maxSpeed__P496953_mk(s) { -function Fx_neg__P494906(s) { +function Fx_neg__P21850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18283,12 +18813,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_neg__P494906.info = {"start":311,"length":88,"line":14,"column":4,"endLine":16,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"neg","argumentNames":["a"]} +Fx_neg__P21850.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__P494906_mk(s) { +function Fx_neg__P21850_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_neg__P494906, depth: s.depth + 1, + parent: s, fn: Fx_neg__P21850, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -18297,7 +18827,7 @@ function Fx_neg__P494906_mk(s) { -function ArcadePhysicsEngine_maxSpeed__P496952(s) { +function ArcadePhysicsEngine_maxSpeed__P24003(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18312,7 +18842,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = s.arg0.fields["maxVelocity"]; s.tmp_0 = r0; r0 = (s.tmp_0 + 128); @@ -18321,13 +18851,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -ArcadePhysicsEngine_maxSpeed__P496952.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__P496952.isGetter = true; +ArcadePhysicsEngine_maxSpeed__P24003.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__P24003.isGetter = true; -function ArcadePhysicsEngine_maxSpeed__P496952_mk(s) { +function ArcadePhysicsEngine_maxSpeed__P24003_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_maxSpeed__P496952, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_maxSpeed__P24003, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18338,7 +18868,7 @@ function ArcadePhysicsEngine_maxSpeed__P496952_mk(s) { -function PhysicsEngine_constructor__P496935(s) { +function PhysicsEngine_constructor__P23986(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18353,17 +18883,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C496934_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C23985_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_constructor__P496935.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} +PhysicsEngine_constructor__P23986.info = {"start":26,"length":21,"line":1,"column":4,"endLine":2,"endColumn":5,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":["this"]} -function PhysicsEngine_constructor__P496935_mk(s) { +function PhysicsEngine_constructor__P23986_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_constructor__P496935, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_constructor__P23986, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -18372,7 +18902,7 @@ function PhysicsEngine_constructor__P496935_mk(s) { -function sprites_SpriteMap_constructor__P496870(s) { +function sprites_SpriteMap_constructor__P23921(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18387,7 +18917,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C496869_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -18396,12 +18926,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_constructor__P496870.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} +sprites_SpriteMap_constructor__P23921.info = {"start":237,"length":56,"line":8,"column":8,"endLine":10,"endColumn":9,"fileName":"pxt_modules/game/spritemap.ts","functionName":"inline","argumentNames":["this"]} -function sprites_SpriteMap_constructor__P496870_mk(s) { +function sprites_SpriteMap_constructor__P23921_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_constructor__P496870, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_constructor__P23921, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18412,7 +18942,7 @@ function sprites_SpriteMap_constructor__P496870_mk(s) { -function music_Melody_constructor__P496357(s) { +function music_Melody_constructor__P23310(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18428,18 +18958,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C496354_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C23307_VT)) failedCast(r0); r0 = (s.arg0).fields["_text"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -music_Melody_constructor__P496357.info = {"start":6328,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} +music_Melody_constructor__P23310.info = {"start":6328,"length":67,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":["this","text"]} -function music_Melody_constructor__P496357_mk(s) { +function music_Melody_constructor__P23310_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_constructor__P496357, depth: s.depth + 1, + parent: s, fn: music_Melody_constructor__P23310, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -18449,7 +18979,7 @@ function music_Melody_constructor__P496357_mk(s) { -function control_pushEventContext__P495154(s) { +function control_pushEventContext__P22104(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18459,63 +18989,63 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___505555 = undefined; - s.n___505561 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___498534); + s.ctx___33407 = undefined; + s.n___33413 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___25846); 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___498534 = (r0); + globals.eventContexts___25846 = (r0); case 1: case 2: - s.tmp_0 = control_eventContext__P495153_mk(s); + s.tmp_0 = control_eventContext__P22103_mk(s); s.callLocIdx = 54; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.ctx___505555 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___505555); + s.ctx___33407 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___33407); if (!r0) { step = 3; continue; } - s.tmp_0 = control_EventContext_unregister__P495147_mk(s); - s.tmp_0.arg0 = s.ctx___505555; + s.tmp_0 = control_EventContext_unregister__P22097_mk(s); + s.tmp_0.arg0 = s.ctx___33407; s.callLocIdx = 55; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C495140_VT); + r0 = pxsim_pxtcore_mkClassInstance(control_EventContext__C22090_VT); s.tmp_0 = r0; - s.tmp_1 = control_EventContext_constructor__P495144_mk(s); + s.tmp_1 = control_EventContext_constructor__P22094_mk(s); s.tmp_1.arg0 = s.tmp_0; s.callLocIdx = 56; s.pc = 7; return s.tmp_1; case 7: r0 = s.retval; - s.n___505561 = (s.tmp_0); - r0 = pxsim_Array__push(globals.eventContexts___498534, s.n___505561); - r0 = s.n___505561; + s.n___33413 = (s.tmp_0); + r0 = pxsim_Array__push(globals.eventContexts___25846, s.n___33413); + r0 = s.n___33413; return leave(s, r0) default: oops() } } } -control_pushEventContext__P495154.info = {"start":7123,"length":340,"line":216,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} +control_pushEventContext__P22104.info = {"start":7123,"length":340,"line":216,"column":4,"endLine":227,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"pushEventContext","argumentNames":[]} -function control_pushEventContext__P495154_mk(s) { +function control_pushEventContext__P22104_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_pushEventContext__P495154, depth: s.depth + 1, + parent: s, fn: control_pushEventContext__P22104, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - ctx___505555: undefined, - n___505561: undefined, + ctx___33407: undefined, + n___33413: undefined, } } -function control_EventContext_unregister__P495147(s) { +function control_EventContext_unregister__P22097(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18525,37 +19055,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___505590 = undefined; - s.unnamed1732___U1 = undefined; - s.unnamed1733___U2 = undefined; + s.h___33442 = undefined; + s.unnamed150___U1 = undefined; + s.unnamed151___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C495140_VT)) failedCast(r0); - s.h___505590 = (undefined); + if (!checkSubtype(r0, control_EventContext__C22090_VT)) failedCast(r0); + s.h___33442 = (undefined); r0 = s.arg0.fields["handlers"]; - s.unnamed1732___U1 = (r0); - s.unnamed1733___U2 = (0); + s.unnamed150___U1 = (r0); + s.unnamed151___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1733___U2; - r0 = pxsim_Array__length(s.unnamed1732___U1); + s.tmp_0 = r0 = s.unnamed151___U2; + r0 = pxsim_Array__length(s.unnamed150___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed1732___U1, s.unnamed1733___U2); - s.h___505590 = (r0); - s.tmp_2 = control_EventHandler_unregister__P498528_mk(s); - s.tmp_2.arg0 = s.h___505590; + r0 = pxsim_Array__getAt(s.unnamed150___U1, s.unnamed151___U2); + s.h___33442 = (r0); + s.tmp_2 = control_EventHandler_unregister__P25840_mk(s); + s.tmp_2.arg0 = s.h___33442; s.callLocIdx = 50; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - r0 = (s.unnamed1733___U2 + 1); - s.unnamed1733___U2 = (r0); + r0 = (s.unnamed151___U2 + 1); + s.unnamed151___U2 = (r0); { step = 1; continue; } case 2: - s.unnamed1732___U1 = (undefined); + s.unnamed150___U1 = (undefined); s.tmp_0 = r0 = s.arg0; r0 = s.tmp_0.fields["frameWorker"]; s.tmp_2 = r0; @@ -18566,19 +19096,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventContext_unregister__P495147.info = {"start":4534,"length":131,"line":137,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +control_EventContext_unregister__P22097.info = {"start":4534,"length":131,"line":137,"column":8,"endLine":141,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function control_EventContext_unregister__P495147_mk(s) { +function control_EventContext_unregister__P22097_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_unregister__P495147, depth: s.depth + 1, + parent: s, fn: control_EventContext_unregister__P22097, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___505590: undefined, - unnamed1732___U1: undefined, - unnamed1733___U2: undefined, + h___33442: undefined, + unnamed150___U1: undefined, + unnamed151___U2: undefined, arg0: undefined, } } @@ -18586,7 +19116,7 @@ function control_EventContext_unregister__P495147_mk(s) { -function control_EventHandler_unregister__P498528(s) { +function control_EventHandler_unregister__P25840(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18601,24 +19131,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventHandler__C498526_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventHandler__C25838_VT)) failedCast(r0); r0 = s.arg0.fields["src"]; s.tmp_0 = r0; r0 = s.arg0.fields["value"]; s.tmp_1 = r0; r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; - r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P498530, s.tmp_2); + r0 = pxsim.control.internalOnEvent(s.tmp_0, s.tmp_1, control_doNothing__P25842, s.tmp_2); r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventHandler_unregister__P498528.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} +control_EventHandler_unregister__P25840.info = {"start":1136,"length":106,"line":36,"column":8,"endLine":38,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"unregister","argumentNames":["this"]} -function control_EventHandler_unregister__P498528_mk(s) { +function control_EventHandler_unregister__P25840_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventHandler_unregister__P498528, depth: s.depth + 1, + parent: s, fn: control_EventHandler_unregister__P25840, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18630,7 +19160,7 @@ function control_EventHandler_unregister__P498528_mk(s) { -function control_doNothing__P498530(s) { +function control_doNothing__P25842(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18644,12 +19174,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_doNothing__P498530.info = {"start":1254,"length":24,"line":41,"column":4,"endLine":41,"endColumn":28,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"doNothing","argumentNames":[]} +control_doNothing__P25842.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__P498530_mk(s) { +function control_doNothing__P25842_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_doNothing__P498530, depth: s.depth + 1, + parent: s, fn: control_doNothing__P25842, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -18657,7 +19187,7 @@ function control_doNothing__P498530_mk(s) { -function control_EventContext_constructor__P495144(s) { +function control_EventContext_constructor__P22094(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18672,7 +19202,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C495140_VT)) failedCast(r0); + if (!checkSubtype(r0, control_EventContext__C22090_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -18682,26 +19212,26 @@ switch (step) { 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___495142); + r0 = pxsim_numops_toBoolDecr(globals.control_EventContext_lastStats___22092); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } r0 = pxsim_String_.mkEmpty(); - globals.control_EventContext_lastStats___495142 = (r0); + globals.control_EventContext_lastStats___22092 = (r0); case 1: case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -control_EventContext_constructor__P495144.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} +control_EventContext_constructor__P22094.info = {"start":1740,"length":347,"line":58,"column":8,"endLine":68,"endColumn":9,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"inline","argumentNames":["this"]} -function control_EventContext_constructor__P495144_mk(s) { +function control_EventContext_constructor__P22094_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_constructor__P495144, depth: s.depth + 1, + parent: s, fn: control_EventContext_constructor__P22094, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -18712,7 +19242,7 @@ function control_EventContext_constructor__P495144_mk(s) { -function controller_pauseUntilAnyButtonIsPressed__P496719(s) { +function controller_pauseUntilAnyButtonIsPressed__P23690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18732,98 +19262,20 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_pauseUntilAnyButtonIsPressed__P496719.info = {"start":19144,"length":96,"line":583,"column":4,"endLine":585,"endColumn":5,"fileName":"pxt_modules/game/controller.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} - -function controller_pauseUntilAnyButtonIsPressed__P496719_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P496719, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function game_setWaitAnyButton__P497303(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.lambdaArgs = null; - } - globals.__waitAnyButton___498877 = (s.arg0); - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -game_setWaitAnyButton__P497303.info = {"start":878,"length":83,"line":31,"column":4,"endLine":33,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"setWaitAnyButton","argumentNames":["f"]} - -function game_setWaitAnyButton__P497303_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: game_setWaitAnyButton__P497303, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function Math_abs__P494879(s) { -let r0 = s.r0, 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 = 2; continue; } - case 1: - r0 = s.arg0; - case 2: - // jmp value (already in r0) - s.tmp_1 = r0; - r0 = s.tmp_1; - return leave(s, r0) - default: oops() -} } } -Math_abs__P494879.info = {"start":15630,"length":77,"line":524,"column":4,"endLine":526,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"abs","argumentNames":["x"]} +controller_pauseUntilAnyButtonIsPressed__P23690.info = {"start":9968,"length":96,"line":287,"column":4,"endLine":289,"endColumn":5,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"pauseUntilAnyButtonIsPressed","argumentNames":[]} -function Math_abs__P494879_mk(s) { +function controller_pauseUntilAnyButtonIsPressed__P23690_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_abs__P494879, depth: s.depth + 1, + parent: s, fn: controller_pauseUntilAnyButtonIsPressed__P23690, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, } } -function Math_sign__P494880(s) { +function game_setWaitAnyButton__P24381(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18837,81 +19289,26 @@ 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; - { 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() -} } } -Math_sign__P494880.info = {"start":15865,"length":125,"line":532,"column":4,"endLine":536,"endColumn":5,"fileName":"pxt_modules/base/pxt-helpers.ts","functionName":"sign","argumentNames":["x"]} - -function Math_sign__P494880_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Math_sign__P494880, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, - arg0: undefined, -} } - - - - - -function texteffects_TextEffect_constructor__P497603(s) { -let r0 = s.r0, 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, texteffects_TextEffect__C497601_VT)) failedCast(r0); - r0 = (s.arg0).fields["getState"] = (s.arg1); + globals.__waitAnyButton___26201 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -texteffects_TextEffect_constructor__P497603.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__P24381.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__P497603_mk(s) { +function game_setWaitAnyButton__P24381_mk(s) { checkStack(s.depth); return { - parent: s, fn: texteffects_TextEffect_constructor__P497603, depth: s.depth + 1, + parent: s, fn: game_setWaitAnyButton__P24381, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, - arg1: undefined, } } -function Math_FastRandom_constructor__P497358(s) { +function Math_FastRandom_constructor__P24437(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -18927,7 +19324,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C497356_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C24435_VT)) failedCast(r0); r0 = (s.arg1 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -18942,12 +19339,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_constructor__P497358.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__P24437.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__P497358_mk(s) { +function Math_FastRandom_constructor__P24437_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_constructor__P497358, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_constructor__P24437, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -18958,74 +19355,7 @@ function Math_FastRandom_constructor__P497358_mk(s) { -function control_ramSize__P495091(s) { -let r0 = s.r0, 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__P495091.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__P495091_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control_ramSize__P495091, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - tmp_1: undefined, -} } - - - - - -function control__ramSize__P498497(s) { -let r0 = s.r0, 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__P498497.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__P498497_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: control__ramSize__P498497, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, -} } - - - - - -function game_consoleOverlay_listener__P499206(s) { +function game_consoleOverlay_listener__P26530(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19040,7 +19370,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___499171); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___26495); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -19060,39 +19390,39 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_4 = helpers_arrayForEach__P494861_mk(s); - s.tmp_5 = helpers_arrayFilter__P494862_mk(s); - s.tmp_6 = helpers_stringSplit__P494873_mk(s); + s.tmp_4 = helpers_arrayForEach__P21804_mk(s); + s.tmp_5 = helpers_arrayFilter__P21805_mk(s); + s.tmp_6 = helpers_stringSplit__P21817_mk(s); s.tmp_6.arg0 = s.arg1; s.tmp_6.arg1 = "\n"; s.tmp_6.arg2 = undefined; - s.callLocIdx = 998; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1106; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; s.tmp_5.arg0 = r0; - s.tmp_5.arg1 = inline__P505817; - s.callLocIdx = 999; s.pc = 9; return s.tmp_5; + s.tmp_5.arg1 = forEach_inline__P33643; + s.callLocIdx = 1107; s.pc = 9; return s.tmp_5; case 9: r0 = s.retval; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = inline__P505822; - s.callLocIdx = 1001; s.pc = 8; return s.tmp_4; + s.tmp_4.arg1 = game_consoleOverlay_listener_inline__P33648; + s.callLocIdx = 1109; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; - r0 = pxsim_Array__length(globals.consoleStrings___499171); + r0 = pxsim_Array__length(globals.consoleStrings___26495); s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.consoleLines___499184); + r0 = (s.tmp_1 > globals.consoleLines___26508); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = helpers_arraySplice__P494852_mk(s); - s.tmp_2.arg0 = globals.consoleStrings___499171; + s.tmp_2 = helpers_arraySplice__P21795_mk(s); + s.tmp_2.arg0 = globals.consoleStrings___26495; s.tmp_2.arg1 = 0; - r0 = pxsim_Array__length(globals.consoleStrings___499171); + r0 = pxsim_Array__length(globals.consoleStrings___26495); s.tmp_3 = r0; - r0 = (s.tmp_3 - globals.consoleLines___499184); + r0 = (s.tmp_3 - globals.consoleLines___26508); s.tmp_2.arg2 = r0; - s.callLocIdx = 1002; s.pc = 11; return s.tmp_2; + s.callLocIdx = 1110; s.pc = 11; return s.tmp_2; case 11: r0 = s.retval; case 5: @@ -19102,12 +19432,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_listener__P499206.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__P26530.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__P499206_mk(s) { +function game_consoleOverlay_listener__P26530_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_listener__P499206, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener__P26530, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19124,7 +19454,7 @@ function game_consoleOverlay_listener__P499206_mk(s) { -function inline__P505817(s) { +function forEach_inline__P33643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19148,12 +19478,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P505817.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__P33643.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__P505817_mk(s) { +function forEach_inline__P33643_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505817, depth: s.depth + 1, + parent: s, fn: forEach_inline__P33643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19165,7 +19495,7 @@ function inline__P505817_mk(s) { -function inline__P505822(s) { +function game_consoleOverlay_listener_inline__P33648(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19175,45 +19505,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.j___505824 = undefined; + s.j___33650 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.j___505824 = (0); + s.j___33650 = (0); case 1: - s.tmp_1 = r0 = s.j___505824; + s.tmp_1 = r0 = s.j___33650; 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___499171; - s.tmp_5 = helpers_stringSlice__P494871_mk(s); + s.tmp_3 = r0 = globals.consoleStrings___26495; + s.tmp_5 = helpers_stringSlice__P21814_mk(s); s.tmp_5.arg0 = s.arg0; - s.tmp_5.arg1 = s.j___505824; - r0 = (s.j___505824 + globals.consoleColumns___499194); + s.tmp_5.arg1 = s.j___33650; + r0 = (s.j___33650 + globals.consoleColumns___26518); s.tmp_5.arg2 = r0; - s.callLocIdx = 1000; s.pc = 3; return s.tmp_5; + s.callLocIdx = 1108; 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___505824 + globals.consoleColumns___499194); - s.j___505824 = (r0); + r0 = (s.j___33650 + globals.consoleColumns___26518); + s.j___33650 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P505822.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__P33648.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__P505822_mk(s) { +function game_consoleOverlay_listener_inline__P33648_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505822, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_listener_inline__P33648, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19221,7 +19551,7 @@ function inline__P505822_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - j___505824: undefined, + j___33650: undefined, arg0: undefined, } } @@ -19229,7 +19559,7 @@ function inline__P505822_mk(s) { -function console_addListener__P495128(s) { +function console_addListener__P22078(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19252,7 +19582,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = pxsim_Array_.indexOf(globals.listeners___498512, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals.listeners___25824, s.arg0, undefined); s.tmp_2 = r0; r0 = (s.tmp_2 > -1); case 2: @@ -19263,18 +19593,18 @@ switch (step) { { step = 5; continue; } case 3: case 4: - r0 = pxsim_Array__push(globals.listeners___498512, s.arg0); + r0 = pxsim_Array__push(globals.listeners___25824, s.arg0); case 5: r0 = undefined; return leave(s, r0) default: oops() } } } -console_addListener__P495128.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__P22078.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__P495128_mk(s) { +function console_addListener__P22078_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_addListener__P495128, depth: s.depth + 1, + parent: s, fn: console_addListener__P22078, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19287,7 +19617,7 @@ function console_addListener__P495128_mk(s) { -function inline__P498511(s) { +function listeners_inline__P25823(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19307,12 +19637,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P498511.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__P25823.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__P498511_mk(s) { +function listeners_inline__P25823_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P498511, depth: s.depth + 1, + parent: s, fn: listeners_inline__P25823, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -19322,7 +19652,7 @@ function inline__P498511_mk(s) { -function scene_systemMenu_register__P497403(s) { +function scene_systemMenu_register__P24482(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19332,16 +19662,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___499125); + r0 = pxsim_numops_toBoolDecr(globals.instance___26449); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = controller_Button_onEvent__P496676_mk(s); - s.tmp_0.arg0 = globals.menu___496649; + s.tmp_0 = controller_Button_onEvent__P23681_mk(s); + s.tmp_0.arg0 = globals.menu___23608; s.tmp_0.arg1 = 2049; - s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P497404; - s.callLocIdx = 985; s.pc = 4; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_showSystemMenu__P24483; + s.callLocIdx = 1093; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; case 3: @@ -19349,12 +19679,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_register__P497403.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__P24482.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__P497403_mk(s) { +function scene_systemMenu_register__P24482_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_register__P497403, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_register__P24482, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -19363,7 +19693,7 @@ function scene_systemMenu_register__P497403_mk(s) { -function scene_systemMenu_showSystemMenu__P497404(s) { +function scene_systemMenu_showSystemMenu__P24483(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19373,28 +19703,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___499125); + r0 = pxsim_numops_toBoolDecr(globals.instance___26449); if (!r0) { step = 1; continue; } { step = 3; continue; } case 1: case 2: - s.tmp_0 = game_pushScene__P497306_mk(s); - s.callLocIdx = 986; s.pc = 4; return s.tmp_0; + s.tmp_0 = game_pushScene__P24384_mk(s); + s.callLocIdx = 1094; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C497392_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_PauseMenu__C24471_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P497393_mk(s); + s.tmp_1 = scene_systemMenu_PauseMenu_constructor__P24472_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P497400; + s.tmp_1.arg1 = scene_systemMenu_buildOptionList__P24479; s.tmp_1.arg2 = undefined; - s.callLocIdx = 987; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1095; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - globals.instance___499125 = (s.tmp_0); - s.tmp_0 = scene_systemMenu_PauseMenu_show__P497394_mk(s); - s.tmp_0.arg0 = globals.instance___499125; - s.callLocIdx = 988; s.pc = 6; return s.tmp_0; + globals.instance___26449 = (s.tmp_0); + s.tmp_0 = scene_systemMenu_PauseMenu_show__P24473_mk(s); + s.tmp_0.arg0 = globals.instance___26449; + s.callLocIdx = 1096; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; case 3: @@ -19402,12 +19732,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_showSystemMenu__P497404.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__P24483.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__P497404_mk(s) { +function scene_systemMenu_showSystemMenu__P24483_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_showSystemMenu__P497404, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_showSystemMenu__P24483, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19417,7 +19747,7 @@ function scene_systemMenu_showSystemMenu__P497404_mk(s) { -function scene_systemMenu_buildOptionList__P497400(s) { +function scene_systemMenu_buildOptionList__P24479(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19427,136 +19757,136 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.options___507455 = undefined; + s.options___35408 = undefined; r0 = pxsim_Array__mk(); - s.options___507455 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C497384_VT); + s.options___35408 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C24463_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P497385_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P24464_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___497414; - s.tmp_1.arg2 = inline__P507463; - s.tmp_1.arg3 = scene_systemMenu_volumeDown__P499131; - s.callLocIdx = 968; s.pc = 5; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_DOWN_ICON___24493; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P35416; + s.tmp_1.arg3 = scene_systemMenu_volumeDown__P26455; + s.callLocIdx = 1076; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; - r0 = pxsim_Array__push(s.options___507455, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C497384_VT); + r0 = pxsim_Array__push(s.options___35408, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C24463_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P497385_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P24464_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.VOLUME_UP_ICON___497411; - s.tmp_1.arg2 = inline__P507477; - s.tmp_1.arg3 = scene_systemMenu_volumeUp__P499130; - s.callLocIdx = 970; s.pc = 6; return s.tmp_1; + s.tmp_1.arg1 = globals.VOLUME_UP_ICON___24490; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P35430; + s.tmp_1.arg3 = scene_systemMenu_volumeUp__P26454; + s.callLocIdx = 1078; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - r0 = pxsim_Array__push(s.options___507455, s.tmp_0); + r0 = pxsim_Array__push(s.options___35408, 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__C497384_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C24463_VT); s.tmp_1 = r0; - s.tmp_2 = scene_systemMenu_MenuOption_constructor__P497385_mk(s); + s.tmp_2 = scene_systemMenu_MenuOption_constructor__P24464_mk(s); s.tmp_2.arg0 = s.tmp_1; - s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___497412; - s.tmp_2.arg2 = inline__P507492; - s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P499133; - s.callLocIdx = 973; s.pc = 7; return s.tmp_2; + s.tmp_2.arg1 = globals.BRIGHTNESS_DOWN_ICON___24491; + s.tmp_2.arg2 = scene_systemMenu_buildOptionList_inline__P35445; + s.tmp_2.arg3 = scene_systemMenu_brightnessDown__P26457; + s.callLocIdx = 1081; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; - r0 = pxsim_Array__push(s.options___507455, s.tmp_1); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C497384_VT); + r0 = pxsim_Array__push(s.options___35408, s.tmp_1); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C24463_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P497385_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P24464_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___497417; - s.tmp_1.arg2 = inline__P507507; - s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P499132; - s.callLocIdx = 975; s.pc = 8; return s.tmp_1; + s.tmp_1.arg1 = globals.BRIGHTNESS_UP_ICON___24496; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P35460; + s.tmp_1.arg3 = scene_systemMenu_brightnessUp__P26456; + s.callLocIdx = 1083; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; - r0 = pxsim_Array__push(s.options___507455, s.tmp_0); + r0 = pxsim_Array__push(s.options___35408, s.tmp_0); case 1: case 2: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C497384_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C24463_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P497385_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P24464_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.STATS_ICON___497418; - s.tmp_1.arg2 = inline__P507522; - s.tmp_1.arg3 = scene_systemMenu_toggleStats__P499135; - s.callLocIdx = 976; s.pc = 9; return s.tmp_1; + s.tmp_1.arg1 = globals.STATS_ICON___24497; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P35475; + s.tmp_1.arg3 = scene_systemMenu_toggleStats__P26459; + s.callLocIdx = 1084; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; - r0 = pxsim_Array__push(s.options___507455, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C497384_VT); + r0 = pxsim_Array__push(s.options___35408, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C24463_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P497385_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P24464_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CONSOLE_ICON___497416; - s.tmp_1.arg2 = inline__P507531; - s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P499136; - s.callLocIdx = 978; s.pc = 10; return s.tmp_1; + s.tmp_1.arg1 = globals.CONSOLE_ICON___24495; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P35484; + s.tmp_1.arg3 = scene_systemMenu_toggleConsole__P26460; + s.callLocIdx = 1086; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; - r0 = pxsim_Array__push(s.options___507455, s.tmp_0); - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C497384_VT); + r0 = pxsim_Array__push(s.options___35408, s.tmp_0); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C24463_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P497385_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P24464_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.SLEEP_ICON___497415; - s.tmp_1.arg2 = inline__P507540; - s.tmp_1.arg3 = scene_systemMenu_sleep__P499137; - s.callLocIdx = 979; s.pc = 11; return s.tmp_1; + s.tmp_1.arg1 = globals.SLEEP_ICON___24494; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P35493; + s.tmp_1.arg3 = scene_systemMenu_sleep__P26461; + s.callLocIdx = 1087; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; - r0 = pxsim_Array__push(s.options___507455, s.tmp_0); - r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___499126); + r0 = pxsim_Array__push(s.options___35408, s.tmp_0); + r0 = pxsim_numops_toBoolDecr(globals.customMenuOptions___26450); if (!r0) { step = 3; continue; } - s.tmp_0 = helpers_arrayConcat__P494865_mk(s); - s.tmp_0.arg0 = s.options___507455; - s.tmp_0.arg1 = globals.customMenuOptions___499126; - s.callLocIdx = 980; s.pc = 12; return s.tmp_0; + s.tmp_0 = helpers_arrayConcat__P21808_mk(s); + s.tmp_0.arg0 = s.options___35408; + s.tmp_0.arg1 = globals.customMenuOptions___26450; + s.callLocIdx = 1088; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.options___507455 = (r0); + s.options___35408 = (r0); case 3: case 4: - r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C497384_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_systemMenu_MenuOption__C24463_VT); s.tmp_0 = r0; - s.tmp_1 = scene_systemMenu_MenuOption_constructor__P497385_mk(s); + s.tmp_1 = scene_systemMenu_MenuOption_constructor__P24464_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___497413; - s.tmp_1.arg2 = inline__P507553; - s.tmp_1.arg3 = scene_systemMenu_closeMenu__P497399; - s.callLocIdx = 981; s.pc = 13; return s.tmp_1; + s.tmp_1.arg1 = globals.CLOSE_MENU_ICON___24492; + s.tmp_1.arg2 = scene_systemMenu_buildOptionList_inline__P35506; + s.tmp_1.arg3 = scene_systemMenu_closeMenu__P24478; + s.callLocIdx = 1089; s.pc = 13; return s.tmp_1; case 13: r0 = s.retval; - r0 = pxsim_Array__push(s.options___507455, s.tmp_0); - r0 = s.options___507455; + r0 = pxsim_Array__push(s.options___35408, s.tmp_0); + r0 = s.options___35408; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildOptionList__P497400.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__P24479.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__P497400_mk(s) { +function scene_systemMenu_buildOptionList__P24479_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildOptionList__P497400, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList__P24479, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - options___507455: undefined, + options___35408: undefined, } } -function inline__P507463(s) { +function scene_systemMenu_buildOptionList_inline__P35416(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19566,8 +19896,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P496349_mk(s); - s.callLocIdx = 967; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P23302_mk(s); + s.callLocIdx = 1075; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -19586,12 +19916,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507463.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__P35416.info = {"start":10644,"length":39,"line":337,"column":54,"endLine":337,"endColumn":93,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P507463_mk(s) { +function scene_systemMenu_buildOptionList_inline__P35416_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507463, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P35416, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19603,7 +19933,7 @@ function inline__P507463_mk(s) { -function inline__P507477(s) { +function scene_systemMenu_buildOptionList_inline__P35430(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19613,8 +19943,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_3 = music_volume__P496349_mk(s); - s.callLocIdx = 969; s.pc = 1; return s.tmp_3; + s.tmp_3 = music_volume__P23302_mk(s); + s.callLocIdx = 1077; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -19633,12 +19963,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507477.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__P35430.info = {"start":10751,"length":37,"line":338,"column":52,"endLine":338,"endColumn":89,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P507477_mk(s) { +function scene_systemMenu_buildOptionList_inline__P35430_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507477, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P35430, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19650,7 +19980,7 @@ function inline__P507477_mk(s) { -function inline__P507492(s) { +function scene_systemMenu_buildOptionList_inline__P35445(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19660,7 +19990,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___496490; + r0 = globals.brightness___23445; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -19677,12 +20007,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507492.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__P35445.info = {"start":10910,"length":48,"line":340,"column":62,"endLine":340,"endColumn":110,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P507492_mk(s) { +function scene_systemMenu_buildOptionList_inline__P35445_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507492, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P35445, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19693,7 +20023,7 @@ function inline__P507492_mk(s) { -function inline__P507507(s) { +function scene_systemMenu_buildOptionList_inline__P35460(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19703,7 +20033,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = globals.brightness___496490; + r0 = globals.brightness___23445; s.tmp_2 = r0; if ((s.tmp_2) && (s.tmp_2).vtable) { setupResume(s, 1); @@ -19720,12 +20050,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507507.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__P35460.info = {"start":11038,"length":46,"line":341,"column":60,"endLine":341,"endColumn":106,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P507507_mk(s) { +function scene_systemMenu_buildOptionList_inline__P35460_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507507, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P35460, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19736,7 +20066,7 @@ function inline__P507507_mk(s) { -function inline__P507522(s) { +function scene_systemMenu_buildOptionList_inline__P35475(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19746,7 +20076,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___497299); + r0 = pxsim_numops_toBoolDecr(globals.stats___24377); if (!r0) { step = 1; continue; } r0 = "HIDE STATS"; { step = 2; continue; } @@ -19759,12 +20089,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507522.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__P35475.info = {"start":11160,"length":46,"line":343,"column":48,"endLine":343,"endColumn":94,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P507522_mk(s) { +function scene_systemMenu_buildOptionList_inline__P35475_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507522, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P35475, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -19773,7 +20103,7 @@ function inline__P507522_mk(s) { -function inline__P507531(s) { +function scene_systemMenu_buildOptionList_inline__P35484(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19783,7 +20113,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___499171); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___26495); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -19804,12 +20134,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507531.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__P35484.info = {"start":11273,"length":71,"line":344,"column":50,"endLine":344,"endColumn":121,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P507531_mk(s) { +function scene_systemMenu_buildOptionList_inline__P35484_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507531, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P35484, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19822,7 +20152,7 @@ function inline__P507531_mk(s) { -function inline__P507540(s) { +function scene_systemMenu_buildOptionList_inline__P35493(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19836,12 +20166,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507540.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__P35493.info = {"start":11411,"length":13,"line":345,"column":48,"endLine":345,"endColumn":61,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P507540_mk(s) { +function scene_systemMenu_buildOptionList_inline__P35493_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507540, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P35493, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -19849,7 +20179,7 @@ function inline__P507540_mk(s) { -function inline__P507553(s) { +function scene_systemMenu_buildOptionList_inline__P35506(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19863,12 +20193,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507553.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__P35506.info = {"start":11590,"length":13,"line":351,"column":53,"endLine":351,"endColumn":66,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P507553_mk(s) { +function scene_systemMenu_buildOptionList_inline__P35506_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507553, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildOptionList_inline__P35506, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -19876,7 +20206,7 @@ function inline__P507553_mk(s) { -function scene_systemMenu_setScreenBrightnessSupported__P499138(s) { +function scene_systemMenu_setScreenBrightnessSupported__P26462(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19890,12 +20220,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightnessSupported__P499138.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__P26462.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__P499138_mk(s) { +function scene_systemMenu_setScreenBrightnessSupported__P26462_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P499138, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightnessSupported__P26462, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -19903,7 +20233,7 @@ function scene_systemMenu_setScreenBrightnessSupported__P499138_mk(s) { -function scene_systemMenu_sleep__P499137(s) { +function scene_systemMenu_sleep__P26461(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19918,12 +20248,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_sleep__P499137.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__P26461.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__P499137_mk(s) { +function scene_systemMenu_sleep__P26461_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_sleep__P499137, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_sleep__P26461, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -19931,7 +20261,7 @@ function scene_systemMenu_sleep__P499137_mk(s) { -function scene_systemMenu_toggleConsole__P499136(s) { +function scene_systemMenu_toggleConsole__P26460(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -19941,7 +20271,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___499171); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___26495); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); s.tmp_2 = r0; @@ -19951,23 +20281,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__P497423_mk(s); + s.tmp_4 = game_consoleOverlay_setVisible__P24502_mk(s); s.tmp_4.arg0 = false; s.tmp_4.arg1 = undefined; - s.callLocIdx = 961; s.pc = 3; return s.tmp_4; + s.callLocIdx = 1069; s.pc = 3; return s.tmp_4; case 3: r0 = s.retval; { step = 2; continue; } case 1: - s.tmp_0 = game_consoleOverlay_setVisible__P497423_mk(s); + s.tmp_0 = game_consoleOverlay_setVisible__P24502_mk(s); s.tmp_0.arg0 = true; s.tmp_0.arg1 = undefined; - s.callLocIdx = 962; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1070; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = console_log__P495125_mk(s); + s.tmp_0 = console_log__P22075_mk(s); s.tmp_0.arg0 = "console"; - s.callLocIdx = 963; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1071; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 2: @@ -19975,12 +20305,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleConsole__P499136.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__P26460.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__P499136_mk(s) { +function scene_systemMenu_toggleConsole__P26460_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleConsole__P499136, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleConsole__P26460, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -19993,7 +20323,7 @@ function scene_systemMenu_toggleConsole__P499136_mk(s) { -function game_consoleOverlay_setVisible__P497423(s) { +function game_consoleOverlay_setVisible__P24502(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20009,7 +20339,7 @@ switch (step) { s.lambdaArgs = null; } s.tmp_1 = r0 = s.arg0; - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___499171); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___26495); s.tmp_5 = r0; r0 = pxsim_Boolean__bang(s.tmp_5); s.tmp_4 = r0; @@ -20030,26 +20360,26 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_6 = r0; - globals.consoleStrings___499171 = (s.tmp_6); + globals.consoleStrings___26495 = (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___499170 = (s.arg1); + globals.consoleColor___26494 = (s.arg1); case 5: case 6: r0 = undefined; return leave(s, r0) default: oops() } } } -game_consoleOverlay_setVisible__P497423.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__P24502.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__P497423_mk(s) { +function game_consoleOverlay_setVisible__P24502_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_setVisible__P497423, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_setVisible__P24502, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20066,7 +20396,7 @@ function game_consoleOverlay_setVisible__P497423_mk(s) { -function console_log__P495125(s) { +function console_log__P22075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20080,7 +20410,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = console_add__P495121_mk(s); + s.tmp_0 = console_add__P22071_mk(s); s.tmp_0.arg0 = 1; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 33; s.pc = 1; return s.tmp_0; @@ -20090,12 +20420,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_log__P495125.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__P22075.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__P495125_mk(s) { +function console_log__P22075_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_log__P495125, depth: s.depth + 1, + parent: s, fn: console_log__P22075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20105,7 +20435,7 @@ function console_log__P495125_mk(s) { -function console_add__P495121(s) { +function console_add__P22071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20115,58 +20445,58 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.text___507592 = undefined; - s.i___507601 = undefined; + s.text___35545 = undefined; + s.i___35554 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 < globals.minPriority___495120); + r0 = (s.arg0 < globals.minPriority___22070); 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__P495127_mk(s); + s.tmp_1 = console_inspect__P22077_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 20; s.callLocIdx = 31; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; - s.text___507592 = (r0); - if ((s.text___507592) && (s.text___507592).vtable) { + s.text___35545 = (r0); + if ((s.text___35545) && (s.text___35545).vtable) { setupResume(s, 7); - pxsim_String__stringConv(s.text___507592); + pxsim_String__stringConv(s.text___35545); checkResumeConsumed(); return; - } else { s.retval = (s.text___507592) + ""; } + } else { s.retval = (s.text___35545) + ""; } case 7: r0 = s.retval; s.tmp_0 = r0; r0 = pxsim_String__concat(s.tmp_0, "\n"); - s.text___507592 = (r0); - s.i___507601 = (0); + s.text___35545 = (r0); + s.i___35554 = (0); case 3: - s.tmp_1 = r0 = s.i___507601; - r0 = pxsim_Array__length(globals.listeners___498512); + s.tmp_1 = r0 = s.i___35554; + r0 = pxsim_Array__length(globals.listeners___25824); 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___498512, s.i___507601); + r0 = pxsim_Array__getAt(globals.listeners___25824, s.i___35554); s.tmp_3.argL = r0; s.tmp_3.arg0 = s.arg0; - s.tmp_3.arg1 = s.text___507592; + s.tmp_3.arg1 = s.text___35545; setupLambda(s.tmp_3, s.tmp_3.argL); s.callLocIdx = 32; s.pc = 8; return s.tmp_3; case 8: r0 = s.retval; - r0 = (s.i___507601 + 1); - s.i___507601 = (r0); + r0 = (s.i___35554 + 1); + s.i___35554 = (r0); { step = 3; continue; } case 4: case 5: @@ -20174,19 +20504,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_add__P495121.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__P22071.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__P495121_mk(s) { +function console_add__P22071_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_add__P495121, depth: s.depth + 1, + parent: s, fn: console_add__P22071, depth: s.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___507592: undefined, - i___507601: undefined, + text___35545: undefined, + i___35554: undefined, arg0: undefined, arg1: undefined, } } @@ -20195,7 +20525,7 @@ function console_add__P495121_mk(s) { -function console_inspect__P495127(s) { +function console_inspect__P22077(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20205,10 +20535,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.asArr___507632 = undefined; - s.asString___507650 = undefined; - s.keys___507662 = undefined; - s.snipped___507666 = undefined; + s.asArr___35585 = undefined; + s.asString___35603 = undefined; + s.keys___35615 = undefined; + s.snipped___35619 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -20249,15 +20579,15 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 5; continue; } - s.asArr___507632 = (s.arg0); - r0 = pxsim_Array__length(s.asArr___507632); + s.asArr___35585 = (s.arg0); + r0 = pxsim_Array__length(s.asArr___35585); 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__P494855_mk(s); - s.tmp_2.arg0 = s.asArr___507632; + s.tmp_2 = helpers_arrayJoin__P21798_mk(s); + s.tmp_2.arg0 = s.asArr___35585; s.tmp_2.arg1 = ","; s.callLocIdx = 34; s.pc = 19; return s.tmp_2; case 19: @@ -20267,9 +20597,9 @@ switch (step) { case 3: r0 = pxsim_String_.mkEmpty(); s.tmp_4 = r0; - s.tmp_7 = helpers_arrayJoin__P494855_mk(s); - s.tmp_8 = helpers_arraySlice__P494867_mk(s); - s.tmp_8.arg0 = s.asArr___507632; + s.tmp_7 = helpers_arrayJoin__P21798_mk(s); + s.tmp_8 = helpers_arraySlice__P21810_mk(s); + s.tmp_8.arg0 = s.asArr___35585; s.tmp_8.arg1 = 0; s.tmp_8.arg2 = s.arg1; s.callLocIdx = 35; s.pc = 21; return s.tmp_8; @@ -20309,46 +20639,46 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); s.tmp_10 = r0; r0 = pxsim_String__concat(s.tmp_9, s.tmp_10); - s.asString___507650 = (r0); - r0 = (s.asString___507650 != "[object Object]"); + s.asString___35603 = (r0); + r0 = (s.asString___35603 != "[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___507650 != "[Object]"); + r0 = (s.asString___35603 != "[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___507650; + r0 = s.asString___35603; { step = 17; continue; } case 8: case 9: r0 = pxsim_pxtrt.keysOf(s.arg0); - s.keys___507662 = (r0); - r0 = pxsim_Array__length(s.keys___507662); + s.keys___35615 = (r0); + r0 = pxsim_Array__length(s.keys___35615); s.tmp_0 = r0; r0 = (s.tmp_0 > s.arg1); - s.snipped___507666 = (r0); - r0 = pxsim_numops_toBoolDecr(s.snipped___507666); + s.snipped___35619 = (r0); + r0 = pxsim_numops_toBoolDecr(s.snipped___35619); if (!r0) { step = 10; continue; } - s.tmp_0 = helpers_arraySlice__P494867_mk(s); - s.tmp_0.arg0 = s.keys___507662; + s.tmp_0 = helpers_arraySlice__P21810_mk(s); + s.tmp_0.arg0 = s.keys___35615; s.tmp_0.arg1 = 0; s.tmp_0.arg2 = s.arg1; s.callLocIdx = 37; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.keys___507662 = (r0); + s.keys___35615 = (r0); case 10: case 11: - r0 = pxsim_pxtcore_mkAction(1, inline__P507683); + r0 = pxsim_pxtcore_mkAction(1, console_inspect_inline__P35636); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_numops_toBoolDecr(s.snipped___507666); + r0 = pxsim_numops_toBoolDecr(s.snipped___35619); if (!r0) { step = 12; continue; } r0 = "\n ..."; { step = 13; continue; } @@ -20357,8 +20687,8 @@ switch (step) { case 13: // jmp value (already in r0) s.tmp_1 = r0; - s.tmp_7 = helpers_arrayReduce__P494864_mk(s); - s.tmp_7.arg0 = s.keys___507662; + s.tmp_7 = helpers_arrayReduce__P21807_mk(s); + s.tmp_7.arg0 = s.keys___35615; s.tmp_7.arg1 = s.tmp_0; r0 = pxsim_String_.mkEmpty(); s.tmp_7.arg2 = r0; @@ -20407,12 +20737,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -console_inspect__P495127.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__P22077.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__P495127_mk(s) { +function console_inspect__P22077_mk(s) { checkStack(s.depth); return { - parent: s, fn: console_inspect__P495127, depth: s.depth + 1, + parent: s, fn: console_inspect__P22077, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20425,10 +20755,10 @@ function console_inspect__P495127_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - asArr___507632: undefined, - asString___507650: undefined, - keys___507662: undefined, - snipped___507666: undefined, + asArr___35585: undefined, + asString___35603: undefined, + keys___35615: undefined, + snipped___35619: undefined, arg0: undefined, arg1: undefined, } } @@ -20437,7 +20767,7 @@ function console_inspect__P495127_mk(s) { -function inline__P507683(s) { +function console_inspect_inline__P35636(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20500,12 +20830,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507683.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__P35636.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__P507683_mk(s) { +function console_inspect_inline__P35636_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507683, depth: s.depth + 1, + parent: s, fn: console_inspect_inline__P35636, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20523,7 +20853,7 @@ function inline__P507683_mk(s) { -function helpers_arrayReduce__P494864(s) { +function helpers_arrayReduce__P21807(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20533,8 +20863,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___507710 = undefined; - s.i___507713 = undefined; + s.len___35663 = undefined; + s.i___35666 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -20542,43 +20872,43 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim_Array__length(s.arg0); - s.len___507710 = (r0); - s.i___507713 = (0); + s.len___35663 = (r0); + s.i___35666 = (0); case 1: - r0 = (s.i___507713 < s.len___507710); + r0 = (s.i___35666 < s.len___35663); 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___507713); + r0 = pxsim_Array__getAt(s.arg0, s.i___35666); s.tmp_1.arg1 = r0; - s.tmp_1.arg2 = s.i___507713; + s.tmp_1.arg2 = s.i___35666; setupLambda(s.tmp_1, s.tmp_1.argL); s.callLocIdx = 7; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.arg2 = (r0); - r0 = (s.i___507713 + 1); - s.i___507713 = (r0); + r0 = (s.i___35666 + 1); + s.i___35666 = (r0); { step = 1; continue; } case 2: r0 = s.arg2; return leave(s, r0) default: oops() } } } -helpers_arrayReduce__P494864.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__P21807.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__P494864_mk(s) { +function helpers_arrayReduce__P21807_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayReduce__P494864, depth: s.depth + 1, + parent: s, fn: helpers_arrayReduce__P21807, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - len___507710: undefined, - i___507713: undefined, + len___35663: undefined, + i___35666: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -20588,7 +20918,7 @@ function helpers_arrayReduce__P494864_mk(s) { -function helpers_arrayJoin__P494855(s) { +function helpers_arrayJoin__P21798(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20598,9 +20928,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.r___507738 = undefined; - s.len___507739 = undefined; - s.i___507742 = undefined; + s.r___35691 = undefined; + s.len___35692 = undefined; + s.i___35695 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -20623,16 +20953,16 @@ switch (step) { case 3: case 4: r0 = pxsim_String_.mkEmpty(); - s.r___507738 = (r0); + s.r___35691 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___507739 = (r0); - s.i___507742 = (0); + s.len___35692 = (r0); + s.i___35695 = (0); case 5: - r0 = (s.i___507742 < s.len___507739); + r0 = (s.i___35695 < s.len___35692); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.i___507742 > 0); + r0 = (s.i___35695 > 0); s.tmp_1 = r0; r0 = pxsim_numops_toBool(s.tmp_1); if (r0) { step = 6; continue; } @@ -20645,12 +20975,12 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 8; continue; } - if ((s.r___507738) && (s.r___507738).vtable) { + if ((s.r___35691) && (s.r___35691).vtable) { setupResume(s, 15); - pxsim_String__stringConv(s.r___507738); + pxsim_String__stringConv(s.r___35691); checkResumeConsumed(); return; - } else { s.retval = (s.r___507738) + ""; } + } else { s.retval = (s.r___35691) + ""; } case 15: r0 = s.retval; s.tmp_3 = r0; @@ -20664,10 +20994,10 @@ switch (step) { r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_3, s.tmp_4); - s.r___507738 = (r0); + s.r___35691 = (r0); case 8: case 9: - r0 = pxsim_Array__getAt(s.arg0, s.i___507742); + r0 = pxsim_Array__getAt(s.arg0, s.i___35695); s.tmp_1 = r0; r0 = (s.tmp_1 === undefined); s.tmp_0 = r0; @@ -20676,7 +21006,7 @@ switch (step) { r0 = s.tmp_0; { step = 11; continue; } case 10: - r0 = pxsim_Array__getAt(s.arg0, s.i___507742); + r0 = pxsim_Array__getAt(s.arg0, s.i___35695); s.tmp_2 = r0; r0 = (s.tmp_2 === null); case 11: @@ -20687,16 +21017,16 @@ switch (step) { r0 = pxsim_String_.mkEmpty(); { step = 13; continue; } case 12: - r0 = pxsim_Array__getAt(s.arg0, s.i___507742); + r0 = pxsim_Array__getAt(s.arg0, s.i___35695); case 13: // jmp value (already in r0) s.tmp_4 = r0; - if ((s.r___507738) && (s.r___507738).vtable) { + if ((s.r___35691) && (s.r___35691).vtable) { setupResume(s, 17); - pxsim_String__stringConv(s.r___507738); + pxsim_String__stringConv(s.r___35691); checkResumeConsumed(); return; - } else { s.retval = (s.r___507738) + ""; } + } else { s.retval = (s.r___35691) + ""; } case 17: r0 = s.retval; s.tmp_5 = r0; @@ -20710,21 +21040,21 @@ switch (step) { r0 = s.retval; s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_5, s.tmp_6); - s.r___507738 = (r0); - r0 = (s.i___507742 + 1); - s.i___507742 = (r0); + s.r___35691 = (r0); + r0 = (s.i___35695 + 1); + s.i___35695 = (r0); { step = 5; continue; } case 14: - r0 = s.r___507738; + r0 = s.r___35691; return leave(s, r0) default: oops() } } } -helpers_arrayJoin__P494855.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__P21798.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__P494855_mk(s) { +function helpers_arrayJoin__P21798_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayJoin__P494855, depth: s.depth + 1, + parent: s, fn: helpers_arrayJoin__P21798, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20733,9 +21063,9 @@ function helpers_arrayJoin__P494855_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - r___507738: undefined, - len___507739: undefined, - i___507742: undefined, + r___35691: undefined, + len___35692: undefined, + i___35695: undefined, arg0: undefined, arg1: undefined, } } @@ -20744,7 +21074,7 @@ function helpers_arrayJoin__P494855_mk(s) { -function scene_systemMenu_toggleStats__P499135(s) { +function scene_systemMenu_toggleStats__P26459(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20754,11 +21084,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.stats___497299); + r0 = pxsim_numops_toBoolDecr(globals.stats___24377); s.tmp_0 = r0; r0 = pxsim_Boolean__bang(s.tmp_0); - globals.stats___497299 = (r0); - r0 = pxsim_numops_toBoolDecr(globals.stats___497299); + globals.stats___24377 = (r0); + r0 = pxsim_numops_toBoolDecr(globals.stats___24377); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -20767,18 +21097,18 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = globals.control_EventContext_onStats___495143; + r0 = globals.control_EventContext_onStats___22093; 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___495143; + s.tmp_3.argL = globals.control_EventContext_onStats___22093; r0 = pxsim_String_.mkEmpty(); s.tmp_3.arg0 = r0; setupLambda(s.tmp_3, s.tmp_3.argL); - s.callLocIdx = 959; s.pc = 5; return s.tmp_3; + s.callLocIdx = 1067; s.pc = 5; return s.tmp_3; case 5: r0 = s.retval; case 3: @@ -20787,12 +21117,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_toggleStats__P499135.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__P26459.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__P499135_mk(s) { +function scene_systemMenu_toggleStats__P26459_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_toggleStats__P499135, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_toggleStats__P26459, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20804,7 +21134,7 @@ function scene_systemMenu_toggleStats__P499135_mk(s) { -function scene_systemMenu_brightnessDown__P499133(s) { +function scene_systemMenu_brightnessDown__P26457(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20814,24 +21144,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P499134_mk(s); - r0 = globals.brightness___496490; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P26458_mk(s); + r0 = globals.brightness___23445; s.tmp_1 = r0; r0 = (s.tmp_1 - 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 955; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1063; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessDown__P499133.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__P26457.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__P499133_mk(s) { +function scene_systemMenu_brightnessDown__P26457_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessDown__P499133, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessDown__P26457, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20841,7 +21171,7 @@ function scene_systemMenu_brightnessDown__P499133_mk(s) { -function scene_systemMenu_setScreenBrightness__P499134(s) { +function scene_systemMenu_setScreenBrightness__P26458(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20855,29 +21185,29 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = helpers_setScreenBrightness__P496501_mk(s); - s.tmp_0.arg0 = globals.screen___496568; + s.tmp_0 = helpers_setScreenBrightness__P23457_mk(s); + s.tmp_0.arg0 = globals.screen___23524; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 956; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1064; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P496595_mk(s); + s.tmp_0 = settings_writeNumber__P23553_mk(s); s.tmp_0.arg0 = "#brightness"; - r0 = globals.brightness___496490; + r0 = globals.brightness___23445; s.tmp_0.arg1 = r0; - s.callLocIdx = 958; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1066; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setScreenBrightness__P499134.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__P26458.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__P499134_mk(s) { +function scene_systemMenu_setScreenBrightness__P26458_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setScreenBrightness__P499134, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setScreenBrightness__P26458, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20887,7 +21217,7 @@ function scene_systemMenu_setScreenBrightness__P499134_mk(s) { -function settings_writeNumber__P496595(s) { +function settings_writeNumber__P23553(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20905,9 +21235,9 @@ switch (step) { r0 = pxsim_Array__mk(); s.tmp_0 = r0; r0 = pxsim_Array__push(s.tmp_0, s.arg1); - s.tmp_1 = settings_writeBuffer__P496593_mk(s); + s.tmp_1 = settings_writeBuffer__P23550_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = msgpack_packNumberArray__P494933_mk(s); + s.tmp_2 = msgpack_packNumberArray__P21879_mk(s); s.tmp_2.arg0 = s.tmp_0; s.callLocIdx = 121; s.pc = 2; return s.tmp_2; case 2: @@ -20920,12 +21250,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeNumber__P496595.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__P23553.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__P496595_mk(s) { +function settings_writeNumber__P23553_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeNumber__P496595, depth: s.depth + 1, + parent: s, fn: settings_writeNumber__P23553, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -20938,7 +21268,7 @@ function settings_writeNumber__P496595_mk(s) { -function settings_writeBuffer__P496593(s) { +function settings_writeBuffer__P23550(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20965,12 +21295,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeBuffer__P496593.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__P23550.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__P496593_mk(s) { +function settings_writeBuffer__P23550_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeBuffer__P496593, depth: s.depth + 1, + parent: s, fn: settings_writeBuffer__P23550, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -20981,7 +21311,7 @@ function settings_writeBuffer__P496593_mk(s) { -function msgpack_packNumberArray__P494933(s) { +function msgpack_packNumberArray__P21879(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -20991,100 +21321,100 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.off___507828 = undefined; - s.n___507830 = undefined; - s.unnamed1724___U2 = undefined; - s.unnamed1725___U3 = undefined; - s.buf___507840 = undefined; - s.n___507846 = undefined; - s.unnamed1726___U6 = undefined; - s.unnamed1727___U7 = undefined; + s.off___35781 = undefined; + s.n___35783 = undefined; + s.unnamed142___U2 = undefined; + s.unnamed143___U3 = undefined; + s.buf___35793 = undefined; + s.n___35799 = undefined; + s.unnamed144___U6 = undefined; + s.unnamed145___U7 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.off___507828 = (0); - s.n___507830 = (undefined); - s.unnamed1724___U2 = (s.arg0); - s.unnamed1725___U3 = (0); + s.off___35781 = (0); + s.n___35783 = (undefined); + s.unnamed142___U2 = (s.arg0); + s.unnamed143___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1725___U3; - r0 = pxsim_Array__length(s.unnamed1724___U2); + s.tmp_0 = r0 = s.unnamed143___U3; + r0 = pxsim_Array__length(s.unnamed142___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed1724___U2, s.unnamed1725___U3); - s.n___507830 = (r0); - s.tmp_2 = r0 = s.off___507828; - s.tmp_4 = msgpack_packNumberCore__P498475_mk(s); + r0 = pxsim_Array__getAt(s.unnamed142___U2, s.unnamed143___U3); + s.n___35783 = (r0); + s.tmp_2 = r0 = s.off___35781; + s.tmp_4 = msgpack_packNumberCore__P25783_mk(s); s.tmp_4.arg0 = null; - s.tmp_4.arg1 = s.off___507828; - s.tmp_4.arg2 = s.n___507830; + s.tmp_4.arg1 = s.off___35781; + s.tmp_4.arg2 = s.n___35783; s.callLocIdx = 21; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); - s.off___507828 = (r0); - r0 = (s.unnamed1725___U3 + 1); - s.unnamed1725___U3 = (r0); + s.off___35781 = (r0); + r0 = (s.unnamed143___U3 + 1); + s.unnamed143___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed1724___U2 = (undefined); - r0 = pxsim.control.createBuffer(s.off___507828); - s.buf___507840 = (r0); - s.off___507828 = (0); - s.n___507846 = (undefined); - s.unnamed1726___U6 = (s.arg0); - s.unnamed1727___U7 = (0); + s.unnamed142___U2 = (undefined); + r0 = pxsim.control.createBuffer(s.off___35781); + s.buf___35793 = (r0); + s.off___35781 = (0); + s.n___35799 = (undefined); + s.unnamed144___U6 = (s.arg0); + s.unnamed145___U7 = (0); case 3: - s.tmp_0 = r0 = s.unnamed1727___U7; - r0 = pxsim_Array__length(s.unnamed1726___U6); + s.tmp_0 = r0 = s.unnamed145___U7; + r0 = pxsim_Array__length(s.unnamed144___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed1726___U6, s.unnamed1727___U7); - s.n___507846 = (r0); - s.tmp_2 = r0 = s.off___507828; - s.tmp_4 = msgpack_packNumberCore__P498475_mk(s); - s.tmp_4.arg0 = s.buf___507840; - s.tmp_4.arg1 = s.off___507828; - s.tmp_4.arg2 = s.n___507846; + r0 = pxsim_Array__getAt(s.unnamed144___U6, s.unnamed145___U7); + s.n___35799 = (r0); + s.tmp_2 = r0 = s.off___35781; + s.tmp_4 = msgpack_packNumberCore__P25783_mk(s); + s.tmp_4.arg0 = s.buf___35793; + s.tmp_4.arg1 = s.off___35781; + s.tmp_4.arg2 = s.n___35799; s.callLocIdx = 22; s.pc = 6; return s.tmp_4; case 6: r0 = s.retval; s.tmp_3 = r0; r0 = (s.tmp_2 + s.tmp_3); - s.off___507828 = (r0); - r0 = (s.unnamed1727___U7 + 1); - s.unnamed1727___U7 = (r0); + s.off___35781 = (r0); + r0 = (s.unnamed145___U7 + 1); + s.unnamed145___U7 = (r0); { step = 3; continue; } case 4: - s.unnamed1726___U6 = (undefined); - r0 = s.buf___507840; + s.unnamed144___U6 = (undefined); + r0 = s.buf___35793; return leave(s, r0) default: oops() } } } -msgpack_packNumberArray__P494933.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__P21879.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__P494933_mk(s) { +function msgpack_packNumberArray__P21879_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberArray__P494933, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberArray__P21879, depth: s.depth + 1, pc: 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___507828: undefined, - n___507830: undefined, - unnamed1724___U2: undefined, - unnamed1725___U3: undefined, - buf___507840: undefined, - n___507846: undefined, - unnamed1726___U6: undefined, - unnamed1727___U7: undefined, + off___35781: undefined, + n___35783: undefined, + unnamed142___U2: undefined, + unnamed143___U3: undefined, + buf___35793: undefined, + n___35799: undefined, + unnamed144___U6: undefined, + unnamed145___U7: undefined, arg0: undefined, } } @@ -21092,7 +21422,7 @@ function msgpack_packNumberArray__P494933_mk(s) { -function msgpack_packNumberCore__P498475(s) { +function msgpack_packNumberCore__P25783(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21102,15 +21432,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tag___507860 = undefined; - s.fmt___507903 = undefined; + s.tag___35813 = undefined; + s.fmt___35856 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - s.tag___507860 = (203); + s.tag___35813 = (203); s.tmp_1 = r0 = s.arg2; r0 = (s.arg2 << 0); s.tmp_2 = r0; @@ -21160,17 +21490,17 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 8; continue; } - s.tag___507860 = (204); + s.tag___35813 = (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___507860 = (205); + s.tag___35813 = (205); { step = 10; continue; } case 9: - s.tag___507860 = (206); + s.tag___35813 = (206); case 10: case 11: { step = 17; continue; } @@ -21179,41 +21509,41 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tag___507860 = (208); + s.tag___35813 = (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___507860 = (209); + s.tag___35813 = (209); { step = 15; continue; } case 14: - s.tag___507860 = (210); + s.tag___35813 = (210); case 15: case 16: case 17: case 18: case 19: case 20: - s.tmp_0 = msgpack_tagFormat__P498474_mk(s); - s.tmp_0.arg0 = s.tag___507860; + s.tmp_0 = msgpack_tagFormat__P25782_mk(s); + s.tmp_0.arg0 = s.tag___35813; s.callLocIdx = 17; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.fmt___507903 = (r0); + s.fmt___35856 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); if (!r0) { step = 21; continue; } - r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___507860); + r0 = pxsim.BufferMethods.setByte(s.arg0, s.arg1, s.tag___35813); s.tmp_0 = r0 = s.arg0; - s.tmp_1 = r0 = s.fmt___507903; + s.tmp_1 = r0 = s.fmt___35856; 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__P494924_mk(s); - s.tmp_1.arg0 = s.fmt___507903; + s.tmp_1 = pins_sizeOf__P21870_mk(s); + s.tmp_1.arg0 = s.fmt___35856; s.callLocIdx = 18; s.pc = 25; return s.tmp_1; case 25: r0 = s.retval; @@ -21223,12 +21553,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_packNumberCore__P498475.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__P25783.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__P498475_mk(s) { +function msgpack_packNumberCore__P25783_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_packNumberCore__P498475, depth: s.depth + 1, + parent: s, fn: msgpack_packNumberCore__P25783, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21238,8 +21568,8 @@ function msgpack_packNumberCore__P498475_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - tag___507860: undefined, - fmt___507903: undefined, + tag___35813: undefined, + fmt___35856: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -21249,7 +21579,7 @@ function msgpack_packNumberCore__P498475_mk(s) { -function msgpack_tagFormat__P498474(s) { +function msgpack_tagFormat__P25782(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21309,12 +21639,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -msgpack_tagFormat__P498474.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__P25782.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__P498474_mk(s) { +function msgpack_tagFormat__P25782_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_tagFormat__P498474, depth: s.depth + 1, + parent: s, fn: msgpack_tagFormat__P25782, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21324,7 +21654,7 @@ function msgpack_tagFormat__P498474_mk(s) { -function pins_sizeOf__P494924(s) { +function pins_sizeOf__P21870(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21338,7 +21668,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Buffer_sizeOfNumberFormat__P494960_mk(s); + s.tmp_0 = Buffer_sizeOfNumberFormat__P21910_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 16; s.pc = 1; return s.tmp_0; case 1: @@ -21346,12 +21676,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pins_sizeOf__P494924.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__P21870.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__P494924_mk(s) { +function pins_sizeOf__P21870_mk(s) { checkStack(s.depth); return { - parent: s, fn: pins_sizeOf__P494924, depth: s.depth + 1, + parent: s, fn: pins_sizeOf__P21870, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21361,7 +21691,7 @@ function pins_sizeOf__P494924_mk(s) { -function Buffer_sizeOfNumberFormat__P494960(s) { +function Buffer_sizeOfNumberFormat__P21910(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21440,12 +21770,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Buffer_sizeOfNumberFormat__P494960.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__P21910.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__P494960_mk(s) { +function Buffer_sizeOfNumberFormat__P21910_mk(s) { checkStack(s.depth); return { - parent: s, fn: Buffer_sizeOfNumberFormat__P494960, depth: s.depth + 1, + parent: s, fn: Buffer_sizeOfNumberFormat__P21910, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21455,7 +21785,7 @@ function Buffer_sizeOfNumberFormat__P494960_mk(s) { -function helpers_setScreenBrightness__P496501(s) { +function helpers_setScreenBrightness__P23457(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21470,7 +21800,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P494878_mk(s); + s.tmp_0 = Math_clamp__P21822_mk(s); s.tmp_0.arg0 = 10; s.tmp_0.arg1 = 100; r0 = (s.arg1 | 0); @@ -21479,18 +21809,18 @@ switch (step) { case 1: r0 = s.retval; s.arg1 = (r0); - globals.brightness___496490 = (s.arg1); - r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___496490); + globals.brightness___23445 = (s.arg1); + r0 = pxsim_pxtcore.setScreenBrightness(globals.brightness___23445); r0 = undefined; return leave(s, r0) default: oops() } } } -helpers_setScreenBrightness__P496501.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__P23457.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__P496501_mk(s) { +function helpers_setScreenBrightness__P23457_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_setScreenBrightness__P496501, depth: s.depth + 1, + parent: s, fn: helpers_setScreenBrightness__P23457, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21501,7 +21831,7 @@ function helpers_setScreenBrightness__P496501_mk(s) { -function scene_systemMenu_brightnessUp__P499132(s) { +function scene_systemMenu_brightnessUp__P26456(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21511,24 +21841,24 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_setScreenBrightness__P499134_mk(s); - r0 = globals.brightness___496490; + s.tmp_0 = scene_systemMenu_setScreenBrightness__P26458_mk(s); + r0 = globals.brightness___23445; s.tmp_1 = r0; r0 = (s.tmp_1 + 5); s.tmp_0.arg0 = r0; - s.callLocIdx = 953; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1061; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_brightnessUp__P499132.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__P26456.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__P499132_mk(s) { +function scene_systemMenu_brightnessUp__P26456_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_brightnessUp__P499132, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_brightnessUp__P26456, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21538,7 +21868,7 @@ function scene_systemMenu_brightnessUp__P499132_mk(s) { -function scene_systemMenu_volumeDown__P499131(s) { +function scene_systemMenu_volumeDown__P26455(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21548,54 +21878,54 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___508176 = undefined; - s.remainder___508179 = undefined; - s.newVolume___508182 = undefined; - s.tmp_0 = music_volume__P496349_mk(s); - s.callLocIdx = 950; s.pc = 3; return s.tmp_0; + s.v___36129 = undefined; + s.remainder___36132 = undefined; + s.newVolume___36135 = undefined; + s.tmp_0 = music_volume__P23302_mk(s); + s.callLocIdx = 1058; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.v___508176 = (r0); - r0 = (s.v___508176 % 32); - s.remainder___508179 = (r0); - r0 = pxsim_numops_toBoolDecr(s.remainder___508179); + s.v___36129 = (r0); + r0 = (s.v___36129 % 32); + s.remainder___36132 = (r0); + r0 = pxsim_numops_toBoolDecr(s.remainder___36132); if (!r0) { step = 1; continue; } - r0 = s.remainder___508179; + r0 = s.remainder___36132; { step = 2; continue; } case 1: r0 = 32; case 2: // jmp value (already in r0) s.tmp_0 = r0; - r0 = (s.v___508176 - s.tmp_0); - s.newVolume___508182 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P499129_mk(s); - s.tmp_0.arg0 = s.newVolume___508182; - s.callLocIdx = 951; s.pc = 4; return s.tmp_0; + r0 = (s.v___36129 - s.tmp_0); + s.newVolume___36135 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P26453_mk(s); + s.tmp_0.arg0 = s.newVolume___36135; + s.callLocIdx = 1059; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeDown__P499131.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__P26455.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__P499131_mk(s) { +function scene_systemMenu_volumeDown__P26455_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeDown__P499131, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeDown__P26455, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___508176: undefined, - remainder___508179: undefined, - newVolume___508182: undefined, + v___36129: undefined, + remainder___36132: undefined, + newVolume___36135: undefined, } } -function scene_systemMenu_setVolume__P499129(s) { +function scene_systemMenu_setVolume__P26453(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21609,33 +21939,33 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = music_setVolume__P496348_mk(s); + s.tmp_0 = music_setVolume__P23301_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 945; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1053; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = music_playTone__P496350_mk(s); + s.tmp_0 = music_playTone__P23303_mk(s); s.tmp_0.arg0 = 440; s.tmp_0.arg1 = 500; - s.callLocIdx = 946; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1054; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = settings_writeNumber__P496595_mk(s); + s.tmp_0 = settings_writeNumber__P23553_mk(s); s.tmp_0.arg0 = "#volume"; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 947; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1055; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_setVolume__P499129.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__P26453.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__P499129_mk(s) { +function scene_systemMenu_setVolume__P26453_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_setVolume__P499129, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_setVolume__P26453, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -21645,7 +21975,7 @@ function scene_systemMenu_setVolume__P499129_mk(s) { -function music_playTone__P496350(s) { +function music_playTone__P23303(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21655,7 +21985,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.id___508017 = undefined; + s.id___35970 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -21680,7 +22010,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_2 = music_playNoteCore__P498570_mk(s); + s.tmp_2 = music_playNoteCore__P25882_mk(s); s.tmp_2.arg0 = 0; s.tmp_2.arg1 = s.arg0; r0 = pxsim_pxtrt_ldlocRef(s.arg1); @@ -21688,7 +22018,7 @@ switch (step) { s.callLocIdx = 65; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - s.tmp_0 = pause__P495158_mk(s); + s.tmp_0 = pause__P22108_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.arg1); s.tmp_0.arg0 = r0; s.callLocIdx = 66; s.pc = 6; return s.tmp_0; @@ -21696,13 +22026,13 @@ switch (step) { r0 = s.retval; { step = 4; continue; } case 3: - r0 = (globals.playToneID___498572 + 1); + r0 = (globals.playToneID___25884 + 1); s.tmp_0 = r0; - globals.playToneID___498572 = (r0); - s.id___508017 = (s.tmp_0); - r0 = pxsim_pxtcore_mkAction(3, inline__P508023); + globals.playToneID___25884 = (r0); + s.id___35970 = (s.tmp_0); + r0 = pxsim_pxtcore_mkAction(3, music_playTone_inline__P35976); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___508017); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.id___35970); 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); @@ -21711,17 +22041,17 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_playTone__P496350.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__P23303.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__P496350_mk(s) { +function music_playTone__P23303_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playTone__P496350, depth: s.depth + 1, + parent: s, fn: music_playTone__P23303, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - id___508017: undefined, + id___35970: undefined, arg0: undefined, arg1: undefined, } } @@ -21730,7 +22060,7 @@ function music_playTone__P496350_mk(s) { -function inline__P508023(s) { +function music_playTone_inline__P35976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21740,14 +22070,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pos___508024 = undefined; - s.now___508034 = undefined; - s.d___508037 = undefined; - s.t___508041 = undefined; + s.pos___35977 = undefined; + s.now___35987 = undefined; + s.d___35990 = undefined; + s.t___35994 = undefined; r0 = pxsim.control.millis(); - s.pos___508024 = (r0); + s.pos___35977 = (r0); case 1: - r0 = (s.caps[0] == globals.playToneID___498572); + r0 = (s.caps[0] == globals.playToneID___25884); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 2; continue; } @@ -21763,30 +22093,30 @@ switch (step) { r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 6; continue; } r0 = pxsim.control.millis(); - s.now___508034 = (r0); - r0 = (s.pos___508024 - s.now___508034); - s.d___508037 = (r0); - s.tmp_0 = Math_min__P494882_mk(s); + s.now___35987 = (r0); + r0 = (s.pos___35977 - s.now___35987); + s.d___35990 = (r0); + s.tmp_0 = Math_min__P21826_mk(s); r0 = pxsim_pxtrt_ldlocRef(s.caps[1]); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = 500; s.callLocIdx = 67; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.t___508041 = (r0); + s.t___35994 = (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___508041); + r0 = (s.tmp_2 - s.t___35994); s.tmp_1 = r0; r0 = pxsim_pxtrt_stlocRef(s.tmp_0, s.tmp_1); - r0 = (s.pos___508024 + s.t___508041); - s.pos___508024 = (r0); - s.tmp_0 = music_playNoteCore__P498570_mk(s); - r0 = (s.d___508037 - 1); + r0 = (s.pos___35977 + s.t___35994); + s.pos___35977 = (r0); + s.tmp_0 = music_playNoteCore__P25882_mk(s); + r0 = (s.d___35990 - 1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.caps[2]; - s.tmp_0.arg2 = s.t___508041; + s.tmp_0.arg2 = s.t___35994; s.callLocIdx = 68; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; @@ -21796,16 +22126,16 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.tmp_2 = pause__P495158_mk(s); - r0 = (s.d___508037 + s.t___508041); + s.tmp_2 = pause__P22108_mk(s); + r0 = (s.d___35990 + s.t___35994); s.tmp_2.arg0 = r0; s.callLocIdx = 69; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; { step = 5; continue; } case 4: - s.tmp_0 = pause__P495158_mk(s); - r0 = (s.d___508037 + s.t___508041); + s.tmp_0 = pause__P22108_mk(s); + r0 = (s.d___35990 + s.t___35994); s.tmp_1 = r0; r0 = (s.tmp_1 - 100); s.tmp_0.arg0 = r0; @@ -21819,27 +22149,27 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P508023.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__P35976.info = {"start":2890,"length":515,"line":92,"column":34,"endLine":106,"endColumn":13,"fileName":"pxt_modules/mixer/melody.ts","functionName":"inline","argumentNames":[]} -function inline__P508023_mk(s) { +function music_playTone_inline__P35976_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P508023, depth: s.depth + 1, + parent: s, fn: music_playTone_inline__P35976, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - pos___508024: undefined, - now___508034: undefined, - d___508037: undefined, - t___508041: undefined, + pos___35977: undefined, + now___35987: undefined, + d___35990: undefined, + t___35994: undefined, } } -function music_playNoteCore__P498570(s) { +function music_playNoteCore__P25882(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21849,7 +22179,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___508071 = undefined; + s.buf___36024 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -21857,16 +22187,16 @@ switch (step) { s.lambdaArgs = null; } r0 = pxsim.control.createBuffer(12); - s.buf___508071 = (r0); - s.tmp_0 = music_addNote__P498577_mk(s); - s.tmp_0.arg0 = s.buf___508071; + s.buf___36024 = (r0); + s.tmp_0 = music_addNote__P25889_mk(s); + s.tmp_0.arg0 = s.buf___36024; 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__P496349_mk(s); + s.tmp_1 = music_volume__P23302_mk(s); s.callLocIdx = 63; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; @@ -21875,21 +22205,21 @@ switch (step) { s.callLocIdx = 64; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___508071); + r0 = pxsim.music.queuePlayInstructions(s.arg0, s.buf___36024); r0 = undefined; return leave(s, r0) default: oops() } } } -music_playNoteCore__P498570.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__P25882.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__P498570_mk(s) { +function music_playNoteCore__P25882_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_playNoteCore__P498570, depth: s.depth + 1, + parent: s, fn: music_playNoteCore__P25882, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___508071: undefined, + buf___36024: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -21899,7 +22229,7 @@ function music_playNoteCore__P498570_mk(s) { -function music_addNote__P498577(s) { +function music_addNote__P25889(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -21967,12 +22297,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_addNote__P498577.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__P25889.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__P498577_mk(s) { +function music_addNote__P25889_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_addNote__P498577, depth: s.depth + 1, + parent: s, fn: music_addNote__P25889, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -21993,7 +22323,7 @@ function music_addNote__P498577_mk(s) { -function music_setVolume__P496348(s) { +function music_setVolume__P23301(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22007,7 +22337,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Math_clamp__P494878_mk(s); + s.tmp_0 = Math_clamp__P21822_mk(s); s.tmp_0.arg0 = 0; s.tmp_0.arg1 = 255; r0 = (s.arg0 | 0); @@ -22015,8 +22345,8 @@ switch (step) { s.callLocIdx = 60; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.globalVolume___498565 = (r0); - r0 = (globals.globalVolume___498565 > 0); + globals.globalVolume___25877 = (r0); + r0 = (globals.globalVolume___25877 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } @@ -22032,12 +22362,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_setVolume__P496348.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__P23301.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__P496348_mk(s) { +function music_setVolume__P23301_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_setVolume__P496348, depth: s.depth + 1, + parent: s, fn: music_setVolume__P23301, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22048,7 +22378,7 @@ function music_setVolume__P496348_mk(s) { -function music_enableAmp__P498568(s) { +function music_enableAmp__P25880(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22066,12 +22396,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_enableAmp__P498568.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__P25880.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__P498568_mk(s) { +function music_enableAmp__P25880_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_enableAmp__P498568, depth: s.depth + 1, + parent: s, fn: music_enableAmp__P25880, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -22080,7 +22410,7 @@ function music_enableAmp__P498568_mk(s) { -function scene_systemMenu_volumeUp__P499130(s) { +function scene_systemMenu_volumeUp__P26454(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22090,47 +22420,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.v___507985 = undefined; - s.remainder___507988 = undefined; - s.newVolume___507991 = undefined; - s.tmp_0 = music_volume__P496349_mk(s); - s.callLocIdx = 948; s.pc = 1; return s.tmp_0; + s.v___35938 = undefined; + s.remainder___35941 = undefined; + s.newVolume___35944 = undefined; + s.tmp_0 = music_volume__P23302_mk(s); + s.callLocIdx = 1056; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.v___507985 = (r0); - r0 = (s.v___507985 % 32); - s.remainder___507988 = (r0); - r0 = (s.v___507985 + 32); + s.v___35938 = (r0); + r0 = (s.v___35938 % 32); + s.remainder___35941 = (r0); + r0 = (s.v___35938 + 32); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.remainder___507988); - s.newVolume___507991 = (r0); - s.tmp_0 = scene_systemMenu_setVolume__P499129_mk(s); - s.tmp_0.arg0 = s.newVolume___507991; - s.callLocIdx = 949; s.pc = 2; return s.tmp_0; + r0 = (s.tmp_0 - s.remainder___35941); + s.newVolume___35944 = (r0); + s.tmp_0 = scene_systemMenu_setVolume__P26453_mk(s); + s.tmp_0.arg0 = s.newVolume___35944; + s.callLocIdx = 1057; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_volumeUp__P499130.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__P26454.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__P499130_mk(s) { +function scene_systemMenu_volumeUp__P26454_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_volumeUp__P499130, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_volumeUp__P26454, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - v___507985: undefined, - remainder___507988: undefined, - newVolume___507991: undefined, + v___35938: undefined, + remainder___35941: undefined, + newVolume___35944: undefined, } } -function game_consoleOverlay_isVisible__P497421(s) { +function game_consoleOverlay_isVisible__P24500(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22140,7 +22470,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___499171); + r0 = pxsim_numops_toBoolDecr(globals.consoleStrings___26495); s.tmp_2 = r0; r0 = pxsim_Boolean__bang(s.tmp_2); s.tmp_1 = r0; @@ -22150,12 +22480,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_consoleOverlay_isVisible__P497421.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__P24500.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__P497421_mk(s) { +function game_consoleOverlay_isVisible__P24500_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_consoleOverlay_isVisible__P497421, depth: s.depth + 1, + parent: s, fn: game_consoleOverlay_isVisible__P24500, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22166,7 +22496,7 @@ function game_consoleOverlay_isVisible__P497421_mk(s) { -function scene_systemMenu_closeMenu__P497399(s) { +function scene_systemMenu_closeMenu__P24478(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22176,21 +22506,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.instance___499125); + r0 = pxsim_numops_toBoolDecr(globals.instance___26449); if (!r0) { step = 1; continue; } - s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P497398_mk(s); - s.tmp_0.arg0 = globals.instance___499125; - s.callLocIdx = 964; s.pc = 3; return s.tmp_0; + s.tmp_0 = scene_systemMenu_PauseMenu_dispose__P24477_mk(s); + s.tmp_0.arg0 = globals.instance___26449; + s.callLocIdx = 1072; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - globals.instance___499125 = (undefined); - s.tmp_0 = controller__setUserEventsEnabled__P496720_mk(s); + globals.instance___26449 = (undefined); + s.tmp_0 = controller__setUserEventsEnabled__P23691_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 965; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1073; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = game_popScene__P497307_mk(s); - s.callLocIdx = 966; s.pc = 5; return s.tmp_0; + s.tmp_0 = game_popScene__P24385_mk(s); + s.callLocIdx = 1074; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -22199,12 +22529,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_closeMenu__P497399.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__P24478.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__P497399_mk(s) { +function scene_systemMenu_closeMenu__P24478_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_closeMenu__P497399, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_closeMenu__P24478, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -22213,7 +22543,7 @@ function scene_systemMenu_closeMenu__P497399_mk(s) { -function scene_systemMenu_PauseMenu_dispose__P497398(s) { +function scene_systemMenu_PauseMenu_dispose__P24477(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22228,16 +22558,16 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C497392_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C24471_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__P494861_mk(s); + s.tmp_1 = helpers_arrayForEach__P21804_mk(s); r0 = s.arg0.fields["options"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = inline__P506497; - s.callLocIdx = 941; s.pc = 3; return s.tmp_1; + s.tmp_1.arg1 = scene_systemMenu_PauseMenu_dispose_inline__P34325; + s.callLocIdx = 1049; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; r0 = (s.arg0).fields["options"] = (undefined); @@ -22247,12 +22577,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_dispose__P497398.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__P24477.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__P497398_mk(s) { +function scene_systemMenu_PauseMenu_dispose__P24477_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_dispose__P497398, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose__P24477, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22263,7 +22593,7 @@ function scene_systemMenu_PauseMenu_dispose__P497398_mk(s) { -function inline__P506497(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P34325(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22277,21 +22607,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = scene_systemMenu_MenuOption_dispose__P497391_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_dispose__P24470_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 940; 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__P506497.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__P34325.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__P506497_mk(s) { +function scene_systemMenu_PauseMenu_dispose_inline__P34325_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506497, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_dispose_inline__P34325, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22301,7 +22631,7 @@ function inline__P506497_mk(s) { -function scene_systemMenu_MenuOption_dispose__P497391(s) { +function scene_systemMenu_MenuOption_dispose__P24470(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22316,25 +22646,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C497384_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C24463_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__P496862_mk(s); + s.tmp_1 = Sprite_destroy__P23910_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = undefined; s.tmp_1.arg2 = undefined; - s.callLocIdx = 860; s.pc = 3; return s.tmp_1; + s.callLocIdx = 968; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.tmp_0 = Sprite_destroy__P496862_mk(s); + s.tmp_0 = Sprite_destroy__P23910_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 861; s.pc = 4; return s.tmp_0; + s.callLocIdx = 969; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = (s.arg0).fields["card"] = (undefined); @@ -22345,12 +22675,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_dispose__P497391.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__P24470.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__P497391_mk(s) { +function scene_systemMenu_MenuOption_dispose__P24470_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_dispose__P497391, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_dispose__P24470, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22361,7 +22691,7 @@ function scene_systemMenu_MenuOption_dispose__P497391_mk(s) { -function Sprite_destroy__P496862(s) { +function Sprite_destroy__P23910(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22378,7 +22708,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 2); @@ -22396,19 +22726,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__P497562_mk(s); + s.tmp_0 = effects_ParticleEffect_destroy__P24641_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 = 368; s.pc = 6; return s.tmp_0; + s.callLocIdx = 471; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; { step = 4; continue; } case 3: - s.tmp_0 = Sprite__destroyCore__P496863_mk(s); + s.tmp_0 = Sprite__destroyCore__P23911_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 369; s.pc = 7; return s.tmp_0; + s.callLocIdx = 472; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; case 4: @@ -22417,12 +22747,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_destroy__P496862.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__P23910.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__P496862_mk(s) { +function Sprite_destroy__P23910_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_destroy__P496862, depth: s.depth + 1, + parent: s, fn: Sprite_destroy__P23910, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22438,7 +22768,7 @@ function Sprite_destroy__P496862_mk(s) { -function effects_ParticleEffect_destroy__P497562(s) { +function effects_ParticleEffect_destroy__P24641(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22456,15 +22786,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C497559_VT)) failedCast(r0); - s.tmp_0 = Sprite_setFlag__P496854_mk(s); + if (!checkSubtype(r0, effects_ParticleEffect__C24638_VT)) failedCast(r0); + s.tmp_0 = Sprite_setFlag__P23901_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 7168; s.tmp_0.arg2 = true; - s.callLocIdx = 1125; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1233; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = effects_ParticleEffect_start__P497561_mk(s); + s.tmp_0 = effects_ParticleEffect_start__P24640_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg3; @@ -22481,7 +22811,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg4 = r0; - s.callLocIdx = 1126; s.pc = 4; return s.tmp_0; + s.callLocIdx = 1234; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -22496,22 +22826,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__P497588_mk(s); - s.tmp_0.arg0 = globals.dissolve___497591; + s.tmp_0 = effects_ImageEffect_applyTo__P24667_mk(s); + s.tmp_0.arg0 = globals.dissolve___24670; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1127; s.pc = 5; return s.tmp_0; + s.callLocIdx = 1235; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -effects_ParticleEffect_destroy__P497562.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__P24641.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__P497562_mk(s) { +function effects_ParticleEffect_destroy__P24641_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_destroy__P497562, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_destroy__P24641, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22529,7 +22859,7 @@ function effects_ParticleEffect_destroy__P497562_mk(s) { -function inline__P506649(s) { +function dissolve_inline__P34469(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22539,11 +22869,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___506652 = undefined; - s.x___506663 = undefined; - s.y___506669 = undefined; - s.w___506675 = undefined; - s.h___506679 = undefined; + s.i___34472 = undefined; + s.x___34483 = undefined; + s.y___34489 = undefined; + s.w___34495 = undefined; + s.h___34499 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -22556,13 +22886,13 @@ switch (step) { r0 = (s.tmp_1 * s.tmp_2); s.tmp_0 = r0; r0 = (s.tmp_0 >> 5); - s.i___506652 = (r0); + s.i___34472 = (r0); case 1: - r0 = (s.i___506652 > 0); + r0 = (s.i___34472 > 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = Math_FastRandom_randomRange__P497360_mk(s); + s.tmp_1 = Math_FastRandom_randomRange__P24439_mk(s); s.tmp_1.arg0 = s.arg1; s.tmp_1.arg1 = 0; r0 = pxsim_ImageMethods.width(s.arg0); @@ -22570,8 +22900,8 @@ switch (step) { s.callLocIdx = 38; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; - s.x___506663 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P497360_mk(s); + s.x___34483 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P24439_mk(s); s.tmp_0.arg0 = s.arg1; s.tmp_0.arg1 = 0; r0 = pxsim_ImageMethods.height(s.arg0); @@ -22579,56 +22909,56 @@ switch (step) { s.callLocIdx = 39; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.y___506669 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P497360_mk(s); + s.y___34489 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P24439_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___506675 = (r0); - s.tmp_0 = Math_FastRandom_randomRange__P497360_mk(s); + s.w___34495 = (r0); + s.tmp_0 = Math_FastRandom_randomRange__P24439_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___506679 = (r0); - s.tmp_0 = helpers_imageDrawRect__P496497_mk(s); + s.h___34499 = (r0); + s.tmp_0 = helpers_imageDrawRect__P23453_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.x___506663; - s.tmp_0.arg2 = s.y___506669; - s.tmp_0.arg3 = s.w___506675; - s.tmp_0.arg4 = s.h___506679; + s.tmp_0.arg1 = s.x___34483; + s.tmp_0.arg2 = s.y___34489; + s.tmp_0.arg3 = s.w___34495; + s.tmp_0.arg4 = s.h___34499; s.tmp_0.arg5 = 0; s.callLocIdx = 42; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = (s.i___506652 - 1); - s.i___506652 = (r0); + r0 = (s.i___34472 - 1); + s.i___34472 = (r0); { step = 1; continue; } case 2: r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506649.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__P34469.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__P506649_mk(s) { +function dissolve_inline__P34469_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506649, depth: s.depth + 1, + parent: s, fn: dissolve_inline__P34469, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - i___506652: undefined, - x___506663: undefined, - y___506669: undefined, - w___506675: undefined, - h___506679: undefined, + i___34472: undefined, + x___34483: undefined, + y___34489: undefined, + w___34495: undefined, + h___34499: undefined, arg0: undefined, arg1: undefined, } } @@ -22637,7 +22967,7 @@ function inline__P506649_mk(s) { -function helpers_imageDrawRect__P496497(s) { +function helpers_imageDrawRect__P23453(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22676,7 +23006,7 @@ switch (step) { s.arg3 = (r0); r0 = (s.arg4 - 1); s.arg4 = (r0); - s.tmp_0 = helpers_imageDrawLine__P496496_mk(s); + s.tmp_0 = helpers_imageDrawLine__P23452_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -22687,7 +23017,7 @@ switch (step) { s.callLocIdx = 82; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P496496_mk(s); + s.tmp_0 = helpers_imageDrawLine__P23452_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; @@ -22698,7 +23028,7 @@ switch (step) { s.callLocIdx = 83; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P496496_mk(s); + s.tmp_0 = helpers_imageDrawLine__P23452_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -22711,7 +23041,7 @@ switch (step) { s.callLocIdx = 84; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = helpers_imageDrawLine__P496496_mk(s); + s.tmp_0 = helpers_imageDrawLine__P23452_mk(s); s.tmp_0.arg0 = s.arg0; r0 = (s.arg1 + s.arg3); s.tmp_0.arg1 = r0; @@ -22729,12 +23059,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawRect__P496497.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__P23453.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__P496497_mk(s) { +function helpers_imageDrawRect__P23453_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawRect__P496497, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawRect__P23453, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22750,7 +23080,7 @@ function helpers_imageDrawRect__P496497_mk(s) { -function helpers_imageDrawLine__P496496(s) { +function helpers_imageDrawLine__P23452(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22770,14 +23100,14 @@ switch (step) { s.lambdaArgs = null; } s.tmp_0 = r0 = s.arg0; - s.tmp_2 = helpers_pack__P498612_mk(s); + s.tmp_2 = helpers_pack__P25925_mk(s); s.tmp_2.arg0 = s.arg1; s.tmp_2.arg1 = s.arg2; s.callLocIdx = 80; s.pc = 1; return s.tmp_2; case 1: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = helpers_pack__P498612_mk(s); + s.tmp_4 = helpers_pack__P25925_mk(s); s.tmp_4.arg0 = s.arg3; s.tmp_4.arg1 = s.arg4; s.callLocIdx = 81; s.pc = 2; return s.tmp_4; @@ -22789,12 +23119,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imageDrawLine__P496496.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__P23452.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__P496496_mk(s) { +function helpers_imageDrawLine__P23452_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imageDrawLine__P496496, depth: s.depth + 1, + parent: s, fn: helpers_imageDrawLine__P23452, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22813,7 +23143,7 @@ function helpers_imageDrawLine__P496496_mk(s) { -function effects_ImageEffect_applyTo__P497588(s) { +function effects_ImageEffect_applyTo__P24667(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22823,14 +23153,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.clonedImage___506775 = undefined; + s.clonedImage___34595 = 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__C497586_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C24665_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -22856,17 +23186,17 @@ switch (step) { r0 = s.arg1.fields["_image"]; s.tmp_5 = r0; r0 = pxsim_ImageMethods.clone(s.tmp_5); - s.clonedImage___506775 = (r0); - s.tmp_0 = effects_ImageEffect_change__P497589_mk(s); + s.clonedImage___34595 = (r0); + s.tmp_0 = effects_ImageEffect_change__P24668_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.clonedImage___506775; - s.callLocIdx = 1138; s.pc = 6; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___34595; + s.callLocIdx = 1246; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_setImage__P496829_mk(s); + s.tmp_0 = Sprite_setImage__P23873_mk(s); s.tmp_0.arg0 = s.arg1; - s.tmp_0.arg1 = s.clonedImage___506775; - s.callLocIdx = 1139; s.pc = 7; return s.tmp_0; + s.tmp_0.arg1 = s.clonedImage___34595; + s.callLocIdx = 1247; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; case 5: @@ -22874,12 +23204,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_applyTo__P497588.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__P24667.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__P497588_mk(s) { +function effects_ImageEffect_applyTo__P24667_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_applyTo__P497588, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_applyTo__P24667, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -22887,7 +23217,7 @@ function effects_ImageEffect_applyTo__P497588_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - clonedImage___506775: undefined, + clonedImage___34595: undefined, arg0: undefined, arg1: undefined, } } @@ -22896,7 +23226,7 @@ function effects_ImageEffect_applyTo__P497588_mk(s) { -function effects_ImageEffect_change__P497589(s) { +function effects_ImageEffect_change__P24668(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22912,7 +23242,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ImageEffect__C497586_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ImageEffect__C24665_VT)) failedCast(r0); s.tmp_0 = if_effect_3_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; @@ -22920,12 +23250,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 = 1140; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1248; 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 = 1140; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1140; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 1140; 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 = 1248; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 1248; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 1248; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -22933,12 +23263,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ImageEffect_change__P497589.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__P24668.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__P497589_mk(s) { +function effects_ImageEffect_change__P24668_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ImageEffect_change__P497589, depth: s.depth + 1, + parent: s, fn: effects_ImageEffect_change__P24668, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -22949,7 +23279,7 @@ function effects_ImageEffect_change__P497589_mk(s) { -function Sprite_setImage__P496829(s) { +function Sprite_setImage__P23873(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -22965,36 +23295,49 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P496830_mk(s); + s.tmp_0 = Sprite_recalcSize__P26031_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 247; s.pc = 4; return s.tmp_0; - case 4: + s.callLocIdx = 310; 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__P496829.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__P23873.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__P496829_mk(s) { +function Sprite_setImage__P23873_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setImage__P496829, depth: s.depth + 1, + parent: s, fn: Sprite_setImage__P23873, depth: s.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, } } @@ -23003,7 +23346,7 @@ function Sprite_setImage__P496829_mk(s) { -function Sprite_setHitbox__P496830(s) { +function Sprite_recalcSize__P26031(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23013,157 +23356,296 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.newHitBox___506794 = undefined; - s.oMinX___506802 = undefined; - s.oMinY___506806 = undefined; - s.oMaxX___506810 = undefined; - s.oMaxY___506817 = undefined; - s.nMinX___506824 = undefined; - s.nMinY___506827 = undefined; - s.nMaxX___506830 = undefined; - s.nMaxY___506836 = undefined; - s.xDiff___506842 = undefined; - s.yDiff___506853 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_0 = game_calculateHitBox__P496736_mk(s); + if (!checkSubtype(r0, Sprite__C23823_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__P23852_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 333; 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__P23854_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 335; 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__P23875_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 248; s.pc = 8; return s.tmp_0; - case 8: + s.callLocIdx = 337; s.pc = 3; return s.tmp_0; + case 3: r0 = s.retval; - s.newHitBox___506794 = (r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_recalcSize__P26031.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__P26031_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_recalcSize__P26031, depth: s.depth + 1, + pc: 0, retval: undefined, 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__P23875(s) { +let r0 = s.r0, 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__C23823_VT)) failedCast(r0); + r0 = (s.arg0).fields["_hitbox"] = (null); + s.tmp_0 = Sprite_setHitbox__P23876_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 314; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_resetHitbox__P23875.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__P23875_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_resetHitbox__P23875, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_setHitbox__P23876(s) { +let r0 = s.r0, 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___34643 = undefined; + s.oMinX___34657 = undefined; + s.oMinY___34661 = undefined; + s.oMaxX___34665 = undefined; + s.oMaxY___34672 = undefined; + s.nMinX___34679 = undefined; + s.nMinY___34682 = undefined; + s.nMaxX___34685 = undefined; + s.nMaxY___34691 = undefined; + s.xDiff___34697 = undefined; + s.yDiff___34708 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_0 = game_calculateHitBox__P23708_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 315; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + s.newHitBox___34643 = (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___506794); - { step = 7; continue; } + r0 = s.tmp_0; + { step = 2; continue; } case 1: + s.tmp_3 = game_Hitbox_isValid__P23705_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_3.arg0 = r0; + s.callLocIdx = 316; 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___34643); + { step = 9; continue; } + case 3: + case 4: r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["ox"]; - s.oMinX___506802 = (r0); + s.oMinX___34657 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["oy"]; - s.oMinY___506806 = (r0); + s.oMinY___34661 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; s.tmp_0 = r0; - r0 = (s.oMinX___506802 + s.tmp_0); - s.oMaxX___506810 = (r0); + r0 = (s.oMinX___34657 + s.tmp_0); + s.oMaxX___34665 = (r0); r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["height"]; s.tmp_0 = r0; - r0 = (s.oMinY___506806 + s.tmp_0); - s.oMaxY___506817 = (r0); - r0 = s.newHitBox___506794.fields["ox"]; - s.nMinX___506824 = (r0); - r0 = s.newHitBox___506794.fields["oy"]; - s.nMinY___506827 = (r0); - r0 = s.newHitBox___506794.fields["width"]; - s.tmp_0 = r0; - r0 = (s.nMinX___506824 + s.tmp_0); - s.nMaxX___506830 = (r0); - r0 = s.newHitBox___506794.fields["height"]; - s.tmp_0 = r0; - r0 = (s.nMinY___506827 + s.tmp_0); - s.nMaxY___506836 = (r0); - s.tmp_1 = Fx_abs__P494916_mk(s); - r0 = (s.oMinX___506802 - s.nMinX___506824); + r0 = (s.oMinY___34661 + s.tmp_0); + s.oMaxY___34672 = (r0); + r0 = s.newHitBox___34643.fields["ox"]; + s.nMinX___34679 = (r0); + r0 = s.newHitBox___34643.fields["oy"]; + s.nMinY___34682 = (r0); + r0 = s.newHitBox___34643.fields["width"]; + s.tmp_0 = r0; + r0 = (s.nMinX___34679 + s.tmp_0); + s.nMaxX___34685 = (r0); + r0 = s.newHitBox___34643.fields["height"]; + s.tmp_0 = r0; + r0 = (s.nMinY___34682 + s.tmp_0); + s.nMaxY___34691 = (r0); + s.tmp_1 = Fx_abs__P21860_mk(s); + r0 = (s.oMinX___34657 - s.nMinX___34679); s.tmp_1.arg0 = r0; - s.callLocIdx = 254; s.pc = 9; return s.tmp_1; - case 9: + s.callLocIdx = 322; s.pc = 12; return s.tmp_1; + case 12: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P494916_mk(s); - r0 = (s.oMaxX___506810 - s.nMaxX___506830); + s.tmp_3 = Fx_abs__P21860_mk(s); + r0 = (s.oMaxX___34665 - s.nMaxX___34685); s.tmp_3.arg0 = r0; - s.callLocIdx = 256; s.pc = 10; return s.tmp_3; - case 10: + s.callLocIdx = 324; 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___506842 = (r0); - s.tmp_1 = Fx_abs__P494916_mk(s); - r0 = (s.oMinY___506806 - s.nMinY___506827); + s.xDiff___34697 = (r0); + s.tmp_1 = Fx_abs__P21860_mk(s); + r0 = (s.oMinY___34661 - s.nMinY___34682); s.tmp_1.arg0 = r0; - s.callLocIdx = 259; s.pc = 11; return s.tmp_1; - case 11: + s.callLocIdx = 327; s.pc = 14; return s.tmp_1; + case 14: r0 = s.retval; s.tmp_0 = r0; - s.tmp_3 = Fx_abs__P494916_mk(s); - r0 = (s.oMaxY___506817 - s.nMaxY___506836); + s.tmp_3 = Fx_abs__P21860_mk(s); + r0 = (s.oMaxY___34672 - s.nMaxY___34691); s.tmp_3.arg0 = r0; - s.callLocIdx = 261; s.pc = 12; return s.tmp_3; - case 12: + s.callLocIdx = 329; 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___506853 = (r0); - r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___506794); - r0 = (s.xDiff___506842 <= 512); + s.yDiff___34708 = (r0); + r0 = (s.arg0).fields["_hitbox"] = (s.newHitBox___34643); + r0 = (s.xDiff___34697 <= 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___506802); + r0 = (s.tmp_1).fields["ox"] = (s.oMinX___34657); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxX___506810 - s.oMinX___506802); + r0 = (s.oMaxX___34665 - s.oMinX___34657); s.tmp_1 = r0; r0 = (s.tmp_0).fields["width"] = (s.tmp_1); - case 3: - case 4: - r0 = (s.yDiff___506853 <= 512); + case 5: + case 6: + r0 = (s.yDiff___34708 <= 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___506806); + r0 = (s.tmp_1).fields["oy"] = (s.oMinY___34661); r0 = s.arg0.fields["_hitbox"]; s.tmp_0 = r0; - r0 = (s.oMaxY___506817 - s.oMinY___506806); + r0 = (s.oMaxY___34672 - s.oMinY___34661); s.tmp_1 = r0; r0 = (s.tmp_0).fields["height"] = (s.tmp_1); - case 5: - case 6: case 7: + case 8: + case 9: r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_setHitbox__P496830.info = {"start":7247,"length":1296,"line":264,"column":4,"endLine":303,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} +Sprite_setHitbox__P23876.info = {"start":9614,"length":1324,"line":347,"column":4,"endLine":386,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setHitbox","argumentNames":["this"]} -function Sprite_setHitbox__P496830_mk(s) { +function Sprite_setHitbox__P23876_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setHitbox__P496830, depth: s.depth + 1, + parent: s, fn: Sprite_setHitbox__P23876, depth: s.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___506794: undefined, - oMinX___506802: undefined, - oMinY___506806: undefined, - oMaxX___506810: undefined, - oMaxY___506817: undefined, - nMinX___506824: undefined, - nMinY___506827: undefined, - nMaxX___506830: undefined, - nMaxY___506836: undefined, - xDiff___506842: undefined, - yDiff___506853: undefined, + tmp_4: undefined, + newHitBox___34643: undefined, + oMinX___34657: undefined, + oMinY___34661: undefined, + oMaxX___34665: undefined, + oMaxY___34672: undefined, + nMinX___34679: undefined, + nMinY___34682: undefined, + nMaxX___34685: undefined, + nMaxY___34691: undefined, + xDiff___34697: undefined, + yDiff___34708: undefined, arg0: undefined, } } @@ -23171,7 +23653,7 @@ function Sprite_setHitbox__P496830_mk(s) { -function game_calculateHitBox__P496736(s) { +function game_calculateHitBox__P23708(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23181,132 +23663,207 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___506902 = undefined; - s.minX___506905 = undefined; - s.minY___506908 = undefined; - s.maxX___506911 = undefined; - s.maxY___506912 = undefined; - s.c___506913 = undefined; - s.r___506919 = undefined; - s.width___506950 = undefined; - s.height___506956 = undefined; + s.i___34784 = undefined; + s.minX___34787 = undefined; + s.minY___34791 = undefined; + s.maxX___34795 = undefined; + s.maxY___34797 = undefined; + s.c___34799 = undefined; + s.fxc___34800 = undefined; + s.r___34807 = undefined; + s.fxr___34808 = undefined; + s.width___34872 = undefined; + s.height___34880 = 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__P23705_mk(s); + r0 = s.arg0.fields["_hitbox"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 246; 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___506902 = (r0); - r0 = pxsim_ImageMethods.width(s.i___506902); - s.minX___506905 = (r0); - r0 = pxsim_ImageMethods.height(s.i___506902); - s.minY___506908 = (r0); - s.maxX___506911 = (0); - s.maxY___506912 = (0); - s.c___506913 = (0); - case 1: - s.tmp_1 = r0 = s.c___506913; - r0 = pxsim_ImageMethods.width(s.i___506902); + s.i___34784 = (r0); + r0 = pxsim_ImageMethods.width(s.i___34784); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.minX___34787 = (r0); + r0 = pxsim_ImageMethods.height(s.i___34784); + s.tmp_0 = r0; + r0 = (s.tmp_0 * 256); + s.tmp_1 = r0; + r0 = (s.tmp_1 | 0); + s.minY___34791 = (r0); + s.maxX___34795 = (0); + s.maxY___34797 = (0); + s.c___34799 = (0); + s.fxc___34800 = (0); + case 5: + s.tmp_1 = r0 = s.c___34799; + r0 = pxsim_ImageMethods.width(s.i___34784); 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___506919 = (0); - case 2: - s.tmp_1 = r0 = s.r___506919; - r0 = pxsim_ImageMethods.height(s.i___506902); + if (!r0) { step = 10; continue; } + s.r___34807 = (0); + s.fxr___34808 = (0); + case 6: + s.tmp_1 = r0 = s.r___34807; + r0 = pxsim_ImageMethods.height(s.i___34784); 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___506902, s.c___506913, s.r___506919); + if (!r0) { step = 9; continue; } + r0 = pxsim_ImageMethods.getPixel(s.i___34784, s.c___34799, s.r___34807); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); - if (!r0) { step = 3; continue; } - s.tmp_4 = Math_min__P494882_mk(s); - s.tmp_4.arg0 = s.minX___506905; - s.tmp_4.arg1 = s.c___506913; - s.callLocIdx = 207; s.pc = 7; return s.tmp_4; - case 7: + if (!r0) { step = 7; continue; } + s.tmp_4 = Fx_min__P21861_mk(s); + s.tmp_4.arg0 = s.minX___34787; + s.tmp_4.arg1 = s.fxc___34800; + s.callLocIdx = 250; s.pc = 13; return s.tmp_4; + case 13: r0 = s.retval; - s.minX___506905 = (r0); - s.tmp_0 = Math_min__P494882_mk(s); - s.tmp_0.arg0 = s.minY___506908; - s.tmp_0.arg1 = s.r___506919; - s.callLocIdx = 208; s.pc = 8; return s.tmp_0; - case 8: + s.minX___34787 = (r0); + s.tmp_0 = Fx_min__P21861_mk(s); + s.tmp_0.arg0 = s.minY___34791; + s.tmp_0.arg1 = s.fxr___34808; + s.callLocIdx = 251; s.pc = 14; return s.tmp_0; + case 14: r0 = s.retval; - s.minY___506908 = (r0); - s.tmp_0 = Math_max__P494881_mk(s); - s.tmp_0.arg0 = s.maxX___506911; - s.tmp_0.arg1 = s.c___506913; - s.callLocIdx = 209; s.pc = 9; return s.tmp_0; - case 9: + s.minY___34791 = (r0); + s.tmp_0 = Fx_max__P21862_mk(s); + s.tmp_0.arg0 = s.maxX___34795; + s.tmp_0.arg1 = s.fxc___34800; + s.callLocIdx = 252; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; - s.maxX___506911 = (r0); - s.tmp_0 = Math_max__P494881_mk(s); - s.tmp_0.arg0 = s.maxY___506912; - s.tmp_0.arg1 = s.r___506919; - s.callLocIdx = 210; s.pc = 10; return s.tmp_0; - case 10: + s.maxX___34795 = (r0); + s.tmp_0 = Fx_max__P21862_mk(s); + s.tmp_0.arg0 = s.maxY___34797; + s.tmp_0.arg1 = s.fxr___34808; + s.callLocIdx = 253; s.pc = 16; return s.tmp_0; + case 16: r0 = s.retval; - s.maxY___506912 = (r0); - case 3: - case 4: - r0 = (s.r___506919 + 1); - s.r___506919 = (r0); - { step = 2; continue; } - case 5: - r0 = (s.c___506913 + 1); - s.c___506913 = (r0); - { step = 1; continue; } - case 6: - r0 = (s.maxX___506911 - s.minX___506905); + s.maxY___34797 = (r0); + case 7: + case 8: + r0 = (s.r___34807 + 1); + s.r___34807 = (r0); + r0 = (s.fxr___34808 + 256); s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.width___506950 = (r0); - r0 = (s.maxY___506912 - s.minY___506908); + s.fxr___34808 = (r0); + r0 = s.tmp_0; + { step = 6; continue; } + case 9: + r0 = (s.c___34799 + 1); + s.c___34799 = (r0); + r0 = (s.fxc___34800 + 256); s.tmp_0 = r0; - r0 = (s.tmp_0 + 1); - s.height___506956 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C496725_VT); + s.fxc___34800 = (r0); + r0 = s.tmp_0; + { step = 5; continue; } + case 10: + r0 = s.arg0.fields["_sx"]; s.tmp_0 = r0; - s.tmp_1 = game_Hitbox_constructor__P496731_mk(s); + r0 = pxsim.Math_.imul(s.minX___34787, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minX___34787 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.minY___34791, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.minY___34791 = (r0); + r0 = s.arg0.fields["_sx"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxX___34795, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxX___34795 = (r0); + r0 = s.arg0.fields["_sy"]; + s.tmp_0 = r0; + r0 = pxsim.Math_.imul(s.maxY___34797, s.tmp_0); + s.tmp_1 = r0; + r0 = (s.tmp_1 >> 8); + s.maxY___34797 = (r0); + r0 = (s.maxX___34795 - s.minX___34787); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sx"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.width___34872 = (r0); + r0 = (s.maxY___34797 - s.minY___34791); + s.tmp_0 = r0; + r0 = s.arg0.fields["_sy"]; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.height___34880 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(game_Hitbox__C23693_VT); + s.tmp_0 = r0; + s.tmp_1 = game_Hitbox_constructor__P23700_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.tmp_1.arg2 = s.width___506950; - s.tmp_1.arg3 = s.height___506956; - s.tmp_1.arg4 = s.minX___506905; - s.tmp_1.arg5 = s.minY___506908; - s.callLocIdx = 211; s.pc = 11; return s.tmp_1; - case 11: + s.tmp_1.arg2 = s.width___34872; + s.tmp_1.arg3 = s.height___34880; + r0 = (s.minX___34787 & -256); + s.tmp_1.arg4 = r0; + r0 = (s.minY___34791 & -256); + s.tmp_1.arg5 = r0; + s.callLocIdx = 266; 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__P496736.info = {"start":894,"length":684,"line":40,"column":4,"endLine":62,"endColumn":5,"fileName":"pxt_modules/game/hitbox.ts","functionName":"calculateHitBox","argumentNames":["s"]} +game_calculateHitBox__P23708.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__P496736_mk(s) { +function game_calculateHitBox__P23708_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_calculateHitBox__P496736, depth: s.depth + 1, + parent: s, fn: game_calculateHitBox__P23708, depth: s.depth + 1, pc: 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___506902: undefined, - minX___506905: undefined, - minY___506908: undefined, - maxX___506911: undefined, - maxY___506912: undefined, - c___506913: undefined, - r___506919: undefined, - width___506950: undefined, - height___506956: undefined, + i___34784: undefined, + minX___34787: undefined, + minY___34791: undefined, + maxX___34795: undefined, + maxY___34797: undefined, + c___34799: undefined, + fxc___34800: undefined, + r___34807: undefined, + fxr___34808: undefined, + width___34872: undefined, + height___34880: undefined, arg0: undefined, } } @@ -23314,7 +23871,7 @@ function game_calculateHitBox__P496736_mk(s) { -function game_Hitbox_constructor__P496731(s) { +function game_Hitbox_constructor__P23700(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23334,42 +23891,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C496725_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); + if (!checkSubtype(r0, game_Hitbox__C23693_VT)) failedCast(r0); 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); - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg5 * 256); - s.tmp_2 = r0; - r0 = (s.tmp_2 | 0); + s.tmp_2 = Sprite_calcDimensionalHash__P23874_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 206; 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__P496731.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__P23700.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__P496731_mk(s) { +function game_Hitbox_constructor__P23700_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_constructor__P496731, depth: s.depth + 1, + parent: s, fn: game_Hitbox_constructor__P23700, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23386,7 +23931,240 @@ function game_Hitbox_constructor__P496731_mk(s) { -function Fx_abs__P494916(s) { +function Sprite_calcDimensionalHash__P23874(s) { +let r0 = s.r0, 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__C23823_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__P23874.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__P23874_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_calcDimensionalHash__P23874, depth: s.depth + 1, + pc: 0, retval: undefined, 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__P21863(s) { +let r0 = s.r0, 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__P21863.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__P21863_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_floor__P21863, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function Fx_max__P21862(s) { +let r0 = s.r0, 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__P21862.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__P21862_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_max__P21862, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Fx_min__P21861(s) { +let r0 = s.r0, 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_min__P21861.info = {"start":1675,"length":117,"line":50,"column":4,"endLine":55,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"min","argumentNames":["a","b"]} + +function Fx_min__P21861_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Fx_min__P21861, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function game_Hitbox_isValid__P23705(s) { +let r0 = s.r0, 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__C23693_VT)) failedCast(r0); + r0 = s.arg0.fields["hash"]; + s.tmp_0 = r0; + s.tmp_2 = Sprite_calcDimensionalHash__P23874_mk(s); + r0 = s.arg0.fields["parent"]; + s.tmp_2.arg0 = r0; + s.callLocIdx = 217; 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__P23705.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__P23705_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Hitbox_isValid__P23705, 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__P21860(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23416,12 +24194,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_abs__P494916.info = {"start":1506,"length":164,"line":44,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"abs","argumentNames":["a"]} +Fx_abs__P21860.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__P494916_mk(s) { +function Fx_abs__P21860_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_abs__P494916, depth: s.depth + 1, + parent: s, fn: Fx_abs__P21860, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -23431,7 +24209,7 @@ function Fx_abs__P494916_mk(s) { -function Fx_sub__P494910(s) { +function Fx_sub__P21854(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23450,12 +24228,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_sub__P494910.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} +Fx_sub__P21854.info = {"start":749,"length":118,"line":26,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"sub","argumentNames":["a","b"]} -function Fx_sub__P494910_mk(s) { +function Fx_sub__P21854_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_sub__P494910, depth: s.depth + 1, + parent: s, fn: Fx_sub__P21854, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -23465,7 +24243,7 @@ function Fx_sub__P494910_mk(s) { -function Sprite_image__P496828(s) { +function Sprite_sy__P23854(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23480,18 +24258,94 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P23854.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__P23854.isGetter = true; + +function Sprite_sy__P23854_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_sy__P23854, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_sx__P23852(s) { +let r0 = s.r0, 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__C23823_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__P23852.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__P23852.isGetter = true; + +function Sprite_sx__P23852_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_sx__P23852, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_image__P23872(s) { +let r0 = s.r0, 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__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["_image"]; return leaveAccessor(s, r0) default: oops() } } } -Sprite_image__P496828.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__P496828.isGetter = true; +Sprite_image__P23872.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__P23872.isGetter = true; -function Sprite_image__P496828_mk(s) { +function Sprite_image__P23872_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_image__P496828, depth: s.depth + 1, + parent: s, fn: Sprite_image__P23872, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -23500,7 +24354,7 @@ function Sprite_image__P496828_mk(s) { -function effects_ParticleEffect_start__P497561(s) { +function effects_ParticleEffect_start__P24640(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23510,7 +24364,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.src___507011 = undefined; + s.src___34967 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -23520,7 +24374,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, effects_ParticleEffect__C497559_VT)) failedCast(r0); + if (!checkSubtype(r0, effects_ParticleEffect__C24638_VT)) failedCast(r0); r0 = s.arg0.fields["sourceFactory"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -23547,18 +24401,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 = 1123; s.pc = 10; return s.tmp_4; + s.callLocIdx = 1231; 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 = 1123; s.pc = 10; return s.tmp_4; } - else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1123; s.pc = 10; return s.tmp_4;; } - else { s.callLocIdx = 1123; 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 = 1231; s.pc = 10; return s.tmp_4; } + else if (s.tmp_4.fn.isGetter) { s.tmp_4.stage2Call = true; s.callLocIdx = 1231; s.pc = 10; return s.tmp_4;; } + else { s.callLocIdx = 1231; s.pc = 10; return s.tmp_4; } } case 10: r0 = s.retval; - s.src___507011 = (r0); - s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P497459_mk(s); - s.tmp_0.arg0 = s.src___507011; + s.src___34967 = (r0); + s.tmp_0 = particles_ParticleSource_setRelativeToCamera__P24538_mk(s); + s.tmp_0.arg0 = s.src___34967; r0 = pxsim_numops_toBoolDecr(s.arg4); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); @@ -23567,7 +24421,7 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0.arg1 = r0; - s.callLocIdx = 1124; s.pc = 11; return s.tmp_0; + s.callLocIdx = 1232; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg2); @@ -23583,7 +24437,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_1 = r0; - r0 = (s.src___507011).fields["lifespan"] = (s.tmp_1); + r0 = (s.src___34967).fields["lifespan"] = (s.tmp_1); case 7: case 8: case 9: @@ -23591,19 +24445,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -effects_ParticleEffect_start__P497561.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__P24640.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__P497561_mk(s) { +function effects_ParticleEffect_start__P24640_mk(s) { checkStack(s.depth); return { - parent: s, fn: effects_ParticleEffect_start__P497561, depth: s.depth + 1, + parent: s, fn: effects_ParticleEffect_start__P24640, depth: s.depth + 1, pc: 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___507011: undefined, + src___34967: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -23615,7 +24469,7 @@ function effects_ParticleEffect_start__P497561_mk(s) { -function particles_ParticleSource_setRelativeToCamera__P497459(s) { +function particles_ParticleSource_setRelativeToCamera__P24538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23631,7 +24485,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -23657,12 +24511,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_setRelativeToCamera__P497459.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__P24538.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__P497459_mk(s) { +function particles_ParticleSource_setRelativeToCamera__P24538_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_setRelativeToCamera__P497459, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_setRelativeToCamera__P24538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23677,7 +24531,7 @@ function particles_ParticleSource_setRelativeToCamera__P497459_mk(s) { -function Sprite_setFlag__P496854(s) { +function Sprite_setFlag__P23901(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23694,7 +24548,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg2); if (!r0) { step = 1; continue; } s.tmp_0 = r0 = s.arg0; @@ -23716,39 +24570,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__P496854_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 = 346; 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__P496854.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__P23901.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__P496854_mk(s) { +function Sprite_setFlag__P23901_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setFlag__P496854, depth: s.depth + 1, + parent: s, fn: Sprite_setFlag__P23901, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23764,7 +24595,7 @@ function Sprite_setFlag__P496854_mk(s) { -function Sprite__destroyCore__P496863(s) { +function Sprite__destroyCore__P23911(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23774,39 +24605,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___506547 = undefined; + s.scene___34375 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P497302_mk(s); - s.callLocIdx = 370; s.pc = 9; return s.tmp_0; - case 9: - r0 = s.retval; - s.scene___506547 = (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__P496862_mk(s); - r0 = s.arg0.fields["sayBubbleSprite"]; - s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = undefined; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 371; s.pc = 10; return s.tmp_1; - case 10: + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 473; s.pc = 7; return s.tmp_0; + case 7: r0 = s.retval; - case 1: - case 2: - r0 = s.scene___506547.fields["allSprites"]; + s.scene___34375 = (r0); + r0 = s.scene___34375.fields["allSprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg0); r0 = s.arg0.fields["_kind"]; @@ -23814,90 +24631,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___506547.fields["spritesByKind"]; + { step = 2; continue; } + case 1: + r0 = s.scene___34375.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__P496893_mk(s); - r0 = s.scene___506547.fields["spritesByKind"]; + if (!r0) { step = 3; continue; } + s.tmp_5 = sprites_SpriteSet_remove__P23944_mk(s); + r0 = s.scene___34375.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 = 375; s.pc = 11; return s.tmp_5; - case 11: + s.callLocIdx = 477; s.pc = 8; return s.tmp_5; + case 8: r0 = s.retval; - case 5: - case 6: - s.tmp_0 = PhysicsEngine__C496934_v1_2_mk(s); - r0 = s.scene___506547.fields["physicsEngine"]; + case 3: + case 4: + s.tmp_0 = PhysicsEngine__C23985_v1_2_mk(s); + r0 = s.scene___34375.fields["physicsEngine"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C496934_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C23985_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 = 376; s.pc = 13; return s.tmp_1; + s.callLocIdx = 478; 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 = 376; s.pc = 13; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 376; s.pc = 13; return s.tmp_1;; } - else { s.callLocIdx = 376; 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 = 478; s.pc = 10; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 478; s.pc = 10; return s.tmp_1;; } + else { s.callLocIdx = 478; s.pc = 10; return s.tmp_1; } } - case 13: + case 10: r0 = s.retval; - case 7: - case 8: - r0 = pxsim_pxtcore_mkAction(1, inline__P506584); + case 5: + case 6: + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P34404); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P506591); + r0 = pxsim_pxtcore_mkAction(1, Sprite__destroyCore_inline__P34411); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P494861_mk(s); - s.tmp_3 = helpers_arrayFilter__P494862_mk(s); - r0 = s.scene___506547.fields["destroyedHandlers"]; + s.tmp_2 = helpers_arrayForEach__P21804_mk(s); + s.tmp_3 = helpers_arrayFilter__P21805_mk(s); + r0 = s.scene___34375.fields["destroyedHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 378; s.pc = 15; return s.tmp_3; - case 15: + s.callLocIdx = 480; 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 = 380; s.pc = 14; return s.tmp_2; - case 14: + s.callLocIdx = 482; s.pc = 11; return s.tmp_2; + case 11: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite__destroyCore__P496863.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__P23911.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__P496863_mk(s) { +function Sprite__destroyCore__P23911_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite__destroyCore__P496863, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore__P23911, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23907,7 +24724,7 @@ function Sprite__destroyCore__P496863_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - scene___506547: undefined, + scene___34375: undefined, arg0: undefined, } } @@ -23915,7 +24732,7 @@ function Sprite__destroyCore__P496863_mk(s) { -function inline__P506584(s) { +function forEach_inline__P34404(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23937,12 +24754,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P506584.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__P34404.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__P506584_mk(s) { +function forEach_inline__P34404_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506584, depth: s.depth + 1, + parent: s, fn: forEach_inline__P34404, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -23953,7 +24770,7 @@ function inline__P506584_mk(s) { -function inline__P506591(s) { +function Sprite__destroyCore_inline__P34411(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -23972,12 +24789,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 = 379; s.pc = 1; return s.tmp_0; + s.callLocIdx = 481; 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 = 379; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 379; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 379; 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 = 481; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 481; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 481; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -23985,12 +24802,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P506591.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__P34411.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__P506591_mk(s) { +function Sprite__destroyCore_inline__P34411_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506591, depth: s.depth + 1, + parent: s, fn: Sprite__destroyCore_inline__P34411, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24000,7 +24817,7 @@ function inline__P506591_mk(s) { -function PhysicsEngine_removeSprite__P496937(s) { +function PhysicsEngine_removeSprite__P23988(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24016,17 +24833,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C496934_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C23985_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_removeSprite__P496937.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__P23988.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__P496937_mk(s) { +function PhysicsEngine_removeSprite__P23988_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_removeSprite__P496937, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_removeSprite__P23988, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -24036,7 +24853,7 @@ function PhysicsEngine_removeSprite__P496937_mk(s) { -function sprites_SpriteSet_remove__P496893(s) { +function sprites_SpriteSet_remove__P23944(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24046,28 +24863,28 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.i___506600 = undefined; + s.i___34420 = 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__C496886_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C23937_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.indexOf(s.tmp_0, s.arg1, undefined); - s.i___506600 = (r0); - r0 = (s.i___506600 > -1); + s.i___34420 = (r0); + r0 = (s.i___34420 > -1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_arraySplice__P494852_mk(s); + s.tmp_1 = helpers_arraySplice__P21795_mk(s); r0 = s.arg0.fields["_sprites"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.i___506600; + s.tmp_1.arg1 = s.i___34420; s.tmp_1.arg2 = 1; - s.callLocIdx = 426; s.pc = 4; return s.tmp_1; + s.callLocIdx = 528; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; r0 = true; @@ -24079,16 +24896,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_remove__P496893.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__P23944.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__P496893_mk(s) { +function sprites_SpriteSet_remove__P23944_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_remove__P496893, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_remove__P23944, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - i___506600: undefined, + i___34420: undefined, arg0: undefined, arg1: undefined, } } @@ -24097,7 +24914,7 @@ function sprites_SpriteSet_remove__P496893_mk(s) { -function Sprite_kind__P496843(s) { +function Sprite_kind__P23889(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24112,17 +24929,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["_kind"]; return leave(s, r0) default: oops() } } } -Sprite_kind__P496843.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__P23889.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__P496843_mk(s) { +function Sprite_kind__P23889_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_kind__P496843, depth: s.depth + 1, + parent: s, fn: Sprite_kind__P23889, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -24131,7 +24948,7 @@ function Sprite_kind__P496843_mk(s) { -function game_popScene__P497307(s) { +function game_popScene__P24385(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24141,59 +24958,59 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___506426 = undefined; - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 817; s.pc = 11; return s.tmp_0; + s.oldScene___34254 = undefined; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 927; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; - s.oldScene___506426 = (r0); - s.tmp_0 = r0 = globals._sceneStack___498874; + s.oldScene___34254 = (r0); + s.tmp_0 = r0 = globals._sceneStack___26198; 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___498874); + r0 = pxsim_Array__length(globals._sceneStack___26198); 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___498874); - globals._scene___498873 = (r0); - s.tmp_0 = control_popEventContext__P495155_mk(s); - s.callLocIdx = 818; s.pc = 12; return s.tmp_0; + r0 = pxsim_Array_.pop(globals._sceneStack___26198); + globals._scene___26197 = (r0); + s.tmp_0 = control_popEventContext__P22105_mk(s); + s.callLocIdx = 928; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; { step = 6; continue; } case 3: - r0 = pxsim_numops_toBoolDecr(globals._scene___498873); + r0 = pxsim_numops_toBoolDecr(globals._scene___26197); if (!r0) { step = 4; continue; } - s.tmp_0 = control_popEventContext__P495155_mk(s); - s.callLocIdx = 819; s.pc = 13; return s.tmp_0; + s.tmp_0 = control_popEventContext__P22105_mk(s); + s.callLocIdx = 929; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; - globals._scene___498873 = (undefined); + globals._scene___26197 = (undefined); case 4: case 5: case 6: - r0 = pxsim_numops_toBoolDecr(globals._scene___498873); + r0 = pxsim_numops_toBoolDecr(globals._scene___26197); if (!r0) { step = 7; continue; } - s.tmp_0 = particles_enableAll__P497480_mk(s); - s.callLocIdx = 820; s.pc = 14; return s.tmp_0; + s.tmp_0 = particles_enableAll__P24559_mk(s); + s.callLocIdx = 930; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 7: case 8: - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___498876); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___26200); if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P506447); + r0 = pxsim_pxtcore_mkAction(1, game_popScene_inline__P34275); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___506426); - s.tmp_1 = helpers_arrayForEach__P494861_mk(s); - s.tmp_1.arg0 = globals._scenePopHandlers___498876; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___34254); + s.tmp_1 = helpers_arrayForEach__P21804_mk(s); + s.tmp_1.arg0 = globals._scenePopHandlers___26200; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 822; s.pc = 15; return s.tmp_1; + s.callLocIdx = 932; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; case 9: @@ -24202,23 +25019,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_popScene__P497307.info = {"start":2033,"length":548,"line":75,"column":4,"endLine":93,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"popScene","argumentNames":[]} +game_popScene__P24385.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__P497307_mk(s) { +function game_popScene__P24385_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_popScene__P497307, depth: s.depth + 1, + parent: s, fn: game_popScene__P24385, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___506426: undefined, + oldScene___34254: undefined, } } -function inline__P506447(s) { +function game_popScene_inline__P34275(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24236,19 +25053,19 @@ switch (step) { s.tmp_0.argL = s.arg0; s.tmp_0.arg0 = s.caps[0]; setupLambda(s.tmp_0, s.tmp_0.argL); - s.callLocIdx = 821; s.pc = 1; return s.tmp_0; + s.callLocIdx = 931; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506447.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__P34275.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__P506447_mk(s) { +function game_popScene_inline__P34275_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506447, depth: s.depth + 1, + parent: s, fn: game_popScene_inline__P34275, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24258,7 +25075,7 @@ function inline__P506447_mk(s) { -function particles_enableAll__P497480(s) { +function particles_enableAll__P24559(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24268,22 +25085,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___506451 = undefined; - s.tmp_0 = particles_particleSources__P499237_mk(s); - s.callLocIdx = 1069; s.pc = 3; return s.tmp_0; + s.sources___34279 = undefined; + s.tmp_0 = particles_particleSources__P26546_mk(s); + s.callLocIdx = 1177; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___506451 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___506451); + s.sources___34279 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___34279); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P494861_mk(s); - s.tmp_0.arg0 = s.sources___506451; - s.tmp_0.arg1 = inline__P506457; - s.callLocIdx = 1071; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P21804_mk(s); + s.tmp_0.arg0 = s.sources___34279; + s.tmp_0.arg1 = particles_enableAll_inline__P34285; + s.callLocIdx = 1179; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P499233_mk(s); - s.callLocIdx = 1072; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P26542_mk(s); + s.callLocIdx = 1180; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -24292,22 +25109,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_enableAll__P497480.info = {"start":12632,"length":193,"line":412,"column":4,"endLine":418,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"enableAll","argumentNames":[]} +particles_enableAll__P24559.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__P497480_mk(s) { +function particles_enableAll__P24559_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_enableAll__P497480, depth: s.depth + 1, + parent: s, fn: particles_enableAll__P24559, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___506451: undefined, + sources___34279: undefined, } } -function inline__P506457(s) { +function particles_enableAll_inline__P34285(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24321,22 +25138,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P497461_mk(s); + s.tmp_0 = particles_ParticleSource_enabled__P24540_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = true; - s.callLocIdx = 1070; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1178; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = true; return leave(s, r0) default: oops() } } } -inline__P506457.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__P34285.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__P506457_mk(s) { +function particles_enableAll_inline__P34285_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506457, depth: s.depth + 1, + parent: s, fn: particles_enableAll_inline__P34285, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -24346,7 +25163,7 @@ function inline__P506457_mk(s) { -function control_popEventContext__P495155(s) { +function control_popEventContext__P22105(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24356,9 +25173,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctx___506464 = undefined; - s.context___506472 = undefined; - r0 = pxsim_numops_toBoolDecr(globals.eventContexts___498534); + s.ctx___34292 = undefined; + s.context___34300 = undefined; + r0 = pxsim_numops_toBoolDecr(globals.eventContexts___25846); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -24367,9 +25184,9 @@ switch (step) { { step = 7; continue; } case 1: case 2: - r0 = pxsim_Array_.pop(globals.eventContexts___498534); - s.ctx___506464 = (r0); - r0 = pxsim_numops_toBoolDecr(s.ctx___506464); + r0 = pxsim_Array_.pop(globals.eventContexts___25846); + s.ctx___34292 = (r0); + r0 = pxsim_numops_toBoolDecr(s.ctx___34292); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -24378,53 +25195,53 @@ switch (step) { { step = 7; continue; } case 3: case 4: - s.tmp_2 = control_EventContext_unregister__P495147_mk(s); - s.tmp_2.arg0 = s.ctx___506464; + s.tmp_2 = control_EventContext_unregister__P22097_mk(s); + s.tmp_2.arg0 = s.ctx___34292; s.callLocIdx = 57; s.pc = 8; return s.tmp_2; case 8: r0 = s.retval; - s.tmp_0 = r0 = globals.eventContexts___498534; - r0 = pxsim_Array__length(globals.eventContexts___498534); + s.tmp_0 = r0 = globals.eventContexts___25846; + r0 = pxsim_Array__length(globals.eventContexts___25846); 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___506472 = (r0); - r0 = pxsim_numops_toBoolDecr(s.context___506472); + s.context___34300 = (r0); + r0 = pxsim_numops_toBoolDecr(s.context___34300); if (!r0) { step = 5; continue; } - s.tmp_0 = control_EventContext_register__P495146_mk(s); - s.tmp_0.arg0 = s.context___506472; + s.tmp_0 = control_EventContext_register__P22096_mk(s); + s.tmp_0.arg0 = s.context___34300; s.callLocIdx = 58; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; { step = 6; continue; } case 5: - globals.eventContexts___498534 = (undefined); + globals.eventContexts___25846 = (undefined); case 6: case 7: r0 = undefined; return leave(s, r0) default: oops() } } } -control_popEventContext__P495155.info = {"start":7568,"length":413,"line":232,"column":4,"endLine":246,"endColumn":5,"fileName":"pxt_modules/base/eventcontext.ts","functionName":"popEventContext","argumentNames":[]} +control_popEventContext__P22105.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__P495155_mk(s) { +function control_popEventContext__P22105_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_popEventContext__P495155, depth: s.depth + 1, + parent: s, fn: control_popEventContext__P22105, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - ctx___506464: undefined, - context___506472: undefined, + ctx___34292: undefined, + context___34300: undefined, } } -function control_EventContext_register__P495146(s) { +function control_EventContext_register__P22096(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24434,38 +25251,38 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.h___506485 = undefined; - s.unnamed1730___U1 = undefined; - s.unnamed1731___U2 = undefined; + s.h___34313 = undefined; + s.unnamed148___U1 = undefined; + s.unnamed149___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, control_EventContext__C495140_VT)) failedCast(r0); - s.h___506485 = (undefined); + if (!checkSubtype(r0, control_EventContext__C22090_VT)) failedCast(r0); + s.h___34313 = (undefined); r0 = s.arg0.fields["handlers"]; - s.unnamed1730___U1 = (r0); - s.unnamed1731___U2 = (0); + s.unnamed148___U1 = (r0); + s.unnamed149___U2 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1731___U2; - r0 = pxsim_Array__length(s.unnamed1730___U1); + s.tmp_0 = r0 = s.unnamed149___U2; + r0 = pxsim_Array__length(s.unnamed148___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed1730___U1, s.unnamed1731___U2); - s.h___506485 = (r0); - s.tmp_2 = control_EventHandler_register__P498527_mk(s); - s.tmp_2.arg0 = s.h___506485; + r0 = pxsim_Array__getAt(s.unnamed148___U1, s.unnamed149___U2); + s.h___34313 = (r0); + s.tmp_2 = control_EventHandler_register__P25839_mk(s); + s.tmp_2.arg0 = s.h___34313; s.callLocIdx = 48; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; - r0 = (s.unnamed1731___U2 + 1); - s.unnamed1731___U2 = (r0); + r0 = (s.unnamed149___U2 + 1); + s.unnamed149___U2 = (r0); { step = 1; continue; } case 2: - s.unnamed1730___U1 = (undefined); - s.tmp_0 = control_EventContext_registerFrameCallbacks__P498532_mk(s); + s.unnamed148___U1 = (undefined); + s.tmp_0 = control_EventContext_registerFrameCallbacks__P25844_mk(s); s.tmp_0.arg0 = s.arg0; s.callLocIdx = 49; s.pc = 4; return s.tmp_0; case 4: @@ -24474,19 +25291,19 @@ switch (step) { return leave(s, r0) default: oops() } } } -control_EventContext_register__P495146.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__P22096.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__P495146_mk(s) { +function control_EventContext_register__P22096_mk(s) { checkStack(s.depth); return { - parent: s, fn: control_EventContext_register__P495146, depth: s.depth + 1, + parent: s, fn: control_EventContext_register__P22096, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - h___506485: undefined, - unnamed1730___U1: undefined, - unnamed1731___U2: undefined, + h___34313: undefined, + unnamed148___U1: undefined, + unnamed149___U2: undefined, arg0: undefined, } } @@ -24494,7 +25311,7 @@ function control_EventContext_register__P495146_mk(s) { -function controller__setUserEventsEnabled__P496720(s) { +function controller__setUserEventsEnabled__P23691(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24508,17 +25325,17 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals._userEventsEnabled___498689 = (s.arg0); + globals._userEventsEnabled___26019 = (s.arg0); r0 = undefined; return leave(s, r0) default: oops() } } } -controller__setUserEventsEnabled__P496720.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__P23691.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__P496720_mk(s) { +function controller__setUserEventsEnabled__P23691_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller__setUserEventsEnabled__P496720, depth: s.depth + 1, + parent: s, fn: controller__setUserEventsEnabled__P23691, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -24527,7 +25344,7 @@ function controller__setUserEventsEnabled__P496720_mk(s) { -function scene_systemMenu_MenuOption_constructor__P497385(s) { +function scene_systemMenu_MenuOption_constructor__P24464(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24545,7 +25362,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C497384_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C24463_VT)) failedCast(r0); r0 = (s.arg0).fields["iconImage"] = (s.arg1); r0 = (s.arg0).fields["getText"] = (s.arg2); r0 = (s.arg0).fields["action"] = (s.arg3); @@ -24553,12 +25370,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_constructor__P497385.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__P24464.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__P497385_mk(s) { +function scene_systemMenu_MenuOption_constructor__P24464_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_constructor__P497385, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_constructor__P24464, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -24570,7 +25387,7 @@ function scene_systemMenu_MenuOption_constructor__P497385_mk(s) { -function helpers_screenBrightness__P496502(s) { +function helpers_screenBrightness__P23458(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24584,16 +25401,16 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = globals.brightness___496490; + r0 = globals.brightness___23445; return leave(s, r0) default: oops() } } } -helpers_screenBrightness__P496502.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__P23458.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__P496502_mk(s) { +function helpers_screenBrightness__P23458_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_screenBrightness__P496502, depth: s.depth + 1, + parent: s, fn: helpers_screenBrightness__P23458, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -24602,7 +25419,7 @@ function helpers_screenBrightness__P496502_mk(s) { -function music_volume__P496349(s) { +function music_volume__P23302(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24612,20 +25429,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = music_initVolume__P498569_mk(s); + s.tmp_0 = music_initVolume__P25881_mk(s); s.callLocIdx = 62; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals.globalVolume___498565; + r0 = globals.globalVolume___25877; return leave(s, r0) default: oops() } } } -music_volume__P496349.info = {"start":1781,"length":90,"line":61,"column":4,"endLine":64,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"volume","argumentNames":[]} +music_volume__P23302.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__P496349_mk(s) { +function music_volume__P23302_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_volume__P496349, depth: s.depth + 1, + parent: s, fn: music_volume__P23302, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -24634,7 +25451,7 @@ function music_volume__P496349_mk(s) { -function music_initVolume__P498569(s) { +function music_initVolume__P25881(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24644,12 +25461,12 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.globalVolume___498565 === null); + r0 = (globals.globalVolume___25877 === null); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.globalVolume___498565 = (0); - s.tmp_0 = music_setVolume__P496348_mk(s); + globals.globalVolume___25877 = (0); + s.tmp_0 = music_setVolume__P23301_mk(s); r0 = pxsim_pxtcore.getConfig(59, 128); s.tmp_0.arg0 = r0; s.callLocIdx = 59; s.pc = 3; return s.tmp_0; @@ -24661,12 +25478,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -music_initVolume__P498569.info = {"start":1014,"length":180,"line":33,"column":4,"endLine":38,"endColumn":5,"fileName":"pxt_modules/mixer/melody.ts","functionName":"initVolume","argumentNames":[]} +music_initVolume__P25881.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__P498569_mk(s) { +function music_initVolume__P25881_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_initVolume__P498569, depth: s.depth + 1, + parent: s, fn: music_initVolume__P25881, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -24675,7 +25492,7 @@ function music_initVolume__P498569_mk(s) { -function helpers_arrayConcat__P494865(s) { +function helpers_arrayConcat__P21808(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24685,74 +25502,74 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.out___507558 = undefined; - s.value___507561 = undefined; - s.unnamed1720___U2 = undefined; - s.unnamed1721___U3 = undefined; - s.value___507568 = undefined; - s.unnamed1722___U5 = undefined; - s.unnamed1723___U6 = undefined; + s.out___35511 = undefined; + s.value___35514 = undefined; + s.unnamed138___U2 = undefined; + s.unnamed139___U3 = undefined; + s.value___35521 = undefined; + s.unnamed140___U5 = undefined; + s.unnamed141___U6 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.out___507558 = (r0); - s.value___507561 = (undefined); - s.unnamed1720___U2 = (s.arg0); - s.unnamed1721___U3 = (0); + s.out___35511 = (r0); + s.value___35514 = (undefined); + s.unnamed138___U2 = (s.arg0); + s.unnamed139___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1721___U3; - r0 = pxsim_Array__length(s.unnamed1720___U2); + s.tmp_0 = r0 = s.unnamed139___U3; + r0 = pxsim_Array__length(s.unnamed138___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 2; continue; } - r0 = pxsim_Array__getAt(s.unnamed1720___U2, s.unnamed1721___U3); - s.value___507561 = (r0); - r0 = pxsim_Array__push(s.out___507558, s.value___507561); - r0 = (s.unnamed1721___U3 + 1); - s.unnamed1721___U3 = (r0); + r0 = pxsim_Array__getAt(s.unnamed138___U2, s.unnamed139___U3); + s.value___35514 = (r0); + r0 = pxsim_Array__push(s.out___35511, s.value___35514); + r0 = (s.unnamed139___U3 + 1); + s.unnamed139___U3 = (r0); { step = 1; continue; } case 2: - s.unnamed1720___U2 = (undefined); - s.value___507568 = (undefined); - s.unnamed1722___U5 = (s.arg1); - s.unnamed1723___U6 = (0); + s.unnamed138___U2 = (undefined); + s.value___35521 = (undefined); + s.unnamed140___U5 = (s.arg1); + s.unnamed141___U6 = (0); case 3: - s.tmp_0 = r0 = s.unnamed1723___U6; - r0 = pxsim_Array__length(s.unnamed1722___U5); + s.tmp_0 = r0 = s.unnamed141___U6; + r0 = pxsim_Array__length(s.unnamed140___U5); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed1722___U5, s.unnamed1723___U6); - s.value___507568 = (r0); - r0 = pxsim_Array__push(s.out___507558, s.value___507568); - r0 = (s.unnamed1723___U6 + 1); - s.unnamed1723___U6 = (r0); + r0 = pxsim_Array__getAt(s.unnamed140___U5, s.unnamed141___U6); + s.value___35521 = (r0); + r0 = pxsim_Array__push(s.out___35511, s.value___35521); + r0 = (s.unnamed141___U6 + 1); + s.unnamed141___U6 = (r0); { step = 3; continue; } case 4: - s.unnamed1722___U5 = (undefined); - r0 = s.out___507558; + s.unnamed140___U5 = (undefined); + r0 = s.out___35511; return leave(s, r0) default: oops() } } } -helpers_arrayConcat__P494865.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__P21808.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__P494865_mk(s) { +function helpers_arrayConcat__P21808_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayConcat__P494865, depth: s.depth + 1, + parent: s, fn: helpers_arrayConcat__P21808, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - out___507558: undefined, - value___507561: undefined, - unnamed1720___U2: undefined, - unnamed1721___U3: undefined, - value___507568: undefined, - unnamed1722___U5: undefined, - unnamed1723___U6: undefined, + out___35511: undefined, + value___35514: undefined, + unnamed138___U2: undefined, + unnamed139___U3: undefined, + value___35521: undefined, + unnamed140___U5: undefined, + unnamed141___U6: undefined, arg0: undefined, arg1: undefined, } } @@ -24761,7 +25578,7 @@ function helpers_arrayConcat__P494865_mk(s) { -function scene_systemMenu_PauseMenu_show__P497394(s) { +function scene_systemMenu_PauseMenu_show__P24473(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -24771,34 +25588,34 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___505902 = undefined; - s.i___505903 = undefined; + s.current___33728 = undefined; + s.i___33729 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C497392_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C24471_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 = 873; s.pc = 3; return s.tmp_2; + s.callLocIdx = 981; 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 = 873; s.pc = 3; return s.tmp_2; } - else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 873; s.pc = 3; return s.tmp_2;; } - else { s.callLocIdx = 873; 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 = 981; s.pc = 3; return s.tmp_2; } + else if (s.tmp_2.fn.isGetter) { s.tmp_2.stage2Call = true; s.callLocIdx = 981; s.pc = 3; return s.tmp_2;; } + else { s.callLocIdx = 981; 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___505903 = (0); + s.i___33729 = (0); case 1: - s.tmp_1 = r0 = s.i___505903; + s.tmp_1 = r0 = s.i___33729; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -24809,22 +25626,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___505903); - s.current___505902 = (r0); - s.tmp_0 = scene_systemMenu_MenuOption_show__P497386_mk(s); - s.tmp_0.arg0 = s.current___505902; - s.callLocIdx = 874; s.pc = 4; return s.tmp_0; + r0 = pxsim_Array__getAt(s.tmp_4, s.i___33729); + s.current___33728 = (r0); + s.tmp_0 = scene_systemMenu_MenuOption_show__P24465_mk(s); + s.tmp_0.arg0 = s.current___33728; + s.callLocIdx = 982; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P497389_mk(s); - s.tmp_0.arg0 = s.current___505902; + s.tmp_0 = scene_systemMenu_MenuOption_setTheme__P24468_mk(s); + s.tmp_0.arg0 = s.current___33728; r0 = s.arg0.fields["theme"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 875; s.pc = 5; return s.tmp_0; + s.callLocIdx = 983; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = scene_systemMenu_MenuOption_position__P497387_mk(s); - s.tmp_0.arg0 = s.current___505902; + s.tmp_0 = scene_systemMenu_MenuOption_position__P24466_mk(s); + s.tmp_0.arg0 = s.current___33728; s.tmp_2 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_2.arg0 = r0; @@ -24834,12 +25651,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 = 876; s.pc = 7; return s.tmp_2; } + else { s.callLocIdx = 984; s.pc = 7; return s.tmp_2; } } case 7: r0 = s.retval; s.tmp_1 = r0; - s.tmp_5 = r0 = s.i___505903; + s.tmp_5 = r0 = s.i___33729; s.tmp_7 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_7.arg0 = r0; @@ -24849,7 +25666,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 = 877; s.pc = 8; return s.tmp_7; } + else { s.callLocIdx = 985; s.pc = 8; return s.tmp_7; } } case 8: r0 = s.retval; @@ -24865,7 +25682,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 = 878; s.pc = 9; return s.tmp_10; } + else { s.callLocIdx = 986; s.pc = 9; return s.tmp_10; } } case 9: r0 = s.retval; @@ -24879,7 +25696,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 = 879; s.pc = 10; return s.tmp_12; } + else { s.callLocIdx = 987; s.pc = 10; return s.tmp_12; } } case 10: r0 = s.retval; @@ -24899,12 +25716,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 = 880; s.pc = 11; return s.tmp_14; } + else { s.callLocIdx = 988; s.pc = 11; return s.tmp_14; } } case 11: r0 = s.retval; s.tmp_13 = r0; - s.tmp_17 = r0 = s.i___505903; + s.tmp_17 = r0 = s.i___33729; s.tmp_19 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_19.arg0 = r0; @@ -24914,7 +25731,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 = 881; s.pc = 12; return s.tmp_19; } + else { s.callLocIdx = 989; s.pc = 12; return s.tmp_19; } } case 12: r0 = s.retval; @@ -24930,7 +25747,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 = 882; s.pc = 13; return s.tmp_22; } + else { s.callLocIdx = 990; s.pc = 13; return s.tmp_22; } } case 13: r0 = s.retval; @@ -24944,7 +25761,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 = 883; s.pc = 14; return s.tmp_24; } + else { s.callLocIdx = 991; s.pc = 14; return s.tmp_24; } } case 14: r0 = s.retval; @@ -24955,116 +25772,116 @@ switch (step) { s.tmp_15 = r0; r0 = (s.tmp_13 + s.tmp_15); s.tmp_0.arg2 = r0; - s.callLocIdx = 884; s.pc = 6; return s.tmp_0; + s.callLocIdx = 992; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - r0 = (s.i___505903 + 1); - s.i___505903 = (r0); + r0 = (s.i___33729 + 1); + s.i___33729 = (r0); { step = 1; continue; } case 2: - s.tmp_0 = controller__setUserEventsEnabled__P496720_mk(s); + s.tmp_0 = controller__setUserEventsEnabled__P23691_mk(s); s.tmp_0.arg0 = false; - s.callLocIdx = 885; s.pc = 15; return s.tmp_0; + s.callLocIdx = 993; s.pc = 15; return s.tmp_0; case 15: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P505966); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P33792); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P496676_mk(s); - s.tmp_1.arg0 = globals.A___496643; + s.tmp_1 = controller_Button_onEvent__P23681_mk(s); + s.tmp_1.arg0 = globals.A___23602; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 887; s.pc = 16; return s.tmp_1; + s.callLocIdx = 995; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P505986); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P33812); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P496676_mk(s); - s.tmp_1.arg0 = globals.A___496643; + s.tmp_1 = controller_Button_onEvent__P23681_mk(s); + s.tmp_1.arg0 = globals.A___23602; s.tmp_1.arg1 = 2052; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 889; s.pc = 17; return s.tmp_1; + s.callLocIdx = 997; s.pc = 17; return s.tmp_1; case 17: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P496676_mk(s); - s.tmp_0.arg0 = globals.B___496644; + s.tmp_0 = controller_Button_onEvent__P23681_mk(s); + s.tmp_0.arg0 = globals.B___23603; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P506015; - s.callLocIdx = 891; s.pc = 18; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P33841; + s.callLocIdx = 999; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; - s.tmp_0 = controller_Button_onEvent__P496676_mk(s); - s.tmp_0.arg0 = globals.menu___496649; + s.tmp_0 = controller_Button_onEvent__P23681_mk(s); + s.tmp_0.arg0 = globals.menu___23608; s.tmp_0.arg1 = 2053; - s.tmp_0.arg2 = inline__P506020; - s.callLocIdx = 893; s.pc = 19; return s.tmp_0; + s.tmp_0.arg2 = scene_systemMenu_PauseMenu_show_inline__P33846; + s.callLocIdx = 1001; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P506025); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P33851); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P496676_mk(s); - s.tmp_1.arg0 = globals.up___496646; + s.tmp_1 = controller_Button_onEvent__P23681_mk(s); + s.tmp_1.arg0 = globals.up___23605; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 897; s.pc = 20; return s.tmp_1; + s.callLocIdx = 1005; s.pc = 20; return s.tmp_1; case 20: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P506037); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P33863); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P496676_mk(s); - s.tmp_1.arg0 = globals.left___496645; + s.tmp_1 = controller_Button_onEvent__P23681_mk(s); + s.tmp_1.arg0 = globals.left___23604; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 900; s.pc = 21; return s.tmp_1; + s.callLocIdx = 1008; s.pc = 21; return s.tmp_1; case 21: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P506046); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P33872); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P496676_mk(s); - s.tmp_1.arg0 = globals.down___496648; + s.tmp_1 = controller_Button_onEvent__P23681_mk(s); + s.tmp_1.arg0 = globals.down___23607; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 904; s.pc = 22; return s.tmp_1; + s.callLocIdx = 1012; s.pc = 22; return s.tmp_1; case 22: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P506062); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P33888); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = controller_Button_onEvent__P496676_mk(s); - s.tmp_1.arg0 = globals.right___496647; + s.tmp_1 = controller_Button_onEvent__P23681_mk(s); + s.tmp_1.arg0 = globals.right___23606; s.tmp_1.arg1 = 2053; s.tmp_1.arg2 = s.tmp_0; - s.callLocIdx = 907; s.pc = 23; return s.tmp_1; + s.callLocIdx = 1015; s.pc = 23; return s.tmp_1; case 23: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P506074); + r0 = pxsim_pxtcore_mkAction(1, scene_systemMenu_PauseMenu_show_inline__P33900); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = game_onShade__P497317_mk(s); + s.tmp_1 = game_onShade__P24393_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.callLocIdx = 910; s.pc = 24; return s.tmp_1; + s.callLocIdx = 1018; s.pc = 24; return s.tmp_1; case 24: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P497396_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P24475_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 911; s.pc = 25; return s.tmp_0; + s.callLocIdx = 1019; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_show__P497394.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__P24473.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__P497394_mk(s) { +function scene_systemMenu_PauseMenu_show__P24473_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_show__P497394, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show__P24473, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25091,8 +25908,8 @@ function scene_systemMenu_PauseMenu_show__P497394_mk(s) { tmp_22: undefined, tmp_23: undefined, tmp_24: undefined, - current___505902: undefined, - i___505903: undefined, + current___33728: undefined, + i___33729: undefined, arg0: undefined, } } @@ -25100,7 +25917,7 @@ function scene_systemMenu_PauseMenu_show__P497394_mk(s) { -function inline__P505966(s) { +function scene_systemMenu_PauseMenu_show_inline__P33792(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25138,7 +25955,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P497390_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P24469_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -25146,7 +25963,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 = 886; s.pc = 6; return s.tmp_8; + s.callLocIdx = 994; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; case 5: @@ -25154,12 +25971,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P505966.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__P33792.info = {"start":4025,"length":170,"line":140,"column":50,"endLine":143,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P505966_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33792_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505966, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33792, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25178,7 +25995,7 @@ function inline__P505966_mk(s) { -function inline__P505986(s) { +function scene_systemMenu_PauseMenu_show_inline__P33812(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25216,7 +26033,7 @@ switch (step) { { step = 5; continue; } case 3: case 4: - s.tmp_8 = scene_systemMenu_MenuOption_setState__P497390_mk(s); + s.tmp_8 = scene_systemMenu_MenuOption_setState__P24469_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_9 = r0; r0 = s.caps[0].fields["selection"]; @@ -25224,7 +26041,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 = 888; s.pc = 6; return s.tmp_8; + s.callLocIdx = 996; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; r0 = s.caps[0].fields["options"]; @@ -25240,12 +26057,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P505986.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__P33812.info = {"start":4247,"length":247,"line":145,"column":48,"endLine":149,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P505986_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33812_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P505986, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33812, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25264,7 +26081,7 @@ function inline__P505986_mk(s) { -function inline__P506015(s) { +function scene_systemMenu_PauseMenu_show_inline__P33841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25274,20 +26091,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P497399_mk(s); - s.callLocIdx = 890; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P24478_mk(s); + s.callLocIdx = 998; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506015.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__P33841.info = {"start":4548,"length":50,"line":151,"column":50,"endLine":153,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P506015_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33841_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506015, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33841, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25296,7 +26113,7 @@ function inline__P506015_mk(s) { -function inline__P506020(s) { +function scene_systemMenu_PauseMenu_show_inline__P33846(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25306,20 +26123,20 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_closeMenu__P497399_mk(s); - s.callLocIdx = 892; s.pc = 1; return s.tmp_0; + s.tmp_0 = scene_systemMenu_closeMenu__P24478_mk(s); + s.callLocIdx = 1000; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506020.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__P33846.info = {"start":4655,"length":50,"line":155,"column":53,"endLine":157,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P506020_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33846_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506020, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33846, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25328,7 +26145,7 @@ function inline__P506020_mk(s) { -function inline__P506025(s) { +function scene_systemMenu_PauseMenu_show_inline__P33851(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25338,9 +26155,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P497396_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P24475_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P494881_mk(s); + s.tmp_1 = Math_max__P21825_mk(s); s.tmp_1.arg0 = 0; r0 = s.caps[0].fields["selection"]; s.tmp_2 = r0; @@ -25353,30 +26170,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 = 894; s.pc = 3; return s.tmp_4; } + else { s.callLocIdx = 1002; 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 = 895; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1003; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 896; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1004; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506025.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__P33851.info = {"start":4760,"length":110,"line":159,"column":51,"endLine":161,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P506025_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33851_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506025, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33851, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25389,7 +26206,7 @@ function inline__P506025_mk(s) { -function inline__P506037(s) { +function scene_systemMenu_PauseMenu_show_inline__P33863(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25399,31 +26216,31 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P497396_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P24475_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_max__P494881_mk(s); + s.tmp_1 = Math_max__P21825_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 = 898; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1006; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 899; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1007; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506037.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__P33863.info = {"start":4927,"length":89,"line":163,"column":53,"endLine":165,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P506037_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33863_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506037, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33863, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25434,7 +26251,7 @@ function inline__P506037_mk(s) { -function inline__P506046(s) { +function scene_systemMenu_PauseMenu_show_inline__P33872(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25444,9 +26261,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P497396_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P24475_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P494882_mk(s); + s.tmp_1 = Math_min__P21826_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -25464,30 +26281,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 = 901; s.pc = 3; return s.tmp_6; } + else { s.callLocIdx = 1009; 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 = 902; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1010; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 903; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1011; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506046.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__P33872.info = {"start":5073,"length":132,"line":167,"column":53,"endLine":169,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P506046_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33872_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506046, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33872, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25502,7 +26319,7 @@ function inline__P506046_mk(s) { -function inline__P506062(s) { +function scene_systemMenu_PauseMenu_show_inline__P33888(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25512,9 +26329,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P497396_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_setSelection__P24475_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.tmp_1 = Math_min__P494882_mk(s); + s.tmp_1 = Math_min__P21826_mk(s); r0 = s.caps[0].fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -25525,23 +26342,23 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 1); s.tmp_1.arg1 = r0; - s.callLocIdx = 905; s.pc = 2; return s.tmp_1; + s.callLocIdx = 1013; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 906; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1014; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506062.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__P33888.info = {"start":5263,"length":111,"line":171,"column":54,"endLine":173,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P506062_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33888_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506062, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33888, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25554,7 +26371,7 @@ function inline__P506062_mk(s) { -function inline__P506074(s) { +function scene_systemMenu_PauseMenu_show_inline__P33900(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25564,26 +26381,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P497395_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_onUpdate__P24474_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 908; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1016; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P497397_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_drawText__P24476_mk(s); s.tmp_0.arg0 = s.caps[0]; - s.callLocIdx = 909; s.pc = 2; return s.tmp_0; + s.callLocIdx = 1017; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P506074.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__P33900.info = {"start":5403,"length":87,"line":175,"column":25,"endLine":178,"endColumn":13,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"inline","argumentNames":[]} -function inline__P506074_mk(s) { +function scene_systemMenu_PauseMenu_show_inline__P33900_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506074, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_show_inline__P33900, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -25592,7 +26409,7 @@ function inline__P506074_mk(s) { -function scene_systemMenu_PauseMenu_drawText__P497397(s) { +function scene_systemMenu_PauseMenu_drawText__P24476(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25607,7 +26424,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C497392_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C24471_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -25619,11 +26436,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_3 = helpers_imageFillRect__P496494_mk(s); - s.tmp_3.arg0 = globals.screen___496568; + s.tmp_3 = helpers_imageFillRect__P23450_mk(s); + s.tmp_3.arg0 = globals.screen___23524; s.tmp_3.arg1 = 0; s.tmp_3.arg2 = 0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_3.arg3 = r0; s.tmp_5 = if_cardsTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -25634,7 +26451,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 = 922; s.pc = 5; return s.tmp_5; } + else { s.callLocIdx = 1030; s.pc = 5; return s.tmp_5; } } case 5: r0 = s.retval; @@ -25642,11 +26459,11 @@ switch (step) { r0 = (s.tmp_4 - 2); s.tmp_3.arg4 = r0; s.tmp_3.arg5 = 15; - s.callLocIdx = 923; s.pc = 4; return s.tmp_3; + s.callLocIdx = 1031; s.pc = 4; return s.tmp_3; case 4: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P496525_mk(s); - s.tmp_0.arg0 = globals.screen___496568; + s.tmp_0 = helpers_imagePrintCenter__P23481_mk(s); + s.tmp_0.arg0 = globals.screen___23524; s.tmp_1 = if_headerText_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -25656,7 +26473,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 = 924; s.pc = 7; return s.tmp_1; } + else { s.callLocIdx = 1032; s.pc = 7; return s.tmp_1; } } case 7: r0 = s.retval; @@ -25672,16 +26489,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 = 925; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1033; s.pc = 8; return s.tmp_2; } } case 8: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 926; s.pc = 6; return s.tmp_0; + s.callLocIdx = 1034; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P496494_mk(s); - s.tmp_0.arg0 = globals.screen___496568; + s.tmp_0 = helpers_imageFillRect__P23450_mk(s); + s.tmp_0.arg0 = globals.screen___23524; s.tmp_0.arg1 = 0; s.tmp_2 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -25692,16 +26509,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 = 927; s.pc = 10; return s.tmp_2; } + else { s.callLocIdx = 1035; 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___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_0.arg3 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_4 = r0; s.tmp_6 = if_infoTop_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -25712,7 +26529,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 = 928; s.pc = 11; return s.tmp_6; } + else { s.callLocIdx = 1036; s.pc = 11; return s.tmp_6; } } case 11: r0 = s.retval; @@ -25722,11 +26539,11 @@ switch (step) { r0 = (s.tmp_3 + 6); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 15; - s.callLocIdx = 929; s.pc = 9; return s.tmp_0; + s.callLocIdx = 1037; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.tmp_0 = helpers_imageFillRect__P496494_mk(s); - s.tmp_0.arg0 = globals.screen___496568; + s.tmp_0 = helpers_imageFillRect__P23450_mk(s); + s.tmp_0.arg0 = globals.screen___23524; s.tmp_1 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_1.arg0 = r0; @@ -25736,7 +26553,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 = 930; s.pc = 13; return s.tmp_1; } + else { s.callLocIdx = 1038; s.pc = 13; return s.tmp_1; } } case 13: r0 = s.retval; @@ -25750,12 +26567,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 = 931; s.pc = 14; return s.tmp_2; } + else { s.callLocIdx = 1039; s.pc = 14; return s.tmp_2; } } case 14: r0 = s.retval; s.tmp_0.arg2 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_3 = r0; s.tmp_6 = if_padding_1_mk(s); r0 = s.arg0.fields["theme"]; @@ -25766,7 +26583,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 = 932; s.pc = 15; return s.tmp_6; } + else { s.callLocIdx = 1040; s.pc = 15; return s.tmp_6; } } case 15: r0 = s.retval; @@ -25785,7 +26602,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 = 933; s.pc = 17; return s.tmp_9; } + else { s.callLocIdx = 1041; s.pc = 17; return s.tmp_9; } } case 17: r0 = s.retval; @@ -25796,7 +26613,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 = 934; s.pc = 16; return s.tmp_8; } + else { s.callLocIdx = 1042; s.pc = 16; return s.tmp_8; } } case 16: r0 = s.retval; @@ -25804,11 +26621,11 @@ switch (step) { r0 = (s.tmp_7 + 1); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 935; s.pc = 12; return s.tmp_0; + s.callLocIdx = 1043; s.pc = 12; return s.tmp_0; case 12: r0 = s.retval; - s.tmp_0 = helpers_imagePrintCenter__P496525_mk(s); - s.tmp_0.arg0 = globals.screen___496568; + s.tmp_0 = helpers_imagePrintCenter__P23481_mk(s); + s.tmp_0.arg0 = globals.screen___23524; s.tmp_1 = if_getText_1_mk(s); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; @@ -25818,12 +26635,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 = 936; s.pc = 19; return s.tmp_1; + s.callLocIdx = 1044; 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 = 936; s.pc = 19; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 936; s.pc = 19; return s.tmp_1;; } - else { s.callLocIdx = 936; 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 = 1044; s.pc = 19; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 1044; s.pc = 19; return s.tmp_1;; } + else { s.callLocIdx = 1044; s.pc = 19; return s.tmp_1; } } case 19: r0 = s.retval; @@ -25837,7 +26654,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 = 937; s.pc = 20; return s.tmp_5; } + else { s.callLocIdx = 1045; s.pc = 20; return s.tmp_5; } } case 20: r0 = s.retval; @@ -25854,12 +26671,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 = 938; s.pc = 21; return s.tmp_6; } + else { s.callLocIdx = 1046; s.pc = 21; return s.tmp_6; } } case 21: r0 = s.retval; s.tmp_0.arg4 = r0; - s.callLocIdx = 939; s.pc = 18; return s.tmp_0; + s.callLocIdx = 1047; s.pc = 18; return s.tmp_0; case 18: r0 = s.retval; case 3: @@ -25867,12 +26684,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_drawText__P497397.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__P24476.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__P497397_mk(s) { +function scene_systemMenu_PauseMenu_drawText__P24476_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_drawText__P497397, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_drawText__P24476, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -25891,7 +26708,7 @@ function scene_systemMenu_PauseMenu_drawText__P497397_mk(s) { -function helpers_imagePrintCenter__P496525(s) { +function helpers_imagePrintCenter__P23481(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -25901,8 +26718,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.w___506161 = undefined; - s.x___506167 = undefined; + s.w___33987 = undefined; + s.x___33993 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -25917,7 +26734,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = image_getFontForText__P496513_mk(s); + s.tmp_2 = image_getFontForText__P23469_mk(s); s.tmp_2.arg0 = s.arg1; s.callLocIdx = 93; s.pc = 3; return s.tmp_2; case 3: @@ -25941,17 +26758,17 @@ switch (step) { r0 = s.retval; s.tmp_1 = r0; r0 = (s.tmp_0 * s.tmp_1); - s.w___506161 = (r0); + s.w___33987 = (r0); r0 = pxsim_ImageMethods.width(s.arg0); s.tmp_1 = r0; - r0 = (s.tmp_1 - s.w___506161); + r0 = (s.tmp_1 - s.w___33987); s.tmp_0 = r0; r0 = (s.tmp_0 / 2); - s.x___506167 = (r0); - s.tmp_0 = helpers_imagePrint__P496526_mk(s); + s.x___33993 = (r0); + s.tmp_0 = helpers_imagePrint__P23482_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.tmp_0.arg2 = s.x___506167; + s.tmp_0.arg2 = s.x___33993; s.tmp_0.arg3 = s.arg2; s.tmp_0.arg4 = s.arg3; s.tmp_0.arg5 = s.arg4; @@ -25963,18 +26780,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_imagePrintCenter__P496525.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__P23481.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__P496525_mk(s) { +function helpers_imagePrintCenter__P23481_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_imagePrintCenter__P496525, depth: s.depth + 1, + parent: s, fn: helpers_imagePrintCenter__P23481, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - w___506161: undefined, - x___506167: undefined, + w___33987: undefined, + x___33993: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -25986,7 +26803,7 @@ function helpers_imagePrintCenter__P496525_mk(s) { -function scene_systemMenu_PauseMenu_setSelection__P497396(s) { +function scene_systemMenu_PauseMenu_setSelection__P24475(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26002,7 +26819,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C497392_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C24471_VT)) failedCast(r0); r0 = s.arg0.fields["options"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -26022,7 +26839,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__P497390_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P24469_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -26030,7 +26847,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 = 919; s.pc = 10; return s.tmp_6; + s.callLocIdx = 1027; s.pc = 10; return s.tmp_6; case 10: r0 = s.retval; case 3: @@ -26044,9 +26861,9 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_4 = controller_Button__C496669_v0_1_mk(s); - s.tmp_4.arg0 = globals.A___496643; - if (!checkSubtype(s.tmp_4.arg0, controller_Button__C496669_VT)) failedCast(s.tmp_4.arg0); + s.tmp_4 = controller_Button__C23674_v0_1_mk(s); + s.tmp_4.arg0 = globals.A___23602; + if (!checkSubtype(s.tmp_4.arg0, controller_Button__C23674_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: @@ -26061,7 +26878,7 @@ switch (step) { case 6: // jmp value (already in r0) s.tmp_5 = r0; - s.tmp_6 = scene_systemMenu_MenuOption_setState__P497390_mk(s); + s.tmp_6 = scene_systemMenu_MenuOption_setState__P24469_mk(s); r0 = s.arg0.fields["options"]; s.tmp_7 = r0; r0 = s.arg0.fields["selection"]; @@ -26069,14 +26886,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 = 920; s.pc = 12; return s.tmp_6; + s.callLocIdx = 1028; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; case 7: case 8: - s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P499128_mk(s); + s.tmp_0 = scene_systemMenu_PauseMenu_updateScrollTarget__P26452_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 921; s.pc = 13; return s.tmp_0; + s.callLocIdx = 1029; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; case 9: @@ -26084,12 +26901,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_setSelection__P497396.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__P24475.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__P497396_mk(s) { +function scene_systemMenu_PauseMenu_setSelection__P24475_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P497396, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_setSelection__P24475, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26108,7 +26925,7 @@ function scene_systemMenu_PauseMenu_setSelection__P497396_mk(s) { -function scene_systemMenu_PauseMenu_updateScrollTarget__P499128(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P26452(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26118,13 +26935,13 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.row___506378 = undefined; + s.row___34206 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C497392_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C24471_VT)) failedCast(r0); r0 = s.arg0.fields["selection"]; s.tmp_0 = r0; s.tmp_2 = if_cardsPerRow_1_mk(s); @@ -26136,23 +26953,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 = 942; s.pc = 8; return s.tmp_2; } + else { s.callLocIdx = 1050; 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___506378 = (r0); + s.row___34206 = (r0); r0 = s.arg0.fields["scrollRow"]; s.tmp_1 = r0; - r0 = (s.row___506378 === s.tmp_1); + r0 = (s.row___34206 === 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___506378 - 1); + r0 = (s.row___34206 - 1); s.tmp_2 = r0; r0 = s.arg0.fields["scrollRow"]; s.tmp_3 = r0; @@ -26167,7 +26984,7 @@ switch (step) { case 4: r0 = s.arg0.fields["scrollRow"]; s.tmp_6 = r0; - r0 = (s.row___506378 > s.tmp_6); + r0 = (s.row___34206 > s.tmp_6); s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 5; continue; } @@ -26198,7 +27015,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 = 943; s.pc = 9; return s.tmp_5; } + else { s.callLocIdx = 1051; s.pc = 9; return s.tmp_5; } } case 9: r0 = s.retval; @@ -26212,7 +27029,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 = 944; s.pc = 10; return s.tmp_7; } + else { s.callLocIdx = 1052; s.pc = 10; return s.tmp_7; } } case 10: r0 = s.retval; @@ -26227,12 +27044,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_updateScrollTarget__P499128.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__P26452.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__P499128_mk(s) { +function scene_systemMenu_PauseMenu_updateScrollTarget__P26452_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P499128, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_updateScrollTarget__P26452, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26244,7 +27061,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P499128_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - row___506378: undefined, + row___34206: undefined, arg0: undefined, } } @@ -26252,7 +27069,7 @@ function scene_systemMenu_PauseMenu_updateScrollTarget__P499128_mk(s) { -function scene_systemMenu_PauseMenu_onUpdate__P497395(s) { +function scene_systemMenu_PauseMenu_onUpdate__P24474(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26262,22 +27079,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.t___506183 = undefined; - s.i___506187 = undefined; - s.dt___506216 = undefined; + s.t___34009 = undefined; + s.i___34013 = undefined; + s.dt___34042 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C497392_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C24471_VT)) failedCast(r0); r0 = pxsim.control.millis(); s.tmp_0 = r0; r0 = (s.tmp_0 / 250); - s.t___506183 = (r0); - s.i___506187 = (0); + s.t___34009 = (r0); + s.i___34013 = (0); case 1: - s.tmp_1 = r0 = s.i___506187; + s.tmp_1 = r0 = s.i___34013; r0 = s.arg0.fields["options"]; s.tmp_3 = r0; r0 = pxsim_Array__length(s.tmp_3); @@ -26286,13 +27103,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__P497388_mk(s); + s.tmp_4 = scene_systemMenu_MenuOption_setOffset__P24467_mk(s); r0 = s.arg0.fields["options"]; s.tmp_5 = r0; - r0 = pxsim_Array__getAt(s.tmp_5, s.i___506187); + r0 = pxsim_Array__getAt(s.tmp_5, s.i___34013); s.tmp_4.arg0 = r0; - s.tmp_8 = r0 = s.t___506183; - s.tmp_11 = r0 = s.i___506187; + s.tmp_8 = r0 = s.t___34009; + s.tmp_11 = r0 = s.i___34013; s.tmp_13 = if_cardsPerRow_1_mk(s); r0 = s.arg0.fields["theme"]; s.tmp_13.arg0 = r0; @@ -26302,7 +27119,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 = 912; s.pc = 11; return s.tmp_13; } + else { s.callLocIdx = 1020; s.pc = 11; return s.tmp_13; } } case 11: r0 = s.retval; @@ -26317,15 +27134,15 @@ switch (step) { s.tmp_6 = r0; r0 = (2 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 913; s.pc = 10; return s.tmp_4; + s.callLocIdx = 1021; s.pc = 10; return s.tmp_4; case 10: r0 = s.retval; - r0 = (s.i___506187 + 1); - s.i___506187 = (r0); + r0 = (s.i___34013 + 1); + s.i___34013 = (r0); { step = 1; continue; } case 2: - s.tmp_1 = game_currentScene__P497302_mk(s); - s.callLocIdx = 914; s.pc = 12; return s.tmp_1; + s.tmp_1 = game_currentScene__P24380_mk(s); + s.callLocIdx = 1022; s.pc = 12; return s.tmp_1; case 12: r0 = s.retval; r0 = r0.fields["eventContext"]; @@ -26333,7 +27150,7 @@ switch (step) { r0 = s.tmp_0.fields["deltaTimeMillis"]; s.tmp_2 = r0; r0 = (s.tmp_2 / 1000); - s.dt___506216 = (r0); + s.dt___34042 = (r0); r0 = s.arg0.fields["scrollOffset"]; s.tmp_1 = r0; r0 = s.arg0.fields["scrollTarget"]; @@ -26345,7 +27162,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___506216 * 100); + r0 = (s.dt___34042 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 + s.tmp_6); s.tmp_4 = r0; @@ -26363,7 +27180,7 @@ switch (step) { s.tmp_3 = r0 = s.arg0; r0 = s.tmp_3.fields["scrollOffset"]; s.tmp_5 = r0; - r0 = (s.dt___506216 * 100); + r0 = (s.dt___34042 * 100); s.tmp_6 = r0; r0 = (s.tmp_5 - s.tmp_6); s.tmp_4 = r0; @@ -26373,14 +27190,14 @@ switch (step) { { step = 9; continue; } case 5: case 6: - s.tmp_2 = Math_abs__P494879_mk(s); + s.tmp_2 = Math_abs__P21823_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 = 916; s.pc = 13; return s.tmp_2; + s.callLocIdx = 1024; s.pc = 13; return s.tmp_2; case 13: r0 = s.retval; s.tmp_1 = r0; @@ -26393,16 +27210,16 @@ switch (step) { r0 = (s.arg0).fields["scrollOffset"] = (s.tmp_5); case 7: case 8: - s.tmp_0 = scene_Camera_offsetY__P497138_mk(s); - s.tmp_1 = game_currentScene__P497302_mk(s); - s.callLocIdx = 917; s.pc = 15; return s.tmp_1; + s.tmp_0 = scene_Camera_offsetY__P24215_mk(s); + s.tmp_1 = game_currentScene__P24380_mk(s); + s.callLocIdx = 1025; 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 = 918; s.pc = 14; return s.tmp_0; + s.callLocIdx = 1026; s.pc = 14; return s.tmp_0; case 14: r0 = s.retval; case 9: @@ -26410,12 +27227,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_onUpdate__P497395.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__P24474.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__P497395_mk(s) { +function scene_systemMenu_PauseMenu_onUpdate__P24474_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P497395, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_onUpdate__P24474, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26431,9 +27248,9 @@ function scene_systemMenu_PauseMenu_onUpdate__P497395_mk(s) { tmp_11: undefined, tmp_12: undefined, tmp_13: undefined, - t___506183: undefined, - i___506187: undefined, - dt___506216: undefined, + t___34009: undefined, + i___34013: undefined, + dt___34042: undefined, arg0: undefined, } } @@ -26441,7 +27258,7 @@ function scene_systemMenu_PauseMenu_onUpdate__P497395_mk(s) { -function scene_systemMenu_MenuOption_setOffset__P497388(s) { +function scene_systemMenu_MenuOption_setOffset__P24467(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26457,40 +27274,40 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C497384_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P496840_mk(s); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C24463_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P23886_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 = 855; s.pc = 1; return s.tmp_0; + s.callLocIdx = 963; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_y__P496801_mk(s); + s.tmp_0 = Sprite_y__P23839_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P496800_mk(s); + s.tmp_1 = Sprite_y__P23838_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 856; s.pc = 3; return s.tmp_1; + s.callLocIdx = 964; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 857; s.pc = 2; return s.tmp_0; + s.callLocIdx = 965; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setOffset__P497388.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__P24467.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__P497388_mk(s) { +function scene_systemMenu_MenuOption_setOffset__P24467_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setOffset__P497388, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setOffset__P24467, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26502,7 +27319,7 @@ function scene_systemMenu_MenuOption_setOffset__P497388_mk(s) { -function Sprite_top__P496840(s) { +function Sprite_top__P23886(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26512,22 +27329,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___506292 = undefined; + s.physics___34120 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 274; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 349; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = r0.fields["physicsEngine"]; - s.physics___506292 = (r0); - s.tmp_0 = PhysicsEngine__C496934_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___506292; + s.physics___34120 = (r0); + s.tmp_0 = PhysicsEngine__C23985_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___34120; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = 0; r0 = (s.arg1 * 256); @@ -26538,7 +27355,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__C496934_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C23985_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: @@ -26547,18 +27364,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_top__P496840.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__P23886.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__P496840_mk(s) { +function Sprite_top__P23886_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P496840, depth: s.depth + 1, + parent: s, fn: Sprite_top__P23886, depth: s.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___506292: undefined, + physics___34120: undefined, arg0: undefined, arg1: undefined, } } @@ -26567,7 +27384,7 @@ function Sprite_top__P496840_mk(s) { -function PhysicsEngine_moveSprite__P496938(s) { +function PhysicsEngine_moveSprite__P23989(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26585,17 +27402,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C496934_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C23985_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_moveSprite__P496938.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__P23989.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__P496938_mk(s) { +function PhysicsEngine_moveSprite__P23989_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_moveSprite__P496938, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_moveSprite__P23989, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -26607,7 +27424,7 @@ function PhysicsEngine_moveSprite__P496938_mk(s) { -function Sprite_top__P496839(s) { +function Sprite_top__P23885(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26622,20 +27439,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P496839.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__P496839.isGetter = true; +Sprite_top__P23885.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__P23885.isGetter = true; -function Sprite_top__P496839_mk(s) { +function Sprite_top__P23885_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_top__P496839, depth: s.depth + 1, + parent: s, fn: Sprite_top__P23885, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -26645,7 +27462,7 @@ function Sprite_top__P496839_mk(s) { -function Sprite_y__P496801(s) { +function Sprite_y__P23839(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26661,294 +27478,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P496840_mk(s); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P23886_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_1 = r0 = s.arg1; - r0 = s.arg0.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_4); - s.tmp_3 = r0; - r0 = (s.tmp_3 / 2); - s.tmp_2 = r0; - r0 = (s.tmp_1 - s.tmp_2); - s.tmp_0.arg1 = r0; - s.callLocIdx = 221; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = undefined; - return leave(s, r0) - default: oops() -} } } -Sprite_y__P496801.info = {"start":2305,"length":72,"line":92,"column":4,"endLine":94,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"y","argumentNames":["this","v"]} - -function Sprite_y__P496801_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_y__P496801, depth: s.depth + 1, - pc: 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 scene_systemMenu_MenuOption_setState__P497390(s) { -let r0 = s.r0, 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__C497384_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: + s.tmp_4 = Sprite_height__P23880_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 281; s.pc = 2; return s.tmp_4; case 2: - r0 = (s.arg0).fields["state"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P499127_mk(s); - s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 859; 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__P497390.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__P497390_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_setState__P497390, 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__P499127(s) { -let r0 = s.r0, 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__C497384_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__P496829_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 = 862; s.pc = 9; return s.tmp_5; } - } - case 9: - r0 = s.retval; - s.tmp_4.arg1 = r0; - s.callLocIdx = 863; s.pc = 8; return s.tmp_4; - case 8: - r0 = s.retval; - { step = 6; continue; } - case 4: - s.tmp_0 = Sprite_setImage__P496829_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 = 864; s.pc = 11; return s.tmp_1; } - } - case 11: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 865; s.pc = 10; return s.tmp_0; - case 10: - r0 = s.retval; - { step = 6; continue; } - case 5: - s.tmp_0 = Sprite_setImage__P496829_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 = 866; s.pc = 13; return s.tmp_1; } - } - case 13: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 867; s.pc = 12; return s.tmp_0; - case 12: - r0 = s.retval; - case 6: - s.tmp_0 = Sprite_x__P496799_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P496798_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 868; s.pc = 15; return s.tmp_1; - case 15: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 869; s.pc = 14; return s.tmp_0; - case 14: - r0 = s.retval; - s.tmp_0 = Sprite_y__P496801_mk(s); - r0 = s.arg0.fields["icon"]; - s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P496800_mk(s); - r0 = s.arg0.fields["card"]; - s.tmp_1.arg0 = r0; - s.callLocIdx = 870; s.pc = 17; return s.tmp_1; - case 17: - r0 = s.retval; - s.tmp_0.arg1 = r0; - s.callLocIdx = 871; 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__P499127.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__P499127_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_systemMenu_MenuOption_updateCard__P499127, depth: s.depth + 1, - pc: 0, retval: undefined, 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__P496799(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - if (s.lambdaArgs) { - s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); - s.lambdaArgs = null; - } - r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P496836_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 = 219; s.pc = 1; return s.tmp_0; + s.callLocIdx = 282; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_x__P496799.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_y__P23839.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_x__P496799_mk(s) { +function Sprite_y__P23839_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_x__P496799, depth: s.depth + 1, + parent: s, fn: Sprite_y__P23839, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -26963,7 +27519,7 @@ function Sprite_x__P496799_mk(s) { -function Sprite_left__P496836(s) { +function Sprite_height__P23880(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -26973,90 +27529,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.physics___507142 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 266; s.pc = 1; return s.tmp_0; - case 1: - r0 = s.retval; - r0 = r0.fields["physicsEngine"]; - s.physics___507142 = (r0); - s.tmp_0 = PhysicsEngine__C496934_v2_4_mk(s); - s.tmp_0.arg0 = s.physics___507142; - 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__C496934_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_left__P496836.info = {"start":9212,"length":257,"line":331,"column":4,"endLine":341,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"left","argumentNames":["this","value"]} - -function Sprite_left__P496836_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Sprite_left__P496836, depth: s.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___507142: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Sprite_left__P496835(s) { -let r0 = s.r0, 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__C496789_VT)) failedCast(r0); - r0 = s.arg0.fields["_x"]; + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + r0 = s.arg0.fields["_height"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_left__P496835.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__P496835.isGetter = true; +Sprite_height__P23880.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__P23880.isGetter = true; -function Sprite_left__P496835_mk(s) { +function Sprite_height__P23880_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_left__P496835, depth: s.depth + 1, + parent: s, fn: Sprite_height__P23880, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27066,7 +27557,7 @@ function Sprite_left__P496835_mk(s) { -function scene_systemMenu_MenuOption_setTheme__P497389(s) { +function scene_systemMenu_MenuOption_setState__P24469(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27082,23 +27573,429 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C497384_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C24463_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__P26451_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 967; 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__P24469.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__P24469_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_MenuOption_setState__P24469, 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__P26451(s) { +let r0 = s.r0, 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__C24463_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__P23873_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 = 970; s.pc = 9; return s.tmp_5; } + } + case 9: + r0 = s.retval; + s.tmp_4.arg1 = r0; + s.callLocIdx = 971; s.pc = 8; return s.tmp_4; + case 8: + r0 = s.retval; + { step = 6; continue; } + case 4: + s.tmp_0 = Sprite_setImage__P23873_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 = 972; s.pc = 11; return s.tmp_1; } + } + case 11: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 973; s.pc = 10; return s.tmp_0; + case 10: + r0 = s.retval; + { step = 6; continue; } + case 5: + s.tmp_0 = Sprite_setImage__P23873_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 = 974; s.pc = 13; return s.tmp_1; } + } + case 13: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 975; s.pc = 12; return s.tmp_0; + case 12: + r0 = s.retval; + case 6: + s.tmp_0 = Sprite_x__P23837_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_x__P23836_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 976; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 977; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.tmp_0 = Sprite_y__P23839_mk(s); + r0 = s.arg0.fields["icon"]; + s.tmp_0.arg0 = r0; + s.tmp_1 = Sprite_y__P23838_mk(s); + r0 = s.arg0.fields["card"]; + s.tmp_1.arg0 = r0; + s.callLocIdx = 978; s.pc = 17; return s.tmp_1; + case 17: + r0 = s.retval; + s.tmp_0.arg1 = r0; + s.callLocIdx = 979; 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__P26451.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__P26451_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_MenuOption_updateCard__P26451, depth: s.depth + 1, + pc: 0, retval: undefined, 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__P23837(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P23882_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_1 = r0 = s.arg1; + s.tmp_4 = Sprite_width__P23879_mk(s); + s.tmp_4.arg0 = s.arg0; + s.callLocIdx = 276; 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 = 277; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +Sprite_x__P23837.info = {"start":2724,"length":65,"line":115,"column":4,"endLine":117,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"x","argumentNames":["this","v"]} + +function Sprite_x__P23837_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_x__P23837, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_left__P23882(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.physics___35089 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 341; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = r0.fields["physicsEngine"]; + s.physics___35089 = (r0); + s.tmp_0 = PhysicsEngine__C23985_v2_4_mk(s); + s.tmp_0.arg0 = s.physics___35089; + 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__C23985_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_left__P23882.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_left__P23882_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_left__P23882, depth: s.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___35089: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_left__P23881(s) { +let r0 = s.r0, 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__C23823_VT)) failedCast(r0); + r0 = s.arg0.fields["_x"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_left__P23881.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__P23881.isGetter = true; + +function Sprite_left__P23881_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_left__P23881, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function Sprite_width__P23879(s) { +let r0 = s.r0, 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__C23823_VT)) failedCast(r0); + r0 = s.arg0.fields["_width"]; + s.tmp_0 = r0; + r0 = (s.tmp_0 / 256); + return leaveAccessor(s, r0) + default: oops() +} } } +Sprite_width__P23879.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__P23879.isGetter = true; + +function Sprite_width__P23879_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_width__P23879, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function scene_systemMenu_MenuOption_setTheme__P24468(s) { +let r0 = s.r0, 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__C24463_VT)) failedCast(r0); r0 = (s.arg0).fields["theme"] = (s.arg1); - s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P499127_mk(s); + s.tmp_0 = scene_systemMenu_MenuOption_updateCard__P26451_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 858; s.pc = 1; return s.tmp_0; + s.callLocIdx = 966; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_setTheme__P497389.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__P24468.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__P497389_mk(s) { +function scene_systemMenu_MenuOption_setTheme__P24468_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_setTheme__P497389, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_setTheme__P24468, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27109,7 +28006,7 @@ function scene_systemMenu_MenuOption_setTheme__P497389_mk(s) { -function scene_systemMenu_MenuOption_position__P497387(s) { +function scene_systemMenu_MenuOption_position__P24466(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27126,58 +28023,58 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C497384_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C24463_VT)) failedCast(r0); r0 = (s.arg0).fields["top"] = (s.arg2); - s.tmp_0 = Sprite_left__P496836_mk(s); + s.tmp_0 = Sprite_left__P23882_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 849; s.pc = 1; return s.tmp_0; + s.callLocIdx = 957; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = Sprite_top__P496840_mk(s); + s.tmp_0 = Sprite_top__P23886_mk(s); r0 = s.arg0.fields["card"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg2; - s.callLocIdx = 850; s.pc = 2; return s.tmp_0; + s.callLocIdx = 958; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_x__P496799_mk(s); + s.tmp_0 = Sprite_x__P23837_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_x__P496798_mk(s); + s.tmp_1 = Sprite_x__P23836_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 851; s.pc = 4; return s.tmp_1; + s.callLocIdx = 959; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 852; s.pc = 3; return s.tmp_0; + s.callLocIdx = 960; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_y__P496801_mk(s); + s.tmp_0 = Sprite_y__P23839_mk(s); r0 = s.arg0.fields["icon"]; s.tmp_0.arg0 = r0; - s.tmp_1 = Sprite_y__P496800_mk(s); + s.tmp_1 = Sprite_y__P23838_mk(s); r0 = s.arg0.fields["card"]; s.tmp_1.arg0 = r0; - s.callLocIdx = 853; s.pc = 6; return s.tmp_1; + s.callLocIdx = 961; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; s.tmp_0.arg1 = r0; - s.callLocIdx = 854; s.pc = 5; return s.tmp_0; + s.callLocIdx = 962; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_position__P497387.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__P24466.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__P497387_mk(s) { +function scene_systemMenu_MenuOption_position__P24466_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_position__P497387, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_position__P24466, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27190,7 +28087,7 @@ function scene_systemMenu_MenuOption_position__P497387_mk(s) { -function scene_systemMenu_MenuOption_show__P497386(s) { +function scene_systemMenu_MenuOption_show__P24465(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27205,7 +28102,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_MenuOption__C497384_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_MenuOption__C24463_VT)) failedCast(r0); r0 = s.arg0.fields["theme"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -27219,21 +28116,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 = 844; s.pc = 3; return s.tmp_1; } + else { s.callLocIdx = 952; s.pc = 3; return s.tmp_1; } } case 3: r0 = s.retval; { step = 2; continue; } case 1: - r0 = globals.CARD_NORMAL___497408; + r0 = globals.CARD_NORMAL___24487; case 2: // jmp value (already in r0) s.tmp_2 = r0; s.tmp_3 = r0 = s.arg0; - s.tmp_5 = sprites_create__P496740_mk(s); + s.tmp_5 = sprites_create__P23759_mk(s); s.tmp_5.arg0 = s.tmp_2; s.tmp_5.arg1 = undefined; - s.callLocIdx = 845; s.pc = 4; return s.tmp_5; + s.callLocIdx = 953; s.pc = 4; return s.tmp_5; case 4: r0 = s.retval; s.tmp_4 = r0; @@ -27248,16 +28145,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 = 846; s.pc = 5; return s.tmp_0; } + else { s.callLocIdx = 954; s.pc = 5; return s.tmp_0; } } case 5: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - s.tmp_2 = sprites_create__P496740_mk(s); + s.tmp_2 = sprites_create__P23759_mk(s); r0 = s.arg0.fields["iconImage"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = undefined; - s.callLocIdx = 847; s.pc = 6; return s.tmp_2; + s.callLocIdx = 955; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_1 = r0; @@ -27272,7 +28169,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 = 848; s.pc = 7; return s.tmp_0; } + else { s.callLocIdx = 956; s.pc = 7; return s.tmp_0; } } case 7: r0 = s.retval; @@ -27281,12 +28178,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_MenuOption_show__P497386.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__P24465.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__P497386_mk(s) { +function scene_systemMenu_MenuOption_show__P24465_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_MenuOption_show__P497386, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_MenuOption_show__P24465, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27301,7 +28198,7 @@ function scene_systemMenu_MenuOption_show__P497386_mk(s) { -function sprites_create__P496740(s) { +function sprites_create__P23759(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27311,78 +28208,78 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___507222 = undefined; - s.sprite___507225 = undefined; + s.scene___35169 = undefined; + s.sprite___35172 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 212; s.pc = 1; return s.tmp_0; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 267; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.scene___507222 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(Sprite__C496789_VT); + s.scene___35169 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(Sprite__C23823_VT); s.tmp_0 = r0; - s.tmp_1 = Sprite_constructor__P496826_mk(s); + s.tmp_1 = Sprite_constructor__P23870_mk(s); s.tmp_1.arg0 = s.tmp_0; s.tmp_1.arg1 = s.arg0; - s.callLocIdx = 213; s.pc = 2; return s.tmp_1; + s.callLocIdx = 268; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.sprite___507225 = (s.tmp_0); - s.tmp_0 = Sprite_setKind__P496844_mk(s); - s.tmp_0.arg0 = s.sprite___507225; + s.sprite___35172 = (s.tmp_0); + s.tmp_0 = Sprite_setKind__P23890_mk(s); + s.tmp_0.arg0 = s.sprite___35172; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 214; s.pc = 3; return s.tmp_0; + s.callLocIdx = 269; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = PhysicsEngine__C496934_v0_2_mk(s); - r0 = s.scene___507222.fields["physicsEngine"]; + s.tmp_0 = PhysicsEngine__C23985_v0_2_mk(s); + r0 = s.scene___35169.fields["physicsEngine"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.sprite___507225; - if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C496934_VT)) failedCast(s.tmp_0.arg0); + s.tmp_0.arg1 = s.sprite___35172; + if (!checkSubtype(s.tmp_0.arg0, PhysicsEngine__C23985_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__P507240); + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P35187); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtcore_mkAction(1, inline__P507246); + r0 = pxsim_pxtcore_mkAction(1, sprites_create_inline__P35193); s.tmp_1 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___507225); - s.tmp_2 = helpers_arrayForEach__P494861_mk(s); - s.tmp_3 = helpers_arrayFilter__P494862_mk(s); - r0 = s.scene___507222.fields["createdHandlers"]; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.sprite___35172); + s.tmp_2 = helpers_arrayForEach__P21804_mk(s); + s.tmp_3 = helpers_arrayFilter__P21805_mk(s); + r0 = s.scene___35169.fields["createdHandlers"]; s.tmp_3.arg0 = r0; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 215; s.pc = 6; return s.tmp_3; + s.callLocIdx = 270; 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 = 217; s.pc = 5; return s.tmp_2; + s.callLocIdx = 272; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; - r0 = s.sprite___507225; + r0 = s.sprite___35172; return leave(s, r0) default: oops() } } } -sprites_create__P496740.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} +sprites_create__P23759.info = {"start":890,"length":400,"line":35,"column":4,"endLine":47,"endColumn":5,"fileName":"pxt_modules/game/sprites.ts","functionName":"create","argumentNames":["img","kind"]} -function sprites_create__P496740_mk(s) { +function sprites_create__P23759_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_create__P496740, depth: s.depth + 1, + parent: s, fn: sprites_create__P23759, depth: s.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___507222: undefined, - sprite___507225: undefined, + scene___35169: undefined, + sprite___35172: undefined, arg0: undefined, arg1: undefined, } } @@ -27391,7 +28288,7 @@ function sprites_create__P496740_mk(s) { -function inline__P507240(s) { +function forEach_inline__P35187(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27411,12 +28308,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507240.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +forEach_inline__P35187.info = {"start":1195,"length":19,"line":43,"column":20,"endLine":43,"endColumn":39,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function inline__P507240_mk(s) { +function forEach_inline__P35187_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507240, depth: s.depth + 1, + parent: s, fn: forEach_inline__P35187, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27426,7 +28323,7 @@ function inline__P507240_mk(s) { -function inline__P507246(s) { +function sprites_create_inline__P35193(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27445,12 +28342,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 = 216; s.pc = 1; return s.tmp_0; + s.callLocIdx = 271; 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 = 216; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 216; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 216; 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 = 271; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 271; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 271; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -27458,12 +28355,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P507246.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} +sprites_create_inline__P35193.info = {"start":1237,"length":22,"line":44,"column":21,"endLine":44,"endColumn":43,"fileName":"pxt_modules/game/sprites.ts","functionName":"inline","argumentNames":["h"]} -function inline__P507246_mk(s) { +function sprites_create_inline__P35193_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P507246, depth: s.depth + 1, + parent: s, fn: sprites_create_inline__P35193, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -27473,7 +28370,7 @@ function inline__P507246_mk(s) { -function PhysicsEngine_addSprite__P496936(s) { +function PhysicsEngine_addSprite__P23987(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27489,17 +28386,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, PhysicsEngine__C496934_VT)) failedCast(r0); + if (!checkSubtype(r0, PhysicsEngine__C23985_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -PhysicsEngine_addSprite__P496936.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} +PhysicsEngine_addSprite__P23987.info = {"start":124,"length":29,"line":8,"column":4,"endLine":8,"endColumn":33,"fileName":"pxt_modules/game/physics.ts","functionName":"addSprite","argumentNames":["this","sprite"]} -function PhysicsEngine_addSprite__P496936_mk(s) { +function PhysicsEngine_addSprite__P23987_mk(s) { checkStack(s.depth); return { - parent: s, fn: PhysicsEngine_addSprite__P496936, depth: s.depth + 1, + parent: s, fn: PhysicsEngine_addSprite__P23987, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -27509,7 +28406,7 @@ function PhysicsEngine_addSprite__P496936_mk(s) { -function Sprite_setKind__P496844(s) { +function Sprite_setKind__P23890(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27519,15 +28416,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.spritesByKind___507264 = undefined; - s.overlapMap___507293 = undefined; + s.spritesByKind___35211 = undefined; + s.overlapMap___35240 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = (s.arg1 == undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -27546,12 +28443,12 @@ switch (step) { { step = 15; continue; } case 3: case 4: - s.tmp_3 = game_currentScene__P497302_mk(s); - s.callLocIdx = 281; s.pc = 16; return s.tmp_3; + s.tmp_3 = game_currentScene__P24380_mk(s); + s.callLocIdx = 356; s.pc = 16; return s.tmp_3; case 16: r0 = s.retval; r0 = r0.fields["spritesByKind"]; - s.spritesByKind___507264 = (r0); + s.spritesByKind___35211 = (r0); r0 = s.arg0.fields["_kind"]; s.tmp_1 = r0; r0 = (s.tmp_1 >= 0); @@ -27563,19 +28460,19 @@ switch (step) { case 5: r0 = s.arg0.fields["_kind"]; s.tmp_2 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___507264, s.tmp_2); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___35211, 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__P496893_mk(s); + s.tmp_4 = sprites_SpriteSet_remove__P23944_mk(s); r0 = s.arg0.fields["_kind"]; s.tmp_5 = r0; - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___507264, s.tmp_5); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___35211, s.tmp_5); s.tmp_4.arg0 = r0; s.tmp_4.arg1 = s.arg0; - s.callLocIdx = 282; s.pc = 17; return s.tmp_4; + s.callLocIdx = 357; s.pc = 17; return s.tmp_4; case 17: r0 = s.retval; case 7: @@ -27584,7 +28481,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 11; continue; } - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___507264, s.arg1); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___35211, s.arg1); s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -27592,32 +28489,32 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_1); if (!r0) { step = 9; continue; } - r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C496886_VT); + r0 = pxsim_pxtcore_mkClassInstance(sprites_SpriteSet__C23937_VT); s.tmp_4 = r0; - s.tmp_5 = sprites_SpriteSet_constructor__P496888_mk(s); + s.tmp_5 = sprites_SpriteSet_constructor__P23939_mk(s); s.tmp_5.arg0 = s.tmp_4; - s.callLocIdx = 283; s.pc = 18; return s.tmp_5; + s.callLocIdx = 358; s.pc = 18; return s.tmp_5; case 18: r0 = s.retval; - r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___507264, s.arg1, s.tmp_4); + r0 = pxsim_pxtrt.mapSetGeneric(s.spritesByKind___35211, s.arg1, s.tmp_4); case 9: case 10: - s.tmp_0 = sprites_SpriteSet_add__P496891_mk(s); - r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___507264, s.arg1); + s.tmp_0 = sprites_SpriteSet_add__P23942_mk(s); + r0 = pxsim_pxtrt.mapGetGeneric(s.spritesByKind___35211, s.arg1); s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 284; s.pc = 19; return s.tmp_0; + s.callLocIdx = 359; s.pc = 19; return s.tmp_0; case 19: r0 = s.retval; case 11: case 12: - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 285; s.pc = 20; return s.tmp_0; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 360; s.pc = 20; return s.tmp_0; case 20: r0 = s.retval; r0 = r0.fields["overlapMap"]; - s.overlapMap___507293 = (r0); - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___507293, s.arg1); + s.overlapMap___35240 = (r0); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___35240, s.arg1); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); s.tmp_1 = r0; @@ -27625,7 +28522,7 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - s.tmp_3 = r0 = s.overlapMap___507293; + s.tmp_3 = r0 = s.overlapMap___35240; s.tmp_4 = r0 = s.arg1; r0 = pxsim_Array__mk(); s.tmp_5 = r0; @@ -27633,7 +28530,7 @@ switch (step) { case 13: case 14: s.tmp_0 = r0 = s.arg0; - r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___507293, s.arg1); + r0 = pxsim_pxtrt.mapGetGeneric(s.overlapMap___35240, s.arg1); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_kindsOverlappedWith"] = (s.tmp_1); r0 = (s.arg0).fields["_kind"] = (s.arg1); @@ -27642,12 +28539,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_setKind__P496844.info = {"start":11155,"length":663,"line":404,"column":4,"endLine":424,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"setKind","argumentNames":["this","value"]} +Sprite_setKind__P23890.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 Sprite_setKind__P496844_mk(s) { +function Sprite_setKind__P23890_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_setKind__P496844, depth: s.depth + 1, + parent: s, fn: Sprite_setKind__P23890, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27655,8 +28552,8 @@ function Sprite_setKind__P496844_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - spritesByKind___507264: undefined, - overlapMap___507293: undefined, + spritesByKind___35211: undefined, + overlapMap___35240: undefined, arg0: undefined, arg1: undefined, } } @@ -27665,7 +28562,7 @@ function Sprite_setKind__P496844_mk(s) { -function sprites_SpriteSet_add__P496891(s) { +function sprites_SpriteSet_add__P23942(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27681,7 +28578,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C496886_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C23937_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -27712,12 +28609,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_add__P496891.info = {"start":1041,"length":263,"line":41,"column":8,"endLine":49,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"add","argumentNames":["this","sprite"]} +sprites_SpriteSet_add__P23942.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 sprites_SpriteSet_add__P496891_mk(s) { +function sprites_SpriteSet_add__P23942_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_add__P496891, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_add__P23942, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27733,7 +28630,7 @@ function sprites_SpriteSet_add__P496891_mk(s) { -function sprites_SpriteSet_contains__P496894(s) { +function sprites_SpriteSet_contains__P23945(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27749,7 +28646,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C496886_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C23937_VT)) failedCast(r0); r0 = s.arg0.fields["_sprites"]; s.tmp_1 = r0; r0 = pxsim_Array_.indexOf(s.tmp_1, s.arg1, undefined); @@ -27758,12 +28655,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_contains__P496894.info = {"start":2172,"length":100,"line":79,"column":8,"endLine":81,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"contains","argumentNames":["this","sprite"]} +sprites_SpriteSet_contains__P23945.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 sprites_SpriteSet_contains__P496894_mk(s) { +function sprites_SpriteSet_contains__P23945_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_contains__P496894, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_contains__P23945, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27775,7 +28672,7 @@ function sprites_SpriteSet_contains__P496894_mk(s) { -function sprites_SpriteSet_constructor__P496888(s) { +function sprites_SpriteSet_constructor__P23939(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27790,7 +28687,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C496886_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C23937_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -27799,12 +28696,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_constructor__P496888.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} +sprites_SpriteSet_constructor__P23939.info = {"start":485,"length":57,"line":19,"column":8,"endLine":21,"endColumn":9,"fileName":"pxt_modules/game/spriteset.ts","functionName":"inline","argumentNames":["this"]} -function sprites_SpriteSet_constructor__P496888_mk(s) { +function sprites_SpriteSet_constructor__P23939_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_constructor__P496888, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_constructor__P23939, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27815,7 +28712,7 @@ function sprites_SpriteSet_constructor__P496888_mk(s) { -function Sprite_constructor__P496826(s) { +function Sprite_constructor__P23870(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27831,15 +28728,15 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_0 = sprites_BaseSprite_constructor__P496626_mk(s); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_0 = sprites_BaseSprite_constructor__P23585_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 236; s.pc = 1; return s.tmp_0; + s.callLocIdx = 299; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_4 = r0; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_5 = r0; @@ -27853,7 +28750,7 @@ switch (step) { s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_4 = r0; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_5 = r0; @@ -27872,53 +28769,55 @@ switch (step) { r0 = s.arg0.fields["_y"]; s.tmp_0 = r0; r0 = (s.arg0).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = Sprite_vx__P496803_mk(s); + s.tmp_0 = Sprite_vx__P23841_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 239; s.pc = 2; return s.tmp_0; + s.callLocIdx = 302; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.tmp_0 = Sprite_vy__P496805_mk(s); + s.tmp_0 = Sprite_vy__P23843_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 240; s.pc = 3; return s.tmp_0; + s.callLocIdx = 303; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.tmp_0 = Sprite_ax__P496807_mk(s); + s.tmp_0 = Sprite_ax__P23845_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 241; s.pc = 4; return s.tmp_0; + s.callLocIdx = 304; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = Sprite_ay__P496809_mk(s); + s.tmp_0 = Sprite_ay__P23847_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 242; s.pc = 5; return s.tmp_0; + s.callLocIdx = 305; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tmp_0 = Sprite_fx__P496811_mk(s); + s.tmp_0 = Sprite_fx__P23849_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 243; s.pc = 6; return s.tmp_0; + s.callLocIdx = 306; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = Sprite_fy__P496813_mk(s); + s.tmp_0 = Sprite_fy__P23851_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 0; - s.callLocIdx = 244; s.pc = 7; return s.tmp_0; + s.callLocIdx = 307; 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__P496829_mk(s); + s.tmp_0 = Sprite_setImage__P23873_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 245; s.pc = 8; return s.tmp_0; + s.callLocIdx = 308; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - s.tmp_0 = Sprite_setKind__P496844_mk(s); + s.tmp_0 = Sprite_setKind__P23890_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = -1; - s.callLocIdx = 246; s.pc = 9; return s.tmp_0; + s.callLocIdx = 309; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = (s.arg0).fields["layer"] = (1); @@ -27935,12 +28834,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_constructor__P496826.info = {"start":5461,"length":618,"line":208,"column":4,"endLine":228,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} +Sprite_constructor__P23870.info = {"start":7406,"length":678,"line":278,"column":4,"endLine":300,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"inline","argumentNames":["this","img"]} -function Sprite_constructor__P496826_mk(s) { +function Sprite_constructor__P23870_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_constructor__P496826, depth: s.depth + 1, + parent: s, fn: Sprite_constructor__P23870, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -27957,7 +28856,7 @@ function Sprite_constructor__P496826_mk(s) { -function Sprite_fy__P496813(s) { +function Sprite_fy__P23851(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -27973,12 +28872,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P494881_mk(s); + s.tmp_3 = Math_max__P21825_mk(s); s.tmp_3.arg0 = 0; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 234; s.pc = 1; return s.tmp_3; + s.callLocIdx = 295; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -27991,12 +28890,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_fy__P496813.info = {"start":4340,"length":64,"line":157,"column":4,"endLine":159,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fy","argumentNames":["this","v"]} +Sprite_fy__P23851.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 Sprite_fy__P496813_mk(s) { +function Sprite_fy__P23851_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P496813, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P23851, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28011,7 +28910,7 @@ function Sprite_fy__P496813_mk(s) { -function Sprite_fy__P496812(s) { +function Sprite_fy__P23850(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28026,20 +28925,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["_fy"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_fy__P496812.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__P496812.isGetter = true; +Sprite_fy__P23850.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__P23850.isGetter = true; -function Sprite_fy__P496812_mk(s) { +function Sprite_fy__P23850_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fy__P496812, depth: s.depth + 1, + parent: s, fn: Sprite_fy__P23850, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28049,7 +28948,7 @@ function Sprite_fy__P496812_mk(s) { -function Sprite_fx__P496811(s) { +function Sprite_fx__P23849(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28065,12 +28964,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_3 = Math_max__P494881_mk(s); + s.tmp_3 = Math_max__P21825_mk(s); s.tmp_3.arg0 = 0; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 231; s.pc = 1; return s.tmp_3; + s.callLocIdx = 292; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -28083,12 +28982,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_fx__P496811.info = {"start":3997,"length":64,"line":147,"column":4,"endLine":149,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"fx","argumentNames":["this","v"]} +Sprite_fx__P23849.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 Sprite_fx__P496811_mk(s) { +function Sprite_fx__P23849_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P496811, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P23849, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28103,7 +29002,7 @@ function Sprite_fx__P496811_mk(s) { -function Sprite_fx__P496810(s) { +function Sprite_fx__P23848(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28118,20 +29017,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["_fx"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_fx__P496810.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__P496810.isGetter = true; +Sprite_fx__P23848.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__P23848.isGetter = true; -function Sprite_fx__P496810_mk(s) { +function Sprite_fx__P23848_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_fx__P496810, depth: s.depth + 1, + parent: s, fn: Sprite_fx__P23848, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28141,7 +29040,7 @@ function Sprite_fx__P496810_mk(s) { -function Sprite_ay__P496809(s) { +function Sprite_ay__P23847(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28157,7 +29056,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -28168,12 +29067,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_ay__P496809.info = {"start":3666,"length":51,"line":136,"column":4,"endLine":138,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ay","argumentNames":["this","v"]} +Sprite_ay__P23847.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 Sprite_ay__P496809_mk(s) { +function Sprite_ay__P23847_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P496809, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P23847, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28186,7 +29085,7 @@ function Sprite_ay__P496809_mk(s) { -function Sprite_ay__P496808(s) { +function Sprite_ay__P23846(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28201,20 +29100,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["_ay"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_ay__P496808.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__P496808.isGetter = true; +Sprite_ay__P23846.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__P23846.isGetter = true; -function Sprite_ay__P496808_mk(s) { +function Sprite_ay__P23846_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ay__P496808, depth: s.depth + 1, + parent: s, fn: Sprite_ay__P23846, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28224,7 +29123,7 @@ function Sprite_ay__P496808_mk(s) { -function Sprite_ax__P496807(s) { +function Sprite_ax__P23845(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28240,7 +29139,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -28251,12 +29150,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_ax__P496807.info = {"start":3327,"length":51,"line":125,"column":4,"endLine":127,"endColumn":5,"fileName":"pxt_modules/game/sprite.ts","functionName":"ax","argumentNames":["this","v"]} +Sprite_ax__P23845.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 Sprite_ax__P496807_mk(s) { +function Sprite_ax__P23845_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P496807, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P23845, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28269,7 +29168,7 @@ function Sprite_ax__P496807_mk(s) { -function Sprite_ax__P496806(s) { +function Sprite_ax__P23844(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28284,20 +29183,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["_ax"]; s.tmp_0 = r0; r0 = (s.tmp_0 / 256); return leaveAccessor(s, r0) default: oops() } } } -Sprite_ax__P496806.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__P496806.isGetter = true; +Sprite_ax__P23844.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__P23844.isGetter = true; -function Sprite_ax__P496806_mk(s) { +function Sprite_ax__P23844_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_ax__P496806, depth: s.depth + 1, + parent: s, fn: Sprite_ax__P23844, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28307,7 +29206,7 @@ function Sprite_ax__P496806_mk(s) { -function Sprite_vy__P496805(s) { +function Sprite_vy__P23843(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28323,7 +29222,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -28334,12 +29233,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_vy__P496805.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__P23843.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__P496805_mk(s) { +function Sprite_vy__P23843_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P496805, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P23843, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28352,7 +29251,7 @@ function Sprite_vy__P496805_mk(s) { -function Sprite_vy__P496804(s) { +function Sprite_vy__P23842(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28367,20 +29266,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P496804.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__P496804.isGetter = true; +Sprite_vy__P23842.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__P23842.isGetter = true; -function Sprite_vy__P496804_mk(s) { +function Sprite_vy__P23842_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vy__P496804, depth: s.depth + 1, + parent: s, fn: Sprite_vy__P23842, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28390,7 +29289,7 @@ function Sprite_vy__P496804_mk(s) { -function Sprite_vx__P496803(s) { +function Sprite_vx__P23841(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28406,7 +29305,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = (s.arg1 * 256); s.tmp_2 = r0; @@ -28417,12 +29316,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_vx__P496803.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__P23841.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__P496803_mk(s) { +function Sprite_vx__P23841_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P496803, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P23841, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28435,7 +29334,7 @@ function Sprite_vx__P496803_mk(s) { -function Sprite_vx__P496802(s) { +function Sprite_vx__P23840(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28450,20 +29349,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P496802.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__P496802.isGetter = true; +Sprite_vx__P23840.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__P23840.isGetter = true; -function Sprite_vx__P496802_mk(s) { +function Sprite_vx__P23840_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_vx__P496802, depth: s.depth + 1, + parent: s, fn: Sprite_vx__P23840, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28473,7 +29372,7 @@ function Sprite_vx__P496802_mk(s) { -function game_onShade__P497317(s) { +function game_onShade__P24393(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28487,9 +29386,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_init__P498881_mk(s); + s.tmp_0 = game_init__P26205_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 838; s.pc = 4; return s.tmp_0; + s.callLocIdx = 939; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; r0 = pxsim_numops_toBoolDecr(s.arg0); @@ -28501,11 +29400,11 @@ switch (step) { { step = 3; continue; } case 1: case 2: - s.tmp_2 = scene_createRenderable__P497153_mk(s); + s.tmp_2 = scene_createRenderable__P24230_mk(s); s.tmp_2.arg0 = 80; s.tmp_2.arg1 = s.arg0; s.tmp_2.arg2 = undefined; - s.callLocIdx = 839; s.pc = 5; return s.tmp_2; + s.callLocIdx = 940; s.pc = 5; return s.tmp_2; case 5: r0 = s.retval; case 3: @@ -28513,12 +29412,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_onShade__P497317.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__P24393.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__P497317_mk(s) { +function game_onShade__P24393_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_onShade__P497317, depth: s.depth + 1, + parent: s, fn: game_onShade__P24393, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28530,7 +29429,7 @@ function game_onShade__P497317_mk(s) { -function scene_createRenderable__P497153(s) { +function scene_createRenderable__P24230(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28540,14 +29439,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.renderable___506330 = undefined; + s.renderable___34158 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.arg2 = (s.lambdaArgs[2]); s.lambdaArgs = null; } - r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C497148_VT); + r0 = pxsim_pxtcore_mkClassInstance(scene_Renderable__C24225_VT); s.tmp_0 = r0; s.tmp_1 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_1); @@ -28555,35 +29454,35 @@ switch (step) { r0 = s.tmp_1; { step = 2; continue; } case 1: - r0 = inline__P506336; + r0 = renderable_inline__P34164; case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.tmp_3 = scene_Renderable_constructor__P497149_mk(s); + s.tmp_3 = scene_Renderable_constructor__P24226_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 = 771; s.pc = 3; return s.tmp_3; + s.callLocIdx = 881; s.pc = 3; return s.tmp_3; case 3: r0 = s.retval; - s.renderable___506330 = (s.tmp_0); - r0 = s.renderable___506330; + s.renderable___34158 = (s.tmp_0); + r0 = s.renderable___34158; return leave(s, r0) default: oops() } } } -scene_createRenderable__P497153.info = {"start":608,"length":339,"line":24,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/renderable.ts","functionName":"createRenderable","argumentNames":["z","handler","shouldBeVisible"]} +scene_createRenderable__P24230.info = {"start":608,"length":339,"line":24,"column":4,"endLine":36,"endColumn":5,"fileName":"pxt_modules/game/renderable.ts","functionName":"createRenderable","argumentNames":["z","handler","shouldBeVisible"]} -function scene_createRenderable__P497153_mk(s) { +function scene_createRenderable__P24230_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_createRenderable__P497153, depth: s.depth + 1, + parent: s, fn: scene_createRenderable__P24230, depth: s.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___506330: undefined, + renderable___34158: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28593,7 +29492,7 @@ function scene_createRenderable__P497153_mk(s) { -function inline__P506336(s) { +function renderable_inline__P34164(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28607,12 +29506,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P506336.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} +renderable_inline__P34164.info = {"start":875,"length":10,"line":31,"column":32,"endLine":31,"endColumn":42,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":[]} -function inline__P506336_mk(s) { +function renderable_inline__P34164_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P506336, depth: s.depth + 1, + parent: s, fn: renderable_inline__P34164, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, } } @@ -28620,7 +29519,7 @@ function inline__P506336_mk(s) { -function scene_Renderable_constructor__P497149(s) { +function scene_Renderable_constructor__P24226(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28638,25 +29537,25 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C497148_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C24225_VT)) failedCast(r0); r0 = (s.arg0).fields["handler"] = (s.arg1); r0 = (s.arg0).fields["shouldBeVisible"] = (s.arg2); - s.tmp_0 = sprites_BaseSprite_constructor__P496626_mk(s); + s.tmp_0 = sprites_BaseSprite_constructor__P23585_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg3; - s.callLocIdx = 768; s.pc = 1; return s.tmp_0; + s.callLocIdx = 878; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -scene_Renderable_constructor__P497149.info = {"start":83,"length":212,"line":2,"column":8,"endLine":8,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":["this","handler","shouldBeVisible","z"]} +scene_Renderable_constructor__P24226.info = {"start":83,"length":212,"line":2,"column":8,"endLine":8,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"inline","argumentNames":["this","handler","shouldBeVisible","z"]} -function scene_Renderable_constructor__P497149_mk(s) { +function scene_Renderable_constructor__P24226_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable_constructor__P497149, depth: s.depth + 1, + parent: s, fn: scene_Renderable_constructor__P24226, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28669,7 +29568,7 @@ function scene_Renderable_constructor__P497149_mk(s) { -function scene_systemMenu_PauseMenu_constructor__P497393(s) { +function scene_systemMenu_PauseMenu_constructor__P24472(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28686,7 +29585,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C497392_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_systemMenu_PauseMenu__C24471_VT)) failedCast(r0); r0 = (s.arg0).fields["generator"] = (s.arg1); s.tmp_0 = r0 = s.arg2; r0 = pxsim_numops_toBool(s.tmp_0); @@ -28694,13 +29593,13 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_1 = scene_systemMenu_buildMenuTheme__P497401_mk(s); - r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___497408); + s.tmp_1 = scene_systemMenu_buildMenuTheme__P24480_mk(s); + r0 = pxsim_ImageMethods.width(globals.CARD_NORMAL___24487); s.tmp_1.arg0 = r0; s.tmp_1.arg1 = 3; s.tmp_1.arg2 = undefined; s.tmp_1.arg3 = undefined; - s.callLocIdx = 872; s.pc = 3; return s.tmp_1; + s.callLocIdx = 980; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 2: @@ -28714,12 +29613,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_PauseMenu_constructor__P497393.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__P24472.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__P497393_mk(s) { +function scene_systemMenu_PauseMenu_constructor__P24472_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_PauseMenu_constructor__P497393, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_PauseMenu_constructor__P24472, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28733,7 +29632,7 @@ function scene_systemMenu_PauseMenu_constructor__P497393_mk(s) { -function scene_systemMenu_buildMenuTheme__P497401(s) { +function scene_systemMenu_buildMenuTheme__P24480(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28743,7 +29642,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.cardsPerRow___508221 = undefined; + s.cardsPerRow___36174 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -28751,19 +29650,19 @@ switch (step) { s.arg3 = (s.lambdaArgs[3]); s.lambdaArgs = null; } - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); 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___508221 = (r0); + s.cardsPerRow___36174 = (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___496511; + r0 = globals.font8___23467; case 2: // jmp value (already in r0) s.tmp_1 = r0; @@ -28774,9 +29673,9 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = image_doubledFont__P496514_mk(s); + s.tmp_1 = image_doubledFont__P23470_mk(s); s.tmp_1.arg0 = s.arg2; - s.callLocIdx = 982; s.pc = 5; return s.tmp_1; + s.callLocIdx = 1090; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; case 4: @@ -28787,12 +29686,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___508221); - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "cardsPerRow", s.cardsPerRow___36174); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_3 = r0; - r0 = (s.cardsPerRow___508221 * s.arg0); + r0 = (s.cardsPerRow___36174 * s.arg0); s.tmp_5 = r0; - r0 = (s.cardsPerRow___508221 - 1); + r0 = (s.cardsPerRow___36174 - 1); s.tmp_7 = r0; r0 = (s.tmp_7 * s.arg1); s.tmp_6 = r0; @@ -28813,7 +29712,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 = 983; s.pc = 6; return s.tmp_11; } + else { s.callLocIdx = 1091; s.pc = 6; return s.tmp_11; } } case 6: r0 = s.retval; @@ -28823,7 +29722,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___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_14 = r0; s.tmp_16 = if_charHeight_1_mk(s); s.tmp_16.arg0 = s.arg2; @@ -28833,7 +29732,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 = 984; s.pc = 7; return s.tmp_16; } + else { s.callLocIdx = 1092; s.pc = 7; return s.tmp_16; } } case 7: r0 = s.retval; @@ -28844,19 +29743,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___497409); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___497410); - r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___497408); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "selectedCard", globals.CARD_SELECTED___24488); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "activeCard", globals.CARD_ACTIVE___24489); + r0 = pxsim_pxtrt.mapSetByString(s.tmp_0, "basicCard", globals.CARD_NORMAL___24487); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -scene_systemMenu_buildMenuTheme__P497401.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__P24480.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__P497401_mk(s) { +function scene_systemMenu_buildMenuTheme__P24480_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_buildMenuTheme__P497401, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_buildMenuTheme__P24480, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -28875,7 +29774,7 @@ function scene_systemMenu_buildMenuTheme__P497401_mk(s) { tmp_14: undefined, tmp_15: undefined, tmp_16: undefined, - cardsPerRow___508221: undefined, + cardsPerRow___36174: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -28886,7 +29785,7 @@ function scene_systemMenu_buildMenuTheme__P497401_mk(s) { -function image_doubledFont__P496514(s) { +function image_doubledFont__P23470(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -28900,7 +29799,7 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = image_scaledFont__P496515_mk(s); + s.tmp_0 = image_scaledFont__P23471_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = 2; s.callLocIdx = 87; s.pc = 1; return s.tmp_0; @@ -28909,12 +29808,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_doubledFont__P496514.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__P23470.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__P496514_mk(s) { +function image_doubledFont__P23470_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_doubledFont__P496514, depth: s.depth + 1, + parent: s, fn: image_doubledFont__P23470, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -28924,7 +29823,7 @@ function image_doubledFont__P496514_mk(s) { -function image_scaledFont__P496515(s) { +function image_scaledFont__P23471(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29039,12 +29938,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -image_scaledFont__P496515.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__P23471.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__P496515_mk(s) { +function image_scaledFont__P23471_mk(s) { checkStack(s.depth); return { - parent: s, fn: image_scaledFont__P496515, depth: s.depth + 1, + parent: s, fn: image_scaledFont__P23471, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29070,7 +29969,7 @@ function image_scaledFont__P496515_mk(s) { -function game_pushScene__P497306(s) { +function game_pushScene__P24384(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29080,45 +29979,45 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.oldScene___508300 = undefined; - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 811; s.pc = 5; return s.tmp_0; + s.oldScene___36253 = undefined; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 921; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.oldScene___508300 = (r0); - s.tmp_0 = particles_clearAll__P497478_mk(s); - s.callLocIdx = 812; s.pc = 6; return s.tmp_0; + s.oldScene___36253 = (r0); + s.tmp_0 = particles_clearAll__P24557_mk(s); + s.callLocIdx = 922; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.tmp_0 = particles_disableAll__P497479_mk(s); - s.callLocIdx = 813; s.pc = 7; return s.tmp_0; + s.tmp_0 = particles_disableAll__P24558_mk(s); + s.callLocIdx = 923; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._sceneStack___498874); + r0 = pxsim_numops_toBoolDecr(globals._sceneStack___26198); 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___498874 = (r0); + globals._sceneStack___26198 = (r0); case 1: case 2: - r0 = pxsim_Array__push(globals._sceneStack___498874, globals._scene___498873); - s.tmp_0 = game_init__P498881_mk(s); + r0 = pxsim_Array__push(globals._sceneStack___26198, globals._scene___26197); + s.tmp_0 = game_init__P26205_mk(s); s.tmp_0.arg0 = true; - s.callLocIdx = 814; s.pc = 8; return s.tmp_0; + s.callLocIdx = 924; s.pc = 8; return s.tmp_0; case 8: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___498875); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___26199); if (!r0) { step = 3; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P508317); + r0 = pxsim_pxtcore_mkAction(1, game_pushScene_inline__P36270); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___508300); - s.tmp_1 = helpers_arrayForEach__P494861_mk(s); - s.tmp_1.arg0 = globals._scenePushHandlers___498875; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.oldScene___36253); + s.tmp_1 = helpers_arrayForEach__P21804_mk(s); + s.tmp_1.arg0 = globals._scenePushHandlers___26199; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 816; s.pc = 9; return s.tmp_1; + s.callLocIdx = 926; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; case 3: @@ -29127,23 +30026,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -game_pushScene__P497306.info = {"start":1660,"length":367,"line":62,"column":4,"endLine":73,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"pushScene","argumentNames":[]} +game_pushScene__P24384.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__P497306_mk(s) { +function game_pushScene__P24384_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_pushScene__P497306, depth: s.depth + 1, + parent: s, fn: game_pushScene__P24384, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - oldScene___508300: undefined, + oldScene___36253: undefined, } } -function inline__P508317(s) { +function game_pushScene_inline__P36270(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29161,19 +30060,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 = 815; s.pc = 1; return s.tmp_0; + s.callLocIdx = 925; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P508317.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__P36270.info = {"start":1991,"length":18,"line":71,"column":39,"endLine":71,"endColumn":57,"fileName":"pxt_modules/game/game.ts","functionName":"inline","argumentNames":["cb"]} -function inline__P508317_mk(s) { +function game_pushScene_inline__P36270_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P508317, depth: s.depth + 1, + parent: s, fn: game_pushScene_inline__P36270, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29183,7 +30082,7 @@ function inline__P508317_mk(s) { -function particles_disableAll__P497479(s) { +function particles_disableAll__P24558(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29193,22 +30092,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___508321 = undefined; - s.tmp_0 = particles_particleSources__P499237_mk(s); - s.callLocIdx = 1065; s.pc = 3; return s.tmp_0; + s.sources___36274 = undefined; + s.tmp_0 = particles_particleSources__P26546_mk(s); + s.callLocIdx = 1173; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___508321 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___508321); + s.sources___36274 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___36274); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P494861_mk(s); - s.tmp_0.arg0 = s.sources___508321; - s.tmp_0.arg1 = inline__P508327; - s.callLocIdx = 1067; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P21804_mk(s); + s.tmp_0.arg0 = s.sources___36274; + s.tmp_0.arg1 = particles_disableAll_inline__P36280; + s.callLocIdx = 1175; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P499233_mk(s); - s.callLocIdx = 1068; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P26542_mk(s); + s.callLocIdx = 1176; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -29217,22 +30116,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_disableAll__P497479.info = {"start":12353,"length":195,"line":401,"column":4,"endLine":407,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"disableAll","argumentNames":[]} +particles_disableAll__P24558.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__P497479_mk(s) { +function particles_disableAll__P24558_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_disableAll__P497479, depth: s.depth + 1, + parent: s, fn: particles_disableAll__P24558, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___508321: undefined, + sources___36274: undefined, } } -function inline__P508327(s) { +function particles_disableAll_inline__P36280(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29246,22 +30145,22 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_enabled__P497461_mk(s); + s.tmp_0 = particles_ParticleSource_enabled__P24540_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = false; - s.callLocIdx = 1066; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1174; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = false; return leave(s, r0) default: oops() } } } -inline__P508327.info = {"start":12478,"length":22,"line":404,"column":28,"endLine":404,"endColumn":50,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_disableAll_inline__P36280.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__P508327_mk(s) { +function particles_disableAll_inline__P36280_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P508327, depth: s.depth + 1, + parent: s, fn: particles_disableAll_inline__P36280, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29271,7 +30170,7 @@ function inline__P508327_mk(s) { -function particles_clearAll__P497478(s) { +function particles_clearAll__P24557(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29281,22 +30180,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.sources___508332 = undefined; - s.tmp_0 = particles_particleSources__P499237_mk(s); - s.callLocIdx = 1061; s.pc = 3; return s.tmp_0; + s.sources___36285 = undefined; + s.tmp_0 = particles_particleSources__P26546_mk(s); + s.callLocIdx = 1169; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.sources___508332 = (r0); - r0 = pxsim_numops_toBoolDecr(s.sources___508332); + s.sources___36285 = (r0); + r0 = pxsim_numops_toBoolDecr(s.sources___36285); if (!r0) { step = 1; continue; } - s.tmp_0 = helpers_arrayForEach__P494861_mk(s); - s.tmp_0.arg0 = s.sources___508332; - s.tmp_0.arg1 = inline__P508338; - s.callLocIdx = 1063; s.pc = 4; return s.tmp_0; + s.tmp_0 = helpers_arrayForEach__P21804_mk(s); + s.tmp_0.arg0 = s.sources___36285; + s.tmp_0.arg1 = particles_clearAll_inline__P36291; + s.callLocIdx = 1171; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = particles_pruneParticles__P499233_mk(s); - s.callLocIdx = 1064; s.pc = 5; return s.tmp_0; + s.tmp_0 = particles_pruneParticles__P26542_mk(s); + s.callLocIdx = 1172; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; case 1: @@ -29305,22 +30204,22 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_clearAll__P497478.info = {"start":12081,"length":185,"line":390,"column":4,"endLine":396,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} +particles_clearAll__P24557.info = {"start":12098,"length":185,"line":391,"column":4,"endLine":397,"endColumn":5,"fileName":"pxt_modules/game/particles.ts","functionName":"clearAll","argumentNames":[]} -function particles_clearAll__P497478_mk(s) { +function particles_clearAll__P24557_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_clearAll__P497478, depth: s.depth + 1, + parent: s, fn: particles_clearAll__P24557, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, - sources___508332: undefined, + sources___36285: undefined, } } -function inline__P508338(s) { +function particles_clearAll_inline__P36291(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29334,21 +30233,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = particles_ParticleSource_clear__P497463_mk(s); + s.tmp_0 = particles_ParticleSource_clear__P24542_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 1062; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1170; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P508338.info = {"start":12204,"length":14,"line":393,"column":28,"endLine":393,"endColumn":42,"fileName":"pxt_modules/game/particles.ts","functionName":"inline","argumentNames":["s"]} +particles_clearAll_inline__P36291.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__P508338_mk(s) { +function particles_clearAll_inline__P36291_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P508338, depth: s.depth + 1, + parent: s, fn: particles_clearAll_inline__P36291, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29358,7 +30257,7 @@ function inline__P508338_mk(s) { -function controller_Button_onEvent__P496676(s) { +function controller_Button_onEvent__P23681(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29368,6 +30267,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.eventHandler___36299 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -29375,28 +30275,28 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_VT)) failedCast(r0); - s.tmp_0 = control_onEvent__P495136_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 = 141; s.pc = 1; return s.tmp_0; + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); + s.tmp_0 = controller_Button_getOrCreateHandlerForEvent__P26012_mk(s); + s.tmp_0.arg0 = s.arg0; + s.tmp_0.arg1 = s.arg1; + s.callLocIdx = 189; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; + s.eventHandler___36299 = (r0); + r0 = (s.eventHandler___36299).fields["callback"] = (s.arg2); r0 = undefined; return leave(s, r0) default: oops() } } } -controller_Button_onEvent__P496676.info = {"start":3368,"length":124,"line":112,"column":8,"endLine":114,"endColumn":9,"fileName":"pxt_modules/game/controller.ts","functionName":"onEvent","argumentNames":["this","event","handler"]} +controller_Button_onEvent__P23681.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__P496676_mk(s) { +function controller_Button_onEvent__P23681_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_onEvent__P496676, depth: s.depth + 1, + parent: s, fn: controller_Button_onEvent__P23681, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + eventHandler___36299: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -29406,7 +30306,7 @@ function controller_Button_onEvent__P496676_mk(s) { -function scene_systemMenu_initScreen__P499140(s) { +function controller_Button_getOrCreateHandlerForEvent__P26012(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29416,46 +30316,189 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.brightness___508352 = undefined; - s.tmp_0 = settings_readNumber__P496599_mk(s); - s.tmp_0.arg0 = "#brightness"; - s.callLocIdx = 991; s.pc = 3; return s.tmp_0; - case 3: + s.handlerState___36320 = undefined; + s.eventHandler___36329 = undefined; + s.unnamed160___U2 = undefined; + s.unnamed161___U3 = undefined; + s.newHandler___36345 = 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__C23674_VT)) failedCast(r0); + s.tmp_3 = controller_Button_handlerState__P26007_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 199; s.pc = 10; return s.tmp_3; + case 10: r0 = s.retval; - s.brightness___508352 = (r0); - r0 = (s.brightness___508352 !== undefined); + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = helpers_setScreenBrightness__P496501_mk(s); - s.tmp_1.arg0 = globals.screen___496568; - s.tmp_1.arg1 = s.brightness___508352; - s.callLocIdx = 992; s.pc = 4; return s.tmp_1; - case 4: + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonEventHandlerState__C23670_VT); + s.tmp_4 = r0; + s.tmp_5 = controller_ButtonEventHandlerState_constructor__P23671_mk(s); + s.tmp_5.arg0 = s.tmp_4; + r0 = s.arg0.fields["id"]; + s.tmp_5.arg1 = r0; + s.callLocIdx = 201; s.pc = 11; return s.tmp_5; + case 11: + r0 = s.retval; + s.tmp_7 = game_currentScene__P24380_mk(s); + s.callLocIdx = 200; 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: - r0 = undefined; + s.tmp_0 = controller_Button_handlerState__P26007_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 202; s.pc = 13; return s.tmp_0; + case 13: + r0 = s.retval; + s.handlerState___36320 = (r0); + r0 = s.handlerState___36320.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___36320; + r0 = pxsim_Array__mk(); + s.tmp_4 = r0; + r0 = (s.tmp_3).fields["user"] = (s.tmp_4); + case 3: + case 4: + s.eventHandler___36329 = (undefined); + r0 = s.handlerState___36320.fields["user"]; + s.unnamed160___U2 = (r0); + s.unnamed161___U3 = (0); + case 5: + s.tmp_0 = r0 = s.unnamed161___U3; + r0 = pxsim_Array__length(s.unnamed160___U2); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 8; continue; } + r0 = pxsim_Array__getAt(s.unnamed160___U2, s.unnamed161___U3); + s.eventHandler___36329 = (r0); + r0 = s.eventHandler___36329.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___36329; + { step = 9; continue; } + case 6: + case 7: + r0 = (s.unnamed161___U3 + 1); + s.unnamed161___U3 = (r0); + { step = 5; continue; } + case 8: + s.unnamed160___U2 = (undefined); + r0 = pxsim_pxtcore_mkAction(2, controller_Button_getOrCreateHandlerForEvent_inline__P36342); + 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__P22086_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 = 204; s.pc = 14; return s.tmp_5; + case 14: + r0 = s.retval; + r0 = pxsim_pxtcore_mkClassInstance(controller_ButtonHandler__C23668_VT); + s.tmp_0 = r0; + s.tmp_1 = controller_ButtonHandler_constructor__P23669_mk(s); + s.tmp_1.arg0 = s.tmp_0; + s.tmp_1.arg1 = s.arg1; + s.tmp_1.arg2 = undefined; + s.callLocIdx = 205; s.pc = 15; return s.tmp_1; + case 15: + r0 = s.retval; + s.newHandler___36345 = (s.tmp_0); + r0 = s.handlerState___36320.fields["user"]; + s.tmp_0 = r0; + r0 = pxsim_Array__push(s.tmp_0, s.newHandler___36345); + r0 = s.newHandler___36345; + case 9: return leave(s, r0) default: oops() } } } -scene_systemMenu_initScreen__P499140.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} +controller_Button_getOrCreateHandlerForEvent__P26012.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 scene_systemMenu_initScreen__P499140_mk(s) { +function controller_Button_getOrCreateHandlerForEvent__P26012_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initScreen__P499140, depth: s.depth + 1, + parent: s, fn: controller_Button_getOrCreateHandlerForEvent__P26012, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - brightness___508352: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + tmp_6: undefined, + tmp_7: undefined, + handlerState___36320: undefined, + eventHandler___36329: undefined, + unnamed160___U2: undefined, + unnamed161___U3: undefined, + newHandler___36345: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function controller_Button_getOrCreateHandlerForEvent_inline__P36342(s) { +let r0 = s.r0, 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__P26011_mk(s); + s.tmp_0.arg0 = s.caps[0]; + s.tmp_0.arg1 = s.caps[1]; + s.callLocIdx = 203; s.pc = 1; return s.tmp_0; + case 1: + r0 = s.retval; + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +controller_Button_getOrCreateHandlerForEvent_inline__P36342.info = {"start":9186,"length":33,"line":265,"column":44,"endLine":265,"endColumn":77,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} + +function controller_Button_getOrCreateHandlerForEvent_inline__P36342_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_getOrCreateHandlerForEvent_inline__P36342, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, } } -function settings_readNumber__P496599(s) { +function controller_Button_runButtonEvents__P26011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29465,77 +30508,144 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___508363 = undefined; - s.nums___508370 = undefined; + s.handlerState___36359 = undefined; + s.userHandler___36363 = undefined; + s.eventHandler___36374 = undefined; + s.unnamed158___U3 = undefined; + s.unnamed159___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = pxsim.settings._get(s.arg0); - s.buf___508363 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___508363); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); + s.tmp_0 = controller_Button_handlerState__P26007_mk(s); + s.tmp_0.arg0 = s.arg0; + s.callLocIdx = 195; s.pc = 14; return s.tmp_0; + case 14: + r0 = s.retval; + s.handlerState___36359 = (r0); + r0 = pxsim_numops_toBoolDecr(s.handlerState___36359); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - r0 = undefined; - { step = 7; continue; } - { step = 6; continue; } + { step = 13; continue; } case 1: - s.tmp_2 = msgpack_unpackNumberArray__P494932_mk(s); - s.tmp_2.arg0 = s.buf___508363; - s.tmp_2.arg1 = 0; - s.callLocIdx = 125; s.pc = 8; return s.tmp_2; - case 8: - r0 = s.retval; - s.nums___508370 = (r0); - s.tmp_0 = r0 = s.nums___508370; - 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___508370); - s.tmp_1 = r0; - r0 = (s.tmp_1 >= 1); + s.tmp_2 = controller_Button_getOrCreateHandlerForEvent__P26012_mk(s); + s.tmp_2.arg0 = s.arg0; + s.tmp_2.arg1 = s.arg1; + s.callLocIdx = 196; s.pc = 15; return s.tmp_2; + case 15: + r0 = s.retval; + s.userHandler___36363 = (r0); + r0 = s.userHandler___36363.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___36363; + if (!s.tmp_1.arg0.vtable.iface) { + setupLambda(s.tmp_1, pxsim_pxtrt.mapGetByString(s.tmp_1.arg0, "callback"), 1); + s.callLocIdx = 197; 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 = 197; s.pc = 16; return s.tmp_1; } + else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 197; s.pc = 16; return s.tmp_1;; } + else { s.callLocIdx = 197; s.pc = 16; return s.tmp_1; } + } + case 16: + 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 = pxsim_Array__getAt(s.nums___508370, 0); - { step = 7; continue; } case 4: + r0 = s.handlerState___36359.fields["system"]; + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 11; continue; } + s.eventHandler___36374 = (undefined); + r0 = s.handlerState___36359.fields["system"]; + s.unnamed158___U3 = (r0); + s.unnamed159___U4 = (0); case 5: - r0 = undefined; + s.tmp_0 = r0 = s.unnamed159___U4; + r0 = pxsim_Array__length(s.unnamed158___U3); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 10; continue; } + r0 = pxsim_Array__getAt(s.unnamed158___U3, s.unnamed159___U4); + s.eventHandler___36374 = (r0); + r0 = s.eventHandler___36374.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 = undefined; + r0 = s.eventHandler___36374.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___36374; + if (!s.tmp_5.arg0.vtable.iface) { + setupLambda(s.tmp_5, pxsim_pxtrt.mapGetByString(s.tmp_5.arg0, "callback"), 1); + s.callLocIdx = 198; 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 = 198; s.pc = 17; return s.tmp_5; } + else if (s.tmp_5.fn.isGetter) { s.tmp_5.stage2Call = true; s.callLocIdx = 198; s.pc = 17; return s.tmp_5;; } + else { s.callLocIdx = 198; s.pc = 17; return s.tmp_5; } + } + case 17: + r0 = s.retval; + case 8: + case 9: + r0 = (s.unnamed159___U4 + 1); + s.unnamed159___U4 = (r0); + { step = 5; continue; } + case 10: + s.unnamed158___U3 = (undefined); + case 11: + case 12: + case 13: + r0 = undefined; return leave(s, r0) default: oops() } } } -settings_readNumber__P496599.info = {"start":2887,"length":313,"line":114,"column":4,"endLine":124,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readNumber","argumentNames":["key"]} +controller_Button_runButtonEvents__P26011.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 settings_readNumber__P496599_mk(s) { +function controller_Button_runButtonEvents__P26011_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readNumber__P496599, depth: s.depth + 1, + parent: s, fn: controller_Button_runButtonEvents__P26011, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - buf___508363: undefined, - nums___508370: undefined, + tmp_3: undefined, + tmp_4: undefined, + tmp_5: undefined, + handlerState___36359: undefined, + userHandler___36363: undefined, + eventHandler___36374: undefined, + unnamed158___U3: undefined, + unnamed159___U4: undefined, arg0: undefined, + arg1: undefined, } } -function settings_readBuffer__P496597(s) { +function controller_Button_handlerState__P26007(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29545,29 +30655,114 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.state___36390 = undefined; + s.unnamed156___U1 = undefined; + s.unnamed157___U2 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim.settings._get(s.arg0); + r0 = s.arg0; + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); + s.state___36390 = (undefined); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 185; s.pc = 6; return s.tmp_0; + case 6: + r0 = s.retval; + r0 = r0.fields["buttonEventHandlers"]; + s.unnamed156___U1 = (r0); + s.unnamed157___U2 = (0); + case 1: + s.tmp_0 = r0 = s.unnamed157___U2; + r0 = pxsim_Array__length(s.unnamed156___U1); + s.tmp_1 = r0; + r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.unnamed156___U1, s.unnamed157___U2); + s.state___36390 = (r0); + r0 = s.state___36390.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___36390; + { step = 5; continue; } + case 2: + case 3: + r0 = (s.unnamed157___U2 + 1); + s.unnamed157___U2 = (r0); + { step = 1; continue; } + case 4: + s.unnamed156___U1 = (undefined); + r0 = undefined; + case 5: + return leaveAccessor(s, r0) + default: oops() +} } } +controller_Button_handlerState__P26007.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__P26007.isGetter = true; + +function controller_Button_handlerState__P26007_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: controller_Button_handlerState__P26007, depth: s.depth + 1, + pc: 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___36390: undefined, + unnamed156___U1: undefined, + unnamed157___U2: undefined, + arg0: undefined, +} } + + + + + +function controller_ButtonEventHandlerState_constructor__P23671(s) { +let r0 = s.r0, 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__C23670_VT)) failedCast(r0); + r0 = (s.arg0).fields["id"] = (s.arg1); + r0 = undefined; return leave(s, r0) default: oops() } } } -settings_readBuffer__P496597.info = {"start":2516,"length":72,"line":96,"column":4,"endLine":98,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"readBuffer","argumentNames":["key"]} +controller_ButtonEventHandlerState_constructor__P23671.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 settings_readBuffer__P496597_mk(s) { +function controller_ButtonEventHandlerState_constructor__P23671_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readBuffer__P496597, depth: s.depth + 1, + parent: s, fn: controller_ButtonEventHandlerState_constructor__P23671, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, + arg1: undefined, } } -function msgpack_unpackNumberArray__P494932(s) { +function controller_ButtonHandler_constructor__P23669(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29577,120 +30772,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.res___508383 = undefined; - s.fmt___508390 = undefined; - s.v___508399 = 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___508383 = (r0); - case 1: - s.tmp_1 = r0 = s.arg1; - r0 = pxsim.BufferMethods.length(s.arg0); - s.tmp_2 = r0; - r0 = (s.tmp_1 < s.tmp_2); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 10; continue; } - s.tmp_3 = r0 = s.arg1; - r0 = (s.tmp_3 + 1); - s.arg1 = (r0); - s.tmp_4 = msgpack_tagFormat__P498474_mk(s); - r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); - s.tmp_4.arg0 = r0; - s.callLocIdx = 19; s.pc = 12; return s.tmp_4; - case 12: - r0 = s.retval; - s.fmt___508390 = (r0); - r0 = (s.fmt___508390 === null); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 6; continue; } - s.tmp_1 = r0 = s.arg0; - r0 = (s.arg1 - 1); - s.tmp_2 = r0; - r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); - s.v___508399 = (r0); - r0 = (-31 <= s.v___508399); - 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___508399 <= 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___508383, s.v___508399); - { step = 5; continue; } - case 4: - r0 = null; - { step = 11; continue; } - case 5: - { step = 7; continue; } - case 6: - s.tmp_0 = r0 = s.res___508383; - r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___508390, 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__P494924_mk(s); - s.tmp_2.arg0 = s.fmt___508390; - s.callLocIdx = 20; s.pc = 13; return s.tmp_2; - case 13: - r0 = s.retval; - s.tmp_1 = r0; - r0 = (s.tmp_0 + s.tmp_1); - s.arg1 = (r0); - case 7: - case 8: - r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1); - s.tmp_1 = r0; - r0 = (s.tmp_1 === 193); - s.tmp_0 = r0; - r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 9; continue; } - r0 = (s.arg1 + 1); - s.arg1 = (r0); - { step = 8; continue; } - case 9: - { step = 1; continue; } - case 10: - r0 = s.res___508383; - case 11: + r0 = s.arg0; + if (!checkSubtype(r0, controller_ButtonHandler__C23668_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() } } } -msgpack_unpackNumberArray__P494932.info = {"start":2650,"length":669,"line":91,"column":4,"endLine":111,"endColumn":5,"fileName":"pxt_modules/base/buffer.ts","functionName":"unpackNumberArray","argumentNames":["buf","offset"]} +controller_ButtonHandler_constructor__P23669.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 msgpack_unpackNumberArray__P494932_mk(s) { +function controller_ButtonHandler_constructor__P23669_mk(s) { checkStack(s.depth); return { - parent: s, fn: msgpack_unpackNumberArray__P494932, depth: s.depth + 1, + parent: s, fn: controller_ButtonHandler_constructor__P23669, depth: s.depth + 1, pc: 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___508383: undefined, - fmt___508390: undefined, - v___508399: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, } } -function scene_systemMenu_initVolume__P499139(s) { +function scene_systemMenu_initScreen__P26464(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29700,20 +30812,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.vol___508444 = undefined; - s.tmp_0 = settings_readNumber__P496599_mk(s); - s.tmp_0.arg0 = "#volume"; - s.callLocIdx = 989; s.pc = 3; return s.tmp_0; + s.brightness___36402 = undefined; + s.tmp_0 = settings_readNumber__P23558_mk(s); + s.tmp_0.arg0 = "#brightness"; + s.callLocIdx = 1099; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.vol___508444 = (r0); - r0 = (s.vol___508444 !== undefined); + s.brightness___36402 = (r0); + r0 = (s.brightness___36402 !== undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_1 = music_setVolume__P496348_mk(s); - s.tmp_1.arg0 = s.vol___508444; - s.callLocIdx = 990; s.pc = 4; return s.tmp_1; + s.tmp_1 = helpers_setScreenBrightness__P23457_mk(s); + s.tmp_1.arg0 = globals.screen___23524; + s.tmp_1.arg1 = s.brightness___36402; + s.callLocIdx = 1100; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; case 1: @@ -29722,23 +30835,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_systemMenu_initVolume__P499139.info = {"start":13238,"length":144,"line":399,"column":4,"endLine":403,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initVolume","argumentNames":[]} +scene_systemMenu_initScreen__P26464.info = {"start":13388,"length":175,"line":405,"column":4,"endLine":409,"endColumn":5,"fileName":"pxt_modules/game/systemmenu.ts","functionName":"initScreen","argumentNames":[]} -function scene_systemMenu_initVolume__P499139_mk(s) { +function scene_systemMenu_initScreen__P26464_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_systemMenu_initVolume__P499139, depth: s.depth + 1, + parent: s, fn: scene_systemMenu_initScreen__P26464, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - vol___508444: undefined, + brightness___36402: undefined, } } -function game_currentScene__P497302(s) { +function settings_readNumber__P23558(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29748,21 +30861,304 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = game_init__P498881_mk(s); + s.buf___36413 = undefined; + s.nums___36420 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._get(s.arg0); + s.buf___36413 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___36413); + s.tmp_1 = r0; + r0 = pxsim_Boolean__bang(s.tmp_1); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + r0 = undefined; + { step = 7; continue; } + { step = 6; continue; } + case 1: + s.tmp_2 = msgpack_unpackNumberArray__P21878_mk(s); + s.tmp_2.arg0 = s.buf___36413; + s.tmp_2.arg1 = 0; + s.callLocIdx = 125; s.pc = 8; return s.tmp_2; + case 8: + r0 = s.retval; + s.nums___36420 = (r0); + s.tmp_0 = r0 = s.nums___36420; + 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___36420); + s.tmp_1 = r0; + r0 = (s.tmp_1 >= 1); + case 3: + // jmp value (already in r0) + s.tmp_2 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_2); + if (!r0) { step = 4; continue; } + r0 = pxsim_Array__getAt(s.nums___36420, 0); + { step = 7; continue; } + case 4: + case 5: + r0 = undefined; + { step = 7; continue; } + case 6: + r0 = undefined; + case 7: + return leave(s, r0) + default: oops() +} } } +settings_readNumber__P23558.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__P23558_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readNumber__P23558, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + buf___36413: undefined, + nums___36420: undefined, + arg0: undefined, +} } + + + + + +function settings_readBuffer__P23555(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = pxsim.settings._get(s.arg0); + return leave(s, r0) + default: oops() +} } } +settings_readBuffer__P23555.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__P23555_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: settings_readBuffer__P23555, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function msgpack_unpackNumberArray__P21878(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.res___36433 = undefined; + s.fmt___36440 = undefined; + s.v___36449 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); + s.lambdaArgs = null; + } + r0 = pxsim_Array__mk(); + s.res___36433 = (r0); + case 1: + s.tmp_1 = r0 = s.arg1; + r0 = pxsim.BufferMethods.length(s.arg0); + s.tmp_2 = r0; + r0 = (s.tmp_1 < s.tmp_2); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 10; continue; } + s.tmp_3 = r0 = s.arg1; + r0 = (s.tmp_3 + 1); + s.arg1 = (r0); + s.tmp_4 = msgpack_tagFormat__P25782_mk(s); + r0 = pxsim.BufferMethods.getByte(s.arg0, s.tmp_3); + s.tmp_4.arg0 = r0; + s.callLocIdx = 19; s.pc = 12; return s.tmp_4; + case 12: + r0 = s.retval; + s.fmt___36440 = (r0); + r0 = (s.fmt___36440 === null); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 6; continue; } + s.tmp_1 = r0 = s.arg0; + r0 = (s.arg1 - 1); + s.tmp_2 = r0; + r0 = pxsim.BufferMethods.getNumber(s.tmp_1, 6, s.tmp_2); + s.v___36449 = (r0); + r0 = (-31 <= s.v___36449); + 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___36449 <= 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___36433, s.v___36449); + { step = 5; continue; } + case 4: + r0 = null; + { step = 11; continue; } + case 5: + { step = 7; continue; } + case 6: + s.tmp_0 = r0 = s.res___36433; + r0 = pxsim.BufferMethods.getNumber(s.arg0, s.fmt___36440, 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__P21870_mk(s); + s.tmp_2.arg0 = s.fmt___36440; + s.callLocIdx = 20; s.pc = 13; return s.tmp_2; + case 13: + r0 = s.retval; + s.tmp_1 = r0; + r0 = (s.tmp_0 + s.tmp_1); + s.arg1 = (r0); + case 7: + case 8: + r0 = pxsim.BufferMethods.getByte(s.arg0, s.arg1); + s.tmp_1 = r0; + r0 = (s.tmp_1 === 193); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 9; continue; } + r0 = (s.arg1 + 1); + s.arg1 = (r0); + { step = 8; continue; } + case 9: + { step = 1; continue; } + case 10: + r0 = s.res___36433; + case 11: + return leave(s, r0) + default: oops() +} } } +msgpack_unpackNumberArray__P21878.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__P21878_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: msgpack_unpackNumberArray__P21878, depth: s.depth + 1, + pc: 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___36433: undefined, + fmt___36440: undefined, + v___36449: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function scene_systemMenu_initVolume__P26463(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.vol___36494 = undefined; + s.tmp_0 = settings_readNumber__P23558_mk(s); + s.tmp_0.arg0 = "#volume"; + s.callLocIdx = 1097; s.pc = 3; return s.tmp_0; + case 3: + r0 = s.retval; + s.vol___36494 = (r0); + r0 = (s.vol___36494 !== undefined); + s.tmp_0 = r0; + r0 = pxsim_numops_toBoolDecr(s.tmp_0); + if (!r0) { step = 1; continue; } + s.tmp_1 = music_setVolume__P23301_mk(s); + s.tmp_1.arg0 = s.vol___36494; + s.callLocIdx = 1098; s.pc = 4; return s.tmp_1; + case 4: + r0 = s.retval; + case 1: + case 2: + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +scene_systemMenu_initVolume__P26463.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__P26463_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: scene_systemMenu_initVolume__P26463, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + vol___36494: undefined, +} } + + + + + +function game_currentScene__P24380(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.tmp_0 = game_init__P26205_mk(s); s.tmp_0.arg0 = undefined; - s.callLocIdx = 806; s.pc = 1; return s.tmp_0; + s.callLocIdx = 916; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = globals._scene___498873; + r0 = globals._scene___26197; return leave(s, r0) default: oops() } } } -game_currentScene__P497302.info = {"start":667,"length":90,"line":22,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/game/game.ts","functionName":"currentScene","argumentNames":[]} +game_currentScene__P24380.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__P497302_mk(s) { +function game_currentScene__P24380_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_currentScene__P497302, depth: s.depth + 1, + parent: s, fn: game_currentScene__P24380, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29771,7 +31167,7 @@ function game_currentScene__P497302_mk(s) { -function game_addScenePopHandler__P497321(s) { +function game_addScenePopHandler__P24396(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29785,35 +31181,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___498876); + r0 = pxsim_numops_toBoolDecr(globals._scenePopHandlers___26200); 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___498876 = (r0); + globals._scenePopHandlers___26200 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___498876, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePopHandlers___26200, 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___498876, s.arg0); + r0 = pxsim_Array__push(globals._scenePopHandlers___26200, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePopHandler__P497321.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__P24396.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__P497321_mk(s) { +function game_addScenePopHandler__P24396_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePopHandler__P497321, depth: s.depth + 1, + parent: s, fn: game_addScenePopHandler__P24396, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29824,7 +31220,7 @@ function game_addScenePopHandler__P497321_mk(s) { -function game_addScenePushHandler__P497319(s) { +function game_addScenePushHandler__P24394(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29838,35 +31234,35 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___498875); + r0 = pxsim_numops_toBoolDecr(globals._scenePushHandlers___26199); 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___498875 = (r0); + globals._scenePushHandlers___26199 = (r0); case 1: case 2: - r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___498875, s.arg0, undefined); + r0 = pxsim_Array_.indexOf(globals._scenePushHandlers___26199, 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___498875, s.arg0); + r0 = pxsim_Array__push(globals._scenePushHandlers___26199, s.arg0); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -game_addScenePushHandler__P497319.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__P24394.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__P497319_mk(s) { +function game_addScenePushHandler__P24394_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_addScenePushHandler__P497319, depth: s.depth + 1, + parent: s, fn: game_addScenePushHandler__P24394, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -29877,7 +31273,7 @@ function game_addScenePushHandler__P497319_mk(s) { -function Fx8__P494900(s) { +function Fx8__P21844(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29897,12 +31293,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx8__P494900.info = {"start":42,"length":68,"line":4,"column":0,"endLine":6,"endColumn":1,"fileName":"pxt_modules/base/fixed.ts","functionName":"Fx8","argumentNames":["v"]} +Fx8__P21844.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__P494900_mk(s) { +function Fx8__P21844_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx8__P494900, depth: s.depth + 1, + parent: s, fn: Fx8__P21844, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -29912,7 +31308,7 @@ function Fx8__P494900_mk(s) { -function SpriteKind_create__P496902(s) { +function SpriteKind_create__P23953(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29922,26 +31318,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = (globals.nextKind___498713 === undefined); + r0 = (globals.nextKind___26036 === undefined); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - globals.nextKind___498713 = (1000); + globals.nextKind___26036 = (1000); case 1: case 2: - s.tmp_0 = r0 = globals.nextKind___498713; + s.tmp_0 = r0 = globals.nextKind___26036; r0 = (s.tmp_0 + 1); - globals.nextKind___498713 = (r0); + globals.nextKind___26036 = (r0); r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -SpriteKind_create__P496902.info = {"start":750,"length":112,"line":25,"column":4,"endLine":28,"endColumn":5,"fileName":"pxt_modules/game/spritekind.ts","functionName":"create","argumentNames":[]} +SpriteKind_create__P23953.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__P496902_mk(s) { +function SpriteKind_create__P23953_mk(s) { checkStack(s.depth); return { - parent: s, fn: SpriteKind_create__P496902, depth: s.depth + 1, + parent: s, fn: SpriteKind_create__P23953, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -29950,7 +31346,7 @@ function SpriteKind_create__P496902_mk(s) { -function controller_Button_constructor__P496675(s) { +function controller_Button_constructor__P23680(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -29967,7 +31363,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); r0 = (s.arg0).fields["id"] = (s.arg1); r0 = (s.arg0).fields["_pressed"] = (false); r0 = (s.arg0).fields["repeatDelay"] = (undefined); @@ -29977,13 +31373,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__P508520); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P36570); 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__P508527); + r0 = pxsim_pxtcore_mkAction(1, controller_Button_inline__P36577); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); r0 = s.arg0.fields["id"]; @@ -30002,12 +31398,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_constructor__P496675.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__P23680.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__P496675_mk(s) { +function controller_Button_constructor__P23680_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_constructor__P496675, depth: s.depth + 1, + parent: s, fn: controller_Button_constructor__P23680, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30021,7 +31417,7 @@ function controller_Button_constructor__P496675_mk(s) { -function inline__P508520(s) { +function controller_Button_inline__P36570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30031,22 +31427,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P496680_mk(s); + s.tmp_0 = controller_Button_setPressed__P23687_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = false; - s.callLocIdx = 138; s.pc = 1; return s.tmp_0; + s.callLocIdx = 186; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P508520.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__P36570.info = {"start":2627,"length":28,"line":88,"column":66,"endLine":88,"endColumn":94,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function inline__P508520_mk(s) { +function controller_Button_inline__P36570_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P508520, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P36570, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -30055,7 +31451,7 @@ function inline__P508520_mk(s) { -function inline__P508527(s) { +function controller_Button_inline__P36577(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30065,22 +31461,22 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_0 = controller_Button_setPressed__P496680_mk(s); + s.tmp_0 = controller_Button_setPressed__P23687_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = true; - s.callLocIdx = 139; s.pc = 1; return s.tmp_0; + s.callLocIdx = 187; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P508527.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__P36577.info = {"start":2729,"length":27,"line":89,"column":68,"endLine":89,"endColumn":95,"fileName":"pxt_modules/game/controllerbutton.ts","functionName":"inline","argumentNames":[]} -function inline__P508527_mk(s) { +function controller_Button_inline__P36577_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P508527, depth: s.depth + 1, + parent: s, fn: controller_Button_inline__P36577, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -30089,7 +31485,7 @@ function inline__P508527_mk(s) { -function controller_setupButton__P498695(s) { +function controller_setupButton__P26025(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30108,12 +31504,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_setupButton__P498695.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__P26025.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__P498695_mk(s) { +function controller_setupButton__P26025_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_setupButton__P498695, depth: s.depth + 1, + parent: s, fn: controller_setupButton__P26025, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -30123,7 +31519,7 @@ function controller_setupButton__P498695_mk(s) { -function controller_Button_setPressed__P496680(s) { +function controller_Button_setPressed__P23687(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30139,26 +31535,26 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C23674_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__P496471_mk(s); - s.callLocIdx = 142; s.pc = 7; return s.tmp_2; + s.tmp_2 = power_poke__P23425_mk(s); + s.callLocIdx = 190; 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__P496709_mk(s); + s.tmp_1 = controller_Controller_connected__P23643_mk(s); r0 = s.arg0.fields["_owner"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = true; - s.callLocIdx = 143; s.pc = 8; return s.tmp_1; + s.callLocIdx = 191; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; case 1: @@ -30169,17 +31565,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__P498697_mk(s); + s.tmp_0 = controller_Button_raiseButtonDown__P26009_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 144; s.pc = 9; return s.tmp_0; + s.callLocIdx = 192; 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__P498696_mk(s); + s.tmp_0 = controller_Button_raiseButtonUp__P26008_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 145; s.pc = 10; return s.tmp_0; + s.callLocIdx = 193; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; case 4: @@ -30189,12 +31585,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_setPressed__P496680.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__P23687.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__P496680_mk(s) { +function controller_Button_setPressed__P23687_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_setPressed__P496680, depth: s.depth + 1, + parent: s, fn: controller_Button_setPressed__P23687, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30207,7 +31603,7 @@ function controller_Button_setPressed__P496680_mk(s) { -function controller_Button_raiseButtonDown__P498697(s) { +function controller_Button_raiseButtonDown__P26009(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30222,8 +31618,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___498689); + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___26019); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -30238,12 +31634,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonDown__P498697.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__P26009.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__P498697_mk(s) { +function controller_Button_raiseButtonDown__P26009_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonDown__P498697, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonDown__P26009, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30253,7 +31649,7 @@ function controller_Button_raiseButtonDown__P498697_mk(s) { -function controller_Button_raiseButtonUp__P498696(s) { +function controller_Button_raiseButtonUp__P26008(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30268,8 +31664,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_VT)) failedCast(r0); - r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___498689); + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); + r0 = pxsim_numops_toBoolDecr(globals._userEventsEnabled___26019); if (!r0) { step = 1; continue; } r0 = s.arg0.fields["id"]; s.tmp_0 = r0; @@ -30284,12 +31680,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_raiseButtonUp__P498696.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__P26008.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__P498696_mk(s) { +function controller_Button_raiseButtonUp__P26008_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_raiseButtonUp__P498696, depth: s.depth + 1, + parent: s, fn: controller_Button_raiseButtonUp__P26008, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30299,7 +31695,7 @@ function controller_Button_raiseButtonUp__P498696_mk(s) { -function controller_Controller_connected__P496709(s) { +function controller_Controller_connected__P23643(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30315,7 +31711,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); r0 = s.arg0.fields["_connected"]; s.tmp_1 = r0; r0 = (s.arg1 != s.tmp_1); @@ -30343,12 +31739,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Controller_connected__P496709.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__P23643.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__P496709_mk(s) { +function controller_Controller_connected__P23643_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P496709, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P23643, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30361,7 +31757,7 @@ function controller_Controller_connected__P496709_mk(s) { -function controller_Controller_id__P496696(s) { +function controller_Controller_id__P23630(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30376,18 +31772,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); r0 = s.arg0.fields["_id"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_id__P496696.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__P496696.isGetter = true; +controller_Controller_id__P23630.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__P23630.isGetter = true; -function controller_Controller_id__P496696_mk(s) { +function controller_Controller_id__P23630_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_id__P496696, depth: s.depth + 1, + parent: s, fn: controller_Controller_id__P23630, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30396,7 +31792,7 @@ function controller_Controller_id__P496696_mk(s) { -function controller_Controller_connected__P496708(s) { +function controller_Controller_connected__P23642(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30411,18 +31807,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Controller__C496689_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Controller__C23623_VT)) failedCast(r0); r0 = s.arg0.fields["_connected"]; return leaveAccessor(s, r0) default: oops() } } } -controller_Controller_connected__P496708.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__P496708.isGetter = true; +controller_Controller_connected__P23642.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__P23642.isGetter = true; -function controller_Controller_connected__P496708_mk(s) { +function controller_Controller_connected__P23642_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Controller_connected__P496708, depth: s.depth + 1, + parent: s, fn: controller_Controller_connected__P23642, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30431,7 +31827,7 @@ function controller_Controller_connected__P496708_mk(s) { -function settings_initScopes__P498662(s) { +function settings_initScopes__P25976(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30441,17 +31837,17 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.rn___508605 = undefined; - s.tmp_1 = settings_runNumber__P496591_mk(s); + s.rn___36655 = undefined; + s.tmp_1 = settings_runNumber__P23548_mk(s); s.callLocIdx = 116; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; s.tmp_0 = r0; r0 = (s.tmp_0 + 1); - s.rn___508605 = (r0); - s.tmp_0 = settings_writeNumber__P496595_mk(s); - s.tmp_0.arg0 = globals.RUN_KEY___498650; - s.tmp_0.arg1 = s.rn___508605; + s.rn___36655 = (r0); + s.tmp_0 = settings_writeNumber__P23553_mk(s); + s.tmp_0.arg0 = globals.RUN_KEY___25964; + s.tmp_0.arg1 = s.rn___36655; s.callLocIdx = 117; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; @@ -30460,8 +31856,8 @@ switch (step) { r0 = (s.tmp_1 & 2147483647); s.tmp_0 = r0; r0 = pxsim_pxtcore.seedAddRandom(s.tmp_0); - r0 = pxsim_pxtcore.seedAddRandom(s.rn___508605); - s.tmp_0 = settings_setScope__P498661_mk(s); + r0 = pxsim_pxtcore.seedAddRandom(s.rn___36655); + s.tmp_0 = settings_setScope__P25975_mk(s); r0 = pxsim_pxtcore.programName(); s.tmp_0.arg0 = r0; s.callLocIdx = 118; s.pc = 3; return s.tmp_0; @@ -30471,23 +31867,23 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_initScopes__P498662.info = {"start":1104,"length":230,"line":41,"column":4,"endLine":49,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"initScopes","argumentNames":[]} +settings_initScopes__P25976.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__P498662_mk(s) { +function settings_initScopes__P25976_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_initScopes__P498662, depth: s.depth + 1, + parent: s, fn: settings_initScopes__P25976, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - rn___508605: undefined, + rn___36655: undefined, } } -function settings_setScope__P498661(s) { +function settings_setScope__P25975(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30497,7 +31893,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.currScope___508634 = undefined; + s.currScope___36684 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; @@ -30522,19 +31918,19 @@ switch (step) { r0 = pxsim_pxtrt.panic(922); case 3: case 4: - s.tmp_0 = settings_readString__P496598_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___498651; + s.tmp_0 = settings_readString__P23556_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___25965; s.callLocIdx = 114; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.currScope___508634 = (r0); - r0 = (s.currScope___508634 != s.arg0); + s.currScope___36684 = (r0); + r0 = (s.currScope___36684 != 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__P496594_mk(s); - s.tmp_0.arg0 = globals.SCOPE_KEY___498651; + s.tmp_0 = settings_writeString__P23551_mk(s); + s.tmp_0.arg0 = globals.SCOPE_KEY___25965; s.tmp_0.arg1 = s.arg0; s.callLocIdx = 115; s.pc = 8; return s.tmp_0; case 8: @@ -30545,18 +31941,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_setScope__P498661.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__P25975.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__P498661_mk(s) { +function settings_setScope__P25975_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_setScope__P498661, depth: s.depth + 1, + parent: s, fn: settings_setScope__P25975, depth: s.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___508634: undefined, + currScope___36684: undefined, arg0: undefined, } } @@ -30564,7 +31960,7 @@ function settings_setScope__P498661_mk(s) { -function settings_readString__P496598(s) { +function settings_readString__P23556(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30574,14 +31970,14 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.buf___508655 = undefined; + s.buf___36705 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = pxsim.settings._get(s.arg0); - s.buf___508655 = (r0); - r0 = pxsim_numops_toBoolDecr(s.buf___508655); + s.buf___36705 = (r0); + r0 = pxsim_numops_toBoolDecr(s.buf___36705); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -30591,7 +31987,7 @@ switch (step) { { step = 3; continue; } { step = 2; continue; } case 1: - r0 = pxsim.BufferMethods.toString(s.buf___508655); + r0 = pxsim.BufferMethods.toString(s.buf___36705); { step = 3; continue; } case 2: r0 = undefined; @@ -30599,16 +31995,16 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_readString__P496598.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__P23556.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__P496598_mk(s) { +function settings_readString__P23556_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_readString__P496598, depth: s.depth + 1, + parent: s, fn: settings_readString__P23556, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - buf___508655: undefined, + buf___36705: undefined, arg0: undefined, } } @@ -30616,7 +32012,7 @@ function settings_readString__P496598_mk(s) { -function settings_writeString__P496594(s) { +function settings_writeString__P23551(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30631,7 +32027,7 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = settings_writeBuffer__P496593_mk(s); + s.tmp_0 = settings_writeBuffer__P23550_mk(s); s.tmp_0.arg0 = s.arg0; r0 = pxsim.control.createBufferFromUTF8(s.arg1); s.tmp_0.arg1 = r0; @@ -30642,12 +32038,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_writeString__P496594.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__P23551.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__P496594_mk(s) { +function settings_writeString__P23551_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_writeString__P496594, depth: s.depth + 1, + parent: s, fn: settings_writeString__P23551, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30658,7 +32054,7 @@ function settings_writeString__P496594_mk(s) { -function settings_runNumber__P496591(s) { +function settings_runNumber__P23548(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30668,8 +32064,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tmp_1 = settings_readNumber__P496599_mk(s); - s.tmp_1.arg0 = globals.RUN_KEY___498650; + s.tmp_1 = settings_readNumber__P23558_mk(s); + s.tmp_1.arg0 = globals.RUN_KEY___25964; s.callLocIdx = 113; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; @@ -30687,12 +32083,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -settings_runNumber__P496591.info = {"start":745,"length":75,"line":27,"column":4,"endLine":29,"endColumn":5,"fileName":"pxt_modules/settings/settings.ts","functionName":"runNumber","argumentNames":[]} +settings_runNumber__P23548.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__P496591_mk(s) { +function settings_runNumber__P23548_mk(s) { checkStack(s.depth); return { - parent: s, fn: settings_runNumber__P496591, depth: s.depth + 1, + parent: s, fn: settings_runNumber__P23548, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30703,7 +32099,7 @@ function settings_runNumber__P496591_mk(s) { -function control___screen_setupUpdate__P496530(s) { +function control___screen_setupUpdate__P23486(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30717,8 +32113,8 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - globals.__updated___498619 = (true); - globals.__update___498617 = (s.arg0); + globals.__updated___25933 = (true); + globals.__update___25931 = (s.arg0); s.tmp_0 = lambda_1_mk(s); s.tmp_0.argL = s.arg0; setupLambda(s.tmp_0, s.tmp_0.argL); @@ -30729,12 +32125,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -control___screen_setupUpdate__P496530.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__P23486.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__P496530_mk(s) { +function control___screen_setupUpdate__P23486_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_setupUpdate__P496530, depth: s.depth + 1, + parent: s, fn: control___screen_setupUpdate__P23486, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30744,7 +32140,7 @@ function control___screen_setupUpdate__P496530_mk(s) { -function control___screen_update__P496529(s) { +function control___screen_update__P23485(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30754,27 +32150,27 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - r0 = pxsim_numops_toBoolDecr(globals.__update___498617); + r0 = pxsim_numops_toBoolDecr(globals.__update___25931); if (!r0) { step = 1; continue; } s.tmp_0 = lambda_1_mk(s); - s.tmp_0.argL = globals.__update___498617; + s.tmp_0.argL = globals.__update___25931; setupLambda(s.tmp_0, s.tmp_0.argL); s.callLocIdx = 108; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; case 1: case 2: - globals.__updated___498619 = (true); + globals.__updated___25933 = (true); r0 = undefined; return leave(s, r0) default: oops() } } } -control___screen_update__P496529.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__P23485.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__P496529_mk(s) { +function control___screen_update__P23485_mk(s) { checkStack(s.depth); return { - parent: s, fn: control___screen_update__P496529, depth: s.depth + 1, + parent: s, fn: control___screen_update__P23485, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, } } @@ -30783,7 +32179,7 @@ function control___screen_update__P496529_mk(s) { -function pause__P495158(s) { +function pause__P22108(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30807,12 +32203,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -pause__P495158.info = {"start":246,"length":57,"line":7,"column":0,"endLine":9,"endColumn":1,"fileName":"pxt_modules/base/pause.ts","functionName":"pause","argumentNames":["ms"]} +pause__P22108.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__P495158_mk(s) { +function pause__P22108_mk(s) { checkStack(s.depth); return { - parent: s, fn: pause__P495158, depth: s.depth + 1, + parent: s, fn: pause__P22108, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30821,7 +32217,7 @@ function pause__P495158_mk(s) { -function sprites_SpriteSet_toString__P496897(s) { +function sprites_SpriteSet_toString__P23948(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30836,7 +32232,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C496886_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C23937_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_1 = r0; r0 = s.arg0.fields["_sprites"]; @@ -30858,12 +32254,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteSet_toString__P496897.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__P23948.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__P496897_mk(s) { +function sprites_SpriteSet_toString__P23948_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_toString__P496897, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_toString__P23948, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -30877,7 +32273,7 @@ function sprites_SpriteSet_toString__P496897_mk(s) { -function sprites_SpriteSet_length__P496889(s) { +function sprites_SpriteSet_length__P23940(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30892,20 +32288,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteSet__C496886_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteSet__C23937_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__P496889.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__P496889.isGetter = true; +sprites_SpriteSet_length__P23940.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__P23940.isGetter = true; -function sprites_SpriteSet_length__P496889_mk(s) { +function sprites_SpriteSet_length__P23940_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteSet_length__P496889, depth: s.depth + 1, + parent: s, fn: sprites_SpriteSet_length__P23940, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -30915,7 +32311,7 @@ function sprites_SpriteSet_length__P496889_mk(s) { -function music_Melody_toString__P496363(s) { +function music_Melody_toString__P23316(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30930,17 +32326,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, music_Melody__C496354_VT)) failedCast(r0); + if (!checkSubtype(r0, music_Melody__C23307_VT)) failedCast(r0); r0 = s.arg0.fields["_text"]; return leave(s, r0) default: oops() } } } -music_Melody_toString__P496363.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__P23316.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__P496363_mk(s) { +function music_Melody_toString__P23316_mk(s) { checkStack(s.depth); return { - parent: s, fn: music_Melody_toString__P496363, depth: s.depth + 1, + parent: s, fn: music_Melody_toString__P23316, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -30949,7 +32345,7 @@ function music_Melody_toString__P496363_mk(s) { -function sprites_SpriteMap_toString__P496877(s) { +function sprites_SpriteMap_toString__P23928(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -30964,7 +32360,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C496869_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; r0 = s.arg0.fields["buckets"]; @@ -30984,11 +32380,11 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, " buckets, "); s.tmp_1 = r0; - s.tmp_10 = helpers_arrayFilter__P494862_mk(s); + s.tmp_10 = helpers_arrayFilter__P21805_mk(s); r0 = s.arg0.fields["buckets"]; s.tmp_10.arg0 = r0; - s.tmp_10.arg1 = inline__P508706; - s.callLocIdx = 424; s.pc = 2; return s.tmp_10; + s.tmp_10.arg1 = length_inline__P36756; + s.callLocIdx = 526; s.pc = 2; return s.tmp_10; case 2: r0 = s.retval; s.tmp_9 = r0; @@ -31009,12 +32405,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_toString__P496877.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__P23928.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__P496877_mk(s) { +function sprites_SpriteMap_toString__P23928_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_toString__P496877, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_toString__P23928, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31034,7 +32430,7 @@ function sprites_SpriteMap_toString__P496877_mk(s) { -function inline__P508706(s) { +function length_inline__P36756(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31058,12 +32454,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P508706.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__P36756.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__P508706_mk(s) { +function length_inline__P36756_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P508706, depth: s.depth + 1, + parent: s, fn: length_inline__P36756, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31075,7 +32471,7 @@ function inline__P508706_mk(s) { -function ArcadePhysicsEngine_moveSprite__P496964(s) { +function ArcadePhysicsEngine_moveSprite__P24015(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31085,9 +32481,9 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___508738 = undefined; - s.maxDist___508746 = undefined; - s.ms___508766 = undefined; + s.tm___36788 = undefined; + s.maxDist___36796 = undefined; + s.ms___36816 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31096,7 +32492,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -31115,19 +32511,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__P497302_mk(s); - s.callLocIdx = 630; s.pc = 13; return s.tmp_0; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 732; s.pc = 13; return s.tmp_0; case 13: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___508738 = (r0); - s.tmp_0 = r0 = s.tm___508738; + s.tm___36788 = (r0); + s.tmp_0 = r0 = s.tm___36788; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 1; continue; } r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.tm___508738.fields["_map"]; + r0 = s.tm___36788.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -31146,41 +32542,41 @@ switch (step) { r0 = (s.tmp_6 + 128); s.tmp_7 = r0; r0 = (s.tmp_7 >> 8); - s.maxDist___508746 = (r0); - s.tmp_2 = Math_abs__P494879_mk(s); + s.maxDist___36796 = (r0); + s.tmp_2 = Math_abs__P21823_mk(s); r0 = (s.arg2 + 128); s.tmp_3 = r0; r0 = (s.tmp_3 >> 8); s.tmp_2.arg0 = r0; - s.callLocIdx = 634; s.pc = 14; return s.tmp_2; + s.callLocIdx = 736; s.pc = 14; return s.tmp_2; case 14: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.maxDist___508746); + r0 = (s.tmp_1 <= s.maxDist___36796); 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__P494879_mk(s); + s.tmp_5 = Math_abs__P21823_mk(s); r0 = (s.arg3 + 128); s.tmp_6 = r0; r0 = (s.tmp_6 >> 8); s.tmp_5.arg0 = r0; - s.callLocIdx = 636; s.pc = 15; return s.tmp_5; + s.callLocIdx = 738; s.pc = 15; return s.tmp_5; case 15: r0 = s.retval; s.tmp_4 = r0; - r0 = (s.tmp_4 <= s.maxDist___508746); + r0 = (s.tmp_4 <= s.maxDist___36796); 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__C496948_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C23999_VT); s.tmp_8 = r0; - s.tmp_9 = MovingSprite_constructor__P496949_mk(s); + s.tmp_9 = MovingSprite_constructor__P24000_mk(s); s.tmp_9.arg0 = s.tmp_8; s.tmp_9.arg1 = s.arg1; r0 = s.arg1.fields["_vx"]; @@ -31191,23 +32587,23 @@ switch (step) { s.tmp_9.arg5 = s.arg3; s.tmp_9.arg6 = s.arg2; s.tmp_9.arg7 = s.arg3; - s.callLocIdx = 637; s.pc = 16; return s.tmp_9; + s.callLocIdx = 739; s.pc = 16; return s.tmp_9; case 16: r0 = s.retval; - s.ms___508766 = (s.tmp_8); - s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P498749_mk(s); + s.ms___36816 = (s.tmp_8); + s.tmp_0 = ArcadePhysicsEngine_tilemapCollisions__P26072_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.ms___508766; - s.tmp_0.arg2 = s.tm___508738; - s.callLocIdx = 638; s.pc = 17; return s.tmp_0; + s.tmp_0.arg1 = s.ms___36816; + s.tmp_0.arg2 = s.tm___36788; + s.callLocIdx = 740; s.pc = 17; return s.tmp_0; case 17: r0 = s.retval; { step = 10; continue; } case 5: - s.tmp_1 = tiles_TileMap_isOnWall__P497115_mk(s); - s.tmp_1.arg0 = s.tm___508738; + s.tmp_1 = tiles_TileMap_isOnWall__P24184_mk(s); + s.tmp_1.arg0 = s.tm___36788; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 639; s.pc = 18; return s.tmp_1; + s.callLocIdx = 741; s.pc = 18; return s.tmp_1; case 18: r0 = s.retval; s.tmp_0 = r0; @@ -31216,11 +32612,11 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P498751_mk(s); + s.tmp_4 = ArcadePhysicsEngine_canResolveClipping__P26074_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = s.arg1; - s.tmp_4.arg2 = s.tm___508738; - s.callLocIdx = 640; s.pc = 19; return s.tmp_4; + s.tmp_4.arg2 = s.tm___36788; + s.callLocIdx = 742; s.pc = 19; return s.tmp_4; case 19: r0 = s.retval; s.tmp_3 = r0; @@ -31254,12 +32650,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_moveSprite__P496964.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__P24015.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__P496964_mk(s) { +function ArcadePhysicsEngine_moveSprite__P24015_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_moveSprite__P496964, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_moveSprite__P24015, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31271,9 +32667,9 @@ function ArcadePhysicsEngine_moveSprite__P496964_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - tm___508738: undefined, - maxDist___508746: undefined, - ms___508766: undefined, + tm___36788: undefined, + maxDist___36796: undefined, + ms___36816: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31284,7 +32680,7 @@ function ArcadePhysicsEngine_moveSprite__P496964_mk(s) { -function ArcadePhysicsEngine_canResolveClipping__P498751(s) { +function ArcadePhysicsEngine_canResolveClipping__P26074(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31294,19 +32690,19 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___508811 = undefined; - s.sz___508814 = undefined; - s.maxMove___508819 = undefined; - s.origY___508821 = undefined; - s.origX___508824 = undefined; - s.l___508827 = undefined; - s.r___508832 = undefined; - s.t___508837 = undefined; - s.b___508842 = undefined; - s.offset___508847 = undefined; - s.offset___508872 = undefined; - s.offset___508903 = undefined; - s.offset___508928 = undefined; + s.hbox___36861 = undefined; + s.sz___36864 = undefined; + s.maxMove___36869 = undefined; + s.origY___36871 = undefined; + s.origX___36874 = undefined; + s.l___36877 = undefined; + s.r___36882 = undefined; + s.t___36887 = undefined; + s.b___36892 = undefined; + s.offset___36897 = undefined; + s.offset___36922 = undefined; + s.offset___36953 = undefined; + s.offset___36978 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31314,7 +32710,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = s.arg1.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); @@ -31325,91 +32721,91 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_4 = Sprite_setHitbox__P496830_mk(s); + s.tmp_4 = Sprite_setHitbox__P23876_mk(s); s.tmp_4.arg0 = s.arg1; - s.callLocIdx = 642; s.pc = 20; return s.tmp_4; + s.callLocIdx = 744; s.pc = 20; return s.tmp_4; case 20: r0 = s.retval; case 1: case 2: r0 = s.arg1.fields["_hitbox"]; - s.hbox___508811 = (r0); + s.hbox___36861 = (r0); r0 = s.arg2.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.sz___508814 = (r0); - s.tmp_0 = ArcadePhysicsEngine_maxStep__P496956_mk(s); + s.sz___36864 = (r0); + s.tmp_0 = ArcadePhysicsEngine_maxStep__P24007_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 644; s.pc = 21; return s.tmp_0; + s.callLocIdx = 746; s.pc = 21; return s.tmp_0; case 21: r0 = s.retval; - s.maxMove___508819 = (r0); + s.maxMove___36869 = (r0); r0 = s.arg1.fields["_y"]; - s.origY___508821 = (r0); + s.origY___36871 = (r0); r0 = s.arg1.fields["_x"]; - s.origX___508824 = (r0); - s.tmp_1 = game_Hitbox_left__P496732_mk(s); - s.tmp_1.arg0 = s.hbox___508811; - s.callLocIdx = 645; s.pc = 22; return s.tmp_1; + s.origX___36874 = (r0); + s.tmp_1 = game_Hitbox_left__P23701_mk(s); + s.tmp_1.arg0 = s.hbox___36861; + s.callLocIdx = 747; 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___508827 = (r0); - s.tmp_1 = game_Hitbox_right__P496734_mk(s); - s.tmp_1.arg0 = s.hbox___508811; - s.callLocIdx = 647; s.pc = 23; return s.tmp_1; + s.l___36877 = (r0); + s.tmp_1 = game_Hitbox_right__P23703_mk(s); + s.tmp_1.arg0 = s.hbox___36861; + s.callLocIdx = 749; 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___508832 = (r0); - s.tmp_1 = game_Hitbox_top__P496733_mk(s); - s.tmp_1.arg0 = s.hbox___508811; - s.callLocIdx = 649; s.pc = 24; return s.tmp_1; + s.r___36882 = (r0); + s.tmp_1 = game_Hitbox_top__P23702_mk(s); + s.tmp_1.arg0 = s.hbox___36861; + s.callLocIdx = 751; 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___508837 = (r0); - s.tmp_1 = game_Hitbox_bottom__P496735_mk(s); - s.tmp_1.arg0 = s.hbox___508811; - s.callLocIdx = 651; s.pc = 25; return s.tmp_1; + s.t___36887 = (r0); + s.tmp_1 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_1.arg0 = s.hbox___36861; + s.callLocIdx = 753; 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___508842 = (r0); - r0 = (s.b___508842 + 1); + s.b___36892 = (r0); + r0 = (s.b___36892 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___508814); - s.offset___508847 = (r0); - r0 = (s.offset___508847 <= s.maxMove___508819); + r0 = (s.tmp_0 % s.sz___36864); + s.offset___36897 = (r0); + r0 = (s.offset___36897 <= s.maxMove___36869); 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___508847 * 256); + r0 = (s.offset___36897 * 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__P497115_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P24184_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 655; s.pc = 26; return s.tmp_3; + s.callLocIdx = 757; s.pc = 26; return s.tmp_3; case 26: r0 = s.retval; s.tmp_2 = r0; @@ -31423,38 +32819,38 @@ switch (step) { { step = 19; continue; } { step = 4; continue; } case 3: - r0 = (s.arg1).fields["_y"] = (s.origY___508821); + r0 = (s.arg1).fields["_y"] = (s.origY___36871); case 4: case 5: case 6: - r0 = (s.t___508837 / s.sz___508814); + r0 = (s.t___36887 / s.sz___36864); 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___508814); + r0 = (s.tmp_1 * s.sz___36864); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.t___508837); - s.offset___508872 = (r0); - r0 = (s.offset___508872 <= s.maxMove___508819); + r0 = (s.tmp_0 - s.t___36887); + s.offset___36922 = (r0); + r0 = (s.offset___36922 <= s.maxMove___36869); 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___508872 * 256); + r0 = (s.offset___36922 * 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__P497115_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P24184_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 658; s.pc = 27; return s.tmp_3; + s.callLocIdx = 760; s.pc = 27; return s.tmp_3; case 27: r0 = s.retval; s.tmp_2 = r0; @@ -31468,32 +32864,32 @@ switch (step) { { step = 19; continue; } { step = 8; continue; } case 7: - r0 = (s.arg1).fields["_y"] = (s.origY___508821); + r0 = (s.arg1).fields["_y"] = (s.origY___36871); case 8: case 9: case 10: - r0 = (s.r___508832 + 1); + r0 = (s.r___36882 + 1); s.tmp_0 = r0; - r0 = (s.tmp_0 % s.sz___508814); - s.offset___508903 = (r0); - r0 = (s.offset___508903 <= s.maxMove___508819); + r0 = (s.tmp_0 % s.sz___36864); + s.offset___36953 = (r0); + r0 = (s.offset___36953 <= s.maxMove___36869); 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___508903 * 256); + r0 = (s.offset___36953 * 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__P497115_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P24184_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 661; s.pc = 28; return s.tmp_3; + s.callLocIdx = 763; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -31507,38 +32903,38 @@ switch (step) { { step = 19; continue; } { step = 12; continue; } case 11: - r0 = (s.arg1).fields["_x"] = (s.origX___508824); + r0 = (s.arg1).fields["_x"] = (s.origX___36874); case 12: case 13: case 14: - r0 = (s.l___508827 / s.sz___508814); + r0 = (s.l___36877 / s.sz___36864); 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___508814); + r0 = (s.tmp_1 * s.sz___36864); s.tmp_0 = r0; - r0 = (s.tmp_0 - s.l___508827); - s.offset___508928 = (r0); - r0 = (s.offset___508928 <= s.maxMove___508819); + r0 = (s.tmp_0 - s.l___36877); + s.offset___36978 = (r0); + r0 = (s.offset___36978 <= s.maxMove___36869); 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___508928 * 256); + r0 = (s.offset___36978 * 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__P497115_mk(s); + s.tmp_3 = tiles_TileMap_isOnWall__P24184_mk(s); s.tmp_3.arg0 = s.arg2; s.tmp_3.arg1 = s.arg1; - s.callLocIdx = 664; s.pc = 29; return s.tmp_3; + s.callLocIdx = 766; s.pc = 29; return s.tmp_3; case 29: r0 = s.retval; s.tmp_2 = r0; @@ -31552,7 +32948,7 @@ switch (step) { { step = 19; continue; } { step = 16; continue; } case 15: - r0 = (s.arg1).fields["_x"] = (s.origX___508824); + r0 = (s.arg1).fields["_x"] = (s.origX___36874); case 16: case 17: case 18: @@ -31561,12 +32957,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_canResolveClipping__P498751.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__P26074.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__P498751_mk(s) { +function ArcadePhysicsEngine_canResolveClipping__P26074_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P498751, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_canResolveClipping__P26074, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31574,19 +32970,19 @@ function ArcadePhysicsEngine_canResolveClipping__P498751_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - hbox___508811: undefined, - sz___508814: undefined, - maxMove___508819: undefined, - origY___508821: undefined, - origX___508824: undefined, - l___508827: undefined, - r___508832: undefined, - t___508837: undefined, - b___508842: undefined, - offset___508847: undefined, - offset___508872: undefined, - offset___508903: undefined, - offset___508928: undefined, + hbox___36861: undefined, + sz___36864: undefined, + maxMove___36869: undefined, + origY___36871: undefined, + origX___36874: undefined, + l___36877: undefined, + r___36882: undefined, + t___36887: undefined, + b___36892: undefined, + offset___36897: undefined, + offset___36922: undefined, + offset___36953: undefined, + offset___36978: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -31596,7 +32992,7 @@ function ArcadePhysicsEngine_canResolveClipping__P498751_mk(s) { -function Sprite_isStatic__P496831(s) { +function Sprite_isStatic__P23877(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31611,19 +33007,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P496831.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__P23877.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__P496831_mk(s) { +function Sprite_isStatic__P23877_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isStatic__P496831, depth: s.depth + 1, + parent: s, fn: Sprite_isStatic__P23877, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -31633,7 +33029,7 @@ function Sprite_isStatic__P496831_mk(s) { -function game_Hitbox_bottom__P496735(s) { +function game_Hitbox_bottom__P23704(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31648,12 +33044,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C496725_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C23693_VT)) failedCast(r0); r0 = s.arg0.fields["height"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_top__P496733_mk(s); + s.tmp_3 = game_Hitbox_top__P23702_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 203; s.pc = 1; return s.tmp_3; + s.callLocIdx = 214; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -31663,13 +33059,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_bottom__P496735.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__P496735.isGetter = true; +game_Hitbox_bottom__P23704.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__P23704.isGetter = true; -function game_Hitbox_bottom__P496735_mk(s) { +function game_Hitbox_bottom__P23704_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_bottom__P496735, depth: s.depth + 1, + parent: s, fn: game_Hitbox_bottom__P23704, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31682,7 +33078,7 @@ function game_Hitbox_bottom__P496735_mk(s) { -function game_Hitbox_right__P496734(s) { +function game_Hitbox_right__P23703(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31697,12 +33093,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C496725_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C23693_VT)) failedCast(r0); r0 = s.arg0.fields["width"]; s.tmp_1 = r0; - s.tmp_3 = game_Hitbox_left__P496732_mk(s); + s.tmp_3 = game_Hitbox_left__P23701_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 200; s.pc = 1; return s.tmp_3; + s.callLocIdx = 211; s.pc = 1; return s.tmp_3; case 1: r0 = s.retval; s.tmp_2 = r0; @@ -31712,13 +33108,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_right__P496734.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__P496734.isGetter = true; +game_Hitbox_right__P23703.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__P23703.isGetter = true; -function game_Hitbox_right__P496734_mk(s) { +function game_Hitbox_right__P23703_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_right__P496734, depth: s.depth + 1, + parent: s, fn: game_Hitbox_right__P23703, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -31731,7 +33127,7 @@ function game_Hitbox_right__P496734_mk(s) { -function game_Hitbox_top__P496733(s) { +function game_Hitbox_top__P23702(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31746,26 +33142,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C496725_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C23693_VT)) failedCast(r0); r0 = s.arg0.fields["oy"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; r0 = r0.fields["_y"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -256); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_top__P496733.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__P496733.isGetter = true; +game_Hitbox_top__P23702.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__P23702.isGetter = true; -function game_Hitbox_top__P496733_mk(s) { +function game_Hitbox_top__P23702_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_top__P496733, depth: s.depth + 1, + parent: s, fn: game_Hitbox_top__P23702, 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, } } @@ -31773,7 +33172,7 @@ function game_Hitbox_top__P496733_mk(s) { -function game_Hitbox_left__P496732(s) { +function game_Hitbox_left__P23701(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31788,26 +33187,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, game_Hitbox__C496725_VT)) failedCast(r0); + if (!checkSubtype(r0, game_Hitbox__C23693_VT)) failedCast(r0); r0 = s.arg0.fields["ox"]; s.tmp_0 = r0; r0 = s.arg0.fields["parent"]; r0 = r0.fields["_x"]; + s.tmp_2 = r0; + r0 = (s.tmp_2 & -256); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leaveAccessor(s, r0) default: oops() } } } -game_Hitbox_left__P496732.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__P496732.isGetter = true; +game_Hitbox_left__P23701.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__P23701.isGetter = true; -function game_Hitbox_left__P496732_mk(s) { +function game_Hitbox_left__P23701_mk(s) { checkStack(s.depth); return { - parent: s, fn: game_Hitbox_left__P496732, depth: s.depth + 1, + parent: s, fn: game_Hitbox_left__P23701, 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, } } @@ -31815,7 +33217,7 @@ function game_Hitbox_left__P496732_mk(s) { -function ArcadePhysicsEngine_tilemapCollisions__P498749(s) { +function ArcadePhysicsEngine_tilemapCollisions__P26072(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -31825,37 +33227,37 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.s___509096 = undefined; - s.hbox___509121 = undefined; - s.tileScale___509124 = undefined; - s.tileSize___509127 = undefined; - s.xDiff___509131 = undefined; - s.yDiff___509138 = undefined; - s.right___509154 = undefined; - s.x0___509158 = undefined; - s.collidedTiles___509173 = undefined; - s.y___509175 = undefined; - s.y0___509189 = undefined; - s.obstacle___509205 = undefined; - s.collisionDirection___509232 = undefined; - s.tile___509258 = undefined; - s.unnamed1748___U14 = undefined; - s.unnamed1749___U15 = undefined; - s.down___509336 = undefined; - s.y0___509340 = undefined; - s.collidedTiles___509355 = undefined; - s.x___509357 = undefined; - s.x0___509367 = undefined; - s.obstacle___509381 = undefined; - s.collisionDirection___509408 = undefined; - s.tile___509434 = undefined; - s.unnamed1750___U24 = undefined; - s.unnamed1751___U25 = undefined; - s.overlappedTiles___509515 = undefined; - s.x___509517 = undefined; - s.x0___509527 = undefined; - s.y___509537 = undefined; - s.y0___509547 = undefined; + s.s___37148 = undefined; + s.hbox___37173 = undefined; + s.tileScale___37176 = undefined; + s.tileSize___37179 = undefined; + s.xDiff___37183 = undefined; + s.yDiff___37190 = undefined; + s.right___37206 = undefined; + s.x0___37210 = undefined; + s.collidedTiles___37225 = undefined; + s.y___37227 = undefined; + s.y0___37241 = undefined; + s.obstacle___37257 = undefined; + s.collisionDirection___37284 = undefined; + s.tile___37310 = undefined; + s.unnamed172___U14 = undefined; + s.unnamed173___U15 = undefined; + s.down___37394 = undefined; + s.y0___37398 = undefined; + s.collidedTiles___37413 = undefined; + s.x___37415 = undefined; + s.x0___37425 = undefined; + s.obstacle___37439 = undefined; + s.collisionDirection___37466 = undefined; + s.tile___37492 = undefined; + s.unnamed174___U24 = undefined; + s.unnamed175___U25 = undefined; + s.overlappedTiles___37579 = undefined; + s.x___37581 = undefined; + s.x0___37591 = undefined; + s.y___37601 = undefined; + s.y0___37611 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -31863,20 +33265,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = s.arg1.fields["sprite"]; - s.s___509096 = (r0); - r0 = s.s___509096.fields["flags"]; + s.s___37148 = (r0); + r0 = s.s___37148.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__P497115_mk(s); + s.tmp_5 = tiles_TileMap_isOnWall__P24184_mk(s); s.tmp_5.arg0 = s.arg2; - s.tmp_5.arg1 = s.s___509096; - s.callLocIdx = 525; s.pc = 89; return s.tmp_5; - case 89: + s.tmp_5.arg1 = s.s___37148; + s.callLocIdx = 627; s.pc = 93; return s.tmp_5; + case 93: r0 = s.retval; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); @@ -31885,7 +33287,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___509096; + s.tmp_6 = r0 = s.s___37148; r0 = s.tmp_6.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & -257); @@ -31895,7 +33297,7 @@ switch (step) { case 2: case 3: case 4: - r0 = s.s___509096.fields["_image"]; + r0 = s.s___37148.fields["_image"]; s.tmp_3 = r0; r0 = pxsim_ImageMethods.isStatic(s.tmp_3); s.tmp_2 = r0; @@ -31905,32 +33307,32 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_4 = Sprite_setHitbox__P496830_mk(s); - s.tmp_4.arg0 = s.s___509096; - s.callLocIdx = 527; s.pc = 90; return s.tmp_4; - case 90: + s.tmp_4 = Sprite_setHitbox__P23876_mk(s); + s.tmp_4.arg0 = s.s___37148; + s.callLocIdx = 629; s.pc = 94; return s.tmp_4; + case 94: r0 = s.retval; case 5: case 6: - r0 = s.s___509096.fields["_hitbox"]; - s.hbox___509121 = (r0); + r0 = s.s___37148.fields["_hitbox"]; + s.hbox___37173 = (r0); r0 = s.arg2.fields["_scale"]; - s.tileScale___509124 = (r0); - r0 = (1 << s.tileScale___509124); - s.tileSize___509127 = (r0); - r0 = s.s___509096.fields["_x"]; + s.tileScale___37176 = (r0); + r0 = (1 << s.tileScale___37176); + s.tileSize___37179 = (r0); + r0 = s.s___37148.fields["_x"]; s.tmp_0 = r0; - r0 = s.s___509096.fields["_lastX"]; + r0 = s.s___37148.fields["_lastX"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.xDiff___509131 = (r0); - r0 = s.s___509096.fields["_y"]; + s.xDiff___37183 = (r0); + r0 = s.s___37148.fields["_y"]; s.tmp_0 = r0; - r0 = s.s___509096.fields["_lastY"]; + r0 = s.s___37148.fields["_lastY"]; s.tmp_1 = r0; r0 = (s.tmp_0 - s.tmp_1); - s.yDiff___509138 = (r0); - r0 = s.s___509096.fields["flags"]; + s.yDiff___37190 = (r0); + r0 = s.s___37148.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 2818); s.tmp_2 = r0; @@ -31939,28 +33341,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___509131 !== 0); + if (!r0) { step = 79; continue; } + r0 = (s.xDiff___37183 !== 0); s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); - if (!r0) { step = 39; continue; } - r0 = (s.xDiff___509131 > 0); - s.right___509154 = (r0); - r0 = pxsim_numops_toBoolDecr(s.right___509154); + if (!r0) { step = 41; continue; } + r0 = (s.xDiff___37183 > 0); + s.right___37206 = (r0); + r0 = pxsim_numops_toBoolDecr(s.right___37206); if (!r0) { step = 7; continue; } - s.tmp_1 = game_Hitbox_right__P496734_mk(s); - s.tmp_1.arg0 = s.hbox___509121; - s.callLocIdx = 531; s.pc = 91; return s.tmp_1; - case 91: + s.tmp_1 = game_Hitbox_right__P23703_mk(s); + s.tmp_1.arg0 = s.hbox___37173; + s.callLocIdx = 633; 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__P496732_mk(s); - s.tmp_3.arg0 = s.hbox___509121; - s.callLocIdx = 533; s.pc = 92; return s.tmp_3; - case 92: + s.tmp_3 = game_Hitbox_left__P23701_mk(s); + s.tmp_3.arg0 = s.hbox___37173; + s.callLocIdx = 635; s.pc = 96; return s.tmp_3; + case 96: r0 = s.retval; s.tmp_2 = r0; r0 = (s.tmp_2 - 256); @@ -31969,30 +33371,30 @@ switch (step) { s.tmp_4 = r0; r0 = (s.tmp_4 + 128); s.tmp_5 = r0; - r0 = (s.tileScale___509124 + 8); + r0 = (s.tileScale___37176 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.x0___509158 = (r0); + s.x0___37210 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___509173 = (r0); - s.tmp_1 = game_Hitbox_top__P496733_mk(s); - s.tmp_1.arg0 = s.hbox___509121; - s.callLocIdx = 537; s.pc = 93; return s.tmp_1; - case 93: + s.collidedTiles___37225 = (r0); + s.tmp_1 = game_Hitbox_top__P23702_mk(s); + s.tmp_1.arg0 = s.hbox___37173; + s.callLocIdx = 639; s.pc = 97; return s.tmp_1; + case 97: r0 = s.retval; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.yDiff___509138); - s.y___509175 = (r0); + r0 = (s.tmp_0 - s.yDiff___37190); + s.y___37227 = (r0); case 9: - s.tmp_1 = r0 = s.y___509175; - s.tmp_3 = r0 = s.tileSize___509127; - s.tmp_6 = game_Hitbox_bottom__P496735_mk(s); - s.tmp_6.arg0 = s.hbox___509121; - s.callLocIdx = 539; s.pc = 94; return s.tmp_6; - case 94: + s.tmp_1 = r0 = s.y___37227; + s.tmp_3 = r0 = s.tileSize___37179; + s.tmp_6 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_6.arg0 = s.hbox___37173; + s.callLocIdx = 641; s.pc = 98; return s.tmp_6; + case 98: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.yDiff___509138); + r0 = (s.tmp_5 - s.yDiff___37190); s.tmp_4 = r0; r0 = (s.tmp_3 << 8); s.tmp_7 = r0; @@ -32002,52 +33404,52 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - s.tmp_10 = Fx_min__P494917_mk(s); - s.tmp_10.arg0 = s.y___509175; - s.tmp_12 = game_Hitbox_bottom__P496735_mk(s); - s.tmp_12.arg0 = s.hbox___509121; - s.callLocIdx = 542; s.pc = 96; return s.tmp_12; - case 96: + s.tmp_10 = Fx_min__P21861_mk(s); + s.tmp_10.arg0 = s.y___37227; + s.tmp_12 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_12.arg0 = s.hbox___37173; + s.callLocIdx = 644; s.pc = 100; return s.tmp_12; + case 100: r0 = s.retval; s.tmp_11 = r0; - r0 = (s.tmp_11 - s.yDiff___509138); + r0 = (s.tmp_11 - s.yDiff___37190); s.tmp_10.arg1 = r0; - s.callLocIdx = 544; s.pc = 95; return s.tmp_10; - case 95: + s.callLocIdx = 646; 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___509124 + 8); + r0 = (s.tileScale___37176 + 8); s.tmp_13 = r0; r0 = (s.tmp_8 >> s.tmp_13); - s.y0___509189 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P497113_mk(s); + s.y0___37241 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P24182_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___509158; - s.tmp_1.arg2 = s.y0___509189; - s.callLocIdx = 547; s.pc = 97; return s.tmp_1; - case 97: + s.tmp_1.arg1 = s.x0___37210; + s.tmp_1.arg2 = s.y0___37241; + s.callLocIdx = 649; 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__P497114_mk(s); + s.tmp_2 = tiles_TileMap_getObstacle__P24183_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___509158; - s.tmp_2.arg2 = s.y0___509189; - s.callLocIdx = 548; s.pc = 98; return s.tmp_2; - case 98: + s.tmp_2.arg1 = s.x0___37210; + s.tmp_2.arg2 = s.y0___37241; + s.callLocIdx = 650; s.pc = 102; return s.tmp_2; + case 102: r0 = s.retval; - s.obstacle___509205 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P509213); + s.obstacle___37257 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P37265); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___509205); - s.tmp_4 = helpers_arraySome__P494859_mk(s); - s.tmp_4.arg0 = s.collidedTiles___509173; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___37257); + s.tmp_4 = helpers_arraySome__P21802_mk(s); + s.tmp_4.arg0 = s.collidedTiles___37225; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 549; s.pc = 99; return s.tmp_4; - case 99: + s.callLocIdx = 651; s.pc = 103; return s.tmp_4; + case 103: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -32056,22 +33458,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___509173, s.obstacle___509205); + r0 = pxsim_Array__push(s.collidedTiles___37225, s.obstacle___37257); case 10: case 11: case 12: case 13: - r0 = (s.tileSize___509127 << 8); + r0 = (s.tileSize___37179 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___509175); - s.y___509175 = (r0); + r0 = (s.tmp_0 + s.y___37227); + s.y___37227 = (r0); { step = 9; continue; } case 14: - r0 = pxsim_Array__length(s.collidedTiles___509173); + r0 = pxsim_Array__length(s.collidedTiles___37225); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 37; continue; } - r0 = pxsim_numops_toBoolDecr(s.right___509154); + if (!r0) { step = 39; continue; } + r0 = pxsim_numops_toBoolDecr(s.right___37206); if (!r0) { step = 15; continue; } r0 = 2; { step = 16; continue; } @@ -32080,23 +33482,23 @@ switch (step) { case 16: // jmp value (already in r0) s.tmp_1 = r0; - s.collisionDirection___509232 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.right___509154); + s.collisionDirection___37284 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.right___37206); if (!r0) { step = 17; continue; } - r0 = (s.x0___509158 << s.tileScale___509124); + r0 = (s.x0___37210 << s.tileScale___37176); 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___509121.fields["width"]; + r0 = s.hbox___37173.fields["width"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); { step = 18; continue; } case 17: - r0 = (s.x0___509158 + 1); + r0 = (s.x0___37210 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___509124); + r0 = (s.tmp_5 << s.tileScale___37176); s.tmp_4 = r0; r0 = (s.tmp_4 * 256); s.tmp_6 = r0; @@ -32104,113 +33506,125 @@ switch (step) { case 18: // jmp value (already in r0) s.tmp_7 = r0; - s.tmp_8 = r0 = s.s___509096; - r0 = s.hbox___509121.fields["ox"]; + s.tmp_8 = r0 = s.s___37148; + r0 = s.hbox___37173.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___509258 = (undefined); - s.unnamed1748___U14 = (s.collidedTiles___509173); - s.unnamed1749___U15 = (0); + s.tile___37310 = (undefined); + s.unnamed172___U14 = (s.collidedTiles___37225); + s.unnamed173___U15 = (0); case 19: - s.tmp_0 = r0 = s.unnamed1749___U15; - r0 = pxsim_Array__length(s.unnamed1748___U14); + s.tmp_0 = r0 = s.unnamed173___U15; + r0 = pxsim_Array__length(s.unnamed172___U14); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); + if (!r0) { step = 22; continue; } + r0 = pxsim_Array__getAt(s.unnamed172___U14, s.unnamed173___U15); + s.tile___37310 = (r0); + r0 = s.s___37148.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.unnamed1748___U14, s.unnamed1749___U15); - s.tile___509258 = (r0); - s.tmp_2 = Sprite_registerObstacle__P496860_mk(s); - s.tmp_2.arg0 = s.s___509096; - s.tmp_2.arg1 = s.collisionDirection___509232; - s.tmp_2.arg2 = s.tile___509258; - s.tmp_2.arg3 = s.arg2; - s.callLocIdx = 555; s.pc = 100; return s.tmp_2; - case 100: + s.tmp_6 = Sprite_registerObstacle__P23908_mk(s); + s.tmp_6.arg0 = s.s___37148; + s.tmp_6.arg1 = s.collisionDirection___37284; + s.tmp_6.arg2 = s.tile___37310; + s.tmp_6.arg3 = s.arg2; + s.callLocIdx = 657; s.pc = 104; return s.tmp_6; + case 104: r0 = s.retval; - r0 = (s.unnamed1749___U15 + 1); - s.unnamed1749___U15 = (r0); - { step = 19; continue; } case 20: - s.unnamed1748___U14 = (undefined); - r0 = s.s___509096.fields["flags"]; + case 21: + r0 = (s.unnamed173___U15 + 1); + s.unnamed173___U15 = (r0); + { step = 19; continue; } + case 22: + s.unnamed172___U14 = (undefined); + r0 = s.s___37148.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__P496862_mk(s); - s.tmp_2.arg0 = s.s___509096; + if (!r0) { step = 23; continue; } + s.tmp_2 = Sprite_destroy__P23910_mk(s); + s.tmp_2.arg0 = s.s___37148; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 556; s.pc = 101; return s.tmp_2; - case 101: + s.callLocIdx = 658; s.pc = 105; return s.tmp_2; + case 105: r0 = s.retval; - { step = 36; continue; } - case 21: - r0 = s.s___509096.fields["_vx"]; + { step = 38; continue; } + case 23: + r0 = s.s___37148.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___509096.fields["flags"]; + if (!r0) { step = 34; continue; } + r0 = s.s___37148.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___509154); + if (!r0) { step = 32; continue; } + r0 = pxsim_numops_toBoolDecr(s.right___37206); 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__P496802_mk(s); - s.tmp_8.arg0 = s.s___509096; - s.callLocIdx = 557; s.pc = 102; return s.tmp_8; - case 102: + { step = 25; continue; } + case 24: + s.tmp_8 = Sprite_vx__P23840_mk(s); + s.tmp_8.arg0 = s.s___37148; + s.callLocIdx = 659; 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___509154; + { step = 29; continue; } + case 26: + s.tmp_10 = r0 = s.right___37206; 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__P496802_mk(s); - s.tmp_12.arg0 = s.s___509096; - s.callLocIdx = 558; s.pc = 103; return s.tmp_12; - case 103: + { step = 28; continue; } + case 27: + s.tmp_12 = Sprite_vx__P23840_mk(s); + s.tmp_12.arg0 = s.s___37148; + s.callLocIdx = 660; 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___509096; - r0 = s.s___509096.fields["_vx"]; + if (!r0) { step = 30; continue; } + s.tmp_15 = r0 = s.s___37148; + r0 = s.s___37148.fields["_vx"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -32227,98 +33641,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___509096).fields["_vx"] = (0); case 31: - { step = 35; continue; } + { step = 33; continue; } case 32: - s.tmp_2 = Math_sign__P494880_mk(s); - r0 = s.s___509096.fields["_vx"]; + r0 = (s.arg1).fields["dx"] = (0); + r0 = (s.s___37148).fields["_vx"] = (0); + case 33: + { step = 37; continue; } + case 34: + s.tmp_2 = Math_sign__P21824_mk(s); + r0 = s.s___37148.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 = 563; s.pc = 104; return s.tmp_2; - case 104: + s.callLocIdx = 665; s.pc = 108; return s.tmp_2; + case 108: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P494880_mk(s); + s.tmp_6 = Math_sign__P21824_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 = 565; s.pc = 105; return s.tmp_6; - case 105: + s.callLocIdx = 667; 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___509138 !== 0); + case 41: + case 42: + r0 = (s.yDiff___37190 !== 0); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 73; continue; } - r0 = (s.yDiff___509138 > 0); - s.down___509336 = (r0); - r0 = pxsim_numops_toBoolDecr(s.down___509336); - if (!r0) { step = 41; continue; } - s.tmp_1 = game_Hitbox_bottom__P496735_mk(s); - s.tmp_1.arg0 = s.hbox___509121; - s.callLocIdx = 566; s.pc = 106; return s.tmp_1; - case 106: + if (!r0) { step = 77; continue; } + r0 = (s.yDiff___37190 > 0); + s.down___37394 = (r0); + r0 = pxsim_numops_toBoolDecr(s.down___37394); + if (!r0) { step = 43; continue; } + s.tmp_1 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_1.arg0 = s.hbox___37173; + s.callLocIdx = 668; 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__P496733_mk(s); - s.tmp_3.arg0 = s.hbox___509121; - s.callLocIdx = 568; s.pc = 107; return s.tmp_3; - case 107: + { step = 44; continue; } + case 43: + s.tmp_3 = game_Hitbox_top__P23702_mk(s); + s.tmp_3.arg0 = s.hbox___37173; + s.callLocIdx = 670; 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___509124 + 8); + r0 = (s.tileScale___37176 + 8); s.tmp_6 = r0; r0 = (s.tmp_5 >> s.tmp_6); - s.y0___509340 = (r0); + s.y0___37398 = (r0); r0 = pxsim_Array__mk(); - s.collidedTiles___509355 = (r0); - s.tmp_0 = game_Hitbox_left__P496732_mk(s); - s.tmp_0.arg0 = s.hbox___509121; - s.callLocIdx = 572; s.pc = 108; return s.tmp_0; - case 108: + s.collidedTiles___37413 = (r0); + s.tmp_0 = game_Hitbox_left__P23701_mk(s); + s.tmp_0.arg0 = s.hbox___37173; + s.callLocIdx = 674; s.pc = 112; return s.tmp_0; + case 112: r0 = s.retval; - s.x___509357 = (r0); - case 43: - s.tmp_1 = r0 = s.x___509357; - s.tmp_3 = r0 = s.tileSize___509127; - s.tmp_5 = game_Hitbox_right__P496734_mk(s); - s.tmp_5.arg0 = s.hbox___509121; - s.callLocIdx = 573; s.pc = 109; return s.tmp_5; - case 109: + s.x___37415 = (r0); + case 45: + s.tmp_1 = r0 = s.x___37415; + s.tmp_3 = r0 = s.tileSize___37179; + s.tmp_5 = game_Hitbox_right__P23703_mk(s); + s.tmp_5.arg0 = s.hbox___37173; + s.callLocIdx = 675; s.pc = 113; return s.tmp_5; + case 113: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 << 8); @@ -32328,51 +33742,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__P494917_mk(s); - s.tmp_9.arg0 = s.x___509357; - s.tmp_10 = game_Hitbox_right__P496734_mk(s); - s.tmp_10.arg0 = s.hbox___509121; - s.callLocIdx = 575; s.pc = 111; return s.tmp_10; - case 111: + if (!r0) { step = 50; continue; } + s.tmp_9 = Fx_min__P21861_mk(s); + s.tmp_9.arg0 = s.x___37415; + s.tmp_10 = game_Hitbox_right__P23703_mk(s); + s.tmp_10.arg0 = s.hbox___37173; + s.callLocIdx = 677; s.pc = 115; return s.tmp_10; + case 115: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 576; s.pc = 110; return s.tmp_9; - case 110: + s.callLocIdx = 678; 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___509124 + 8); + r0 = (s.tileScale___37176 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___509367 = (r0); - s.tmp_1 = tiles_TileMap_isObstacle__P497113_mk(s); + s.x0___37425 = (r0); + s.tmp_1 = tiles_TileMap_isObstacle__P24182_mk(s); s.tmp_1.arg0 = s.arg2; - s.tmp_1.arg1 = s.x0___509367; - s.tmp_1.arg2 = s.y0___509340; - s.callLocIdx = 579; s.pc = 112; return s.tmp_1; - case 112: + s.tmp_1.arg1 = s.x0___37425; + s.tmp_1.arg2 = s.y0___37398; + s.callLocIdx = 681; 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__P497114_mk(s); + if (!r0) { step = 48; continue; } + s.tmp_2 = tiles_TileMap_getObstacle__P24183_mk(s); s.tmp_2.arg0 = s.arg2; - s.tmp_2.arg1 = s.x0___509367; - s.tmp_2.arg2 = s.y0___509340; - s.callLocIdx = 580; s.pc = 113; return s.tmp_2; - case 113: + s.tmp_2.arg1 = s.x0___37425; + s.tmp_2.arg2 = s.y0___37398; + s.callLocIdx = 682; s.pc = 117; return s.tmp_2; + case 117: r0 = s.retval; - s.obstacle___509381 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P509389); + s.obstacle___37439 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapCollisions_inline__P37447); s.tmp_0 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___509381); - s.tmp_4 = helpers_arraySome__P494859_mk(s); - s.tmp_4.arg0 = s.collidedTiles___509355; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.obstacle___37439); + s.tmp_4 = helpers_arraySome__P21802_mk(s); + s.tmp_4.arg0 = s.collidedTiles___37413; s.tmp_4.arg1 = s.tmp_0; - s.callLocIdx = 581; s.pc = 114; return s.tmp_4; - case 114: + s.callLocIdx = 683; s.pc = 118; return s.tmp_4; + case 118: r0 = s.retval; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); @@ -32380,162 +33794,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___509355, s.obstacle___509381); - case 44: - case 45: + if (!r0) { step = 46; continue; } + r0 = pxsim_Array__push(s.collidedTiles___37413, s.obstacle___37439); case 46: case 47: - r0 = (s.tileSize___509127 << 8); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___509357); - s.x___509357 = (r0); - { step = 43; continue; } case 48: - r0 = pxsim_Array__length(s.collidedTiles___509355); + case 49: + r0 = (s.tileSize___37179 << 8); + s.tmp_0 = r0; + r0 = (s.tmp_0 + s.x___37415); + s.x___37415 = (r0); + { step = 45; continue; } + case 50: + r0 = pxsim_Array__length(s.collidedTiles___37413); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 71; continue; } - r0 = pxsim_numops_toBoolDecr(s.down___509336); - if (!r0) { step = 49; continue; } + if (!r0) { step = 75; continue; } + r0 = pxsim_numops_toBoolDecr(s.down___37394); + 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___509408 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.down___509336); - if (!r0) { step = 51; continue; } - r0 = (s.y0___509340 << s.tileScale___509124); + s.collisionDirection___37466 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.down___37394); + if (!r0) { step = 53; continue; } + r0 = (s.y0___37398 << s.tileScale___37176); 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___509121.fields["height"]; + r0 = s.hbox___37173.fields["height"]; s.tmp_3 = r0; r0 = (s.tmp_0 - s.tmp_3); - { step = 52; continue; } - case 51: - r0 = (s.y0___509340 + 1); + { step = 54; continue; } + case 53: + r0 = (s.y0___37398 + 1); s.tmp_5 = r0; - r0 = (s.tmp_5 << s.tileScale___509124); + r0 = (s.tmp_5 << s.tileScale___37176); 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___509096; - r0 = s.hbox___509121.fields["oy"]; + s.tmp_8 = r0 = s.s___37148; + r0 = s.hbox___37173.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___509434 = (undefined); - s.unnamed1750___U24 = (s.collidedTiles___509355); - s.unnamed1751___U25 = (0); - case 53: - s.tmp_0 = r0 = s.unnamed1751___U25; - r0 = pxsim_Array__length(s.unnamed1750___U24); + s.tile___37492 = (undefined); + s.unnamed174___U24 = (s.collidedTiles___37413); + s.unnamed175___U25 = (0); + case 55: + s.tmp_0 = r0 = s.unnamed175___U25; + r0 = pxsim_Array__length(s.unnamed174___U24); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); - if (!r0) { step = 54; continue; } - r0 = pxsim_Array__getAt(s.unnamed1750___U24, s.unnamed1751___U25); - s.tile___509434 = (r0); - s.tmp_2 = Sprite_registerObstacle__P496860_mk(s); - s.tmp_2.arg0 = s.s___509096; - s.tmp_2.arg1 = s.collisionDirection___509408; - s.tmp_2.arg2 = s.tile___509434; - s.tmp_2.arg3 = s.arg2; - s.callLocIdx = 587; s.pc = 115; return s.tmp_2; - case 115: + if (!r0) { step = 58; continue; } + r0 = pxsim_Array__getAt(s.unnamed174___U24, s.unnamed175___U25); + s.tile___37492 = (r0); + r0 = s.s___37148.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__P23908_mk(s); + s.tmp_6.arg0 = s.s___37148; + s.tmp_6.arg1 = s.collisionDirection___37466; + s.tmp_6.arg2 = s.tile___37492; + s.tmp_6.arg3 = s.arg2; + s.callLocIdx = 689; s.pc = 119; return s.tmp_6; + case 119: r0 = s.retval; - r0 = (s.unnamed1751___U25 + 1); - s.unnamed1751___U25 = (r0); - { step = 53; continue; } - case 54: - s.unnamed1750___U24 = (undefined); - r0 = s.s___509096.fields["flags"]; + case 56: + case 57: + r0 = (s.unnamed175___U25 + 1); + s.unnamed175___U25 = (r0); + { step = 55; continue; } + case 58: + s.unnamed174___U24 = (undefined); + r0 = s.s___37148.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__P496862_mk(s); - s.tmp_2.arg0 = s.s___509096; + if (!r0) { step = 59; continue; } + s.tmp_2 = Sprite_destroy__P23910_mk(s); + s.tmp_2.arg0 = s.s___37148; s.tmp_2.arg1 = undefined; s.tmp_2.arg2 = undefined; - s.callLocIdx = 588; s.pc = 116; return s.tmp_2; - case 116: + s.callLocIdx = 690; s.pc = 120; return s.tmp_2; + case 120: r0 = s.retval; - { step = 70; continue; } - case 55: - r0 = s.s___509096.fields["_vy"]; + { step = 74; continue; } + case 59: + r0 = s.s___37148.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___509096.fields["flags"]; + if (!r0) { step = 70; continue; } + r0 = s.s___37148.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___509336); + if (!r0) { step = 68; continue; } + r0 = pxsim_numops_toBoolDecr(s.down___37394); 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__P496804_mk(s); - s.tmp_8.arg0 = s.s___509096; - s.callLocIdx = 589; s.pc = 117; return s.tmp_8; - case 117: + { step = 61; continue; } + case 60: + s.tmp_8 = Sprite_vy__P23842_mk(s); + s.tmp_8.arg0 = s.s___37148; + s.callLocIdx = 691; 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___509336; + { step = 65; continue; } + case 62: + s.tmp_10 = r0 = s.down___37394; 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__P496804_mk(s); - s.tmp_12.arg0 = s.s___509096; - s.callLocIdx = 590; s.pc = 118; return s.tmp_12; - case 118: + { step = 64; continue; } + case 63: + s.tmp_12 = Sprite_vy__P23842_mk(s); + s.tmp_12.arg0 = s.s___37148; + s.callLocIdx = 692; 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___509096; - r0 = s.s___509096.fields["_vy"]; + if (!r0) { step = 66; continue; } + s.tmp_15 = r0 = s.s___37148; + r0 = s.s___37148.fields["_vy"]; s.tmp_17 = r0; r0 = (0 - s.tmp_17); s.tmp_16 = r0; @@ -32552,53 +33978,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___509096).fields["_vy"] = (0); - case 65: - { step = 69; continue; } case 66: - s.tmp_2 = Math_sign__P494880_mk(s); - r0 = s.s___509096.fields["_vy"]; + case 67: + { step = 69; continue; } + case 68: + r0 = (s.arg1).fields["dy"] = (0); + r0 = (s.s___37148).fields["_vy"] = (0); + case 69: + { step = 73; continue; } + case 70: + s.tmp_2 = Math_sign__P21824_mk(s); + r0 = s.s___37148.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 = 595; s.pc = 119; return s.tmp_2; - case 119: + s.callLocIdx = 697; s.pc = 123; return s.tmp_2; + case 123: r0 = s.retval; s.tmp_1 = r0; - s.tmp_6 = Math_sign__P494880_mk(s); + s.tmp_6 = Math_sign__P21824_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 = 597; s.pc = 120; return s.tmp_6; - case 120: + s.callLocIdx = 699; 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___509096.fields["flags"]; + case 77: + case 78: + case 79: + case 80: + r0 = s.s___37148.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 1538); s.tmp_2 = r0; @@ -32607,22 +34033,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___509515 = (r0); - s.tmp_0 = game_Hitbox_left__P496732_mk(s); - s.tmp_0.arg0 = s.hbox___509121; - s.callLocIdx = 598; s.pc = 121; return s.tmp_0; - case 121: + s.overlappedTiles___37579 = (r0); + s.tmp_0 = game_Hitbox_left__P23701_mk(s); + s.tmp_0.arg0 = s.hbox___37173; + s.callLocIdx = 700; s.pc = 125; return s.tmp_0; + case 125: r0 = s.retval; - s.x___509517 = (r0); - case 77: - s.tmp_1 = r0 = s.x___509517; - s.tmp_3 = r0 = s.tileSize___509127; - s.tmp_5 = game_Hitbox_right__P496734_mk(s); - s.tmp_5.arg0 = s.hbox___509121; - s.callLocIdx = 599; s.pc = 122; return s.tmp_5; - case 122: + s.x___37581 = (r0); + case 81: + s.tmp_1 = r0 = s.x___37581; + s.tmp_3 = r0 = s.tileSize___37179; + s.tmp_5 = game_Hitbox_right__P23703_mk(s); + s.tmp_5.arg0 = s.hbox___37173; + s.callLocIdx = 701; s.pc = 126; return s.tmp_5; + case 126: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 << 8); @@ -32632,38 +34058,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__P494917_mk(s); - s.tmp_9.arg0 = s.x___509517; - s.tmp_10 = game_Hitbox_right__P496734_mk(s); - s.tmp_10.arg0 = s.hbox___509121; - s.callLocIdx = 601; s.pc = 124; return s.tmp_10; - case 124: + if (!r0) { step = 88; continue; } + s.tmp_9 = Fx_min__P21861_mk(s); + s.tmp_9.arg0 = s.x___37581; + s.tmp_10 = game_Hitbox_right__P23703_mk(s); + s.tmp_10.arg0 = s.hbox___37173; + s.callLocIdx = 703; s.pc = 128; return s.tmp_10; + case 128: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 602; s.pc = 123; return s.tmp_9; - case 123: + s.callLocIdx = 704; 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___509124 + 8); + r0 = (s.tileScale___37176 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.x0___509527 = (r0); - s.tmp_0 = game_Hitbox_top__P496733_mk(s); - s.tmp_0.arg0 = s.hbox___509121; - s.callLocIdx = 605; s.pc = 125; return s.tmp_0; - case 125: + s.x0___37591 = (r0); + s.tmp_0 = game_Hitbox_top__P23702_mk(s); + s.tmp_0.arg0 = s.hbox___37173; + s.callLocIdx = 707; s.pc = 129; return s.tmp_0; + case 129: r0 = s.retval; - s.y___509537 = (r0); - case 78: - s.tmp_1 = r0 = s.y___509537; - s.tmp_3 = r0 = s.tileSize___509127; - s.tmp_5 = game_Hitbox_bottom__P496735_mk(s); - s.tmp_5.arg0 = s.hbox___509121; - s.callLocIdx = 606; s.pc = 126; return s.tmp_5; - case 126: + s.y___37601 = (r0); + case 82: + s.tmp_1 = r0 = s.y___37601; + s.tmp_3 = r0 = s.tileSize___37179; + s.tmp_5 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_5.arg0 = s.hbox___37173; + s.callLocIdx = 708; s.pc = 130; return s.tmp_5; + case 130: r0 = s.retval; s.tmp_4 = r0; r0 = (s.tmp_3 << 8); @@ -32673,31 +34099,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__P494917_mk(s); - s.tmp_9.arg0 = s.y___509537; - s.tmp_10 = game_Hitbox_bottom__P496735_mk(s); - s.tmp_10.arg0 = s.hbox___509121; - s.callLocIdx = 608; s.pc = 128; return s.tmp_10; - case 128: + if (!r0) { step = 87; continue; } + s.tmp_9 = Fx_min__P21861_mk(s); + s.tmp_9.arg0 = s.y___37601; + s.tmp_10 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_10.arg0 = s.hbox___37173; + s.callLocIdx = 710; s.pc = 132; return s.tmp_10; + case 132: r0 = s.retval; s.tmp_9.arg1 = r0; - s.callLocIdx = 609; s.pc = 127; return s.tmp_9; - case 127: + s.callLocIdx = 711; 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___509124 + 8); + r0 = (s.tileScale___37176 + 8); s.tmp_11 = r0; r0 = (s.tmp_7 >> s.tmp_11); - s.y0___509547 = (r0); - s.tmp_3 = tiles_TileMap_isObstacle__P497113_mk(s); + s.y0___37611 = (r0); + s.tmp_3 = tiles_TileMap_isObstacle__P24182_mk(s); s.tmp_3.arg0 = s.arg2; - s.tmp_3.arg1 = s.x0___509527; - s.tmp_3.arg2 = s.y0___509547; - s.callLocIdx = 612; s.pc = 129; return s.tmp_3; - case 129: + s.tmp_3.arg1 = s.x0___37591; + s.tmp_3.arg2 = s.y0___37611; + s.callLocIdx = 714; s.pc = 133; return s.tmp_3; + case 133: r0 = s.retval; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -32705,11 +34131,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___509096.fields["flags"]; + { step = 84; continue; } + case 83: + r0 = s.s___37148.fields["flags"]; s.tmp_8 = r0; r0 = (s.tmp_8 & 2048); s.tmp_7 = r0; @@ -32720,60 +34146,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___509515; - s.tmp_12 = tiles_TileMap_getTile__P497106_mk(s); + if (!r0) { step = 85; continue; } + s.tmp_10 = r0 = s.overlappedTiles___37579; + s.tmp_12 = tiles_TileMap_getTile__P24175_mk(s); s.tmp_12.arg0 = s.arg2; - s.tmp_12.arg1 = s.x0___509527; - s.tmp_12.arg2 = s.y0___509547; - s.callLocIdx = 613; s.pc = 130; return s.tmp_12; - case 130: + s.tmp_12.arg1 = s.x0___37591; + s.tmp_12.arg2 = s.y0___37611; + s.callLocIdx = 715; 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___509127 << 8); + case 85: + case 86: + r0 = (s.tileSize___37179 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.y___509537); - s.y___509537 = (r0); - { step = 78; continue; } - case 83: - r0 = (s.tileSize___509127 << 8); + r0 = (s.tmp_0 + s.y___37601); + s.y___37601 = (r0); + { step = 82; continue; } + case 87: + r0 = (s.tileSize___37179 << 8); s.tmp_0 = r0; - r0 = (s.tmp_0 + s.x___509517); - s.x___509517 = (r0); - { step = 77; continue; } - case 84: - r0 = pxsim_Array__length(s.overlappedTiles___509515); + r0 = (s.tmp_0 + s.x___37581); + s.x___37581 = (r0); + { step = 81; continue; } + case 88: + r0 = pxsim_Array__length(s.overlappedTiles___37579); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); - if (!r0) { step = 85; continue; } - s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P498750_mk(s); + if (!r0) { step = 89; continue; } + s.tmp_1 = ArcadePhysicsEngine_tilemapOverlaps__P26073_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.s___509096; - s.tmp_1.arg2 = s.overlappedTiles___509515; - s.callLocIdx = 616; s.pc = 131; return s.tmp_1; - case 131: + s.tmp_1.arg1 = s.s___37148; + s.tmp_1.arg2 = s.overlappedTiles___37579; + s.callLocIdx = 718; 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__P498749.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__P26072.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__P498749_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions__P26072_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P498749, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions__P26072, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32793,37 +34219,37 @@ function ArcadePhysicsEngine_tilemapCollisions__P498749_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - s___509096: undefined, - hbox___509121: undefined, - tileScale___509124: undefined, - tileSize___509127: undefined, - xDiff___509131: undefined, - yDiff___509138: undefined, - right___509154: undefined, - x0___509158: undefined, - collidedTiles___509173: undefined, - y___509175: undefined, - y0___509189: undefined, - obstacle___509205: undefined, - collisionDirection___509232: undefined, - tile___509258: undefined, - unnamed1748___U14: undefined, - unnamed1749___U15: undefined, - down___509336: undefined, - y0___509340: undefined, - collidedTiles___509355: undefined, - x___509357: undefined, - x0___509367: undefined, - obstacle___509381: undefined, - collisionDirection___509408: undefined, - tile___509434: undefined, - unnamed1750___U24: undefined, - unnamed1751___U25: undefined, - overlappedTiles___509515: undefined, - x___509517: undefined, - x0___509527: undefined, - y___509537: undefined, - y0___509547: undefined, + s___37148: undefined, + hbox___37173: undefined, + tileScale___37176: undefined, + tileSize___37179: undefined, + xDiff___37183: undefined, + yDiff___37190: undefined, + right___37206: undefined, + x0___37210: undefined, + collidedTiles___37225: undefined, + y___37227: undefined, + y0___37241: undefined, + obstacle___37257: undefined, + collisionDirection___37284: undefined, + tile___37310: undefined, + unnamed172___U14: undefined, + unnamed173___U15: undefined, + down___37394: undefined, + y0___37398: undefined, + collidedTiles___37413: undefined, + x___37415: undefined, + x0___37425: undefined, + obstacle___37439: undefined, + collisionDirection___37466: undefined, + tile___37492: undefined, + unnamed174___U24: undefined, + unnamed175___U25: undefined, + overlappedTiles___37579: undefined, + x___37581: undefined, + x0___37591: undefined, + y___37601: undefined, + y0___37611: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -32833,7 +34259,7 @@ function ArcadePhysicsEngine_tilemapCollisions__P498749_mk(s) { -function inline__P509213(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P37265(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32855,12 +34281,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509213.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__P37265.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__P509213_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P37265_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509213, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P37265, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32871,7 +34297,7 @@ function inline__P509213_mk(s) { -function inline__P509389(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P37447(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32893,12 +34319,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509389.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__P37447.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__P509389_mk(s) { +function ArcadePhysicsEngine_tilemapCollisions_inline__P37447_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509389, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapCollisions_inline__P37447, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -32909,7 +34335,7 @@ function inline__P509389_mk(s) { -function ArcadePhysicsEngine_tilemapOverlaps__P498750(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P26073(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -32919,11 +34345,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.alreadyHandled___509594 = undefined; - s.tile___509597 = undefined; - s.unnamed1752___U2 = undefined; - s.unnamed1753___U3 = undefined; - s.tileOverlapHandlers___509618 = undefined; + s.alreadyHandled___37658 = undefined; + s.tile___37661 = undefined; + s.unnamed176___U2 = undefined; + s.unnamed177___U3 = undefined; + s.tileOverlapHandlers___37682 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -32931,27 +34357,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.alreadyHandled___509594 = (r0); - s.tile___509597 = (undefined); - s.unnamed1752___U2 = (s.arg2); - s.unnamed1753___U3 = (0); + s.alreadyHandled___37658 = (r0); + s.tile___37661 = (undefined); + s.unnamed176___U2 = (s.arg2); + s.unnamed177___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1753___U3; - r0 = pxsim_Array__length(s.unnamed1752___U2); + s.tmp_0 = r0 = s.unnamed177___U3; + r0 = pxsim_Array__length(s.unnamed176___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 7; continue; } - r0 = pxsim_Array__getAt(s.unnamed1752___U2, s.unnamed1753___U3); - s.tile___509597 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P509601); + r0 = pxsim_Array__getAt(s.unnamed176___U2, s.unnamed177___U3); + s.tile___37661 = (r0); + r0 = pxsim_pxtcore_mkAction(1, ArcadePhysicsEngine_tilemapOverlaps_inline__P37665); s.tmp_2 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___509597); - s.tmp_4 = helpers_arraySome__P494859_mk(s); - s.tmp_4.arg0 = s.alreadyHandled___509594; + r0 = pxsim_pxtrt_stclo(s.tmp_2, 0, s.tile___37661); + s.tmp_4 = helpers_arraySome__P21802_mk(s); + s.tmp_4.arg0 = s.alreadyHandled___37658; s.tmp_4.arg1 = s.tmp_2; - s.callLocIdx = 621; s.pc = 8; return s.tmp_4; + s.callLocIdx = 723; s.pc = 8; return s.tmp_4; case 8: r0 = s.retval; s.tmp_3 = r0; @@ -32960,64 +34386,64 @@ switch (step) { { step = 6; continue; } case 2: case 3: - r0 = pxsim_Array__push(s.alreadyHandled___509594, s.tile___509597); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 622; s.pc = 9; return s.tmp_0; + r0 = pxsim_Array__push(s.alreadyHandled___37658, s.tile___37661); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 724; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; r0 = r0.fields["tileOverlapHandlers"]; - s.tileOverlapHandlers___509618 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___509618); + s.tileOverlapHandlers___37682 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tileOverlapHandlers___37682); if (!r0) { step = 4; continue; } - r0 = pxsim_pxtcore_mkAction(2, inline__P509626); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P37690); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___509597); - r0 = pxsim_pxtcore_mkAction(2, inline__P509642); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.tile___37661); + r0 = pxsim_pxtcore_mkAction(2, ArcadePhysicsEngine_tilemapOverlaps_inline__P37706); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg1); - r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___509597); - s.tmp_2 = helpers_arrayForEach__P494861_mk(s); - s.tmp_3 = helpers_arrayFilter__P494862_mk(s); - s.tmp_3.arg0 = s.tileOverlapHandlers___509618; + r0 = pxsim_pxtrt_stclo(s.tmp_1, 1, s.tile___37661); + s.tmp_2 = helpers_arrayForEach__P21804_mk(s); + s.tmp_3 = helpers_arrayFilter__P21805_mk(s); + s.tmp_3.arg0 = s.tileOverlapHandlers___37682; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 625; s.pc = 11; return s.tmp_3; + s.callLocIdx = 727; 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 = 627; s.pc = 10; return s.tmp_2; + s.callLocIdx = 729; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 4: case 5: case 6: - r0 = (s.unnamed1753___U3 + 1); - s.unnamed1753___U3 = (r0); + r0 = (s.unnamed177___U3 + 1); + s.unnamed177___U3 = (r0); { step = 1; continue; } case 7: - s.unnamed1752___U2 = (undefined); + s.unnamed176___U2 = (undefined); r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_tilemapOverlaps__P498750.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__P26073.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__P498750_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps__P26073_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P498750, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps__P26073, depth: s.depth + 1, pc: 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___509594: undefined, - tile___509597: undefined, - unnamed1752___U2: undefined, - unnamed1753___U3: undefined, - tileOverlapHandlers___509618: undefined, + alreadyHandled___37658: undefined, + tile___37661: undefined, + unnamed176___U2: undefined, + unnamed177___U3: undefined, + tileOverlapHandlers___37682: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -33027,7 +34453,7 @@ function ArcadePhysicsEngine_tilemapOverlaps__P498750_mk(s) { -function inline__P509601(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P37665(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33064,12 +34490,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509601.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__P37665.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__P509601_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P37665_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509601, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P37665, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33084,7 +34510,7 @@ function inline__P509601_mk(s) { -function inline__P509626(s) { +function forEach_inline__P37690(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33111,9 +34537,9 @@ switch (step) { case 1: r0 = s.arg0.fields["tileKind"]; s.tmp_3 = r0; - s.tmp_5 = tiles_getTileImage__P497122_mk(s); + s.tmp_5 = tiles_getTileImage__P24194_mk(s); s.tmp_5.arg0 = s.caps[1]; - s.callLocIdx = 624; s.pc = 3; return s.tmp_5; + s.callLocIdx = 726; s.pc = 3; return s.tmp_5; case 3: r0 = s.retval; s.tmp_4 = r0; @@ -33125,12 +34551,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509626.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__P37690.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__P509626_mk(s) { +function forEach_inline__P37690_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509626, depth: s.depth + 1, + parent: s, fn: forEach_inline__P37690, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33146,7 +34572,7 @@ function inline__P509626_mk(s) { -function inline__P509642(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P37706(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33166,12 +34592,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 = 626; s.pc = 1; return s.tmp_0; + s.callLocIdx = 728; 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 = 626; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 626; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 626; 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 = 728; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 728; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 728; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -33179,12 +34605,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509642.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__P37706.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__P509642_mk(s) { +function ArcadePhysicsEngine_tilemapOverlaps_inline__P37706_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509642, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_tilemapOverlaps_inline__P37706, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33194,7 +34620,7 @@ function inline__P509642_mk(s) { -function tiles_getTileImage__P497122(s) { +function tiles_getTileImage__P24194(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33204,16 +34630,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scene___509650 = undefined; + s.scene___37714 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 748; s.pc = 6; return s.tmp_0; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 858; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.scene___509650 = (r0); + s.scene___37714 = (r0); r0 = pxsim_numops_toBoolDecr(s.arg0); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -33223,7 +34649,7 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - r0 = s.scene___509650.fields["tileMap"]; + r0 = s.scene___37714.fields["tileMap"]; s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); s.tmp_2 = r0; @@ -33233,32 +34659,32 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); if (!r0) { step = 3; continue; } - r0 = pxsim.image.ofBuffer(_hex509660); + r0 = pxsim.image.ofBuffer(_hex37724); { step = 5; continue; } case 3: case 4: - s.tmp_5 = tiles_TileMap_getTileImage__P497116_mk(s); - r0 = s.scene___509650.fields["tileMap"]; + s.tmp_5 = tiles_TileMap_getTileImage__P24185_mk(s); + r0 = s.scene___37714.fields["tileMap"]; s.tmp_5.arg0 = r0; - s.tmp_6 = tiles_Location_tileSet__P497072_mk(s); + s.tmp_6 = tiles_Location_tileSet__P24130_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 749; s.pc = 8; return s.tmp_6; + s.callLocIdx = 859; s.pc = 8; return s.tmp_6; case 8: r0 = s.retval; s.tmp_5.arg1 = r0; - s.callLocIdx = 750; s.pc = 7; return s.tmp_5; + s.callLocIdx = 860; s.pc = 7; return s.tmp_5; case 7: r0 = s.retval; case 5: return leave(s, r0) default: oops() } } } -tiles_getTileImage__P497122.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__P24194.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__P497122_mk(s) { +function tiles_getTileImage__P24194_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_getTileImage__P497122, depth: s.depth + 1, + parent: s, fn: tiles_getTileImage__P24194, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33267,16 +34693,16 @@ function tiles_getTileImage__P497122_mk(s) { tmp_4: undefined, tmp_5: undefined, tmp_6: undefined, - scene___509650: undefined, + scene___37714: undefined, arg0: undefined, } } -const _hex509660 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") +const _hex37724 = pxsim.BufferMethods.createBufferFromHex("8704000000000000") -function tiles_TileMap_getTileImage__P497116(s) { +function tiles_TileMap_getTileImage__P24185(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33292,23 +34718,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P497090_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P24152_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 747; s.pc = 1; return s.tmp_0; + s.callLocIdx = 857; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileImage__P497116.info = {"start":13699,"length":96,"line":442,"column":8,"endLine":444,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMap_getTileImage__P24185.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 tiles_TileMap_getTileImage__P497116_mk(s) { +function tiles_TileMap_getTileImage__P24185_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileImage__P497116, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileImage__P24185, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33319,7 +34745,7 @@ function tiles_TileMap_getTileImage__P497116_mk(s) { -function tiles_TileMapData_getTileImage__P497090(s) { +function tiles_TileMapData_getTileImage__P24152(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33329,25 +34755,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.size___509713 = undefined; - s.cachedImage___509717 = undefined; - s.originalImage___509724 = undefined; + s.size___37779 = undefined; + s.cachedImage___37783 = undefined; + s.originalImage___37790 = 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__C497081_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C24143_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; s.tmp_0 = r0; r0 = (1 << s.tmp_0); - s.size___509713 = (r0); + s.size___37779 = (r0); r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; r0 = pxsim_Array__getAt(s.tmp_0, s.arg1); - s.cachedImage___509717 = (r0); - r0 = pxsim_numops_toBoolDecr(s.cachedImage___509717); + s.cachedImage___37783 = (r0); + r0 = pxsim_numops_toBoolDecr(s.cachedImage___37783); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -33356,58 +34782,58 @@ switch (step) { r0 = s.arg0.fields["tileset"]; s.tmp_2 = r0; r0 = pxsim_Array__getAt(s.tmp_2, s.arg1); - s.originalImage___509724 = (r0); - r0 = pxsim_numops_toBoolDecr(s.originalImage___509724); + s.originalImage___37790 = (r0); + r0 = pxsim_numops_toBoolDecr(s.originalImage___37790); if (!r0) { step = 5; continue; } - r0 = pxsim_ImageMethods.width(s.originalImage___509724); + r0 = pxsim_ImageMethods.width(s.originalImage___37790); s.tmp_1 = r0; - r0 = (s.tmp_1 <= s.size___509713); + r0 = (s.tmp_1 <= s.size___37779); 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___509724); + r0 = pxsim_ImageMethods.height(s.originalImage___37790); s.tmp_2 = r0; - r0 = (s.tmp_2 <= s.size___509713); + r0 = (s.tmp_2 <= s.size___37779); 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___509717 = (s.originalImage___509724); + s.cachedImage___37783 = (s.originalImage___37790); { step = 4; continue; } case 3: - r0 = pxsim.image.create(s.size___509713, s.size___509713); - s.cachedImage___509717 = (r0); - r0 = pxsim_ImageMethods.drawImage(s.cachedImage___509717, s.originalImage___509724, 0, 0); + r0 = pxsim.image.create(s.size___37779, s.size___37779); + s.cachedImage___37783 = (r0); + r0 = pxsim_ImageMethods.drawImage(s.cachedImage___37783, s.originalImage___37790, 0, 0); case 4: r0 = s.arg0.fields["cachedTileView"]; s.tmp_0 = r0; - r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___509717); + r0 = pxsim_Array_.setAt(s.tmp_0, s.arg1, s.cachedImage___37783); case 5: case 6: case 7: case 8: - r0 = s.cachedImage___509717; + r0 = s.cachedImage___37783; return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTileImage__P497090.info = {"start":4599,"length":717,"line":172,"column":8,"endLine":189,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileImage","argumentNames":["this","index"]} +tiles_TileMapData_getTileImage__P24152.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 tiles_TileMapData_getTileImage__P497090_mk(s) { +function tiles_TileMapData_getTileImage__P24152_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTileImage__P497090, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTileImage__P24152, depth: s.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___509713: undefined, - cachedImage___509717: undefined, - originalImage___509724: undefined, + size___37779: undefined, + cachedImage___37783: undefined, + originalImage___37790: undefined, arg0: undefined, arg1: undefined, } } @@ -33416,7 +34842,7 @@ function tiles_TileMapData_getTileImage__P497090_mk(s) { -function tiles_TileMapData_scale__P497085(s) { +function tiles_TileMapData_scale__P24147(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33431,18 +34857,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C497081_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C24143_VT)) failedCast(r0); r0 = s.arg0.fields["_scale"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMapData_scale__P497085.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__P497085.isGetter = true; +tiles_TileMapData_scale__P24147.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__P24147.isGetter = true; -function tiles_TileMapData_scale__P497085_mk(s) { +function tiles_TileMapData_scale__P24147_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P497085, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P24147, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33451,7 +34877,7 @@ function tiles_TileMapData_scale__P497085_mk(s) { -function tiles_Location_tileSet__P497072(s) { +function tiles_Location_tileSet__P24130(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33466,29 +34892,34 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C497066_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMap_getTileIndex__P497107_mk(s); - r0 = s.arg0.fields["tileMap"]; + if (!checkSubtype(r0, tiles_Location__C24119_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMap_getTileIndex__P24176_mk(s); + s.tmp_1 = tiles_Location_tileMap__P24121_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 788; 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 = 679; s.pc = 1; return s.tmp_0; + s.callLocIdx = 789; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_tileSet__P497072.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__P497072.isGetter = true; +tiles_Location_tileSet__P24130.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__P24130.isGetter = true; -function tiles_Location_tileSet__P497072_mk(s) { +function tiles_Location_tileSet__P24130_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_tileSet__P497072, depth: s.depth + 1, + parent: s, fn: tiles_Location_tileSet__P24130, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, } } @@ -33496,7 +34927,7 @@ function tiles_Location_tileSet__P497072_mk(s) { -function tiles_TileMap_getTileIndex__P497107(s) { +function tiles_TileMap_getTileIndex__P24176(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33513,24 +34944,24 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); - s.tmp_0 = tiles_TileMapData_getTile__P497087_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); + s.tmp_0 = tiles_TileMapData_getTile__P24149_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 = 702; s.pc = 1; return s.tmp_0; + s.callLocIdx = 812; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTileIndex__P497107.info = {"start":7380,"length":105,"line":273,"column":8,"endLine":275,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTileIndex","argumentNames":["this","col","row"]} +tiles_TileMap_getTileIndex__P24176.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 tiles_TileMap_getTileIndex__P497107_mk(s) { +function tiles_TileMap_getTileIndex__P24176_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTileIndex__P497107, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTileIndex__P24176, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -33542,7 +34973,7 @@ function tiles_TileMap_getTileIndex__P497107_mk(s) { -function tiles_TileMapData_getTile__P497087(s) { +function tiles_TileMapData_getTile__P24149(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33559,12 +34990,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C497081_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P497093_mk(s); + if (!checkSubtype(r0, tiles_TileMapData__C24143_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P24155_mk(s); s.tmp_1.arg0 = s.arg0; s.tmp_1.arg1 = s.arg1; s.tmp_1.arg2 = s.arg2; - s.callLocIdx = 681; s.pc = 4; return s.tmp_1; + s.callLocIdx = 791; s.pc = 4; return s.tmp_1; case 4: r0 = s.retval; s.tmp_0 = r0; @@ -33593,12 +35024,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_getTile__P497087.info = {"start":3997,"length":200,"line":152,"column":8,"endLine":156,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +tiles_TileMapData_getTile__P24149.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 tiles_TileMapData_getTile__P497087_mk(s) { +function tiles_TileMapData_getTile__P24149_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_getTile__P497087, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_getTile__P24149, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33618,7 +35049,7 @@ function tiles_TileMapData_getTile__P497087_mk(s) { -function tiles_TileMapData_isOutsideMap__P497093(s) { +function tiles_TileMapData_isOutsideMap__P24155(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33635,7 +35066,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C497081_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C24143_VT)) failedCast(r0); r0 = (s.arg1 < 0); s.tmp_0 = r0; r0 = pxsim_numops_toBool(s.tmp_0); @@ -33675,12 +35106,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isOutsideMap__P497093.info = {"start":5580,"length":132,"line":199,"column":8,"endLine":201,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOutsideMap","argumentNames":["this","col","row"]} +tiles_TileMapData_isOutsideMap__P24155.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 tiles_TileMapData_isOutsideMap__P497093_mk(s) { +function tiles_TileMapData_isOutsideMap__P24155_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isOutsideMap__P497093, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isOutsideMap__P24155, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33699,7 +35130,47 @@ function tiles_TileMapData_isOutsideMap__P497093_mk(s) { -function tiles_Location_row__P497068(s) { +function tiles_Location_tileMap__P24121(s) { +let r0 = s.r0, 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__C24119_VT)) failedCast(r0); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 779; 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__P24121.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__P24121.isGetter = true; + +function tiles_Location_tileMap__P24121_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_tileMap__P24121, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + arg0: undefined, +} } + + + + + +function tiles_Location_row__P24123(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33714,18 +35185,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C497066_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C24119_VT)) failedCast(r0); r0 = s.arg0.fields["_row"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_row__P497068.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__P497068.isGetter = true; +tiles_Location_row__P24123.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__P24123.isGetter = true; -function tiles_Location_row__P497068_mk(s) { +function tiles_Location_row__P24123_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_row__P497068, depth: s.depth + 1, + parent: s, fn: tiles_Location_row__P24123, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33734,7 +35205,7 @@ function tiles_Location_row__P497068_mk(s) { -function tiles_Location_col__P497067(s) { +function tiles_Location_column__P24122(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33749,18 +35220,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C497066_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C24119_VT)) failedCast(r0); r0 = s.arg0.fields["_col"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_col__P497067.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__P497067.isGetter = true; +tiles_Location_column__P24122.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__P24122.isGetter = true; -function tiles_Location_col__P497067_mk(s) { +function tiles_Location_column__P24122_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_col__P497067, depth: s.depth + 1, + parent: s, fn: tiles_Location_column__P24122, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33769,7 +35240,7 @@ function tiles_Location_col__P497067_mk(s) { -function tiles_TileMap_getObstacle__P497114(s) { +function tiles_TileMap_getObstacle__P24183(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33779,8 +35250,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.index___509883 = undefined; - s.tile___509895 = undefined; + s.index___37953 = undefined; + s.tile___37965 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -33788,13 +35259,13 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); - s.tmp_1 = tiles_TileMapData_isOutsideMap__P497093_mk(s); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); + s.tmp_1 = tiles_TileMapData_isOutsideMap__P24155_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 = 726; s.pc = 3; return s.tmp_1; + s.callLocIdx = 836; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; s.tmp_0 = r0; @@ -33803,31 +35274,31 @@ switch (step) { r0 = 0; { step = 2; continue; } case 1: - s.tmp_2 = tiles_TileMapData_getTile__P497087_mk(s); + s.tmp_2 = tiles_TileMapData_getTile__P24149_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 = 727; s.pc = 4; return s.tmp_2; + s.callLocIdx = 837; 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___509883 = (s.tmp_3); - s.tmp_0 = tiles_TileMapData_getTileImage__P497090_mk(s); + s.index___37953 = (s.tmp_3); + s.tmp_0 = tiles_TileMapData_getTileImage__P24152_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___509883; - s.callLocIdx = 728; s.pc = 5; return s.tmp_0; + s.tmp_0.arg1 = s.index___37953; + s.callLocIdx = 838; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.tile___509895 = (r0); - r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C496921_VT); + s.tile___37965 = (r0); + r0 = pxsim_pxtcore_mkClassInstance(sprites_StaticObstacle__C23972_VT); s.tmp_0 = r0; - s.tmp_1 = sprites_StaticObstacle_constructor__P496927_mk(s); + s.tmp_1 = sprites_StaticObstacle_constructor__P23978_mk(s); s.tmp_1.arg0 = s.tmp_0; - s.tmp_1.arg1 = s.tile___509895; + s.tmp_1.arg1 = s.tile___37965; s.tmp_2 = r0 = s.arg2; r0 = s.arg0.fields["_scale"]; s.tmp_3 = r0; @@ -33840,20 +35311,20 @@ switch (step) { s.tmp_1.arg3 = r0; r0 = s.arg0.fields["_layer"]; s.tmp_1.arg4 = r0; - s.tmp_1.arg5 = s.index___509883; - s.callLocIdx = 732; s.pc = 6; return s.tmp_1; + s.tmp_1.arg5 = s.index___37953; + s.callLocIdx = 842; 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__P497114.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__P24183.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__P497114_mk(s) { +function tiles_TileMap_getObstacle__P24183_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getObstacle__P497114, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getObstacle__P24183, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -33861,8 +35332,8 @@ function tiles_TileMap_getObstacle__P497114_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - index___509883: undefined, - tile___509895: undefined, + index___37953: undefined, + tile___37965: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -33872,7 +35343,7 @@ function tiles_TileMap_getObstacle__P497114_mk(s) { -function tiles_TileMap_layer__P497102(s) { +function tiles_TileMap_layer__P24171(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33887,18 +35358,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg0.fields["_layer"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_layer__P497102.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__P497102.isGetter = true; +tiles_TileMap_layer__P24171.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__P24171.isGetter = true; -function tiles_TileMap_layer__P497102_mk(s) { +function tiles_TileMap_layer__P24171_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_layer__P497102, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_layer__P24171, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -33907,7 +35378,7 @@ function tiles_TileMap_layer__P497102_mk(s) { -function sprites_StaticObstacle_constructor__P496927(s) { +function sprites_StaticObstacle_constructor__P23978(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33927,7 +35398,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C496921_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C23972_VT)) failedCast(r0); r0 = (s.arg0).fields["image"] = (s.arg1); r0 = (s.arg0).fields["layer"] = (s.arg4); r0 = (s.arg0).fields["top"] = (s.arg2); @@ -33937,12 +35408,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_StaticObstacle_constructor__P496927.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__P23978.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__P496927_mk(s) { +function sprites_StaticObstacle_constructor__P23978_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_constructor__P496927, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_constructor__P23978, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -33956,7 +35427,7 @@ function sprites_StaticObstacle_constructor__P496927_mk(s) { -function tiles_TileMap_isObstacle__P497113(s) { +function tiles_TileMap_isObstacle__P24182(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -33973,7 +35444,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -33994,12 +35465,12 @@ switch (step) { { step = 5; continue; } case 1: case 2: - s.tmp_8 = tiles_TileMapData_isOutsideMap__P497093_mk(s); + s.tmp_8 = tiles_TileMapData_isOutsideMap__P24155_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 = 724; s.pc = 6; return s.tmp_8; + s.callLocIdx = 834; s.pc = 6; return s.tmp_8; case 6: r0 = s.retval; s.tmp_7 = r0; @@ -34020,12 +35491,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isObstacle__P497113.info = {"start":12421,"length":211,"line":404,"column":8,"endLine":409,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isObstacle","argumentNames":["this","col","row"]} +tiles_TileMap_isObstacle__P24182.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 tiles_TileMap_isObstacle__P497113_mk(s) { +function tiles_TileMap_isObstacle__P24182_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isObstacle__P497113, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isObstacle__P24182, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34048,7 +35519,7 @@ function tiles_TileMap_isObstacle__P497113_mk(s) { -function tiles_TileMapData_isWall__P497092(s) { +function tiles_TileMapData_isWall__P24154(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34065,7 +35536,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C497081_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C24143_VT)) failedCast(r0); r0 = s.arg0.fields["layers"]; s.tmp_1 = r0; r0 = pxsim_ImageMethods.getPixel(s.tmp_1, s.arg1, s.arg2); @@ -34074,12 +35545,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_isWall__P497092.info = {"start":5463,"length":107,"line":195,"column":8,"endLine":197,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isWall","argumentNames":["this","col","row"]} +tiles_TileMapData_isWall__P24154.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 tiles_TileMapData_isWall__P497092_mk(s) { +function tiles_TileMapData_isWall__P24154_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_isWall__P497092, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_isWall__P24154, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34092,7 +35563,7 @@ function tiles_TileMapData_isWall__P497092_mk(s) { -function tiles_TileMap_getTile__P497106(s) { +function tiles_TileMap_getTile__P24175(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34109,27 +35580,27 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); - r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C497066_VT); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); + r0 = pxsim_pxtcore_mkClassInstance(tiles_Location__C24119_VT); s.tmp_0 = r0; - s.tmp_1 = tiles_Location_constructor__P497069_mk(s); + s.tmp_1 = tiles_Location_constructor__P24120_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 = 700; s.pc = 1; return s.tmp_1; + s.callLocIdx = 810; s.pc = 1; return s.tmp_1; case 1: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -tiles_TileMap_getTile__P497106.info = {"start":7259,"length":111,"line":269,"column":8,"endLine":271,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"getTile","argumentNames":["this","col","row"]} +tiles_TileMap_getTile__P24175.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 tiles_TileMap_getTile__P497106_mk(s) { +function tiles_TileMap_getTile__P24175_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_getTile__P497106, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_getTile__P24175, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34142,7 +35613,7 @@ function tiles_TileMap_getTile__P497106_mk(s) { -function tiles_Location_constructor__P497069(s) { +function tiles_Location_constructor__P24120(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34160,20 +35631,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C497066_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_Location__C24119_VT)) failedCast(r0); r0 = (s.arg0).fields["_col"] = (s.arg1); r0 = (s.arg0).fields["_row"] = (s.arg2); - r0 = (s.arg0).fields["tileMap"] = (s.arg3); r0 = undefined; return leave(s, r0) default: oops() } } } -tiles_Location_constructor__P497069.info = {"start":528,"length":153,"line":27,"column":8,"endLine":31,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} +tiles_Location_constructor__P24120.info = {"start":360,"length":121,"line":19,"column":8,"endLine":22,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","col","row","map"]} -function tiles_Location_constructor__P497069_mk(s) { +function tiles_Location_constructor__P24120_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_constructor__P497069, depth: s.depth + 1, + parent: s, fn: tiles_Location_constructor__P24120, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -34185,7 +35655,7 @@ function tiles_Location_constructor__P497069_mk(s) { -function Sprite_registerObstacle__P496860(s) { +function Sprite_registerObstacle__P23908(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34195,10 +35665,10 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.collisionHandlers___509796 = undefined; - s.wallCollisionHandlers___509803 = undefined; - s.wallHandlersToRun___509828 = undefined; - s.asTileLocation___509841 = undefined; + s.collisionHandlers___37866 = undefined; + s.wallCollisionHandlers___37873 = undefined; + s.wallHandlersToRun___37898 = undefined; + s.asTileLocation___37911 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -34207,12 +35677,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_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__P497302_mk(s); - s.callLocIdx = 351; s.pc = 9; return s.tmp_1; + s.tmp_1 = game_currentScene__P24380_mk(s); + s.callLocIdx = 454; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; r0 = r0.fields["collisionHandlers"]; @@ -34225,42 +35695,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 = 352; s.pc = 10; return s.tmp_3; } + else { s.callLocIdx = 455; 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___509796 = (r0); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 353; s.pc = 11; return s.tmp_0; + s.collisionHandlers___37866 = (r0); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 456; s.pc = 11; return s.tmp_0; case 11: r0 = s.retval; r0 = r0.fields["wallCollisionHandlers"]; - s.wallCollisionHandlers___509803 = (r0); - r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___509796); + s.wallCollisionHandlers___37873 = (r0); + r0 = pxsim_numops_toBoolDecr(s.collisionHandlers___37866); if (!r0) { step = 1; continue; } - r0 = pxsim_pxtcore_mkAction(1, inline__P509811); + r0 = pxsim_pxtcore_mkAction(1, forEach_inline__P37881); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtcore_mkAction(1, inline__P509817); + r0 = pxsim_pxtcore_mkAction(1, Sprite_registerObstacle_inline__P37887); s.tmp_1 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_1, 0, s.arg0); - s.tmp_2 = helpers_arrayForEach__P494861_mk(s); - s.tmp_3 = helpers_arrayFilter__P494862_mk(s); - s.tmp_3.arg0 = s.collisionHandlers___509796; + s.tmp_2 = helpers_arrayForEach__P21804_mk(s); + s.tmp_3 = helpers_arrayFilter__P21805_mk(s); + s.tmp_3.arg0 = s.collisionHandlers___37866; s.tmp_3.arg1 = s.tmp_0; - s.callLocIdx = 355; s.pc = 13; return s.tmp_3; + s.callLocIdx = 458; 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 = 357; s.pc = 12; return s.tmp_2; + s.callLocIdx = 460; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; case 1: case 2: - r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___509803); + r0 = pxsim_numops_toBoolDecr(s.wallCollisionHandlers___37873); if (!r0) { step = 7; continue; } s.tmp_0 = r0 = s.arg3; r0 = pxsim_numops_toBool(s.tmp_0); @@ -34268,8 +35738,8 @@ switch (step) { r0 = s.tmp_0; { step = 4; continue; } case 3: - s.tmp_1 = game_currentScene__P497302_mk(s); - s.callLocIdx = 358; s.pc = 14; return s.tmp_1; + s.tmp_1 = game_currentScene__P24380_mk(s); + s.callLocIdx = 461; s.pc = 14; return s.tmp_1; case 14: r0 = s.retval; r0 = r0.fields["tileMap"]; @@ -34277,21 +35747,21 @@ switch (step) { // jmp value (already in r0) s.tmp_2 = r0; s.arg3 = (s.tmp_2); - r0 = pxsim_pxtcore_mkAction(1, inline__P509830); + r0 = pxsim_pxtcore_mkAction(1, wallHandlersToRun_inline__P37900); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = helpers_arrayFilter__P494862_mk(s); - s.tmp_1.arg0 = s.wallCollisionHandlers___509803; + s.tmp_1 = helpers_arrayFilter__P21805_mk(s); + s.tmp_1.arg0 = s.wallCollisionHandlers___37873; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 360; s.pc = 15; return s.tmp_1; + s.callLocIdx = 463; s.pc = 15; return s.tmp_1; case 15: r0 = s.retval; - s.wallHandlersToRun___509828 = (r0); - r0 = pxsim_Array__length(s.wallHandlersToRun___509828); + s.wallHandlersToRun___37898 = (r0); + r0 = pxsim_Array__length(s.wallHandlersToRun___37898); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_1 = tiles_TileMap_getTile__P497106_mk(s); + s.tmp_1 = tiles_TileMap_getTile__P24175_mk(s); s.tmp_1.arg0 = s.arg3; s.tmp_3 = if_left_1_mk(s); s.tmp_3.arg0 = s.arg2; @@ -34301,7 +35771,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 = 361; s.pc = 17; return s.tmp_3; } + else { s.callLocIdx = 464; s.pc = 17; return s.tmp_3; } } case 17: r0 = s.retval; @@ -34318,7 +35788,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 = 363; s.pc = 18; return s.tmp_6; } + else { s.callLocIdx = 466; s.pc = 18; return s.tmp_6; } } case 18: r0 = s.retval; @@ -34327,18 +35797,18 @@ switch (step) { s.tmp_7 = r0; r0 = (s.tmp_5 >> s.tmp_7); s.tmp_1.arg2 = r0; - s.callLocIdx = 365; s.pc = 16; return s.tmp_1; + s.callLocIdx = 468; s.pc = 16; return s.tmp_1; case 16: r0 = s.retval; - s.asTileLocation___509841 = (r0); - r0 = pxsim_pxtcore_mkAction(2, inline__P509857); + s.asTileLocation___37911 = (r0); + r0 = pxsim_pxtcore_mkAction(2, Sprite_registerObstacle_inline__P37927); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___509841); - s.tmp_1 = helpers_arrayForEach__P494861_mk(s); - s.tmp_1.arg0 = s.wallHandlersToRun___509828; + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.asTileLocation___37911); + s.tmp_1 = helpers_arrayForEach__P21804_mk(s); + s.tmp_1.arg0 = s.wallHandlersToRun___37898; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 367; s.pc = 19; return s.tmp_1; + s.callLocIdx = 470; s.pc = 19; return s.tmp_1; case 19: r0 = s.retval; case 5: @@ -34349,12 +35819,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_registerObstacle__P496860.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__P23908.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__P496860_mk(s) { +function Sprite_registerObstacle__P23908_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_registerObstacle__P496860, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle__P23908, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34364,10 +35834,10 @@ function Sprite_registerObstacle__P496860_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - collisionHandlers___509796: undefined, - wallCollisionHandlers___509803: undefined, - wallHandlersToRun___509828: undefined, - asTileLocation___509841: undefined, + collisionHandlers___37866: undefined, + wallCollisionHandlers___37873: undefined, + wallHandlersToRun___37898: undefined, + asTileLocation___37911: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -34378,7 +35848,7 @@ function Sprite_registerObstacle__P496860_mk(s) { -function inline__P509811(s) { +function forEach_inline__P37881(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34400,12 +35870,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509811.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__P37881.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__P509811_mk(s) { +function forEach_inline__P37881_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509811, depth: s.depth + 1, + parent: s, fn: forEach_inline__P37881, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34416,7 +35886,7 @@ function inline__P509811_mk(s) { -function inline__P509817(s) { +function Sprite_registerObstacle_inline__P37887(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34435,12 +35905,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 = 356; s.pc = 1; return s.tmp_0; + s.callLocIdx = 459; 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 = 356; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 356; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 356; 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 = 459; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 459; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 459; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -34448,12 +35918,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509817.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__P37887.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__P509817_mk(s) { +function Sprite_registerObstacle_inline__P37887_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509817, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P37887, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34463,7 +35933,7 @@ function inline__P509817_mk(s) { -function inline__P509830(s) { +function wallHandlersToRun_inline__P37900(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34485,12 +35955,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509830.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__P37900.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__P509830_mk(s) { +function wallHandlersToRun_inline__P37900_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509830, depth: s.depth + 1, + parent: s, fn: wallHandlersToRun_inline__P37900, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -34501,7 +35971,7 @@ function inline__P509830_mk(s) { -function inline__P509857(s) { +function Sprite_registerObstacle_inline__P37927(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34521,12 +35991,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 = 366; s.pc = 1; return s.tmp_0; + s.callLocIdx = 469; 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 = 366; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 366; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 366; 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 = 469; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 469; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 469; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -34534,12 +36004,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509857.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__P37927.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__P509857_mk(s) { +function Sprite_registerObstacle_inline__P37927_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509857, depth: s.depth + 1, + parent: s, fn: Sprite_registerObstacle_inline__P37927, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34549,7 +36019,7 @@ function inline__P509857_mk(s) { -function Fx_min__P494917(s) { +function Fx_iadd__P21853(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34564,28 +36034,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__P494917.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__P21853.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__P494917_mk(s) { +function Fx_iadd__P21853_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_min__P494917, depth: s.depth + 1, + parent: s, fn: Fx_iadd__P21853, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -34596,7 +36056,7 @@ function Fx_min__P494917_mk(s) { -function Fx_iadd__P494909(s) { +function Fx_toIntShifted__P21851(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34611,20 +36071,22 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - r0 = (s.arg0 << 8); - s.tmp_0 = r0; - r0 = (s.tmp_0 + s.arg1); + s.tmp_0 = r0 = s.arg0; + r0 = (s.arg1 + 8); + s.tmp_1 = r0; + r0 = (s.tmp_0 >> s.tmp_1); return leave(s, r0) default: oops() } } } -Fx_iadd__P494909.info = {"start":634,"length":110,"line":23,"column":4,"endLine":25,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"iadd","argumentNames":["a","b"]} +Fx_toIntShifted__P21851.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} -function Fx_iadd__P494909_mk(s) { +function Fx_toIntShifted__P21851_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_iadd__P494909, depth: s.depth + 1, + parent: s, fn: Fx_toIntShifted__P21851, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, + tmp_1: undefined, arg0: undefined, arg1: undefined, } } @@ -34633,7 +36095,7 @@ function Fx_iadd__P494909_mk(s) { -function Fx_toIntShifted__P494907(s) { +function Math_sign__P21824(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34645,34 +36107,46 @@ switch (step) { if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); - s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = r0 = s.arg0; - r0 = (s.arg1 + 8); + r0 = (s.arg0 == 0); + s.tmp_0 = r0; + 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 = (s.tmp_0 >> s.tmp_1); + 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_toIntShifted__P494907.info = {"start":404,"length":102,"line":17,"column":4,"endLine":19,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"toIntShifted","argumentNames":["a","n"]} +Math_sign__P21824.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_toIntShifted__P494907_mk(s) { +function Math_sign__P21824_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_toIntShifted__P494907, depth: s.depth + 1, + parent: s, fn: Math_sign__P21824, 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__P494859(s) { +function helpers_arraySome__P21802(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34682,26 +36156,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.len___509865 = undefined; - s.i___509868 = undefined; + s.len___37935 = undefined; + s.i___37938 = 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___509865 = (r0); - s.i___509868 = (0); + s.len___37935 = (r0); + s.i___37938 = (0); case 1: - r0 = (s.i___509868 < s.len___509865); + r0 = (s.i___37938 < s.len___37935); 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___509868); + r0 = pxsim_Array__getAt(s.arg0, s.i___37938); s.tmp_2.arg0 = r0; - s.tmp_2.arg1 = s.i___509868; + s.tmp_2.arg1 = s.i___37938; setupLambda(s.tmp_2, s.tmp_2.argL); s.callLocIdx = 4; s.pc = 6; return s.tmp_2; case 6: @@ -34713,8 +36187,8 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.i___509868 + 1); - s.i___509868 = (r0); + r0 = (s.i___37938 + 1); + s.i___37938 = (r0); { step = 1; continue; } case 4: r0 = false; @@ -34722,18 +36196,18 @@ switch (step) { return leave(s, r0) default: oops() } } } -helpers_arraySome__P494859.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__P21802.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__P494859_mk(s) { +function helpers_arraySome__P21802_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arraySome__P494859, depth: s.depth + 1, + parent: s, fn: helpers_arraySome__P21802, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - len___509865: undefined, - i___509868: undefined, + len___37935: undefined, + i___37938: undefined, arg0: undefined, arg1: undefined, } } @@ -34742,7 +36216,7 @@ function helpers_arraySome__P494859_mk(s) { -function tiles_TileMap_isOnWall__P497115(s) { +function tiles_TileMap_isOnWall__P24184(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34752,25 +36226,25 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.hbox___508994 = undefined; - s.left___508997 = undefined; - s.right___509003 = undefined; - s.top___509009 = undefined; - s.bottom___509015 = undefined; - s.col___509021 = undefined; - s.row___509027 = undefined; + s.hbox___37046 = undefined; + s.left___37049 = undefined; + s.right___37055 = undefined; + s.top___37061 = undefined; + s.bottom___37067 = undefined; + s.col___37073 = undefined; + s.row___37079 = 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__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg1.fields["_hitbox"]; - s.hbox___508994 = (r0); - s.tmp_1 = game_Hitbox_left__P496732_mk(s); - s.tmp_1.arg0 = s.hbox___508994; - s.callLocIdx = 733; s.pc = 8; return s.tmp_1; + s.hbox___37046 = (r0); + s.tmp_1 = game_Hitbox_left__P23701_mk(s); + s.tmp_1.arg0 = s.hbox___37046; + s.callLocIdx = 843; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0 = r0; @@ -34779,10 +36253,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.left___508997 = (r0); - s.tmp_1 = game_Hitbox_right__P496734_mk(s); - s.tmp_1.arg0 = s.hbox___508994; - s.callLocIdx = 736; s.pc = 9; return s.tmp_1; + s.left___37049 = (r0); + s.tmp_1 = game_Hitbox_right__P23703_mk(s); + s.tmp_1.arg0 = s.hbox___37046; + s.callLocIdx = 846; s.pc = 9; return s.tmp_1; case 9: r0 = s.retval; s.tmp_0 = r0; @@ -34791,10 +36265,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.right___509003 = (r0); - s.tmp_1 = game_Hitbox_top__P496733_mk(s); - s.tmp_1.arg0 = s.hbox___508994; - s.callLocIdx = 739; s.pc = 10; return s.tmp_1; + s.right___37055 = (r0); + s.tmp_1 = game_Hitbox_top__P23702_mk(s); + s.tmp_1.arg0 = s.hbox___37046; + s.callLocIdx = 849; s.pc = 10; return s.tmp_1; case 10: r0 = s.retval; s.tmp_0 = r0; @@ -34803,10 +36277,10 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.top___509009 = (r0); - s.tmp_1 = game_Hitbox_bottom__P496735_mk(s); - s.tmp_1.arg0 = s.hbox___508994; - s.callLocIdx = 742; s.pc = 11; return s.tmp_1; + s.top___37061 = (r0); + s.tmp_1 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_1.arg0 = s.hbox___37046; + s.callLocIdx = 852; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0 = r0; @@ -34815,24 +36289,24 @@ switch (step) { r0 = (s.tmp_2 + 8); s.tmp_3 = r0; r0 = (s.tmp_0 >> s.tmp_3); - s.bottom___509015 = (r0); - s.col___509021 = (s.left___508997); + s.bottom___37067 = (r0); + s.col___37073 = (s.left___37049); case 1: - r0 = (s.col___509021 <= s.right___509003); + r0 = (s.col___37073 <= s.right___37055); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 6; continue; } - s.row___509027 = (s.top___509009); + s.row___37079 = (s.top___37061); case 2: - r0 = (s.row___509027 <= s.bottom___509015); + r0 = (s.row___37079 <= s.bottom___37067); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 5; continue; } - s.tmp_2 = tiles_TileMap_isObstacle__P497113_mk(s); + s.tmp_2 = tiles_TileMap_isObstacle__P24182_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.col___509021; - s.tmp_2.arg2 = s.row___509027; - s.callLocIdx = 745; s.pc = 12; return s.tmp_2; + s.tmp_2.arg1 = s.col___37073; + s.tmp_2.arg2 = s.row___37079; + s.callLocIdx = 855; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_1 = r0; @@ -34842,12 +36316,12 @@ switch (step) { { step = 7; continue; } case 3: case 4: - r0 = (s.row___509027 + 1); - s.row___509027 = (r0); + r0 = (s.row___37079 + 1); + s.row___37079 = (r0); { step = 2; continue; } case 5: - r0 = (s.col___509021 + 1); - s.col___509021 = (r0); + r0 = (s.col___37073 + 1); + s.col___37073 = (r0); { step = 1; continue; } case 6: r0 = false; @@ -34855,24 +36329,24 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_isOnWall__P497115.info = {"start":13062,"length":627,"line":423,"column":8,"endLine":440,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"isOnWall","argumentNames":["this","s"]} +tiles_TileMap_isOnWall__P24184.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 tiles_TileMap_isOnWall__P497115_mk(s) { +function tiles_TileMap_isOnWall__P24184_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_isOnWall__P497115, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_isOnWall__P24184, depth: s.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___508994: undefined, - left___508997: undefined, - right___509003: undefined, - top___509009: undefined, - bottom___509015: undefined, - col___509021: undefined, - row___509027: undefined, + hbox___37046: undefined, + left___37049: undefined, + right___37055: undefined, + top___37061: undefined, + bottom___37067: undefined, + col___37073: undefined, + row___37079: undefined, arg0: undefined, arg1: undefined, } } @@ -34881,7 +36355,7 @@ function tiles_TileMap_isOnWall__P497115_mk(s) { -function MovingSprite_constructor__P496949(s) { +function MovingSprite_constructor__P24000(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34903,7 +36377,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, MovingSprite__C496948_VT)) failedCast(r0); + if (!checkSubtype(r0, MovingSprite__C23999_VT)) failedCast(r0); r0 = (s.arg0).fields["sprite"] = (s.arg1); r0 = (s.arg0).fields["cachedVx"] = (s.arg2); r0 = (s.arg0).fields["cachedVy"] = (s.arg3); @@ -34915,12 +36389,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -MovingSprite_constructor__P496949.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__P24000.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__P496949_mk(s) { +function MovingSprite_constructor__P24000_mk(s) { checkStack(s.depth); return { - parent: s, fn: MovingSprite_constructor__P496949, depth: s.depth + 1, + parent: s, fn: MovingSprite_constructor__P24000, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -34936,7 +36410,7 @@ function MovingSprite_constructor__P496949_mk(s) { -function ArcadePhysicsEngine_move__P496962(s) { +function ArcadePhysicsEngine_move__P24013(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -34946,80 +36420,80 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.dtMs___509955 = undefined; - s.dt2___509961 = undefined; - s.scene___509965 = undefined; - s.tileMap___509968 = undefined; - s.movingSprites___509971 = undefined; - s.MAX_STEP_COUNT___510002 = undefined; - s.overlapHandlers___510014 = undefined; - s.selected___510021 = undefined; - s.buffers___510022 = undefined; - s.count___510026 = undefined; - s.currMovers___510036 = undefined; - s.remainingMovers___510043 = undefined; - s.ms___510048 = undefined; - s.unnamed1742___U13 = undefined; - s.unnamed1743___U14 = undefined; - s.s___510050 = undefined; - s.stepX___510143 = undefined; - s.stepY___510157 = undefined; + s.dtMs___38018 = undefined; + s.dt2___38024 = undefined; + s.scene___38028 = undefined; + s.tileMap___38031 = undefined; + s.movingSprites___38034 = undefined; + s.MAX_STEP_COUNT___38065 = undefined; + s.overlapHandlers___38077 = undefined; + s.selected___38084 = undefined; + s.buffers___38085 = undefined; + s.count___38089 = undefined; + s.currMovers___38099 = undefined; + s.remainingMovers___38106 = undefined; + s.ms___38111 = undefined; + s.unnamed166___U13 = undefined; + s.unnamed167___U14 = undefined; + s.s___38113 = undefined; + s.stepX___38206 = undefined; + s.stepY___38220 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); - s.tmp_0 = Math_min__P494882_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); + s.tmp_0 = Math_min__P21826_mk(s); s.tmp_0.arg0 = 100; r0 = (s.arg1 * 1000); s.tmp_0.arg1 = r0; - s.callLocIdx = 449; s.pc = 47; return s.tmp_0; + s.callLocIdx = 551; s.pc = 47; return s.tmp_0; case 47: r0 = s.retval; - s.dtMs___509955 = (r0); - r0 = pxsim.Math_.idiv(s.dtMs___509955, 2); - s.dt2___509961 = (r0); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 450; s.pc = 48; return s.tmp_0; + s.dtMs___38018 = (r0); + r0 = pxsim.Math_.idiv(s.dtMs___38018, 2); + s.dt2___38024 = (r0); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 552; s.pc = 48; return s.tmp_0; case 48: r0 = s.retval; - s.scene___509965 = (r0); - r0 = s.scene___509965.fields["tileMap"]; - s.tileMap___509968 = (r0); - r0 = pxsim_pxtcore_mkAction(3, inline__P509973); + s.scene___38028 = (r0); + r0 = s.scene___38028.fields["tileMap"]; + s.tileMap___38031 = (r0); + r0 = pxsim_pxtcore_mkAction(3, movingSprites_inline__P38036); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___509955); - r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___509961); - s.tmp_1 = helpers_arrayMap__P494858_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 1, s.dtMs___38018); + r0 = pxsim_pxtrt_stclo(s.tmp_0, 2, s.dt2___38024); + s.tmp_1 = helpers_arrayMap__P21801_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 452; s.pc = 49; return s.tmp_1; + s.callLocIdx = 554; s.pc = 49; return s.tmp_1; case 49: r0 = s.retval; - s.movingSprites___509971 = (r0); - s.tmp_0 = helpers_arrayForEach__P494861_mk(s); + s.movingSprites___38034 = (r0); + s.tmp_0 = helpers_arrayForEach__P21804_mk(s); r0 = s.arg0.fields["sprites"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = inline__P509985; - s.callLocIdx = 456; s.pc = 50; return s.tmp_0; + s.tmp_0.arg1 = ArcadePhysicsEngine_move_inline__P38048; + s.callLocIdx = 558; s.pc = 50; return s.tmp_0; case 50: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_clear__P496875_mk(s); + s.tmp_0 = sprites_SpriteMap_clear__P23926_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 457; s.pc = 51; return s.tmp_0; + s.callLocIdx = 559; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_resizeBuckets__P496874_mk(s); + s.tmp_0 = sprites_SpriteMap_resizeBuckets__P23925_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; r0 = s.arg0.fields["sprites"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 458; s.pc = 52; return s.tmp_0; + s.callLocIdx = 560; s.pc = 52; return s.tmp_0; case 52: r0 = s.retval; r0 = s.arg0.fields["maxVelocity"]; @@ -35030,41 +36504,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___509955); + r0 = pxsim.Math_.imul(s.tmp_2, s.dtMs___38018); 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___510002 = (r0); - s.tmp_0 = helpers_arraySlice__P494867_mk(s); - r0 = s.scene___509965.fields["overlapHandlers"]; + s.MAX_STEP_COUNT___38065 = (r0); + s.tmp_0 = helpers_arraySlice__P21810_mk(s); + r0 = s.scene___38028.fields["overlapHandlers"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = undefined; s.tmp_0.arg2 = undefined; - s.callLocIdx = 463; s.pc = 53; return s.tmp_0; + s.callLocIdx = 565; s.pc = 53; return s.tmp_0; case 53: r0 = s.retval; - s.overlapHandlers___510014 = (r0); - s.selected___510021 = (0); + s.overlapHandlers___38077 = (r0); + s.selected___38084 = (0); r0 = pxsim_Array__mk(); s.tmp_0 = r0; - r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___509971); + r0 = pxsim_Array__push(s.tmp_0, s.movingSprites___38034); r0 = pxsim_Array__mk(); s.tmp_1 = r0; r0 = pxsim_Array__push(s.tmp_0, s.tmp_1); - s.buffers___510022 = (s.tmp_0); - s.count___510026 = (0); + s.buffers___38085 = (s.tmp_0); + s.count___38089 = (0); case 1: - r0 = (s.count___510026 < s.MAX_STEP_COUNT___510002); + r0 = (s.count___38089 < s.MAX_STEP_COUNT___38065); 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___510022, s.selected___510021); + r0 = pxsim_Array__getAt(s.buffers___38085, s.selected___38084); s.tmp_2 = r0; r0 = pxsim_Array__length(s.tmp_2); s.tmp_1 = r0; @@ -35074,43 +36548,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___510022, s.selected___510021); - s.currMovers___510036 = (r0); - r0 = (s.selected___510021 ^ 1); - s.selected___510021 = (r0); - r0 = pxsim_Array__getAt(s.buffers___510022, s.selected___510021); - s.remainingMovers___510043 = (r0); - s.ms___510048 = (undefined); - s.unnamed1742___U13 = (s.currMovers___510036); - s.unnamed1743___U14 = (0); + r0 = pxsim_Array__getAt(s.buffers___38085, s.selected___38084); + s.currMovers___38099 = (r0); + r0 = (s.selected___38084 ^ 1); + s.selected___38084 = (r0); + r0 = pxsim_Array__getAt(s.buffers___38085, s.selected___38084); + s.remainingMovers___38106 = (r0); + s.ms___38111 = (undefined); + s.unnamed166___U13 = (s.currMovers___38099); + s.unnamed167___U14 = (0); case 4: - s.tmp_0 = r0 = s.unnamed1743___U14; - r0 = pxsim_Array__length(s.unnamed1742___U13); + s.tmp_0 = r0 = s.unnamed167___U14; + r0 = pxsim_Array__length(s.unnamed166___U13); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 43; continue; } - r0 = pxsim_Array__getAt(s.unnamed1742___U13, s.unnamed1743___U14); - s.ms___510048 = (r0); - r0 = s.ms___510048.fields["sprite"]; - s.s___510050 = (r0); - r0 = s.ms___510048.fields["cachedVx"]; + r0 = pxsim_Array__getAt(s.unnamed166___U13, s.unnamed167___U14); + s.ms___38111 = (r0); + r0 = s.ms___38111.fields["sprite"]; + s.s___38113 = (r0); + r0 = s.ms___38111.fields["cachedVx"]; s.tmp_1 = r0; - r0 = s.s___510050.fields["_vx"]; + r0 = s.s___38113.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___510050.fields["_vx"]; + r0 = s.s___38113.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___510048).fields["dx"] = (0); + r0 = (s.ms___38111).fields["dx"] = (0); { step = 14; continue; } case 5: - r0 = s.s___510050.fields["_vx"]; + r0 = s.s___38113.fields["_vx"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -35119,7 +36593,7 @@ switch (step) { r0 = s.tmp_0; { step = 7; continue; } case 6: - r0 = s.ms___510048.fields["cachedVx"]; + r0 = s.ms___38111.fields["cachedVx"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 7: @@ -35130,7 +36604,7 @@ switch (step) { r0 = s.tmp_3; { step = 11; continue; } case 8: - r0 = s.s___510050.fields["_vx"]; + r0 = s.s___38113.fields["_vx"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -35139,7 +36613,7 @@ switch (step) { r0 = s.tmp_4; { step = 10; continue; } case 9: - r0 = s.ms___510048.fields["cachedVx"]; + r0 = s.ms___38111.fields["cachedVx"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 10: @@ -35151,14 +36625,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___510048; - r0 = s.ms___510048.fields["dx"]; + s.tmp_9 = r0 = s.ms___38111; + r0 = s.ms___38111.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___510048; - r0 = s.ms___510048.fields["xStep"]; + s.tmp_0 = r0 = s.ms___38111; + r0 = s.ms___38111.fields["xStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -35166,29 +36640,29 @@ switch (step) { case 12: case 13: case 14: - r0 = s.s___510050.fields["_vx"]; + r0 = s.s___38113.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.ms___510048).fields["cachedVx"] = (s.tmp_0); + r0 = (s.ms___38111).fields["cachedVx"] = (s.tmp_0); case 15: case 16: - r0 = s.ms___510048.fields["cachedVy"]; + r0 = s.ms___38111.fields["cachedVy"]; s.tmp_1 = r0; - r0 = s.s___510050.fields["_vy"]; + r0 = s.s___38113.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___510050.fields["_vy"]; + r0 = s.s___38113.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___510048).fields["dy"] = (0); + r0 = (s.ms___38111).fields["dy"] = (0); { step = 26; continue; } case 17: - r0 = s.s___510050.fields["_vy"]; + r0 = s.s___38113.fields["_vy"]; s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -35197,7 +36671,7 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - r0 = s.ms___510048.fields["cachedVy"]; + r0 = s.ms___38111.fields["cachedVy"]; s.tmp_2 = r0; r0 = (s.tmp_2 > 0); case 19: @@ -35208,7 +36682,7 @@ switch (step) { r0 = s.tmp_3; { step = 23; continue; } case 20: - r0 = s.s___510050.fields["_vy"]; + r0 = s.s___38113.fields["_vy"]; s.tmp_5 = r0; r0 = (s.tmp_5 > 0); s.tmp_4 = r0; @@ -35217,7 +36691,7 @@ switch (step) { r0 = s.tmp_4; { step = 22; continue; } case 21: - r0 = s.ms___510048.fields["cachedVy"]; + r0 = s.ms___38111.fields["cachedVy"]; s.tmp_6 = r0; r0 = (s.tmp_6 < 0); case 22: @@ -35229,14 +36703,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___510048; - r0 = s.ms___510048.fields["dy"]; + s.tmp_9 = r0 = s.ms___38111; + r0 = s.ms___38111.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___510048; - r0 = s.ms___510048.fields["yStep"]; + s.tmp_0 = r0 = s.ms___38111; + r0 = s.ms___38111.fields["yStep"]; s.tmp_2 = r0; r0 = (0 - s.tmp_2); s.tmp_1 = r0; @@ -35244,22 +36718,22 @@ switch (step) { case 24: case 25: case 26: - r0 = s.s___510050.fields["_vy"]; + r0 = s.s___38113.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.ms___510048).fields["cachedVy"] = (s.tmp_0); + r0 = (s.ms___38111).fields["cachedVy"] = (s.tmp_0); case 27: case 28: - s.tmp_2 = Fx_abs__P494916_mk(s); - r0 = s.ms___510048.fields["xStep"]; + s.tmp_2 = Fx_abs__P21860_mk(s); + r0 = s.ms___38111.fields["xStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 468; s.pc = 54; return s.tmp_2; + s.callLocIdx = 570; s.pc = 54; return s.tmp_2; case 54: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P494916_mk(s); - r0 = s.ms___510048.fields["dx"]; + s.tmp_4 = Fx_abs__P21860_mk(s); + r0 = s.ms___38111.fields["dx"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 469; s.pc = 55; return s.tmp_4; + s.callLocIdx = 571; s.pc = 55; return s.tmp_4; case 55: r0 = s.retval; s.tmp_3 = r0; @@ -35267,25 +36741,25 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 29; continue; } - r0 = s.ms___510048.fields["dx"]; + r0 = s.ms___38111.fields["dx"]; { step = 30; continue; } case 29: - r0 = s.ms___510048.fields["xStep"]; + r0 = s.ms___38111.fields["xStep"]; case 30: // jmp value (already in r0) s.tmp_5 = r0; - s.stepX___510143 = (s.tmp_5); - s.tmp_2 = Fx_abs__P494916_mk(s); - r0 = s.ms___510048.fields["yStep"]; + s.stepX___38206 = (s.tmp_5); + s.tmp_2 = Fx_abs__P21860_mk(s); + r0 = s.ms___38111.fields["yStep"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 470; s.pc = 56; return s.tmp_2; + s.callLocIdx = 572; s.pc = 56; return s.tmp_2; case 56: r0 = s.retval; s.tmp_1 = r0; - s.tmp_4 = Fx_abs__P494916_mk(s); - r0 = s.ms___510048.fields["dy"]; + s.tmp_4 = Fx_abs__P21860_mk(s); + r0 = s.ms___38111.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 471; s.pc = 57; return s.tmp_4; + s.callLocIdx = 573; s.pc = 57; return s.tmp_4; case 57: r0 = s.retval; s.tmp_3 = r0; @@ -35293,45 +36767,45 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 31; continue; } - r0 = s.ms___510048.fields["dy"]; + r0 = s.ms___38111.fields["dy"]; { step = 32; continue; } case 31: - r0 = s.ms___510048.fields["yStep"]; + r0 = s.ms___38111.fields["yStep"]; case 32: // jmp value (already in r0) s.tmp_5 = r0; - s.stepY___510157 = (s.tmp_5); - s.tmp_0 = r0 = s.ms___510048; - r0 = s.ms___510048.fields["dx"]; + s.stepY___38220 = (s.tmp_5); + s.tmp_0 = r0 = s.ms___38111; + r0 = s.ms___38111.fields["dx"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepX___510143); + r0 = (s.tmp_2 - s.stepX___38206); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dx"] = (s.tmp_1); - s.tmp_0 = r0 = s.ms___510048; - r0 = s.ms___510048.fields["dy"]; + s.tmp_0 = r0 = s.ms___38111; + r0 = s.ms___38111.fields["dy"]; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.stepY___510157); + r0 = (s.tmp_2 - s.stepY___38220); s.tmp_1 = r0; r0 = (s.tmp_0).fields["dy"] = (s.tmp_1); - r0 = s.s___510050.fields["_x"]; + r0 = s.s___38113.fields["_x"]; s.tmp_0 = r0; - r0 = (s.s___510050).fields["_lastX"] = (s.tmp_0); - r0 = s.s___510050.fields["_y"]; + r0 = (s.s___38113).fields["_lastX"] = (s.tmp_0); + r0 = s.s___38113.fields["_y"]; s.tmp_0 = r0; - r0 = (s.s___510050).fields["_lastY"] = (s.tmp_0); - s.tmp_0 = r0 = s.s___510050; - r0 = s.s___510050.fields["_x"]; + r0 = (s.s___38113).fields["_lastY"] = (s.tmp_0); + s.tmp_0 = r0 = s.s___38113; + r0 = s.s___38113.fields["_x"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepX___510143); + r0 = (s.tmp_2 + s.stepX___38206); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_x"] = (s.tmp_1); - s.tmp_0 = r0 = s.s___510050; - r0 = s.s___510050.fields["_y"]; + s.tmp_0 = r0 = s.s___38113; + r0 = s.s___38113.fields["_y"]; s.tmp_2 = r0; - r0 = (s.tmp_2 + s.stepY___510157); + r0 = (s.tmp_2 + s.stepY___38220); s.tmp_1 = r0; r0 = (s.tmp_0).fields["_y"] = (s.tmp_1); - r0 = s.s___510050.fields["flags"]; + r0 = s.s___38113.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -35341,22 +36815,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__P496876_mk(s); + s.tmp_4 = sprites_SpriteMap_insertAABB__P23927_mk(s); r0 = s.arg0.fields["map"]; s.tmp_4.arg0 = r0; - s.tmp_4.arg1 = s.s___510050; - s.callLocIdx = 476; s.pc = 58; return s.tmp_4; + s.tmp_4.arg1 = s.s___38113; + s.callLocIdx = 578; s.pc = 58; return s.tmp_4; case 58: r0 = s.retval; case 33: case 34: - s.tmp_0 = r0 = s.tileMap___509968; + s.tmp_0 = r0 = s.tileMap___38031; r0 = pxsim_numops_toBool(s.tmp_0); if (r0) { step = 35; continue; } r0 = s.tmp_0; { step = 36; continue; } case 35: - r0 = s.tileMap___509968.fields["_map"]; + r0 = s.tileMap___38031.fields["_map"]; s.tmp_4 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_4); s.tmp_3 = r0; @@ -35370,79 +36844,79 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 37; continue; } - s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P498749_mk(s); + s.tmp_6 = ArcadePhysicsEngine_tilemapCollisions__P26072_mk(s); s.tmp_6.arg0 = s.arg0; - s.tmp_6.arg1 = s.ms___510048; - s.tmp_6.arg2 = s.tileMap___509968; - s.callLocIdx = 478; s.pc = 59; return s.tmp_6; + s.tmp_6.arg1 = s.ms___38111; + s.tmp_6.arg2 = s.tileMap___38031; + s.callLocIdx = 580; s.pc = 59; return s.tmp_6; case 59: r0 = s.retval; case 37: case 38: - s.tmp_2 = Fx_abs__P494916_mk(s); - r0 = s.ms___510048.fields["dx"]; + s.tmp_2 = Fx_abs__P21860_mk(s); + r0 = s.ms___38111.fields["dx"]; s.tmp_2.arg0 = r0; - s.callLocIdx = 479; s.pc = 60; return s.tmp_2; + s.callLocIdx = 581; s.pc = 60; return s.tmp_2; case 60: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___496944); + r0 = (s.tmp_1 > globals.MIN_MOVE_GAP___23995); 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__P494916_mk(s); - r0 = s.ms___510048.fields["dy"]; + s.tmp_4 = Fx_abs__P21860_mk(s); + r0 = s.ms___38111.fields["dy"]; s.tmp_4.arg0 = r0; - s.callLocIdx = 480; s.pc = 61; return s.tmp_4; + s.callLocIdx = 582; s.pc = 61; return s.tmp_4; case 61: r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___496944); + r0 = (s.tmp_3 > globals.MIN_MOVE_GAP___23995); 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___510043, s.ms___510048); + r0 = pxsim_Array__push(s.remainingMovers___38106, s.ms___38111); case 41: case 42: - r0 = (s.unnamed1743___U14 + 1); - s.unnamed1743___U14 = (r0); + r0 = (s.unnamed167___U14 + 1); + s.unnamed167___U14 = (r0); { step = 4; continue; } case 43: - s.unnamed1742___U13 = (undefined); - s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P498748_mk(s); + s.unnamed166___U13 = (undefined); + s.tmp_0 = ArcadePhysicsEngine_spriteCollisions__P26071_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.currMovers___510036; - s.tmp_0.arg2 = s.overlapHandlers___510014; - s.callLocIdx = 481; s.pc = 62; return s.tmp_0; + s.tmp_0.arg1 = s.currMovers___38099; + s.tmp_0.arg2 = s.overlapHandlers___38077; + s.callLocIdx = 583; s.pc = 62; return s.tmp_0; case 62: r0 = s.retval; case 44: - r0 = pxsim_Array__length(s.currMovers___510036); + r0 = pxsim_Array__length(s.currMovers___38099); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 45; continue; } - r0 = pxsim_Array_.pop(s.currMovers___510036); + r0 = pxsim_Array_.pop(s.currMovers___38099); { step = 44; continue; } case 45: - r0 = (s.count___510026 + 1); - s.count___510026 = (r0); + r0 = (s.count___38089 + 1); + s.count___38089 = (r0); { step = 1; continue; } case 46: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_move__P496962.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__P24013.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__P496962_mk(s) { +function ArcadePhysicsEngine_move__P24013_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_move__P496962, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move__P24013, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35456,24 +36930,24 @@ function ArcadePhysicsEngine_move__P496962_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - dtMs___509955: undefined, - dt2___509961: undefined, - scene___509965: undefined, - tileMap___509968: undefined, - movingSprites___509971: undefined, - MAX_STEP_COUNT___510002: undefined, - overlapHandlers___510014: undefined, - selected___510021: undefined, - buffers___510022: undefined, - count___510026: undefined, - currMovers___510036: undefined, - remainingMovers___510043: undefined, - ms___510048: undefined, - unnamed1742___U13: undefined, - unnamed1743___U14: undefined, - s___510050: undefined, - stepX___510143: undefined, - stepY___510157: undefined, + dtMs___38018: undefined, + dt2___38024: undefined, + scene___38028: undefined, + tileMap___38031: undefined, + movingSprites___38034: undefined, + MAX_STEP_COUNT___38065: undefined, + overlapHandlers___38077: undefined, + selected___38084: undefined, + buffers___38085: undefined, + count___38089: undefined, + currMovers___38099: undefined, + remainingMovers___38106: undefined, + ms___38111: undefined, + unnamed166___U13: undefined, + unnamed167___U14: undefined, + s___38113: undefined, + stepX___38206: undefined, + stepY___38220: undefined, arg0: undefined, arg1: undefined, } } @@ -35482,7 +36956,7 @@ function ArcadePhysicsEngine_move__P496962_mk(s) { -function inline__P509973(s) { +function movingSprites_inline__P38036(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35496,23 +36970,23 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P498747_mk(s); + s.tmp_0 = ArcadePhysicsEngine_createMovingSprite__P26070_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 = 451; s.pc = 1; return s.tmp_0; + s.callLocIdx = 553; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P509973.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__P38036.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__P509973_mk(s) { +function movingSprites_inline__P38036_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509973, depth: s.depth + 1, + parent: s, fn: movingSprites_inline__P38036, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -35522,7 +36996,7 @@ function inline__P509973_mk(s) { -function inline__P509985(s) { +function ArcadePhysicsEngine_move_inline__P38048(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35536,9 +37010,9 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_1 = Sprite_vx__P496802_mk(s); + s.tmp_1 = Sprite_vx__P23840_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 453; s.pc = 5; return s.tmp_1; + s.callLocIdx = 555; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0 = r0; @@ -35547,9 +37021,9 @@ switch (step) { r0 = s.tmp_0; { step = 2; continue; } case 1: - s.tmp_2 = Sprite_vy__P496804_mk(s); + s.tmp_2 = Sprite_vy__P23842_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 454; s.pc = 6; return s.tmp_2; + s.callLocIdx = 556; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; case 2: @@ -35557,9 +37031,9 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 3; continue; } - s.tmp_4 = Sprite_clearObstacles__P496859_mk(s); + s.tmp_4 = Sprite_clearObstacles__P23907_mk(s); s.tmp_4.arg0 = s.arg0; - s.callLocIdx = 455; s.pc = 7; return s.tmp_4; + s.callLocIdx = 557; s.pc = 7; return s.tmp_4; case 7: r0 = s.retval; case 3: @@ -35568,12 +37042,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P509985.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__P38048.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__P509985_mk(s) { +function ArcadePhysicsEngine_move_inline__P38048_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P509985, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_move_inline__P38048, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35587,7 +37061,7 @@ function inline__P509985_mk(s) { -function ArcadePhysicsEngine_spriteCollisions__P498748(s) { +function ArcadePhysicsEngine_spriteCollisions__P26071(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35597,18 +37071,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ms___510258 = undefined; - s.unnamed1744___U1 = undefined; - s.unnamed1745___U2 = undefined; - s.sprite___510260 = undefined; - s.overSprites___510267 = undefined; - s.overlapper___510275 = undefined; - s.unnamed1746___U6 = undefined; - s.unnamed1747___U7 = undefined; - s.thisKind___510281 = undefined; - s.otherKind___510285 = undefined; - s.higher___510298 = undefined; - s.lower___510307 = undefined; + s.ms___38321 = undefined; + s.unnamed168___U1 = undefined; + s.unnamed169___U2 = undefined; + s.sprite___38323 = undefined; + s.overSprites___38330 = undefined; + s.overlapper___38338 = undefined; + s.unnamed170___U6 = undefined; + s.unnamed171___U7 = undefined; + s.thisKind___38344 = undefined; + s.otherKind___38348 = undefined; + s.higher___38361 = undefined; + s.lower___38370 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -35616,7 +37090,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = pxsim_Array__length(s.arg2); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -35628,20 +37102,20 @@ switch (step) { { step = 21; continue; } case 1: case 2: - s.ms___510258 = (undefined); - s.unnamed1744___U1 = (s.arg1); - s.unnamed1745___U2 = (0); + s.ms___38321 = (undefined); + s.unnamed168___U1 = (s.arg1); + s.unnamed169___U2 = (0); case 3: - s.tmp_0 = r0 = s.unnamed1745___U2; - r0 = pxsim_Array__length(s.unnamed1744___U1); + s.tmp_0 = r0 = s.unnamed169___U2; + r0 = pxsim_Array__length(s.unnamed168___U1); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 20; continue; } - r0 = pxsim_Array__getAt(s.unnamed1744___U1, s.unnamed1745___U2); - s.ms___510258 = (r0); - r0 = s.ms___510258.fields["sprite"]; - s.sprite___510260 = (r0); - r0 = s.sprite___510260.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed168___U1, s.unnamed169___U2); + s.ms___38321 = (r0); + r0 = s.ms___38321.fields["sprite"]; + s.sprite___38323 = (r0); + r0 = s.sprite___38323.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4610); s.tmp_0 = r0; @@ -35650,27 +37124,27 @@ switch (step) { { step = 19; continue; } case 4: case 5: - s.tmp_2 = sprites_SpriteMap_overlaps__P496872_mk(s); + s.tmp_2 = sprites_SpriteMap_overlaps__P23923_mk(s); r0 = s.arg0.fields["map"]; s.tmp_2.arg0 = r0; - r0 = s.ms___510258.fields["sprite"]; + r0 = s.ms___38321.fields["sprite"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 519; s.pc = 22; return s.tmp_2; + s.callLocIdx = 621; s.pc = 22; return s.tmp_2; case 22: r0 = s.retval; - s.overSprites___510267 = (r0); - s.overlapper___510275 = (undefined); - s.unnamed1746___U6 = (s.overSprites___510267); - s.unnamed1747___U7 = (0); + s.overSprites___38330 = (r0); + s.overlapper___38338 = (undefined); + s.unnamed170___U6 = (s.overSprites___38330); + s.unnamed171___U7 = (0); case 6: - s.tmp_0 = r0 = s.unnamed1747___U7; - r0 = pxsim_Array__length(s.unnamed1746___U6); + s.tmp_0 = r0 = s.unnamed171___U7; + r0 = pxsim_Array__length(s.unnamed170___U6); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 18; continue; } - r0 = pxsim_Array__getAt(s.unnamed1746___U6, s.unnamed1747___U7); - s.overlapper___510275 = (r0); - r0 = s.overlapper___510275.fields["flags"]; + r0 = pxsim_Array__getAt(s.unnamed170___U6, s.unnamed171___U7); + s.overlapper___38338 = (r0); + r0 = s.overlapper___38338.fields["flags"]; s.tmp_3 = r0; r0 = (s.tmp_3 & 4610); s.tmp_2 = r0; @@ -35679,13 +37153,13 @@ switch (step) { { step = 17; continue; } case 7: case 8: - r0 = s.sprite___510260.fields["_kind"]; - s.thisKind___510281 = (r0); - r0 = s.overlapper___510275.fields["_kind"]; - s.otherKind___510285 = (r0); - r0 = s.sprite___510260.fields["_kindsOverlappedWith"]; + r0 = s.sprite___38323.fields["_kind"]; + s.thisKind___38344 = (r0); + r0 = s.overlapper___38338.fields["_kind"]; + s.otherKind___38348 = (r0); + r0 = s.sprite___38323.fields["_kindsOverlappedWith"]; s.tmp_2 = r0; - r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___510285, undefined); + r0 = pxsim_Array_.indexOf(s.tmp_2, s.otherKind___38348, undefined); s.tmp_1 = r0; r0 = (s.tmp_1 === -1); s.tmp_0 = r0; @@ -35694,37 +37168,37 @@ switch (step) { { step = 17; continue; } case 9: case 10: - r0 = s.sprite___510260.fields["id"]; + r0 = s.sprite___38323.fields["id"]; s.tmp_4 = r0; - r0 = s.overlapper___510275.fields["id"]; + r0 = s.overlapper___38338.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___510260; + r0 = s.sprite___38323; { step = 12; continue; } case 11: - r0 = s.overlapper___510275; + r0 = s.overlapper___38338; case 12: // jmp value (already in r0) s.tmp_6 = r0; - s.higher___510298 = (s.tmp_6); - r0 = (s.higher___510298 === s.sprite___510260); + s.higher___38361 = (s.tmp_6); + r0 = (s.higher___38361 === s.sprite___38323); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 13; continue; } - r0 = s.overlapper___510275; + r0 = s.overlapper___38338; { step = 14; continue; } case 13: - r0 = s.sprite___510260; + r0 = s.sprite___38323; case 14: // jmp value (already in r0) s.tmp_1 = r0; - s.lower___510307 = (s.tmp_1); - r0 = s.higher___510298.fields["_overlappers"]; + s.lower___38370 = (s.tmp_1); + r0 = s.higher___38361.fields["_overlappers"]; s.tmp_2 = r0; - r0 = s.lower___510307.fields["id"]; + r0 = s.lower___38370.fields["id"]; s.tmp_3 = r0; r0 = pxsim_Array_.indexOf(s.tmp_2, s.tmp_3, undefined); s.tmp_1 = r0; @@ -35732,54 +37206,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__P510327); + r0 = pxsim_pxtcore_mkAction(2, forEach_inline__P38390); s.tmp_4 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___510281); - r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___510285); - r0 = pxsim_pxtcore_mkAction(5, inline__P510351); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 0, s.thisKind___38344); + r0 = pxsim_pxtrt_stclo(s.tmp_4, 1, s.otherKind___38348); + r0 = pxsim_pxtcore_mkAction(5, ArcadePhysicsEngine_spriteCollisions_inline__P38414); s.tmp_5 = r0; - r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___510298); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___510307); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___510260); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___510275); - r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___510281); - s.tmp_6 = helpers_arrayForEach__P494861_mk(s); - s.tmp_7 = helpers_arrayFilter__P494862_mk(s); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 0, s.higher___38361); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 1, s.lower___38370); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 2, s.sprite___38323); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 3, s.overlapper___38338); + r0 = pxsim_pxtrt_stclo(s.tmp_5, 4, s.thisKind___38344); + s.tmp_6 = helpers_arrayForEach__P21804_mk(s); + s.tmp_7 = helpers_arrayFilter__P21805_mk(s); s.tmp_7.arg0 = s.arg2; s.tmp_7.arg1 = s.tmp_4; - s.callLocIdx = 522; s.pc = 24; return s.tmp_7; + s.callLocIdx = 624; 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 = 524; s.pc = 23; return s.tmp_6; + s.callLocIdx = 626; s.pc = 23; return s.tmp_6; case 23: r0 = s.retval; case 15: case 16: case 17: - r0 = (s.unnamed1747___U7 + 1); - s.unnamed1747___U7 = (r0); + r0 = (s.unnamed171___U7 + 1); + s.unnamed171___U7 = (r0); { step = 6; continue; } case 18: - s.unnamed1746___U6 = (undefined); + s.unnamed170___U6 = (undefined); case 19: - r0 = (s.unnamed1745___U2 + 1); - s.unnamed1745___U2 = (r0); + r0 = (s.unnamed169___U2 + 1); + s.unnamed169___U2 = (r0); { step = 3; continue; } case 20: - s.unnamed1744___U1 = (undefined); + s.unnamed168___U1 = (undefined); case 21: r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_spriteCollisions__P498748.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__P26071.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__P498748_mk(s) { +function ArcadePhysicsEngine_spriteCollisions__P26071_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P498748, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions__P26071, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35789,18 +37263,18 @@ function ArcadePhysicsEngine_spriteCollisions__P498748_mk(s) { tmp_5: undefined, tmp_6: undefined, tmp_7: undefined, - ms___510258: undefined, - unnamed1744___U1: undefined, - unnamed1745___U2: undefined, - sprite___510260: undefined, - overSprites___510267: undefined, - overlapper___510275: undefined, - unnamed1746___U6: undefined, - unnamed1747___U7: undefined, - thisKind___510281: undefined, - otherKind___510285: undefined, - higher___510298: undefined, - lower___510307: undefined, + ms___38321: undefined, + unnamed168___U1: undefined, + unnamed169___U2: undefined, + sprite___38323: undefined, + overSprites___38330: undefined, + overlapper___38338: undefined, + unnamed170___U6: undefined, + unnamed171___U7: undefined, + thisKind___38344: undefined, + otherKind___38348: undefined, + higher___38361: undefined, + lower___38370: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -35810,7 +37284,7 @@ function ArcadePhysicsEngine_spriteCollisions__P498748_mk(s) { -function inline__P510327(s) { +function forEach_inline__P38390(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35867,12 +37341,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P510327.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__P38390.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__P510327_mk(s) { +function forEach_inline__P38390_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P510327, depth: s.depth + 1, + parent: s, fn: forEach_inline__P38390, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35890,7 +37364,7 @@ function inline__P510327_mk(s) { -function inline__P510351(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P38414(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35909,7 +37383,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__P510361); + r0 = pxsim_pxtcore_mkAction(6, ArcadePhysicsEngine_spriteCollisions_inline__P38424); 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]); @@ -35922,12 +37396,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P510351.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__P38414.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__P510351_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P38414_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P510351, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P38414, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -35938,7 +37412,7 @@ function inline__P510351_mk(s) { -function inline__P510361(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P38424(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -35994,12 +37468,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 = 523; s.pc = 7; return s.tmp_12; + s.callLocIdx = 625; 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 = 523; s.pc = 7; return s.tmp_12; } - else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 523; s.pc = 7; return s.tmp_12;; } - else { s.callLocIdx = 523; 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 = 625; s.pc = 7; return s.tmp_12; } + else if (s.tmp_12.fn.isGetter) { s.tmp_12.stage2Call = true; s.callLocIdx = 625; s.pc = 7; return s.tmp_12;; } + else { s.callLocIdx = 625; s.pc = 7; return s.tmp_12; } } case 7: r0 = s.retval; @@ -36014,12 +37488,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -inline__P510361.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__P38424.info = {"start":11135,"length":503,"line":333,"column":50,"endLine":341,"endColumn":29,"fileName":"pxt_modules/game/physics.ts","functionName":"inline","argumentNames":[]} -function inline__P510361_mk(s) { +function ArcadePhysicsEngine_spriteCollisions_inline__P38424_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P510361, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_spriteCollisions_inline__P38424, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36040,7 +37514,7 @@ function inline__P510361_mk(s) { -function sprites_SpriteMap_overlaps__P496872(s) { +function sprites_SpriteMap_overlaps__P23923(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36050,47 +37524,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___510395 = undefined; - s.o___510399 = undefined; + s.n___38458 = undefined; + s.o___38462 = 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__C496869_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_neighbors__P496871_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_neighbors__P23922_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 397; s.pc = 1; return s.tmp_0; + s.callLocIdx = 499; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.n___510395 = (r0); - r0 = pxsim_pxtcore_mkAction(1, inline__P510401); + s.n___38458 = (r0); + r0 = pxsim_pxtcore_mkAction(1, o_inline__P38464); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg1); - s.tmp_1 = helpers_arrayFilter__P494862_mk(s); - s.tmp_1.arg0 = s.n___510395; + s.tmp_1 = helpers_arrayFilter__P21805_mk(s); + s.tmp_1.arg0 = s.n___38458; s.tmp_1.arg1 = s.tmp_0; - s.callLocIdx = 399; s.pc = 2; return s.tmp_1; + s.callLocIdx = 501; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; - s.o___510399 = (r0); - r0 = s.o___510399; + s.o___38462 = (r0); + r0 = s.o___38462; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_overlaps__P496872.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__P23923.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__P496872_mk(s) { +function sprites_SpriteMap_overlaps__P23923_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_overlaps__P496872, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_overlaps__P23923, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, - n___510395: undefined, - o___510399: undefined, + n___38458: undefined, + o___38462: undefined, arg0: undefined, arg1: undefined, } } @@ -36099,7 +37573,7 @@ function sprites_SpriteMap_overlaps__P496872_mk(s) { -function inline__P510401(s) { +function o_inline__P38464(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36113,21 +37587,21 @@ switch (step) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } - s.tmp_0 = Sprite_overlapsWith__P496855_mk(s); + s.tmp_0 = Sprite_overlapsWith__P23902_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; - s.callLocIdx = 398; s.pc = 1; return s.tmp_0; + s.callLocIdx = 500; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -inline__P510401.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__P38464.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__P510401_mk(s) { +function o_inline__P38464_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P510401, depth: s.depth + 1, + parent: s, fn: o_inline__P38464, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -36137,7 +37611,7 @@ function inline__P510401_mk(s) { -function sprites_SpriteMap_neighbors__P496871(s) { +function sprites_SpriteMap_neighbors__P23922(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36147,112 +37621,112 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.n___510443 = undefined; - s.layer___510445 = undefined; + s.n___38712 = undefined; + s.layer___38714 = 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__C496869_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); r0 = pxsim_Array__mk(); - s.n___510443 = (r0); + s.n___38712 = (r0); r0 = s.arg1.fields["layer"]; - s.layer___510445 = (r0); - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P498712_mk(s); + s.layer___38714 = (r0); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P26035_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P496835_mk(s); + s.tmp_1 = Sprite_left__P23881_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 385; s.pc = 2; return s.tmp_1; + s.callLocIdx = 487; s.pc = 2; return s.tmp_1; case 2: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P496839_mk(s); + s.tmp_2 = Sprite_top__P23885_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 386; s.pc = 3; return s.tmp_2; + s.callLocIdx = 488; s.pc = 3; return s.tmp_2; case 3: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___510445; - s.tmp_0.arg4 = s.n___510443; - s.callLocIdx = 387; s.pc = 1; return s.tmp_0; + s.tmp_0.arg3 = s.layer___38714; + s.tmp_0.arg4 = s.n___38712; + s.callLocIdx = 489; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P498712_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P26035_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_left__P496835_mk(s); + s.tmp_1 = Sprite_left__P23881_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 388; s.pc = 5; return s.tmp_1; + s.callLocIdx = 490; s.pc = 5; return s.tmp_1; case 5: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P496841_mk(s); + s.tmp_2 = Sprite_bottom__P23887_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 389; s.pc = 6; return s.tmp_2; + s.callLocIdx = 491; s.pc = 6; return s.tmp_2; case 6: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___510445; - s.tmp_0.arg4 = s.n___510443; - s.callLocIdx = 390; s.pc = 4; return s.tmp_0; + s.tmp_0.arg3 = s.layer___38714; + s.tmp_0.arg4 = s.n___38712; + s.callLocIdx = 492; s.pc = 4; return s.tmp_0; case 4: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P498712_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P26035_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P496837_mk(s); + s.tmp_1 = Sprite_right__P23883_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 391; s.pc = 8; return s.tmp_1; + s.callLocIdx = 493; s.pc = 8; return s.tmp_1; case 8: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_top__P496839_mk(s); + s.tmp_2 = Sprite_top__P23885_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 392; s.pc = 9; return s.tmp_2; + s.callLocIdx = 494; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___510445; - s.tmp_0.arg4 = s.n___510443; - s.callLocIdx = 393; s.pc = 7; return s.tmp_0; + s.tmp_0.arg3 = s.layer___38714; + s.tmp_0.arg4 = s.n___38712; + s.callLocIdx = 495; s.pc = 7; return s.tmp_0; case 7: r0 = s.retval; - s.tmp_0 = sprites_SpriteMap_mergeAtKey__P498712_mk(s); + s.tmp_0 = sprites_SpriteMap_mergeAtKey__P26035_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_1 = Sprite_right__P496837_mk(s); + s.tmp_1 = Sprite_right__P23883_mk(s); s.tmp_1.arg0 = s.arg1; - s.callLocIdx = 394; s.pc = 11; return s.tmp_1; + s.callLocIdx = 496; s.pc = 11; return s.tmp_1; case 11: r0 = s.retval; s.tmp_0.arg1 = r0; - s.tmp_2 = Sprite_bottom__P496841_mk(s); + s.tmp_2 = Sprite_bottom__P23887_mk(s); s.tmp_2.arg0 = s.arg1; - s.callLocIdx = 395; s.pc = 12; return s.tmp_2; + s.callLocIdx = 497; s.pc = 12; return s.tmp_2; case 12: r0 = s.retval; s.tmp_0.arg2 = r0; - s.tmp_0.arg3 = s.layer___510445; - s.tmp_0.arg4 = s.n___510443; - s.callLocIdx = 396; s.pc = 10; return s.tmp_0; + s.tmp_0.arg3 = s.layer___38714; + s.tmp_0.arg4 = s.n___38712; + s.callLocIdx = 498; s.pc = 10; return s.tmp_0; case 10: r0 = s.retval; - r0 = pxsim_Array_.removeElement(s.n___510443, s.arg1); - r0 = s.n___510443; + r0 = pxsim_Array_.removeElement(s.n___38712, s.arg1); + r0 = s.n___38712; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_neighbors__P496871.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__P23922.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__P496871_mk(s) { +function sprites_SpriteMap_neighbors__P23922_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_neighbors__P496871, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_neighbors__P23922, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - n___510443: undefined, - layer___510445: undefined, + n___38712: undefined, + layer___38714: undefined, arg0: undefined, arg1: undefined, } } @@ -36261,7 +37735,7 @@ function sprites_SpriteMap_neighbors__P496871_mk(s) { -function sprites_SpriteMap_mergeAtKey__P498712(s) { +function sprites_SpriteMap_mergeAtKey__P26035(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36271,11 +37745,11 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___510498 = undefined; - s.bucket___510503 = undefined; - s.sprite___510510 = undefined; - s.unnamed1740___U3 = undefined; - s.unnamed1741___U4 = undefined; + s.k___38763 = undefined; + s.bucket___38768 = undefined; + s.sprite___38775 = undefined; + s.unnamed164___U3 = undefined; + s.unnamed165___U4 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36285,33 +37759,33 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C496869_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P498710_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P26033_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 423; s.pc = 9; return s.tmp_0; + s.callLocIdx = 525; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___510498 = (r0); + s.k___38763 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___510498); - s.bucket___510503 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___510503); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___38763); + s.bucket___38768 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___38768); if (!r0) { step = 7; continue; } - s.sprite___510510 = (undefined); - s.unnamed1740___U3 = (s.bucket___510503); - s.unnamed1741___U4 = (0); + s.sprite___38775 = (undefined); + s.unnamed164___U3 = (s.bucket___38768); + s.unnamed165___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1741___U4; - r0 = pxsim_Array__length(s.unnamed1740___U3); + s.tmp_0 = r0 = s.unnamed165___U4; + r0 = pxsim_Array__length(s.unnamed164___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed1740___U3, s.unnamed1741___U4); - s.sprite___510510 = (r0); - r0 = s.sprite___510510.fields["layer"]; + r0 = pxsim_Array__getAt(s.unnamed164___U3, s.unnamed165___U4); + s.sprite___38775 = (r0); + r0 = s.sprite___38775.fields["layer"]; s.tmp_3 = r0; r0 = (s.tmp_3 & s.arg3); s.tmp_2 = r0; @@ -36320,7 +37794,7 @@ switch (step) { r0 = s.tmp_2; { step = 3; continue; } case 2: - r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___510510, undefined); + r0 = pxsim_Array_.indexOf(s.arg4, s.sprite___38775, undefined); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 3: @@ -36328,26 +37802,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___510510); + r0 = pxsim_Array__push(s.arg4, s.sprite___38775); case 4: case 5: - r0 = (s.unnamed1741___U4 + 1); - s.unnamed1741___U4 = (r0); + r0 = (s.unnamed165___U4 + 1); + s.unnamed165___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed1740___U3 = (undefined); + s.unnamed164___U3 = (undefined); case 7: case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_mergeAtKey__P498712.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__P26035.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__P498712_mk(s) { +function sprites_SpriteMap_mergeAtKey__P26035_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_mergeAtKey__P498712, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_mergeAtKey__P26035, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36355,11 +37829,11 @@ function sprites_SpriteMap_mergeAtKey__P498712_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - k___510498: undefined, - bucket___510503: undefined, - sprite___510510: undefined, - unnamed1740___U3: undefined, - unnamed1741___U4: undefined, + k___38763: undefined, + bucket___38768: undefined, + sprite___38775: undefined, + unnamed164___U3: undefined, + unnamed165___U4: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36371,7 +37845,7 @@ function sprites_SpriteMap_mergeAtKey__P498712_mk(s) { -function sprites_SpriteMap_key__P498710(s) { +function sprites_SpriteMap_key__P26033(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36381,8 +37855,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.xi___510531 = undefined; - s.yi___510543 = undefined; + s.xi___38796 = undefined; + s.yi___38808 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36390,8 +37864,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C496869_VT)) failedCast(r0); - s.tmp_0 = Math_clamp__P494878_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); + s.tmp_0 = Math_clamp__P21822_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["columnCount"]; s.tmp_0.arg1 = r0; @@ -36399,11 +37873,11 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg1, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 411; s.pc = 1; return s.tmp_0; + s.callLocIdx = 513; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.xi___510531 = (r0); - s.tmp_0 = Math_clamp__P494878_mk(s); + s.xi___38796 = (r0); + s.tmp_0 = Math_clamp__P21822_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg0.fields["rowCount"]; s.tmp_0.arg1 = r0; @@ -36411,31 +37885,31 @@ switch (step) { s.tmp_1 = r0; r0 = pxsim.Math_.idiv(s.arg2, s.tmp_1); s.tmp_0.arg2 = r0; - s.callLocIdx = 412; s.pc = 2; return s.tmp_0; + s.callLocIdx = 514; s.pc = 2; return s.tmp_0; case 2: r0 = s.retval; - s.yi___510543 = (r0); - s.tmp_0 = r0 = s.xi___510531; + s.yi___38808 = (r0); + s.tmp_0 = r0 = s.xi___38796; r0 = s.arg0.fields["columnCount"]; s.tmp_2 = r0; - r0 = (s.yi___510543 * s.tmp_2); + r0 = (s.yi___38808 * s.tmp_2); s.tmp_1 = r0; r0 = (s.tmp_0 + s.tmp_1); return leave(s, r0) default: oops() } } } -sprites_SpriteMap_key__P498710.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__P26033.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__P498710_mk(s) { +function sprites_SpriteMap_key__P26033_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_key__P498710, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_key__P26033, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - xi___510531: undefined, - yi___510543: undefined, + xi___38796: undefined, + yi___38808: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -36445,7 +37919,7 @@ function sprites_SpriteMap_key__P498710_mk(s) { -function Sprite_bottom__P496841(s) { +function Sprite_bottom__P23887(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36460,28 +37934,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_1 = Sprite_top__P496839_mk(s); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_1 = Sprite_top__P23885_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 277; s.pc = 1; return s.tmp_1; + s.callLocIdx = 352; 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__P23880_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 353; 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__P496841.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__P496841.isGetter = true; +Sprite_bottom__P23887.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__P23887.isGetter = true; -function Sprite_bottom__P496841_mk(s) { +function Sprite_bottom__P23887_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P496841, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P23887, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36494,7 +37970,7 @@ function Sprite_bottom__P496841_mk(s) { -function Sprite_height__P496834(s) { +function Sprite_right__P23883(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36509,22 +37985,35 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - r0 = s.arg0.fields["_image"]; + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_1 = Sprite_left__P23881_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 344; 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__P23879_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 345; 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__P496834.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__P496834.isGetter = true; +Sprite_right__P23883.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__P23883.isGetter = true; -function Sprite_height__P496834_mk(s) { +function Sprite_right__P23883_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_height__P496834, depth: s.depth + 1, + parent: s, fn: Sprite_right__P23883, depth: s.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, } } @@ -36532,7 +38021,7 @@ function Sprite_height__P496834_mk(s) { -function Sprite_right__P496837(s) { +function Sprite_overlapsWith__P23902(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36542,33 +38031,434 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: + s.A___38528 = undefined; + s.B___38529 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); + s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_1 = Sprite_left__P496835_mk(s); - s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 269; s.pc = 1; return s.tmp_1; + if (!checkSubtype(r0, Sprite__C23823_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__P23707_mk(s); + r0 = s.arg1.fields["_hitbox"]; + s.tmp_8.arg0 = r0; + r0 = s.arg0.fields["_hitbox"]; + s.tmp_8.arg1 = r0; + s.callLocIdx = 424; 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__P26032_mk(s); + s.tmp_12.arg0 = s.arg0; + s.callLocIdx = 425; 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__P26032_mk(s); + s.tmp_15.arg0 = s.arg1; + s.callLocIdx = 426; 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__P23881_mk(s); + s.tmp_21.arg0 = s.arg0; + s.callLocIdx = 427; s.pc = 27; return s.tmp_21; + case 27: + r0 = s.retval; + s.tmp_20 = r0; + s.tmp_23 = Sprite_left__P23881_mk(s); + s.tmp_23.arg0 = s.arg1; + s.callLocIdx = 428; 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__P23885_mk(s); + s.tmp_26.arg0 = s.arg0; + s.callLocIdx = 429; s.pc = 29; return s.tmp_26; + case 29: + r0 = s.retval; + s.tmp_25 = r0; + s.tmp_28 = Sprite_top__P23885_mk(s); + s.tmp_28.arg0 = s.arg1; + s.callLocIdx = 430; 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__P23852_mk(s); + s.tmp_31.arg0 = s.arg0; + s.callLocIdx = 431; 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__P23854_mk(s); + s.tmp_33.arg0 = s.arg0; + s.callLocIdx = 432; 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__P23852_mk(s); + s.tmp_36.arg0 = s.arg1; + s.callLocIdx = 433; 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__P23854_mk(s); + s.tmp_39.arg0 = s.arg1; + s.callLocIdx = 434; 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__P23852_mk(s); + s.tmp_44.arg0 = s.arg0; + s.callLocIdx = 435; s.pc = 35; return s.tmp_44; + case 35: + r0 = s.retval; + s.tmp_43 = r0; + s.tmp_46 = Sprite_sy__P23854_mk(s); + s.tmp_46.arg0 = s.arg0; + s.callLocIdx = 436; 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__P23852_mk(s); + s.tmp_49.arg0 = s.arg1; + s.callLocIdx = 437; s.pc = 37; return s.tmp_49; + case 37: + r0 = s.retval; + s.tmp_48 = r0; + s.tmp_51 = Sprite_sy__P23854_mk(s); + s.tmp_51.arg0 = s.arg1; + s.callLocIdx = 438; 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___38528 = (s.arg0); + s.B___38529 = (s.arg1); + { step = 21; continue; } + case 20: + s.A___38528 = (s.arg1); + s.B___38529 = (s.arg0); + case 21: + s.tmp_0 = helpers_imageBlit__P23447_mk(s); + r0 = s.A___38528.fields["_image"]; + s.tmp_0.arg0 = r0; + s.tmp_3 = Sprite_left__P23881_mk(s); + s.tmp_3.arg0 = s.B___38529; + s.callLocIdx = 440; 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__P23881_mk(s); + s.tmp_5.arg0 = s.A___38528; + s.callLocIdx = 441; 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__P23852_mk(s); + s.tmp_7.arg0 = s.A___38528; + s.callLocIdx = 442; 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__P23885_mk(s); + s.tmp_10.arg0 = s.B___38529; + s.callLocIdx = 443; s.pc = 43; return s.tmp_10; + case 43: + r0 = s.retval; + s.tmp_9 = r0; + s.tmp_12 = Sprite_top__P23885_mk(s); + s.tmp_12.arg0 = s.A___38528; + s.callLocIdx = 444; 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__P23854_mk(s); + s.tmp_14.arg0 = s.A___38528; + s.callLocIdx = 445; 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__P23879_mk(s); + s.tmp_16.arg0 = s.B___38529; + s.callLocIdx = 446; s.pc = 46; return s.tmp_16; + case 46: + r0 = s.retval; + s.tmp_15 = r0; + s.tmp_18 = Sprite_sx__P23852_mk(s); + s.tmp_18.arg0 = s.A___38528; + s.callLocIdx = 447; 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__P23880_mk(s); + s.tmp_20.arg0 = s.B___38529; + s.callLocIdx = 448; s.pc = 48; return s.tmp_20; + case 48: + r0 = s.retval; + s.tmp_19 = r0; + s.tmp_22 = Sprite_sy__P23854_mk(s); + s.tmp_22.arg0 = s.A___38528; + s.callLocIdx = 449; 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___38529.fields["_image"]; + s.tmp_0.arg5 = r0; + s.tmp_0.arg6 = 0; + s.tmp_0.arg7 = 0; + r0 = s.B___38529.fields["_image"]; + s.tmp_23 = r0; + r0 = pxsim_ImageMethods.width(s.tmp_23); + s.tmp_0.arg8 = r0; + r0 = s.B___38529.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 = 453; 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_overlapsWith__P23902.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_overlapsWith__P23902_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: Sprite_overlapsWith__P23902, depth: s.depth + 1, + pc: 0, retval: undefined, 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___38528: undefined, + B___38529: undefined, + arg0: undefined, + arg1: undefined, +} } + + + + + +function Sprite_isScaled__P26032(s) { +let r0 = s.r0, 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__C23823_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_right__P496837.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__P496837.isGetter = true; +Sprite_isScaled__P26032.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_right__P496837_mk(s) { +function Sprite_isScaled__P26032_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P496837, depth: s.depth + 1, + parent: s, fn: Sprite_isScaled__P26032, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36581,7 +38471,7 @@ function Sprite_right__P496837_mk(s) { -function Sprite_overlapsWith__P496855(s) { +function game_Hitbox_overlapsWith__P23707(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36597,78 +38487,336 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - r0 = (s.arg1 == s.arg0); + if (!checkSubtype(r0, game_Hitbox__C23693_VT)) failedCast(r0); + s.tmp_1 = game_Hitbox_contains__P23706_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_2 = game_Hitbox_left__P23701_mk(s); + s.tmp_2.arg0 = s.arg1; + s.callLocIdx = 222; s.pc = 19; return s.tmp_2; + case 19: + r0 = s.retval; + s.tmp_1.arg1 = r0; + s.tmp_3 = game_Hitbox_top__P23702_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 223; s.pc = 20; return s.tmp_3; + case 20: + r0 = s.retval; + s.tmp_1.arg2 = r0; + s.callLocIdx = 224; 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__P23706_mk(s); + s.tmp_5.arg0 = s.arg0; + s.tmp_6 = game_Hitbox_left__P23701_mk(s); + s.tmp_6.arg0 = s.arg1; + s.callLocIdx = 225; s.pc = 22; return s.tmp_6; + case 22: + r0 = s.retval; + s.tmp_5.arg1 = r0; + s.tmp_7 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_7.arg0 = s.arg1; + s.callLocIdx = 226; s.pc = 23; return s.tmp_7; + case 23: + r0 = s.retval; + s.tmp_5.arg2 = r0; + s.callLocIdx = 227; 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__P23706_mk(s); + s.tmp_9.arg0 = s.arg0; + s.tmp_10 = game_Hitbox_right__P23703_mk(s); + s.tmp_10.arg0 = s.arg1; + s.callLocIdx = 228; s.pc = 25; return s.tmp_10; + case 25: + r0 = s.retval; + s.tmp_9.arg1 = r0; + s.tmp_11 = game_Hitbox_top__P23702_mk(s); + s.tmp_11.arg0 = s.arg1; + s.callLocIdx = 229; s.pc = 26; return s.tmp_11; + case 26: + r0 = s.retval; + s.tmp_9.arg2 = r0; + s.callLocIdx = 230; 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__P496835_mk(s); - s.tmp_9.arg0 = s.arg0; - s.callLocIdx = 347; s.pc = 8; return s.tmp_9; + s.tmp_13 = game_Hitbox_contains__P23706_mk(s); + s.tmp_13.arg0 = s.arg0; + s.tmp_14 = game_Hitbox_right__P23703_mk(s); + s.tmp_14.arg0 = s.arg1; + s.callLocIdx = 231; s.pc = 28; return s.tmp_14; + case 28: + r0 = s.retval; + s.tmp_13.arg1 = r0; + s.tmp_15 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_15.arg0 = s.arg1; + s.callLocIdx = 232; s.pc = 29; return s.tmp_15; + case 29: + r0 = s.retval; + s.tmp_13.arg2 = r0; + s.callLocIdx = 233; 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__P23706_mk(s); + s.tmp_17.arg0 = s.arg1; + s.tmp_18 = game_Hitbox_left__P23701_mk(s); + s.tmp_18.arg0 = s.arg0; + s.callLocIdx = 234; s.pc = 31; return s.tmp_18; + case 31: r0 = s.retval; - s.tmp_8 = r0; - s.tmp_11 = Sprite_left__P496835_mk(s); - s.tmp_11.arg0 = s.arg1; - s.callLocIdx = 348; s.pc = 9; return s.tmp_11; + s.tmp_17.arg1 = r0; + s.tmp_19 = game_Hitbox_top__P23702_mk(s); + s.tmp_19.arg0 = s.arg0; + s.callLocIdx = 235; s.pc = 32; return s.tmp_19; + case 32: + r0 = s.retval; + s.tmp_17.arg2 = r0; + s.callLocIdx = 236; 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__P23706_mk(s); + s.tmp_21.arg0 = s.arg1; + s.tmp_22 = game_Hitbox_left__P23701_mk(s); + s.tmp_22.arg0 = s.arg0; + s.callLocIdx = 237; s.pc = 34; return s.tmp_22; + case 34: r0 = s.retval; - s.tmp_10 = r0; - r0 = (s.tmp_8 - s.tmp_10); + s.tmp_21.arg1 = r0; + s.tmp_23 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_23.arg0 = s.arg0; + s.callLocIdx = 238; s.pc = 35; return s.tmp_23; + case 35: + r0 = s.retval; + s.tmp_21.arg2 = r0; + s.callLocIdx = 239; 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__P23706_mk(s); + s.tmp_25.arg0 = s.arg1; + s.tmp_26 = game_Hitbox_right__P23703_mk(s); + s.tmp_26.arg0 = s.arg0; + s.callLocIdx = 240; s.pc = 37; return s.tmp_26; + case 37: + r0 = s.retval; + s.tmp_25.arg1 = r0; + s.tmp_27 = game_Hitbox_top__P23702_mk(s); + s.tmp_27.arg0 = s.arg0; + s.callLocIdx = 241; s.pc = 38; return s.tmp_27; + case 38: + r0 = s.retval; + s.tmp_25.arg2 = r0; + s.callLocIdx = 242; 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__P23706_mk(s); + s.tmp_29.arg0 = s.arg1; + s.tmp_30 = game_Hitbox_right__P23703_mk(s); + s.tmp_30.arg0 = s.arg0; + s.callLocIdx = 243; s.pc = 40; return s.tmp_30; + case 40: + r0 = s.retval; + s.tmp_29.arg1 = r0; + s.tmp_31 = game_Hitbox_bottom__P23704_mk(s); + s.tmp_31.arg0 = s.arg0; + s.callLocIdx = 244; s.pc = 41; return s.tmp_31; + case 41: + r0 = s.retval; + s.tmp_29.arg2 = r0; + s.callLocIdx = 245; 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() +} } } +game_Hitbox_overlapsWith__P23707.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 game_Hitbox_overlapsWith__P23707_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: game_Hitbox_overlapsWith__P23707, depth: s.depth + 1, + pc: 0, retval: undefined, 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, + arg0: undefined, + arg1: undefined, +} } + + + + + +function game_Hitbox_contains__P23706(s) { +let r0 = s.r0, 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__C23693_VT)) failedCast(r0); + s.tmp_1 = r0 = s.arg1; + s.tmp_3 = game_Hitbox_left__P23701_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 218; 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__P23703_mk(s); + s.tmp_6.arg0 = s.arg0; + s.callLocIdx = 219; 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; - s.tmp_14 = Sprite_top__P496839_mk(s); + 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__P23702_mk(s); + s.tmp_10.arg0 = s.arg0; + s.callLocIdx = 220; 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__P23704_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 349; s.pc = 10; return s.tmp_14; + s.callLocIdx = 221; s.pc = 10; return s.tmp_14; case 10: r0 = s.retval; s.tmp_13 = r0; - s.tmp_16 = Sprite_top__P496839_mk(s); - s.tmp_16.arg0 = s.arg1; - s.callLocIdx = 350; s.pc = 11; return s.tmp_16; - case 11: - r0 = s.retval; + r0 = (s.tmp_12 <= s.tmp_13); + case 6: + // jmp value (already in r0) 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: + r0 = s.tmp_15; return leave(s, r0) default: oops() } } } -Sprite_overlapsWith__P496855.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_contains__P23706.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 Sprite_overlapsWith__P496855_mk(s) { +function game_Hitbox_contains__P23706_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_overlapsWith__P496855, depth: s.depth + 1, + parent: s, fn: game_Hitbox_contains__P23706, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -36686,16 +38834,135 @@ function Sprite_overlapsWith__P496855_mk(s) { tmp_13: undefined, tmp_14: undefined, tmp_15: undefined, - tmp_16: undefined, arg0: undefined, arg1: undefined, + arg2: undefined, +} } + + + + + +function helpers_imageBlit__P23447(s) { +let r0 = s.r0, 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.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___25926; + 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___25926 = (s.tmp_1); + s.tmp_0 = r0 = globals._blitArgs___25926; + 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___25926; + 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___25926; + 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___25926; + 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___25926; + 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___25926; + 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___25926; + 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___25926; + 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___25926, 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___25926, 9, s.tmp_0); + r0 = pxsim_ImageMethods._blit(s.arg0, s.arg5, globals._blitArgs___25926); + return leave(s, r0) + default: oops() +} } } +helpers_imageBlit__P23447.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__P23447_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: helpers_imageBlit__P23447, 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__P498747(s) { +function ArcadePhysicsEngine_createMovingSprite__P26070(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -36705,16 +38972,16 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ovx___510751 = undefined; - s.ovy___510756 = undefined; - s.fx___510783 = undefined; - s.c___510790 = undefined; - s.fy___510833 = undefined; - s.c___510840 = undefined; - s.dx___510879 = undefined; - s.dy___510892 = undefined; - s.xStep___510905 = undefined; - s.yStep___510907 = undefined; + s.ovx___39008 = undefined; + s.ovy___39013 = undefined; + s.fx___39040 = undefined; + s.c___39047 = undefined; + s.fy___39090 = undefined; + s.c___39097 = undefined; + s.dx___39136 = undefined; + s.dy___39149 = undefined; + s.xStep___39162 = undefined; + s.yStep___39164 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -36723,23 +38990,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P498752_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P26075_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 482; s.pc = 25; return s.tmp_0; + s.callLocIdx = 584; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.ovx___510751 = (r0); - s.tmp_0 = ArcadePhysicsEngine_constrain__P498752_mk(s); + s.ovx___39008 = (r0); + s.tmp_0 = ArcadePhysicsEngine_constrain__P26075_mk(s); s.tmp_0.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_0.arg1 = r0; - s.callLocIdx = 483; s.pc = 26; return s.tmp_0; + s.callLocIdx = 585; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.ovy___510756 = (r0); + s.ovy___39013 = (r0); r0 = s.arg1.fields["_x"]; s.tmp_0 = r0; r0 = (s.arg1).fields["_lastX"] = (s.tmp_0); @@ -36773,41 +39040,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___510783 = (r0); + s.fx___39040 = (r0); r0 = s.arg1.fields["_vx"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fx___510783); - s.c___510790 = (r0); - r0 = (s.c___510790 < 0); + r0 = (s.tmp_0 - s.fx___39040); + s.c___39047 = (r0); + r0 = (s.c___39047 < 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__P494917_mk(s); + s.tmp_3 = Fx_min__P21861_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fx___510783); + r0 = (s.tmp_4 + s.fx___39040); s.tmp_3.arg1 = r0; - s.callLocIdx = 491; s.pc = 27; return s.tmp_3; + s.callLocIdx = 593; 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___510790 > 0); + r0 = (s.c___39047 > 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__P494918_mk(s); + s.tmp_3 = Fx_max__P21862_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vx"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fx___510783); + r0 = (s.tmp_4 - s.fx___39040); s.tmp_3.arg1 = r0; - s.callLocIdx = 493; s.pc = 28; return s.tmp_3; + s.callLocIdx = 595; s.pc = 28; return s.tmp_3; case 28: r0 = s.retval; s.tmp_2 = r0; @@ -36847,41 +39114,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___510833 = (r0); + s.fy___39090 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_0 = r0; - r0 = (s.tmp_0 - s.fy___510833); - s.c___510840 = (r0); - r0 = (s.c___510840 < 0); + r0 = (s.tmp_0 - s.fy___39090); + s.c___39097 = (r0); + r0 = (s.c___39097 < 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__P494917_mk(s); + s.tmp_3 = Fx_min__P21861_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.fy___510833); + r0 = (s.tmp_4 + s.fy___39090); s.tmp_3.arg1 = r0; - s.callLocIdx = 501; s.pc = 29; return s.tmp_3; + s.callLocIdx = 603; 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___510840 > 0); + r0 = (s.c___39097 > 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__P494918_mk(s); + s.tmp_3 = Fx_max__P21862_mk(s); s.tmp_3.arg0 = 0; r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 - s.fy___510833); + r0 = (s.tmp_4 - s.fy___39090); s.tmp_3.arg1 = r0; - s.callLocIdx = 503; s.pc = 30; return s.tmp_3; + s.callLocIdx = 605; s.pc = 30; return s.tmp_3; case 30: r0 = s.retval; s.tmp_2 = r0; @@ -36895,28 +39162,28 @@ switch (step) { case 15: case 16: s.tmp_0 = r0 = s.arg1; - s.tmp_2 = ArcadePhysicsEngine_constrain__P498752_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P26075_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vx"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 504; s.pc = 31; return s.tmp_2; + s.callLocIdx = 606; 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__P498752_mk(s); + s.tmp_2 = ArcadePhysicsEngine_constrain__P26075_mk(s); s.tmp_2.arg0 = s.arg0; r0 = s.arg1.fields["_vy"]; s.tmp_2.arg1 = r0; - s.callLocIdx = 505; s.pc = 32; return s.tmp_2; + s.callLocIdx = 607; 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___510751); + r0 = (s.tmp_4 + s.ovx___39008); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -36927,10 +39194,10 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dx___510879 = (r0); + s.dx___39136 = (r0); r0 = s.arg1.fields["_vy"]; s.tmp_4 = r0; - r0 = (s.tmp_4 + s.ovy___510756); + r0 = (s.tmp_4 + s.ovy___39013); s.tmp_3 = r0; r0 = (s.tmp_3 / 256); s.tmp_2 = r0; @@ -36941,13 +39208,13 @@ switch (step) { r0 = (s.tmp_0 * 256); s.tmp_5 = r0; r0 = (s.tmp_5 | 0); - s.dy___510892 = (r0); - s.xStep___510905 = (s.dx___510879); - s.yStep___510907 = (s.dy___510892); + s.dy___39149 = (r0); + s.xStep___39162 = (s.dx___39136); + s.yStep___39164 = (s.dy___39149); case 17: - s.tmp_2 = Fx_abs__P494916_mk(s); - s.tmp_2.arg0 = s.xStep___510905; - s.callLocIdx = 512; s.pc = 33; return s.tmp_2; + s.tmp_2 = Fx_abs__P21860_mk(s); + s.tmp_2.arg0 = s.xStep___39162; + s.callLocIdx = 614; s.pc = 33; return s.tmp_2; case 33: r0 = s.retval; s.tmp_1 = r0; @@ -36960,9 +39227,9 @@ switch (step) { r0 = s.tmp_0; { step = 19; continue; } case 18: - s.tmp_5 = Fx_abs__P494916_mk(s); - s.tmp_5.arg0 = s.yStep___510907; - s.callLocIdx = 513; s.pc = 34; return s.tmp_5; + s.tmp_5 = Fx_abs__P21860_mk(s); + s.tmp_5.arg0 = s.yStep___39164; + s.callLocIdx = 615; s.pc = 34; return s.tmp_5; case 34: r0 = s.retval; s.tmp_4 = r0; @@ -36974,9 +39241,9 @@ switch (step) { s.tmp_7 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_7); if (!r0) { step = 24; continue; } - s.tmp_10 = Fx_abs__P494916_mk(s); - s.tmp_10.arg0 = s.xStep___510905; - s.callLocIdx = 514; s.pc = 35; return s.tmp_10; + s.tmp_10 = Fx_abs__P21860_mk(s); + s.tmp_10.arg0 = s.xStep___39162; + s.callLocIdx = 616; s.pc = 35; return s.tmp_10; case 35: r0 = s.retval; s.tmp_9 = r0; @@ -36986,13 +39253,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___510905, 2); - s.xStep___510905 = (r0); + r0 = pxsim.Math_.idiv(s.xStep___39162, 2); + s.xStep___39162 = (r0); case 20: case 21: - s.tmp_2 = Fx_abs__P494916_mk(s); - s.tmp_2.arg0 = s.yStep___510907; - s.callLocIdx = 516; s.pc = 36; return s.tmp_2; + s.tmp_2 = Fx_abs__P21860_mk(s); + s.tmp_2.arg0 = s.yStep___39164; + s.callLocIdx = 618; s.pc = 36; return s.tmp_2; case 36: r0 = s.retval; s.tmp_1 = r0; @@ -37002,38 +39269,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___510907, 2); - s.yStep___510907 = (r0); + r0 = pxsim.Math_.idiv(s.yStep___39164, 2); + s.yStep___39164 = (r0); case 22: case 23: { step = 17; continue; } case 24: - r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C496948_VT); + r0 = pxsim_pxtcore_mkClassInstance(MovingSprite__C23999_VT); s.tmp_0 = r0; - s.tmp_1 = MovingSprite_constructor__P496949_mk(s); + s.tmp_1 = MovingSprite_constructor__P24000_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___510879; - s.tmp_1.arg5 = s.dy___510892; - s.tmp_1.arg6 = s.xStep___510905; - s.tmp_1.arg7 = s.yStep___510907; - s.callLocIdx = 518; s.pc = 37; return s.tmp_1; + s.tmp_1.arg4 = s.dx___39136; + s.tmp_1.arg5 = s.dy___39149; + s.tmp_1.arg6 = s.xStep___39162; + s.tmp_1.arg7 = s.yStep___39164; + s.callLocIdx = 620; s.pc = 37; return s.tmp_1; case 37: r0 = s.retval; r0 = s.tmp_0; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_createMovingSprite__P498747.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__P26070.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__P498747_mk(s) { +function ArcadePhysicsEngine_createMovingSprite__P26070_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P498747, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_createMovingSprite__P26070, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37047,16 +39314,16 @@ function ArcadePhysicsEngine_createMovingSprite__P498747_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - ovx___510751: undefined, - ovy___510756: undefined, - fx___510783: undefined, - c___510790: undefined, - fy___510833: undefined, - c___510840: undefined, - dx___510879: undefined, - dy___510892: undefined, - xStep___510905: undefined, - yStep___510907: undefined, + ovx___39008: undefined, + ovy___39013: undefined, + fx___39040: undefined, + c___39047: undefined, + fy___39090: undefined, + c___39097: undefined, + dx___39136: undefined, + dy___39149: undefined, + xStep___39162: undefined, + yStep___39164: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37067,7 +39334,7 @@ function ArcadePhysicsEngine_createMovingSprite__P498747_mk(s) { -function ArcadePhysicsEngine_constrain__P498752(s) { +function ArcadePhysicsEngine_constrain__P26075(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37083,30 +39350,30 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); - s.tmp_0 = Fx_max__P494918_mk(s); - s.tmp_1 = Fx_min__P494917_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); + s.tmp_0 = Fx_max__P21862_mk(s); + s.tmp_1 = Fx_min__P21861_mk(s); r0 = s.arg0.fields["maxVelocity"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 665; s.pc = 2; return s.tmp_1; + s.callLocIdx = 767; 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 = 666; s.pc = 1; return s.tmp_0; + s.callLocIdx = 768; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_constrain__P498752.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__P26075.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__P498752_mk(s) { +function ArcadePhysicsEngine_constrain__P26075_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_constrain__P498752, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_constrain__P26075, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37118,54 +39385,7 @@ function ArcadePhysicsEngine_constrain__P498752_mk(s) { -function Fx_max__P494918(s) { -let r0 = s.r0, 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__P494918.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__P494918_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_max__P494918, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function Fx_compare__P494915(s) { +function Fx_compare__P21859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37184,12 +39404,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_compare__P494915.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__P21859.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__P494915_mk(s) { +function Fx_compare__P21859_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_compare__P494915, depth: s.depth + 1, + parent: s, fn: Fx_compare__P21859, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -37199,7 +39419,7 @@ function Fx_compare__P494915_mk(s) { -function sprites_SpriteMap_insertAABB__P496876(s) { +function sprites_SpriteMap_insertAABB__P23927(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37209,34 +39429,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.left___510563 = undefined; - s.top___510566 = undefined; - s.xn___510569 = undefined; - s.yn___510580 = undefined; - s.x___510591 = undefined; - s.y___510596 = undefined; + s.left___38828 = undefined; + s.top___38831 = undefined; + s.xn___38834 = undefined; + s.yn___38845 = undefined; + s.x___38856 = undefined; + s.y___38861 = 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__C496869_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P496835_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P23881_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 414; s.pc = 5; return s.tmp_0; + s.callLocIdx = 516; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.left___510563 = (r0); - s.tmp_0 = Sprite_top__P496839_mk(s); + s.left___38828 = (r0); + s.tmp_0 = Sprite_top__P23885_mk(s); s.tmp_0.arg0 = s.arg1; - s.callLocIdx = 415; s.pc = 6; return s.tmp_0; + s.callLocIdx = 517; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.top___510566 = (r0); - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_3); + s.top___38831 = (r0); + s.tmp_3 = Sprite_width__P23879_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 518; 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; @@ -37247,10 +39469,12 @@ switch (step) { r0 = s.arg0.fields["cellWidth"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.xn___510569 = (r0); - r0 = s.arg1.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); + s.xn___38834 = (r0); + s.tmp_3 = Sprite_height__P23880_mk(s); + s.tmp_3.arg0 = s.arg1; + s.callLocIdx = 519; 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; @@ -37261,75 +39485,79 @@ switch (step) { r0 = s.arg0.fields["cellHeight"]; s.tmp_5 = r0; r0 = pxsim.Math_.idiv(s.tmp_0, s.tmp_5); - s.yn___510580 = (r0); - s.x___510591 = (0); + s.yn___38845 = (r0); + s.x___38856 = (0); case 1: - r0 = (s.x___510591 <= s.xn___510569); + r0 = (s.x___38856 <= s.xn___38834); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - s.y___510596 = (0); + s.y___38861 = (0); case 2: - r0 = (s.y___510596 <= s.yn___510580); + r0 = (s.y___38861 <= s.yn___38845); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 3; continue; } - s.tmp_1 = sprites_SpriteMap_insertAtKey__P498711_mk(s); + s.tmp_1 = sprites_SpriteMap_insertAtKey__P26034_mk(s); s.tmp_1.arg0 = s.arg0; - s.tmp_2 = r0 = s.left___510563; - s.tmp_4 = Math_min__P494882_mk(s); - r0 = s.arg1.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); + s.tmp_2 = r0 = s.left___38828; + s.tmp_4 = Math_min__P21826_mk(s); + s.tmp_5 = Sprite_width__P23879_mk(s); + s.tmp_5.arg0 = s.arg1; + s.callLocIdx = 520; 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___510591 * s.tmp_6); + r0 = (s.x___38856 * s.tmp_6); s.tmp_4.arg1 = r0; - s.callLocIdx = 419; s.pc = 8; return s.tmp_4; - case 8: + s.callLocIdx = 521; 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___510566; - s.tmp_9 = Math_min__P494882_mk(s); - r0 = s.arg1.fields["_image"]; - s.tmp_10 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_10); + s.tmp_7 = r0 = s.top___38831; + s.tmp_9 = Math_min__P21826_mk(s); + s.tmp_10 = Sprite_height__P23880_mk(s); + s.tmp_10.arg0 = s.arg1; + s.callLocIdx = 522; 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___510596 * s.tmp_11); + r0 = (s.y___38861 * s.tmp_11); s.tmp_9.arg1 = r0; - s.callLocIdx = 421; s.pc = 9; return s.tmp_9; - case 9: + s.callLocIdx = 523; 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 = 422; s.pc = 7; return s.tmp_1; - case 7: + s.callLocIdx = 524; s.pc = 9; return s.tmp_1; + case 9: r0 = s.retval; - r0 = (s.y___510596 + 1); - s.y___510596 = (r0); + r0 = (s.y___38861 + 1); + s.y___38861 = (r0); { step = 2; continue; } case 3: - r0 = (s.x___510591 + 1); - s.x___510591 = (r0); + r0 = (s.x___38856 + 1); + s.x___38856 = (r0); { step = 1; continue; } case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAABB__P496876.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__P23927.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__P496876_mk(s) { +function sprites_SpriteMap_insertAABB__P23927_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAABB__P496876, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAABB__P23927, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37343,12 +39571,12 @@ function sprites_SpriteMap_insertAABB__P496876_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - left___510563: undefined, - top___510566: undefined, - xn___510569: undefined, - yn___510580: undefined, - x___510591: undefined, - y___510596: undefined, + left___38828: undefined, + top___38831: undefined, + xn___38834: undefined, + yn___38845: undefined, + x___38856: undefined, + y___38861: undefined, arg0: undefined, arg1: undefined, } } @@ -37357,7 +39585,7 @@ function sprites_SpriteMap_insertAABB__P496876_mk(s) { -function sprites_SpriteMap_insertAtKey__P498711(s) { +function sprites_SpriteMap_insertAtKey__P26034(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37367,8 +39595,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.k___510631 = undefined; - s.bucket___510636 = undefined; + s.k___38896 = undefined; + s.bucket___38901 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -37377,20 +39605,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C496869_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_key__P498710_mk(s); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_key__P26033_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; s.tmp_0.arg2 = s.arg2; - s.callLocIdx = 413; s.pc = 5; return s.tmp_0; + s.callLocIdx = 515; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; - s.k___510631 = (r0); + s.k___38896 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___510631); - s.bucket___510636 = (r0); - r0 = pxsim_numops_toBoolDecr(s.bucket___510636); + r0 = pxsim_Array__getAt(s.tmp_0, s.k___38896); + s.bucket___38901 = (r0); + r0 = pxsim_numops_toBoolDecr(s.bucket___38901); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); s.tmp_0 = r0; @@ -37398,40 +39626,40 @@ switch (step) { if (!r0) { step = 1; continue; } r0 = s.arg0.fields["buckets"]; s.tmp_2 = r0; - s.tmp_3 = r0 = s.k___510631; + s.tmp_3 = r0 = s.k___38896; r0 = pxsim_Array__mk(); s.tmp_4 = r0; r0 = pxsim_Array_.setAt(s.tmp_2, s.tmp_3, s.tmp_4); - s.bucket___510636 = (s.tmp_4); + s.bucket___38901 = (s.tmp_4); case 1: case 2: - r0 = pxsim_Array_.indexOf(s.bucket___510636, s.arg3, undefined); + r0 = pxsim_Array_.indexOf(s.bucket___38901, 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___510636, s.arg3); + r0 = pxsim_Array__push(s.bucket___38901, s.arg3); case 3: case 4: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_insertAtKey__P498711.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__P26034.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__P498711_mk(s) { +function sprites_SpriteMap_insertAtKey__P26034_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_insertAtKey__P498711, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_insertAtKey__P26034, depth: s.depth + 1, pc: 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___510631: undefined, - bucket___510636: undefined, + k___38896: undefined, + bucket___38901: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -37442,7 +39670,7 @@ function sprites_SpriteMap_insertAtKey__P498711_mk(s) { -function sprites_SpriteMap_clear__P496875(s) { +function sprites_SpriteMap_clear__P23926(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37457,7 +39685,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C496869_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -37466,12 +39694,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_SpriteMap_clear__P496875.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__P23926.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__P496875_mk(s) { +function sprites_SpriteMap_clear__P23926_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_clear__P496875, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_clear__P23926, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37482,7 +39710,7 @@ function sprites_SpriteMap_clear__P496875_mk(s) { -function sprites_SpriteMap_resizeBuckets__P496874(s) { +function sprites_SpriteMap_resizeBuckets__P23925(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37492,147 +39720,155 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.maxWidth___510674 = undefined; - s.maxHeight___510675 = undefined; - s.sprite___510677 = undefined; - s.unnamed1738___U3 = undefined; - s.unnamed1739___U4 = undefined; - s.tMap___510693 = undefined; - s.areaWidth___510697 = undefined; - s.areaHeight___510704 = undefined; + s.maxWidth___38931 = undefined; + s.maxHeight___38932 = undefined; + s.sprite___38934 = undefined; + s.unnamed162___U3 = undefined; + s.unnamed163___U4 = undefined; + s.tMap___38950 = undefined; + s.areaWidth___38954 = undefined; + s.areaHeight___38961 = 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__C496869_VT)) failedCast(r0); - s.maxWidth___510674 = (0); - s.maxHeight___510675 = (0); - s.sprite___510677 = (undefined); - s.unnamed1738___U3 = (s.arg1); - s.unnamed1739___U4 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); + s.maxWidth___38931 = (0); + s.maxHeight___38932 = (0); + s.sprite___38934 = (undefined); + s.unnamed162___U3 = (s.arg1); + s.unnamed163___U4 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1739___U4; - r0 = pxsim_Array__length(s.unnamed1738___U3); + s.tmp_0 = r0 = s.unnamed163___U4; + r0 = pxsim_Array__length(s.unnamed162___U3); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 6; continue; } - r0 = pxsim_Array__getAt(s.unnamed1738___U3, s.unnamed1739___U4); - s.sprite___510677 = (r0); - r0 = s.sprite___510677.fields["_image"]; - s.tmp_4 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_4); + r0 = pxsim_Array__getAt(s.unnamed162___U3, s.unnamed163___U4); + s.sprite___38934 = (r0); + s.tmp_4 = Sprite_width__P23879_mk(s); + s.tmp_4.arg0 = s.sprite___38934; + s.callLocIdx = 504; s.pc = 11; return s.tmp_4; + case 11: + r0 = s.retval; s.tmp_3 = r0; - r0 = (s.tmp_3 > s.maxWidth___510674); + r0 = (s.tmp_3 > s.maxWidth___38931); s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); if (!r0) { step = 2; continue; } - r0 = s.sprite___510677.fields["_image"]; - s.tmp_5 = r0; - r0 = pxsim_ImageMethods.width(s.tmp_5); - s.maxWidth___510674 = (r0); + s.tmp_5 = Sprite_width__P23879_mk(s); + s.tmp_5.arg0 = s.sprite___38934; + s.callLocIdx = 505; s.pc = 12; return s.tmp_5; + case 12: + r0 = s.retval; + s.maxWidth___38931 = (r0); case 2: case 3: - r0 = s.sprite___510677.fields["_image"]; - s.tmp_2 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_2); + s.tmp_2 = Sprite_height__P23880_mk(s); + s.tmp_2.arg0 = s.sprite___38934; + s.callLocIdx = 506; s.pc = 13; return s.tmp_2; + case 13: + r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 > s.maxHeight___510675); + r0 = (s.tmp_1 > s.maxHeight___38932); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 4; continue; } - r0 = s.sprite___510677.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); - s.maxHeight___510675 = (r0); + s.tmp_3 = Sprite_height__P23880_mk(s); + s.tmp_3.arg0 = s.sprite___38934; + s.callLocIdx = 507; s.pc = 14; return s.tmp_3; + case 14: + r0 = s.retval; + s.maxHeight___38932 = (r0); case 4: case 5: - r0 = (s.unnamed1739___U4 + 1); - s.unnamed1739___U4 = (r0); + r0 = (s.unnamed163___U4 + 1); + s.unnamed163___U4 = (r0); { step = 1; continue; } case 6: - s.unnamed1738___U3 = (undefined); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 406; s.pc = 11; return s.tmp_0; - case 11: + s.unnamed162___U3 = (undefined); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 508; s.pc = 15; return s.tmp_0; + case 15: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tMap___510693 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tMap___510693); + s.tMap___38950 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tMap___38950); if (!r0) { step = 7; continue; } - s.tmp_0 = tiles_TileMap_areaWidth__P497100_mk(s); - s.tmp_0.arg0 = s.tMap___510693; - s.callLocIdx = 407; s.pc = 12; return s.tmp_0; - case 12: + s.tmp_0 = tiles_TileMap_areaWidth__P24169_mk(s); + s.tmp_0.arg0 = s.tMap___38950; + s.callLocIdx = 509; s.pc = 16; return s.tmp_0; + case 16: r0 = s.retval; { step = 8; continue; } case 7: - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); case 8: // jmp value (already in r0) s.tmp_1 = r0; - s.areaWidth___510697 = (s.tmp_1); - r0 = pxsim_numops_toBoolDecr(s.tMap___510693); + s.areaWidth___38954 = (s.tmp_1); + r0 = pxsim_numops_toBoolDecr(s.tMap___38950); if (!r0) { step = 9; continue; } - s.tmp_0 = tiles_TileMap_areaHeight__P497101_mk(s); - s.tmp_0.arg0 = s.tMap___510693; - s.callLocIdx = 408; s.pc = 13; return s.tmp_0; - case 13: + s.tmp_0 = tiles_TileMap_areaHeight__P24170_mk(s); + s.tmp_0.arg0 = s.tMap___38950; + s.callLocIdx = 510; s.pc = 17; return s.tmp_0; + case 17: r0 = s.retval; { step = 10; continue; } case 9: - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); case 10: // jmp value (already in r0) s.tmp_1 = r0; - s.areaHeight___510704 = (s.tmp_1); + s.areaHeight___38961 = (s.tmp_1); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_clamp__P494878_mk(s); + s.tmp_2 = Math_clamp__P21822_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaWidth___510697 >> 2); + r0 = (s.areaWidth___38954 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxWidth___510674 * 2); + r0 = (s.maxWidth___38931 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 409; s.pc = 14; return s.tmp_2; - case 14: + s.callLocIdx = 511; 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__P494878_mk(s); + s.tmp_2 = Math_clamp__P21822_mk(s); s.tmp_2.arg0 = 8; - r0 = (s.areaHeight___510704 >> 2); + r0 = (s.areaHeight___38961 >> 2); s.tmp_2.arg1 = r0; - r0 = (s.maxHeight___510675 * 2); + r0 = (s.maxHeight___38932 * 2); s.tmp_2.arg2 = r0; - s.callLocIdx = 410; s.pc = 15; return s.tmp_2; - case 15: + s.callLocIdx = 512; 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___510704, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaHeight___38961, 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___510697, s.tmp_2); + r0 = pxsim.Math_.idiv(s.areaWidth___38954, 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__P496874.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__P23925.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__P496874_mk(s) { +function sprites_SpriteMap_resizeBuckets__P23925_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_resizeBuckets__P496874, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_resizeBuckets__P23925, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37640,14 +39876,14 @@ function sprites_SpriteMap_resizeBuckets__P496874_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - maxWidth___510674: undefined, - maxHeight___510675: undefined, - sprite___510677: undefined, - unnamed1738___U3: undefined, - unnamed1739___U4: undefined, - tMap___510693: undefined, - areaWidth___510697: undefined, - areaHeight___510704: undefined, + maxWidth___38931: undefined, + maxHeight___38932: undefined, + sprite___38934: undefined, + unnamed162___U3: undefined, + unnamed163___U4: undefined, + tMap___38950: undefined, + areaWidth___38954: undefined, + areaHeight___38961: undefined, arg0: undefined, arg1: undefined, } } @@ -37656,7 +39892,7 @@ function sprites_SpriteMap_resizeBuckets__P496874_mk(s) { -function Sprite_clearObstacles__P496859(s) { +function Sprite_clearObstacles__P23907(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37671,7 +39907,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); s.tmp_1 = r0; @@ -37680,12 +39916,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_clearObstacles__P496859.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__P23907.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__P496859_mk(s) { +function Sprite_clearObstacles__P23907_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_clearObstacles__P496859, depth: s.depth + 1, + parent: s, fn: Sprite_clearObstacles__P23907, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -37696,7 +39932,7 @@ function Sprite_clearObstacles__P496859_mk(s) { -function Fx_idiv__P494914(s) { +function Fx_idiv__P21858(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37715,12 +39951,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Fx_idiv__P494914.info = {"start":1279,"length":111,"line":38,"column":4,"endLine":40,"endColumn":5,"fileName":"pxt_modules/base/fixed.ts","functionName":"idiv","argumentNames":["a","b"]} +Fx_idiv__P21858.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__P494914_mk(s) { +function Fx_idiv__P21858_mk(s) { checkStack(s.depth); return { - parent: s, fn: Fx_idiv__P494914, depth: s.depth + 1, + parent: s, fn: Fx_idiv__P21858, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -37730,7 +39966,7 @@ function Fx_idiv__P494914_mk(s) { -function Fx_div__P494913(s) { +function helpers_arrayMap__P21801(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37740,95 +39976,58 @@ 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 << 8); - s.tmp_0 = r0; - r0 = pxsim.Math_.idiv(s.tmp_0, s.arg1); - return leave(s, r0) - default: oops() -} } } -Fx_div__P494913.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__P494913_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: Fx_div__P494913, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - tmp_0: undefined, - arg0: undefined, - arg1: undefined, -} } - - - - - -function helpers_arrayMap__P494858(s) { -let r0 = s.r0, step = s.pc; -s.pc = -1; - - -while (true) { -if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; -switch (step) { - case 0: - - s.res___502249 = undefined; - s.len___502251 = undefined; - s.i___502254 = undefined; + s.res___30067 = undefined; + s.len___30069 = undefined; + s.i___30072 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = pxsim_Array__mk(); - s.res___502249 = (r0); + s.res___30067 = (r0); r0 = pxsim_Array__length(s.arg0); - s.len___502251 = (r0); - s.i___502254 = (0); + s.len___30069 = (r0); + s.i___30072 = (0); case 1: - r0 = (s.i___502254 < s.len___502251); + r0 = (s.i___30072 < s.len___30069); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 2; continue; } - s.tmp_1 = r0 = s.res___502249; + s.tmp_1 = r0 = s.res___30067; s.tmp_3 = lambda_3_mk(s); s.tmp_3.argL = s.arg1; - r0 = pxsim_Array__getAt(s.arg0, s.i___502254); + r0 = pxsim_Array__getAt(s.arg0, s.i___30072); s.tmp_3.arg0 = r0; - s.tmp_3.arg1 = s.i___502254; + s.tmp_3.arg1 = s.i___30072; 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___502254 + 1); - s.i___502254 = (r0); + r0 = (s.i___30072 + 1); + s.i___30072 = (r0); { step = 1; continue; } case 2: - r0 = s.res___502249; + r0 = s.res___30067; return leave(s, r0) default: oops() } } } -helpers_arrayMap__P494858.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__P21801.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__P494858_mk(s) { +function helpers_arrayMap__P21801_mk(s) { checkStack(s.depth); return { - parent: s, fn: helpers_arrayMap__P494858, depth: s.depth + 1, + parent: s, fn: helpers_arrayMap__P21801, depth: s.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___502249: undefined, - len___502251: undefined, - i___502254: undefined, + res___30067: undefined, + len___30069: undefined, + i___30072: undefined, arg0: undefined, arg1: undefined, } } @@ -37837,7 +40036,7 @@ function helpers_arrayMap__P494858_mk(s) { -function ArcadePhysicsEngine_draw__P496961(s) { +function ArcadePhysicsEngine_draw__P24012(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37852,23 +40051,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); - s.tmp_0 = sprites_SpriteMap_draw__P496873_mk(s); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); + s.tmp_0 = sprites_SpriteMap_draw__P23924_mk(s); r0 = s.arg0.fields["map"]; s.tmp_0.arg0 = r0; - s.callLocIdx = 448; s.pc = 1; return s.tmp_0; + s.callLocIdx = 550; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_draw__P496961.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__P24012.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__P496961_mk(s) { +function ArcadePhysicsEngine_draw__P24012_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_draw__P496961, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_draw__P24012, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -37878,7 +40077,7 @@ function ArcadePhysicsEngine_draw__P496961_mk(s) { -function sprites_SpriteMap_draw__P496873(s) { +function sprites_SpriteMap_draw__P23924(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -37888,108 +40087,108 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.x___510979 = undefined; - s.y___510985 = undefined; - s.left___510991 = undefined; - s.top___510996 = undefined; - s.k___511001 = undefined; - s.b___511006 = undefined; + s.x___39229 = undefined; + s.y___39235 = undefined; + s.left___39241 = undefined; + s.top___39246 = undefined; + s.k___39251 = undefined; + s.b___39256 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_SpriteMap__C496869_VT)) failedCast(r0); - s.x___510979 = (0); + if (!checkSubtype(r0, sprites_SpriteMap__C23920_VT)) failedCast(r0); + s.x___39229 = (0); case 1: r0 = s.arg0.fields["columnCount"]; s.tmp_1 = r0; - r0 = (s.x___510979 < s.tmp_1); + r0 = (s.x___39229 < s.tmp_1); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___510985 = (0); + s.y___39235 = (0); case 2: r0 = s.arg0.fields["rowCount"]; s.tmp_1 = r0; - r0 = (s.y___510985 < s.tmp_1); + r0 = (s.y___39235 < 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___510979 * s.tmp_2); - s.left___510991 = (r0); + r0 = (s.x___39229 * s.tmp_2); + s.left___39241 = (r0); r0 = s.arg0.fields["cellHeight"]; s.tmp_0 = r0; - r0 = (s.y___510985 * s.tmp_0); - s.top___510996 = (r0); - s.tmp_0 = sprites_SpriteMap_key__P498710_mk(s); + r0 = (s.y___39235 * s.tmp_0); + s.top___39246 = (r0); + s.tmp_0 = sprites_SpriteMap_key__P26033_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = s.left___510991; - s.tmp_0.arg2 = s.top___510996; - s.callLocIdx = 400; s.pc = 9; return s.tmp_0; + s.tmp_0.arg1 = s.left___39241; + s.tmp_0.arg2 = s.top___39246; + s.callLocIdx = 502; s.pc = 9; return s.tmp_0; case 9: r0 = s.retval; - s.k___511001 = (r0); + s.k___39251 = (r0); r0 = s.arg0.fields["buckets"]; s.tmp_0 = r0; - r0 = pxsim_Array__getAt(s.tmp_0, s.k___511001); - s.b___511006 = (r0); - s.tmp_0 = r0 = s.b___511006; + r0 = pxsim_Array__getAt(s.tmp_0, s.k___39251); + s.b___39256 = (r0); + s.tmp_0 = r0 = s.b___39256; 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___511006); + r0 = pxsim_Array__length(s.b___39256); 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__P496497_mk(s); - s.tmp_2.arg0 = globals.screen___496568; - s.tmp_2.arg1 = s.left___510991; - s.tmp_2.arg2 = s.top___510996; + s.tmp_2 = helpers_imageDrawRect__P23453_mk(s); + s.tmp_2.arg0 = globals.screen___23524; + s.tmp_2.arg1 = s.left___39241; + s.tmp_2.arg2 = s.top___39246; 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 = 401; s.pc = 10; return s.tmp_2; + s.callLocIdx = 503; s.pc = 10; return s.tmp_2; case 10: r0 = s.retval; case 5: case 6: - r0 = (s.y___510985 + 1); - s.y___510985 = (r0); + r0 = (s.y___39235 + 1); + s.y___39235 = (r0); { step = 2; continue; } case 7: - r0 = (s.x___510979 + 1); - s.x___510979 = (r0); + r0 = (s.x___39229 + 1); + s.x___39229 = (r0); { step = 1; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_SpriteMap_draw__P496873.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__P23924.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__P496873_mk(s) { +function sprites_SpriteMap_draw__P23924_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_SpriteMap_draw__P496873, depth: s.depth + 1, + parent: s, fn: sprites_SpriteMap_draw__P23924, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - x___510979: undefined, - y___510985: undefined, - left___510991: undefined, - top___510996: undefined, - k___511001: undefined, - b___511006: undefined, + x___39229: undefined, + y___39235: undefined, + left___39241: undefined, + top___39246: undefined, + k___39251: undefined, + b___39256: undefined, arg0: undefined, } } @@ -37997,7 +40196,7 @@ function sprites_SpriteMap_draw__P496873_mk(s) { -function ArcadePhysicsEngine_removeSprite__P496960(s) { +function ArcadePhysicsEngine_removeSprite__P24011(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38013,7 +40212,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_VT)) failedCast(r0); r0 = s.arg0.fields["sprites"]; s.tmp_0 = r0; r0 = pxsim_Array_.removeElement(s.tmp_0, s.arg1); @@ -38021,12 +40220,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_removeSprite__P496960.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__P24011.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__P496960_mk(s) { +function ArcadePhysicsEngine_removeSprite__P24011_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_removeSprite__P496960, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_removeSprite__P24011, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38037,7 +40236,7 @@ function ArcadePhysicsEngine_removeSprite__P496960_mk(s) { -function ArcadePhysicsEngine_addSprite__P496959(s) { +function ArcadePhysicsEngine_addSprite__P24010(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38047,33 +40246,33 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.tm___511043 = undefined; + s.tm___39293 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, ArcadePhysicsEngine__C496950_VT)) failedCast(r0); + if (!checkSubtype(r0, ArcadePhysicsEngine__C24001_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__P497302_mk(s); - s.callLocIdx = 446; s.pc = 5; return s.tmp_0; + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 548; s.pc = 5; return s.tmp_0; case 5: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___511043 = (r0); - s.tmp_0 = r0 = s.tm___511043; + s.tm___39293 = (r0); + s.tmp_0 = r0 = s.tm___39293; 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__P497115_mk(s); - s.tmp_1.arg0 = s.tm___511043; + s.tmp_1 = tiles_TileMap_isOnWall__P24184_mk(s); + s.tmp_1.arg0 = s.tm___39293; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 447; s.pc = 6; return s.tmp_1; + s.callLocIdx = 549; s.pc = 6; return s.tmp_1; case 6: r0 = s.retval; case 2: @@ -38093,12 +40292,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -ArcadePhysicsEngine_addSprite__P496959.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__P24010.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__P496959_mk(s) { +function ArcadePhysicsEngine_addSprite__P24010_mk(s) { checkStack(s.depth); return { - parent: s, fn: ArcadePhysicsEngine_addSprite__P496959, depth: s.depth + 1, + parent: s, fn: ArcadePhysicsEngine_addSprite__P24010, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38106,7 +40305,7 @@ function ArcadePhysicsEngine_addSprite__P496959_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - tm___511043: undefined, + tm___39293: undefined, arg0: undefined, arg1: undefined, } } @@ -38115,7 +40314,7 @@ function ArcadePhysicsEngine_addSprite__P496959_mk(s) { -function tiles_TileMapData_constructor__P497082(s) { +function tiles_TileMapData_constructor__P24144(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38134,14 +40333,14 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C497081_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C24143_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__P497086_mk(s); + s.tmp_0 = tiles_TileMapData_scale__P24148_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg4; - s.callLocIdx = 680; s.pc = 1; return s.tmp_0; + s.callLocIdx = 790; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; s.tmp_0 = r0 = s.arg0; @@ -38156,12 +40355,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_constructor__P497082.info = {"start":3293,"length":358,"line":125,"column":8,"endLine":133,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","data","layers","tileset","scale"]} +tiles_TileMapData_constructor__P24144.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 tiles_TileMapData_constructor__P497082_mk(s) { +function tiles_TileMapData_constructor__P24144_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_constructor__P497082, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_constructor__P24144, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38176,7 +40375,7 @@ function tiles_TileMapData_constructor__P497082_mk(s) { -function tiles_TileMapData_scale__P497086(s) { +function tiles_TileMapData_scale__P24148(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38192,7 +40391,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMapData__C497081_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMapData__C24143_VT)) failedCast(r0); r0 = (s.arg0).fields["_scale"] = (s.arg1); s.tmp_0 = r0 = s.arg0; r0 = pxsim_Array__mk(); @@ -38202,12 +40401,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMapData_scale__P497086.info = {"start":3885,"length":102,"line":147,"column":8,"endLine":150,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMapData_scale__P24148.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 tiles_TileMapData_scale__P497086_mk(s) { +function tiles_TileMapData_scale__P24148_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMapData_scale__P497086, depth: s.depth + 1, + parent: s, fn: tiles_TileMapData_scale__P24148, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38219,7 +40418,7 @@ function tiles_TileMapData_scale__P497086_mk(s) { -function tiles_TileMap_constructor__P497095(s) { +function tiles_TileMap_constructor__P24163(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38235,37 +40434,42 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = (s.arg0).fields["_layer"] = (1); - s.tmp_0 = tiles_TileMap_scale__P497097_mk(s); + s.tmp_0 = tiles_TileMap_scale__P24165_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 686; s.pc = 1; return s.tmp_0; + s.callLocIdx = 796; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - r0 = pxsim_pxtcore_mkAction(1, inline__P511102); + r0 = pxsim_pxtcore_mkAction(1, tiles_TileMap_inline__P39354); s.tmp_0 = r0; r0 = pxsim_pxtrt_stclo(s.tmp_0, 0, s.arg0); - s.tmp_1 = scene_createRenderable__P497153_mk(s); - s.tmp_1.arg0 = -1; - s.tmp_1.arg1 = s.tmp_0; - s.tmp_1.arg2 = undefined; - s.callLocIdx = 688; s.pc = 2; return s.tmp_1; + s.tmp_1 = r0 = s.arg0; + s.tmp_3 = scene_createRenderable__P24230_mk(s); + s.tmp_3.arg0 = -1; + s.tmp_3.arg1 = s.tmp_0; + s.tmp_3.arg2 = undefined; + s.callLocIdx = 798; 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() } } } -tiles_TileMap_constructor__P497095.info = {"start":5865,"length":250,"line":210,"column":8,"endLine":218,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["this","scale"]} +tiles_TileMap_constructor__P24163.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 tiles_TileMap_constructor__P497095_mk(s) { +function tiles_TileMap_constructor__P24163_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_constructor__P497095, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_constructor__P24163, depth: s.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, } } @@ -38274,7 +40478,7 @@ function tiles_TileMap_constructor__P497095_mk(s) { -function inline__P511102(s) { +function tiles_TileMap_inline__P39354(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38289,23 +40493,23 @@ switch (step) { s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } - s.tmp_0 = tiles_TileMap_draw__P498820_mk(s); + s.tmp_0 = tiles_TileMap_draw__P26142_mk(s); s.tmp_0.arg0 = s.caps[0]; s.tmp_0.arg1 = s.arg0; s.tmp_0.arg2 = s.arg1; - s.callLocIdx = 687; s.pc = 1; return s.tmp_0; + s.callLocIdx = 797; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -inline__P511102.info = {"start":6065,"length":25,"line":216,"column":16,"endLine":216,"endColumn":41,"fileName":"pxt_modules/game/tilemap.ts","functionName":"inline","argumentNames":["t","c"]} +tiles_TileMap_inline__P39354.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 inline__P511102_mk(s) { +function tiles_TileMap_inline__P39354_mk(s) { checkStack(s.depth); return { - parent: s, fn: inline__P511102, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_inline__P39354, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -38316,7 +40520,7 @@ function inline__P511102_mk(s) { -function tiles_TileMap_draw__P498820(s) { +function tiles_TileMap_draw__P26142(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38326,21 +40530,21 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bitmask___511113 = undefined; - s.offsetX___511119 = undefined; - s.offsetY___511124 = undefined; - s.x0___511129 = undefined; - s.xn___511136 = undefined; - s.y0___511153 = undefined; - s.yn___511160 = undefined; - s.x___511177 = undefined; - s.y___511183 = undefined; - s.index___511189 = undefined; - s.tile___511196 = undefined; - s.x___511232 = undefined; - s.xLine___511238 = undefined; - s.y___511264 = undefined; - s.yLine___511270 = undefined; + s.bitmask___39365 = undefined; + s.offsetX___39371 = undefined; + s.offsetY___39376 = undefined; + s.x0___39381 = undefined; + s.xn___39388 = undefined; + s.y0___39405 = undefined; + s.yn___39412 = undefined; + s.x___39429 = undefined; + s.y___39435 = undefined; + s.index___39441 = undefined; + s.tile___39448 = undefined; + s.x___39484 = undefined; + s.xLine___39490 = undefined; + s.y___39516 = undefined; + s.yLine___39522 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -38348,7 +40552,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); @@ -38373,16 +40577,16 @@ switch (step) { r0 = (1 << s.tmp_8); s.tmp_7 = r0; r0 = (s.tmp_7 - 1); - s.bitmask___511113 = (r0); + s.bitmask___39365 = (r0); r0 = s.arg2.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___511113); - s.offsetX___511119 = (r0); + r0 = (s.tmp_0 & s.bitmask___39365); + s.offsetX___39371 = (r0); r0 = s.arg2.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = (s.tmp_0 & s.bitmask___511113); - s.offsetY___511124 = (r0); - s.tmp_0 = Math_max__P494881_mk(s); + r0 = (s.tmp_0 & s.bitmask___39365); + s.offsetY___39376 = (r0); + s.tmp_0 = Math_max__P21825_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetX"]; s.tmp_1 = r0; @@ -38390,11 +40594,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 >> s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 706; s.pc = 24; return s.tmp_0; + s.callLocIdx = 816; s.pc = 24; return s.tmp_0; case 24: r0 = s.retval; - s.x0___511129 = (r0); - s.tmp_0 = Math_min__P494882_mk(s); + s.x0___39381 = (r0); + s.tmp_0 = Math_min__P21826_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_width"]; @@ -38411,11 +40615,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 + 1); s.tmp_0.arg1 = r0; - s.callLocIdx = 709; s.pc = 25; return s.tmp_0; + s.callLocIdx = 819; s.pc = 25; return s.tmp_0; case 25: r0 = s.retval; - s.xn___511136 = (r0); - s.tmp_0 = Math_max__P494881_mk(s); + s.xn___39388 = (r0); + s.tmp_0 = Math_max__P21825_mk(s); s.tmp_0.arg0 = 0; r0 = s.arg2.fields["drawOffsetY"]; s.tmp_1 = r0; @@ -38423,11 +40627,11 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_1 >> s.tmp_2); s.tmp_0.arg1 = r0; - s.callLocIdx = 711; s.pc = 26; return s.tmp_0; + s.callLocIdx = 821; s.pc = 26; return s.tmp_0; case 26: r0 = s.retval; - s.y0___511153 = (r0); - s.tmp_0 = Math_min__P494882_mk(s); + s.y0___39405 = (r0); + s.tmp_0 = Math_min__P21826_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1 = r0; r0 = s.tmp_1.fields["_height"]; @@ -38444,95 +40648,95 @@ switch (step) { s.tmp_2 = r0; r0 = (s.tmp_2 + 1); s.tmp_0.arg1 = r0; - s.callLocIdx = 714; s.pc = 27; return s.tmp_0; + s.callLocIdx = 824; s.pc = 27; return s.tmp_0; case 27: r0 = s.retval; - s.yn___511160 = (r0); - s.x___511177 = (s.x0___511129); + s.yn___39412 = (r0); + s.x___39429 = (s.x0___39381); case 3: - r0 = (s.x___511177 <= s.xn___511136); + r0 = (s.x___39429 <= s.xn___39388); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 8; continue; } - s.y___511183 = (s.y0___511153); + s.y___39435 = (s.y0___39405); case 4: - r0 = (s.y___511183 <= s.yn___511160); + r0 = (s.y___39435 <= s.yn___39412); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 7; continue; } - s.tmp_1 = tiles_TileMapData_getTile__P497087_mk(s); + s.tmp_1 = tiles_TileMapData_getTile__P24149_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; - s.tmp_1.arg1 = s.x___511177; - s.tmp_1.arg2 = s.y___511183; - s.callLocIdx = 715; s.pc = 28; return s.tmp_1; + s.tmp_1.arg1 = s.x___39429; + s.tmp_1.arg2 = s.y___39435; + s.callLocIdx = 825; s.pc = 28; return s.tmp_1; case 28: r0 = s.retval; - s.index___511189 = (r0); - s.tmp_0 = tiles_TileMapData_getTileImage__P497090_mk(s); + s.index___39441 = (r0); + s.tmp_0 = tiles_TileMapData_getTileImage__P24152_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_0.arg0 = r0; - s.tmp_0.arg1 = s.index___511189; - s.callLocIdx = 716; s.pc = 29; return s.tmp_0; + s.tmp_0.arg1 = s.index___39441; + s.callLocIdx = 826; s.pc = 29; return s.tmp_0; case 29: r0 = s.retval; - s.tile___511196 = (r0); - r0 = pxsim_numops_toBoolDecr(s.tile___511196); + s.tile___39448 = (r0); + r0 = pxsim_numops_toBoolDecr(s.tile___39448); if (!r0) { step = 5; continue; } s.tmp_0 = r0 = s.arg1; - s.tmp_1 = r0 = s.tile___511196; - r0 = (s.x___511177 - s.x0___511129); + s.tmp_1 = r0 = s.tile___39448; + r0 = (s.x___39429 - s.x0___39381); 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___511119); + r0 = (s.tmp_3 - s.offsetX___39371); s.tmp_2 = r0; - r0 = (s.y___511183 - s.y0___511153); + r0 = (s.y___39435 - s.y0___39405); 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___511124); + r0 = (s.tmp_7 - s.offsetY___39376); 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___511183 + 1); - s.y___511183 = (r0); + r0 = (s.y___39435 + 1); + s.y___39435 = (r0); { step = 4; continue; } case 7: - r0 = (s.x___511177 + 1); - s.x___511177 = (r0); + r0 = (s.x___39429 + 1); + s.x___39429 = (r0); { step = 3; continue; } case 8: - r0 = pxsim_numops_toBoolDecr(globals.debug___497298); + r0 = pxsim_numops_toBoolDecr(globals.debug___24376); if (!r0) { step = 21; continue; } - s.x___511232 = (s.x0___511129); + s.x___39484 = (s.x0___39381); case 9: - r0 = (s.x___511232 <= s.xn___511136); + r0 = (s.x___39484 <= s.xn___39388); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 14; continue; } - r0 = (s.x___511232 - s.x0___511129); + r0 = (s.x___39484 - s.x0___39381); 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___511119); - s.xLine___511238 = (r0); - r0 = (s.xLine___511238 >= 0); + r0 = (s.tmp_1 - s.offsetX___39371); + s.xLine___39490 = (r0); + r0 = (s.xLine___39490 >= 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___511238; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + s.tmp_1 = r0 = s.xLine___39490; + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 11: @@ -38540,46 +40744,46 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 12; continue; } - s.tmp_4 = helpers_imageDrawLine__P496496_mk(s); + s.tmp_4 = helpers_imageDrawLine__P23452_mk(s); s.tmp_4.arg0 = s.arg1; - s.tmp_4.arg1 = s.xLine___511238; + s.tmp_4.arg1 = s.xLine___39490; s.tmp_4.arg2 = 0; - s.tmp_4.arg3 = s.xLine___511238; + s.tmp_4.arg3 = s.xLine___39490; r0 = pxsim_ImageMethods.height(s.arg1); s.tmp_4.arg4 = r0; s.tmp_4.arg5 = 1; - s.callLocIdx = 720; s.pc = 30; return s.tmp_4; + s.callLocIdx = 830; s.pc = 30; return s.tmp_4; case 30: r0 = s.retval; case 12: case 13: - r0 = (s.x___511232 + 1); - s.x___511232 = (r0); + r0 = (s.x___39484 + 1); + s.x___39484 = (r0); { step = 9; continue; } case 14: - s.y___511264 = (s.y0___511153); + s.y___39516 = (s.y0___39405); case 15: - r0 = (s.y___511264 <= s.yn___511160); + r0 = (s.y___39516 <= s.yn___39412); s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 20; continue; } - r0 = (s.y___511264 - s.y0___511153); + r0 = (s.y___39516 - s.y0___39405); 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___511124); - s.yLine___511270 = (r0); - r0 = (s.yLine___511270 >= 0); + r0 = (s.tmp_1 - s.offsetY___39376); + s.yLine___39522 = (r0); + r0 = (s.yLine___39522 >= 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___511270; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + s.tmp_1 = r0 = s.yLine___39522; + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_2 = r0; r0 = (s.tmp_1 <= s.tmp_2); case 17: @@ -38587,21 +40791,21 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 18; continue; } - s.tmp_4 = helpers_imageDrawLine__P496496_mk(s); + s.tmp_4 = helpers_imageDrawLine__P23452_mk(s); s.tmp_4.arg0 = s.arg1; s.tmp_4.arg1 = 0; - s.tmp_4.arg2 = s.yLine___511270; + s.tmp_4.arg2 = s.yLine___39522; r0 = pxsim_ImageMethods.width(s.arg1); s.tmp_4.arg3 = r0; - s.tmp_4.arg4 = s.yLine___511270; + s.tmp_4.arg4 = s.yLine___39522; s.tmp_4.arg5 = 1; - s.callLocIdx = 722; s.pc = 31; return s.tmp_4; + s.callLocIdx = 832; s.pc = 31; return s.tmp_4; case 31: r0 = s.retval; case 18: case 19: - r0 = (s.y___511264 + 1); - s.y___511264 = (r0); + r0 = (s.y___39516 + 1); + s.y___39516 = (r0); { step = 15; continue; } case 20: case 21: @@ -38611,12 +40815,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_draw__P498820.info = {"start":10187,"length":2224,"line":347,"column":8,"endLine":402,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"draw","argumentNames":["this","target","camera"]} +tiles_TileMap_draw__P26142.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 tiles_TileMap_draw__P498820_mk(s) { +function tiles_TileMap_draw__P26142_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_draw__P498820, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_draw__P26142, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38628,21 +40832,21 @@ function tiles_TileMap_draw__P498820_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - bitmask___511113: undefined, - offsetX___511119: undefined, - offsetY___511124: undefined, - x0___511129: undefined, - xn___511136: undefined, - y0___511153: undefined, - yn___511160: undefined, - x___511177: undefined, - y___511183: undefined, - index___511189: undefined, - tile___511196: undefined, - x___511232: undefined, - xLine___511238: undefined, - y___511264: undefined, - yLine___511270: undefined, + bitmask___39365: undefined, + offsetX___39371: undefined, + offsetY___39376: undefined, + x0___39381: undefined, + xn___39388: undefined, + y0___39405: undefined, + yn___39412: undefined, + x___39429: undefined, + y___39435: undefined, + index___39441: undefined, + tile___39448: undefined, + x___39484: undefined, + xLine___39490: undefined, + y___39516: undefined, + yLine___39522: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -38652,7 +40856,7 @@ function tiles_TileMap_draw__P498820_mk(s) { -function tiles_TileMap_scale__P497097(s) { +function tiles_TileMap_scale__P24165(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38668,17 +40872,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_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__P497086_mk(s); + s.tmp_1 = tiles_TileMapData_scale__P24148_mk(s); r0 = s.arg0.fields["_map"]; s.tmp_1.arg0 = r0; s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 689; s.pc = 3; return s.tmp_1; + s.callLocIdx = 799; s.pc = 3; return s.tmp_1; case 3: r0 = s.retval; case 1: @@ -38687,12 +40891,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -tiles_TileMap_scale__P497097.info = {"start":6190,"length":144,"line":224,"column":8,"endLine":229,"endColumn":9,"fileName":"pxt_modules/game/tilemap.ts","functionName":"scale","argumentNames":["this","s"]} +tiles_TileMap_scale__P24165.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 tiles_TileMap_scale__P497097_mk(s) { +function tiles_TileMap_scale__P24165_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_scale__P497097, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_scale__P24165, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38704,7 +40908,7 @@ function tiles_TileMap_scale__P497097_mk(s) { -function tiles_TileMap_data__P498818(s) { +function tiles_TileMap_data__P24166(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38719,18 +40923,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_TileMap__C497094_VT)) failedCast(r0); + if (!checkSubtype(r0, tiles_TileMap__C24161_VT)) failedCast(r0); r0 = s.arg0.fields["_map"]; return leaveAccessor(s, r0) default: oops() } } } -tiles_TileMap_data__P498818.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__P498818.isGetter = true; +tiles_TileMap_data__P24166.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__P24166.isGetter = true; -function tiles_TileMap_data__P498818_mk(s) { +function tiles_TileMap_data__P24166_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_TileMap_data__P498818, depth: s.depth + 1, + parent: s, fn: tiles_TileMap_data__P24166, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -38739,7 +40943,7 @@ function tiles_TileMap_data__P498818_mk(s) { -function Sprite_toString__P496865(s) { +function Sprite_toString__P23916(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38754,7 +40958,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = pxsim_String_.mkEmpty(); s.tmp_9 = r0; r0 = s.arg0.fields["id"]; @@ -38772,9 +40976,9 @@ switch (step) { s.tmp_8 = r0; r0 = pxsim_String__concat(s.tmp_8, "("); s.tmp_7 = r0; - s.tmp_14 = Sprite_x__P496798_mk(s); + s.tmp_14 = Sprite_x__P23836_mk(s); s.tmp_14.arg0 = s.arg0; - s.callLocIdx = 381; s.pc = 2; return s.tmp_14; + s.callLocIdx = 483; s.pc = 2; return s.tmp_14; case 2: r0 = s.retval; s.tmp_13 = r0; @@ -38791,9 +40995,9 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_String__concat(s.tmp_6, ","); s.tmp_5 = r0; - s.tmp_17 = Sprite_y__P496800_mk(s); + s.tmp_17 = Sprite_y__P23838_mk(s); s.tmp_17.arg0 = s.arg0; - s.callLocIdx = 382; s.pc = 4; return s.tmp_17; + s.callLocIdx = 484; s.pc = 4; return s.tmp_17; case 4: r0 = s.retval; s.tmp_16 = r0; @@ -38810,9 +41014,9 @@ switch (step) { s.tmp_4 = r0; r0 = pxsim_String__concat(s.tmp_4, ")->("); s.tmp_3 = r0; - s.tmp_20 = Sprite_vx__P496802_mk(s); + s.tmp_20 = Sprite_vx__P23840_mk(s); s.tmp_20.arg0 = s.arg0; - s.callLocIdx = 383; s.pc = 6; return s.tmp_20; + s.callLocIdx = 485; s.pc = 6; return s.tmp_20; case 6: r0 = s.retval; s.tmp_19 = r0; @@ -38829,9 +41033,9 @@ switch (step) { s.tmp_2 = r0; r0 = pxsim_String__concat(s.tmp_2, ","); s.tmp_1 = r0; - s.tmp_23 = Sprite_vy__P496804_mk(s); + s.tmp_23 = Sprite_vy__P23842_mk(s); s.tmp_23.arg0 = s.arg0; - s.callLocIdx = 384; s.pc = 8; return s.tmp_23; + s.callLocIdx = 486; s.pc = 8; return s.tmp_23; case 8: r0 = s.retval; s.tmp_22 = r0; @@ -38850,12 +41054,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_toString__P496865.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__P23916.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__P496865_mk(s) { +function Sprite_toString__P23916_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_toString__P496865, depth: s.depth + 1, + parent: s, fn: Sprite_toString__P23916, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -38888,7 +41092,7 @@ function Sprite_toString__P496865_mk(s) { -function Sprite___update__P496851(s) { +function Sprite___update__P23898(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -38898,8 +41102,8 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.bounce___511369 = undefined; - s.tm___511374 = undefined; + s.bounce___39621 = undefined; + s.tm___39626 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -38907,7 +41111,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 !== undefined); @@ -38929,9 +41133,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__P496863_mk(s); + s.tmp_0 = Sprite__destroyCore__P23911_mk(s); s.tmp_0.arg0 = s.arg0; - s.callLocIdx = 317; s.pc = 33; return s.tmp_0; + s.callLocIdx = 396; s.pc = 33; return s.tmp_0; case 33: r0 = s.retval; case 1: @@ -38947,10 +41151,10 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_2 = Sprite_isOutOfScreen__P496849_mk(s); + s.tmp_2 = Sprite_isOutOfScreen__P23896_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 318; s.pc = 34; return s.tmp_2; + s.callLocIdx = 397; s.pc = 34; return s.tmp_2; case 34: r0 = s.retval; case 6: @@ -38958,11 +41162,11 @@ switch (step) { s.tmp_3 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_3); if (!r0) { step = 7; continue; } - s.tmp_4 = Sprite_destroy__P496862_mk(s); + s.tmp_4 = Sprite_destroy__P23910_mk(s); s.tmp_4.arg0 = s.arg0; s.tmp_4.arg1 = undefined; s.tmp_4.arg2 = undefined; - s.callLocIdx = 319; s.pc = 35; return s.tmp_4; + s.callLocIdx = 398; s.pc = 35; return s.tmp_4; case 35: r0 = s.retval; case 7: @@ -38970,13 +41174,13 @@ switch (step) { r0 = s.arg0.fields["flags"]; s.tmp_0 = r0; r0 = (s.tmp_0 & 32); - s.bounce___511369 = (r0); - s.tmp_0 = game_currentScene__P497302_mk(s); - s.callLocIdx = 320; s.pc = 36; return s.tmp_0; + s.bounce___39621 = (r0); + s.tmp_0 = game_currentScene__P24380_mk(s); + s.callLocIdx = 399; s.pc = 36; return s.tmp_0; case 36: r0 = s.retval; r0 = r0.fields["tileMap"]; - s.tm___511374 = (r0); + s.tm___39626 = (r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 8); @@ -38986,13 +41190,13 @@ switch (step) { r0 = s.tmp_0; { step = 12; continue; } case 9: - s.tmp_2 = r0 = s.bounce___511369; + s.tmp_2 = r0 = s.bounce___39621; 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___511374); + r0 = pxsim_numops_toBoolDecr(s.tm___39626); s.tmp_3 = r0; r0 = pxsim_Boolean__bang(s.tmp_3); case 11: @@ -39004,9 +41208,9 @@ switch (step) { s.tmp_5 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_5); if (!r0) { step = 29; continue; } - s.tmp_8 = Sprite_left__P496835_mk(s); + s.tmp_8 = Sprite_left__P23881_mk(s); s.tmp_8.arg0 = s.arg0; - s.callLocIdx = 321; s.pc = 37; return s.tmp_8; + s.callLocIdx = 400; s.pc = 37; return s.tmp_8; case 37: r0 = s.retval; s.tmp_7 = r0; @@ -39016,41 +41220,41 @@ switch (step) { s.tmp_6 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_6); if (!r0) { step = 15; continue; } - s.tmp_10 = Sprite_left__P496836_mk(s); + s.tmp_10 = Sprite_left__P23882_mk(s); s.tmp_10.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_10.arg1 = r0; - s.callLocIdx = 324; s.pc = 38; return s.tmp_10; + s.callLocIdx = 403; s.pc = 38; return s.tmp_10; case 38: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___511369); + r0 = pxsim_numops_toBoolDecr(s.bounce___39621); if (!r0) { step = 13; continue; } - s.tmp_0 = Sprite_vx__P496803_mk(s); + s.tmp_0 = Sprite_vx__P23841_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P496802_mk(s); + s.tmp_2 = Sprite_vx__P23840_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 325; s.pc = 40; return s.tmp_2; + s.callLocIdx = 404; 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 = 326; s.pc = 39; return s.tmp_0; + s.callLocIdx = 405; 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__P496837_mk(s); + s.tmp_2 = Sprite_right__P23883_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 327; s.pc = 41; return s.tmp_2; + s.callLocIdx = 406; 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___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -39058,30 +41262,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 18; continue; } - s.tmp_6 = Sprite_right__P496838_mk(s); + s.tmp_6 = Sprite_right__P23884_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetX"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; - s.callLocIdx = 330; s.pc = 42; return s.tmp_6; + s.callLocIdx = 409; s.pc = 42; return s.tmp_6; case 42: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___511369); + r0 = pxsim_numops_toBoolDecr(s.bounce___39621); if (!r0) { step = 16; continue; } - s.tmp_0 = Sprite_vx__P496803_mk(s); + s.tmp_0 = Sprite_vx__P23841_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vx__P496802_mk(s); + s.tmp_2 = Sprite_vx__P23840_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 331; s.pc = 44; return s.tmp_2; + s.callLocIdx = 410; 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 = 332; s.pc = 43; return s.tmp_0; + s.callLocIdx = 411; s.pc = 43; return s.tmp_0; case 43: r0 = s.retval; case 16: @@ -39089,9 +41293,9 @@ switch (step) { case 18: case 19: case 20: - s.tmp_2 = Sprite_top__P496839_mk(s); + s.tmp_2 = Sprite_top__P23885_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 333; s.pc = 45; return s.tmp_2; + s.callLocIdx = 412; s.pc = 45; return s.tmp_2; case 45: r0 = s.retval; s.tmp_1 = r0; @@ -39101,41 +41305,41 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 23; continue; } - s.tmp_4 = Sprite_top__P496840_mk(s); + s.tmp_4 = Sprite_top__P23886_mk(s); s.tmp_4.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_4.arg1 = r0; - s.callLocIdx = 336; s.pc = 46; return s.tmp_4; + s.callLocIdx = 415; s.pc = 46; return s.tmp_4; case 46: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___511369); + r0 = pxsim_numops_toBoolDecr(s.bounce___39621); if (!r0) { step = 21; continue; } - s.tmp_0 = Sprite_vy__P496805_mk(s); + s.tmp_0 = Sprite_vy__P23843_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P496804_mk(s); + s.tmp_2 = Sprite_vy__P23842_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 337; s.pc = 48; return s.tmp_2; + s.callLocIdx = 416; 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 = 338; s.pc = 47; return s.tmp_0; + s.callLocIdx = 417; 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__P496841_mk(s); + s.tmp_2 = Sprite_bottom__P23887_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 339; s.pc = 49; return s.tmp_2; + s.callLocIdx = 418; 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___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_5 = r0; r0 = (s.tmp_4 + s.tmp_5); s.tmp_3 = r0; @@ -39143,30 +41347,30 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 26; continue; } - s.tmp_6 = Sprite_bottom__P496842_mk(s); + s.tmp_6 = Sprite_bottom__P23888_mk(s); s.tmp_6.arg0 = s.arg0; r0 = s.arg1.fields["_offsetY"]; s.tmp_7 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_8 = r0; r0 = (s.tmp_7 + s.tmp_8); s.tmp_6.arg1 = r0; - s.callLocIdx = 342; s.pc = 50; return s.tmp_6; + s.callLocIdx = 421; s.pc = 50; return s.tmp_6; case 50: r0 = s.retval; - r0 = pxsim_numops_toBoolDecr(s.bounce___511369); + r0 = pxsim_numops_toBoolDecr(s.bounce___39621); if (!r0) { step = 24; continue; } - s.tmp_0 = Sprite_vy__P496805_mk(s); + s.tmp_0 = Sprite_vy__P23843_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_2 = Sprite_vy__P496804_mk(s); + s.tmp_2 = Sprite_vy__P23842_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 343; s.pc = 52; return s.tmp_2; + s.callLocIdx = 422; 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 = 344; s.pc = 51; return s.tmp_0; + s.callLocIdx = 423; s.pc = 51; return s.tmp_0; case 51: r0 = s.retval; case 24: @@ -39176,23 +41380,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__C23743_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 = 345; 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 = 345; s.pc = 53; return s.tmp_1; } - else if (s.tmp_1.fn.isGetter) { s.tmp_1.stage2Call = true; s.callLocIdx = 345; s.pc = 53; return s.tmp_1;; } - else { s.callLocIdx = 345; s.pc = 53; return s.tmp_1; } - } + s.tmp_1.arg3 = s.arg0; + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSpriteSayRenderer__C23743_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: @@ -39201,12 +41401,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___update__P496851.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__P23898.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__P496851_mk(s) { +function Sprite___update__P23898_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___update__P496851, depth: s.depth + 1, + parent: s, fn: Sprite___update__P23898, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39219,8 +41419,8 @@ function Sprite___update__P496851_mk(s) { tmp_8: undefined, tmp_9: undefined, tmp_10: undefined, - bounce___511369: undefined, - tm___511374: undefined, + bounce___39621: undefined, + tm___39626: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -39230,7 +41430,7 @@ function Sprite___update__P496851_mk(s) { -function Sprite_isOutOfScreen__P496849(s) { +function Sprite_isOutOfScreen__P23896(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39240,15 +41440,15 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___511463 = undefined; - s.oy___511471 = undefined; + s.ox___39721 = undefined; + s.oy___39729 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -39262,7 +41462,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_2 = r0; - s.ox___511463 = (s.tmp_2); + s.ox___39721 = (s.tmp_2); r0 = s.arg0.fields["flags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 512); @@ -39276,14 +41476,14 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_2 = r0; - s.oy___511471 = (s.tmp_2); - s.tmp_3 = Sprite_right__P496837_mk(s); + s.oy___39729 = (s.tmp_2); + s.tmp_3 = Sprite_right__P23883_mk(s); s.tmp_3.arg0 = s.arg0; - s.callLocIdx = 286; s.pc = 11; return s.tmp_3; + s.callLocIdx = 361; s.pc = 11; return s.tmp_3; case 11: r0 = s.retval; s.tmp_2 = r0; - r0 = (s.tmp_2 - s.ox___511463); + r0 = (s.tmp_2 - s.ox___39721); s.tmp_1 = r0; r0 = (s.tmp_1 < 0); s.tmp_0 = r0; @@ -39292,13 +41492,13 @@ switch (step) { r0 = s.tmp_0; { step = 6; continue; } case 5: - s.tmp_6 = Sprite_bottom__P496841_mk(s); + s.tmp_6 = Sprite_bottom__P23887_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 287; s.pc = 12; return s.tmp_6; + s.callLocIdx = 362; s.pc = 12; return s.tmp_6; case 12: r0 = s.retval; s.tmp_5 = r0; - r0 = (s.tmp_5 - s.oy___511471); + r0 = (s.tmp_5 - s.oy___39729); s.tmp_4 = r0; r0 = (s.tmp_4 < 0); case 6: @@ -39309,15 +41509,15 @@ switch (step) { r0 = s.tmp_7; { step = 8; continue; } case 7: - s.tmp_10 = Sprite_left__P496835_mk(s); + s.tmp_10 = Sprite_left__P23881_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 288; s.pc = 13; return s.tmp_10; + s.callLocIdx = 363; s.pc = 13; return s.tmp_10; case 13: r0 = s.retval; s.tmp_9 = r0; - r0 = (s.tmp_9 - s.ox___511463); + r0 = (s.tmp_9 - s.ox___39721); s.tmp_8 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_11 = r0; r0 = (s.tmp_8 > s.tmp_11); case 8: @@ -39328,15 +41528,15 @@ switch (step) { r0 = s.tmp_12; { step = 10; continue; } case 9: - s.tmp_15 = Sprite_top__P496839_mk(s); + s.tmp_15 = Sprite_top__P23885_mk(s); s.tmp_15.arg0 = s.arg0; - s.callLocIdx = 289; s.pc = 14; return s.tmp_15; + s.callLocIdx = 364; s.pc = 14; return s.tmp_15; case 14: r0 = s.retval; s.tmp_14 = r0; - r0 = (s.tmp_14 - s.oy___511471); + r0 = (s.tmp_14 - s.oy___39729); s.tmp_13 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_16 = r0; r0 = (s.tmp_13 > s.tmp_16); case 10: @@ -39346,12 +41546,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite_isOutOfScreen__P496849.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__P23896.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__P496849_mk(s) { +function Sprite_isOutOfScreen__P23896_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_isOutOfScreen__P496849, depth: s.depth + 1, + parent: s, fn: Sprite_isOutOfScreen__P23896, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39371,8 +41571,8 @@ function Sprite_isOutOfScreen__P496849_mk(s) { tmp_15: undefined, tmp_16: undefined, tmp_17: undefined, - ox___511463: undefined, - oy___511471: undefined, + ox___39721: undefined, + oy___39729: undefined, arg0: undefined, arg1: undefined, } } @@ -39381,7 +41581,7 @@ function Sprite_isOutOfScreen__P496849_mk(s) { -function Sprite_bottom__P496842(s) { +function Sprite_bottom__P23888(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39397,29 +41597,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_0 = Sprite_top__P496840_mk(s); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_0 = Sprite_top__P23886_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__P23880_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 354; 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 = 280; s.pc = 1; return s.tmp_0; + s.callLocIdx = 355; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_bottom__P496842.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__P23888.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__P496842_mk(s) { +function Sprite_bottom__P23888_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_bottom__P496842, depth: s.depth + 1, + parent: s, fn: Sprite_bottom__P23888, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39433,7 +41635,7 @@ function Sprite_bottom__P496842_mk(s) { -function Sprite_right__P496838(s) { +function Sprite_right__P23884(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39449,29 +41651,31 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_0 = Sprite_left__P496836_mk(s); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); + s.tmp_0 = Sprite_left__P23882_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__P23879_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 346; 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 = 272; s.pc = 1; return s.tmp_0; + s.callLocIdx = 347; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_right__P496838.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__P23884.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__P496838_mk(s) { +function Sprite_right__P23884_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_right__P496838, depth: s.depth + 1, + parent: s, fn: Sprite_right__P23884, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39485,7 +41689,7 @@ function Sprite_right__P496838_mk(s) { -function Sprite_width__P496833(s) { +function sprites_BaseSpriteSayRenderer_update__P23746(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39497,33 +41701,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__C496789_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__C23743_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) default: oops() } } } -Sprite_width__P496833.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__P496833.isGetter = true; +sprites_BaseSpriteSayRenderer_update__P23746.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__P496833_mk(s) { +function sprites_BaseSpriteSayRenderer_update__P23746_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_width__P496833, depth: s.depth + 1, + parent: s, fn: sprites_BaseSpriteSayRenderer_update__P23746, 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__P496815(s) { +function Sprite_data__P23859(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39539,18 +41745,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = (s.arg0).fields["_data"] = (s.arg1); r0 = undefined; return leave(s, r0) default: oops() } } } -Sprite_data__P496815.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__P23859.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__P496815_mk(s) { +function Sprite_data__P23859_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P496815, depth: s.depth + 1, + parent: s, fn: Sprite_data__P23859, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -39560,7 +41766,7 @@ function Sprite_data__P496815_mk(s) { -function Sprite_data__P496814(s) { +function Sprite_data__P23858(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39575,7 +41781,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, Sprite__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["_data"]; s.tmp_2 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_2); @@ -39594,13 +41800,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -Sprite_data__P496814.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__P496814.isGetter = true; +Sprite_data__P23858.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__P23858.isGetter = true; -function Sprite_data__P496814_mk(s) { +function Sprite_data__P23858_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite_data__P496814, depth: s.depth + 1, + parent: s, fn: Sprite_data__P23858, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39614,7 +41820,7 @@ function Sprite_data__P496814_mk(s) { -function scene_BackgroundLayer_constructor__P497059(s) { +function scene_BackgroundLayer_constructor__P24112(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39632,12 +41838,12 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_BackgroundLayer__C497052_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_BackgroundLayer__C24105_VT)) failedCast(r0); s.tmp_0 = r0 = s.arg0; - s.tmp_2 = Math_max__P494881_mk(s); + s.tmp_2 = Math_max__P21825_mk(s); s.tmp_2.arg0 = 1; s.tmp_2.arg1 = s.arg1; - s.callLocIdx = 674; s.pc = 7; return s.tmp_2; + s.callLocIdx = 776; s.pc = 7; return s.tmp_2; case 7: r0 = s.retval; s.tmp_1 = r0; @@ -39680,12 +41886,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_BackgroundLayer_constructor__P497059.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__P24112.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__P497059_mk(s) { +function scene_BackgroundLayer_constructor__P24112_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_BackgroundLayer_constructor__P497059, depth: s.depth + 1, + parent: s, fn: scene_BackgroundLayer_constructor__P24112, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39700,7 +41906,7 @@ function scene_BackgroundLayer_constructor__P497059_mk(s) { -function scene_Camera_y__P497140(s) { +function scene_Camera_y__P24217(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39715,10 +41921,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C497130_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetY"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.height(globals.screen___496568); + r0 = pxsim_ImageMethods.height(globals.screen___23524); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -39726,13 +41932,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_y__P497140.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__P497140.isGetter = true; +scene_Camera_y__P24217.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__P24217.isGetter = true; -function scene_Camera_y__P497140_mk(s) { +function scene_Camera_y__P24217_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_y__P497140, depth: s.depth + 1, + parent: s, fn: scene_Camera_y__P24217, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39744,7 +41950,7 @@ function scene_Camera_y__P497140_mk(s) { -function scene_Camera_x__P497139(s) { +function scene_Camera_x__P24216(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39759,10 +41965,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C497130_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetX"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.width(globals.screen___496568); + r0 = pxsim_ImageMethods.width(globals.screen___23524); s.tmp_2 = r0; r0 = (s.tmp_2 >> 1); s.tmp_1 = r0; @@ -39770,13 +41976,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_x__P497139.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__P497139.isGetter = true; +scene_Camera_x__P24216.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__P24216.isGetter = true; -function scene_Camera_x__P497139_mk(s) { +function scene_Camera_x__P24216_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_x__P497139, depth: s.depth + 1, + parent: s, fn: scene_Camera_x__P24216, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39788,7 +41994,7 @@ function scene_Camera_x__P497139_mk(s) { -function particles_ParticleSource___draw__P497454(s) { +function particles_ParticleSource___draw__P24533(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39798,18 +42004,18 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.current___511586 = undefined; - s.left___511589 = undefined; - s.top___511599 = undefined; + s.current___39840 = undefined; + s.left___39843 = undefined; + s.top___39853 = 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__C497448_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); r0 = s.arg0.fields["head"]; - s.current___511586 = (r0); + s.current___39840 = (r0); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -39827,7 +42033,7 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.left___511589 = (s.tmp_4); + s.left___39843 = (s.tmp_4); r0 = s.arg0.fields["pFlags"]; s.tmp_1 = r0; r0 = (s.tmp_1 & 4); @@ -39845,49 +42051,49 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_4 = r0; - s.top___511599 = (s.tmp_4); + s.top___39853 = (s.tmp_4); case 5: - r0 = pxsim_numops_toBoolDecr(s.current___511586); + r0 = pxsim_numops_toBoolDecr(s.current___39840); if (!r0) { step = 8; continue; } - r0 = s.current___511586.fields["lifespan"]; + r0 = s.current___39840.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__P499229_mk(s); + s.tmp_2 = particles_ParticleSource_drawParticle__P26538_mk(s); s.tmp_2.arg0 = s.arg0; - s.tmp_2.arg1 = s.current___511586; - s.tmp_2.arg2 = s.left___511589; - s.tmp_2.arg3 = s.top___511599; - s.callLocIdx = 1025; s.pc = 9; return s.tmp_2; + s.tmp_2.arg1 = s.current___39840; + s.tmp_2.arg2 = s.left___39843; + s.tmp_2.arg3 = s.top___39853; + s.callLocIdx = 1133; s.pc = 9; return s.tmp_2; case 9: r0 = s.retval; case 6: case 7: - r0 = s.current___511586.fields["next"]; - s.current___511586 = (r0); + r0 = s.current___39840.fields["next"]; + s.current___39840 = (r0); { step = 5; continue; } case 8: r0 = undefined; return leave(s, r0) default: oops() } } } -particles_ParticleSource___draw__P497454.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__P24533.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__P497454_mk(s) { +function particles_ParticleSource___draw__P24533_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource___draw__P497454, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource___draw__P24533, depth: s.depth + 1, pc: 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___511586: undefined, - left___511589: undefined, - top___511599: undefined, + current___39840: undefined, + left___39843: undefined, + top___39853: undefined, arg0: undefined, arg1: undefined, } } @@ -39896,7 +42102,7 @@ function particles_ParticleSource___draw__P497454_mk(s) { -function particles_ParticleSource_drawParticle__P499229(s) { +function particles_ParticleSource_drawParticle__P26538(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39914,8 +42120,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleSource__C497448_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory__C497484_v1_4_mk(s); + if (!checkSubtype(r0, particles_ParticleSource__C24527_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory__C24563_v1_4_mk(s); r0 = s.arg0.fields["_factory"]; s.tmp_0.arg0 = r0; s.tmp_0.arg1 = s.arg1; @@ -39927,7 +42133,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__C497484_VT)) failedCast(s.tmp_0.arg0); + if (!checkSubtype(s.tmp_0.arg0, particles_ParticleFactory__C24563_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: @@ -39936,12 +42142,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleSource_drawParticle__P499229.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__P26538.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__P499229_mk(s) { +function particles_ParticleSource_drawParticle__P26538_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleSource_drawParticle__P499229, depth: s.depth + 1, + parent: s, fn: particles_ParticleSource_drawParticle__P26538, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -39956,7 +42162,7 @@ function particles_ParticleSource_drawParticle__P499229_mk(s) { -function particles_ParticleFactory_drawParticle__P497487(s) { +function particles_ParticleFactory_drawParticle__P24566(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -39974,8 +42180,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ParticleFactory__C497484_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___496568; + if (!checkSubtype(r0, particles_ParticleFactory__C24563_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___23524; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -39989,12 +42195,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ParticleFactory_drawParticle__P497487.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__P24566.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__P497487_mk(s) { +function particles_ParticleFactory_drawParticle__P24566_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ParticleFactory_drawParticle__P497487, depth: s.depth + 1, + parent: s, fn: particles_ParticleFactory_drawParticle__P24566, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40011,7 +42217,7 @@ function particles_ParticleFactory_drawParticle__P497487_mk(s) { -function sprites_BaseSprite___update__P496632(s) { +function sprites_BaseSprite___update__P23591(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40028,17 +42234,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C496624_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C23583_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___update__P496632.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__P23591.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__P496632_mk(s) { +function sprites_BaseSprite___update__P23591_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___update__P496632, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___update__P23591, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -40049,7 +42255,7 @@ function sprites_BaseSprite___update__P496632_mk(s) { -function sprites_BaseSprite___draw__P496630(s) { +function sprites_BaseSprite___draw__P23589(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40065,10 +42271,10 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C496624_VT)) failedCast(r0); - s.tmp_1 = sprites_BaseSprite__C496624_v0_1_mk(s); + if (!checkSubtype(r0, sprites_BaseSprite__C23583_VT)) failedCast(r0); + s.tmp_1 = sprites_BaseSprite__C23583_v0_1_mk(s); s.tmp_1.arg0 = s.arg0; - if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C496624_VT)) failedCast(s.tmp_1.arg0); + if (!checkSubtype(s.tmp_1.arg0, sprites_BaseSprite__C23583_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: @@ -40076,10 +42282,10 @@ switch (step) { s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); if (!r0) { step = 1; continue; } - s.tmp_2 = sprites_BaseSprite__C496624_v2_2_mk(s); + s.tmp_2 = sprites_BaseSprite__C23583_v2_2_mk(s); s.tmp_2.arg0 = s.arg0; s.tmp_2.arg1 = s.arg1; - if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C496624_VT)) failedCast(s.tmp_2.arg0); + if (!checkSubtype(s.tmp_2.arg0, sprites_BaseSprite__C23583_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: @@ -40090,12 +42296,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -sprites_BaseSprite___draw__P496630.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__P23589.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__P496630_mk(s) { +function sprites_BaseSprite___draw__P23589_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___draw__P496630, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___draw__P23589, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40108,7 +42314,7 @@ function sprites_BaseSprite___draw__P496630_mk(s) { -function sprites_BaseSprite___drawCore__P496631(s) { +function sprites_BaseSprite___drawCore__P23590(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40124,17 +42330,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C496624_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C23583_VT)) failedCast(r0); r0 = undefined; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___drawCore__P496631.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__P23590.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__P496631_mk(s) { +function sprites_BaseSprite___drawCore__P23590_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___drawCore__P496631, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___drawCore__P23590, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, arg1: undefined, @@ -40144,7 +42350,7 @@ function sprites_BaseSprite___drawCore__P496631_mk(s) { -function sprites_BaseSprite___visible__P496627(s) { +function sprites_BaseSprite___visible__P23586(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40159,17 +42365,17 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_BaseSprite__C496624_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSprite__C23583_VT)) failedCast(r0); r0 = true; return leave(s, r0) default: oops() } } } -sprites_BaseSprite___visible__P496627.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__P23586.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__P496627_mk(s) { +function sprites_BaseSprite___visible__P23586_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_BaseSprite___visible__P496627, depth: s.depth + 1, + parent: s, fn: sprites_BaseSprite___visible__P23586, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -40178,7 +42384,7 @@ function sprites_BaseSprite___visible__P496627_mk(s) { -function particles_ShapeFactory_createParticle__P497514(s) { +function particles_ShapeFactory_createParticle__P24593(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40188,47 +42394,47 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___511661 = undefined; + s.p___39915 = 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__C497510_VT)) failedCast(r0); - s.tmp_0 = particles_AreaFactory_createParticle__P497500_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C24589_VT)) failedCast(r0); + s.tmp_0 = particles_AreaFactory_createParticle__P24579_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1119; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1227; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___511661 = (r0); - s.tmp_0 = r0 = s.p___511661; - s.tmp_2 = Math_FastRandom_randomRange__P497360_mk(s); + s.p___39915 = (r0); + s.tmp_0 = r0 = s.p___39915; + s.tmp_2 = Math_FastRandom_randomRange__P24439_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_2.arg0 = r0; s.tmp_2.arg1 = 1; s.tmp_2.arg2 = 14; - s.callLocIdx = 1120; s.pc = 2; return s.tmp_2; + s.callLocIdx = 1228; 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___511661; + r0 = s.p___39915; return leave(s, r0) default: oops() } } } -particles_ShapeFactory_createParticle__P497514.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__P24593.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__P497514_mk(s) { +function particles_ShapeFactory_createParticle__P24593_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_createParticle__P497514, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_createParticle__P24593, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, tmp_2: undefined, - p___511661: undefined, + p___39915: undefined, arg0: undefined, arg1: undefined, } } @@ -40237,7 +42443,7 @@ function particles_ShapeFactory_createParticle__P497514_mk(s) { -function particles_AreaFactory_createParticle__P497500(s) { +function particles_AreaFactory_createParticle__P24579(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40247,42 +42453,42 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___511673 = undefined; + s.p___39927 = 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__C497494_VT)) failedCast(r0); - s.tmp_0 = particles_SprayFactory_createParticle__P497490_mk(s); + if (!checkSubtype(r0, particles_AreaFactory__C24573_VT)) failedCast(r0); + s.tmp_0 = particles_SprayFactory_createParticle__P24569_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1101; s.pc = 3; return s.tmp_0; + s.callLocIdx = 1209; s.pc = 3; return s.tmp_0; case 3: r0 = s.retval; - s.p___511673 = (r0); - s.tmp_0 = r0 = s.p___511673; - s.tmp_2 = Math_FastRandom_randomRange__P497360_mk(s); + s.p___39927 = (r0); + s.tmp_0 = r0 = s.p___39927; + s.tmp_2 = Math_FastRandom_randomRange__P24439_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 = 1102; s.pc = 4; return s.tmp_2; + s.callLocIdx = 1210; 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___511673; - s.tmp_4 = Math_FastRandom_randomRange__P497360_mk(s); + s.tmp_0 = r0 = s.p___39927; + s.tmp_4 = Math_FastRandom_randomRange__P24439_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 = 1103; s.pc = 5; return s.tmp_4; + s.callLocIdx = 1211; s.pc = 5; return s.tmp_4; case 5: r0 = s.retval; s.tmp_3 = r0; @@ -40292,7 +42498,7 @@ switch (step) { s.tmp_5 = r0; r0 = (s.tmp_3 - s.tmp_5); s.tmp_2 = r0; - r0 = s.p___511673.fields["_x"]; + r0 = s.p___39927.fields["_x"]; s.tmp_7 = r0; r0 = (s.tmp_2 << 8); s.tmp_8 = r0; @@ -40307,7 +42513,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 = 1106; s.pc = 6; return s.tmp_1; } + else { s.callLocIdx = 1214; s.pc = 6; return s.tmp_1; } } case 6: r0 = s.retval; @@ -40322,7 +42528,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 = 1107; s.pc = 7; return s.tmp_3; } + else { s.callLocIdx = 1215; s.pc = 7; return s.tmp_3; } } case 7: r0 = s.retval; @@ -40334,36 +42540,36 @@ switch (step) { case 2: // jmp value (already in r0) s.tmp_4 = r0; - s.tmp_5 = r0 = s.p___511673; - s.tmp_9 = Math_FastRandom_randomRange__P497360_mk(s); + s.tmp_5 = r0 = s.p___39927; + s.tmp_9 = Math_FastRandom_randomRange__P24439_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 = 1105; s.pc = 8; return s.tmp_9; + s.callLocIdx = 1213; 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___511673.fields["_y"]; + r0 = s.p___39927.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___511673; + r0 = s.p___39927; return leave(s, r0) default: oops() } } } -particles_AreaFactory_createParticle__P497500.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__P24579.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__P497500_mk(s) { +function particles_AreaFactory_createParticle__P24579_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_createParticle__P497500, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_createParticle__P24579, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40377,7 +42583,7 @@ function particles_AreaFactory_createParticle__P497500_mk(s) { tmp_9: undefined, tmp_10: undefined, tmp_11: undefined, - p___511673: undefined, + p___39927: undefined, arg0: undefined, arg1: undefined, } } @@ -40386,7 +42592,7 @@ function particles_AreaFactory_createParticle__P497500_mk(s) { -function particles_SprayFactory_createParticle__P497490(s) { +function particles_SprayFactory_createParticle__P24569(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40396,39 +42602,39 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.p___511721 = undefined; - s.angle___511725 = undefined; + s.p___39975 = undefined; + s.angle___39979 = 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__C497488_VT)) failedCast(r0); - s.tmp_0 = particles_ParticleFactory_createParticle__P497486_mk(s); + if (!checkSubtype(r0, particles_SprayFactory__C24567_VT)) failedCast(r0); + s.tmp_0 = particles_ParticleFactory_createParticle__P24565_mk(s); s.tmp_0.arg0 = s.arg0; s.tmp_0.arg1 = s.arg1; - s.callLocIdx = 1090; s.pc = 1; return s.tmp_0; + s.callLocIdx = 1198; s.pc = 1; return s.tmp_0; case 1: r0 = s.retval; - s.p___511721 = (r0); + s.p___39975 = (r0); r0 = s.arg0.fields["minAngle"]; s.tmp_1 = r0; - s.tmp_3 = Math_FastRandom_randomRange__P497360_mk(s); - s.tmp_3.arg0 = globals.galois___499243; + s.tmp_3 = Math_FastRandom_randomRange__P24439_mk(s); + s.tmp_3.arg0 = globals.galois___26552; s.tmp_3.arg1 = 0; r0 = s.arg0.fields["spread"]; s.tmp_3.arg2 = r0; - s.callLocIdx = 1091; s.pc = 2; return s.tmp_3; + s.callLocIdx = 1199; 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___511725 = (r0); - s.tmp_0 = r0 = s.p___511721; - r0 = pxsim_Array__getAt(globals.cachedSin___499238, s.angle___511725); + s.angle___39979 = (r0); + s.tmp_0 = r0 = s.p___39975; + r0 = pxsim_Array__getAt(globals.cachedSin___26547, s.angle___39979); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -40437,8 +42643,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___511721; - r0 = pxsim_Array__getAt(globals.cachedCos___499239, s.angle___511725); + s.tmp_0 = r0 = s.p___39975; + r0 = pxsim_Array__getAt(globals.cachedCos___26548, s.angle___39979); s.tmp_2 = r0; r0 = s.arg0.fields["speed"]; s.tmp_3 = r0; @@ -40447,24 +42653,24 @@ switch (step) { r0 = (s.tmp_4 >> 8); s.tmp_1 = r0; r0 = (s.tmp_0).fields["vy"] = (s.tmp_1); - r0 = s.p___511721; + r0 = s.p___39975; return leave(s, r0) default: oops() } } } -particles_SprayFactory_createParticle__P497490.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__P24569.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__P497490_mk(s) { +function particles_SprayFactory_createParticle__P24569_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_createParticle__P497490, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_createParticle__P24569, depth: s.depth + 1, pc: 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___511721: undefined, - angle___511725: undefined, + p___39975: undefined, + angle___39979: undefined, arg0: undefined, arg1: undefined, } } @@ -40473,7 +42679,7 @@ function particles_SprayFactory_createParticle__P497490_mk(s) { -function color_HSL_toString__P498385(s) { +function color_HSL_toString__P25692(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40488,7 +42694,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, color_HSL__C498377_VT)) failedCast(r0); + if (!checkSubtype(r0, color_HSL__C25684_VT)) failedCast(r0); r0 = s.arg0.fields["h"]; s.tmp_6 = r0; if ((s.tmp_6) && (s.tmp_6).vtable) { @@ -40536,12 +42742,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_HSL_toString__P498385.info = {"start":2365,"length":89,"line":102,"column":8,"endLine":104,"endColumn":9,"fileName":"color.ts","functionName":"toString","argumentNames":["this"]} +color_HSL_toString__P25692.info = {"start":2365,"length":89,"line":102,"column":8,"endLine":104,"endColumn":9,"fileName":"color.ts","functionName":"toString","argumentNames":["this"]} -function color_HSL_toString__P498385_mk(s) { +function color_HSL_toString__P25692_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_HSL_toString__P498385, depth: s.depth + 1, + parent: s, fn: color_HSL_toString__P25692, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40561,7 +42767,7 @@ function color_HSL_toString__P498385_mk(s) { -function scene_Scene_data__P497212(s) { +function color_RGB_toString__P25681(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40576,42 +42782,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Scene__C497189_VT)) failedCast(r0); - r0 = s.arg0.fields["_data"]; - return leaveAccessor(s, r0) - default: oops() -} } } -scene_Scene_data__P497212.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__P497212.isGetter = true; - -function scene_Scene_data__P497212_mk(s) { - checkStack(s.depth); - return { - parent: s, fn: scene_Scene_data__P497212, depth: s.depth + 1, - pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, - arg0: undefined, -} } - - - - - -function color_RGB_toString__P498374(s) { -let r0 = s.r0, 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, color_RGB__C498366_VT)) failedCast(r0); + if (!checkSubtype(r0, color_RGB__C25673_VT)) failedCast(r0); r0 = s.arg0.fields["_r"]; s.tmp_6 = r0; if ((s.tmp_6) && (s.tmp_6).vtable) { @@ -40659,12 +42830,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -color_RGB_toString__P498374.info = {"start":1033,"length":92,"line":45,"column":8,"endLine":47,"endColumn":9,"fileName":"color.ts","functionName":"toString","argumentNames":["this"]} +color_RGB_toString__P25681.info = {"start":1033,"length":92,"line":45,"column":8,"endLine":47,"endColumn":9,"fileName":"color.ts","functionName":"toString","argumentNames":["this"]} -function color_RGB_toString__P498374_mk(s) { +function color_RGB_toString__P25681_mk(s) { checkStack(s.depth); return { - parent: s, fn: color_RGB_toString__P498374, depth: s.depth + 1, + parent: s, fn: color_RGB_toString__P25681, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40684,7 +42855,7 @@ function color_RGB_toString__P498374_mk(s) { -function controller_AnyButton_isPressed__P498701(s) { +function controller_AnyButton_isPressed__P26013(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40694,36 +42865,36 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ctrl___511759 = undefined; - s.b___511763 = undefined; - s.unnamed1736___U2 = undefined; - s.unnamed1737___U3 = undefined; + s.ctrl___40010 = undefined; + s.b___40014 = undefined; + s.unnamed154___U2 = undefined; + s.unnamed155___U3 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_AnyButton__C498699_VT)) failedCast(r0); - s.tmp_0 = controller__player1__P496683_mk(s); - s.callLocIdx = 147; s.pc = 6; return s.tmp_0; + if (!checkSubtype(r0, controller_AnyButton__C26005_VT)) failedCast(r0); + s.tmp_0 = controller__player1__P23617_mk(s); + s.callLocIdx = 183; s.pc = 6; return s.tmp_0; case 6: r0 = s.retval; - s.ctrl___511759 = (r0); - s.b___511763 = (undefined); - r0 = s.ctrl___511759.fields["buttons"]; - s.unnamed1736___U2 = (r0); - s.unnamed1737___U3 = (0); + s.ctrl___40010 = (r0); + s.b___40014 = (undefined); + r0 = s.ctrl___40010.fields["buttons"]; + s.unnamed154___U2 = (r0); + s.unnamed155___U3 = (0); case 1: - s.tmp_0 = r0 = s.unnamed1737___U3; - r0 = pxsim_Array__length(s.unnamed1736___U2); + s.tmp_0 = r0 = s.unnamed155___U3; + r0 = pxsim_Array__length(s.unnamed154___U2); s.tmp_1 = r0; r0 = (s.tmp_0 < s.tmp_1); if (!r0) { step = 4; continue; } - r0 = pxsim_Array__getAt(s.unnamed1736___U2, s.unnamed1737___U3); - s.b___511763 = (r0); - s.tmp_3 = controller_Button__C496669_v0_1_mk(s); - s.tmp_3.arg0 = s.b___511763; - if (!checkSubtype(s.tmp_3.arg0, controller_Button__C496669_VT)) failedCast(s.tmp_3.arg0); + r0 = pxsim_Array__getAt(s.unnamed154___U2, s.unnamed155___U3); + s.b___40014 = (r0); + s.tmp_3 = controller_Button__C23674_v0_1_mk(s); + s.tmp_3.arg0 = s.b___40014; + if (!checkSubtype(s.tmp_3.arg0, controller_Button__C23674_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: @@ -40735,31 +42906,31 @@ switch (step) { { step = 5; continue; } case 2: case 3: - r0 = (s.unnamed1737___U3 + 1); - s.unnamed1737___U3 = (r0); + r0 = (s.unnamed155___U3 + 1); + s.unnamed155___U3 = (r0); { step = 1; continue; } case 4: - s.unnamed1736___U2 = (undefined); + s.unnamed154___U2 = (undefined); r0 = false; case 5: return leave(s, r0) default: oops() } } } -controller_AnyButton_isPressed__P498701.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__P26013.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__P498701_mk(s) { +function controller_AnyButton_isPressed__P26013_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_AnyButton_isPressed__P498701, depth: s.depth + 1, + parent: s, fn: controller_AnyButton_isPressed__P26013, depth: s.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___511759: undefined, - b___511763: undefined, - unnamed1736___U2: undefined, - unnamed1737___U3: undefined, + ctrl___40010: undefined, + b___40014: undefined, + unnamed154___U2: undefined, + unnamed155___U3: undefined, arg0: undefined, } } @@ -40767,7 +42938,7 @@ function controller_AnyButton_isPressed__P498701_mk(s) { -function controller_Button_toString__P496674(s) { +function controller_Button_toString__P23679(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40782,7 +42953,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, controller_Button__C496669_VT)) failedCast(r0); + if (!checkSubtype(r0, controller_Button__C23674_VT)) failedCast(r0); r0 = s.arg0.fields["_pressed"]; s.tmp_0 = r0; r0 = pxsim_numops_toBoolDecr(s.tmp_0); @@ -40822,12 +42993,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -controller_Button_toString__P496674.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__P23679.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__P496674_mk(s) { +function controller_Button_toString__P23679_mk(s) { checkStack(s.depth); return { - parent: s, fn: controller_Button_toString__P496674, depth: s.depth + 1, + parent: s, fn: controller_Button_toString__P23679, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40843,7 +43014,7 @@ function controller_Button_toString__P496674_mk(s) { -function sprites_StaticObstacle_width__P496931(s) { +function sprites_BaseSpriteSayRenderer_constructor__P23744(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40855,23 +43026,66 @@ 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__C496921_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C23743_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_BaseSpriteSayRenderer_constructor__P23744.info = {"start":69,"length":92,"line":2,"column":8,"endLine":3,"endColumn":9,"fileName":"pxt_modules/game/spritesay.ts","functionName":"inline","argumentNames":["this","text","fgColor","bgColor"]} + +function sprites_BaseSpriteSayRenderer_constructor__P23744_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_BaseSpriteSayRenderer_constructor__P23744, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, +} } + + + + + +function sprites_StaticObstacle_width__P23982(s) { +let r0 = s.r0, 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_StaticObstacle__C23972_VT)) failedCast(r0); r0 = s.arg0.fields["image"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.width(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_width__P496931.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__P496931.isGetter = true; +sprites_StaticObstacle_width__P23982.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__P23982.isGetter = true; -function sprites_StaticObstacle_width__P496931_mk(s) { +function sprites_StaticObstacle_width__P23982_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_width__P496931, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_width__P23982, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40881,7 +43095,7 @@ function sprites_StaticObstacle_width__P496931_mk(s) { -function sprites_StaticObstacle_height__P496930(s) { +function sprites_StaticObstacle_height__P23981(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40896,20 +43110,20 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C496921_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C23972_VT)) failedCast(r0); r0 = s.arg0.fields["image"]; s.tmp_0 = r0; r0 = pxsim_ImageMethods.height(s.tmp_0); return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_height__P496930.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__P496930.isGetter = true; +sprites_StaticObstacle_height__P23981.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__P23981.isGetter = true; -function sprites_StaticObstacle_height__P496930_mk(s) { +function sprites_StaticObstacle_height__P23981_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_height__P496930, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_height__P23981, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -40919,7 +43133,7 @@ function sprites_StaticObstacle_height__P496930_mk(s) { -function sprites_StaticObstacle_y__P496929(s) { +function sprites_StaticObstacle_y__P23980(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40934,7 +43148,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C496921_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C23972_VT)) failedCast(r0); r0 = s.arg0.fields["top"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -40947,13 +43161,13 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_y__P496929.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__P496929.isGetter = true; +sprites_StaticObstacle_y__P23980.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__P23980.isGetter = true; -function sprites_StaticObstacle_y__P496929_mk(s) { +function sprites_StaticObstacle_y__P23980_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_y__P496929, depth: s.depth + 1, + parent: s, fn: sprites_StaticObstacle_y__P23980, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -40966,7 +43180,7 @@ function sprites_StaticObstacle_y__P496929_mk(s) { -function sprites_StaticObstacle_x__P496928(s) { +function sprites_StaticObstacle_x__P23979(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -40981,7 +43195,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, sprites_StaticObstacle__C496921_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_StaticObstacle__C23972_VT)) failedCast(r0); r0 = s.arg0.fields["left"]; s.tmp_0 = r0; r0 = s.arg0.fields["image"]; @@ -40994,13 +43208,62 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -sprites_StaticObstacle_x__P496928.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__P496928.isGetter = true; +sprites_StaticObstacle_x__P23979.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__P23979.isGetter = true; + +function sprites_StaticObstacle_x__P23979_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_StaticObstacle_x__P23979, depth: s.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_top__P24127(s) { +let r0 = s.r0, 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__C24119_VT)) failedCast(r0); + r0 = s.arg0.fields["_row"]; + s.tmp_0 = r0; + s.tmp_3 = tiles_Location_tileMap__P24121_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 786; 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__P24127.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__P24127.isGetter = true; -function sprites_StaticObstacle_x__P496928_mk(s) { +function tiles_Location_top__P24127_mk(s) { checkStack(s.depth); return { - parent: s, fn: sprites_StaticObstacle_x__P496928, depth: s.depth + 1, + parent: s, fn: tiles_Location_top__P24127, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41013,7 +43276,7 @@ function sprites_StaticObstacle_x__P496928_mk(s) { -function tiles_Location_y__P497071(s) { +function tiles_Location_left__P24126(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41023,22 +43286,75 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___511803 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C497066_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; + if (!checkSubtype(r0, tiles_Location__C24119_VT)) failedCast(r0); + r0 = s.arg0.fields["_col"]; + s.tmp_0 = r0; + s.tmp_3 = tiles_Location_tileMap__P24121_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 784; 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__P24126.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__P24126.isGetter = true; + +function tiles_Location_left__P24126_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: tiles_Location_left__P24126, depth: s.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_y__P24125(s) { +let r0 = s.r0, step = s.pc; +s.pc = -1; + + +while (true) { +if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) return null; +switch (step) { + case 0: + + s.scale___40070 = undefined; + if (s.lambdaArgs) { + s.arg0 = (s.lambdaArgs[0]); + s.lambdaArgs = null; + } + r0 = s.arg0; + if (!checkSubtype(r0, tiles_Location__C24119_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P24121_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 782; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___511803 = (r0); + s.scale___40070 = (r0); r0 = s.arg0.fields["_row"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___511803); + r0 = (s.tmp_1 << s.scale___40070); s.tmp_0 = r0; - r0 = (s.scale___511803 - 1); + r0 = (s.scale___40070 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -41046,19 +43362,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_y__P497071.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__P497071.isGetter = true; +tiles_Location_y__P24125.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__P24125.isGetter = true; -function tiles_Location_y__P497071_mk(s) { +function tiles_Location_y__P24125_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_y__P497071, depth: s.depth + 1, + parent: s, fn: tiles_Location_y__P24125, depth: s.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___511803: undefined, + scale___40070: undefined, arg0: undefined, } } @@ -41066,7 +43382,7 @@ function tiles_Location_y__P497071_mk(s) { -function tiles_Location_x__P497070(s) { +function tiles_Location_x__P24124(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41076,22 +43392,26 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.scale___511820 = undefined; + s.scale___40086 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, tiles_Location__C497066_VT)) failedCast(r0); - r0 = s.arg0.fields["tileMap"]; + if (!checkSubtype(r0, tiles_Location__C24119_VT)) failedCast(r0); + s.tmp_1 = tiles_Location_tileMap__P24121_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 780; s.pc = 1; return s.tmp_1; + case 1: + r0 = s.retval; s.tmp_0 = r0; r0 = s.tmp_0.fields["_scale"]; - s.scale___511820 = (r0); + s.scale___40086 = (r0); r0 = s.arg0.fields["_col"]; s.tmp_1 = r0; - r0 = (s.tmp_1 << s.scale___511820); + r0 = (s.tmp_1 << s.scale___40086); s.tmp_0 = r0; - r0 = (s.scale___511820 - 1); + r0 = (s.scale___40086 - 1); s.tmp_3 = r0; r0 = (1 << s.tmp_3); s.tmp_2 = r0; @@ -41099,19 +43419,19 @@ switch (step) { return leaveAccessor(s, r0) default: oops() } } } -tiles_Location_x__P497070.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__P497070.isGetter = true; +tiles_Location_x__P24124.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__P24124.isGetter = true; -function tiles_Location_x__P497070_mk(s) { +function tiles_Location_x__P24124_mk(s) { checkStack(s.depth); return { - parent: s, fn: tiles_Location_x__P497070, depth: s.depth + 1, + parent: s, fn: tiles_Location_x__P24124, depth: s.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___511820: undefined, + scale___40086: undefined, arg0: undefined, } } @@ -41119,7 +43439,7 @@ function tiles_Location_x__P497070_mk(s) { -function scene_Renderable___drawCore__P497151(s) { +function scene_Renderable___drawCore__P24228(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41135,19 +43455,19 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C497148_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C24225_VT)) failedCast(r0); s.tmp_0 = if_handler_3_mk(s); s.tmp_0.arg0 = s.arg0; - s.tmp_0.arg1 = globals.screen___496568; + s.tmp_0.arg1 = globals.screen___23524; 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 = 770; s.pc = 1; return s.tmp_0; + s.callLocIdx = 880; 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 = 770; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 770; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 770; 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 = 880; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 880; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 880; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; @@ -41155,12 +43475,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -scene_Renderable___drawCore__P497151.info = {"start":390,"length":86,"line":14,"column":8,"endLine":16,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__drawCore","argumentNames":["this","camera"]} +scene_Renderable___drawCore__P24228.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__P497151_mk(s) { +function scene_Renderable___drawCore__P24228_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___drawCore__P497151, depth: s.depth + 1, + parent: s, fn: scene_Renderable___drawCore__P24228, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -41171,7 +43491,7 @@ function scene_Renderable___drawCore__P497151_mk(s) { -function scene_Renderable___visible__P497150(s) { +function scene_Renderable___visible__P24227(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41186,29 +43506,29 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Renderable__C497148_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Renderable__C24225_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 = 769; s.pc = 1; return s.tmp_0; + s.callLocIdx = 879; 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 = 769; s.pc = 1; return s.tmp_0; } - else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 769; s.pc = 1; return s.tmp_0;; } - else { s.callLocIdx = 769; s.pc = 1; return s.tmp_0; } + if (s.tmp_0.fn == null) { setupLambda(s.tmp_0, s.tmp_0.arg0.fields["shouldBeVisible"], 1); s.callLocIdx = 879; s.pc = 1; return s.tmp_0; } + else if (s.tmp_0.fn.isGetter) { s.tmp_0.stage2Call = true; s.callLocIdx = 879; s.pc = 1; return s.tmp_0;; } + else { s.callLocIdx = 879; s.pc = 1; return s.tmp_0; } } case 1: r0 = s.retval; return leave(s, r0) default: oops() } } } -scene_Renderable___visible__P497150.info = {"start":305,"length":75,"line":10,"column":8,"endLine":12,"endColumn":9,"fileName":"pxt_modules/game/renderable.ts","functionName":"__visible","argumentNames":["this"]} +scene_Renderable___visible__P24227.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__P497150_mk(s) { +function scene_Renderable___visible__P24227_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Renderable___visible__P497150, depth: s.depth + 1, + parent: s, fn: scene_Renderable___visible__P24227, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, arg0: undefined, @@ -41218,7 +43538,7 @@ function scene_Renderable___visible__P497150_mk(s) { -function Sprite___drawCore__P496850(s) { +function Sprite___drawCore__P23897(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41228,381 +43548,489 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.ox___511847 = undefined; - s.oy___511855 = undefined; - s.l___511863 = undefined; - s.t___511869 = undefined; - s.font___511887 = undefined; - s.tx___511891 = undefined; - s.ty___511893 = undefined; + s.ox___40143 = undefined; + s.oy___40151 = undefined; + s.l___40159 = undefined; + s.t___40165 = undefined; + s.font___40200 = undefined; + s.tx___40204 = undefined; + s.ty___40206 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); - s.tmp_1 = Sprite_isOutOfScreen__P496849_mk(s); - s.tmp_1.arg0 = s.arg0; - s.tmp_1.arg1 = s.arg1; - s.callLocIdx = 290; s.pc = 20; return s.tmp_1; - case 20: - r0 = s.retval; + if (!checkSubtype(r0, Sprite__C23823_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__C23743_v0_4_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_6.arg0 = r0; + s.tmp_6.arg1 = globals.screen___23524; + s.tmp_6.arg2 = s.arg1; + s.tmp_6.arg3 = s.arg0; + if (!checkSubtype(s.tmp_6.arg0, sprites_BaseSpriteSayRenderer__C23743_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__C23743_v2_1_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_0.arg0 = r0; + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C23743_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__C23743_v0_4_mk(s); + r0 = s.arg0.fields["sayRenderer"]; + s.tmp_0.arg0 = r0; + s.tmp_0.arg1 = globals.screen___23524; + s.tmp_0.arg2 = s.arg1; + s.tmp_0.arg3 = s.arg0; + if (!checkSubtype(s.tmp_0.arg0, sprites_BaseSpriteSayRenderer__C23743_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__P23896_mk(s); + s.tmp_1.arg0 = s.arg0; + s.tmp_1.arg1 = s.arg1; + s.callLocIdx = 365; 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___511847 = (s.tmp_4); + s.ox___40143 = (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___511855 = (s.tmp_2); - s.tmp_2 = Sprite_left__P496835_mk(s); + s.oy___40151 = (s.tmp_2); + s.tmp_2 = Sprite_left__P23881_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 291; s.pc = 21; return s.tmp_2; - case 21: + s.callLocIdx = 366; s.pc = 32; return s.tmp_2; + case 32: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.ox___511847); + r0 = (s.tmp_1 - s.ox___40143); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.l___511863 = (r0); - s.tmp_2 = Sprite_top__P496839_mk(s); + s.l___40159 = (r0); + s.tmp_2 = Sprite_top__P23885_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 292; s.pc = 22; return s.tmp_2; - case 22: + s.callLocIdx = 367; s.pc = 33; return s.tmp_2; + case 33: r0 = s.retval; s.tmp_1 = r0; - r0 = (s.tmp_1 - s.oy___511855); + r0 = (s.tmp_1 - s.oy___40151); s.tmp_0 = r0; r0 = pxsim.Math_.floor(s.tmp_0); - s.t___511869 = (r0); - r0 = s.arg0.fields["_image"]; + s.t___40165 = (r0); + s.tmp_3 = Sprite_isScaled__P26032_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 368; 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___496568, s.tmp_0, s.l___511863, s.t___511869); + 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___23524, s.tmp_4, s.l___40159, s.t___40165); + { step = 14; continue; } + case 13: + s.tmp_0 = helpers_imageBlit__P23447_mk(s); + s.tmp_0.arg0 = globals.screen___23524; + s.tmp_0.arg1 = s.l___40159; + s.tmp_0.arg2 = s.t___40165; + s.tmp_1 = Sprite_width__P23879_mk(s); + s.tmp_1.arg0 = s.arg0; + s.callLocIdx = 369; s.pc = 36; return s.tmp_1; + case 36: + r0 = s.retval; + s.tmp_0.arg3 = r0; + s.tmp_2 = Sprite_height__P23880_mk(s); + s.tmp_2.arg0 = s.arg0; + s.callLocIdx = 370; 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 = 371; 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___511887 = (globals.font5___496516); - s.tx___511891 = (s.l___511863); - s.tmp_1 = r0 = s.t___511869; - r0 = s.arg0.fields["_image"]; - s.tmp_3 = r0; - r0 = pxsim_ImageMethods.height(s.tmp_3); + if (!r0) { step = 23; continue; } + s.font___40200 = (globals.font5___23472); + s.tx___40204 = (s.l___40159); + s.tmp_1 = r0 = s.t___40165; + s.tmp_3 = Sprite_height__P23880_mk(s); + s.tmp_3.arg0 = s.arg0; + s.callLocIdx = 372; 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___511893 = (r0); - s.tmp_0 = helpers_imagePrint__P496526_mk(s); - s.tmp_0.arg0 = globals.screen___496568; + s.ty___40206 = (r0); + s.tmp_0 = helpers_imagePrint__P23482_mk(s); + s.tmp_0.arg0 = globals.screen___23524; r0 = pxsim_String_.mkEmpty(); s.tmp_3 = r0; - s.tmp_7 = Sprite_x__P496798_mk(s); + s.tmp_7 = Sprite_x__P23836_mk(s); s.tmp_7.arg0 = s.arg0; - s.callLocIdx = 294; s.pc = 24; return s.tmp_7; - case 24: + s.callLocIdx = 373; 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__P496800_mk(s); + s.tmp_11 = Sprite_y__P23838_mk(s); s.tmp_11.arg0 = s.arg0; - s.callLocIdx = 295; s.pc = 26; return s.tmp_11; - case 26: + s.callLocIdx = 374; 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___511891; - s.tmp_0.arg3 = s.ty___511893; + s.tmp_0.arg2 = s.tx___40204; + s.tmp_0.arg3 = s.ty___40206; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___511887; + s.tmp_0.arg5 = s.font___40200; s.tmp_0.arg6 = undefined; - s.callLocIdx = 296; s.pc = 23; return s.tmp_0; - case 23: + s.callLocIdx = 375; s.pc = 39; return s.tmp_0; + case 39: r0 = s.retval; - s.tmp_0 = r0 = s.tx___511891; + s.tmp_0 = r0 = s.tx___40204; s.tmp_2 = if_charWidth_1_mk(s); - s.tmp_2.arg0 = s.font___511887; + s.tmp_2.arg0 = s.font___40200; 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 = 297; s.pc = 28; return s.tmp_2; } + else { s.callLocIdx = 376; 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___511891 = (r0); - s.tmp_1 = Sprite_vx__P496802_mk(s); + s.tx___40204 = (r0); + s.tmp_1 = Sprite_vx__P23840_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 298; s.pc = 29; return s.tmp_1; - case 29: + s.callLocIdx = 377; 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__P496804_mk(s); + { step = 16; continue; } + case 15: + s.tmp_2 = Sprite_vy__P23842_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 299; s.pc = 30; return s.tmp_2; - case 30: + s.callLocIdx = 378; 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___511893; + if (!r0) { step = 17; continue; } + s.tmp_4 = r0 = s.ty___40206; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___511887; + s.tmp_7.arg0 = s.font___40200; 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 = 300; s.pc = 31; return s.tmp_7; } + else { s.callLocIdx = 379; 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___511893 = (r0); - s.tmp_0 = helpers_imagePrint__P496526_mk(s); - s.tmp_0.arg0 = globals.screen___496568; - s.tmp_6 = Sprite_vx__P496802_mk(s); + s.ty___40206 = (r0); + s.tmp_0 = helpers_imagePrint__P23482_mk(s); + s.tmp_0.arg0 = globals.screen___23524; + s.tmp_6 = Sprite_vx__P23840_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 301; s.pc = 33; return s.tmp_6; - case 33: + s.callLocIdx = 380; 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__P496804_mk(s); + s.tmp_10 = Sprite_vy__P23842_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 302; s.pc = 35; return s.tmp_10; - case 35: + s.callLocIdx = 381; 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___511891; - s.tmp_0.arg3 = s.ty___511893; + s.tmp_0.arg2 = s.tx___40204; + s.tmp_0.arg3 = s.ty___40206; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___511887; + s.tmp_0.arg5 = s.font___40200; s.tmp_0.arg6 = undefined; - s.callLocIdx = 303; s.pc = 32; return s.tmp_0; - case 32: + s.callLocIdx = 382; s.pc = 48; return s.tmp_0; + case 48: r0 = s.retval; - case 9: - case 10: - s.tmp_1 = Sprite_ax__P496806_mk(s); + case 17: + case 18: + s.tmp_1 = Sprite_ax__P23844_mk(s); s.tmp_1.arg0 = s.arg0; - s.callLocIdx = 304; s.pc = 37; return s.tmp_1; - case 37: + s.callLocIdx = 383; 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__P496808_mk(s); + { step = 20; continue; } + case 19: + s.tmp_2 = Sprite_ay__P23846_mk(s); s.tmp_2.arg0 = s.arg0; - s.callLocIdx = 305; s.pc = 38; return s.tmp_2; - case 38: + s.callLocIdx = 384; 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___511893; + if (!r0) { step = 21; continue; } + s.tmp_4 = r0 = s.ty___40206; s.tmp_7 = if_charHeight_1_mk(s); - s.tmp_7.arg0 = s.font___511887; + s.tmp_7.arg0 = s.font___40200; 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 = 306; s.pc = 39; return s.tmp_7; } + else { s.callLocIdx = 385; 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___511893 = (r0); - s.tmp_0 = helpers_imagePrint__P496526_mk(s); - s.tmp_0.arg0 = globals.screen___496568; - s.tmp_6 = Sprite_ax__P496806_mk(s); + s.ty___40206 = (r0); + s.tmp_0 = helpers_imagePrint__P23482_mk(s); + s.tmp_0.arg0 = globals.screen___23524; + s.tmp_6 = Sprite_ax__P23844_mk(s); s.tmp_6.arg0 = s.arg0; - s.callLocIdx = 307; s.pc = 41; return s.tmp_6; - case 41: + s.callLocIdx = 386; 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__P496808_mk(s); + s.tmp_10 = Sprite_ay__P23846_mk(s); s.tmp_10.arg0 = s.arg0; - s.callLocIdx = 308; s.pc = 43; return s.tmp_10; - case 43: + s.callLocIdx = 387; 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___511891; - s.tmp_0.arg3 = s.ty___511893; + s.tmp_0.arg2 = s.tx___40204; + s.tmp_0.arg3 = s.ty___40206; s.tmp_0.arg4 = 1; - s.tmp_0.arg5 = s.font___511887; + s.tmp_0.arg5 = s.font___40200; s.tmp_0.arg6 = undefined; - s.callLocIdx = 309; s.pc = 40; return s.tmp_0; - case 40: + s.callLocIdx = 388; 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___497298); - if (!r0) { step = 17; continue; } - s.tmp_0 = helpers_imageDrawRect__P496497_mk(s); - s.tmp_0.arg0 = globals.screen___496568; - s.tmp_3 = game_Hitbox_left__P496732_mk(s); + case 21: + case 22: + case 23: + case 24: + r0 = pxsim_numops_toBoolDecr(globals.debug___24376); + if (!r0) { step = 25; continue; } + s.tmp_0 = helpers_imageDrawRect__P23453_mk(s); + s.tmp_0.arg0 = globals.screen___23524; + s.tmp_3 = game_Hitbox_left__P23701_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_3.arg0 = r0; - s.callLocIdx = 310; s.pc = 46; return s.tmp_3; - case 46: + s.callLocIdx = 389; 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___511847); + r0 = (s.tmp_1 - s.ox___40143); s.tmp_0.arg1 = r0; - s.tmp_7 = game_Hitbox_top__P496733_mk(s); + s.tmp_7 = game_Hitbox_top__P23702_mk(s); r0 = s.arg0.fields["_hitbox"]; s.tmp_7.arg0 = r0; - s.callLocIdx = 312; s.pc = 47; return s.tmp_7; - case 47: + s.callLocIdx = 391; 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___511855); + r0 = (s.tmp_5 - s.oy___40151); s.tmp_0.arg2 = r0; r0 = s.arg0.fields["_hitbox"]; r0 = r0.fields["width"]; @@ -41619,22 +44047,22 @@ switch (step) { r0 = (s.tmp_12 >> 8); s.tmp_0.arg4 = r0; s.tmp_0.arg5 = 1; - s.callLocIdx = 316; s.pc = 45; return s.tmp_0; - case 45: + s.callLocIdx = 395; 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__P496850.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__P23897.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__P496850_mk(s) { +function Sprite___drawCore__P23897_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___drawCore__P496850, depth: s.depth + 1, + parent: s, fn: Sprite___drawCore__P23897, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41649,13 +44077,13 @@ function Sprite___drawCore__P496850_mk(s) { tmp_10: undefined, tmp_11: undefined, tmp_12: undefined, - ox___511847: undefined, - oy___511855: undefined, - l___511863: undefined, - t___511869: undefined, - font___511887: undefined, - tx___511891: undefined, - ty___511893: undefined, + ox___40143: undefined, + oy___40151: undefined, + l___40159: undefined, + t___40165: undefined, + font___40200: undefined, + tx___40204: undefined, + ty___40206: undefined, arg0: undefined, arg1: undefined, } } @@ -41664,7 +44092,7 @@ function Sprite___drawCore__P496850_mk(s) { -function Sprite___visible__P496832(s) { +function sprites_BaseSpriteSayRenderer_destroy__P23747(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41679,7 +44107,81 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Sprite__C496789_VT)) failedCast(r0); + if (!checkSubtype(r0, sprites_BaseSpriteSayRenderer__C23743_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_BaseSpriteSayRenderer_destroy__P23747.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__P23747_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_BaseSpriteSayRenderer_destroy__P23747, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + arg0: undefined, +} } + + + + + +function sprites_BaseSpriteSayRenderer_draw__P23745(s) { +let r0 = s.r0, 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__C23743_VT)) failedCast(r0); + r0 = undefined; + return leave(s, r0) + default: oops() +} } } +sprites_BaseSpriteSayRenderer_draw__P23745.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__P23745_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: sprites_BaseSpriteSayRenderer_draw__P23745, 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__P23878(s) { +let r0 = s.r0, 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__C23823_VT)) failedCast(r0); r0 = s.arg0.fields["flags"]; s.tmp_2 = r0; r0 = (s.tmp_2 & 128); @@ -41690,12 +44192,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Sprite___visible__P496832.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__P23878.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__P496832_mk(s) { +function Sprite___visible__P23878_mk(s) { checkStack(s.depth); return { - parent: s, fn: Sprite___visible__P496832, depth: s.depth + 1, + parent: s, fn: Sprite___visible__P23878, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41707,7 +44209,7 @@ function Sprite___visible__P496832_mk(s) { -function scene_Camera_top__P497143(s) { +function scene_Camera_top__P24220(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41722,18 +44224,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C497130_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetY"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_top__P497143.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__P497143.isGetter = true; +scene_Camera_top__P24220.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__P24220.isGetter = true; -function scene_Camera_top__P497143_mk(s) { +function scene_Camera_top__P24220_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_top__P497143, depth: s.depth + 1, + parent: s, fn: scene_Camera_top__P24220, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41742,7 +44244,7 @@ function scene_Camera_top__P497143_mk(s) { -function scene_Camera_left__P497141(s) { +function scene_Camera_left__P24218(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41757,18 +44259,18 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, scene_Camera__C497130_VT)) failedCast(r0); + if (!checkSubtype(r0, scene_Camera__C24207_VT)) failedCast(r0); r0 = s.arg0.fields["drawOffsetX"]; return leaveAccessor(s, r0) default: oops() } } } -scene_Camera_left__P497141.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__P497141.isGetter = true; +scene_Camera_left__P24218.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__P24218.isGetter = true; -function scene_Camera_left__P497141_mk(s) { +function scene_Camera_left__P24218_mk(s) { checkStack(s.depth); return { - parent: s, fn: scene_Camera_left__P497141, depth: s.depth + 1, + parent: s, fn: scene_Camera_left__P24218, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, arg0: undefined, } } @@ -41777,7 +44279,7 @@ function scene_Camera_left__P497141_mk(s) { -function particles_ShapeFactory_drawParticle__P497513(s) { +function particles_ShapeFactory_drawParticle__P24592(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41787,7 +44289,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.pImage___512018 = undefined; + s.pImage___40336 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -41796,23 +44298,23 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_ShapeFactory__C497510_VT)) failedCast(r0); - s.tmp_1 = Math_FastRandom_pickRandom__P497361_mk(s); + if (!checkSubtype(r0, particles_ShapeFactory__C24589_VT)) failedCast(r0); + s.tmp_1 = Math_FastRandom_pickRandom__P24440_mk(s); r0 = s.arg0.fields["galois"]; s.tmp_1.arg0 = r0; r0 = s.arg0.fields["sources"]; s.tmp_1.arg1 = r0; - s.callLocIdx = 1114; s.pc = 1; return s.tmp_1; + s.callLocIdx = 1222; 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___512018 = (r0); + s.pImage___40336 = (r0); r0 = s.arg1.fields["color"]; s.tmp_0 = r0; - r0 = pxsim_ImageMethods.replace(s.pImage___512018, 15, s.tmp_0); - s.tmp_0 = r0 = globals.screen___496568; - s.tmp_1 = r0 = s.pImage___512018; + r0 = pxsim_ImageMethods.replace(s.pImage___40336, 15, s.tmp_0); + s.tmp_0 = r0 = globals.screen___23524; + s.tmp_1 = r0 = s.pImage___40336; r0 = s.arg0.fields["ox"]; s.tmp_4 = r0; r0 = (s.arg2 - s.tmp_4); @@ -41834,12 +44336,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_ShapeFactory_drawParticle__P497513.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__P24592.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__P497513_mk(s) { +function particles_ShapeFactory_drawParticle__P24592_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_ShapeFactory_drawParticle__P497513, depth: s.depth + 1, + parent: s, fn: particles_ShapeFactory_drawParticle__P24592, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41851,7 +44353,7 @@ function particles_ShapeFactory_drawParticle__P497513_mk(s) { tmp_7: undefined, tmp_8: undefined, tmp_9: undefined, - pImage___512018: undefined, + pImage___40336: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -41862,7 +44364,7 @@ function particles_ShapeFactory_drawParticle__P497513_mk(s) { -function Math_FastRandom_pickRandom__P497361(s) { +function Math_FastRandom_pickRandom__P24440(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41878,7 +44380,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, Math_FastRandom__C497356_VT)) failedCast(r0); + if (!checkSubtype(r0, Math_FastRandom__C24435_VT)) failedCast(r0); r0 = pxsim_numops_toBoolDecr(s.arg1); s.tmp_1 = r0; r0 = pxsim_Boolean__bang(s.tmp_1); @@ -41901,14 +44403,14 @@ switch (step) { case 3: case 4: s.tmp_4 = r0 = s.arg1; - s.tmp_6 = Math_FastRandom_randomRange__P497360_mk(s); + s.tmp_6 = Math_FastRandom_randomRange__P24439_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 = 843; s.pc = 6; return s.tmp_6; + s.callLocIdx = 951; s.pc = 6; return s.tmp_6; case 6: r0 = s.retval; s.tmp_5 = r0; @@ -41917,12 +44419,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -Math_FastRandom_pickRandom__P497361.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__P24440.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__P497361_mk(s) { +function Math_FastRandom_pickRandom__P24440_mk(s) { checkStack(s.depth); return { - parent: s, fn: Math_FastRandom_pickRandom__P497361, depth: s.depth + 1, + parent: s, fn: Math_FastRandom_pickRandom__P24440, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -41940,7 +44442,7 @@ function Math_FastRandom_pickRandom__P497361_mk(s) { -function particles_AreaFactory_drawParticle__P497501(s) { +function particles_AreaFactory_drawParticle__P24580(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -41950,7 +44452,7 @@ if (yieldSteps-- < 0 && maybeYield(s, step, r0) || runtime !== pxsim.runtime) re switch (step) { case 0: - s.col___512064 = undefined; + s.col___40382 = undefined; if (s.lambdaArgs) { s.arg0 = (s.lambdaArgs[0]); s.arg1 = (s.lambdaArgs[1]); @@ -41959,7 +44461,7 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_AreaFactory__C497494_VT)) failedCast(r0); + if (!checkSubtype(r0, particles_AreaFactory__C24573_VT)) failedCast(r0); r0 = s.arg1.fields["lifespan"]; s.tmp_1 = r0; r0 = (s.tmp_1 > 500); @@ -41986,8 +44488,8 @@ switch (step) { case 4: // jmp value (already in r0) s.tmp_5 = r0; - s.col___512064 = (s.tmp_5); - s.tmp_0 = r0 = globals.screen___496568; + s.col___40382 = (s.tmp_5); + s.tmp_0 = r0 = globals.screen___23524; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -41996,17 +44498,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___512064); + r0 = pxsim_ImageMethods.setPixel(s.tmp_0, s.tmp_1, s.tmp_3, s.col___40382); r0 = undefined; return leave(s, r0) default: oops() } } } -particles_AreaFactory_drawParticle__P497501.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__P24580.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__P497501_mk(s) { +function particles_AreaFactory_drawParticle__P24580_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_AreaFactory_drawParticle__P497501, depth: s.depth + 1, + parent: s, fn: particles_AreaFactory_drawParticle__P24580, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42014,7 +44516,7 @@ function particles_AreaFactory_drawParticle__P497501_mk(s) { tmp_3: undefined, tmp_4: undefined, tmp_5: undefined, - col___512064: undefined, + col___40382: undefined, arg0: undefined, arg1: undefined, arg2: undefined, @@ -42025,7 +44527,7 @@ function particles_AreaFactory_drawParticle__P497501_mk(s) { -function particles_SprayFactory_drawParticle__P497491(s) { +function particles_SprayFactory_drawParticle__P24570(s) { let r0 = s.r0, step = s.pc; s.pc = -1; @@ -42043,8 +44545,8 @@ switch (step) { s.lambdaArgs = null; } r0 = s.arg0; - if (!checkSubtype(r0, particles_SprayFactory__C497488_VT)) failedCast(r0); - s.tmp_0 = r0 = globals.screen___496568; + if (!checkSubtype(r0, particles_SprayFactory__C24567_VT)) failedCast(r0); + s.tmp_0 = r0 = globals.screen___23524; r0 = (s.arg2 + 128); s.tmp_2 = r0; r0 = (s.tmp_2 >> 8); @@ -42058,12 +44560,12 @@ switch (step) { return leave(s, r0) default: oops() } } } -particles_SprayFactory_drawParticle__P497491.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__P24570.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__P497491_mk(s) { +function particles_SprayFactory_drawParticle__P24570_mk(s) { checkStack(s.depth); return { - parent: s, fn: particles_SprayFactory_drawParticle__P497491, depth: s.depth + 1, + parent: s, fn: particles_SprayFactory_drawParticle__P24570, depth: s.depth + 1, pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, tmp_0: undefined, tmp_1: undefined, @@ -42151,7 +44653,7 @@ function if_flags_1_mk(s) { } } -function particles_ParticleFactory__C497484_v0_2_mk(s) { +function particles_ParticleFactory__C24563_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42166,7 +44668,7 @@ function particles_ParticleFactory__C497484_v0_2_mk(s) { } } -function particles_ParticleSource__C497448_v4_3_mk(s) { +function particles_ParticleSource__C24527_v4_3_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42225,7 +44727,7 @@ function if_id_2_mk(s) { } } -function PhysicsEngine__C496934_v4_2_mk(s) { +function PhysicsEngine__C23985_v4_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42271,7 +44773,7 @@ function lambda_2_mk(s) { } } -function PhysicsEngine__C496934_v3_1_mk(s) { +function PhysicsEngine__C23985_v3_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42412,7 +44914,7 @@ function if_id_1_mk(s) { } } -function controller_Button__C496669_v0_1_mk(s) { +function controller_Button__C23674_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42517,7 +45019,7 @@ function if_sourceFactory_3_mk(s) { } } -function PhysicsEngine__C496934_v1_2_mk(s) { +function PhysicsEngine__C23985_v1_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42715,7 +45217,7 @@ function if_getText_1_mk(s) { } } -function PhysicsEngine__C496934_v2_4_mk(s) { +function PhysicsEngine__C23985_v2_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42789,7 +45291,7 @@ function if_z_2_mk(s) { } } -function PhysicsEngine__C496934_v0_2_mk(s) { +function PhysicsEngine__C23985_v0_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42804,6 +45306,20 @@ function PhysicsEngine__C496934_v0_2_mk(s) { } } +function if_callback_1_mk(s) { + checkStack(s.depth); + return { + parent: s, fn: null, depth: s.depth + 1, + pc: 0, retval: undefined, r0: undefined, overwrittenPC: false, lambdaArgs: null, + tmp_0: undefined, + tmp_1: undefined, + tmp_2: undefined, + tmp_3: undefined, + tmp_4: undefined, + arg0: undefined, +} } + + function if_handler_3_mk(s) { checkStack(s.depth); return { @@ -42862,7 +45378,7 @@ function if_top_1_mk(s) { } } -function if_updateSay_3_mk(s) { +function sprites_BaseSpriteSayRenderer__C23743_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42875,10 +45391,11 @@ function if_updateSay_3_mk(s) { arg0: undefined, arg1: undefined, arg2: undefined, + arg3: undefined, } } -function particles_ParticleFactory__C497484_v1_4_mk(s) { +function particles_ParticleFactory__C24563_v1_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42895,7 +45412,7 @@ function particles_ParticleFactory__C497484_v1_4_mk(s) { } } -function sprites_BaseSprite__C496624_v0_1_mk(s) { +function sprites_BaseSprite__C23583_v0_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42909,7 +45426,7 @@ function sprites_BaseSprite__C496624_v0_1_mk(s) { } } -function sprites_BaseSprite__C496624_v2_2_mk(s) { +function sprites_BaseSprite__C23583_v2_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42952,7 +45469,7 @@ function if_shouldBeVisible_1_mk(s) { } } -function if_scene_1_mk(s) { +function sprites_BaseSpriteSayRenderer__C23743_v0_4_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42963,10 +45480,13 @@ function if_scene_1_mk(s) { tmp_3: undefined, tmp_4: undefined, arg0: undefined, + arg1: undefined, + arg2: undefined, + arg3: undefined, } } -function if_state_1_mk(s) { +function sprites_BaseSpriteSayRenderer__C23743_v2_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42980,7 +45500,7 @@ function if_state_1_mk(s) { } } -function if_up_1_mk(s) { +function if_scene_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -42994,7 +45514,7 @@ function if_up_1_mk(s) { } } -function if_yOffset_2_mk(s) { +function if_state_1_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43005,11 +45525,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_revert_2_mk(s) { checkStack(s.depth); return { parent: s, fn: null, depth: s.depth + 1, @@ -43051,14 +45570,14 @@ function if_width_1_mk(s) { arg0: undefined, } } -const controller_Button__C496669_VT = mkVTable({ +const controller_Button__C23674_VT = mkVTable({ name: "Button", numFields: 7, classNo: 16, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_Button_isPressed__P496678, + "isPressed": controller_Button_isPressed__P23685, }, iface: { "_owner": null, @@ -43075,26 +45594,29 @@ const controller_Button__C496669_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "toString": controller_Button_toString__P496674, - "raiseButtonUp": controller_Button_raiseButtonUp__P498696, - "raiseButtonDown": controller_Button_raiseButtonDown__P498697, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P498698, - "onEvent": controller_Button_onEvent__P496676, - "isPressed": controller_Button_isPressed__P496678, - "pressureLevel": controller_Button_pressureLevel__P496679, - "setPressed": controller_Button_setPressed__P496680, - "__update": controller_Button___update__P496681, + "handlerState": controller_Button_handlerState__P26007, + "toString": controller_Button_toString__P23679, + "raiseButtonUp": controller_Button_raiseButtonUp__P26008, + "raiseButtonDown": controller_Button_raiseButtonDown__P26009, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P26010, + "onEvent": controller_Button_onEvent__P23681, + "isPressed": controller_Button_isPressed__P23685, + "pressureLevel": controller_Button_pressureLevel__P23686, + "setPressed": controller_Button_setPressed__P23687, + "__update": controller_Button___update__P23688, + "runButtonEvents": controller_Button_runButtonEvents__P26011, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P26012, }, - toStringMethod: controller_Button_toString__P496674, + toStringMethod: controller_Button_toString__P23679, }); -const controller_AnyButton__C498699_VT = mkVTable({ +const controller_AnyButton__C26005_VT = mkVTable({ name: "AnyButton", numFields: 7, classNo: 17, lastSubtypeNo: 17, maxBgInstances: null, methods: { - "isPressed": controller_AnyButton_isPressed__P498701, + "isPressed": controller_AnyButton_isPressed__P26013, }, iface: { "_owner": null, @@ -43111,18 +45633,21 @@ const controller_AnyButton__C498699_VT = mkVTable({ "set/_pressedElasped": null, "_repeatCount": null, "set/_repeatCount": null, - "isPressed": controller_AnyButton_isPressed__P498701, - "toString": controller_Button_toString__P496674, - "raiseButtonUp": controller_Button_raiseButtonUp__P498696, - "raiseButtonDown": controller_Button_raiseButtonDown__P498697, - "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P498698, - "onEvent": controller_Button_onEvent__P496676, - "pressureLevel": controller_Button_pressureLevel__P496679, - "setPressed": controller_Button_setPressed__P496680, - "__update": controller_Button___update__P496681, + "isPressed": controller_AnyButton_isPressed__P26013, + "handlerState": controller_Button_handlerState__P26007, + "toString": controller_Button_toString__P23679, + "raiseButtonUp": controller_Button_raiseButtonUp__P26008, + "raiseButtonDown": controller_Button_raiseButtonDown__P26009, + "raiseButtonRepeat": controller_Button_raiseButtonRepeat__P26010, + "onEvent": controller_Button_onEvent__P23681, + "pressureLevel": controller_Button_pressureLevel__P23686, + "setPressed": controller_Button_setPressed__P23687, + "__update": controller_Button___update__P23688, + "runButtonEvents": controller_Button_runButtonEvents__P26011, + "getOrCreateHandlerForEvent": controller_Button_getOrCreateHandlerForEvent__P26012, }, }); -const Math_FastRandom__C497356_VT = mkVTable({ +const Math_FastRandom__C24435_VT = mkVTable({ name: "FastRandom", numFields: 2, classNo: 18, @@ -43135,29 +45660,16 @@ const Math_FastRandom__C497356_VT = mkVTable({ "set/lfsr": null, "seed": null, "set/seed": null, - "next": Math_FastRandom_next__P497359, - "randomRange": Math_FastRandom_randomRange__P497360, - "pickRandom": Math_FastRandom_pickRandom__P497361, - }, -}); -const texteffects_TextEffect__C497601_VT = mkVTable({ - name: "TextEffect", - numFields: 1, - classNo: 19, - lastSubtypeNo: 19, - maxBgInstances: null, - methods: { - }, - iface: { - "getState": null, - "set/getState": null, + "next": Math_FastRandom_next__P24438, + "randomRange": Math_FastRandom_randomRange__P24439, + "pickRandom": Math_FastRandom_pickRandom__P24440, }, }); -const color_FadeState__C501517_VT = mkVTable({ +const color_FadeState__C29322_VT = mkVTable({ name: "FadeState", numFields: 2, - classNo: 20, - lastSubtypeNo: 20, + classNo: 19, + lastSubtypeNo: 19, maxBgInstances: null, methods: { }, @@ -43168,28 +45680,34 @@ const color_FadeState__C501517_VT = mkVTable({ "set/scene": null, }, }); -const color_FadeEffect__C498389_VT = mkVTable({ +const color_FadeEffect__C25696_VT = mkVTable({ name: "FadeEffect", - numFields: 2, - classNo: 21, - lastSubtypeNo: 21, + numFields: 5, + classNo: 20, + lastSubtypeNo: 20, maxBgInstances: null, methods: { }, iface: { "currentFade": null, "set/currentFade": null, + "startPalette": null, + "set/startPalette": null, + "id": null, + "set/id": null, "fadeFactory": null, "set/fadeFactory": null, - "startScreenEffect": color_FadeEffect_startScreenEffect__P498391, - "stop": color_FadeEffect_stop__P498392, + "revertsId": null, + "set/revertsId": null, + "startScreenEffect": color_FadeEffect_startScreenEffect__P25698, + "stop": color_FadeEffect_stop__P25699, }, }); -const color_Fade__C498409_VT = mkVTable({ +const color_Fade__C25716_VT = mkVTable({ name: "Fade", numFields: 4, - classNo: 22, - lastSubtypeNo: 22, + classNo: 21, + lastSubtypeNo: 21, maxBgInstances: null, methods: { }, @@ -43202,28 +45720,29 @@ const color_Fade__C498409_VT = mkVTable({ "set/_startPalette": null, "_endPalette": null, "set/_endPalette": null, - "startPalette": color_Fade_startPalette__P498411, - "endPalette": color_Fade_endPalette__P498412, - "isActive": color_Fade_isActive__P498413, - "start": color_Fade_start__P498414, - "startUntilDone": color_Fade_startUntilDone__P498415, - "stop": color_Fade_stop__P498416, - "setStartPalette": color_Fade_setStartPalette__P498417, - "setEndPalette": color_Fade_setEndPalette__P498419, - "setEndColor": color_Fade_setEndColor__P498420, - "step": color_Fade_step__P498421, - "pauseUntilDone": color_Fade_pauseUntilDone__P498423, - "reverse": color_Fade_reverse__P498424, - "clone": color_Fade_clone__P498425, - "mapEndRGB": color_Fade_mapEndRGB__P498426, - "mapEndHSL": color_Fade_mapEndHSL__P498427, + "startPalette": color_Fade_startPalette__P25718, + "endPalette": color_Fade_endPalette__P25719, + "isActive": color_Fade_isActive__P25720, + "start": color_Fade_start__P25721, + "startUntilDone": color_Fade_startUntilDone__P25722, + "stop": color_Fade_stop__P25723, + "setStartPalette": color_Fade_setStartPalette__P25724, + "setEndPalette": color_Fade_setEndPalette__P25726, + "setEndColor": color_Fade_setEndColor__P25727, + "step": color_Fade_step__P25728, + "then": color_Fade_then__P25729, + "pauseUntilDone": color_Fade_pauseUntilDone__P25730, + "reverse": color_Fade_reverse__P25731, + "clone": color_Fade_clone__P25732, + "mapEndRGB": color_Fade_mapEndRGB__P25733, + "mapEndHSL": color_Fade_mapEndHSL__P25734, }, }); -const color_ColorBuffer__C498348_VT = mkVTable({ +const color_ColorBuffer__C25655_VT = mkVTable({ name: "ColorBuffer", numFields: 2, - classNo: 23, - lastSubtypeNo: 24, + classNo: 22, + lastSubtypeNo: 23, maxBgInstances: null, methods: { }, @@ -43232,17 +45751,17 @@ const color_ColorBuffer__C498348_VT = mkVTable({ "set/layout": null, "buf": null, "set/buf": null, - "stride": color_ColorBuffer_stride__P498353, - "length": color_ColorBuffer_length__P498354, - "color": color_ColorBuffer_color__P498355, - "setColor": color_ColorBuffer_setColor__P498356, + "stride": color_ColorBuffer_stride__P25660, + "length": color_ColorBuffer_length__P25661, + "color": color_ColorBuffer_color__P25662, + "setColor": color_ColorBuffer_setColor__P25663, }, }); -const color_RGB__C498366_VT = mkVTable({ +const color_RGB__C25673_VT = mkVTable({ name: "RGB", numFields: 3, - classNo: 25, - lastSubtypeNo: 25, + classNo: 24, + lastSubtypeNo: 24, maxBgInstances: null, methods: { }, @@ -43253,23 +45772,23 @@ const color_RGB__C498366_VT = mkVTable({ "set/_g": null, "_b": null, "set/_b": null, - "red": color_RGB_red__P498368, - "set/red": color_RGB_red__P498369, - "green": color_RGB_green__P498370, - "set/green": color_RGB_green__P498371, - "blue": color_RGB_blue__P498372, - "set/blue": color_RGB_blue__P498373, - "toString": color_RGB_toString__P498374, - "hexValue": color_RGB_hexValue__P498375, - "fromHexValue": color_RGB_fromHexValue__P498376, + "red": color_RGB_red__P25675, + "set/red": color_RGB_red__P25676, + "green": color_RGB_green__P25677, + "set/green": color_RGB_green__P25678, + "blue": color_RGB_blue__P25679, + "set/blue": color_RGB_blue__P25680, + "toString": color_RGB_toString__P25681, + "hexValue": color_RGB_hexValue__P25682, + "fromHexValue": color_RGB_fromHexValue__P25683, }, - toStringMethod: color_RGB_toString__P498374, + toStringMethod: color_RGB_toString__P25681, }); -const color_Palette__C498388_VT = mkVTable({ +const color_Palette__C25695_VT = mkVTable({ name: "Palette", numFields: 2, - classNo: 24, - lastSubtypeNo: 24, + classNo: 23, + lastSubtypeNo: 23, maxBgInstances: null, methods: { }, @@ -43278,17 +45797,17 @@ const color_Palette__C498388_VT = mkVTable({ "set/layout": null, "buf": null, "set/buf": null, - "stride": color_ColorBuffer_stride__P498353, - "length": color_ColorBuffer_length__P498354, - "color": color_ColorBuffer_color__P498355, - "setColor": color_ColorBuffer_setColor__P498356, + "stride": color_ColorBuffer_stride__P25660, + "length": color_ColorBuffer_length__P25661, + "color": color_ColorBuffer_color__P25662, + "setColor": color_ColorBuffer_setColor__P25663, }, }); -const scene_Scene__C497189_VT = mkVTable({ +const scene_Scene__C24266_VT = mkVTable({ name: "Scene", - numFields: 23, - classNo: 26, - lastSubtypeNo: 26, + numFields: 24, + classNo: 25, + lastSubtypeNo: 25, maxBgInstances: null, methods: { }, @@ -43333,24 +45852,26 @@ const scene_Scene__C497189_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__P497211, - "data": scene_Scene_data__P497212, - "millis": scene_Scene_millis__P497213, - "addSprite": scene_Scene_addSprite__P497214, - "render": scene_Scene_render__P497216, + "init": scene_Scene_init__P24289, + "data": scene_Scene_data__P24290, + "millis": scene_Scene_millis__P24291, + "addSprite": scene_Scene_addSprite__P24292, + "render": scene_Scene_render__P24294, }, }); -const control_PollEvent__C498505_VT = mkVTable({ +const control_PollEvent__C25817_VT = mkVTable({ name: "PollEvent", numFields: 6, - classNo: 27, - lastSubtypeNo: 27, + classNo: 26, + lastSubtypeNo: 26, maxBgInstances: null, methods: { }, @@ -43369,11 +45890,11 @@ const control_PollEvent__C498505_VT = mkVTable({ "set/once": null, }, }); -const control_EventContext__C495140_VT = mkVTable({ +const control_EventContext__C22090_VT = mkVTable({ name: "EventContext", numFields: 9, - classNo: 28, - lastSubtypeNo: 28, + classNo: 27, + lastSubtypeNo: 27, maxBgInstances: null, methods: { }, @@ -43396,20 +45917,20 @@ const control_EventContext__C495140_VT = mkVTable({ "set/idleCallbacks": null, "runningCallbacks": null, "set/runningCallbacks": null, - "deltaTime": control_EventContext_deltaTime__P495145, - "runCallbacks": control_EventContext_runCallbacks__P498531, - "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P498532, - "register": control_EventContext_register__P495146, - "unregister": control_EventContext_unregister__P495147, - "registerFrameHandler": control_EventContext_registerFrameHandler__P495148, - "registerHandler": control_EventContext_registerHandler__P495150, + "deltaTime": control_EventContext_deltaTime__P22095, + "runCallbacks": control_EventContext_runCallbacks__P25843, + "registerFrameCallbacks": control_EventContext_registerFrameCallbacks__P25844, + "register": control_EventContext_register__P22096, + "unregister": control_EventContext_unregister__P22097, + "registerFrameHandler": control_EventContext_registerFrameHandler__P22098, + "registerHandler": control_EventContext_registerHandler__P22100, }, }); -const control_EventHandler__C498526_VT = mkVTable({ +const control_EventHandler__C25838_VT = mkVTable({ name: "EventHandler", numFields: 4, - classNo: 29, - lastSubtypeNo: 29, + classNo: 28, + lastSubtypeNo: 28, maxBgInstances: null, methods: { }, @@ -43422,11 +45943,27 @@ const control_EventHandler__C498526_VT = mkVTable({ "set/handler": null, "flags": null, "set/flags": null, - "register": control_EventHandler_register__P498527, - "unregister": control_EventHandler_unregister__P498528, + "register": control_EventHandler_register__P25839, + "unregister": control_EventHandler_unregister__P25840, + }, +}); +const color_FadeRevert__C28565_VT = mkVTable({ + name: "FadeRevert", + numFields: 2, + classNo: 29, + lastSubtypeNo: 29, + maxBgInstances: null, + methods: { + }, + iface: { + "fade": null, + "set/fade": null, + "revert": null, + "set/revert": null, + "applyRevert": color_FadeRevert_applyRevert__P28566, }, }); -const scene_GameForeverHandler__C497168_VT = mkVTable({ +const scene_GameForeverHandler__C24245_VT = mkVTable({ name: "GameForeverHandler", numFields: 2, classNo: 30, @@ -43441,7 +45978,7 @@ const scene_GameForeverHandler__C497168_VT = mkVTable({ "set/handler": null, }, }); -const color_HSL__C498377_VT = mkVTable({ +const color_HSL__C25684_VT = mkVTable({ name: "HSL", numFields: 3, classNo: 31, @@ -43456,19 +45993,19 @@ const color_HSL__C498377_VT = mkVTable({ "set/s": null, "l": null, "set/l": null, - "hue": color_HSL_hue__P498379, - "set/hue": color_HSL_hue__P498380, - "saturation": color_HSL_saturation__P498381, - "set/saturation": color_HSL_saturation__P498382, - "luminosity": color_HSL_luminosity__P498383, - "set/luminosity": color_HSL_luminosity__P498384, - "toString": color_HSL_toString__P498385, - "hexValue": color_HSL_hexValue__P498386, - "fromHexValue": color_HSL_fromHexValue__P498387, + "hue": color_HSL_hue__P25686, + "set/hue": color_HSL_hue__P25687, + "saturation": color_HSL_saturation__P25688, + "set/saturation": color_HSL_saturation__P25689, + "luminosity": color_HSL_luminosity__P25690, + "set/luminosity": color_HSL_luminosity__P25691, + "toString": color_HSL_toString__P25692, + "hexValue": color_HSL_hexValue__P25693, + "fromHexValue": color_HSL_fromHexValue__P25694, }, - toStringMethod: color_HSL_toString__P498385, + toStringMethod: color_HSL_toString__P25692, }); -const scene_Background__C497042_VT = mkVTable({ +const scene_Background__C24095_VT = mkVTable({ name: "Background", numFields: 4, classNo: 32, @@ -43485,12 +46022,12 @@ const scene_Background__C497042_VT = mkVTable({ "set/camera": null, "_layers": null, "set/_layers": null, - "image": scene_Background_image__P497048, - "set/image": scene_Background_image__P497049, - "draw": scene_Background_draw__P497051, + "image": scene_Background_image__P24101, + "set/image": scene_Background_image__P24102, + "draw": scene_Background_draw__P24104, }, }); -const effects_ImageEffect__C497586_VT = mkVTable({ +const effects_ImageEffect__C24665_VT = mkVTable({ name: "ImageEffect", numFields: 4, classNo: 33, @@ -43507,11 +46044,11 @@ const effects_ImageEffect__C497586_VT = mkVTable({ "set/fastRandom": null, "times": null, "set/times": null, - "applyTo": effects_ImageEffect_applyTo__P497588, - "change": effects_ImageEffect_change__P497589, + "applyTo": effects_ImageEffect_applyTo__P24667, + "change": effects_ImageEffect_change__P24668, }, }); -const effects_ParticleEffect__C497559_VT = mkVTable({ +const effects_ParticleEffect__C24638_VT = mkVTable({ name: "ParticleEffect", numFields: 3, classNo: 34, @@ -43526,11 +46063,11 @@ const effects_ParticleEffect__C497559_VT = mkVTable({ "set/defaultRate": null, "defaultLifespan": null, "set/defaultLifespan": null, - "start": effects_ParticleEffect_start__P497561, - "destroy": effects_ParticleEffect_destroy__P497562, + "start": effects_ParticleEffect_start__P24640, + "destroy": effects_ParticleEffect_destroy__P24641, }, }); -const effects_ScreenEffect__C497563_VT = mkVTable({ +const effects_ScreenEffect__C24642_VT = mkVTable({ name: "ScreenEffect", numFields: 5, classNo: 35, @@ -43549,34 +46086,34 @@ const effects_ScreenEffect__C497563_VT = mkVTable({ "set/source": null, "sceneDefaultRate": null, "set/sceneDefaultRate": null, - "start": effects_ParticleEffect_start__P497561, - "destroy": effects_ParticleEffect_destroy__P497562, + "start": effects_ParticleEffect_start__P24640, + "destroy": effects_ParticleEffect_destroy__P24641, }, }); -const particles_ParticleFactory__C497484_VT = mkVTable({ +const particles_ParticleFactory__C24563_VT = mkVTable({ name: "ParticleFactory", numFields: 0, classNo: 36, lastSubtypeNo: 40, maxBgInstances: null, methods: { - "createParticle": particles_ParticleFactory_createParticle__P497486, - "drawParticle": particles_ParticleFactory_drawParticle__P497487, + "createParticle": particles_ParticleFactory_createParticle__P24565, + "drawParticle": particles_ParticleFactory_drawParticle__P24566, }, iface: { - "createParticle": particles_ParticleFactory_createParticle__P497486, - "drawParticle": particles_ParticleFactory_drawParticle__P497487, + "createParticle": particles_ParticleFactory_createParticle__P24565, + "drawParticle": particles_ParticleFactory_drawParticle__P24566, }, }); -const particles_SprayFactory__C497488_VT = mkVTable({ +const particles_SprayFactory__C24567_VT = mkVTable({ name: "SprayFactory", numFields: 3, classNo: 37, lastSubtypeNo: 40, maxBgInstances: null, methods: { - "createParticle": particles_SprayFactory_createParticle__P497490, - "drawParticle": particles_SprayFactory_drawParticle__P497491, + "createParticle": particles_SprayFactory_createParticle__P24569, + "drawParticle": particles_SprayFactory_drawParticle__P24570, }, iface: { "speed": null, @@ -43585,21 +46122,21 @@ const particles_SprayFactory__C497488_VT = mkVTable({ "set/minAngle": null, "spread": null, "set/spread": null, - "createParticle": particles_SprayFactory_createParticle__P497490, - "drawParticle": particles_SprayFactory_drawParticle__P497491, - "setSpeed": particles_SprayFactory_setSpeed__P497492, - "setDirection": particles_SprayFactory_setDirection__P497493, + "createParticle": particles_SprayFactory_createParticle__P24569, + "drawParticle": particles_SprayFactory_drawParticle__P24570, + "setSpeed": particles_SprayFactory_setSpeed__P24571, + "setDirection": particles_SprayFactory_setDirection__P24572, }, }); -const particles_AreaFactory__C497494_VT = mkVTable({ +const particles_AreaFactory__C24573_VT = mkVTable({ name: "AreaFactory", numFields: 8, classNo: 38, lastSubtypeNo: 40, maxBgInstances: null, methods: { - "createParticle": particles_AreaFactory_createParticle__P497500, - "drawParticle": particles_AreaFactory_drawParticle__P497501, + "createParticle": particles_AreaFactory_createParticle__P24579, + "drawParticle": particles_AreaFactory_drawParticle__P24580, }, iface: { "speed": null, @@ -43618,21 +46155,21 @@ const particles_AreaFactory__C497494_VT = mkVTable({ "set/maxLifespan": null, "galois": null, "set/galois": null, - "createParticle": particles_AreaFactory_createParticle__P497500, - "drawParticle": particles_AreaFactory_drawParticle__P497501, - "setSpeed": particles_SprayFactory_setSpeed__P497492, - "setDirection": particles_SprayFactory_setDirection__P497493, + "createParticle": particles_AreaFactory_createParticle__P24579, + "drawParticle": particles_AreaFactory_drawParticle__P24580, + "setSpeed": particles_SprayFactory_setSpeed__P24571, + "setDirection": particles_SprayFactory_setDirection__P24572, }, }); -const particles_ShapeFactory__C497510_VT = mkVTable({ +const particles_ShapeFactory__C24589_VT = mkVTable({ name: "ShapeFactory", numFields: 11, classNo: 39, lastSubtypeNo: 40, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P497514, - "drawParticle": particles_ShapeFactory_drawParticle__P497513, + "createParticle": particles_ShapeFactory_createParticle__P24593, + "drawParticle": particles_ShapeFactory_drawParticle__P24592, }, iface: { "speed": null, @@ -43657,22 +46194,22 @@ const particles_ShapeFactory__C497510_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P497512, - "drawParticle": particles_ShapeFactory_drawParticle__P497513, - "createParticle": particles_ShapeFactory_createParticle__P497514, - "setSpeed": particles_SprayFactory_setSpeed__P497492, - "setDirection": particles_SprayFactory_setDirection__P497493, + "addShape": particles_ShapeFactory_addShape__P24591, + "drawParticle": particles_ShapeFactory_drawParticle__P24592, + "createParticle": particles_ShapeFactory_createParticle__P24593, + "setSpeed": particles_SprayFactory_setSpeed__P24571, + "setDirection": particles_SprayFactory_setDirection__P24572, }, }); -const particles_ConfettiFactory__C497515_VT = mkVTable({ +const particles_ConfettiFactory__C24594_VT = mkVTable({ name: "ConfettiFactory", numFields: 11, classNo: 40, lastSubtypeNo: 40, maxBgInstances: null, methods: { - "createParticle": particles_ShapeFactory_createParticle__P497514, - "drawParticle": particles_ShapeFactory_drawParticle__P497513, + "createParticle": particles_ShapeFactory_createParticle__P24593, + "drawParticle": particles_ShapeFactory_drawParticle__P24592, }, iface: { "speed": null, @@ -43697,50 +46234,50 @@ const particles_ConfettiFactory__C497515_VT = mkVTable({ "set/ox": null, "oy": null, "set/oy": null, - "addShape": particles_ShapeFactory_addShape__P497512, - "drawParticle": particles_ShapeFactory_drawParticle__P497513, - "createParticle": particles_ShapeFactory_createParticle__P497514, - "setSpeed": particles_SprayFactory_setSpeed__P497492, - "setDirection": particles_SprayFactory_setDirection__P497493, + "addShape": particles_ShapeFactory_addShape__P24591, + "drawParticle": particles_ShapeFactory_drawParticle__P24592, + "createParticle": particles_ShapeFactory_createParticle__P24593, + "setSpeed": particles_SprayFactory_setSpeed__P24571, + "setDirection": particles_SprayFactory_setDirection__P24572, }, }); -const sprites_BaseSprite__C496624_VT = mkVTable({ +const sprites_BaseSprite__C23583_VT = mkVTable({ name: "BaseSprite", numFields: 2, classNo: 41, lastSubtypeNo: 44, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P496627, - "__draw": sprites_BaseSprite___draw__P496630, - "__drawCore": sprites_BaseSprite___drawCore__P496631, - "__update": sprites_BaseSprite___update__P496632, + "__visible": sprites_BaseSprite___visible__P23586, + "__draw": sprites_BaseSprite___draw__P23589, + "__drawCore": sprites_BaseSprite___drawCore__P23590, + "__update": sprites_BaseSprite___update__P23591, }, iface: { "_z": null, "set/_z": null, "id": null, "set/id": null, - "__visible": sprites_BaseSprite___visible__P496627, - "z": sprites_BaseSprite_z__P496628, - "set/z": sprites_BaseSprite_z__P496629, - "__draw": sprites_BaseSprite___draw__P496630, - "__drawCore": sprites_BaseSprite___drawCore__P496631, - "__update": sprites_BaseSprite___update__P496632, + "__visible": sprites_BaseSprite___visible__P23586, + "z": sprites_BaseSprite_z__P23587, + "set/z": sprites_BaseSprite_z__P23588, + "__draw": sprites_BaseSprite___draw__P23589, + "__drawCore": sprites_BaseSprite___drawCore__P23590, + "__update": sprites_BaseSprite___update__P23591, }, }); -const particles_ParticleSource__C497448_VT = mkVTable({ +const particles_ParticleSource__C24527_VT = mkVTable({ name: "ParticleSource", numFields: 13, classNo: 42, lastSubtypeNo: 42, maxBgInstances: null, methods: { - "__visible": sprites_BaseSprite___visible__P496627, - "__draw": particles_ParticleSource___draw__P497454, - "__drawCore": sprites_BaseSprite___drawCore__P496631, - "__update": sprites_BaseSprite___update__P496632, - "updateParticle": particles_ParticleSource_updateParticle__P499228, + "__visible": sprites_BaseSprite___visible__P23586, + "__draw": particles_ParticleSource___draw__P24533, + "__drawCore": sprites_BaseSprite___drawCore__P23590, + "__update": sprites_BaseSprite___update__P23591, + "updateParticle": particles_ParticleSource_updateParticle__P26537, }, iface: { "_z": null, @@ -43769,28 +46306,28 @@ const particles_ParticleSource__C497448_VT = mkVTable({ "set/ax": null, "ay": null, "set/ay": null, - "__draw": particles_ParticleSource___draw__P497454, - "_update": particles_ParticleSource__update__P497455, - "_prune": particles_ParticleSource__prune__P497456, - "setAcceleration": particles_ParticleSource_setAcceleration__P497457, - "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P497459, - "enabled": particles_ParticleSource_enabled__P497460, - "set/enabled": particles_ParticleSource_enabled__P497461, - "destroy": particles_ParticleSource_destroy__P497462, - "clear": particles_ParticleSource_clear__P497463, - "setAnchor": particles_ParticleSource_setAnchor__P497464, - "setRate": particles_ParticleSource_setRate__P497465, - "setFactory": particles_ParticleSource_setFactory__P497467, - "updateParticle": particles_ParticleSource_updateParticle__P499228, - "drawParticle": particles_ParticleSource_drawParticle__P499229, - "__visible": sprites_BaseSprite___visible__P496627, - "z": sprites_BaseSprite_z__P496628, - "set/z": sprites_BaseSprite_z__P496629, - "__drawCore": sprites_BaseSprite___drawCore__P496631, - "__update": sprites_BaseSprite___update__P496632, + "__draw": particles_ParticleSource___draw__P24533, + "_update": particles_ParticleSource__update__P24534, + "_prune": particles_ParticleSource__prune__P24535, + "setAcceleration": particles_ParticleSource_setAcceleration__P24536, + "setRelativeToCamera": particles_ParticleSource_setRelativeToCamera__P24538, + "enabled": particles_ParticleSource_enabled__P24539, + "set/enabled": particles_ParticleSource_enabled__P24540, + "destroy": particles_ParticleSource_destroy__P24541, + "clear": particles_ParticleSource_clear__P24542, + "setAnchor": particles_ParticleSource_setAnchor__P24543, + "setRate": particles_ParticleSource_setRate__P24544, + "setFactory": particles_ParticleSource_setFactory__P24546, + "updateParticle": particles_ParticleSource_updateParticle__P26537, + "drawParticle": particles_ParticleSource_drawParticle__P26538, + "__visible": sprites_BaseSprite___visible__P23586, + "z": sprites_BaseSprite_z__P23587, + "set/z": sprites_BaseSprite_z__P23588, + "__drawCore": sprites_BaseSprite___drawCore__P23590, + "__update": sprites_BaseSprite___update__P23591, }, }); -const particles_Particle__C497429_VT = mkVTable({ +const particles_Particle__C24508_VT = mkVTable({ name: "Particle", numFields: 8, classNo: 45, @@ -43817,7 +46354,7 @@ const particles_Particle__C497429_VT = mkVTable({ "set/color": null, }, }); -const control_FrameCallback__C495137_VT = mkVTable({ +const control_FrameCallback__C22087_VT = mkVTable({ name: "FrameCallback", numFields: 2, classNo: 46, @@ -43832,28 +46369,28 @@ const control_FrameCallback__C495137_VT = mkVTable({ "set/handler": null, }, }); -const PhysicsEngine__C496934_VT = mkVTable({ +const PhysicsEngine__C23985_VT = mkVTable({ name: "PhysicsEngine", numFields: 0, classNo: 47, lastSubtypeNo: 48, maxBgInstances: null, methods: { - "addSprite": PhysicsEngine_addSprite__P496936, - "removeSprite": PhysicsEngine_removeSprite__P496937, - "moveSprite": PhysicsEngine_moveSprite__P496938, - "draw": PhysicsEngine_draw__P496939, - "move": PhysicsEngine_move__P496940, + "addSprite": PhysicsEngine_addSprite__P23987, + "removeSprite": PhysicsEngine_removeSprite__P23988, + "moveSprite": PhysicsEngine_moveSprite__P23989, + "draw": PhysicsEngine_draw__P23990, + "move": PhysicsEngine_move__P23991, }, iface: { - "addSprite": PhysicsEngine_addSprite__P496936, - "removeSprite": PhysicsEngine_removeSprite__P496937, - "moveSprite": PhysicsEngine_moveSprite__P496938, - "draw": PhysicsEngine_draw__P496939, - "move": PhysicsEngine_move__P496940, + "addSprite": PhysicsEngine_addSprite__P23987, + "removeSprite": PhysicsEngine_removeSprite__P23988, + "moveSprite": PhysicsEngine_moveSprite__P23989, + "draw": PhysicsEngine_draw__P23990, + "move": PhysicsEngine_move__P23991, }, }); -const scene_Camera__C497130_VT = mkVTable({ +const scene_Camera__C24207_VT = mkVTable({ name: "Camera", numFields: 8, classNo: 49, @@ -43878,18 +46415,18 @@ const scene_Camera__C497130_VT = mkVTable({ "set/shakeDuration": null, "shakeAmplitude": null, "set/shakeAmplitude": null, - "offsetX": scene_Camera_offsetX__P497135, - "set/offsetX": scene_Camera_offsetX__P497136, - "offsetY": scene_Camera_offsetY__P497137, - "set/offsetY": scene_Camera_offsetY__P497138, - "x": scene_Camera_x__P497139, - "y": scene_Camera_y__P497140, - "left": scene_Camera_left__P497141, - "top": scene_Camera_top__P497143, - "update": scene_Camera_update__P497146, + "offsetX": scene_Camera_offsetX__P24212, + "set/offsetX": scene_Camera_offsetX__P24213, + "offsetY": scene_Camera_offsetY__P24214, + "set/offsetY": scene_Camera_offsetY__P24215, + "x": scene_Camera_x__P24216, + "y": scene_Camera_y__P24217, + "left": scene_Camera_left__P24218, + "top": scene_Camera_top__P24220, + "update": scene_Camera_update__P24223, }, }); -const scene_BackgroundLayer__C497052_VT = mkVTable({ +const scene_BackgroundLayer__C24105_VT = mkVTable({ name: "BackgroundLayer", numFields: 6, classNo: 50, @@ -43910,20 +46447,20 @@ const scene_BackgroundLayer__C497052_VT = mkVTable({ "set/alignX": null, "alignY": null, "set/alignY": null, - "draw": scene_BackgroundLayer_draw__P497060, + "draw": scene_BackgroundLayer_draw__P24113, }, }); -const Sprite__C496789_VT = mkVTable({ +const Sprite__C23823_VT = mkVTable({ name: "Sprite", - numFields: 26, + numFields: 30, classNo: 43, lastSubtypeNo: 43, maxBgInstances: null, methods: { - "__visible": Sprite___visible__P496832, - "__draw": sprites_BaseSprite___draw__P496630, - "__drawCore": Sprite___drawCore__P496850, - "__update": Sprite___update__P496851, + "__visible": Sprite___visible__P23878, + "__draw": sprites_BaseSprite___draw__P23589, + "__drawCore": Sprite___drawCore__P23897, + "__update": Sprite___update__P23898, }, iface: { "_z": null, @@ -43946,6 +46483,14 @@ const Sprite__C496789_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, @@ -43964,10 +46509,10 @@ const Sprite__C496789_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, @@ -43978,60 +46523,66 @@ const Sprite__C496789_VT = mkVTable({ "set/flags": null, "destroyHandler": null, "set/destroyHandler": null, - "x": Sprite_x__P496798, - "set/x": Sprite_x__P496799, - "y": Sprite_y__P496800, - "set/y": Sprite_y__P496801, - "vx": Sprite_vx__P496802, - "set/vx": Sprite_vx__P496803, - "vy": Sprite_vy__P496804, - "set/vy": Sprite_vy__P496805, - "ax": Sprite_ax__P496806, - "set/ax": Sprite_ax__P496807, - "ay": Sprite_ay__P496808, - "set/ay": Sprite_ay__P496809, - "fx": Sprite_fx__P496810, - "set/fx": Sprite_fx__P496811, - "fy": Sprite_fy__P496812, - "set/fy": Sprite_fy__P496813, - "data": Sprite_data__P496814, - "set/data": Sprite_data__P496815, - "image": Sprite_image__P496828, - "setImage": Sprite_setImage__P496829, - "setHitbox": Sprite_setHitbox__P496830, - "isStatic": Sprite_isStatic__P496831, - "__visible": Sprite___visible__P496832, - "width": Sprite_width__P496833, - "height": Sprite_height__P496834, - "left": Sprite_left__P496835, - "set/left": Sprite_left__P496836, - "right": Sprite_right__P496837, - "set/right": Sprite_right__P496838, - "top": Sprite_top__P496839, - "set/top": Sprite_top__P496840, - "bottom": Sprite_bottom__P496841, - "set/bottom": Sprite_bottom__P496842, - "kind": Sprite_kind__P496843, - "setKind": Sprite_setKind__P496844, - "isOutOfScreen": Sprite_isOutOfScreen__P496849, - "__drawCore": Sprite___drawCore__P496850, - "__update": Sprite___update__P496851, - "setFlag": Sprite_setFlag__P496854, - "overlapsWith": Sprite_overlapsWith__P496855, - "clearObstacles": Sprite_clearObstacles__P496859, - "registerObstacle": Sprite_registerObstacle__P496860, - "destroy": Sprite_destroy__P496862, - "_destroyCore": Sprite__destroyCore__P496863, - "toString": Sprite_toString__P496865, - "z": sprites_BaseSprite_z__P496628, - "set/z": sprites_BaseSprite_z__P496629, - "__draw": sprites_BaseSprite___draw__P496630, + "x": Sprite_x__P23836, + "set/x": Sprite_x__P23837, + "y": Sprite_y__P23838, + "set/y": Sprite_y__P23839, + "vx": Sprite_vx__P23840, + "set/vx": Sprite_vx__P23841, + "vy": Sprite_vy__P23842, + "set/vy": Sprite_vy__P23843, + "ax": Sprite_ax__P23844, + "set/ax": Sprite_ax__P23845, + "ay": Sprite_ay__P23846, + "set/ay": Sprite_ay__P23847, + "fx": Sprite_fx__P23848, + "set/fx": Sprite_fx__P23849, + "fy": Sprite_fy__P23850, + "set/fy": Sprite_fy__P23851, + "sx": Sprite_sx__P23852, + "sy": Sprite_sy__P23854, + "data": Sprite_data__P23858, + "set/data": Sprite_data__P23859, + "image": Sprite_image__P23872, + "setImage": Sprite_setImage__P23873, + "calcDimensionalHash": Sprite_calcDimensionalHash__P23874, + "resetHitbox": Sprite_resetHitbox__P23875, + "setHitbox": Sprite_setHitbox__P23876, + "isStatic": Sprite_isStatic__P23877, + "__visible": Sprite___visible__P23878, + "recalcSize": Sprite_recalcSize__P26031, + "isScaled": Sprite_isScaled__P26032, + "width": Sprite_width__P23879, + "height": Sprite_height__P23880, + "left": Sprite_left__P23881, + "set/left": Sprite_left__P23882, + "right": Sprite_right__P23883, + "set/right": Sprite_right__P23884, + "top": Sprite_top__P23885, + "set/top": Sprite_top__P23886, + "bottom": Sprite_bottom__P23887, + "set/bottom": Sprite_bottom__P23888, + "kind": Sprite_kind__P23889, + "setKind": Sprite_setKind__P23890, + "isOutOfScreen": Sprite_isOutOfScreen__P23896, + "__drawCore": Sprite___drawCore__P23897, + "__update": Sprite___update__P23898, + "setFlag": Sprite_setFlag__P23901, + "overlapsWith": Sprite_overlapsWith__P23902, + "clearObstacles": Sprite_clearObstacles__P23907, + "registerObstacle": Sprite_registerObstacle__P23908, + "destroy": Sprite_destroy__P23910, + "_destroyCore": Sprite__destroyCore__P23911, + "toString": Sprite_toString__P23916, + "z": sprites_BaseSprite_z__P23587, + "set/z": sprites_BaseSprite_z__P23588, + "__draw": sprites_BaseSprite___draw__P23589, }, - toStringMethod: Sprite_toString__P496865, + toStringMethod: Sprite_toString__P23916, }); -const tiles_TileMap__C497094_VT = mkVTable({ +const tiles_TileMap__C24161_VT = mkVTable({ name: "TileMap", - numFields: 3, + numFields: 5, classNo: 51, lastSubtypeNo: 51, maxBgInstances: null, @@ -44044,25 +46595,29 @@ const tiles_TileMap__C497094_VT = mkVTable({ "set/_layer": null, "_map": null, "set/_map": null, - "scale": tiles_TileMap_scale__P497096, - "set/scale": tiles_TileMap_scale__P497097, - "data": tiles_TileMap_data__P498818, - "offsetX": tiles_TileMap_offsetX__P497098, - "offsetY": tiles_TileMap_offsetY__P497099, - "areaWidth": tiles_TileMap_areaWidth__P497100, - "areaHeight": tiles_TileMap_areaHeight__P497101, - "layer": tiles_TileMap_layer__P497102, - "enabled": tiles_TileMap_enabled__P497104, - "getTile": tiles_TileMap_getTile__P497106, - "getTileIndex": tiles_TileMap_getTileIndex__P497107, - "draw": tiles_TileMap_draw__P498820, - "isObstacle": tiles_TileMap_isObstacle__P497113, - "getObstacle": tiles_TileMap_getObstacle__P497114, - "isOnWall": tiles_TileMap_isOnWall__P497115, - "getTileImage": tiles_TileMap_getTileImage__P497116, + "renderable": null, + "set/renderable": null, + "handlerState": null, + "set/handlerState": null, + "scale": tiles_TileMap_scale__P24164, + "set/scale": tiles_TileMap_scale__P24165, + "data": tiles_TileMap_data__P24166, + "offsetX": tiles_TileMap_offsetX__P24167, + "offsetY": tiles_TileMap_offsetY__P24168, + "areaWidth": tiles_TileMap_areaWidth__P24169, + "areaHeight": tiles_TileMap_areaHeight__P24170, + "layer": tiles_TileMap_layer__P24171, + "enabled": tiles_TileMap_enabled__P24173, + "getTile": tiles_TileMap_getTile__P24175, + "getTileIndex": tiles_TileMap_getTileIndex__P24176, + "draw": tiles_TileMap_draw__P26142, + "isObstacle": tiles_TileMap_isObstacle__P24182, + "getObstacle": tiles_TileMap_getObstacle__P24183, + "isOnWall": tiles_TileMap_isOnWall__P24184, + "getTileImage": tiles_TileMap_getTileImage__P24185, }, }); -const tiles_TileMapData__C497081_VT = mkVTable({ +const tiles_TileMapData__C24143_VT = mkVTable({ name: "TileMapData", numFields: 7, classNo: 52, @@ -44085,17 +46640,17 @@ const tiles_TileMapData__C497081_VT = mkVTable({ "set/_width": null, "_height": null, "set/_height": null, - "width": tiles_TileMapData_width__P497083, - "height": tiles_TileMapData_height__P497084, - "scale": tiles_TileMapData_scale__P497085, - "set/scale": tiles_TileMapData_scale__P497086, - "getTile": tiles_TileMapData_getTile__P497087, - "getTileImage": tiles_TileMapData_getTileImage__P497090, - "isWall": tiles_TileMapData_isWall__P497092, - "isOutsideMap": tiles_TileMapData_isOutsideMap__P497093, + "width": tiles_TileMapData_width__P24145, + "height": tiles_TileMapData_height__P24146, + "scale": tiles_TileMapData_scale__P24147, + "set/scale": tiles_TileMapData_scale__P24148, + "getTile": tiles_TileMapData_getTile__P24149, + "getTileImage": tiles_TileMapData_getTileImage__P24152, + "isWall": tiles_TileMapData_isWall__P24154, + "isOutsideMap": tiles_TileMapData_isOutsideMap__P24155, }, }); -const controller_Controller__C496689_VT = mkVTable({ +const controller_Controller__C23623_VT = mkVTable({ name: "Controller", numFields: 5, classNo: 53, @@ -44114,32 +46669,32 @@ const controller_Controller__C496689_VT = mkVTable({ "set/_id": null, "_connected": null, "set/_connected": null, - "_controlledSprites": controller_Controller__controlledSprites__P496694, - "set/_controlledSprites": controller_Controller__controlledSprites__P496695, - "id": controller_Controller_id__P496696, - "left": controller_Controller_left__P496698, - "right": controller_Controller_right__P496699, - "up": controller_Controller_up__P496700, - "down": controller_Controller_down__P496701, - "button": controller_Controller_button__P498704, - "connected": controller_Controller_connected__P496708, - "set/connected": controller_Controller_connected__P496709, - "__preUpdate": controller_Controller___preUpdate__P496713, - "__update": controller_Controller___update__P496714, + "_controlledSprites": controller_Controller__controlledSprites__P23628, + "set/_controlledSprites": controller_Controller__controlledSprites__P23629, + "id": controller_Controller_id__P23630, + "left": controller_Controller_left__P23632, + "right": controller_Controller_right__P23633, + "up": controller_Controller_up__P23634, + "down": controller_Controller_down__P23635, + "button": controller_Controller_button__P26004, + "connected": controller_Controller_connected__P23642, + "set/connected": controller_Controller_connected__P23643, + "__preUpdate": controller_Controller___preUpdate__P23647, + "__update": controller_Controller___update__P23648, }, }); -const ArcadePhysicsEngine__C496950_VT = mkVTable({ +const ArcadePhysicsEngine__C24001_VT = mkVTable({ name: "ArcadePhysicsEngine", numFields: 6, classNo: 48, lastSubtypeNo: 48, maxBgInstances: null, methods: { - "addSprite": ArcadePhysicsEngine_addSprite__P496959, - "removeSprite": ArcadePhysicsEngine_removeSprite__P496960, - "moveSprite": ArcadePhysicsEngine_moveSprite__P496964, - "draw": ArcadePhysicsEngine_draw__P496961, - "move": ArcadePhysicsEngine_move__P496962, + "addSprite": ArcadePhysicsEngine_addSprite__P24010, + "removeSprite": ArcadePhysicsEngine_removeSprite__P24011, + "moveSprite": ArcadePhysicsEngine_moveSprite__P24015, + "draw": ArcadePhysicsEngine_draw__P24012, + "move": ArcadePhysicsEngine_move__P24013, }, iface: { "sprites": null, @@ -44154,26 +46709,26 @@ const ArcadePhysicsEngine__C496950_VT = mkVTable({ "set/minSingleStep": null, "maxSingleStep": null, "set/maxSingleStep": null, - "maxSpeed": ArcadePhysicsEngine_maxSpeed__P496952, - "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P496953, - "minStep": ArcadePhysicsEngine_minStep__P496954, - "set/minStep": ArcadePhysicsEngine_minStep__P496955, - "maxStep": ArcadePhysicsEngine_maxStep__P496956, - "set/maxStep": ArcadePhysicsEngine_maxStep__P496957, - "addSprite": ArcadePhysicsEngine_addSprite__P496959, - "removeSprite": ArcadePhysicsEngine_removeSprite__P496960, - "draw": ArcadePhysicsEngine_draw__P496961, - "move": ArcadePhysicsEngine_move__P496962, - "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P498747, - "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P498748, - "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P498749, - "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P498750, - "moveSprite": ArcadePhysicsEngine_moveSprite__P496964, - "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P498751, - "constrain": ArcadePhysicsEngine_constrain__P498752, + "maxSpeed": ArcadePhysicsEngine_maxSpeed__P24003, + "set/maxSpeed": ArcadePhysicsEngine_maxSpeed__P24004, + "minStep": ArcadePhysicsEngine_minStep__P24005, + "set/minStep": ArcadePhysicsEngine_minStep__P24006, + "maxStep": ArcadePhysicsEngine_maxStep__P24007, + "set/maxStep": ArcadePhysicsEngine_maxStep__P24008, + "addSprite": ArcadePhysicsEngine_addSprite__P24010, + "removeSprite": ArcadePhysicsEngine_removeSprite__P24011, + "draw": ArcadePhysicsEngine_draw__P24012, + "move": ArcadePhysicsEngine_move__P24013, + "createMovingSprite": ArcadePhysicsEngine_createMovingSprite__P26070, + "spriteCollisions": ArcadePhysicsEngine_spriteCollisions__P26071, + "tilemapCollisions": ArcadePhysicsEngine_tilemapCollisions__P26072, + "tilemapOverlaps": ArcadePhysicsEngine_tilemapOverlaps__P26073, + "moveSprite": ArcadePhysicsEngine_moveSprite__P24015, + "canResolveClipping": ArcadePhysicsEngine_canResolveClipping__P26074, + "constrain": ArcadePhysicsEngine_constrain__P26075, }, }); -const sprites_SpriteMap__C496869_VT = mkVTable({ +const sprites_SpriteMap__C23920_VT = mkVTable({ name: "SpriteMap", numFields: 5, classNo: 54, @@ -44192,20 +46747,20 @@ const sprites_SpriteMap__C496869_VT = mkVTable({ "set/columnCount": null, "buckets": null, "set/buckets": null, - "neighbors": sprites_SpriteMap_neighbors__P496871, - "overlaps": sprites_SpriteMap_overlaps__P496872, - "draw": sprites_SpriteMap_draw__P496873, - "resizeBuckets": sprites_SpriteMap_resizeBuckets__P496874, - "clear": sprites_SpriteMap_clear__P496875, - "key": sprites_SpriteMap_key__P498710, - "insertAtKey": sprites_SpriteMap_insertAtKey__P498711, - "insertAABB": sprites_SpriteMap_insertAABB__P496876, - "mergeAtKey": sprites_SpriteMap_mergeAtKey__P498712, - "toString": sprites_SpriteMap_toString__P496877, + "neighbors": sprites_SpriteMap_neighbors__P23922, + "overlaps": sprites_SpriteMap_overlaps__P23923, + "draw": sprites_SpriteMap_draw__P23924, + "resizeBuckets": sprites_SpriteMap_resizeBuckets__P23925, + "clear": sprites_SpriteMap_clear__P23926, + "key": sprites_SpriteMap_key__P26033, + "insertAtKey": sprites_SpriteMap_insertAtKey__P26034, + "insertAABB": sprites_SpriteMap_insertAABB__P23927, + "mergeAtKey": sprites_SpriteMap_mergeAtKey__P26035, + "toString": sprites_SpriteMap_toString__P23928, }, - toStringMethod: sprites_SpriteMap_toString__P496877, + toStringMethod: sprites_SpriteMap_toString__P23928, }); -const music_Melody__C496354_VT = mkVTable({ +const music_Melody__C23307_VT = mkVTable({ name: "Melody", numFields: 2, classNo: 55, @@ -44218,11 +46773,11 @@ const music_Melody__C496354_VT = mkVTable({ "set/_text": null, "_player": null, "set/_player": null, - "toString": music_Melody_toString__P496363, + "toString": music_Melody_toString__P23316, }, - toStringMethod: music_Melody_toString__P496363, + toStringMethod: music_Melody_toString__P23316, }); -const scene_systemMenu_PauseMenu__C497392_VT = mkVTable({ +const scene_systemMenu_PauseMenu__C24471_VT = mkVTable({ name: "PauseMenu", numFields: 7, classNo: 56, @@ -44245,15 +46800,15 @@ const scene_systemMenu_PauseMenu__C497392_VT = mkVTable({ "set/scrollOffset": null, "generator": null, "set/generator": null, - "show": scene_systemMenu_PauseMenu_show__P497394, - "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P497395, - "setSelection": scene_systemMenu_PauseMenu_setSelection__P497396, - "drawText": scene_systemMenu_PauseMenu_drawText__P497397, - "dispose": scene_systemMenu_PauseMenu_dispose__P497398, - "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P499128, + "show": scene_systemMenu_PauseMenu_show__P24473, + "onUpdate": scene_systemMenu_PauseMenu_onUpdate__P24474, + "setSelection": scene_systemMenu_PauseMenu_setSelection__P24475, + "drawText": scene_systemMenu_PauseMenu_drawText__P24476, + "dispose": scene_systemMenu_PauseMenu_dispose__P24477, + "updateScrollTarget": scene_systemMenu_PauseMenu_updateScrollTarget__P26452, }, }); -const scene_systemMenu_MenuOption__C497384_VT = mkVTable({ +const scene_systemMenu_MenuOption__C24463_VT = mkVTable({ name: "MenuOption", numFields: 8, classNo: 57, @@ -44278,24 +46833,26 @@ const scene_systemMenu_MenuOption__C497384_VT = mkVTable({ "set/getText": null, "action": null, "set/action": null, - "show": scene_systemMenu_MenuOption_show__P497386, - "position": scene_systemMenu_MenuOption_position__P497387, - "setOffset": scene_systemMenu_MenuOption_setOffset__P497388, - "setTheme": scene_systemMenu_MenuOption_setTheme__P497389, - "setState": scene_systemMenu_MenuOption_setState__P497390, - "dispose": scene_systemMenu_MenuOption_dispose__P497391, - "updateCard": scene_systemMenu_MenuOption_updateCard__P499127, + "show": scene_systemMenu_MenuOption_show__P24465, + "position": scene_systemMenu_MenuOption_position__P24466, + "setOffset": scene_systemMenu_MenuOption_setOffset__P24467, + "setTheme": scene_systemMenu_MenuOption_setTheme__P24468, + "setState": scene_systemMenu_MenuOption_setState__P24469, + "dispose": scene_systemMenu_MenuOption_dispose__P24470, + "updateCard": scene_systemMenu_MenuOption_updateCard__P26451, }, }); -const game_Hitbox__C496725_VT = mkVTable({ +const game_Hitbox__C23693_VT = mkVTable({ name: "Hitbox", - numFields: 5, + numFields: 6, classNo: 58, lastSubtypeNo: 58, maxBgInstances: null, methods: { }, iface: { + "hash": null, + "set/hash": null, "parent": null, "set/parent": null, "ox": null, @@ -44306,13 +46863,16 @@ const game_Hitbox__C496725_VT = mkVTable({ "set/width": null, "height": null, "set/height": null, - "left": game_Hitbox_left__P496732, - "top": game_Hitbox_top__P496733, - "right": game_Hitbox_right__P496734, - "bottom": game_Hitbox_bottom__P496735, + "left": game_Hitbox_left__P23701, + "top": game_Hitbox_top__P23702, + "right": game_Hitbox_right__P23703, + "bottom": game_Hitbox_bottom__P23704, + "isValid": game_Hitbox_isValid__P23705, + "contains": game_Hitbox_contains__P23706, + "overlapsWith": game_Hitbox_overlapsWith__P23707, }, }); -const sprites_SpriteSet__C496886_VT = mkVTable({ +const sprites_SpriteSet__C23937_VT = mkVTable({ name: "SpriteSet", numFields: 1, classNo: 59, @@ -44323,25 +46883,25 @@ const sprites_SpriteSet__C496886_VT = mkVTable({ iface: { "_sprites": null, "set/_sprites": null, - "length": sprites_SpriteSet_length__P496889, - "add": sprites_SpriteSet_add__P496891, - "remove": sprites_SpriteSet_remove__P496893, - "contains": sprites_SpriteSet_contains__P496894, - "toString": sprites_SpriteSet_toString__P496897, + "length": sprites_SpriteSet_length__P23940, + "add": sprites_SpriteSet_add__P23942, + "remove": sprites_SpriteSet_remove__P23944, + "contains": sprites_SpriteSet_contains__P23945, + "toString": sprites_SpriteSet_toString__P23948, }, - toStringMethod: sprites_SpriteSet_toString__P496897, + toStringMethod: sprites_SpriteSet_toString__P23948, }); -const scene_Renderable__C497148_VT = mkVTable({ +const scene_Renderable__C24225_VT = mkVTable({ name: "Renderable", numFields: 4, classNo: 44, lastSubtypeNo: 44, maxBgInstances: null, methods: { - "__visible": scene_Renderable___visible__P497150, - "__draw": sprites_BaseSprite___draw__P496630, - "__drawCore": scene_Renderable___drawCore__P497151, - "__update": sprites_BaseSprite___update__P496632, + "__visible": scene_Renderable___visible__P24227, + "__draw": sprites_BaseSprite___draw__P23589, + "__drawCore": scene_Renderable___drawCore__P24228, + "__update": sprites_BaseSprite___update__P23591, }, iface: { "_z": null, @@ -44352,22 +46912,54 @@ const scene_Renderable__C497148_VT = mkVTable({ "set/handler": null, "shouldBeVisible": null, "set/shouldBeVisible": null, - "__visible": scene_Renderable___visible__P497150, - "__drawCore": scene_Renderable___drawCore__P497151, - "z": sprites_BaseSprite_z__P496628, - "set/z": sprites_BaseSprite_z__P496629, - "__draw": sprites_BaseSprite___draw__P496630, - "__update": sprites_BaseSprite___update__P496632, + "__visible": scene_Renderable___visible__P24227, + "__drawCore": scene_Renderable___drawCore__P24228, + "z": sprites_BaseSprite_z__P23587, + "set/z": sprites_BaseSprite_z__P23588, + "__draw": sprites_BaseSprite___draw__P23589, + "__update": sprites_BaseSprite___update__P23591, }, }); -const MovingSprite__C496948_VT = mkVTable({ - name: "MovingSprite", - numFields: 7, +const controller_ButtonHandler__C23668_VT = mkVTable({ + name: "ButtonHandler", + numFields: 2, classNo: 60, lastSubtypeNo: 60, maxBgInstances: null, methods: { }, + iface: { + "event": null, + "set/event": null, + "callback": null, + "set/callback": null, + }, +}); +const controller_ButtonEventHandlerState__C23670_VT = mkVTable({ + name: "ButtonEventHandlerState", + numFields: 3, + classNo: 61, + lastSubtypeNo: 61, + maxBgInstances: null, + methods: { + }, + iface: { + "id": null, + "set/id": null, + "user": null, + "set/user": null, + "system": null, + "set/system": null, + }, +}); +const MovingSprite__C23999_VT = mkVTable({ + name: "MovingSprite", + numFields: 7, + classNo: 62, + lastSubtypeNo: 62, + maxBgInstances: null, + methods: { + }, iface: { "sprite": null, "set/sprite": null, @@ -44385,11 +46977,11 @@ const MovingSprite__C496948_VT = mkVTable({ "set/yStep": null, }, }); -const tiles_Location__C497066_VT = mkVTable({ +const tiles_Location__C24119_VT = mkVTable({ name: "Location", - numFields: 3, - classNo: 61, - lastSubtypeNo: 61, + numFields: 2, + classNo: 63, + lastSubtypeNo: 63, maxBgInstances: null, methods: { }, @@ -44398,20 +46990,21 @@ const tiles_Location__C497066_VT = mkVTable({ "set/_row": null, "_col": null, "set/_col": null, - "tileMap": null, - "set/tileMap": null, - "col": tiles_Location_col__P497067, - "row": tiles_Location_row__P497068, - "x": tiles_Location_x__P497070, - "y": tiles_Location_y__P497071, - "tileSet": tiles_Location_tileSet__P497072, + "tileMap": tiles_Location_tileMap__P24121, + "column": tiles_Location_column__P24122, + "row": tiles_Location_row__P24123, + "x": tiles_Location_x__P24124, + "y": tiles_Location_y__P24125, + "left": tiles_Location_left__P24126, + "top": tiles_Location_top__P24127, + "tileSet": tiles_Location_tileSet__P24130, }, }); -const sprites_StaticObstacle__C496921_VT = mkVTable({ +const sprites_StaticObstacle__C23972_VT = mkVTable({ name: "StaticObstacle", numFields: 5, - classNo: 62, - lastSubtypeNo: 62, + classNo: 64, + lastSubtypeNo: 64, maxBgInstances: null, methods: { }, @@ -44426,14 +47019,37 @@ const sprites_StaticObstacle__C496921_VT = mkVTable({ "set/top": null, "left": null, "set/left": null, - "x": sprites_StaticObstacle_x__P496928, - "y": sprites_StaticObstacle_y__P496929, - "height": sprites_StaticObstacle_height__P496930, - "width": sprites_StaticObstacle_width__P496931, + "x": sprites_StaticObstacle_x__P23979, + "y": sprites_StaticObstacle_y__P23980, + "height": sprites_StaticObstacle_height__P23981, + "width": sprites_StaticObstacle_width__P23982, + }, +}); +const sprites_BaseSpriteSayRenderer__C23743_VT = mkVTable({ + name: "BaseSpriteSayRenderer", + numFields: 3, + classNo: 65, + lastSubtypeNo: 65, + maxBgInstances: null, + methods: { + "draw": sprites_BaseSpriteSayRenderer_draw__P23745, + "update": sprites_BaseSpriteSayRenderer_update__P23746, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P23747, + }, + iface: { + "text": null, + "set/text": null, + "fgColor": null, + "set/fgColor": null, + "bgColor": null, + "set/bgColor": null, + "draw": sprites_BaseSpriteSayRenderer_draw__P23745, + "update": sprites_BaseSpriteSayRenderer_update__P23746, + "destroy": sprites_BaseSpriteSayRenderer_destroy__P23747, }, }); -const breakpoints = setupDebugger(1, ["currentScene___501522","FadeStack___501523","activeFade___501266","Adafruit___498433","Darken___498448","Brighten___498449","FadeToBlack___498446","RotatePalette___498450","Black___498443","Arcade___498442","Matte___498434","GrayScale___498435","White___498444","currentColors___500528","originalPalette___498432","lastEffect___500874","lastPaletteBeforeFade___500873"]) +const breakpoints = setupDebugger(1, ["currentScene___29327","FadeStack___29328","activeFade___29071","Adafruit___25741","Darken___25756","Brighten___25757","FadeToBlack___25754","RotatePalette___25758","Black___25751","Arcade___25750","Matte___25742","GrayScale___25743","White___25752","currentColors___28220","originalPalette___25740","COLOR_FADING_EFFECT_KEY___28586"]) -return _main___P512473 +return _main___P40965 }) diff --git a/assets/version.txt b/assets/version.txt index 7dff5b8..f477849 100644 --- a/assets/version.txt +++ b/assets/version.txt @@ -1 +1 @@ -0.2.1 \ No newline at end of file +0.2.2 \ No newline at end of file diff --git a/pxt.json b/pxt.json index 9077826..2185821 100644 --- a/pxt.json +++ b/pxt.json @@ -1,6 +1,6 @@ { "name": "Color Fading", - "version": "0.2.1", + "version": "0.2.2", "description": "", "dependencies": { "device": "*",